AptosResourceProcessorTemplate
Class in @sentio/sdk/aptos
Defined in @sentio/sdk/aptos
Constructors
Constructor
new AptosResourceProcessorTemplate(): AptosResourceProcessorTemplate;Returns
AptosResourceProcessorTemplate
Properties
Methods
bind()
bind(options: AptosBindOptions, ctx: AptosResourcesContext): void;Parameters
| Parameter | Type |
|---|---|
options | AptosBindOptions |
ctx | AptosResourcesContext |
Returns
void
createProcessor()
createProcessor(options: AptosBindOptions): AptosResourcesProcessor;Parameters
| Parameter | Type |
|---|---|
options | AptosBindOptions |
Returns
onTimeInterval()
onTimeInterval(
handler: (resources: MoveResource[], ctx: AptosResourcesContext) => PromiseOrVoid,
timeIntervalInMinutes?: number,
backfillTimeIntervalInMinutes?: number,
type?: string,
handlerOptions?: HandlerOptions<MoveAccountFetchConfig, MoveResource[]>
): this;Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (resources: MoveResource[], ctx: AptosResourcesContext) => PromiseOrVoid | undefined |
timeIntervalInMinutes | number | 60 |
backfillTimeIntervalInMinutes | number | 240 |
type? | string | undefined |
handlerOptions? | HandlerOptions<MoveAccountFetchConfig, MoveResource[]> | undefined |
Returns
this
onVersionInterval()
onVersionInterval(
handler: (resources: MoveResource[], ctx: AptosResourcesContext) => PromiseOrVoid,
checkpointInterval?: number,
backfillCheckpointInterval?: number,
type?: string,
handlerOptions?: HandlerOptions<MoveAccountFetchConfig, MoveResource[]>
): this;Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (resources: MoveResource[], ctx: AptosResourcesContext) => PromiseOrVoid | undefined |
checkpointInterval | number | 100000 |
backfillCheckpointInterval | number | 400000 |
type? | string | undefined |
handlerOptions? | HandlerOptions<MoveAccountFetchConfig, MoveResource[]> | undefined |
Returns
this
startInstance()
startInstance(options: AptosBindOptions, ctx: AptosResourcesContext): void;Parameters
| Parameter | Type |
|---|---|
options | AptosBindOptions |
ctx | AptosResourcesContext |
Returns
void