transfer_policy

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

Extends

Constructors

Constructor

new transfer_policy(options: IotaBindOptions): transfer_policy;

Parameters

ParameterType
optionsIotaBindOptions

Returns

transfer_policy

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


onEntryDefault()

onEntryDefault(
   func: (call: DefaultPayload, ctx: IotaContext) => void, 
   filter?: CallFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, DefaultPayload<any>>
): transfer_policy;

Parameters

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

Returns

transfer_policy


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


onEventRuleKey()

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

Parameters

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

Returns

transfer_policy


onEventTransferPolicyCreated()

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

Parameters

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

Returns

transfer_policy


onEventTransferPolicyDestroyed()

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

Parameters

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

Returns

transfer_policy


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

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

transfer_policy

On this page