delegation_pool

Class in @sentio/sdk/aptos/builtin › _0x1

Defined in @sentio/sdk/aptos/builtin › _0x1

Event and struct types of this Move module: @typemove/aptos › 0x1::delegation_pool

Extends

Constructors

Constructor

new delegation_pool(options: AptosBindOptions): delegation_pool;

Parameters

ParameterType
optionsAptosBindOptions

Returns

delegation_pool

Overrides

AptosBaseProcessor.constructor

Properties

PropertyModifierTypeDefault valueInherited from
callHandlerspublicCallHandler<AptCall>[][]AptosBaseProcessor.callHandlers
coderpublicMoveCoderundefinedAptosBaseProcessor.coder
configpublicIndexConfigureundefinedAptosBaseProcessor.config
eventHandlerspublicEventHandler<AptEvent>[][]AptosBaseProcessor.eventHandlers
moduleNamereadonlystringundefinedAptosBaseProcessor.moduleName
resourceChangeHandlerspublicResourceChangeHandler<AptResource>[][]AptosBaseProcessor.resourceChangeHandlers
transactionIntervalHandlerspublicTransactionIntervalHandler[][]AptosBaseProcessor.transactionIntervalHandlers
DEFAULT_OPTIONSstaticAptosBindOptionsundefined-

Methods

getChainId()

getChainId(): string;

Returns

string

Inherited from

AptosBaseProcessor.getChainId


onEntryAddStake()

