SuiObjectTypeProcessor

Class in @sentio/sdk/sui

Defined in @sentio/sdk/sui

Extends

Type Parameters

Type Parameter
T

Properties

PropertyTypeDefault valueInherited from
configIndexConfigureundefinedSuiBaseObjectOrAddressProcessor.config
objectChangeHandlersObjectChangeHandler<Data_SuiObjectChange>[][]SuiBaseObjectOrAddressProcessor.objectChangeHandlers
objectHandlersObjectHandler[][]SuiBaseObjectOrAddressProcessor.objectHandlers
objectTypeTypeDescriptor<T>undefined-
ownerTypeMoveOwnerTypeundefinedSuiBaseObjectOrAddressProcessor.ownerType
templateIdnumber | undefinedundefinedSuiBaseObjectOrAddressProcessor.templateId

Methods

getChainId()

getChainId(): string;

Returns

string

Inherited from

SuiBaseObjectOrAddressProcessor.getChainId

onCheckpointInterval()

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

Parameters

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

Returns

this


onInterval()

onInterval(
   handler: (self: TypedSuiMoveObject<T>, dynamicFieldObjects: SuiMoveObjectInput[], ctx: SuiObjectContext) => PromiseOrVoid, 
   timeInterval: 
  | HandleInterval
  | undefined, 
   checkpointInterval: 
  | HandleInterval
  | undefined, 
   type: string | undefined, 
   fetchConfig: 
  | Partial<MoveAccountFetchConfig>
  | undefined, 
   handlerName?: string
): this;

Parameters

ParameterType
handler(self: TypedSuiMoveObject<T>, dynamicFieldObjects: SuiMoveObjectInput[], ctx: SuiObjectContext) => PromiseOrVoid
timeInterval| HandleInterval | undefined
checkpointInterval| HandleInterval | undefined
typestring | undefined
fetchConfig| Partial<MoveAccountFetchConfig> | undefined
handlerNamestring

Returns

this

Inherited from

SuiBaseObjectOrAddressProcessor.onInterval

onObjectChange()

onObjectChange(handler: (changes: ChangedObject[], ctx: SuiObjectChangeContext) => PromiseOrVoid): this;

Parameters

ParameterType
handler(changes: ChangedObject[], ctx: SuiObjectChangeContext) => PromiseOrVoid

Returns

this


onTimeInterval()

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

Parameters

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

Returns

this


bind()

static bind<T>(options: SuiObjectTypeBindOptions<T>): SuiObjectTypeProcessor<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

ParameterType
optionsSuiObjectTypeBindOptions<T>

Returns

SuiObjectTypeProcessor<T>

On this page