SuiWrappedObjectProcessor
Class in @sentio/sdk/sui
Defined in @sentio/sdk/sui
Extends
SuiBaseObjectOrAddressProcessorInternal<(dynamicFieldObjects:SuiMoveObjectInput[],ctx:SuiObjectContext) =>PromiseOrVoid>
Properties
| Property | Type | Default value | Inherited from |
|---|---|---|---|
config | IndexConfigure | undefined | SuiBaseObjectOrAddressProcessorInternal.config |
objectChangeHandlers | ObjectChangeHandler<Data_SuiObjectChange>[] | [] | SuiBaseObjectOrAddressProcessorInternal.objectChangeHandlers |
objectHandlers | ObjectHandler[] | [] | SuiBaseObjectOrAddressProcessorInternal.objectHandlers |
ownerType | MoveOwnerType | undefined | SuiBaseObjectOrAddressProcessorInternal.ownerType |
templateId | number | undefined | undefined | SuiBaseObjectOrAddressProcessorInternal.templateId |
Methods
getChainId()
getChainId(): string;Returns
string
Inherited from
SuiBaseObjectOrAddressProcessorInternal.getChainIdonCheckpointInterval()
onCheckpointInterval(
handler: (dynamicFieldObjects: SuiMoveObjectInput[], ctx: SuiObjectContext) => PromiseOrVoid,
checkpointInterval?: number,
backfillCheckpointInterval?: number,
type?: string,
fetchConfig?: Partial<MoveAccountFetchConfig>
): this;Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (dynamicFieldObjects: SuiMoveObjectInput[], ctx: SuiObjectContext) => PromiseOrVoid | undefined |
checkpointInterval | number | 100000 |
backfillCheckpointInterval | number | 400000 |
type? | string | undefined |
fetchConfig? | Partial<MoveAccountFetchConfig> | undefined |
Returns
this
Inherited from
SuiBaseObjectOrAddressProcessorInternal.onCheckpointIntervalonInterval()
onInterval(
handler: (dynamicFieldObjects: SuiMoveObjectInput[], ctx: SuiObjectContext) => PromiseOrVoid,
timeInterval:
| HandleInterval
| undefined,
checkpointInterval:
| HandleInterval
| undefined,
type: string | undefined,
fetchConfig:
| Partial<MoveAccountFetchConfig>
| undefined,
handlerName?: string
): this;Parameters
| Parameter | Type |
|---|---|
handler | (dynamicFieldObjects: SuiMoveObjectInput[], ctx: SuiObjectContext) => PromiseOrVoid |
timeInterval | | HandleInterval | undefined |
checkpointInterval | | HandleInterval | undefined |
type | string | undefined |
fetchConfig | | Partial<MoveAccountFetchConfig> | undefined |
handlerName | string |
Returns
this
Inherited from
SuiBaseObjectOrAddressProcessorInternal.onIntervalonTimeInterval()
onTimeInterval(
handler: (dynamicFieldObjects: SuiMoveObjectInput[], ctx: SuiObjectContext) => PromiseOrVoid,
timeIntervalInMinutes?: number,
backfillTimeIntervalInMinutes?: number,
type?: string,
fetchConfig?: Partial<MoveAccountFetchConfig>
): this;Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (dynamicFieldObjects: SuiMoveObjectInput[], ctx: SuiObjectContext) => PromiseOrVoid | undefined |
timeIntervalInMinutes | number | 60 |
backfillTimeIntervalInMinutes | number | 240 |
type? | string | undefined |
fetchConfig? | Partial<MoveAccountFetchConfig> | undefined |
Returns
this
Inherited from
SuiBaseObjectOrAddressProcessorInternal.onTimeIntervalbind()
static bind(options: SuiObjectBindOptions): SuiWrappedObjectProcessor;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.
Parameters
| Parameter | Type |
|---|---|
options | SuiObjectBindOptions |
Returns
SuiWrappedObjectProcessor