staking_contract
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::staking_contract
Extends
Constructors
Constructor
new staking_contract(options: AptosBindOptions): staking_contract;Parameters
| Parameter | Type |
|---|---|
options | AptosBindOptions |
Returns
staking_contract
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>
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (call: AddStakePayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, AddStakePayload> |
Returns
staking_contract
onEntryCreateStakingContract()
onEntryCreateStakingContract(
func: (call: CreateStakingContractPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, CreateStakingContractPayload>
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (call: CreateStakingContractPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, CreateStakingContractPayload> |
Returns
staking_contract
onEntryDistribute()
onEntryDistribute(
func: (call: DistributePayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, DistributePayload>
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (call: DistributePayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, DistributePayload> |
Returns
staking_contract
onEntryRequestCommission()
onEntryRequestCommission(
func: (call: RequestCommissionPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, RequestCommissionPayload>
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (call: RequestCommissionPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, RequestCommissionPayload> |
Returns
staking_contract
onEntryResetLockup()
onEntryResetLockup(
func: (call: ResetLockupPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, ResetLockupPayload>
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (call: ResetLockupPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, ResetLockupPayload> |
Returns
staking_contract
onEntrySetBeneficiaryForOperator()
onEntrySetBeneficiaryForOperator(
func: (call: SetBeneficiaryForOperatorPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, SetBeneficiaryForOperatorPayload>
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (call: SetBeneficiaryForOperatorPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, SetBeneficiaryForOperatorPayload> |
Returns
staking_contract
onEntrySwitchOperator()
onEntrySwitchOperator(
func: (call: SwitchOperatorPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, SwitchOperatorPayload>
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (call: SwitchOperatorPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, SwitchOperatorPayload> |
Returns
staking_contract
onEntrySwitchOperatorWithSameCommission()
onEntrySwitchOperatorWithSameCommission(
func: (call: SwitchOperatorWithSameCommissionPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, SwitchOperatorWithSameCommissionPayload>
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (call: SwitchOperatorWithSameCommissionPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, SwitchOperatorWithSameCommissionPayload> |
Returns
staking_contract
onEntryUnlockRewards()
onEntryUnlockRewards(
func: (call: UnlockRewardsPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, UnlockRewardsPayload>
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (call: UnlockRewardsPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, UnlockRewardsPayload> |
Returns
staking_contract
onEntryUnlockStake()
onEntryUnlockStake(
func: (call: UnlockStakePayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, UnlockStakePayload>
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (call: UnlockStakePayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, UnlockStakePayload> |
Returns
staking_contract
onEntryUpdateCommision()
onEntryUpdateCommision(
func: (call: UpdateCommisionPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, UpdateCommisionPayload>
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (call: UpdateCommisionPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, UpdateCommisionPayload> |
Returns
staking_contract
onEntryUpdateVoter()
onEntryUpdateVoter(
func: (call: UpdateVoterPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, UpdateVoterPayload>
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (call: UpdateVoterPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, UpdateVoterPayload> |
Returns
staking_contract
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
onEventAddDistribution()
onEventAddDistribution(
func: (event: AddDistributionInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, AddDistributionInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: AddDistributionInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, AddDistributionInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventAddDistributionEvent()
onEventAddDistributionEvent(
func: (event: AddDistributionEventInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, AddDistributionEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: AddDistributionEventInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, AddDistributionEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventAddStake()
onEventAddStake(
func: (event: AddStakeInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, AddStakeInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: AddStakeInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, AddStakeInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventAddStakeEvent()
onEventAddStakeEvent(
func: (event: AddStakeEventInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, AddStakeEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: AddStakeEventInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, AddStakeEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventCreateStakingContract()
onEventCreateStakingContract(
func: (event: CreateStakingContractInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, CreateStakingContractInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: CreateStakingContractInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, CreateStakingContractInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventCreateStakingContractEvent()
onEventCreateStakingContractEvent(
func: (event: CreateStakingContractEventInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, CreateStakingContractEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: CreateStakingContractEventInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, CreateStakingContractEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventDistribute()
onEventDistribute(
func: (event: DistributeInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, DistributeInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: DistributeInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, DistributeInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventDistributeEvent()
onEventDistributeEvent(
func: (event: DistributeEventInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, DistributeEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: DistributeEventInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, DistributeEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventRequestCommission()
onEventRequestCommission(
func: (event: RequestCommissionInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, RequestCommissionInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: RequestCommissionInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, RequestCommissionInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventRequestCommissionEvent()
onEventRequestCommissionEvent(
func: (event: RequestCommissionEventInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, RequestCommissionEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: RequestCommissionEventInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, RequestCommissionEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventResetLockup()
onEventResetLockup(
func: (event: ResetLockupInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, ResetLockupInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: ResetLockupInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, ResetLockupInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventResetLockupEvent()
onEventResetLockupEvent(
func: (event: ResetLockupEventInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, ResetLockupEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: ResetLockupEventInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, ResetLockupEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventSetBeneficiaryForOperator()
onEventSetBeneficiaryForOperator(
func: (event: SetBeneficiaryForOperatorInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, SetBeneficiaryForOperatorInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: SetBeneficiaryForOperatorInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, SetBeneficiaryForOperatorInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventStakingGroupUpdateCommissionEvent()
onEventStakingGroupUpdateCommissionEvent(
func: (event: StakingGroupUpdateCommissionEventInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, StakingGroupUpdateCommissionEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: StakingGroupUpdateCommissionEventInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, StakingGroupUpdateCommissionEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventSwitchOperator()
onEventSwitchOperator(
func: (event: SwitchOperatorInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, SwitchOperatorInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: SwitchOperatorInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, SwitchOperatorInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventSwitchOperatorEvent()
onEventSwitchOperatorEvent(
func: (event: SwitchOperatorEventInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, SwitchOperatorEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: SwitchOperatorEventInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, SwitchOperatorEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventUnlockStake()
onEventUnlockStake(
func: (event: UnlockStakeInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, UnlockStakeInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: UnlockStakeInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, UnlockStakeInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventUnlockStakeEvent()
onEventUnlockStakeEvent(
func: (event: UnlockStakeEventInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, UnlockStakeEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: UnlockStakeEventInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, UnlockStakeEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventUpdateCommission()
onEventUpdateCommission(
func: (event: UpdateCommissionInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, UpdateCommissionInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: UpdateCommissionInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, UpdateCommissionInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventUpdateCommissionEvent()
onEventUpdateCommissionEvent(
func: (event: UpdateCommissionEventInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, UpdateCommissionEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: UpdateCommissionEventInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, UpdateCommissionEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventUpdateVoter()
onEventUpdateVoter(
func: (event: UpdateVoterInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, UpdateVoterInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: UpdateVoterInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, UpdateVoterInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
onEventUpdateVoterEvent()
onEventUpdateVoterEvent(
func: (event: UpdateVoterEventInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, UpdateVoterEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): staking_contract;Parameters
| Parameter | Type |
|---|---|
func | (event: UpdateVoterEventInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, UpdateVoterEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
staking_contract
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>): staking_contract;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
staking_contract