ERC20BytesProcessor
Class in @sentio/sdk/eth/builtin › erc20bytes
Defined in @sentio/sdk/eth/builtin › erc20bytes
Extends
Constructors
Constructor
new ERC20BytesProcessor(config: BindOptions): ERC20BytesProcessor;Parameters
| Parameter | Type |
|---|---|
config | BindOptions |
Returns
ERC20BytesProcessor
Inherited from
Properties
| Property | Modifier | Type | Inherited from |
|---|---|---|---|
blockHandlers | public | BlockHandler[] | BaseProcessor.blockHandlers |
config | public | BindInternalOptions | BaseProcessor.config |
eventHandlers | public | EventsHandler[] | BaseProcessor.eventHandlers |
traceHandlers | public | TraceHandler[] | BaseProcessor.traceHandlers |
filters | static | object | - |
filters.Approval | public | DeferredTopicFilter | - |
filters.Transfer | public | DeferredTopicFilter | - |
Methods
getChainId()
getChainId(): EthChainId;Returns
EthChainId
Inherited from
onBlockInterval()
onBlockInterval(
handler: (block: RichBlock, ctx: ContractContext<ERC20Bytes, ERC20BytesBoundContractView>) => PromiseOrVoid,
blockInterval?: number,
backfillBlockInterval?: number,
handlerOptions?: HandlerOptions<EthFetchConfig, RichBlock>,
preprocessHandler?: (block: RichBlock, ctx: ContractContext<ERC20Bytes, ERC20BytesBoundContractView>, preprocessStore: object) => Promise<PreprocessResult>
): this;Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (block: RichBlock, ctx: ContractContext<ERC20Bytes, ERC20BytesBoundContractView>) => PromiseOrVoid | undefined |
blockInterval | number | 250 |
backfillBlockInterval | number | 1000 |
handlerOptions? | HandlerOptions<EthFetchConfig, RichBlock> | undefined |
preprocessHandler? | (block: RichBlock, ctx: ContractContext<ERC20Bytes, ERC20BytesBoundContractView>, preprocessStore: object) => Promise<PreprocessResult> | defaultPreprocessHandler |
Returns
this
Inherited from
onCallAllowance()
onCallAllowance(
handler: (call: AllowanceCallTrace, ctx: ERC20BytesContext) => void,
handlerOptions?: HandlerOptions<EthFetchConfig, AllowanceCallTrace>,
preprocessHandler?: (call: AllowanceCallTrace, ctx: ERC20BytesContext) => Promise<PreprocessResult>
): this;Parameters
| Parameter | Type |
|---|---|
handler | (call: AllowanceCallTrace, ctx: ERC20BytesContext) => void |
handlerOptions? | HandlerOptions<EthFetchConfig, AllowanceCallTrace> |
preprocessHandler? | (call: AllowanceCallTrace, ctx: ERC20BytesContext) => Promise<PreprocessResult> |
Returns
this
onCallApprove()
onCallApprove(
handler: (call: ApproveCallTrace, ctx: ERC20BytesContext) => void,
handlerOptions?: HandlerOptions<EthFetchConfig, ApproveCallTrace>,
preprocessHandler?: (call: ApproveCallTrace, ctx: ERC20BytesContext) => Promise<PreprocessResult>
): this;Parameters
| Parameter | Type |
|---|---|
handler | (call: ApproveCallTrace, ctx: ERC20BytesContext) => void |
handlerOptions? | HandlerOptions<EthFetchConfig, ApproveCallTrace> |
preprocessHandler? | (call: ApproveCallTrace, ctx: ERC20BytesContext) => Promise<PreprocessResult> |
Returns
this
onCallBalanceOf()
onCallBalanceOf(
handler: (call: BalanceOfCallTrace, ctx: ERC20BytesContext) => void,
handlerOptions?: HandlerOptions<EthFetchConfig, BalanceOfCallTrace>,
preprocessHandler?: (call: BalanceOfCallTrace, ctx: ERC20BytesContext) => Promise<PreprocessResult>
): this;Parameters
| Parameter | Type |
|---|---|
handler | (call: BalanceOfCallTrace, ctx: ERC20BytesContext) => void |
handlerOptions? | HandlerOptions<EthFetchConfig, BalanceOfCallTrace> |
preprocessHandler? | (call: BalanceOfCallTrace, ctx: ERC20BytesContext) => Promise<PreprocessResult> |
Returns
this
onCallDecimals()
onCallDecimals(
handler: (call: DecimalsCallTrace, ctx: ERC20BytesContext) => void,
handlerOptions?: HandlerOptions<EthFetchConfig, DecimalsCallTrace>,
preprocessHandler?: (call: DecimalsCallTrace, ctx: ERC20BytesContext) => Promise<PreprocessResult>
): this;Parameters
| Parameter | Type |
|---|---|
handler | (call: DecimalsCallTrace, ctx: ERC20BytesContext) => void |
handlerOptions? | HandlerOptions<EthFetchConfig, DecimalsCallTrace> |
preprocessHandler? | (call: DecimalsCallTrace, ctx: ERC20BytesContext) => Promise<PreprocessResult> |
Returns
this
onCallName()
onCallName(
handler: (call: NameCallTrace, ctx: ERC20BytesContext) => void,
handlerOptions?: HandlerOptions<EthFetchConfig, NameCallTrace>,
preprocessHandler?: (call: NameCallTrace, ctx: ERC20BytesContext) => Promise<PreprocessResult>
): this;Parameters
| Parameter | Type |
|---|---|
handler | (call: NameCallTrace, ctx: ERC20BytesContext) => void |
handlerOptions? | HandlerOptions<EthFetchConfig, NameCallTrace> |
preprocessHandler? | (call: NameCallTrace, ctx: ERC20BytesContext) => Promise<PreprocessResult> |
Returns
this
onCallSymbol()
onCallSymbol(
handler: (call: SymbolCallTrace, ctx: ERC20BytesContext) => void,
handlerOptions?: HandlerOptions<EthFetchConfig, SymbolCallTrace>,
preprocessHandler?: (call: SymbolCallTrace, ctx: ERC20BytesContext) => Promise<PreprocessResult>
): this;Parameters
| Parameter | Type |
|---|---|
handler | (call: SymbolCallTrace, ctx: ERC20BytesContext) => void |
handlerOptions? | HandlerOptions<EthFetchConfig, SymbolCallTrace> |
preprocessHandler? | (call: SymbolCallTrace, ctx: ERC20BytesContext) => Promise<PreprocessResult> |
Returns
this
onCallTotalSupply()
onCallTotalSupply(
handler: (call: TotalSupplyCallTrace, ctx: ERC20BytesContext) => void,
handlerOptions?: HandlerOptions<EthFetchConfig, TotalSupplyCallTrace>,
preprocessHandler?: (call: TotalSupplyCallTrace, ctx: ERC20BytesContext) => Promise<PreprocessResult>
): this;Parameters
| Parameter | Type |
|---|---|
handler | (call: TotalSupplyCallTrace, ctx: ERC20BytesContext) => void |
handlerOptions? | HandlerOptions<EthFetchConfig, TotalSupplyCallTrace> |
preprocessHandler? | (call: TotalSupplyCallTrace, ctx: ERC20BytesContext) => Promise<PreprocessResult> |
Returns
this
onCallTransfer()
onCallTransfer(
handler: (call: TransferCallTrace, ctx: ERC20BytesContext) => void,
handlerOptions?: HandlerOptions<EthFetchConfig, TransferCallTrace>,
preprocessHandler?: (call: TransferCallTrace, ctx: ERC20BytesContext) => Promise<PreprocessResult>
): this;Parameters
| Parameter | Type |
|---|---|
handler | (call: TransferCallTrace, ctx: ERC20BytesContext) => void |
handlerOptions? | HandlerOptions<EthFetchConfig, TransferCallTrace> |
preprocessHandler? | (call: TransferCallTrace, ctx: ERC20BytesContext) => Promise<PreprocessResult> |
Returns
this
onCallTransferFrom()
onCallTransferFrom(
handler: (call: TransferFromCallTrace, ctx: ERC20BytesContext) => void,
handlerOptions?: HandlerOptions<EthFetchConfig, TransferFromCallTrace>,
preprocessHandler?: (call: TransferFromCallTrace, ctx: ERC20BytesContext) => Promise<PreprocessResult>
): this;Parameters
| Parameter | Type |
|---|---|
handler | (call: TransferFromCallTrace, ctx: ERC20BytesContext) => void |
handlerOptions? | HandlerOptions<EthFetchConfig, TransferFromCallTrace> |
preprocessHandler? | (call: TransferFromCallTrace, ctx: ERC20BytesContext) => Promise<PreprocessResult> |
Returns
this
onEvent()
onEvent<T extends TypedEvent<any, any> = TypedEvent<any, any>>(
handler: (event: T, ctx: ContractContext<ERC20Bytes, ERC20BytesBoundContractView>) => PromiseOrVoid,
handlerOptions?: HandlerOptions<EthFetchConfig, T>,
preprocessHandler?: (event: T, ctx: ContractContext<ERC20Bytes, ERC20BytesBoundContractView>, preprocessStore: object) => Promise<PreprocessResult>
): this;Type Parameters
| Type Parameter | Default type |
|---|---|
T extends TypedEvent<any, any> | TypedEvent<any, any> |
Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (event: T, ctx: ContractContext<ERC20Bytes, ERC20BytesBoundContractView>) => PromiseOrVoid | undefined |
handlerOptions? | HandlerOptions<EthFetchConfig, T> | undefined |
preprocessHandler? | (event: T, ctx: ContractContext<ERC20Bytes, ERC20BytesBoundContractView>, preprocessStore: object) => Promise<PreprocessResult> | defaultPreprocessHandler |
Returns
this
Inherited from
onEventApproval()
onEventApproval(
handler: (event: ApprovalEvent, ctx: ERC20BytesContext) => void,
filter?: DeferredTopicFilter | DeferredTopicFilter[],
handlerOptions?: HandlerOptions<EthFetchConfig, ApprovalEvent>,
preprocessHandler?: (event: ApprovalEvent, ctx: ERC20BytesContext, preprocessStore: object) => Promise<PreprocessResult>
): this;Parameters
| Parameter | Type |
|---|---|
handler | (event: ApprovalEvent, ctx: ERC20BytesContext) => void |
filter? | DeferredTopicFilter | DeferredTopicFilter[] |
handlerOptions? | HandlerOptions<EthFetchConfig, ApprovalEvent> |
preprocessHandler? | (event: ApprovalEvent, ctx: ERC20BytesContext, preprocessStore: object) => Promise<PreprocessResult> |
Returns
this
onEventTransfer()
onEventTransfer(
handler: (event: TransferEvent, ctx: ERC20BytesContext) => void,
filter?: DeferredTopicFilter | DeferredTopicFilter[],
handlerOptions?: HandlerOptions<EthFetchConfig, TransferEvent>,
preprocessHandler?: (event: TransferEvent, ctx: ERC20BytesContext, preprocessStore: object) => Promise<PreprocessResult>
): this;Parameters
| Parameter | Type |
|---|---|
handler | (event: TransferEvent, ctx: ERC20BytesContext) => void |
filter? | DeferredTopicFilter | DeferredTopicFilter[] |
handlerOptions? | HandlerOptions<EthFetchConfig, TransferEvent> |
preprocessHandler? | (event: TransferEvent, ctx: ERC20BytesContext, preprocessStore: object) => Promise<PreprocessResult> |
Returns
this
onInterval()
onInterval(
handler: (block: RichBlock, ctx: ContractContext<ERC20Bytes, ERC20BytesBoundContractView>) => PromiseOrVoid,
timeInterval:
| HandleInterval
| undefined,
blockInterval:
| HandleInterval
| undefined,
handlerOptions?: HandlerOptions<EthFetchConfig, RichBlock>,
preprocessHandler?: (block: RichBlock, ctx: ContractContext<ERC20Bytes, ERC20BytesBoundContractView>, preprocessStore: object) => Promise<PreprocessResult>,
handlerName?: string
): this;Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (block: RichBlock, ctx: ContractContext<ERC20Bytes, ERC20BytesBoundContractView>) => PromiseOrVoid | undefined |
timeInterval | | HandleInterval | undefined | undefined |
blockInterval | | HandleInterval | undefined | undefined |
handlerOptions? | HandlerOptions<EthFetchConfig, RichBlock> | undefined |
preprocessHandler? | (block: RichBlock, ctx: ContractContext<ERC20Bytes, ERC20BytesBoundContractView>, preprocessStore: object) => Promise<PreprocessResult> | defaultPreprocessHandler |
handlerName? | string | ... |
Returns
this
Inherited from
onTimeInterval()
onTimeInterval(
handler: (block: RichBlock, ctx: ContractContext<ERC20Bytes, ERC20BytesBoundContractView>) => PromiseOrVoid,
timeIntervalInMinutes?: number,
backfillTimeIntervalInMinutes?: number,
handlerOptions?: HandlerOptions<EthFetchConfig, RichBlock>,
preprocessHandler?: (block: RichBlock, ctx: ContractContext<ERC20Bytes, ERC20BytesBoundContractView>, preprocessStore: object) => Promise<PreprocessResult>
): this;Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (block: RichBlock, ctx: ContractContext<ERC20Bytes, ERC20BytesBoundContractView>) => PromiseOrVoid | undefined |
timeIntervalInMinutes | number | 60 |
backfillTimeIntervalInMinutes | number | 240 |
handlerOptions? | HandlerOptions<EthFetchConfig, RichBlock> | undefined |
preprocessHandler? | (block: RichBlock, ctx: ContractContext<ERC20Bytes, ERC20BytesBoundContractView>, preprocessStore: object) => Promise<PreprocessResult> | defaultPreprocessHandler |
Returns
this
Inherited from
onTrace()
onTrace(
handler: (event: TypedCallTrace, ctx: ContractContext<ERC20Bytes, ERC20BytesBoundContractView>) => PromiseOrVoid,
handlerOptions?: HandlerOptions<EthFetchConfig, TypedCallTrace<any, any>>,
preprocessHandler?: (trace: TypedCallTrace, ctx: ContractContext<ERC20Bytes, ERC20BytesBoundContractView>, preprocessStore: object) => Promise<PreprocessResult>
): this;Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (event: TypedCallTrace, ctx: ContractContext<ERC20Bytes, ERC20BytesBoundContractView>) => PromiseOrVoid | undefined |
handlerOptions? | HandlerOptions<EthFetchConfig, TypedCallTrace<any, any>> | undefined |
preprocessHandler? | (trace: TypedCallTrace, ctx: ContractContext<ERC20Bytes, ERC20BytesBoundContractView>, preprocessStore: object) => Promise<PreprocessResult> | defaultPreprocessHandler |
Returns
this
Inherited from
bind()
static bind(options: BindOptions): ERC20BytesProcessor;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 | BindOptions |
Returns
ERC20BytesProcessor