onEntryAddStake(
   func: (call: AddStakePayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, AddStakePayload>
): delegation_pool;

Parameters

ParameterType
func(call: AddStakePayload, ctx: AptosContext) => void
filter?CallFilter
handlerOptions?HandlerOptions<MoveFetchConfig, AddStakePayload>

Returns

delegation_pool


onEntryAllowlistDelegator()

onEntryAllowlistDelegator(
   func: (call: AllowlistDelegatorPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, AllowlistDelegatorPayload>
): delegation_pool;

Parameters

ParameterType
func(call: AllowlistDelegatorPayload, ctx: AptosContext) => void
filter?CallFilter
handlerOptions?HandlerOptions<MoveFetchConfig, AllowlistDelegatorPayload>

Returns

delegation_pool


onEntryCreateProposal()

onEntryCreateProposal(
   func: (call: CreateProposalPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, CreateProposalPayload>
): delegation_pool;

Parameters

ParameterType
func(call: CreateProposalPayload, ctx: AptosContext) => void
filter?CallFilter
handlerOptions?HandlerOptions<MoveFetchConfig, CreateProposalPayload>

Returns

delegation_pool


onEntryDelegateVotingPower()

onEntryDelegateVotingPower(
   func: (call: DelegateVotingPowerPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, DelegateVotingPowerPayload>
): delegation_pool;

Parameters

ParameterType
func(call: DelegateVotingPowerPayload, ctx: AptosContext) => void
filter?CallFilter
handlerOptions?HandlerOptions<MoveFetchConfig, DelegateVotingPowerPayload>

Returns

delegation_pool


onEntryDisableDelegatorsAllowlisting()

onEntryDisableDelegatorsAllowlisting(
   func: (call: DisableDelegatorsAllowlistingPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, DisableDelegatorsAllowlistingPayload>
): delegation_pool;

Parameters

ParameterType
func(call: DisableDelegatorsAllowlistingPayload, ctx: AptosContext) => void
filter?CallFilter
handlerOptions?HandlerOptions<MoveFetchConfig, DisableDelegatorsAllowlistingPayload>

Returns

delegation_pool


onEntryEnableDelegatorsAllowlisting()

onEntryEnableDelegatorsAllowlisting(
   func: (call: EnableDelegatorsAllowlistingPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, EnableDelegatorsAllowlistingPayload>
): delegation_pool;

Parameters

ParameterType
func(call: EnableDelegatorsAllowlistingPayload, ctx: AptosContext) => void
filter?CallFilter
handlerOptions?HandlerOptions<MoveFetchConfig, EnableDelegatorsAllowlistingPayload>

Returns

delegation_pool


onEntryEnablePartialGovernanceVoting()

onEntryEnablePartialGovernanceVoting(
   func: (call: EnablePartialGovernanceVotingPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, EnablePartialGovernanceVotingPayload>
): delegation_pool;

Parameters

ParameterType
func(call: EnablePartialGovernanceVotingPayload, ctx: AptosContext) => void
filter?CallFilter
handlerOptions?HandlerOptions<MoveFetchConfig, EnablePartialGovernanceVotingPayload>

Returns

delegation_pool


onEntryEvictDelegator()

onEntryEvictDelegator(
   func: (call: EvictDelegatorPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, EvictDelegatorPayload>
): delegation_pool;

Parameters

ParameterType
func(call: EvictDelegatorPayload, ctx: AptosContext) => void
filter?CallFilter
handlerOptions?HandlerOptions<MoveFetchConfig, EvictDelegatorPayload>

Returns

delegation_pool


onEntryInitializeDelegationPool()

onEntryInitializeDelegationPool(
   func: (call: InitializeDelegationPoolPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, InitializeDelegationPoolPayload>
): delegation_pool;

Parameters

ParameterType
func(call: InitializeDelegationPoolPayload, ctx: AptosContext) => void
filter?CallFilter
handlerOptions?HandlerOptions<MoveFetchConfig, InitializeDelegationPoolPayload>

Returns

delegation_pool


onEntryReactivateStake()

onEntryReactivateStake(
   func: (call: ReactivateStakePayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, ReactivateStakePayload>
): delegation_pool;

Parameters

ParameterType
func(call: ReactivateStakePayload, ctx: AptosContext) => void
filter?CallFilter
handlerOptions?HandlerOptions<MoveFetchConfig, ReactivateStakePayload>

Returns

delegation_pool


onEntryRemoveDelegatorFromAllowlist()

onEntryRemoveDelegatorFromAllowlist(
   func: (call: RemoveDelegatorFromAllowlistPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, RemoveDelegatorFromAllowlistPayload>
): delegation_pool;

Parameters

ParameterType
func(call: RemoveDelegatorFromAllowlistPayload, ctx: AptosContext) => void
filter?CallFilter
handlerOptions?HandlerOptions<MoveFetchConfig, RemoveDelegatorFromAllowlistPayload>

Returns

delegation_pool


onEntrySetBeneficiaryForOperator()

onEntrySetBeneficiaryForOperator(
   func: (call: SetBeneficiaryForOperatorPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, SetBeneficiaryForOperatorPayload>
): delegation_pool;

Parameters

ParameterType
func(call: SetBeneficiaryForOperatorPayload, ctx: AptosContext) => void
filter?CallFilter
handlerOptions?HandlerOptions<MoveFetchConfig, SetBeneficiaryForOperatorPayload>

Returns

delegation_pool


onEntrySetDelegatedVoter()

onEntrySetDelegatedVoter(
   func: (call: SetDelegatedVoterPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, SetDelegatedVoterPayload>
): delegation_pool;

Parameters

ParameterType
func(call: SetDelegatedVoterPayload, ctx: AptosContext) => void
filter?CallFilter
handlerOptions?HandlerOptions<MoveFetchConfig, SetDelegatedVoterPayload>

Returns

delegation_pool


onEntrySetOperator()

onEntrySetOperator(
   func: (call: SetOperatorPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, SetOperatorPayload>
): delegation_pool;

Parameters

ParameterType
func(call: SetOperatorPayload, ctx: AptosContext) => void
filter?CallFilter
handlerOptions?HandlerOptions<MoveFetchConfig, SetOperatorPayload>

Returns

delegation_pool


onEntrySynchronizeDelegationPool()

onEntrySynchronizeDelegationPool(
   func: (call: SynchronizeDelegationPoolPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, SynchronizeDelegationPoolPayload>
): delegation_pool;

Parameters

ParameterType
func(call: SynchronizeDelegationPoolPayload, ctx: AptosContext) => void
filter?CallFilter
handlerOptions?HandlerOptions<MoveFetchConfig, SynchronizeDelegationPoolPayload>

Returns

delegation_pool


onEntryUnlock()

onEntryUnlock(
   func: (call: UnlockPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, UnlockPayload>
): delegation_pool;

Parameters

ParameterType
func(call: UnlockPayload, ctx: AptosContext) => void
filter?CallFilter
handlerOptions?HandlerOptions<MoveFetchConfig, UnlockPayload>

Returns

delegation_pool


onEntryUpdateCommissionPercentage()

onEntryUpdateCommissionPercentage(
   func: (call: UpdateCommissionPercentagePayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, UpdateCommissionPercentagePayload>
): delegation_pool;

Parameters

ParameterType
func(call: UpdateCommissionPercentagePayload, ctx: AptosContext) => void
filter?CallFilter
handlerOptions?HandlerOptions<MoveFetchConfig, UpdateCommissionPercentagePayload>

Returns

delegation_pool


onEntryVote()

onEntryVote(
   func: (call: VotePayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, VotePayload>
): delegation_pool;

Parameters

ParameterType
func(call: VotePayload, ctx: AptosContext) => void
filter?CallFilter
handlerOptions?HandlerOptions<MoveFetchConfig, VotePayload>

Returns

delegation_pool


onEntryWithdraw()

onEntryWithdraw(
   func: (call: WithdrawPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, WithdrawPayload>
): delegation_pool;

Parameters

ParameterType
func(call: WithdrawPayload, ctx: AptosContext) => void
filter?CallFilter
handlerOptions?HandlerOptions<MoveFetchConfig, WithdrawPayload>

Returns

delegation_pool


onEvent()

onEvent(handler: (event: Event, ctx: AptosContext) => void, handlerOptions?: HandlerOptions<MoveFetchConfig, Event>): this;

Parameters

ParameterType
handler(event: Event, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, Event>

Returns

this

Inherited from

AptosBaseProcessor.onEvent


onEventAddStake()

onEventAddStake(
   func: (event: AddStakeInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, AddStakeInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: AddStakeInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, AddStakeInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventAddStakeEvent()

onEventAddStakeEvent(
   func: (event: AddStakeEventInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, AddStakeEventInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: AddStakeEventInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, AddStakeEventInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventAllowlistDelegator()

onEventAllowlistDelegator(
   func: (event: AllowlistDelegatorInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, AllowlistDelegatorInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: AllowlistDelegatorInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, AllowlistDelegatorInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventCommissionPercentageChange()

onEventCommissionPercentageChange(
   func: (event: CommissionPercentageChangeInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, CommissionPercentageChangeInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: CommissionPercentageChangeInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, CommissionPercentageChangeInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventCreateProposal()

onEventCreateProposal(
   func: (event: CreateProposalInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, CreateProposalInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: CreateProposalInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, CreateProposalInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventCreateProposalEvent()

onEventCreateProposalEvent(
   func: (event: CreateProposalEventInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, CreateProposalEventInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: CreateProposalEventInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, CreateProposalEventInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventDelegateVotingPower()

onEventDelegateVotingPower(
   func: (event: DelegateVotingPowerInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, DelegateVotingPowerInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: DelegateVotingPowerInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, DelegateVotingPowerInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventDelegateVotingPowerEvent()

onEventDelegateVotingPowerEvent(
   func: (event: DelegateVotingPowerEventInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, DelegateVotingPowerEventInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: DelegateVotingPowerEventInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, DelegateVotingPowerEventInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventDisableDelegatorsAllowlisting()

onEventDisableDelegatorsAllowlisting(
   func: (event: DisableDelegatorsAllowlistingInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, DisableDelegatorsAllowlistingInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: DisableDelegatorsAllowlistingInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, DisableDelegatorsAllowlistingInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventDistributeCommission()

onEventDistributeCommission(
   func: (event: DistributeCommissionInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, DistributeCommissionInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: DistributeCommissionInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, DistributeCommissionInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventDistributeCommissionEvent()

onEventDistributeCommissionEvent(
   func: (event: DistributeCommissionEventInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, DistributeCommissionEventInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: DistributeCommissionEventInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, DistributeCommissionEventInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventEnableDelegatorsAllowlisting()

onEventEnableDelegatorsAllowlisting(
   func: (event: EnableDelegatorsAllowlistingInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, EnableDelegatorsAllowlistingInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: EnableDelegatorsAllowlistingInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, EnableDelegatorsAllowlistingInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventEvictDelegator()

onEventEvictDelegator(
   func: (event: EvictDelegatorInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, EvictDelegatorInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: EvictDelegatorInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, EvictDelegatorInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventReactivateStake()

onEventReactivateStake(
   func: (event: ReactivateStakeInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, ReactivateStakeInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: ReactivateStakeInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, ReactivateStakeInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventReactivateStakeEvent()

onEventReactivateStakeEvent(
   func: (event: ReactivateStakeEventInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, ReactivateStakeEventInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: ReactivateStakeEventInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, ReactivateStakeEventInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventRemoveDelegatorFromAllowlist()

onEventRemoveDelegatorFromAllowlist(
   func: (event: RemoveDelegatorFromAllowlistInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, RemoveDelegatorFromAllowlistInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: RemoveDelegatorFromAllowlistInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, RemoveDelegatorFromAllowlistInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventSetBeneficiaryForOperator()

onEventSetBeneficiaryForOperator(
   func: (event: SetBeneficiaryForOperatorInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, SetBeneficiaryForOperatorInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: SetBeneficiaryForOperatorInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, SetBeneficiaryForOperatorInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventUnlockStake()

onEventUnlockStake(
   func: (event: UnlockStakeInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, UnlockStakeInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: UnlockStakeInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, UnlockStakeInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventUnlockStakeEvent()

onEventUnlockStakeEvent(
   func: (event: UnlockStakeEventInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, UnlockStakeEventInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: UnlockStakeEventInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, UnlockStakeEventInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventVote()

onEventVote(
   func: (event: VoteInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, VoteInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: VoteInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, VoteInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventVoteEvent()

onEventVoteEvent(
   func: (event: VoteEventInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, VoteEventInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: VoteEventInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, VoteEventInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventWithdrawStake()

onEventWithdrawStake(
   func: (event: WithdrawStakeInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, WithdrawStakeInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: WithdrawStakeInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, WithdrawStakeInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onEventWithdrawStakeEvent()

onEventWithdrawStakeEvent(
   func: (event: WithdrawStakeEventInstance, ctx: AptosContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, WithdrawStakeEventInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;

Parameters

ParameterType
func(event: WithdrawStakeEventInstance, ctx: AptosContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, WithdrawStakeEventInstance>
eventFilter?Omit<EventFilter, "account" | "type">

Returns

delegation_pool


onResourceChange()

Call Signature

onResourceChange<T>(
   handler: (changes: ResourceChange<T>[], ctx: AptosResourcesContext) => PromiseOrVoid, 
   typeDesc: 
  | string
  | TypeDescriptor<T>, 
   handlerOptions?: HandlerOptions<object, ResourceChange<T>[]>
): this;
Type Parameters
Type Parameter
T
Parameters
ParameterType
handler(changes: ResourceChange<T>[], ctx: AptosResourcesContext) => PromiseOrVoid
typeDesc| string | TypeDescriptor<T>
handlerOptions?HandlerOptions<object, ResourceChange<T>[]>
Returns

this

Inherited from

AptosBaseProcessor.onResourceChange

Call Signature

onResourceChange<Descs extends readonly (
  | string
  | TypeDescriptor<any>)[]>(
   handler: (changes: ResourceChange<ExtractDescriptorType<Descs[number]>>[], ctx: AptosResourcesContext) => PromiseOrVoid, 
   typeDesc: [...Descs[]], 
   handlerOptions?: HandlerOptions<object, ResourceChange<ExtractDescriptorType<Descs[number]>>[]>
): this;
Type Parameters
Type Parameter
Descs extends readonly ( | string | TypeDescriptor<any>)[]
Parameters
ParameterType
handler(changes: ResourceChange<ExtractDescriptorType<Descs[number]>>[], ctx: AptosResourcesContext) => PromiseOrVoid
typeDesc[...Descs[]]
handlerOptions?HandlerOptions<object, ResourceChange<ExtractDescriptorType<Descs[number]>>[]>
Returns

this

Inherited from

AptosBaseProcessor.onResourceChange


onTimeInterval()

onTimeInterval(
   handler: (transaction: UserTransactionResponse, ctx: AptosContext) => PromiseOrVoid, 
   timeIntervalInMinutes?: number, 
   backfillTimeIntervalInMinutes?: number, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, UserTransactionResponse>
): this;

Parameters

ParameterTypeDefault value
handler(transaction: UserTransactionResponse, ctx: AptosContext) => PromiseOrVoidundefined
timeIntervalInMinutesnumber60
backfillTimeIntervalInMinutesnumber240
handlerOptions?HandlerOptions<MoveFetchConfig, UserTransactionResponse>undefined

Returns

this

Inherited from

AptosBaseProcessor.onTimeInterval


onTransaction()

onTransaction(
   handler: (transaction: UserTransactionResponse, ctx: AptosContext) => PromiseOrVoid, 
   transactionFilter?: object, 
   handleOptions?: HandlerOptions<MoveFetchConfig, UserTransactionResponse>
): this;

Parameters

ParameterType
handler(transaction: UserTransactionResponse, ctx: AptosContext) => PromiseOrVoid
transactionFilter?{ includeFailed?: boolean; sender?: string; }
transactionFilter.includeFailed?boolean
transactionFilter.sender?string
handleOptions?HandlerOptions<MoveFetchConfig, UserTransactionResponse>

Returns

this

Inherited from

AptosBaseProcessor.onTransaction


onVersionInterval()

onVersionInterval(
   handler: (transaction: UserTransactionResponse, context: AptosContext) => PromiseOrVoid, 
   versionInterval?: number, 
   backfillVersionInterval?: number, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, UserTransactionResponse>
): this;

Parameters

ParameterTypeDefault value
handler(transaction: UserTransactionResponse, context: AptosContext) => PromiseOrVoidundefined
versionIntervalnumber100000
backfillVersionIntervalnumber400000
handlerOptions?HandlerOptions<MoveFetchConfig, UserTransactionResponse>undefined

Returns

this

Inherited from

AptosBaseProcessor.onVersionInterval


bind()

static bind(options?: Partial<AptosBindOptions>): delegation_pool;

For a given function, creates a bound function that has the same body as the original function. The this object of the bound function is associated with the specified object, and has the specified initial parameters.

Parameters

ParameterType
optionsPartial<AptosBindOptions>

Returns

delegation_pool

On this page

ExtendsConstructorsConstructorParametersReturnsOverridesPropertiesMethodsgetChainId()ReturnsInherited fromonEntryAddStake()ParametersReturnsonEntryAllowlistDelegator()ParametersReturnsonEntryCreateProposal()ParametersReturnsonEntryDelegateVotingPower()ParametersReturnsonEntryDisableDelegatorsAllowlisting()ParametersReturnsonEntryEnableDelegatorsAllowlisting()ParametersReturnsonEntryEnablePartialGovernanceVoting()ParametersReturnsonEntryEvictDelegator()ParametersReturnsonEntryInitializeDelegationPool()ParametersReturnsonEntryReactivateStake()ParametersReturnsonEntryRemoveDelegatorFromAllowlist()ParametersReturnsonEntrySetBeneficiaryForOperator()ParametersReturnsonEntrySetDelegatedVoter()ParametersReturnsonEntrySetOperator()ParametersReturnsonEntrySynchronizeDelegationPool()ParametersReturnsonEntryUnlock()ParametersReturnsonEntryUpdateCommissionPercentage()ParametersReturnsonEntryVote()ParametersReturnsonEntryWithdraw()ParametersReturnsonEvent()ParametersReturnsInherited fromonEventAddStake()ParametersReturnsonEventAddStakeEvent()ParametersReturnsonEventAllowlistDelegator()ParametersReturnsonEventCommissionPercentageChange()ParametersReturnsonEventCreateProposal()ParametersReturnsonEventCreateProposalEvent()ParametersReturnsonEventDelegateVotingPower()ParametersReturnsonEventDelegateVotingPowerEvent()ParametersReturnsonEventDisableDelegatorsAllowlisting()ParametersReturnsonEventDistributeCommission()ParametersReturnsonEventDistributeCommissionEvent()ParametersReturnsonEventEnableDelegatorsAllowlisting()ParametersReturnsonEventEvictDelegator()ParametersReturnsonEventReactivateStake()ParametersReturnsonEventReactivateStakeEvent()ParametersReturnsonEventRemoveDelegatorFromAllowlist()ParametersReturnsonEventSetBeneficiaryForOperator()ParametersReturnsonEventUnlockStake()ParametersReturnsonEventUnlockStakeEvent()ParametersReturnsonEventVote()ParametersReturnsonEventVoteEvent()ParametersReturnsonEventWithdrawStake()ParametersReturnsonEventWithdrawStakeEvent()ParametersReturnsonResourceChange()Call SignatureType ParametersParametersReturnsInherited fromCall SignatureType ParametersParametersReturnsInherited fromonTimeInterval()ParametersReturnsInherited fromonTransaction()ParametersReturnsInherited fromonVersionInterval()ParametersReturnsInherited frombind()ParametersReturns