SuiGlobalProcessor
Class in @sentio/sdk/sui
Defined in @sentio/sdk/sui
Extends
Constructors
Constructor
new SuiGlobalProcessor(name: string, options: SuiBindOptions): SuiGlobalProcessor;Parameters
| Parameter | Type |
|---|---|
name | string |
options | SuiBindOptions |
Returns
SuiGlobalProcessor
Inherited from
Properties
| Property | Modifier | Type | Default value | Inherited from |
|---|---|---|---|---|
callHandlers | public | CallHandler<Data_SuiCall>[] | [] | SuiBaseProcessor.callHandlers |
coder | public | MoveCoder | undefined | SuiBaseProcessor.coder |
config | public | IndexConfigure | undefined | SuiBaseProcessor.config |
eventHandlers | public | EventHandler<Data_SuiEvent>[] | [] | SuiBaseProcessor.eventHandlers |
moduleName | readonly | string | undefined | SuiBaseProcessor.moduleName |
objectChangeHandlers | public | ObjectChangeHandler<Data_SuiObjectChange>[] | [] | SuiBaseProcessor.objectChangeHandlers |
Methods
getChainId()
getChainId(): string;Returns
string
Inherited from
onEvent()
onEvent(handler: (event: Event, ctx: SuiContext) => void, handlerOptions?: HandlerOptions<MoveFetchConfig, Event>): this;Parameters
| Parameter | Type |
|---|---|
handler | (event: Event, ctx: SuiContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, Event> |
Returns
this
Inherited from
onObjectChange()
onObjectChange(handler: (changes: ChangedObject[], ctx: SuiObjectChangeContext) => void, type: string | string[]): this;Parameters
| Parameter | Type |
|---|---|
handler | (changes: ChangedObject[], ctx: SuiObjectChangeContext) => void |
type | string | string[] |
Returns
this
Overrides
SuiBaseProcessor.onObjectChangeonTransactionBlock()
onTransactionBlock(
handler: (transaction: ExecutedTransaction, ctx: SuiContext) => void,
filter: TransactionFilter,
fetchConfig?: Partial<MoveFetchConfig>
): this;Parameters
| Parameter | Type |
|---|---|
handler | (transaction: ExecutedTransaction, ctx: SuiContext) => void |
filter | TransactionFilter |
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
| Parameter | Type |
|---|---|
options | Omit<SuiBindOptions, "address"> |
Returns
SuiGlobalProcessor