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
| Parameter | Type |
|---|---|
options | AptosBindOptions |
Returns
delegation_pool
Overrides
AptosBaseProcessor.constructor
Properties
| Property | Modifier | Type | Default value | Inherited from |
|---|---|---|---|---|
callHandlers | public | CallHandler<AptCall>[] | [] | AptosBaseProcessor.callHandlers |
coder | public | MoveCoder | undefined | AptosBaseProcessor.coder |
config | public | IndexConfigure | undefined | AptosBaseProcessor.config |
eventHandlers | public | EventHandler<AptEvent>[] | [] | AptosBaseProcessor.eventHandlers |
moduleName | readonly | string | undefined | AptosBaseProcessor.moduleName |
resourceChangeHandlers | public | ResourceChangeHandler<AptResource>[] | [] | AptosBaseProcessor.resourceChangeHandlers |
transactionIntervalHandlers | public | TransactionIntervalHandler[] | [] | AptosBaseProcessor.transactionIntervalHandlers |
DEFAULT_OPTIONS | static | AptosBindOptions | undefined | - |
Methods
getChainId()
getChainId(): string;Returns
string
Inherited from
onEntryAddStake()
onEntryAddStake(
func: (call: AddStakePayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, AddStakePayload>
): delegation_pool;Parameters
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
handler | (event: Event, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, Event> |
Returns
this
Inherited from
onEventAddStake()
onEventAddStake(
func: (event: AddStakeInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, AddStakeInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): delegation_pool;Parameters
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
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
| Parameter | Type | Default value |
|---|---|---|
handler | (transaction: UserTransactionResponse, ctx: AptosContext) => PromiseOrVoid | undefined |
timeIntervalInMinutes | number | 60 |
backfillTimeIntervalInMinutes | number | 240 |
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
| Parameter | Type |
|---|---|
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
| Parameter | Type | Default value |
|---|---|---|
handler | (transaction: UserTransactionResponse, context: AptosContext) => PromiseOrVoid | undefined |
versionInterval | number | 100000 |
backfillVersionInterval | number | 400000 |
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
| Parameter | Type |
|---|---|
options | Partial<AptosBindOptions> |
Returns
delegation_pool