Skip to content

Commit

Permalink
feat(viem): add depositSuperchainWETH (#539)
Browse files Browse the repository at this point in the history
feat: add depositSuperchainWETH
  • Loading branch information
tremarkley authored Oct 28, 2024
1 parent 6209e63 commit e50cf9b
Show file tree
Hide file tree
Showing 67 changed files with 494 additions and 65 deletions.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-steaks-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@eth-optimism/viem": patch
---

add depositSuperchainWETH
7 changes: 7 additions & 0 deletions packages/viem/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@

## L2 Public Actions

- [simulateDepositSuperchainWETH](functions/simulateDepositSuperchainWETH.md)
- [simulateRelayL2ToL2Message](functions/simulateRelayL2ToL2Message.md)
- [simulateSendL2ToL2Message](functions/simulateSendL2ToL2Message.md)
- [simulateSendSupERC20](functions/simulateSendSupERC20.md)
- [simulateSendSuperchainWETH](functions/simulateSendSuperchainWETH.md)

## L2 Wallet Actions

- [depositSuperchainWETH](functions/depositSuperchainWETH.md)
- [estimateDepositSuperchainWETHGas](functions/estimateDepositSuperchainWETHGas.md)
- [estimateRelayL2ToL2MessageGas](functions/estimateRelayL2ToL2MessageGas.md)
- [estimateSendL2ToL2MessageGas](functions/estimateSendL2ToL2MessageGas.md)
- [estimateSendSupERC20Gas](functions/estimateSendSupERC20Gas.md)
Expand Down Expand Up @@ -55,6 +58,10 @@

## Types

- [DepositSuperchainWETHContractReturnType](type-aliases/DepositSuperchainWETHContractReturnType.md)
- [DepositSuperchainWETHErrorType](type-aliases/DepositSuperchainWETHErrorType.md)
- [DepositSuperchainWETHParameters](type-aliases/DepositSuperchainWETHParameters.md)
- [DepositSuperchainWETHReturnType](type-aliases/DepositSuperchainWETHReturnType.md)
- [MessageIdentifier](type-aliases/MessageIdentifier.md)
- [RelayL2ToL2MessageContractReturnType](type-aliases/RelayL2ToL2MessageContractReturnType.md)
- [RelayL2ToL2MessageErrorType](type-aliases/RelayL2ToL2MessageErrorType.md)
Expand Down
2 changes: 1 addition & 1 deletion packages/viem/docs/functions/createInteropMessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -1375,4 +1375,4 @@ created interop message Message

## Defined in

[packages/viem/src/utils/interop.ts:32](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/utils/interop.ts#L32)
[packages/viem/src/utils/interop.ts:32](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/utils/interop.ts#L32)
Original file line number Diff line number Diff line change
Expand Up @@ -1375,4 +1375,4 @@ Decoded interop messages [CreateInteropSentL2ToL2MessagesReturnType](../type-ali

## Defined in

[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:60](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L60)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:60](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L60)
2 changes: 1 addition & 1 deletion packages/viem/docs/functions/decodeExecutingMessages.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Decoded cross-chain calls [DecodeExecutingMessagesReturnType](../type-aliases/De

## Defined in

[packages/viem/src/utils/interop.ts:66](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/utils/interop.ts#L66)
[packages/viem/src/utils/interop.ts:66](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/utils/interop.ts#L66)
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Identified relayed messages [DecodeRelayedL2ToL2MessagesReturnType](../type-alia

## Defined in

[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:106](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L106)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:106](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L106)
2 changes: 1 addition & 1 deletion packages/viem/docs/functions/decodeSentL2ToL2Messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Decoded cross-chain calls [DecodeSentL2ToL2MessagesReturnType](../type-aliases/D

## Defined in

[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:85](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L85)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:85](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L85)
39 changes: 39 additions & 0 deletions packages/viem/docs/functions/depositSuperchainWETH.md
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 packages/viem/docs/functions/estimateDepositSuperchainWETHGas.md
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)
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ The estimated gas value.

## Defined in

[packages/viem/src/actions/relayL2ToL2Message.ts:103](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/actions/relayL2ToL2Message.ts#L103)
[packages/viem/src/actions/relayL2ToL2Message.ts:103](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/actions/relayL2ToL2Message.ts#L103)
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ The estimated gas value.

## Defined in

[packages/viem/src/actions/sendL2ToL2Message.ts:105](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/actions/sendL2ToL2Message.ts#L105)
[packages/viem/src/actions/sendL2ToL2Message.ts:105](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/actions/sendL2ToL2Message.ts#L105)
2 changes: 1 addition & 1 deletion packages/viem/docs/functions/estimateSendSupERC20Gas.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ The estimated gas value.

## Defined in

[packages/viem/src/actions/sendSupERC20.ts:106](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/actions/sendSupERC20.ts#L106)
[packages/viem/src/actions/sendSupERC20.ts:106](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/actions/sendSupERC20.ts#L106)
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ The estimated gas value.

## Defined in

[packages/viem/src/actions/sendSuperchainWETH.ts:74](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/actions/sendSuperchainWETH.ts#L74)
[packages/viem/src/actions/sendSuperchainWETH.ts:74](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/actions/sendSuperchainWETH.ts#L74)
2 changes: 1 addition & 1 deletion packages/viem/docs/functions/relayL2ToL2Message.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ The relayMessage transaction hash. [RelayL2ToL2MessageReturnType](../type-aliase

## Defined in

[packages/viem/src/actions/relayL2ToL2Message.ts:74](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/actions/relayL2ToL2Message.ts#L74)
[packages/viem/src/actions/relayL2ToL2Message.ts:74](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/actions/relayL2ToL2Message.ts#L74)
2 changes: 1 addition & 1 deletion packages/viem/docs/functions/sendL2ToL2Message.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ The sendL2ToL2Message transaction hash. [SendL2ToL2MessageReturnType](../type-al

## Defined in

[packages/viem/src/actions/sendL2ToL2Message.ts:76](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/actions/sendL2ToL2Message.ts#L76)
[packages/viem/src/actions/sendL2ToL2Message.ts:76](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/actions/sendL2ToL2Message.ts#L76)
2 changes: 1 addition & 1 deletion packages/viem/docs/functions/sendSupERC20.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ The sendSupERC20 transaction hash. [SendSupERC20ReturnType](../type-aliases/Send

## Defined in

[packages/viem/src/actions/sendSupERC20.ts:77](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/actions/sendSupERC20.ts#L77)
[packages/viem/src/actions/sendSupERC20.ts:77](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/actions/sendSupERC20.ts#L77)
2 changes: 1 addition & 1 deletion packages/viem/docs/functions/sendSuperchainWETH.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ The sendSuperchainWETH transaction hash. [SendSupERC20ReturnType](../type-aliase

## Defined in

[packages/viem/src/actions/sendSuperchainWETH.ts:53](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/actions/sendSuperchainWETH.ts#L53)
[packages/viem/src/actions/sendSuperchainWETH.ts:53](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/actions/sendSuperchainWETH.ts#L53)
39 changes: 39 additions & 0 deletions packages/viem/docs/functions/simulateDepositSuperchainWETH.md
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)
2 changes: 1 addition & 1 deletion packages/viem/docs/functions/simulateRelayL2ToL2Message.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ The contract functions return value. [RelayL2ToL2MessageContractReturnType](../t

## Defined in

[packages/viem/src/actions/relayL2ToL2Message.ts:129](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/actions/relayL2ToL2Message.ts#L129)
[packages/viem/src/actions/relayL2ToL2Message.ts:129](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/actions/relayL2ToL2Message.ts#L129)
2 changes: 1 addition & 1 deletion packages/viem/docs/functions/simulateSendL2ToL2Message.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ The contract functions return value. [SendL2ToL2MessageContractReturnType](../ty

## Defined in

[packages/viem/src/actions/sendL2ToL2Message.ts:131](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/actions/sendL2ToL2Message.ts#L131)
[packages/viem/src/actions/sendL2ToL2Message.ts:131](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/actions/sendL2ToL2Message.ts#L131)
2 changes: 1 addition & 1 deletion packages/viem/docs/functions/simulateSendSupERC20.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ The contract functions return value. [SendSupERC20ContractReturnType](../type-al

## Defined in

[packages/viem/src/actions/sendSupERC20.ts:132](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/actions/sendSupERC20.ts#L132)
[packages/viem/src/actions/sendSupERC20.ts:132](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/actions/sendSupERC20.ts#L132)
2 changes: 1 addition & 1 deletion packages/viem/docs/functions/simulateSendSuperchainWETH.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ The contract functions return value. [SendSupERC20ContractReturnType](../type-al

## Defined in

[packages/viem/src/actions/sendSuperchainWETH.ts:95](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/actions/sendSuperchainWETH.ts#L95)
[packages/viem/src/actions/sendSuperchainWETH.ts:95](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/actions/sendSuperchainWETH.ts#L95)
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
## Defined in

[packages/viem/src/utils/interop.ts:15](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/utils/interop.ts#L15)
[packages/viem/src/utils/interop.ts:15](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/utils/interop.ts#L15)
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
## Defined in

[packages/viem/src/utils/interop.ts:16](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/utils/interop.ts#L16)
[packages/viem/src/utils/interop.ts:16](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/utils/interop.ts#L16)
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
## Defined in

[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:24](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L24)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:24](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L24)
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
## Defined in

[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:27](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L27)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:27](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L27)
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
## Defined in

[packages/viem/src/utils/interop.ts:21](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/utils/interop.ts#L21)
[packages/viem/src/utils/interop.ts:21](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/utils/interop.ts#L21)
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
## Defined in

[packages/viem/src/utils/interop.ts:22](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/utils/interop.ts#L22)
[packages/viem/src/utils/interop.ts:22](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/utils/interop.ts#L22)
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
## Defined in

[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:43](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L43)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:43](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L43)
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
## Defined in

[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:46](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L46)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:46](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L46)
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
## Defined in

[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:31](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L31)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:31](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L31)
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
## Defined in

[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:32](https://github.com/ethereum-optimism/ecosystem/blob/2fda6aba11612b1bd271ada62170b607e878a916/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L32)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:32](https://github.com/ethereum-optimism/ecosystem/blob/13a9597363979821622ee318a8281c7048f1a00b/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L32)
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 packages/viem/docs/type-aliases/DepositSuperchainWETHErrorType.md
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)
Loading

0 comments on commit e50cf9b

Please sign in to comment.