aptos_token

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

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

Event and struct types of this Move module: @typemove/aptos › 0x4::aptos_token

Extends

Constructors

Constructor

new aptos_token(options: AptosBindOptions): aptos_token;

Parameters

ParameterType
optionsAptosBindOptions

Returns

aptos_token

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


onEntryAddProperty()

onEntryAddProperty(
   func: (call: AddPropertyPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, AddPropertyPayload<any>>
): aptos_token;

Parameters

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

Returns

aptos_token


onEntryAddTypedProperty()

onEntryAddTypedProperty(
   func: (call: AddTypedPropertyPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, AddTypedPropertyPayload<any, any>>
): aptos_token;

Parameters

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

Returns

aptos_token


onEntryBurn()

onEntryBurn(
   func: (call: BurnPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, BurnPayload<any>>
): aptos_token;

Parameters

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

Returns

aptos_token


onEntryCreateCollection()

onEntryCreateCollection(
   func: (call: CreateCollectionPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, CreateCollectionPayload>
): aptos_token;

Parameters

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

Returns

aptos_token


onEntryFreezeTransfer()

onEntryFreezeTransfer(
   func: (call: FreezeTransferPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, FreezeTransferPayload<any>>
): aptos_token;

Parameters

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

Returns

aptos_token


onEntryMint()

onEntryMint(
   func: (call: MintPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, MintPayload>
): aptos_token;

Parameters

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

Returns

aptos_token


onEntryMintSoulBound()

onEntryMintSoulBound(
   func: (call: MintSoulBoundPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, MintSoulBoundPayload>
): aptos_token;

Parameters

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

Returns

aptos_token


onEntryRemoveProperty()

onEntryRemoveProperty(
   func: (call: RemovePropertyPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, RemovePropertyPayload<any>>
): aptos_token;

Parameters

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

Returns

aptos_token


onEntrySetCollectionDescription()

onEntrySetCollectionDescription(
   func: (call: SetCollectionDescriptionPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, SetCollectionDescriptionPayload<any>>
): aptos_token;

Parameters

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

Returns

aptos_token


onEntrySetCollectionRoyaltiesCall()

onEntrySetCollectionRoyaltiesCall(
   func: (call: SetCollectionRoyaltiesCallPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, SetCollectionRoyaltiesCallPayload<any>>
): aptos_token;

Parameters

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

Returns

aptos_token


onEntrySetCollectionUri()

onEntrySetCollectionUri(
   func: (call: SetCollectionUriPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, SetCollectionUriPayload<any>>
): aptos_token;

Parameters

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

Returns

aptos_token


onEntrySetDescription()

onEntrySetDescription(
   func: (call: SetDescriptionPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, SetDescriptionPayload<any>>
): aptos_token;

Parameters

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

Returns

aptos_token


onEntrySetName()

onEntrySetName(
   func: (call: SetNamePayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, SetNamePayload<any>>
): aptos_token;

Parameters

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

Returns

aptos_token


onEntrySetUri()

onEntrySetUri(
   func: (call: SetUriPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, SetUriPayload<any>>
): aptos_token;

Parameters

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

Returns

aptos_token


onEntryUnfreezeTransfer()

onEntryUnfreezeTransfer(
   func: (call: UnfreezeTransferPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, UnfreezeTransferPayload<any>>
): aptos_token;

Parameters

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

Returns

aptos_token


onEntryUpdateProperty()

onEntryUpdateProperty(
   func: (call: UpdatePropertyPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, UpdatePropertyPayload<any>>
): aptos_token;

Parameters

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

Returns

aptos_token


onEntryUpdateTypedProperty()

onEntryUpdateTypedProperty(
   func: (call: UpdateTypedPropertyPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, UpdateTypedPropertyPayload<any, any>>
): aptos_token;

Parameters

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

Returns

aptos_token


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


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

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

aptos_token

On this page