IotaWrappedObjectProcessor
Class in @sentio/sdk/iota
Defined in @sentio/sdk/iota
Extends
IotaBaseObjectOrAddressProcessorInternal<(dynamicFieldObjects:IotaMoveObject[],ctx:IotaObjectContext) =>PromiseOrVoid>
Properties
| Property | Type | Default value | Inherited from |
|---|---|---|---|
config | IndexConfigure | undefined | IotaBaseObjectOrAddressProcessorInternal.config |
objectChangeHandlers | ObjectChangeHandler<Data_SuiObjectChange>[] | [] | IotaBaseObjectOrAddressProcessorInternal.objectChangeHandlers |
objectHandlers | ObjectHandler[] | [] | IotaBaseObjectOrAddressProcessorInternal.objectHandlers |
ownerType | MoveOwnerType | undefined | IotaBaseObjectOrAddressProcessorInternal.ownerType |
templateId | number | undefined | undefined | IotaBaseObjectOrAddressProcessorInternal.templateId |
Methods
getChainId()
getChainId(): string;Returns
string
Inherited from
IotaBaseObjectOrAddressProcessorInternal.getChainIdonCheckpointInterval()
onCheckpointInterval(
handler: (dynamicFieldObjects: object[], ctx: IotaObjectContext) => PromiseOrVoid,
checkpointInterval?: number,
backfillCheckpointInterval?: number,
type?: string,
fetchConfig?: Partial<MoveAccountFetchConfig>
): this;Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (dynamicFieldObjects: object[], ctx: IotaObjectContext) => PromiseOrVoid | undefined |
checkpointInterval | number | 100000 |
backfillCheckpointInterval | number | 400000 |
type? | string | undefined |
fetchConfig? | Partial<MoveAccountFetchConfig> | undefined |
Returns
this
Inherited from
IotaBaseObjectOrAddressProcessorInternal.onCheckpointIntervalonInterval()
onInterval(
handler: (dynamicFieldObjects: object[], ctx: IotaObjectContext) => PromiseOrVoid,
timeInterval:
| HandleInterval
| undefined,
checkpointInterval:
| HandleInterval
| undefined,
type: string | undefined,
fetchConfig:
| Partial<MoveAccountFetchConfig>
| undefined,
handlerName?: string
): this;Parameters
| Parameter | Type |
|---|---|
handler | (dynamicFieldObjects: object[], ctx: IotaObjectContext) => PromiseOrVoid |
timeInterval | | HandleInterval | undefined |
checkpointInterval | | HandleInterval | undefined |
type | string | undefined |
fetchConfig | | Partial<MoveAccountFetchConfig> | undefined |
handlerName | string |
Returns
this
Inherited from
IotaBaseObjectOrAddressProcessorInternal.onIntervalonTimeInterval()
onTimeInterval(
handler: (dynamicFieldObjects: object[], ctx: IotaObjectContext) => PromiseOrVoid,
timeIntervalInMinutes?: number,
backfillTimeIntervalInMinutes?: number,
type?: string,
fetchConfig?: Partial<MoveAccountFetchConfig>
): this;Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (dynamicFieldObjects: object[], ctx: IotaObjectContext) => PromiseOrVoid | undefined |
timeIntervalInMinutes | number | 60 |
backfillTimeIntervalInMinutes | number | 240 |
type? | string | undefined |
fetchConfig? | Partial<MoveAccountFetchConfig> | undefined |
Returns
this
Inherited from
IotaBaseObjectOrAddressProcessorInternal.onTimeIntervalbind()
static bind(options: IotaObjectBindOptions): IotaWrappedObjectProcessor;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 | IotaObjectBindOptions |
Returns
IotaWrappedObjectProcessor