IotaGlobalProcessor
Class in @sentio/sdk/iota
Defined in @sentio/sdk/iota
Extends
Constructors
Constructor
new IotaGlobalProcessor(name: string, options: IotaBindOptions): IotaGlobalProcessor;Parameters
| Parameter | Type |
|---|---|
name | string |
options | IotaBindOptions |
Returns
IotaGlobalProcessor
Inherited from
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 |
Methods
getChainId()
getChainId(): string;Returns
string
Inherited from
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
onObjectChange()
onObjectChange(handler: (changes: IotaObjectChange[], ctx: IotaObjectChangeContext) => void, type: string | string[]): this;Parameters
| Parameter | Type |
|---|---|
handler | (changes: IotaObjectChange[], ctx: IotaObjectChangeContext) => void |
type | string | string[] |
Returns
this
Overrides
IotaBaseProcessor.onObjectChangeonTransactionBlock()
onTransactionBlock(
handler: (transaction: IotaTransactionBlockResponse, ctx: IotaContext) => void,
filter: TransactionFilter,
fetchConfig?: Partial<MoveFetchConfig>
): this;Parameters
| Parameter | Type |
|---|---|
handler | (transaction: IotaTransactionBlockResponse, ctx: IotaContext) => void |
filter | TransactionFilter |
fetchConfig? | Partial<MoveFetchConfig> |
Returns
this
Overrides
IotaBaseProcessor.onTransactionBlock
bind()
static bind(options: Omit<IotaBindOptions, "address">): IotaGlobalProcessor;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<IotaBindOptions, "address"> |
Returns
IotaGlobalProcessor