WETH9Processor

Class in @sentio/sdk/eth/builtin › weth9

Defined in @sentio/sdk/eth/builtin › weth9

Extends

Constructors

Constructor

new WETH9Processor(config: BindOptions): WETH9Processor;

Parameters

ParameterType
configBindOptions

Returns

WETH9Processor

Inherited from

BaseProcessor.constructor

Properties

PropertyModifierTypeInherited from
blockHandlerspublicBlockHandler[]BaseProcessor.blockHandlers
configpublicBindInternalOptionsBaseProcessor.config
eventHandlerspublicEventsHandler[]BaseProcessor.eventHandlers
traceHandlerspublicTraceHandler[]BaseProcessor.traceHandlers
filtersstaticobject-
filters.ApprovalpublicDeferredTopicFilter-
filters.DepositpublicDeferredTopicFilter-
filters.TransferpublicDeferredTopicFilter-
filters.WithdrawalpublicDeferredTopicFilter-

Methods

getChainId()

getChainId(): EthChainId;

Returns

EthChainId

Inherited from

BaseProcessor.getChainId


onBlockInterval()

onBlockInterval(
   handler: (block: RichBlock, ctx: ContractContext<WETH9, WETH9BoundContractView>) => PromiseOrVoid, 
   blockInterval?: number, 
   backfillBlockInterval?: number, 
   handlerOptions?: HandlerOptions<EthFetchConfig, RichBlock>, 
   preprocessHandler?: (block: RichBlock, ctx: ContractContext<WETH9, WETH9BoundContractView>, preprocessStore: object) => Promise<PreprocessResult>
): this;

Parameters

ParameterTypeDefault value
handler(block: RichBlock, ctx: ContractContext<WETH9, WETH9BoundContractView>) => PromiseOrVoidundefined
blockIntervalnumber250
backfillBlockIntervalnumber1000
handlerOptions?HandlerOptions<EthFetchConfig, RichBlock>undefined
preprocessHandler?(block: RichBlock, ctx: ContractContext<WETH9, WETH9BoundContractView>, preprocessStore: object) => Promise<PreprocessResult>defaultPreprocessHandler

Returns

this

Inherited from

BaseProcessor.onBlockInterval


onCallAllowance()

