IotaAddressProcessorTemplate
Class in @sentio/sdk/iota
Defined in @sentio/sdk/iota
Extends
IotaObjectOrAddressProcessorTemplate<(objects:IotaMoveObject[],ctx:IotaAddressContext) =>PromiseOrVoid,IotaBindOptions,IotaAddressProcessor>
Constructors
Constructor
new IotaAddressProcessorTemplate(): IotaAddressProcessorTemplate;Returns
IotaAddressProcessorTemplate
Inherited from
IotaObjectOrAddressProcessorTemplate<
(objects: IotaMoveObject[], ctx: IotaAddressContext) => PromiseOrVoid,
IotaBindOptions,
IotaAddressProcessor
>.constructorProperties
| Property | Type | Default value | Inherited from |
|---|---|---|---|
id | number | undefined | IotaObjectProcessorTemplate.id |
instances | Set<string> | undefined | IotaObjectProcessorTemplate.instances |
objectHandlers | ObjectHandler<(objects: object[], ctx: IotaAddressContext) => PromiseOrVoid>[] | [] | IotaObjectOrAddressProcessorTemplate.objectHandlers |
Methods
bind()
bind(options: IotaBindOptions, ctx: IotaContext): void;Parameters
| Parameter | Type |
|---|---|
options | IotaBindOptions |
ctx | IotaContext |
Returns
void
Inherited from
IotaObjectOrAddressProcessorTemplate.bindcreateProcessor()
createProcessor(options: IotaBindOptions): IotaAddressProcessor;Parameters
| Parameter | Type |
|---|---|
options | IotaBindOptions |
Returns
Overrides
IotaObjectOrAddressProcessorTemplate.createProcessoronCheckpointInterval()
onCheckpointInterval(
handler: (objects: object[], ctx: IotaAddressContext) => PromiseOrVoid,
checkpointInterval?: number,
backfillCheckpointInterval?: number,
type?: string,
fetchConfig?: Partial<MoveAccountFetchConfig>
): this;Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (objects: object[], ctx: IotaAddressContext) => PromiseOrVoid | undefined |
checkpointInterval | number | 100000 |
backfillCheckpointInterval | number | 400000 |
type? | string | undefined |
fetchConfig? | Partial<MoveAccountFetchConfig> | undefined |
Returns
this
Inherited from
IotaObjectOrAddressProcessorTemplate.onCheckpointIntervalonTimeInterval()
onTimeInterval(
handler: (objects: object[], ctx: IotaAddressContext) => PromiseOrVoid,
timeIntervalInMinutes?: number,
backfillTimeIntervalInMinutes?: number,
type?: string,
fetchConfig?: Partial<MoveAccountFetchConfig>
): this;Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (objects: object[], ctx: IotaAddressContext) => PromiseOrVoid | undefined |
timeIntervalInMinutes | number | 60 |
backfillTimeIntervalInMinutes | number | 240 |
type? | string | undefined |
fetchConfig? | Partial<MoveAccountFetchConfig> | undefined |
Returns
this
Inherited from
IotaObjectOrAddressProcessorTemplate.onTimeIntervalonTransactionBlock()
onTransactionBlock(
handler: (transaction: IotaTransactionBlockResponse, ctx: IotaContext) => void,
filter?: TransactionFilter,
fetchConfig?: Partial<MoveFetchConfig>
): this;Parameters
| Parameter | Type |
|---|---|
handler | (transaction: IotaTransactionBlockResponse, ctx: IotaContext) => void |
filter? | TransactionFilter |
fetchConfig? | Partial<MoveFetchConfig> |
Returns
this
startInstance()
startInstance(options: IotaBindOptions, ctx: IotaContext): void;Parameters
| Parameter | Type |
|---|---|
options | IotaBindOptions |
ctx | IotaContext |
Returns
void
Inherited from
IotaObjectOrAddressProcessorTemplate.startInstanceunbind()
unbind(options: IotaBindOptions, ctx: IotaContext): void;Parameters
| Parameter | Type |
|---|---|
options | IotaBindOptions |
ctx | IotaContext |
Returns
void
Inherited from
IotaObjectOrAddressProcessorTemplate.unbind