IotaWrappedObjectProcessorTemplate
Class in @sentio/sdk/iota
Defined in @sentio/sdk/iota
Extends
IotaObjectOrAddressProcessorTemplate<(dynamicFieldObjects:IotaMoveObject[],ctx:IotaObjectContext) =>PromiseOrVoid,IotaObjectBindOptions,IotaWrappedObjectProcessor>
Constructors
Constructor
new IotaWrappedObjectProcessorTemplate(): IotaWrappedObjectProcessorTemplate;Returns
IotaWrappedObjectProcessorTemplate
Inherited from
IotaObjectOrAddressProcessorTemplate<
(dynamicFieldObjects: IotaMoveObject[], ctx: IotaObjectContext) => PromiseOrVoid,
IotaObjectBindOptions,
IotaWrappedObjectProcessor
>.constructorProperties
| Property | Type | Default value | Inherited from |
|---|---|---|---|
id | number | undefined | IotaObjectOrAddressProcessorTemplate.id |
instances | Set<string> | undefined | IotaObjectOrAddressProcessorTemplate.instances |
objectHandlers | ObjectHandler<(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): IotaWrappedObjectProcessor;Parameters
| Parameter | Type |
|---|---|
options | IotaObjectBindOptions |
Returns
Overrides
IotaObjectOrAddressProcessorTemplate.createProcessoronCheckpointInterval()
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
IotaObjectOrAddressProcessorTemplate.onCheckpointIntervalonTimeInterval()
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
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