yearn-vaults / Modules / YWETH / YWETH
Class: YWETH
YWETH.YWETH
Hierarchy
BaseContract
↳ YWETH
Table of contents
Constructors
Properties
- _deployedPromise
- _runningEvents
- _wrappedEmits
- address
- callStatic
- deployTransaction
- estimateGas
- filters
- functions
- interface
- populateTransaction
- provider
- resolvedAddress
- signer
Methods
- _checkRunningEvents
- _deployed
- _wrapEvent
- allVaults()
- allVaults(address)
- allowance
- approve
- attach
- balanceOf
- bestVault()
- bestVault(address)
- connect
- decimals
- decreaseAllowance
- deployed
- deposit
- depositETH
- emit
- fallback
- increaseAllowance
- listenerCount
- listeners
- migrate()
- migrate(address[],bytes[])
- migrate(address[],bytes[],address,uint256)
- migrate(address[],bytes[],uint256)
- migrate(uint256)
- migrate(uint256,uint256)
- name
- off
- on
- once
- permitAll
- queryFilter
- registry
- removeAllListeners
- removeListener
- revokeAll
- setRegistry
- symbol
- token
- totalAssets()
- totalAssets(address)
- totalSupply
- totalVaultBalance(address)
- totalVaultBalance(address,address)
- transfer
- transferFrom
- withdraw
- withdrawETH
- getContractAddress
- getInterface
- isIndexed
Constructors
constructor
• new YWETH(addressOrName
, contractInterface
, signerOrProvider?
)
Parameters
Name | Type |
---|---|
addressOrName |
string |
contractInterface |
ContractInterface |
signerOrProvider? |
Signer | Provider |
Inherited from
BaseContract.constructor
Defined in
node_modules/@ethersproject/contracts/lib/index.d.ts:103
Properties
_deployedPromise
• _deployedPromise: Promise
<Contract
>
Inherited from
BaseContract._deployedPromise
Defined in
node_modules/@ethersproject/contracts/lib/index.d.ts:96
_runningEvents
• _runningEvents: Object
Index signature
▪ [eventTag: string
]: RunningEvent
Inherited from
BaseContract._runningEvents
Defined in
node_modules/@ethersproject/contracts/lib/index.d.ts:97
_wrappedEmits
• _wrappedEmits: Object
Index signature
▪ [eventTag: string
]: (…args
: any
[]) => void
Inherited from
BaseContract._wrappedEmits
Defined in
node_modules/@ethersproject/contracts/lib/index.d.ts:100
address
• Readonly
address: string
Inherited from
BaseContract.address
Defined in
node_modules/@ethersproject/contracts/lib/index.d.ts:75
callStatic
• callStatic: Object
Type declaration
Name | Type |
---|---|
allVaults() |
(overrides? : CallOverrides ) => Promise <string []> |
allVaults(address) |
(token : string , overrides? : CallOverrides ) => Promise <string []> |
allowance |
(arg0 : string , arg1 : string , overrides? : CallOverrides ) => Promise <BigNumber > |
approve |
(spender : string , amount : BigNumberish , overrides? : CallOverrides ) => Promise <boolean > |
balanceOf |
(account : string , overrides? : CallOverrides ) => Promise <BigNumber > |
bestVault() |
(overrides? : CallOverrides ) => Promise <string > |
bestVault(address) |
(token : string , overrides? : CallOverrides ) => Promise <string > |
decimals |
(overrides? : CallOverrides ) => Promise <BigNumber > |
decreaseAllowance |
(spender : string , subtractedValue : BigNumberish , overrides? : CallOverrides ) => Promise <boolean > |
deposit |
(amount : BigNumberish , overrides? : CallOverrides ) => Promise <BigNumber > |
depositETH |
(overrides? : CallOverrides ) => Promise <BigNumber > |
increaseAllowance |
(spender : string , addedValue : BigNumberish , overrides? : CallOverrides ) => Promise <boolean > |
migrate() |
(overrides? : CallOverrides ) => Promise <BigNumber > |
migrate(address[],bytes[]) |
(vaults : string [], signatures : BytesLike [], overrides? : CallOverrides ) => Promise <BigNumber > |
migrate(address[],bytes[],address,uint256) |
(vaults : string [], signatures : BytesLike [], user : string , amount : BigNumberish , overrides? : CallOverrides ) => Promise <BigNumber > |
migrate(address[],bytes[],uint256) |
(vaults : string [], signatures : BytesLike [], amount : BigNumberish , overrides? : CallOverrides ) => Promise <BigNumber > |
migrate(uint256) |
(amount : BigNumberish , overrides? : CallOverrides ) => Promise <BigNumber > |
migrate(uint256,uint256) |
(amount : BigNumberish , maxMigrationLoss : BigNumberish , overrides? : CallOverrides ) => Promise <BigNumber > |
name |
(overrides? : CallOverrides ) => Promise <string > |
permitAll |
(vaults : string [], signatures : BytesLike [], overrides? : CallOverrides ) => Promise <void > |
registry |
(overrides? : CallOverrides ) => Promise <string > |
revokeAll |
(vaults : string [], signatures : BytesLike [], overrides? : CallOverrides ) => Promise <void > |
setRegistry |
(_registry : string , overrides? : CallOverrides ) => Promise <void > |
symbol |
(overrides? : CallOverrides ) => Promise <string > |
token |
(overrides? : CallOverrides ) => Promise <string > |
totalAssets() |
(overrides? : CallOverrides ) => Promise <BigNumber > |
totalAssets(address) |
(token : string , overrides? : CallOverrides ) => Promise <BigNumber > |
totalSupply |
(overrides? : CallOverrides ) => Promise <BigNumber > |
totalVaultBalance(address) |
(account : string , overrides? : CallOverrides ) => Promise <BigNumber > |
totalVaultBalance(address,address) |
(token : string , account : string , overrides? : CallOverrides ) => Promise <BigNumber > |
transfer |
(receiver : string , amount : BigNumberish , overrides? : CallOverrides ) => Promise <boolean > |
transferFrom |
(sender : string , receiver : string , amount : BigNumberish , overrides? : CallOverrides ) => Promise <boolean > |
withdraw |
(amount : BigNumberish , overrides? : CallOverrides ) => Promise <BigNumber > |
withdrawETH |
(amount : BigNumberish , overrides? : CallOverrides ) => Promise <BigNumber > |
Overrides
BaseContract.callStatic
Defined in
typechain/YWETH.d.ts:557
deployTransaction
• Readonly
deployTransaction: TransactionResponse
Inherited from
BaseContract.deployTransaction
Defined in
node_modules/@ethersproject/contracts/lib/index.d.ts:95
estimateGas
• estimateGas: Object
Type declaration
Name | Type |
---|---|
allVaults() |
(overrides? : CallOverrides ) => Promise <BigNumber > |
allVaults(address) |
(token : string , overrides? : CallOverrides ) => Promise <BigNumber > |
allowance |
(arg0 : string , arg1 : string , overrides? : CallOverrides ) => Promise <BigNumber > |
approve |
(spender : string , amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <BigNumber > |
balanceOf |
(account : string , overrides? : CallOverrides ) => Promise <BigNumber > |
bestVault() |
(overrides? : CallOverrides ) => Promise <BigNumber > |
bestVault(address) |
(token : string , overrides? : CallOverrides ) => Promise <BigNumber > |
decimals |
(overrides? : CallOverrides ) => Promise <BigNumber > |
decreaseAllowance |
(spender : string , subtractedValue : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <BigNumber > |
deposit |
(amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <BigNumber > |
depositETH |
(overrides? : PayableOverrides & { from? : string | Promise <string > }) => Promise <BigNumber > |
increaseAllowance |
(spender : string , addedValue : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <BigNumber > |
migrate() |
(overrides? : Overrides & { from? : string | Promise <string > }) => Promise <BigNumber > |
migrate(address[],bytes[]) |
(vaults : string [], signatures : BytesLike [], overrides? : Overrides & { from? : string | Promise <string > }) => Promise <BigNumber > |
migrate(address[],bytes[],address,uint256) |
(vaults : string [], signatures : BytesLike [], user : string , amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <BigNumber > |
migrate(address[],bytes[],uint256) |
(vaults : string [], signatures : BytesLike [], amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <BigNumber > |
migrate(uint256) |
(amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <BigNumber > |
migrate(uint256,uint256) |
(amount : BigNumberish , maxMigrationLoss : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <BigNumber > |
name |
(overrides? : CallOverrides ) => Promise <BigNumber > |
permitAll |
(vaults : string [], signatures : BytesLike [], overrides? : Overrides & { from? : string | Promise <string > }) => Promise <BigNumber > |
registry |
(overrides? : CallOverrides ) => Promise <BigNumber > |
revokeAll |
(vaults : string [], signatures : BytesLike [], overrides? : Overrides & { from? : string | Promise <string > }) => Promise <BigNumber > |
setRegistry |
(_registry : string , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <BigNumber > |
symbol |
(overrides? : CallOverrides ) => Promise <BigNumber > |
token |
(overrides? : CallOverrides ) => Promise <BigNumber > |
totalAssets() |
(overrides? : CallOverrides ) => Promise <BigNumber > |
totalAssets(address) |
(token : string , overrides? : CallOverrides ) => Promise <BigNumber > |
totalSupply |
(overrides? : CallOverrides ) => Promise <BigNumber > |
totalVaultBalance(address) |
(account : string , overrides? : CallOverrides ) => Promise <BigNumber > |
totalVaultBalance(address,address) |
(token : string , account : string , overrides? : CallOverrides ) => Promise <BigNumber > |
transfer |
(receiver : string , amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <BigNumber > |
transferFrom |
(sender : string , receiver : string , amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <BigNumber > |
withdraw |
(amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <BigNumber > |
withdrawETH |
(amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <BigNumber > |
Overrides
BaseContract.estimateGas
Defined in
typechain/YWETH.d.ts:745
filters
• filters: Object
Type declaration
Name | Type |
---|---|
Approval |
(owner? : null | string , spender? : null | string , value? : null ) => TypedEventFilter <[string , string , BigNumber ], Object > |
Approval(address,address,uint256) |
(owner? : null | string , spender? : null | string , value? : null ) => TypedEventFilter <[string , string , BigNumber ], Object > |
Transfer |
(from? : null | string , to? : null | string , value? : null ) => TypedEventFilter <[string , string , BigNumber ], Object > |
Transfer(address,address,uint256) |
(from? : null | string , to? : null | string , value? : null ) => TypedEventFilter <[string , string , BigNumber ], Object > |
Overrides
BaseContract.filters
Defined in
typechain/YWETH.d.ts:707
functions
• functions: Object
Type declaration
Name | Type |
---|---|
allVaults() |
(overrides? : CallOverrides ) => Promise <[string []]> |
allVaults(address) |
(token : string , overrides? : CallOverrides ) => Promise <[string []]> |
allowance |
(arg0 : string , arg1 : string , overrides? : CallOverrides ) => Promise <[BigNumber ]> |
approve |
(spender : string , amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <ContractTransaction > |
balanceOf |
(account : string , overrides? : CallOverrides ) => Promise <[BigNumber ] & { balance : BigNumber }> |
bestVault() |
(overrides? : CallOverrides ) => Promise <[string ]> |
bestVault(address) |
(token : string , overrides? : CallOverrides ) => Promise <[string ]> |
decimals |
(overrides? : CallOverrides ) => Promise <[BigNumber ]> |
decreaseAllowance |
(spender : string , subtractedValue : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <ContractTransaction > |
deposit |
(amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <ContractTransaction > |
depositETH |
(overrides? : PayableOverrides & { from? : string | Promise <string > }) => Promise <ContractTransaction > |
increaseAllowance |
(spender : string , addedValue : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <ContractTransaction > |
migrate() |
(overrides? : Overrides & { from? : string | Promise <string > }) => Promise <ContractTransaction > |
migrate(address[],bytes[]) |
(vaults : string [], signatures : BytesLike [], overrides? : Overrides & { from? : string | Promise <string > }) => Promise <ContractTransaction > |
migrate(address[],bytes[],address,uint256) |
(vaults : string [], signatures : BytesLike [], user : string , amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <ContractTransaction > |
migrate(address[],bytes[],uint256) |
(vaults : string [], signatures : BytesLike [], amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <ContractTransaction > |
migrate(uint256) |
(amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <ContractTransaction > |
migrate(uint256,uint256) |
(amount : BigNumberish , maxMigrationLoss : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <ContractTransaction > |
name |
(overrides? : CallOverrides ) => Promise <[string ]> |
permitAll |
(vaults : string [], signatures : BytesLike [], overrides? : Overrides & { from? : string | Promise <string > }) => Promise <ContractTransaction > |
registry |
(overrides? : CallOverrides ) => Promise <[string ]> |
revokeAll |
(vaults : string [], signatures : BytesLike [], overrides? : Overrides & { from? : string | Promise <string > }) => Promise <ContractTransaction > |
setRegistry |
(_registry : string , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <ContractTransaction > |
symbol |
(overrides? : CallOverrides ) => Promise <[string ]> |
token |
(overrides? : CallOverrides ) => Promise <[string ]> |
totalAssets() |
(overrides? : CallOverrides ) => Promise <[BigNumber ]> |
totalAssets(address) |
(token : string , overrides? : CallOverrides ) => Promise <[BigNumber ] & { assets : BigNumber }> |
totalSupply |
(overrides? : CallOverrides ) => Promise <[BigNumber ] & { total : BigNumber }> |
totalVaultBalance(address) |
(account : string , overrides? : CallOverrides ) => Promise <[BigNumber ]> |
totalVaultBalance(address,address) |
(token : string , account : string , overrides? : CallOverrides ) => Promise <[BigNumber ] & { balance : BigNumber }> |
transfer |
(receiver : string , amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <ContractTransaction > |
transferFrom |
(sender : string , receiver : string , amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <ContractTransaction > |
withdraw |
(amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <ContractTransaction > |
withdrawETH |
(amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <ContractTransaction > |
Overrides
BaseContract.functions
Defined in
typechain/YWETH.d.ts:240
interface
• interface: YWETHInterface
Overrides
BaseContract.interface
Defined in
typechain/YWETH.d.ts:238
populateTransaction
• populateTransaction: Object
Type declaration
Name | Type |
---|---|
allVaults() |
(overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
allVaults(address) |
(token : string , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
allowance |
(arg0 : string , arg1 : string , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
approve |
(spender : string , amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <PopulatedTransaction > |
balanceOf |
(account : string , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
bestVault() |
(overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
bestVault(address) |
(token : string , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
decimals |
(overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
decreaseAllowance |
(spender : string , subtractedValue : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <PopulatedTransaction > |
deposit |
(amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <PopulatedTransaction > |
depositETH |
(overrides? : PayableOverrides & { from? : string | Promise <string > }) => Promise <PopulatedTransaction > |
increaseAllowance |
(spender : string , addedValue : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <PopulatedTransaction > |
migrate() |
(overrides? : Overrides & { from? : string | Promise <string > }) => Promise <PopulatedTransaction > |
migrate(address[],bytes[]) |
(vaults : string [], signatures : BytesLike [], overrides? : Overrides & { from? : string | Promise <string > }) => Promise <PopulatedTransaction > |
migrate(address[],bytes[],address,uint256) |
(vaults : string [], signatures : BytesLike [], user : string , amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <PopulatedTransaction > |
migrate(address[],bytes[],uint256) |
(vaults : string [], signatures : BytesLike [], amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <PopulatedTransaction > |
migrate(uint256) |
(amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <PopulatedTransaction > |
migrate(uint256,uint256) |
(amount : BigNumberish , maxMigrationLoss : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <PopulatedTransaction > |
name |
(overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
permitAll |
(vaults : string [], signatures : BytesLike [], overrides? : Overrides & { from? : string | Promise <string > }) => Promise <PopulatedTransaction > |
registry |
(overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
revokeAll |
(vaults : string [], signatures : BytesLike [], overrides? : Overrides & { from? : string | Promise <string > }) => Promise <PopulatedTransaction > |
setRegistry |
(_registry : string , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <PopulatedTransaction > |
symbol |
(overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
token |
(overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
totalAssets() |
(overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
totalAssets(address) |
(token : string , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
totalSupply |
(overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
totalVaultBalance(address) |
(account : string , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
totalVaultBalance(address,address) |
(token : string , account : string , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
transfer |
(receiver : string , amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <PopulatedTransaction > |
transferFrom |
(sender : string , receiver : string , amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <PopulatedTransaction > |
withdraw |
(amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <PopulatedTransaction > |
withdrawETH |
(amount : BigNumberish , overrides? : Overrides & { from? : string | Promise <string > }) => Promise <PopulatedTransaction > |
Overrides
BaseContract.populateTransaction
Defined in
typechain/YWETH.d.ts:902
provider
• Readonly
provider: Provider
Inherited from
BaseContract.provider
Defined in
node_modules/@ethersproject/contracts/lib/index.d.ts:78
resolvedAddress
• Readonly
resolvedAddress: Promise
<string
>
Inherited from
BaseContract.resolvedAddress
Defined in
node_modules/@ethersproject/contracts/lib/index.d.ts:94
signer
• Readonly
signer: Signer
Inherited from
BaseContract.signer
Defined in
node_modules/@ethersproject/contracts/lib/index.d.ts:77
Methods
_checkRunningEvents
▸ _checkRunningEvents(runningEvent
): void
Parameters
Name | Type |
---|---|
runningEvent |
RunningEvent |
Returns
void
Inherited from
BaseContract._checkRunningEvents
Defined in
node_modules/@ethersproject/contracts/lib/index.d.ts:117
_deployed
▸ _deployed(blockTag?
): Promise
<Contract
>
Parameters
Name | Type |
---|---|
blockTag? |
BlockTag |
Returns
Promise
<Contract
>
Inherited from
BaseContract._deployed
Defined in
node_modules/@ethersproject/contracts/lib/index.d.ts:110
_wrapEvent
▸ _wrapEvent(runningEvent
, log
, listener
): Event
Parameters
Name | Type |
---|---|
runningEvent |
RunningEvent |
log |
Log |
listener |
Listener |
Returns
Event
Inherited from
BaseContract._wrapEvent
Defined in
node_modules/@ethersproject/contracts/lib/index.d.ts:118
allVaults()
▸ allVaults()(overrides?
): Promise
<string
[]>
Parameters
Name | Type |
---|---|
overrides? |
CallOverrides |
Returns
Promise
<string
[]>
Defined in
typechain/YWETH.d.ts:402
allVaults(address)
▸ allVaults(address)(token
, overrides?
): Promise
<string
[]>
Parameters
Name | Type |
---|---|
token |
string |
overrides? |
CallOverrides |
Returns
Promise
<string
[]>
Defined in
typechain/YWETH.d.ts:404
allowance
▸ allowance(arg0
, arg1
, overrides?
): Promise
<BigNumber
>
Parameters
Name | Type |
---|---|
arg0 |
string |
arg1 |
string |
overrides? |
CallOverrides |
Returns
Promise
<BigNumber
>
Defined in
typechain/YWETH.d.ts:409
approve
▸ approve(spender
, amount
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
spender |
string |
amount |
BigNumberish |
overrides? |
Overrides & { from? : string | Promise <string > } |
Returns
Promise
<ContractTransaction
>
Defined in
typechain/YWETH.d.ts:415
attach
▸ attach(addressOrName
): YWETH
Parameters
Name | Type |
---|---|
addressOrName |
string |
Returns
Overrides
BaseContract.attach
Defined in
typechain/YWETH.d.ts:199
balanceOf
▸ balanceOf(account
, overrides?
): Promise
<BigNumber
>
Parameters
Name | Type |
---|---|
account |
string |
overrides? |
CallOverrides |
Returns
Promise
<BigNumber
>
Defined in
typechain/YWETH.d.ts:421
bestVault()
▸ bestVault()(overrides?
): Promise
<string
>
Parameters
Name | Type |
---|---|
overrides? |
CallOverrides |
Returns
Promise
<string
>
Defined in
typechain/YWETH.d.ts:428
bestVault(address)
▸ bestVault(address)(token
, overrides?
): Promise
<string
>
Parameters
Name | Type |
---|---|
token |
string |
overrides? |
CallOverrides |
Returns
Promise
<string
>
Defined in
typechain/YWETH.d.ts:423
connect
▸ connect(signerOrProvider
): YWETH
Parameters
Name | Type |
---|---|
signerOrProvider |
string | Provider | Signer |
Returns
Overrides
BaseContract.connect
Defined in
typechain/YWETH.d.ts:198
decimals
▸ decimals(overrides?
): Promise
<BigNumber
>
Parameters
Name | Type |
---|---|
overrides? |
CallOverrides |
Returns
Promise
<BigNumber
>
Defined in
typechain/YWETH.d.ts:430
decreaseAllowance
▸ decreaseAllowance(spender
, subtractedValue
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
spender |
string |
subtractedValue |
BigNumberish |
overrides? |
Overrides & { from? : string | Promise <string > } |
Returns
Promise
<ContractTransaction
>
Defined in
typechain/YWETH.d.ts:432
deployed
▸ deployed(): Promise
<YWETH
>
Returns
Promise
<YWETH
>
Overrides
BaseContract.deployed
Defined in
typechain/YWETH.d.ts:200
deposit
▸ deposit(amount
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
amount |
BigNumberish |
overrides? |
Overrides & { from? : string | Promise <string > } |
Returns
Promise
<ContractTransaction
>
Defined in
typechain/YWETH.d.ts:438
depositETH
▸ depositETH(overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
overrides? |
PayableOverrides & { from? : string | Promise <string > } |
Returns
Promise
<ContractTransaction
>
Defined in
typechain/YWETH.d.ts:443
emit
▸ emit(eventName
, …args
): boolean
Parameters
Name | Type |
---|---|
eventName |
string | EventFilter |
...args |
any [] |
Returns
boolean
Inherited from
BaseContract.emit
Defined in
node_modules/@ethersproject/contracts/lib/index.d.ts:123
fallback
▸ fallback(overrides?
): Promise
<TransactionResponse
>
Parameters
Name | Type |
---|---|
overrides? |
TransactionRequest |
Returns
Promise
<TransactionResponse
>
Inherited from
BaseContract.fallback
Defined in
node_modules/@ethersproject/contracts/lib/index.d.ts:111
increaseAllowance
▸ increaseAllowance(spender
, addedValue
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
spender |
string |
addedValue |
BigNumberish |
overrides? |
Overrides & { from? : string | Promise <string > } |
Returns
Promise
<ContractTransaction
>
Defined in
typechain/YWETH.d.ts:447
listenerCount
▸ listenerCount(eventName?
): number
Parameters
Name | Type |
---|---|
eventName? |
string | EventFilter |
Returns
number
Inherited from
BaseContract.listenerCount
Defined in
node_modules/@ethersproject/contracts/lib/index.d.ts:124
listeners
▸ listeners<EventArgsArray
, EventArgsObject
>(eventFilter?
): TypedListener
<EventArgsArray
, EventArgsObject
>[]
Type parameters
Name | Type |
---|---|
EventArgsArray |
extends any [] |
EventArgsObject |
EventArgsObject |
Parameters
Name | Type |
---|---|
eventFilter? |
TypedEventFilter <EventArgsArray , EventArgsObject > |
Returns
TypedListener
<EventArgsArray
, EventArgsObject
>[]
Overrides
BaseContract.listeners
Defined in
typechain/YWETH.d.ts:202
▸ listeners(eventName?
): Listener
[]
Parameters
Name | Type |
---|---|
eventName? |
string |
Returns
Listener
[]
Overrides
BaseContract.listeners
Defined in
typechain/YWETH.d.ts:225
migrate()
▸ migrate()(overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
overrides? |
Overrides & { from? : string | Promise <string > } |
Returns
Promise
<ContractTransaction
>
Defined in
typechain/YWETH.d.ts:477
migrate(address[],bytes[])
▸ migrate(address[],bytes[])(vaults
, signatures
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
vaults |
string [] |
signatures |
BytesLike [] |
overrides? |
Overrides & { from? : string | Promise <string > } |
Returns
Promise
<ContractTransaction
>
Defined in
typechain/YWETH.d.ts:453
migrate(address[],bytes[],address,uint256)
▸ migrate(address[],bytes[],address,uint256)(vaults
, signatures
, user
, amount
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
vaults |
string [] |
signatures |
BytesLike [] |
user |
string |
amount |
BigNumberish |
overrides? |
Overrides & { from? : string | Promise <string > } |
Returns
Promise
<ContractTransaction
>
Defined in
typechain/YWETH.d.ts:481
migrate(address[],bytes[],uint256)
▸ migrate(address[],bytes[],uint256)(vaults
, signatures
, amount
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
vaults |
string [] |
signatures |
BytesLike [] |
amount |
BigNumberish |
overrides? |
Overrides & { from? : string | Promise <string > } |
Returns
Promise
<ContractTransaction
>
Defined in
typechain/YWETH.d.ts:465
migrate(uint256)
▸ migrate(uint256)(amount
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
amount |
BigNumberish |
overrides? |
Overrides & { from? : string | Promise <string > } |
Returns
Promise
<ContractTransaction
>
Defined in
typechain/YWETH.d.ts:472
migrate(uint256,uint256)
▸ migrate(uint256,uint256)(amount
, maxMigrationLoss
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
amount |
BigNumberish |
maxMigrationLoss |
BigNumberish |
overrides? |
Overrides & { from? : string | Promise <string > } |
Returns
Promise
<ContractTransaction
>
Defined in
typechain/YWETH.d.ts:459
name
▸ name(overrides?
): Promise
<string
>
Parameters
Name | Type |
---|---|
overrides? |
CallOverrides |
Returns
Promise
<string
>
Defined in
typechain/YWETH.d.ts:489
off
▸ off<EventArgsArray
, EventArgsObject
>(eventFilter
, listener
): YWETH
Type parameters
Name | Type |
---|---|
EventArgsArray |
extends any [] |
EventArgsObject |
EventArgsObject |
Parameters
Name | Type |
---|---|
eventFilter |
TypedEventFilter <EventArgsArray , EventArgsObject > |
listener |
TypedListener <EventArgsArray , EventArgsObject > |
Returns
Overrides
BaseContract.off
Defined in
typechain/YWETH.d.ts:205
▸ off(eventName
, listener
): YWETH
Parameters
Name | Type |
---|---|
eventName |
string |
listener |
Listener |
Returns
Overrides
BaseContract.off
Defined in
typechain/YWETH.d.ts:226
on
▸ on<EventArgsArray
, EventArgsObject
>(eventFilter
, listener
): YWETH
Type parameters
Name | Type |
---|---|
EventArgsArray |
extends any [] |
EventArgsObject |
EventArgsObject |
Parameters
Name | Type |
---|---|
eventFilter |
TypedEventFilter <EventArgsArray , EventArgsObject > |
listener |
TypedListener <EventArgsArray , EventArgsObject > |
Returns
Overrides
BaseContract.on
Defined in
typechain/YWETH.d.ts:209
▸ on(eventName
, listener
): YWETH
Parameters
Name | Type |
---|---|
eventName |
string |
listener |
Listener |
Returns
Overrides
BaseContract.on
Defined in
typechain/YWETH.d.ts:227
once
▸ once<EventArgsArray
, EventArgsObject
>(eventFilter
, listener
): YWETH
Type parameters
Name | Type |
---|---|
EventArgsArray |
extends any [] |
EventArgsObject |
EventArgsObject |
Parameters
Name | Type |
---|---|
eventFilter |
TypedEventFilter <EventArgsArray , EventArgsObject > |
listener |
TypedListener <EventArgsArray , EventArgsObject > |
Returns
Overrides
BaseContract.once
Defined in
typechain/YWETH.d.ts:213
▸ once(eventName
, listener
): YWETH
Parameters
Name | Type |
---|---|
eventName |
string |
listener |
Listener |
Returns
Overrides
BaseContract.once
Defined in
typechain/YWETH.d.ts:228
permitAll
▸ permitAll(vaults
, signatures
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
vaults |
string [] |
signatures |
BytesLike [] |
overrides? |
Overrides & { from? : string | Promise <string > } |
Returns
Promise
<ContractTransaction
>
Defined in
typechain/YWETH.d.ts:491
queryFilter
▸ queryFilter<EventArgsArray
, EventArgsObject
>(event
, fromBlockOrBlockhash?
, toBlock?
): Promise
<TypedEvent
<EventArgsArray
& EventArgsObject
>[]>
Type parameters
Name | Type |
---|---|
EventArgsArray |
extends any [] |
EventArgsObject |
EventArgsObject |
Parameters
Name | Type |
---|---|
event |
TypedEventFilter <EventArgsArray , EventArgsObject > |
fromBlockOrBlockhash? |
string | number |
toBlock? |
string | number |
Returns
Promise
<TypedEvent
<EventArgsArray
& EventArgsObject
>[]>
Overrides
BaseContract.queryFilter
Defined in
typechain/YWETH.d.ts:232
registry
▸ registry(overrides?
): Promise
<string
>
Parameters
Name | Type |
---|---|
overrides? |
CallOverrides |
Returns
Promise
<string
>
Defined in
typechain/YWETH.d.ts:497
removeAllListeners
▸ removeAllListeners<EventArgsArray
, EventArgsObject
>(eventFilter
): YWETH
Type parameters
Name | Type |
---|---|
EventArgsArray |
extends any [] |
EventArgsObject |
EventArgsObject |
Parameters
Name | Type |
---|---|
eventFilter |
TypedEventFilter <EventArgsArray , EventArgsObject > |
Returns
Overrides
BaseContract.removeAllListeners
Defined in
typechain/YWETH.d.ts:221
▸ removeAllListeners(eventName?
): YWETH
Parameters
Name | Type |
---|---|
eventName? |
string |
Returns
Overrides
BaseContract.removeAllListeners
Defined in
typechain/YWETH.d.ts:230
removeListener
▸ removeListener<EventArgsArray
, EventArgsObject
>(eventFilter
, listener
): YWETH
Type parameters
Name | Type |
---|---|
EventArgsArray |
extends any [] |
EventArgsObject |
EventArgsObject |
Parameters
Name | Type |
---|---|
eventFilter |
TypedEventFilter <EventArgsArray , EventArgsObject > |
listener |
TypedListener <EventArgsArray , EventArgsObject > |
Returns
Overrides
BaseContract.removeListener
Defined in
typechain/YWETH.d.ts:217
▸ removeListener(eventName
, listener
): YWETH
Parameters
Name | Type |
---|---|
eventName |
string |
listener |
Listener |
Returns
Overrides
BaseContract.removeListener
Defined in
typechain/YWETH.d.ts:229
revokeAll
▸ revokeAll(vaults
, signatures
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
vaults |
string [] |
signatures |
BytesLike [] |
overrides? |
Overrides & { from? : string | Promise <string > } |
Returns
Promise
<ContractTransaction
>
Defined in
typechain/YWETH.d.ts:499
setRegistry
▸ setRegistry(_registry
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
_registry |
string |
overrides? |
Overrides & { from? : string | Promise <string > } |
Returns
Promise
<ContractTransaction
>
Defined in
typechain/YWETH.d.ts:505
symbol
▸ symbol(overrides?
): Promise
<string
>
Parameters
Name | Type |
---|---|
overrides? |
CallOverrides |
Returns
Promise
<string
>
Defined in
typechain/YWETH.d.ts:510
token
▸ token(overrides?
): Promise
<string
>
Parameters
Name | Type |
---|---|
overrides? |
CallOverrides |
Returns
Promise
<string
>
Defined in
typechain/YWETH.d.ts:512
totalAssets()
▸ totalAssets()(overrides?
): Promise
<BigNumber
>
Parameters
Name | Type |
---|---|
overrides? |
CallOverrides |
Returns
Promise
<BigNumber
>
Defined in
typechain/YWETH.d.ts:514
totalAssets(address)
▸ totalAssets(address)(token
, overrides?
): Promise
<BigNumber
>
Parameters
Name | Type |
---|---|
token |
string |
overrides? |
CallOverrides |
Returns
Promise
<BigNumber
>
Defined in
typechain/YWETH.d.ts:516
totalSupply
▸ totalSupply(overrides?
): Promise
<BigNumber
>
Parameters
Name | Type |
---|---|
overrides? |
CallOverrides |
Returns
Promise
<BigNumber
>
Defined in
typechain/YWETH.d.ts:521
totalVaultBalance(address)
▸ totalVaultBalance(address)(account
, overrides?
): Promise
<BigNumber
>
Parameters
Name | Type |
---|---|
account |
string |
overrides? |
CallOverrides |
Returns
Promise
<BigNumber
>
Defined in
typechain/YWETH.d.ts:529
totalVaultBalance(address,address)
▸ totalVaultBalance(address,address)(token
, account
, overrides?
): Promise
<BigNumber
>
Parameters
Name | Type |
---|---|
token |
string |
account |
string |
overrides? |
CallOverrides |
Returns
Promise
<BigNumber
>
Defined in
typechain/YWETH.d.ts:523
transfer
▸ transfer(receiver
, amount
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
receiver |
string |
amount |
BigNumberish |
overrides? |
Overrides & { from? : string | Promise <string > } |
Returns
Promise
<ContractTransaction
>
Defined in
typechain/YWETH.d.ts:534
transferFrom
▸ transferFrom(sender
, receiver
, amount
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
sender |
string |
receiver |
string |
amount |
BigNumberish |
overrides? |
Overrides & { from? : string | Promise <string > } |
Returns
Promise
<ContractTransaction
>
Defined in
typechain/YWETH.d.ts:540
withdraw
▸ withdraw(amount
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
amount |
BigNumberish |
overrides? |
Overrides & { from? : string | Promise <string > } |
Returns
Promise
<ContractTransaction
>
Defined in
typechain/YWETH.d.ts:547
withdrawETH
▸ withdrawETH(amount
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
amount |
BigNumberish |
overrides? |
Overrides & { from? : string | Promise <string > } |
Returns
Promise
<ContractTransaction
>
Defined in
typechain/YWETH.d.ts:552
getContractAddress
▸ Static
getContractAddress(transaction
): string
Parameters
Name | Type |
---|---|
transaction |
Object |
transaction.from |
string |
transaction.nonce |
BigNumberish |
Returns
string
Inherited from
BaseContract.getContractAddress
Defined in
node_modules/@ethersproject/contracts/lib/index.d.ts:104
getInterface
▸ Static
getInterface(contractInterface
): Interface
Parameters
Name | Type |
---|---|
contractInterface |
ContractInterface |
Returns
Interface
Inherited from
BaseContract.getInterface
Defined in
node_modules/@ethersproject/contracts/lib/index.d.ts:108
isIndexed
▸ Static
isIndexed(value
): value is Indexed
Parameters
Name | Type |
---|---|
value |
any |
Returns
value is Indexed
Inherited from
BaseContract.isIndexed
Defined in
node_modules/@ethersproject/contracts/lib/index.d.ts:114