fungible_asset
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::fungible_asset
Extends
Constructors
Constructor
new fungible_asset(options: AptosBindOptions): fungible_asset;Parameters
| Parameter | Type |
|---|---|
options | AptosBindOptions |
Returns
fungible_asset
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
onEntryTransfer()
onEntryTransfer(
func: (call: TransferPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, TransferPayload<any>>
): fungible_asset;Parameters
| Parameter | Type |
|---|---|
func | (call: TransferPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, TransferPayload<any>> |
Returns
fungible_asset
onEntryUpgradeStoreToConcurrent()
onEntryUpgradeStoreToConcurrent(
func: (call: UpgradeStoreToConcurrentPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, UpgradeStoreToConcurrentPayload<any>>
): fungible_asset;Parameters
| Parameter | Type |
|---|---|
func | (call: UpgradeStoreToConcurrentPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, UpgradeStoreToConcurrentPayload<any>> |
Returns
fungible_asset
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
onEventBurnRef()
onEventBurnRef(
func: (event: BurnRefInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, BurnRefInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): fungible_asset;Parameters
| Parameter | Type |
|---|---|
func | (event: BurnRefInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, BurnRefInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
fungible_asset
onEventCreation()
onEventCreation(
func: (event: CreationInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, CreationInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): fungible_asset;Parameters
| Parameter | Type |
|---|---|
func | (event: CreationInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, CreationInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
fungible_asset
onEventDeposit()
onEventDeposit(
func: (event: DepositInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, DepositInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): fungible_asset;Parameters
| Parameter | Type |
|---|---|
func | (event: DepositInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, DepositInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
fungible_asset
onEventDepositEvent()
onEventDepositEvent(
func: (event: DepositEventInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, DepositEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): fungible_asset;Parameters
| Parameter | Type |
|---|---|
func | (event: DepositEventInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, DepositEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
fungible_asset
onEventFrozen()
onEventFrozen(
func: (event: FrozenInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, FrozenInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): fungible_asset;Parameters
| Parameter | Type |
|---|---|
func | (event: FrozenInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, FrozenInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
fungible_asset
onEventFrozenEvent()
onEventFrozenEvent(
func: (event: FrozenEventInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, FrozenEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): fungible_asset;Parameters
| Parameter | Type |
|---|---|
func | (event: FrozenEventInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, FrozenEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
fungible_asset
onEventFungibleStoreDeletion()
onEventFungibleStoreDeletion(
func: (event: FungibleStoreDeletionInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, FungibleStoreDeletionInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): fungible_asset;Parameters
| Parameter | Type |
|---|---|
func | (event: FungibleStoreDeletionInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, FungibleStoreDeletionInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
fungible_asset
onEventMintRef()
onEventMintRef(
func: (event: MintRefInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, MintRefInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): fungible_asset;Parameters
| Parameter | Type |
|---|---|
func | (event: MintRefInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, MintRefInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
fungible_asset
onEventMutateMetadataRef()
onEventMutateMetadataRef(
func: (event: MutateMetadataRefInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, MutateMetadataRefInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): fungible_asset;Parameters
| Parameter | Type |
|---|---|
func | (event: MutateMetadataRefInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, MutateMetadataRefInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
fungible_asset
onEventRawBalanceRef()
onEventRawBalanceRef(
func: (event: RawBalanceRefInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, RawBalanceRefInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): fungible_asset;Parameters
| Parameter | Type |
|---|---|
func | (event: RawBalanceRefInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, RawBalanceRefInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
fungible_asset
onEventRawSupplyRef()
onEventRawSupplyRef(
func: (event: RawSupplyRefInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, RawSupplyRefInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): fungible_asset;Parameters
| Parameter | Type |
|---|---|
func | (event: RawSupplyRefInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, RawSupplyRefInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
fungible_asset
onEventTransferRef()
onEventTransferRef(
func: (event: TransferRefInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, TransferRefInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): fungible_asset;Parameters
| Parameter | Type |
|---|---|
func | (event: TransferRefInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, TransferRefInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
fungible_asset
onEventWithdraw()
onEventWithdraw(
func: (event: WithdrawInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, WithdrawInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): fungible_asset;Parameters
| Parameter | Type |
|---|---|
func | (event: WithdrawInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, WithdrawInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
fungible_asset
onEventWithdrawEvent()
onEventWithdrawEvent(
func: (event: WithdrawEventInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, WithdrawEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): fungible_asset;Parameters
| Parameter | Type |
|---|---|
func | (event: WithdrawEventInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, WithdrawEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
fungible_asset
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>): fungible_asset;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
fungible_asset