onCallAllowance(
   handler: (call: AllowanceCallTrace, ctx: WETH9Context) => void, 
   handlerOptions?: HandlerOptions<EthFetchConfig, AllowanceCallTrace>, 
   preprocessHandler?: (call: AllowanceCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>
): this;

Parameters

ParameterType
handler(call: AllowanceCallTrace, ctx: WETH9Context) => void
handlerOptions?HandlerOptions<EthFetchConfig, AllowanceCallTrace>
preprocessHandler?(call: AllowanceCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>

Returns

this


onCallApprove()

onCallApprove(
   handler: (call: ApproveCallTrace, ctx: WETH9Context) => void, 
   handlerOptions?: HandlerOptions<EthFetchConfig, ApproveCallTrace>, 
   preprocessHandler?: (call: ApproveCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>
): this;

Parameters

ParameterType
handler(call: ApproveCallTrace, ctx: WETH9Context) => void
handlerOptions?HandlerOptions<EthFetchConfig, ApproveCallTrace>
preprocessHandler?(call: ApproveCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>

Returns

this


onCallBalanceOf()

onCallBalanceOf(
   handler: (call: BalanceOfCallTrace, ctx: WETH9Context) => void, 
   handlerOptions?: HandlerOptions<EthFetchConfig, BalanceOfCallTrace>, 
   preprocessHandler?: (call: BalanceOfCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>
): this;

Parameters

ParameterType
handler(call: BalanceOfCallTrace, ctx: WETH9Context) => void
handlerOptions?HandlerOptions<EthFetchConfig, BalanceOfCallTrace>
preprocessHandler?(call: BalanceOfCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>

Returns

this


onCallDecimals()

onCallDecimals(
   handler: (call: DecimalsCallTrace, ctx: WETH9Context) => void, 
   handlerOptions?: HandlerOptions<EthFetchConfig, DecimalsCallTrace>, 
   preprocessHandler?: (call: DecimalsCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>
): this;

Parameters

ParameterType
handler(call: DecimalsCallTrace, ctx: WETH9Context) => void
handlerOptions?HandlerOptions<EthFetchConfig, DecimalsCallTrace>
preprocessHandler?(call: DecimalsCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>

Returns

this


onCallDeposit()

onCallDeposit(
   handler: (call: DepositCallTrace, ctx: WETH9Context) => void, 
   handlerOptions?: HandlerOptions<EthFetchConfig, DepositCallTrace>, 
   preprocessHandler?: (call: DepositCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>
): this;

Parameters

ParameterType
handler(call: DepositCallTrace, ctx: WETH9Context) => void
handlerOptions?HandlerOptions<EthFetchConfig, DepositCallTrace>
preprocessHandler?(call: DepositCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>

Returns

this


onCallName()

onCallName(
   handler: (call: NameCallTrace, ctx: WETH9Context) => void, 
   handlerOptions?: HandlerOptions<EthFetchConfig, NameCallTrace>, 
   preprocessHandler?: (call: NameCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>
): this;

Parameters

ParameterType
handler(call: NameCallTrace, ctx: WETH9Context) => void
handlerOptions?HandlerOptions<EthFetchConfig, NameCallTrace>
preprocessHandler?(call: NameCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>

Returns

this


onCallSymbol()

onCallSymbol(
   handler: (call: SymbolCallTrace, ctx: WETH9Context) => void, 
   handlerOptions?: HandlerOptions<EthFetchConfig, SymbolCallTrace>, 
   preprocessHandler?: (call: SymbolCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>
): this;

Parameters

ParameterType
handler(call: SymbolCallTrace, ctx: WETH9Context) => void
handlerOptions?HandlerOptions<EthFetchConfig, SymbolCallTrace>
preprocessHandler?(call: SymbolCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>

Returns

this


onCallTotalSupply()

onCallTotalSupply(
   handler: (call: TotalSupplyCallTrace, ctx: WETH9Context) => void, 
   handlerOptions?: HandlerOptions<EthFetchConfig, TotalSupplyCallTrace>, 
   preprocessHandler?: (call: TotalSupplyCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>
): this;

Parameters

ParameterType
handler(call: TotalSupplyCallTrace, ctx: WETH9Context) => void
handlerOptions?HandlerOptions<EthFetchConfig, TotalSupplyCallTrace>
preprocessHandler?(call: TotalSupplyCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>

Returns

this


onCallTransfer()

onCallTransfer(
   handler: (call: TransferCallTrace, ctx: WETH9Context) => void, 
   handlerOptions?: HandlerOptions<EthFetchConfig, TransferCallTrace>, 
   preprocessHandler?: (call: TransferCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>
): this;

Parameters

ParameterType
handler(call: TransferCallTrace, ctx: WETH9Context) => void
handlerOptions?HandlerOptions<EthFetchConfig, TransferCallTrace>
preprocessHandler?(call: TransferCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>

Returns

this


onCallTransferFrom()

onCallTransferFrom(
   handler: (call: TransferFromCallTrace, ctx: WETH9Context) => void, 
   handlerOptions?: HandlerOptions<EthFetchConfig, TransferFromCallTrace>, 
   preprocessHandler?: (call: TransferFromCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>
): this;

Parameters

ParameterType
handler(call: TransferFromCallTrace, ctx: WETH9Context) => void
handlerOptions?HandlerOptions<EthFetchConfig, TransferFromCallTrace>
preprocessHandler?(call: TransferFromCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>

Returns

this


onCallWithdraw()

onCallWithdraw(
   handler: (call: WithdrawCallTrace, ctx: WETH9Context) => void, 
   handlerOptions?: HandlerOptions<EthFetchConfig, WithdrawCallTrace>, 
   preprocessHandler?: (call: WithdrawCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>
): this;

Parameters

ParameterType
handler(call: WithdrawCallTrace, ctx: WETH9Context) => void
handlerOptions?HandlerOptions<EthFetchConfig, WithdrawCallTrace>
preprocessHandler?(call: WithdrawCallTrace, ctx: WETH9Context) => Promise<PreprocessResult>

Returns

this


onEvent()

onEvent<T extends TypedEvent<any, any> = TypedEvent<any, any>>(
   handler: (event: T, ctx: ContractContext<WETH9, WETH9BoundContractView>) => PromiseOrVoid, 
   handlerOptions?: HandlerOptions<EthFetchConfig, T>, 
   preprocessHandler?: (event: T, ctx: ContractContext<WETH9, WETH9BoundContractView>, preprocessStore: object) => Promise<PreprocessResult>
): this;

Type Parameters

Type ParameterDefault type
T extends TypedEvent<any, any>TypedEvent<any, any>

Parameters

ParameterTypeDefault value
handler(event: T, ctx: ContractContext<WETH9, WETH9BoundContractView>) => PromiseOrVoidundefined
handlerOptions?HandlerOptions<EthFetchConfig, T>undefined
preprocessHandler?(event: T, ctx: ContractContext<WETH9, WETH9BoundContractView>, preprocessStore: object) => Promise<PreprocessResult>defaultPreprocessHandler

Returns

this

Inherited from

BaseProcessor.onEvent


onEventApproval()

onEventApproval(
   handler: (event: ApprovalEvent, ctx: WETH9Context) => void, 
   filter?: DeferredTopicFilter | DeferredTopicFilter[], 
   handlerOptions?: HandlerOptions<EthFetchConfig, ApprovalEvent>, 
   preprocessHandler?: (event: ApprovalEvent, ctx: WETH9Context, preprocessStore: object) => Promise<PreprocessResult>
): this;

Parameters

ParameterType
handler(event: ApprovalEvent, ctx: WETH9Context) => void
filter?DeferredTopicFilter | DeferredTopicFilter[]
handlerOptions?HandlerOptions<EthFetchConfig, ApprovalEvent>
preprocessHandler?(event: ApprovalEvent, ctx: WETH9Context, preprocessStore: object) => Promise<PreprocessResult>

Returns

this


onEventDeposit()

onEventDeposit(
   handler: (event: DepositEvent, ctx: WETH9Context) => void, 
   filter?: DeferredTopicFilter | DeferredTopicFilter[], 
   handlerOptions?: HandlerOptions<EthFetchConfig, DepositEvent>, 
   preprocessHandler?: (event: DepositEvent, ctx: WETH9Context, preprocessStore: object) => Promise<PreprocessResult>
): this;

Parameters

ParameterType
handler(event: DepositEvent, ctx: WETH9Context) => void
filter?DeferredTopicFilter | DeferredTopicFilter[]
handlerOptions?HandlerOptions<EthFetchConfig, DepositEvent>
preprocessHandler?(event: DepositEvent, ctx: WETH9Context, preprocessStore: object) => Promise<PreprocessResult>

Returns

this


onEventTransfer()

onEventTransfer(
   handler: (event: TransferEvent, ctx: WETH9Context) => void, 
   filter?: DeferredTopicFilter | DeferredTopicFilter[], 
   handlerOptions?: HandlerOptions<EthFetchConfig, TransferEvent>, 
   preprocessHandler?: (event: TransferEvent, ctx: WETH9Context, preprocessStore: object) => Promise<PreprocessResult>
): this;

Parameters

ParameterType
handler(event: TransferEvent, ctx: WETH9Context) => void
filter?DeferredTopicFilter | DeferredTopicFilter[]
handlerOptions?HandlerOptions<EthFetchConfig, TransferEvent>
preprocessHandler?(event: TransferEvent, ctx: WETH9Context, preprocessStore: object) => Promise<PreprocessResult>

Returns

this


onEventWithdrawal()

onEventWithdrawal(
   handler: (event: WithdrawalEvent, ctx: WETH9Context) => void, 
   filter?: DeferredTopicFilter | DeferredTopicFilter[], 
   handlerOptions?: HandlerOptions<EthFetchConfig, WithdrawalEvent>, 
   preprocessHandler?: (event: WithdrawalEvent, ctx: WETH9Context, preprocessStore: object) => Promise<PreprocessResult>
): this;

Parameters

ParameterType
handler(event: WithdrawalEvent, ctx: WETH9Context) => void
filter?DeferredTopicFilter | DeferredTopicFilter[]
handlerOptions?HandlerOptions<EthFetchConfig, WithdrawalEvent>
preprocessHandler?(event: WithdrawalEvent, ctx: WETH9Context, preprocessStore: object) => Promise<PreprocessResult>

Returns

this


onInterval()

onInterval(
   handler: (block: RichBlock, ctx: ContractContext<WETH9, WETH9BoundContractView>) => PromiseOrVoid, 
   timeInterval: 
  | HandleInterval
  | undefined, 
   blockInterval: 
  | HandleInterval
  | undefined, 
   handlerOptions?: HandlerOptions<EthFetchConfig, RichBlock>, 
   preprocessHandler?: (block: RichBlock, ctx: ContractContext<WETH9, WETH9BoundContractView>, preprocessStore: object) => Promise<PreprocessResult>, 
   handlerName?: string
): this;

Parameters

ParameterTypeDefault value
handler(block: RichBlock, ctx: ContractContext<WETH9, WETH9BoundContractView>) => PromiseOrVoidundefined
timeInterval| HandleInterval | undefinedundefined
blockInterval| HandleInterval | undefinedundefined
handlerOptions?HandlerOptions<EthFetchConfig, RichBlock>undefined
preprocessHandler?(block: RichBlock, ctx: ContractContext<WETH9, WETH9BoundContractView>, preprocessStore: object) => Promise<PreprocessResult>defaultPreprocessHandler
handlerName?string...

Returns

this

Inherited from

BaseProcessor.onInterval


onTimeInterval()

onTimeInterval(
   handler: (block: RichBlock, ctx: ContractContext<WETH9, WETH9BoundContractView>) => PromiseOrVoid, 
   timeIntervalInMinutes?: number, 
   backfillTimeIntervalInMinutes?: number, 
   handlerOptions?: HandlerOptions<EthFetchConfig, RichBlock>, 
   preprocessHandler?: (block: RichBlock, ctx: ContractContext<WETH9, WETH9BoundContractView>, preprocessStore: object) => Promise<PreprocessResult>
): this;

Parameters

ParameterTypeDefault value
handler(block: RichBlock, ctx: ContractContext<WETH9, WETH9BoundContractView>) => PromiseOrVoidundefined
timeIntervalInMinutesnumber60
backfillTimeIntervalInMinutesnumber240
handlerOptions?HandlerOptions<EthFetchConfig, RichBlock>undefined
preprocessHandler?(block: RichBlock, ctx: ContractContext<WETH9, WETH9BoundContractView>, preprocessStore: object) => Promise<PreprocessResult>defaultPreprocessHandler

Returns

this

Inherited from

BaseProcessor.onTimeInterval


onTrace()

onTrace(
   handler: (event: TypedCallTrace, ctx: ContractContext<WETH9, WETH9BoundContractView>) => PromiseOrVoid, 
   handlerOptions?: HandlerOptions<EthFetchConfig, TypedCallTrace<any, any>>, 
   preprocessHandler?: (trace: TypedCallTrace, ctx: ContractContext<WETH9, WETH9BoundContractView>, preprocessStore: object) => Promise<PreprocessResult>
): this;

Parameters

ParameterTypeDefault value
handler(event: TypedCallTrace, ctx: ContractContext<WETH9, WETH9BoundContractView>) => PromiseOrVoidundefined
handlerOptions?HandlerOptions<EthFetchConfig, TypedCallTrace<any, any>>undefined
preprocessHandler?(trace: TypedCallTrace, ctx: ContractContext<WETH9, WETH9BoundContractView>, preprocessStore: object) => Promise<PreprocessResult>defaultPreprocessHandler

Returns

this

Inherited from

BaseProcessor.onTrace


bind()

static bind(options: BindOptions): WETH9Processor;

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

ParameterType
optionsBindOptions

Returns

WETH9Processor

On this page