SuiGlobalProcessor

Class in @sentio/sdk/sui

Defined in @sentio/sdk/sui

Extends

Constructors

Constructor

new SuiGlobalProcessor(name: string, options: SuiBindOptions): SuiGlobalProcessor;

Parameters

ParameterType
namestring
optionsSuiBindOptions

Returns

SuiGlobalProcessor

Inherited from

SuiBaseProcessor.constructor

Properties

PropertyModifierTypeDefault valueInherited from
callHandlerspublicCallHandler<Data_SuiCall>[][]SuiBaseProcessor.callHandlers
coderpublicMoveCoderundefinedSuiBaseProcessor.coder
configpublicIndexConfigureundefinedSuiBaseProcessor.config
eventHandlerspublicEventHandler<Data_SuiEvent>[][]SuiBaseProcessor.eventHandlers
moduleNamereadonlystringundefinedSuiBaseProcessor.moduleName
objectChangeHandlerspublicObjectChangeHandler<Data_SuiObjectChange>[][]SuiBaseProcessor.objectChangeHandlers

Methods

getChainId()

getChainId(): string;

Returns

string

Inherited from

SuiBaseProcessor.getChainId


onEvent()

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

Parameters

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

Returns

this

Inherited from

SuiBaseProcessor.onEvent


onObjectChange()

onObjectChange(handler: (changes: ChangedObject[], ctx: SuiObjectChangeContext) => void, type: string | string[]): this;

Parameters

ParameterType
handler(changes: ChangedObject[], ctx: SuiObjectChangeContext) => void
typestring | string[]

Returns

this

Overrides

SuiBaseProcessor.onObjectChange

onTransactionBlock()

onTransactionBlock(
   handler: (transaction: ExecutedTransaction, ctx: SuiContext) => void, 
   filter: TransactionFilter, 
   fetchConfig?: Partial<MoveFetchConfig>
): this;

Parameters

ParameterType
handler(transaction: ExecutedTransaction, ctx: SuiContext) => void
filterTransactionFilter
fetchConfig?Partial<MoveFetchConfig>

Returns

this

Overrides

SuiBaseProcessor.onTransactionBlock


bind()

static bind(options: Omit<SuiBindOptions, "address">): SuiGlobalProcessor;

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
optionsOmit<SuiBindOptions, "address">

Returns

SuiGlobalProcessor

On this page