IotaWrappedObjectProcessorTemplate

Class in @sentio/sdk/iota

Defined in @sentio/sdk/iota

Extends

Constructors

Constructor

new IotaWrappedObjectProcessorTemplate(): IotaWrappedObjectProcessorTemplate;

Returns

IotaWrappedObjectProcessorTemplate

Inherited from

IotaObjectOrAddressProcessorTemplate<
  (dynamicFieldObjects: IotaMoveObject[], ctx: IotaObjectContext) => PromiseOrVoid,
  IotaObjectBindOptions,
  IotaWrappedObjectProcessor
>.constructor

Properties

PropertyTypeDefault valueInherited from
idnumberundefinedIotaObjectOrAddressProcessorTemplate.id
instancesSet<string>undefinedIotaObjectOrAddressProcessorTemplate.instances
objectHandlersObjectHandler<(dynamicFieldObjects: object[], ctx: IotaObjectContext) => PromiseOrVoid>[][]IotaObjectOrAddressProcessorTemplate.objectHandlers

Methods

bind()

bind(options: IotaObjectBindOptions, ctx: IotaContext): void;

Parameters

ParameterType
optionsIotaObjectBindOptions
ctxIotaContext

Returns

void

Inherited from

IotaObjectOrAddressProcessorTemplate.bind

createProcessor()

createProcessor(options: IotaObjectBindOptions): IotaWrappedObjectProcessor;

Parameters

ParameterType
optionsIotaObjectBindOptions

Returns

IotaWrappedObjectProcessor

Overrides

IotaObjectOrAddressProcessorTemplate.createProcessor

onCheckpointInterval()

onCheckpointInterval(
   handler: (dynamicFieldObjects: object[], ctx: IotaObjectContext) => PromiseOrVoid, 
   checkpointInterval?: number, 
   backfillCheckpointInterval?: number, 
   type?: string, 
   fetchConfig?: Partial<MoveAccountFetchConfig>
): this;

Parameters

ParameterTypeDefault value
handler(dynamicFieldObjects: object[], ctx: IotaObjectContext) => PromiseOrVoidundefined
checkpointIntervalnumber100000
backfillCheckpointIntervalnumber400000
type?stringundefined
fetchConfig?Partial<MoveAccountFetchConfig>undefined

Returns

this

Inherited from

IotaObjectOrAddressProcessorTemplate.onCheckpointInterval

onTimeInterval()

onTimeInterval(
   handler: (dynamicFieldObjects: object[], ctx: IotaObjectContext) => PromiseOrVoid, 
   timeIntervalInMinutes?: number, 
   backfillTimeIntervalInMinutes?: number, 
   type?: string, 
   fetchConfig?: Partial<MoveAccountFetchConfig>
): this;

Parameters

ParameterTypeDefault value
handler(dynamicFieldObjects: object[], ctx: IotaObjectContext) => PromiseOrVoidundefined
timeIntervalInMinutesnumber60
backfillTimeIntervalInMinutesnumber240
type?stringundefined
fetchConfig?Partial<MoveAccountFetchConfig>undefined

Returns

this

Inherited from

IotaObjectOrAddressProcessorTemplate.onTimeInterval

startInstance()

startInstance(options: IotaObjectBindOptions, ctx: IotaContext): void;

Parameters

ParameterType
optionsIotaObjectBindOptions
ctxIotaContext

Returns

void

Inherited from

IotaObjectOrAddressProcessorTemplate.startInstance

unbind()

unbind(options: IotaObjectBindOptions, ctx: IotaContext): void;

Parameters

ParameterType
optionsIotaObjectBindOptions
ctxIotaContext

Returns

void

Inherited from

IotaObjectOrAddressProcessorTemplate.unbind

On this page