AptosResourceProcessorTemplate

Class in @sentio/sdk/aptos

Defined in @sentio/sdk/aptos

Constructors

Constructor

new AptosResourceProcessorTemplate(): AptosResourceProcessorTemplate;

Returns

AptosResourceProcessorTemplate

Properties

PropertyTypeDefault value
handlersHandler[][]
idnumberundefined
instancesSet<string>undefined

Methods

bind()

bind(options: AptosBindOptions, ctx: AptosResourcesContext): void;

Parameters

Returns

void


createProcessor()

createProcessor(options: AptosBindOptions): AptosResourcesProcessor;

Parameters

ParameterType
optionsAptosBindOptions

Returns

AptosResourcesProcessor


onTimeInterval()

onTimeInterval(
   handler: (resources: MoveResource[], ctx: AptosResourcesContext) => PromiseOrVoid, 
   timeIntervalInMinutes?: number, 
   backfillTimeIntervalInMinutes?: number, 
   type?: string, 
   handlerOptions?: HandlerOptions<MoveAccountFetchConfig, MoveResource[]>
): this;

Parameters

ParameterTypeDefault value
handler(resources: MoveResource[], ctx: AptosResourcesContext) => PromiseOrVoidundefined
timeIntervalInMinutesnumber60
backfillTimeIntervalInMinutesnumber240
type?stringundefined
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

ParameterTypeDefault value
handler(resources: MoveResource[], ctx: AptosResourcesContext) => PromiseOrVoidundefined
checkpointIntervalnumber100000
backfillCheckpointIntervalnumber400000
type?stringundefined
handlerOptions?HandlerOptions<MoveAccountFetchConfig, MoveResource[]>undefined

Returns

this


startInstance()

startInstance(options: AptosBindOptions, ctx: AptosResourcesContext): void;

Parameters

Returns

void

On this page