SuiObjectProcessorTemplate

Class in @sentio/sdk/sui

Defined in @sentio/sdk/sui

Extends

Constructors

Constructor

new SuiObjectProcessorTemplate(): SuiObjectProcessorTemplate;

Returns

SuiObjectProcessorTemplate

Inherited from

SuiObjectOrAddressProcessorTemplate<
  (self: SuiMoveObjectInput, dynamicFieldObjects: SuiMoveObjectInput[], ctx: SuiObjectContext) => PromiseOrVoid,
  SuiObjectBindOptions,
  SuiObjectProcessor
>.constructor

Properties

PropertyTypeDefault valueInherited from
idnumberundefinedSuiObjectOrAddressProcessorTemplate.id
instancesSet<string>undefinedSuiObjectOrAddressProcessorTemplate.instances
objectHandlersObjectHandler<(self: SuiMoveObjectInput, dynamicFieldObjects: SuiMoveObjectInput[], ctx: SuiObjectContext) => PromiseOrVoid>[][]SuiObjectOrAddressProcessorTemplate.objectHandlers

Methods

bind()

bind(options: SuiObjectBindOptions, ctx: SuiContext): void;

Parameters

ParameterType
optionsSuiObjectBindOptions
ctxSuiContext

Returns

void

Inherited from

SuiObjectOrAddressProcessorTemplate.bind

createProcessor()

createProcessor(options: SuiObjectBindOptions): SuiObjectProcessor;

Parameters

ParameterType
optionsSuiObjectBindOptions

Returns

SuiObjectProcessor

Overrides

SuiObjectOrAddressProcessorTemplate.createProcessor

onCheckpointInterval()

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

Parameters

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

Returns

this

Inherited from

SuiObjectOrAddressProcessorTemplate.onCheckpointInterval

onTimeInterval()

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

Parameters

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

Returns

this

Inherited from

SuiObjectOrAddressProcessorTemplate.onTimeInterval

startInstance()

startInstance(options: SuiObjectBindOptions, ctx: SuiContext): void;

Parameters

ParameterType
optionsSuiObjectBindOptions
ctxSuiContext

Returns

void

Inherited from

SuiObjectOrAddressProcessorTemplate.startInstance

unbind()

unbind(options: SuiObjectBindOptions, ctx: SuiContext): void;

Parameters

ParameterType
optionsSuiObjectBindOptions
ctxSuiContext

Returns

void

Inherited from

SuiObjectOrAddressProcessorTemplate.unbind

On this page