SuiAddressProcessorTemplate
Class in @sentio/sdk/sui
Defined in @sentio/sdk/sui
Extends
SuiObjectOrAddressProcessorTemplate<(objects:SuiMoveObjectInput[],ctx:SuiAddressContext) =>PromiseOrVoid,SuiBindOptions,SuiAddressProcessor>
Constructors
Constructor
new SuiAddressProcessorTemplate(): SuiAddressProcessorTemplate;Returns
SuiAddressProcessorTemplate
Inherited from
SuiObjectOrAddressProcessorTemplate<
(objects: SuiMoveObjectInput[], ctx: SuiAddressContext) => PromiseOrVoid,
SuiBindOptions,
SuiAddressProcessor
>.constructorProperties
| Property | Type | Default value | Inherited from |
|---|---|---|---|
id | number | undefined | SuiObjectProcessorTemplate.id |
instances | Set<string> | undefined | SuiObjectProcessorTemplate.instances |
objectHandlers | ObjectHandler<(objects: SuiMoveObjectInput[], ctx: SuiAddressContext) => PromiseOrVoid>[] | [] | SuiObjectOrAddressProcessorTemplate.objectHandlers |
Methods
bind()
bind(options: SuiBindOptions, ctx: SuiContext): void;Parameters
| Parameter | Type |
|---|---|
options | SuiBindOptions |
ctx | SuiContext |
Returns
void
Inherited from
SuiObjectOrAddressProcessorTemplate.bindcreateProcessor()
createProcessor(options: SuiBindOptions): SuiAddressProcessor;Parameters
| Parameter | Type |
|---|---|
options | SuiBindOptions |
Returns
Overrides
SuiObjectOrAddressProcessorTemplate.createProcessoronCheckpointInterval()
onCheckpointInterval(
handler: (objects: SuiMoveObjectInput[], ctx: SuiAddressContext) => PromiseOrVoid,
checkpointInterval?: number,
backfillCheckpointInterval?: number,
type?: string,
fetchConfig?: Partial<MoveAccountFetchConfig>
): this;Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (objects: SuiMoveObjectInput[], ctx: SuiAddressContext) => PromiseOrVoid | undefined |
checkpointInterval | number | 100000 |
backfillCheckpointInterval | number | 400000 |
type? | string | undefined |
fetchConfig? | Partial<MoveAccountFetchConfig> | undefined |
Returns
this
Inherited from
SuiObjectOrAddressProcessorTemplate.onCheckpointIntervalonTimeInterval()
onTimeInterval(
handler: (objects: SuiMoveObjectInput[], ctx: SuiAddressContext) => PromiseOrVoid,
timeIntervalInMinutes?: number,
backfillTimeIntervalInMinutes?: number,
type?: string,
fetchConfig?: Partial<MoveAccountFetchConfig>
): this;Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (objects: SuiMoveObjectInput[], ctx: SuiAddressContext) => PromiseOrVoid | undefined |
timeIntervalInMinutes | number | 60 |
backfillTimeIntervalInMinutes | number | 240 |
type? | string | undefined |
fetchConfig? | Partial<MoveAccountFetchConfig> | undefined |
Returns
this
Inherited from
SuiObjectOrAddressProcessorTemplate.onTimeIntervalonTransactionBlock()
onTransactionBlock(
handler: (transaction: ExecutedTransaction, ctx: SuiContext) => void,
filter?: TransactionFilter,
fetchConfig?: Partial<MoveFetchConfig>
): this;Parameters
| Parameter | Type |
|---|---|
handler | (transaction: ExecutedTransaction, ctx: SuiContext) => void |
filter? | TransactionFilter |
fetchConfig? | Partial<MoveFetchConfig> |
Returns
this
startInstance()
startInstance(options: SuiBindOptions, ctx: SuiContext): void;Parameters
| Parameter | Type |
|---|---|
options | SuiBindOptions |
ctx | SuiContext |
Returns
void
Inherited from
SuiObjectOrAddressProcessorTemplate.startInstanceunbind()
unbind(options: SuiBindOptions, ctx: SuiContext): void;Parameters
| Parameter | Type |
|---|---|
options | SuiBindOptions |
ctx | SuiContext |
Returns
void
Inherited from
SuiObjectOrAddressProcessorTemplate.unbind