IotaObjectProcessorTemplate
Class in @sentio/sdk/iota
Defined in @sentio/sdk/iota
Extends
IotaObjectOrAddressProcessorTemplate<(self:IotaMoveObject,dynamicFieldObjects:IotaMoveObject[],ctx:IotaObjectContext) =>PromiseOrVoid,IotaObjectBindOptions,IotaObjectProcessor>
Constructors
Constructor
new IotaObjectProcessorTemplate(): IotaObjectProcessorTemplate;Returns
IotaObjectProcessorTemplate
Inherited from
IotaObjectOrAddressProcessorTemplate<
(self: IotaMoveObject, dynamicFieldObjects: IotaMoveObject[], ctx: IotaObjectContext) => PromiseOrVoid,
IotaObjectBindOptions,
IotaObjectProcessor
>.constructorProperties
| Property | Type | Default value | Inherited from |
|---|---|---|---|
id | number | undefined | IotaObjectOrAddressProcessorTemplate.id |
instances | Set<string> | undefined | IotaObjectOrAddressProcessorTemplate.instances |
objectHandlers | ObjectHandler<(self: object, dynamicFieldObjects: object[], ctx: IotaObjectContext) => PromiseOrVoid>[] | [] | IotaObjectOrAddressProcessorTemplate.objectHandlers |
Methods
bind()
bind(options: IotaObjectBindOptions, ctx: IotaContext): void;Parameters
| Parameter | Type |
|---|---|
options | IotaObjectBindOptions |
ctx | IotaContext |
Returns
void
Inherited from
IotaObjectOrAddressProcessorTemplate.bindcreateProcessor()
createProcessor(options: IotaObjectBindOptions): IotaObjectProcessor;Parameters
| Parameter | Type |
|---|---|
options | IotaObjectBindOptions |
Returns
Overrides
IotaObjectOrAddressProcessorTemplate.createProcessoronCheckpointInterval()
onCheckpointInterval(
handler: (self: object, dynamicFieldObjects: object[], ctx: IotaObjectContext) => PromiseOrVoid,
checkpointInterval?: number,
backfillCheckpointInterval?: number,
type?: string,
fetchConfig?: Partial<MoveAccountFetchConfig>
): this;Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (self: object, dynamicFieldObjects: object[], ctx: IotaObjectContext) => PromiseOrVoid | undefined |
checkpointInterval | number | 100000 |
backfillCheckpointInterval | number | 400000 |
type? | string | undefined |
fetchConfig? | Partial<MoveAccountFetchConfig> | undefined |
Returns
this
Inherited from
IotaObjectOrAddressProcessorTemplate.onCheckpointIntervalonTimeInterval()
onTimeInterval(
handler: (self: object, dynamicFieldObjects: object[], ctx: IotaObjectContext) => PromiseOrVoid,
timeIntervalInMinutes?: number,
backfillTimeIntervalInMinutes?: number,
type?: string,
fetchConfig?: Partial<MoveAccountFetchConfig>
): this;Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (self: object, dynamicFieldObjects: object[], ctx: IotaObjectContext) => PromiseOrVoid | undefined |
timeIntervalInMinutes | number | 60 |
backfillTimeIntervalInMinutes | number | 240 |
type? | string | undefined |
fetchConfig? | Partial<MoveAccountFetchConfig> | undefined |
Returns
this
Inherited from
IotaObjectOrAddressProcessorTemplate.onTimeIntervalstartInstance()
startInstance(options: IotaObjectBindOptions, ctx: IotaContext): void;Parameters
| Parameter | Type |
|---|---|
options | IotaObjectBindOptions |
ctx | IotaContext |
Returns
void
Inherited from
IotaObjectOrAddressProcessorTemplate.startInstanceunbind()
unbind(options: IotaObjectBindOptions, ctx: IotaContext): void;Parameters
| Parameter | Type |
|---|---|
options | IotaObjectBindOptions |
ctx | IotaContext |
Returns
void
Inherited from
IotaObjectOrAddressProcessorTemplate.unbind