Skip to content

Commit

Permalink
feat(viem): add crossChainSendETH action (#584)
Browse files Browse the repository at this point in the history
feat(viem): add crossChainSendETH action
  • Loading branch information
tremarkley authored Dec 3, 2024
1 parent 04beea5 commit 852b42d
Show file tree
Hide file tree
Showing 79 changed files with 762 additions and 79 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-clocks-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@eth-optimism/viem": patch
---

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

## L2 Public Actions

- [simulateCrossChainSendETH](functions/simulateCrossChainSendETH.md)
- [simulateDepositSuperchainWETH](functions/simulateDepositSuperchainWETH.md)
- [simulateRelayL2ToL2Message](functions/simulateRelayL2ToL2Message.md)
- [simulateSendL2ToL2Message](functions/simulateSendL2ToL2Message.md)
Expand All @@ -23,7 +24,9 @@

## L2 Wallet Actions

- [crossChainSendETH](functions/crossChainSendETH.md)
- [depositSuperchainWETH](functions/depositSuperchainWETH.md)
- [estimateCrossChainSendETHGas](functions/estimateCrossChainSendETHGas.md)
- [estimateDepositSuperchainWETHGas](functions/estimateDepositSuperchainWETHGas.md)
- [estimateRelayL2ToL2MessageGas](functions/estimateRelayL2ToL2MessageGas.md)
- [estimateSendL2ToL2MessageGas](functions/estimateSendL2ToL2MessageGas.md)
Expand Down Expand Up @@ -61,6 +64,9 @@

## Types

- [CrossChainSendETHContractReturnType](type-aliases/CrossChainSendETHContractReturnType.md)
- [CrossChainSendETHErrorType](type-aliases/CrossChainSendETHErrorType.md)
- [CrossChainSendETHParameters](type-aliases/CrossChainSendETHParameters.md)
- [DepositSuperchainWETHContractReturnType](type-aliases/DepositSuperchainWETHContractReturnType.md)
- [DepositSuperchainWETHErrorType](type-aliases/DepositSuperchainWETHErrorType.md)
- [DepositSuperchainWETHParameters](type-aliases/DepositSuperchainWETHParameters.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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/utils/interop.ts#L32)
[packages/viem/src/utils/interop.ts:32](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L60)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:60](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L60)
39 changes: 39 additions & 0 deletions packages/viem/docs/functions/crossChainSendETH.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) / crossChainSendETH

# crossChainSendETH()

> **crossChainSendETH**\<`chain`, `account`, `chainOverride`\>(`client`, `parameters`): `Promise`\<[`CrossChainSendETHContractReturnType`](../type-aliases/CrossChainSendETHContractReturnType.md)\>
Sends ETH to the specified recipient on the destination chain

## 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**: [`CrossChainSendETHParameters`](../type-aliases/CrossChainSendETHParameters.md)\<`chain`, `account`, `chainOverride`, `DeriveChain`\<`chain`, `chainOverride`\>\>

[CrossChainSendETHParameters](../type-aliases/CrossChainSendETHParameters.md)

## Returns

`Promise`\<[`CrossChainSendETHContractReturnType`](../type-aliases/CrossChainSendETHContractReturnType.md)\>

The crosschainSendETH transaction hash. [CrossChainSendETHContractReturnType](../type-aliases/CrossChainSendETHContractReturnType.md)

## Defined in

