ptb_command

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

Extends

Constructors

Constructor

new ptb_command(options: IotaBindOptions): ptb_command;

Parameters

ParameterType
optionsIotaBindOptions

Returns

ptb_command

Overrides

IotaBaseProcessor.constructor

Properties

PropertyModifierTypeDefault valueInherited from
callHandlerspublicCallHandler<Data_SuiCall>[][]IotaBaseProcessor.callHandlers
coderpublicMoveCoderundefinedIotaBaseProcessor.coder
configpublicIndexConfigureundefinedIotaBaseProcessor.config
eventHandlerspublicEventHandler<Data_SuiEvent>[][]IotaBaseProcessor.eventHandlers
moduleNamereadonlystringundefinedIotaBaseProcessor.moduleName
objectChangeHandlerspublicObjectChangeHandler<Data_SuiObjectChange>[][]IotaBaseProcessor.objectChangeHandlers
DEFAULT_OPTIONSstaticIotaBindOptionsundefined-

Methods

getChainId()

getChainId(): string;

Returns

string

Inherited from

IotaBaseProcessor.getChainId


onEvent()

onEvent(handler: (event: IotaEvent, ctx: IotaContext) => void, handlerOptions?: HandlerOptions<MoveFetchConfig, IotaEvent>): this;

Parameters

ParameterType
handler(event: IotaEvent, ctx: IotaContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, IotaEvent>

Returns

this

Inherited from

IotaBaseProcessor.onEvent


onEventMakeMoveVecData()

onEventMakeMoveVecData(
   func: (event: MakeMoveVecDataInstance, ctx: IotaContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, MakeMoveVecDataInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): ptb_command;

Parameters

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

Returns

ptb_command


onEventMergeCoinsData()

onEventMergeCoinsData(
   func: (event: MergeCoinsDataInstance, ctx: IotaContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, MergeCoinsDataInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): ptb_command;

Parameters

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

Returns

ptb_command


onEventProgrammableMoveCall()

onEventProgrammableMoveCall(
   func: (event: ProgrammableMoveCallInstance, ctx: IotaContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, ProgrammableMoveCallInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): ptb_command;

Parameters

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

Returns

ptb_command


onEventPublishData()

onEventPublishData(
   func: (event: PublishDataInstance, ctx: IotaContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, PublishDataInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): ptb_command;

Parameters

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

Returns

ptb_command


onEventSplitCoinsData()

onEventSplitCoinsData(
   func: (event: SplitCoinsDataInstance, ctx: IotaContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, SplitCoinsDataInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): ptb_command;

Parameters

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

Returns

ptb_command


onEventTransferObjectsData()

onEventTransferObjectsData(
   func: (event: TransferObjectsDataInstance, ctx: IotaContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, TransferObjectsDataInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): ptb_command;

Parameters

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

Returns

ptb_command


onEventUpgradeData()

onEventUpgradeData(
   func: (event: UpgradeDataInstance, ctx: IotaContext) => void, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, UpgradeDataInstance>, 
   eventFilter?: Omit<EventFilter, "account" | "type">
): ptb_command;

Parameters

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

Returns

ptb_command


onTransactionBlock()

onTransactionBlock(
   handler: (transaction: IotaTransactionBlockResponse, ctx: IotaContext) => PromiseOrVoid, 
   filter?: TransactionFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, IotaTransactionBlockResponse>
): this;

Parameters

ParameterType
handler(transaction: IotaTransactionBlockResponse, ctx: IotaContext) => PromiseOrVoid
filter?TransactionFilter
handlerOptions?HandlerOptions<MoveFetchConfig, IotaTransactionBlockResponse>

Returns

this

Inherited from

IotaBaseProcessor.onTransactionBlock


bind()

static bind(options?: Partial<IotaBindOptions>): ptb_command;

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<IotaBindOptions>

Returns

ptb_command

On this page