coin

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::coin

Extends

Constructors

Constructor

new coin(options: AptosBindOptions): coin;

Parameters

ParameterType
optionsAptosBindOptions

Returns

coin

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


onEntryCreateCoinConversionMap()

onEntryCreateCoinConversionMap(
   func: (call: CreateCoinConversionMapPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, CreateCoinConversionMapPayload>
): coin;

Parameters

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

Returns

coin


onEntryCreatePairing()

onEntryCreatePairing(
   func: (call: CreatePairingPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, CreatePairingPayload<any>>
): coin;

Parameters

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

Returns

coin


onEntryFreezeCoinStore()

onEntryFreezeCoinStore(
   func: (call: FreezeCoinStorePayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, FreezeCoinStorePayload<any>>
): coin;

Parameters

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

Returns

coin


onEntryMigrateCoinStoreToFungibleStore()

onEntryMigrateCoinStoreToFungibleStore(
   func: (call: MigrateCoinStoreToFungibleStorePayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, MigrateCoinStoreToFungibleStorePayload<any>>
): coin;

Parameters

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

Returns

coin


onEntryMigrateToFungibleStore()

onEntryMigrateToFungibleStore(
   func: (call: MigrateToFungibleStorePayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, MigrateToFungibleStorePayload<any>>
): coin;

Parameters

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

Returns

coin


onEntryTransfer()

onEntryTransfer(
   func: (call: TransferPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, TransferPayload<any>>
): coin;

Parameters

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

Returns

coin


onEntryUnfreezeCoinStore()

onEntryUnfreezeCoinStore(
   func: (call: UnfreezeCoinStorePayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, UnfreezeCoinStorePayload<any>>
): coin;

Parameters

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

Returns

coin


onEntryUpgradeSupply()

onEntryUpgradeSupply(
   func: (call: UpgradeSupplyPayload, ctx: AptosContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, UpgradeSupplyPayload<any>>
): coin;

Parameters

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

Returns

coin


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


onEventCoinDeposit()

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

Parameters

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

Returns

coin


onEventCoinEventHandleDeletion()

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

Parameters

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

Returns

coin


onEventCoinStoreDeletion()

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

Parameters

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

Returns

coin


onEventCoinWithdraw()

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

Parameters

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

Returns

coin


onEventDepositEvent()

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

Parameters

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

Returns

coin


onEventPairCreation()

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

Parameters

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

Returns

coin


onEventWithdrawEvent()

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

Parameters

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

Returns

coin


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

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

coin

On this page