WETH9ContractView

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

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

Extends

Constructors

Constructor

new WETH9ContractView(contract: WETH9): WETH9ContractView;

Parameters

ParameterType
contractWETH9

Returns

WETH9ContractView

Overrides

ContractView.constructor

Properties

PropertyType
callStaticobject
callStatic.contractWETH9
callStatic.approvePromise<boolean>
callStatic.depositPromise<void>
callStatic.transferPromise<boolean>
callStatic.transferFromPromise<boolean>
callStatic.withdrawPromise<void>
encodeCallobject
encodeCall.allowanceEthCallParam
encodeCall.approveEthCallParam
encodeCall.balanceOfEthCallParam
encodeCall.decimalsEthCallParam
encodeCall.depositEthCallParam
encodeCall.nameEthCallParam
encodeCall.symbolEthCallParam
encodeCall.totalSupplyEthCallParam
encodeCall.transferEthCallParam
encodeCall.transferFromEthCallParam
encodeCall.withdrawEthCallParam

Accessors

provider

Get Signature

get provider(): Provider;
Returns

Provider

Inherited from

ContractView.provider


rawContract

Get Signature

get rawContract(): TContract;
Returns

TContract

Inherited from

ContractView.rawContract

Methods

allowance()

allowance(
   arg0: string, 
   arg1: string, 
   overrides?: Overrides, 
   preparedData?: PreparedData, 
   ethCallContext?: EthCallContext
): Promise<bigint>;

Parameters

ParameterType
arg0string
arg1string
overrides?Overrides
preparedData?PreparedData
ethCallContext?EthCallContext

Returns

Promise<bigint>


balanceOf()

balanceOf(
   arg0: string, 
   overrides?: Overrides, 
   preparedData?: PreparedData, 
   ethCallContext?: EthCallContext
): Promise<bigint>;

Parameters

ParameterType
arg0string
overrides?Overrides
preparedData?PreparedData
ethCallContext?EthCallContext

Returns

Promise<bigint>


decimals()

decimals(
   overrides?: Overrides, 
   preparedData?: PreparedData, 
   ethCallContext?: EthCallContext
): Promise<bigint>;

Parameters

ParameterType
overrides?Overrides
preparedData?PreparedData
ethCallContext?EthCallContext

Returns

Promise<bigint>


name()

name(
   overrides?: Overrides, 
   preparedData?: PreparedData, 
   ethCallContext?: EthCallContext
): Promise<string>;

Parameters

ParameterType
overrides?Overrides
preparedData?PreparedData
ethCallContext?EthCallContext

Returns

Promise<string>


symbol()

symbol(
   overrides?: Overrides, 
   preparedData?: PreparedData, 
   ethCallContext?: EthCallContext
): Promise<string>;

Parameters

ParameterType
overrides?Overrides
preparedData?PreparedData
ethCallContext?EthCallContext

Returns

Promise<string>


totalSupply()

totalSupply(
   overrides?: Overrides, 
   preparedData?: PreparedData, 
   ethCallContext?: EthCallContext
): Promise<bigint>;

Parameters

ParameterType
overrides?Overrides
preparedData?PreparedData
ethCallContext?EthCallContext

Returns

Promise<bigint>

On this page