[packages/viem/src/actions/crosschainSendETH.ts:67](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/packages/viem/src/actions/crosschainSendETH.ts#L67)
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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/utils/interop.ts#L66)
[packages/viem/src/utils/interop.ts:66](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L106)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:106](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L85)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:85](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L85)
2 changes: 1 addition & 1 deletion packages/viem/docs/functions/depositSuperchainWETH.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ The depositSuperchainWETH transaction hash. [DepositSuperchainWETHReturnType](..

## Defined in

[packages/viem/src/actions/depositSuperchainWETH.ts:64](https://github.com/ethereum-optimism/ecosystem/blob/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/actions/depositSuperchainWETH.ts#L64)
[packages/viem/src/actions/depositSuperchainWETH.ts:64](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/packages/viem/src/actions/depositSuperchainWETH.ts#L64)
39 changes: 39 additions & 0 deletions packages/viem/docs/functions/estimateCrossChainSendETHGas.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) / estimateCrossChainSendETHGas

# estimateCrossChainSendETHGas()

> **estimateCrossChainSendETHGas**\<`TChain`, `TAccount`, `TChainOverride`\>(`client`, `parameters`): `Promise`\<`bigint`\>
Estimates gas for [crossChainSendETH](crossChainSendETH.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**: [`CrossChainSendETHParameters`](../type-aliases/CrossChainSendETHParameters.md)\<`TChain`, `TAccount`, `TChainOverride`, `DeriveChain`\<`TChain`, `TChainOverride`\>\>

[CrossChainSendETHParameters](../type-aliases/CrossChainSendETHParameters.md)

## Returns

`Promise`\<`bigint`\>

The estimated gas value.

## Defined in

[packages/viem/src/actions/crosschainSendETH.ts:96](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/packages/viem/src/actions/crosschainSendETH.ts#L96)
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/depositSuperchainWETH.ts:91](https://github.com/ethereum-optimism/ecosystem/blob/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/actions/depositSuperchainWETH.ts#L91)
[packages/viem/src/actions/depositSuperchainWETH.ts:91](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/actions/relayL2ToL2Message.ts#L103)
[packages/viem/src/actions/relayL2ToL2Message.ts:103](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/actions/sendL2ToL2Message.ts#L105)
[packages/viem/src/actions/sendL2ToL2Message.ts:105](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/actions/sendSupERC20.ts#L106)
[packages/viem/src/actions/sendSupERC20.ts:106](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/actions/sendSuperchainWETH.ts#L74)
[packages/viem/src/actions/sendSuperchainWETH.ts:74](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/packages/viem/src/actions/sendSuperchainWETH.ts#L74)
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/withdrawSuperchainWETH.ts:96](https://github.com/ethereum-optimism/ecosystem/blob/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/actions/withdrawSuperchainWETH.ts#L96)
[packages/viem/src/actions/withdrawSuperchainWETH.ts:96](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/packages/viem/src/actions/withdrawSuperchainWETH.ts#L96)
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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/actions/relayL2ToL2Message.ts#L74)
[packages/viem/src/actions/relayL2ToL2Message.ts:74](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/actions/sendL2ToL2Message.ts#L76)
[packages/viem/src/actions/sendL2ToL2Message.ts:76](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/actions/sendSupERC20.ts#L77)
[packages/viem/src/actions/sendSupERC20.ts:77](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/actions/sendSuperchainWETH.ts#L53)
[packages/viem/src/actions/sendSuperchainWETH.ts:53](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/packages/viem/src/actions/sendSuperchainWETH.ts#L53)
39 changes: 39 additions & 0 deletions packages/viem/docs/functions/simulateCrossChainSendETH.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) / simulateCrossChainSendETH

# simulateCrossChainSendETH()

> **simulateCrossChainSendETH**\<`TChain`, `TAccount`, `TChainOverride`\>(`client`, `parameters`): `Promise`\<[`CrossChainSendETHContractReturnType`](../type-aliases/CrossChainSendETHContractReturnType.md)\>
Simulate contract call for [crossChainSendETH](crossChainSendETH.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**: [`CrossChainSendETHParameters`](../type-aliases/CrossChainSendETHParameters.md)\<`TChain`, `TAccount`, `TChainOverride`, `DeriveChain`\<`TChain`, `TChainOverride`\>\>

[CrossChainSendETHParameters](../type-aliases/CrossChainSendETHParameters.md)

## Returns

`Promise`\<[`CrossChainSendETHContractReturnType`](../type-aliases/CrossChainSendETHContractReturnType.md)\>

The contract functions return value. [CrossChainSendETHContractReturnType](../type-aliases/CrossChainSendETHContractReturnType.md)

## Defined in

[packages/viem/src/actions/crosschainSendETH.ts:122](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/packages/viem/src/actions/crosschainSendETH.ts#L122)
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ The contract functions return value. depositSuperchainWETHContractReturnType

## Defined in

[packages/viem/src/actions/depositSuperchainWETH.ts:115](https://github.com/ethereum-optimism/ecosystem/blob/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/actions/depositSuperchainWETH.ts#L115)
[packages/viem/src/actions/depositSuperchainWETH.ts:115](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/actions/relayL2ToL2Message.ts#L129)
[packages/viem/src/actions/relayL2ToL2Message.ts:129](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/actions/sendL2ToL2Message.ts#L131)
[packages/viem/src/actions/sendL2ToL2Message.ts:131](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/actions/sendSupERC20.ts#L132)
[packages/viem/src/actions/sendSupERC20.ts:132](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/actions/sendSuperchainWETH.ts#L95)
[packages/viem/src/actions/sendSuperchainWETH.ts:95](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/packages/viem/src/actions/sendSuperchainWETH.ts#L95)
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ The contract functions return value. withdrawSuperchainWETHContractReturnType

## Defined in

[packages/viem/src/actions/withdrawSuperchainWETH.ts:126](https://github.com/ethereum-optimism/ecosystem/blob/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/actions/withdrawSuperchainWETH.ts#L126)
[packages/viem/src/actions/withdrawSuperchainWETH.ts:126](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/packages/viem/src/actions/withdrawSuperchainWETH.ts#L126)
2 changes: 1 addition & 1 deletion packages/viem/docs/functions/withdrawSuperchainWETH.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ The withdrawSuperchainWETH transaction hash. [WithdrawSuperchainWETHReturnType](

## Defined in

[packages/viem/src/actions/withdrawSuperchainWETH.ts:67](https://github.com/ethereum-optimism/ecosystem/blob/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/actions/withdrawSuperchainWETH.ts#L67)
[packages/viem/src/actions/withdrawSuperchainWETH.ts:67](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/packages/viem/src/actions/withdrawSuperchainWETH.ts#L67)
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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/utils/interop.ts#L15)
[packages/viem/src/utils/interop.ts:15](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/utils/interop.ts#L16)
[packages/viem/src/utils/interop.ts:16](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L24)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:24](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/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/5b57c542e6f02774701a464de238b830e81b7ecb/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L27)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:27](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L27)
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) / CrossChainSendETHContractReturnType

# CrossChainSendETHContractReturnType

> **CrossChainSendETHContractReturnType**: `ContractFunctionReturnType`\<*typeof* [`superchainWETHABI`](../variables/superchainWETHABI.md), `"payable"`, `"sendETH"`\>
## Defined in

[packages/viem/src/actions/crosschainSendETH.ts:46](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/packages/viem/src/actions/crosschainSendETH.ts#L46)
13 changes: 13 additions & 0 deletions packages/viem/docs/type-aliases/CrossChainSendETHErrorType.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) / CrossChainSendETHErrorType

# CrossChainSendETHErrorType

> **CrossChainSendETHErrorType**: `EstimateContractGasErrorType` \| `WriteContractErrorType` \| `ErrorType`
## Defined in

[packages/viem/src/actions/crosschainSendETH.ts:55](https://github.com/ethereum-optimism/ecosystem/blob/1d855f26d1024617b154d28d909dbc33a421f5de/packages/viem/src/actions/crosschainSendETH.ts#L55)
Loading

0 comments on commit 852b42d

Please sign in to comment.