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