token_transfers

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

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

Event and struct types of this Move module: @typemove/aptos › 0x3::token_transfers

Extends

Constructors

Constructor

new token_transfers(options: AptosBindOptions): token_transfers;

Parameters

ParameterType
optionsAptosBindOptions

Returns

token_transfers

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


onEntryCancelOfferScript()

onEntryCancelOfferScript(
   func: (call: CancelOfferScriptPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, CancelOfferScriptPayload>
): token_transfers;

Parameters

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

Returns

token_transfers


onEntryClaimScript()

onEntryClaimScript(
   func: (call: ClaimScriptPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, ClaimScriptPayload>
): token_transfers;

Parameters

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

Returns

token_transfers


onEntryOfferScript()

onEntryOfferScript(
   func: (call: OfferScriptPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, OfferScriptPayload>
): token_transfers;

Parameters

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

Returns

token_transfers


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


onEventCancelOffer()

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

Parameters

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

Returns

token_transfers


onEventClaim()

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

Parameters

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

Returns

token_transfers


onEventOffer()

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

Parameters

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

Returns

token_transfers


onEventTokenCancelOffer()

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

Parameters

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

Returns

token_transfers


onEventTokenCancelOfferEvent()

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

Parameters

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

Returns

token_transfers


onEventTokenClaim()

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

Parameters

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

Returns

token_transfers


onEventTokenClaimEvent()

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

Parameters

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

Returns

token_transfers


onEventTokenOffer()

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

Parameters

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

Returns

token_transfers


onEventTokenOfferEvent()

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

Parameters

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

Returns

token_transfers


onEventTokenOfferId()

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

Parameters

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

Returns

token_transfers


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>): token_transfers;

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

token_transfers

On this page