-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(viem): add depositSuperchainWETH (#539)
feat: add depositSuperchainWETH
- Loading branch information
1 parent
6209e63
commit e50cf9b
Showing
67 changed files
with
494 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@eth-optimism/viem": patch | ||
--- | ||
|
||
add depositSuperchainWETH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[**@eth-optimism/viem**](../README.md) • **Docs** | ||
|
||
*** | ||
|
||
[@eth-optimism/viem](../README.md) / depositSuperchainWETH | ||
|
||
# depositSuperchainWETH() | ||
|
||
> **depositSuperchainWETH**\<`chain`, `account`, `chainOverride`\>(`client`, `parameters`): `Promise`\<[`DepositSuperchainWETHReturnType`](../type-aliases/DepositSuperchainWETHReturnType.md)\> | ||
Deposits ETH to the SuperchainWETH contract. | ||
|
||
## Type Parameters | ||
|
||
• **chain** *extends* `undefined` \| `Chain` | ||
|
||
• **account** *extends* `undefined` \| `Account` | ||
|
||
• **chainOverride** *extends* `undefined` \| `Chain` = `undefined` | ||
|
||
## Parameters | ||
|
||
• **client**: `Client`\<`Transport`, `chain`, `account`\> | ||
|
||
L2 Wallet Client | ||
|
||
• **parameters**: [`DepositSuperchainWETHParameters`](../type-aliases/DepositSuperchainWETHParameters.md)\<`chain`, `account`, `chainOverride`, `DeriveChain`\<`chain`, `chainOverride`\>\> | ||
|
||
[DepositSuperchainWETHParameters](../type-aliases/DepositSuperchainWETHParameters.md) | ||
|
||
## Returns | ||
|
||
`Promise`\<[`DepositSuperchainWETHReturnType`](../type-aliases/DepositSuperchainWETHReturnType.md)\> | ||
|
||
The depositSuperchainWETH transaction hash. [DepositSuperchainWETHReturnType](../type-aliases/DepositSuperchainWETHReturnType.md) | ||
|
||
## Defined in | ||
|
||
[packages/viem/src/actions/depositSuperchainWETH.ts:64](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/actions/depositSuperchainWETH.ts#L64) |
39 changes: 39 additions & 0 deletions
39
packages/viem/docs/functions/estimateDepositSuperchainWETHGas.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[**@eth-optimism/viem**](../README.md) • **Docs** | ||
|
||
*** | ||
|
||
[@eth-optimism/viem](../README.md) / estimateDepositSuperchainWETHGas | ||
|
||
# estimateDepositSuperchainWETHGas() | ||
|
||
> **estimateDepositSuperchainWETHGas**\<`TChain`, `TAccount`, `TChainOverride`\>(`client`, `parameters`): `Promise`\<`bigint`\> | ||
Estimates gas for [depositSuperchainWETH](depositSuperchainWETH.md) | ||
|
||
## Type Parameters | ||
|
||
• **TChain** *extends* `undefined` \| `Chain` | ||
|
||
• **TAccount** *extends* `undefined` \| `Account` | ||
|
||
• **TChainOverride** *extends* `undefined` \| `Chain` = `undefined` | ||
|
||
## Parameters | ||
|
||
• **client**: `Client`\<`Transport`, `TChain`, `TAccount`\> | ||
|
||
L2 Wallet Client | ||
|
||
• **parameters**: [`DepositSuperchainWETHParameters`](../type-aliases/DepositSuperchainWETHParameters.md)\<`TChain`, `TAccount`, `TChainOverride`, `DeriveChain`\<`TChain`, `TChainOverride`\>\> | ||
|
||
[DepositSuperchainWETHParameters](../type-aliases/DepositSuperchainWETHParameters.md) | ||
|
||
## Returns | ||
|
||
`Promise`\<`bigint`\> | ||
|
||
The estimated gas value. | ||
|
||
## Defined in | ||
|
||
[packages/viem/src/actions/depositSuperchainWETH.ts:91](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/actions/depositSuperchainWETH.ts#L91) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
packages/viem/docs/functions/simulateDepositSuperchainWETH.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[**@eth-optimism/viem**](../README.md) • **Docs** | ||
|
||
*** | ||
|
||
[@eth-optimism/viem](../README.md) / simulateDepositSuperchainWETH | ||
|
||
# simulateDepositSuperchainWETH() | ||
|
||
> **simulateDepositSuperchainWETH**\<`TChain`, `TAccount`, `TChainOverride`\>(`client`, `parameters`): `Promise`\<[`DepositSuperchainWETHContractReturnType`](../type-aliases/DepositSuperchainWETHContractReturnType.md)\> | ||
Simulate contract call for [depositSuperchainWETH](depositSuperchainWETH.md) | ||
|
||
## Type Parameters | ||
|
||
• **TChain** *extends* `undefined` \| `Chain` | ||
|
||
• **TAccount** *extends* `undefined` \| `Account` | ||
|
||
• **TChainOverride** *extends* `undefined` \| `Chain` = `undefined` | ||
|
||
## Parameters | ||
|
||
• **client**: `Client`\<`Transport`, `TChain`, `TAccount`\> | ||
|
||
L2 Public Client | ||
|
||
• **parameters**: [`DepositSuperchainWETHParameters`](../type-aliases/DepositSuperchainWETHParameters.md)\<`TChain`, `TAccount`, `TChainOverride`, `DeriveChain`\<`TChain`, `TChainOverride`\>\> | ||
|
||
[DepositSuperchainWETHParameters](../type-aliases/DepositSuperchainWETHParameters.md) | ||
|
||
## Returns | ||
|
||
`Promise`\<[`DepositSuperchainWETHContractReturnType`](../type-aliases/DepositSuperchainWETHContractReturnType.md)\> | ||
|
||
The contract functions return value. depositSuperchainWETHContractReturnType | ||
|
||
## Defined in | ||
|
||
[packages/viem/src/actions/depositSuperchainWETH.ts:115](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/actions/depositSuperchainWETH.ts#L115) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/viem/docs/type-aliases/DepositSuperchainWETHContractReturnType.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[**@eth-optimism/viem**](../README.md) • **Docs** | ||
|
||
*** | ||
|
||
[@eth-optimism/viem](../README.md) / DepositSuperchainWETHContractReturnType | ||
|
||
# DepositSuperchainWETHContractReturnType | ||
|
||
> **DepositSuperchainWETHContractReturnType**: `ContractFunctionReturnType`\<*typeof* [`superchainWETHABI`](../variables/superchainWETHABI.md), `"payable"`, `"deposit"`\> | ||
## Defined in | ||
|
||
[packages/viem/src/actions/depositSuperchainWETH.ts:46](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/actions/depositSuperchainWETH.ts#L46) |
13 changes: 13 additions & 0 deletions
13
packages/viem/docs/type-aliases/DepositSuperchainWETHErrorType.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[**@eth-optimism/viem**](../README.md) • **Docs** | ||
|
||
*** | ||
|
||
[@eth-optimism/viem](../README.md) / DepositSuperchainWETHErrorType | ||
|
||
# DepositSuperchainWETHErrorType | ||
|
||
> **DepositSuperchainWETHErrorType**: `EstimateContractGasErrorType` \| `WriteContractErrorType` \| `ErrorType` | ||
## Defined in | ||
|
||
[packages/viem/src/actions/depositSuperchainWETH.ts:52](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/actions/depositSuperchainWETH.ts#L52) |
Oops, something went wrong.