coin_manager
Class in @sentio/sdk/iota/builtin › _0x2
Defined in @sentio/sdk/iota/builtin › _0x2
Event and struct types of this Move module: @typemove/iota › 0x2::coin_manager
Extends
Constructors
Constructor
new coin_manager(options: IotaBindOptions): coin_manager;Parameters
| Parameter | Type |
|---|---|
options | IotaBindOptions |
Returns
coin_manager
Overrides
Properties
| Property | Modifier | Type | Default value | Inherited from |
|---|---|---|---|---|
callHandlers | public | CallHandler<Data_SuiCall>[] | [] | IotaBaseProcessor.callHandlers |
coder | public | MoveCoder | undefined | IotaBaseProcessor.coder |
config | public | IndexConfigure | undefined | IotaBaseProcessor.config |
eventHandlers | public | EventHandler<Data_SuiEvent>[] | [] | IotaBaseProcessor.eventHandlers |
moduleName | readonly | string | undefined | IotaBaseProcessor.moduleName |
objectChangeHandlers | public | ObjectChangeHandler<Data_SuiObjectChange>[] | [] | IotaBaseProcessor.objectChangeHandlers |
DEFAULT_OPTIONS | static | IotaBindOptions | undefined | - |
Methods
getChainId()
getChainId(): string;Returns
string
Inherited from
onEntryBurn()
onEntryBurn(
func: (call: BurnPayload, ctx: IotaContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, BurnPayload<any>>
): coin_manager;Parameters
| Parameter | Type |
|---|---|
func | (call: BurnPayload, ctx: IotaContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, BurnPayload<any>> |
Returns
coin_manager
onEvent()
onEvent(handler: (event: IotaEvent, ctx: IotaContext) => void, handlerOptions?: HandlerOptions<MoveFetchConfig, IotaEvent>): this;Parameters
| Parameter | Type |
|---|---|
handler | (event: IotaEvent, ctx: IotaContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, IotaEvent> |
Returns
this
Inherited from
onEventCoinManaged()
onEventCoinManaged(
func: (event: CoinManagedInstance, ctx: IotaContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, CoinManagedInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): coin_manager;Parameters
| Parameter | Type |
|---|---|
func | (event: CoinManagedInstance, ctx: IotaContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, CoinManagedInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
coin_manager
onEventMetadataOwnershipRenounced()
onEventMetadataOwnershipRenounced(
func: (event: MetadataOwnershipRenouncedInstance, ctx: IotaContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, MetadataOwnershipRenouncedInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): coin_manager;Parameters
| Parameter | Type |
|---|---|
func | (event: MetadataOwnershipRenouncedInstance, ctx: IotaContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, MetadataOwnershipRenouncedInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
coin_manager
onEventTreasuryOwnershipRenounced()
onEventTreasuryOwnershipRenounced(
func: (event: TreasuryOwnershipRenouncedInstance, ctx: IotaContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, TreasuryOwnershipRenouncedInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): coin_manager;Parameters
| Parameter | Type |
|---|---|
func | (event: TreasuryOwnershipRenouncedInstance, ctx: IotaContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, TreasuryOwnershipRenouncedInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
coin_manager
onTransactionBlock()
onTransactionBlock(
handler: (transaction: IotaTransactionBlockResponse, ctx: IotaContext) => PromiseOrVoid,
filter?: TransactionFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, IotaTransactionBlockResponse>
): this;Parameters
| Parameter | Type |
|---|---|
handler | (transaction: IotaTransactionBlockResponse, ctx: IotaContext) => PromiseOrVoid |
filter? | TransactionFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, IotaTransactionBlockResponse> |
Returns
this
Inherited from
IotaBaseProcessor.onTransactionBlock
bind()
static bind(options?: Partial<IotaBindOptions>): coin_manager;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<IotaBindOptions> |
Returns
coin_manager