Skip to content

Commit

Permalink
feat(viem): export sendSupERC20 (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
tremarkley authored Oct 28, 2024
1 parent ab77241 commit dc8d997
Show file tree
Hide file tree
Showing 48 changed files with 263 additions and 40 deletions.
7 changes: 7 additions & 0 deletions packages/viem/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@

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

## L2 Wallet Actions

- [estimateRelayL2ToL2MessageGas](functions/estimateRelayL2ToL2MessageGas.md)
- [estimateSendL2ToL2MessageGas](functions/estimateSendL2ToL2MessageGas.md)
- [estimateSendSupERC20Gas](functions/estimateSendSupERC20Gas.md)
- [relayL2ToL2Message](functions/relayL2ToL2Message.md)
- [sendL2ToL2Message](functions/sendL2ToL2Message.md)
- [sendSupERC20](functions/sendSupERC20.md)

## Other

Expand Down Expand Up @@ -58,6 +61,10 @@
- [SendL2ToL2MessageErrorType](type-aliases/SendL2ToL2MessageErrorType.md)
- [SendL2ToL2MessageParameters](type-aliases/SendL2ToL2MessageParameters.md)
- [SendL2ToL2MessageReturnType](type-aliases/SendL2ToL2MessageReturnType.md)
- [SendSupERC20ContractReturnType](type-aliases/SendSupERC20ContractReturnType.md)
- [SendSupERC20ErrorType](type-aliases/SendSupERC20ErrorType.md)
- [SendSupERC20Parameters](type-aliases/SendSupERC20Parameters.md)
- [SendSupERC20ReturnType](type-aliases/SendSupERC20ReturnType.md)

## Utils

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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/utils/interop.ts#L32)
[packages/viem/src/utils/interop.ts:32](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L60)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:60](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/utils/interop.ts#L66)
[packages/viem/src/utils/interop.ts:66](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L106)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:106](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L85)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:85](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L85)
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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/actions/relayL2ToL2Message.ts#L103)
[packages/viem/src/actions/relayL2ToL2Message.ts:103](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/actions/sendL2ToL2Message.ts#L105)
[packages/viem/src/actions/sendL2ToL2Message.ts:105](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/packages/viem/src/actions/sendL2ToL2Message.ts#L105)
39 changes: 39 additions & 0 deletions packages/viem/docs/functions/estimateSendSupERC20Gas.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) / estimateSendSupERC20Gas

# estimateSendSupERC20Gas()

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

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

## Returns

`Promise`\<`bigint`\>

The estimated gas value.

## Defined in

[packages/viem/src/actions/sendSupERC20.ts:106](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/packages/viem/src/actions/sendSupERC20.ts#L106)
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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/actions/relayL2ToL2Message.ts#L74)
[packages/viem/src/actions/relayL2ToL2Message.ts:74](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/actions/sendL2ToL2Message.ts#L76)
[packages/viem/src/actions/sendL2ToL2Message.ts:76](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/packages/viem/src/actions/sendL2ToL2Message.ts#L76)
39 changes: 39 additions & 0 deletions packages/viem/docs/functions/sendSupERC20.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) / sendSupERC20

# sendSupERC20()

> **sendSupERC20**\<`chain`, `account`, `chainOverride`\>(`client`, `parameters`): `Promise`\<[`SendSupERC20ReturnType`](../type-aliases/SendSupERC20ReturnType.md)\>
Sends tokens to a target address on another chain. Used in the interop flow.

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

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

## Returns

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

The sendSupERC20 transaction hash. [SendSupERC20ReturnType](../type-aliases/SendSupERC20ReturnType.md)

## Defined in

[packages/viem/src/actions/sendSupERC20.ts:77](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/packages/viem/src/actions/sendSupERC20.ts#L77)
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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/actions/relayL2ToL2Message.ts#L129)
[packages/viem/src/actions/relayL2ToL2Message.ts:129](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/actions/sendL2ToL2Message.ts#L131)
[packages/viem/src/actions/sendL2ToL2Message.ts:131](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/packages/viem/src/actions/sendL2ToL2Message.ts#L131)
39 changes: 39 additions & 0 deletions packages/viem/docs/functions/simulateSendSupERC20.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) / simulateSendSupERC20

# simulateSendSupERC20()

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

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

## Returns

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

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

## Defined in

[packages/viem/src/actions/sendSupERC20.ts:132](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/packages/viem/src/actions/sendSupERC20.ts#L132)
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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/utils/interop.ts#L15)
[packages/viem/src/utils/interop.ts:15](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/utils/interop.ts#L16)
[packages/viem/src/utils/interop.ts:16](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L24)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:24](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L27)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:27](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/utils/interop.ts#L21)
[packages/viem/src/utils/interop.ts:21](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/utils/interop.ts#L22)
[packages/viem/src/utils/interop.ts:22](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L43)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:43](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L46)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:46](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L31)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:31](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/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/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L32)
[packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts:32](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/packages/viem/src/utils/l2ToL2CrossDomainMessenger.ts#L32)
2 changes: 1 addition & 1 deletion packages/viem/docs/type-aliases/MessageIdentifier.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ The timestamp that the log was emitted. Used to enforce the timestamp invariant

## Defined in

[packages/viem/src/types/interop.ts:7](https://github.com/ethereum-optimism/ecosystem/blob/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/types/interop.ts#L7)
[packages/viem/src/types/interop.ts:7](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/packages/viem/src/types/interop.ts#L7)
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
## Defined in

[packages/viem/src/actions/relayL2ToL2Message.ts:53](https://github.com/ethereum-optimism/ecosystem/blob/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/actions/relayL2ToL2Message.ts#L53)
[packages/viem/src/actions/relayL2ToL2Message.ts:53](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/packages/viem/src/actions/relayL2ToL2Message.ts#L53)
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
## Defined in

[packages/viem/src/actions/relayL2ToL2Message.ts:62](https://github.com/ethereum-optimism/ecosystem/blob/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/actions/relayL2ToL2Message.ts#L62)
[packages/viem/src/actions/relayL2ToL2Message.ts:62](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/packages/viem/src/actions/relayL2ToL2Message.ts#L62)
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ MessagePayload of the SentMessage event *

## Defined in

[packages/viem/src/actions/relayL2ToL2Message.ts:28](https://github.com/ethereum-optimism/ecosystem/blob/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/actions/relayL2ToL2Message.ts#L28)
[packages/viem/src/actions/relayL2ToL2Message.ts:28](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/packages/viem/src/actions/relayL2ToL2Message.ts#L28)
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
## Defined in

[packages/viem/src/actions/relayL2ToL2Message.ts:48](https://github.com/ethereum-optimism/ecosystem/blob/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/actions/relayL2ToL2Message.ts#L48)
[packages/viem/src/actions/relayL2ToL2Message.ts:48](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/packages/viem/src/actions/relayL2ToL2Message.ts#L48)
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
## Defined in

[packages/viem/src/actions/sendL2ToL2Message.ts:55](https://github.com/ethereum-optimism/ecosystem/blob/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/actions/sendL2ToL2Message.ts#L55)
[packages/viem/src/actions/sendL2ToL2Message.ts:55](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/packages/viem/src/actions/sendL2ToL2Message.ts#L55)
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
## Defined in

[packages/viem/src/actions/sendL2ToL2Message.ts:64](https://github.com/ethereum-optimism/ecosystem/blob/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/actions/sendL2ToL2Message.ts#L64)
[packages/viem/src/actions/sendL2ToL2Message.ts:64](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/packages/viem/src/actions/sendL2ToL2Message.ts#L64)
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ Target contract or wallet address.

## Defined in

[packages/viem/src/actions/sendL2ToL2Message.ts:28](https://github.com/ethereum-optimism/ecosystem/blob/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/actions/sendL2ToL2Message.ts#L28)
[packages/viem/src/actions/sendL2ToL2Message.ts:28](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/packages/viem/src/actions/sendL2ToL2Message.ts#L28)
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
## Defined in

[packages/viem/src/actions/sendL2ToL2Message.ts:50](https://github.com/ethereum-optimism/ecosystem/blob/5f378d3b907e5960d4ca4cd1b4965867e0f1fb40/packages/viem/src/actions/sendL2ToL2Message.ts#L50)
[packages/viem/src/actions/sendL2ToL2Message.ts:50](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/packages/viem/src/actions/sendL2ToL2Message.ts#L50)
13 changes: 13 additions & 0 deletions packages/viem/docs/type-aliases/SendSupERC20ContractReturnType.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) / SendSupERC20ContractReturnType

# SendSupERC20ContractReturnType

> **SendSupERC20ContractReturnType**: `ContractFunctionReturnType`\<*typeof* [`superchainTokenBridgeABI`](../variables/superchainTokenBridgeABI.md), `"nonpayable"`, `"sendERC20"`\>
## Defined in

[packages/viem/src/actions/sendSupERC20.ts:56](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/packages/viem/src/actions/sendSupERC20.ts#L56)
13 changes: 13 additions & 0 deletions packages/viem/docs/type-aliases/SendSupERC20ErrorType.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) / SendSupERC20ErrorType

# SendSupERC20ErrorType

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

[packages/viem/src/actions/sendSupERC20.ts:65](https://github.com/ethereum-optimism/ecosystem/blob/ab77241754eb52e5f63719e48141efd7250e972b/packages/viem/src/actions/sendSupERC20.ts#L65)
Loading

0 comments on commit dc8d997

Please sign in to comment.