import { BigNumberish, Overrides } from "ethers"; import { HandlerOptions } from "@sentio/sdk"; import { BindOptions, BaseProcessor, BaseProcessorTemplate, BoundContractView, ContractContext, ContractView, EthChainId, TypedCallTrace, EthContext, EthFetchConfig, PreprocessResult } from "@sentio/sdk/eth"; import { EthCallParam, EthCallContext, PreparedData } from "@sentio/protos"; import { WETH9, ApprovalEvent, ApprovalEventFilter, TransferEvent, TransferEventFilter, DepositEvent, DepositEventFilter, WithdrawalEvent, WithdrawalEventFilter } from "./WETH9.js"; export interface NameCallObject { } export type NameCallTrace = TypedCallTrace<[], NameCallObject>; export interface ApproveCallObject { guy: string; wad: bigint; } export type ApproveCallTrace = TypedCallTrace<[ string, bigint ], ApproveCallObject>; export interface TotalSupplyCallObject { } export type TotalSupplyCallTrace = TypedCallTrace<[], TotalSupplyCallObject>; export interface TransferFromCallObject { src: string; dst: string; wad: bigint; } export type TransferFromCallTrace = TypedCallTrace<[ string, string, bigint ], TransferFromCallObject>; export interface WithdrawCallObject { wad: bigint; } export type WithdrawCallTrace = TypedCallTrace<[bigint], WithdrawCallObject>; export interface DecimalsCallObject { } export type DecimalsCallTrace = TypedCallTrace<[], DecimalsCallObject>; export interface BalanceOfCallObject { } export type BalanceOfCallTrace = TypedCallTrace<[string], BalanceOfCallObject>; export interface SymbolCallObject { } export type SymbolCallTrace = TypedCallTrace<[], SymbolCallObject>; export interface TransferCallObject { dst: string; wad: bigint; } export type TransferCallTrace = TypedCallTrace<[ string, bigint ], TransferCallObject>; export interface DepositCallObject { } export type DepositCallTrace = TypedCallTrace<[], DepositCallObject>; export interface AllowanceCallObject { } export type AllowanceCallTrace = TypedCallTrace<[ string, string ], AllowanceCallObject>; export declare class WETH9ContractView extends ContractView { constructor(contract: WETH9); name(overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; totalSupply(overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; decimals(overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; balanceOf(arg0: string, overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; symbol(overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; allowance(arg0: string, arg1: string, overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; callStatic: { contract: WETH9; approve(guy: string, wad: BigNumberish, overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; transferFrom(src: string, dst: string, wad: BigNumberish, overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; withdraw(wad: BigNumberish, overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; transfer(dst: string, wad: BigNumberish, overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; deposit(overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; }; encodeCall: { name(callContext: EthCallContext): EthCallParam; approve(guy: string, wad: BigNumberish, callContext: EthCallContext): EthCallParam; totalSupply(callContext: EthCallContext): EthCallParam; transferFrom(src: string, dst: string, wad: BigNumberish, callContext: EthCallContext): EthCallParam; withdraw(wad: BigNumberish, callContext: EthCallContext): EthCallParam; decimals(callContext: EthCallContext): EthCallParam; balanceOf(arg0: string, callContext: EthCallContext): EthCallParam; symbol(callContext: EthCallContext): EthCallParam; transfer(dst: string, wad: BigNumberish, callContext: EthCallContext): EthCallParam; deposit(callContext: EthCallContext): EthCallParam; allowance(arg0: string, arg1: string, callContext: EthCallContext): EthCallParam; }; } export declare class WETH9BoundContractView extends BoundContractView { name(overrides?: Overrides): Promise; totalSupply(overrides?: Overrides): Promise; decimals(overrides?: Overrides): Promise; balanceOf(arg0: string, overrides?: Overrides): Promise; symbol(overrides?: Overrides): Promise; allowance(arg0: string, arg1: string, overrides?: Overrides): Promise; callStatic: { view: WETH9ContractView; context: EthContext; approve(guy: string, wad: BigNumberish, overrides?: Overrides): Promise; transferFrom(src: string, dst: string, wad: BigNumberish, overrides?: Overrides): Promise; withdraw(wad: BigNumberish, overrides?: Overrides): Promise; transfer(dst: string, wad: BigNumberish, overrides?: Overrides): Promise; deposit(overrides?: Overrides): Promise; }; encodeCall: { view: WETH9ContractView; context: EthContext; name(overrides?: Overrides): EthCallParam; approve(guy: string, wad: BigNumberish, overrides?: Overrides): EthCallParam; totalSupply(overrides?: Overrides): EthCallParam; transferFrom(src: string, dst: string, wad: BigNumberish, overrides?: Overrides): EthCallParam; withdraw(wad: BigNumberish, overrides?: Overrides): EthCallParam; decimals(overrides?: Overrides): EthCallParam; balanceOf(arg0: string, overrides?: Overrides): EthCallParam; symbol(overrides?: Overrides): EthCallParam; transfer(dst: string, wad: BigNumberish, overrides?: Overrides): EthCallParam; deposit(overrides?: Overrides): EthCallParam; allowance(arg0: string, arg1: string, overrides?: Overrides): EthCallParam; }; } export type WETH9Context = ContractContext; export declare class WETH9Processor extends BaseProcessor { onEventApproval(handler: (event: ApprovalEvent, ctx: WETH9Context) => void, filter?: ApprovalEventFilter | ApprovalEventFilter[], handlerOptions?: HandlerOptions, preprocessHandler?: (event: ApprovalEvent, ctx: WETH9Context, preprocessStore: { [k: string]: any; }) => Promise): this; onEventTransfer(handler: (event: TransferEvent, ctx: WETH9Context) => void, filter?: TransferEventFilter | TransferEventFilter[], handlerOptions?: HandlerOptions, preprocessHandler?: (event: TransferEvent, ctx: WETH9Context, preprocessStore: { [k: string]: any; }) => Promise): this; onEventDeposit(handler: (event: DepositEvent, ctx: WETH9Context) => void, filter?: DepositEventFilter | DepositEventFilter[], handlerOptions?: HandlerOptions, preprocessHandler?: (event: DepositEvent, ctx: WETH9Context, preprocessStore: { [k: string]: any; }) => Promise): this; onEventWithdrawal(handler: (event: WithdrawalEvent, ctx: WETH9Context) => void, filter?: WithdrawalEventFilter | WithdrawalEventFilter[], handlerOptions?: HandlerOptions, preprocessHandler?: (event: WithdrawalEvent, ctx: WETH9Context, preprocessStore: { [k: string]: any; }) => Promise): this; onCallName(handler: (call: NameCallTrace, ctx: WETH9Context) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: NameCallTrace, ctx: WETH9Context) => Promise): this; onCallApprove(handler: (call: ApproveCallTrace, ctx: WETH9Context) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: ApproveCallTrace, ctx: WETH9Context) => Promise): this; onCallTotalSupply(handler: (call: TotalSupplyCallTrace, ctx: WETH9Context) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: TotalSupplyCallTrace, ctx: WETH9Context) => Promise): this; onCallTransferFrom(handler: (call: TransferFromCallTrace, ctx: WETH9Context) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: TransferFromCallTrace, ctx: WETH9Context) => Promise): this; onCallWithdraw(handler: (call: WithdrawCallTrace, ctx: WETH9Context) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: WithdrawCallTrace, ctx: WETH9Context) => Promise): this; onCallDecimals(handler: (call: DecimalsCallTrace, ctx: WETH9Context) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: DecimalsCallTrace, ctx: WETH9Context) => Promise): this; onCallBalanceOf(handler: (call: BalanceOfCallTrace, ctx: WETH9Context) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: BalanceOfCallTrace, ctx: WETH9Context) => Promise): this; onCallSymbol(handler: (call: SymbolCallTrace, ctx: WETH9Context) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: SymbolCallTrace, ctx: WETH9Context) => Promise): this; onCallTransfer(handler: (call: TransferCallTrace, ctx: WETH9Context) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: TransferCallTrace, ctx: WETH9Context) => Promise): this; onCallDeposit(handler: (call: DepositCallTrace, ctx: WETH9Context) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: DepositCallTrace, ctx: WETH9Context) => Promise): this; onCallAllowance(handler: (call: AllowanceCallTrace, ctx: WETH9Context) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: AllowanceCallTrace, ctx: WETH9Context) => Promise): this; static filters: { Approval(src?: string | null, guy?: string | null, wad?: null): ApprovalEventFilter; Transfer(src?: string | null, dst?: string | null, wad?: null): TransferEventFilter; Deposit(dst?: string | null, wad?: null): DepositEventFilter; Withdrawal(src?: string | null, wad?: null): WithdrawalEventFilter; }; protected CreateBoundContractView(): WETH9BoundContractView; static bind(options: BindOptions): WETH9Processor; } export declare class WETH9ProcessorTemplate extends BaseProcessorTemplate { bindInternal(options: BindOptions): WETH9Processor; onEventApproval(handler: (event: ApprovalEvent, ctx: WETH9Context) => void, filter?: ApprovalEventFilter | ApprovalEventFilter[], handlerOptions?: HandlerOptions, preprocessHandler?: (event: ApprovalEvent, ctx: WETH9Context, preprocessStore: { [k: string]: any; }) => Promise): this; onEventTransfer(handler: (event: TransferEvent, ctx: WETH9Context) => void, filter?: TransferEventFilter | TransferEventFilter[], handlerOptions?: HandlerOptions, preprocessHandler?: (event: TransferEvent, ctx: WETH9Context, preprocessStore: { [k: string]: any; }) => Promise): this; onEventDeposit(handler: (event: DepositEvent, ctx: WETH9Context) => void, filter?: DepositEventFilter | DepositEventFilter[], handlerOptions?: HandlerOptions, preprocessHandler?: (event: DepositEvent, ctx: WETH9Context, preprocessStore: { [k: string]: any; }) => Promise): this; onEventWithdrawal(handler: (event: WithdrawalEvent, ctx: WETH9Context) => void, filter?: WithdrawalEventFilter | WithdrawalEventFilter[], handlerOptions?: HandlerOptions, preprocessHandler?: (event: WithdrawalEvent, ctx: WETH9Context, preprocessStore: { [k: string]: any; }) => Promise): this; } export declare function getWETH9Contract(chainId: EthChainId, address: string): WETH9ContractView; export declare function getWETH9ContractOnContext(context: EthContext, address: string): WETH9BoundContractView; //# sourceMappingURL=weth9-processor.d.ts.map