ecosystem
@eth-optimism/viem
•
Docs
@eth-optimism/viem
ABI
crossL2InboxABI
l2ToL2CrossDomainMessengerABI
superchainERC20ABI
superchainTokenBridgeABI
superchainWETHABI
L2 Public Actions
simulateDepositSuperchainWETH
simulateRelayL2ToL2Message
simulateSendL2ToL2Message
simulateSendSupERC20
simulateSendSuperchainWETH
simulateWithdrawSuperchainWETH
L2 Wallet Actions
depositSuperchainWETH
estimateDepositSuperchainWETHGas
estimateRelayL2ToL2MessageGas
estimateSendL2ToL2MessageGas
estimateSendSupERC20Gas
estimateSendSuperchainWETHGas
estimateWithdrawSuperchainWETHGas
relayL2ToL2Message
sendL2ToL2Message
sendSupERC20
sendSuperchainWETH
withdrawSuperchainWETH
Other
CreateInteropMessageParameters
CreateInteropMessageReturnType
CreateInteropSentL2ToL2MessagesParameters
CreateInteropSentL2ToL2MessagesReturnType
DecodeExecutingMessagesParameters
DecodeExecutingMessagesReturnType
DecodeRelayedL2ToL2MessagesParameters
DecodeRelayedL2ToL2MessagesReturnType
DecodeSentL2ToL2MessagesParameters
DecodeSentL2ToL2MessagesReturnType
Predeploy Addresses
contracts
Supersim
supersimL1
supersimL2A
supersimL2B
Types
DepositSuperchainWETHContractReturnType
DepositSuperchainWETHErrorType
DepositSuperchainWETHParameters
DepositSuperchainWETHReturnType
MessageIdentifier
RelayL2ToL2MessageContractReturnType
RelayL2ToL2MessageErrorType
RelayL2ToL2MessageParameters
RelayL2ToL2MessageReturnType
SendL2ToL2MessageContractReturnType
SendL2ToL2MessageErrorType
SendL2ToL2MessageParameters
SendL2ToL2MessageReturnType
SendSupERC20ContractReturnType
SendSupERC20ErrorType
SendSupERC20Parameters
SendSupERC20ReturnType
SendSuperchainWETHParameters
WithdrawSuperchainWETHContractReturnType
WithdrawSuperchainWETHErrorType
WithdrawSuperchainWETHParameters
WithdrawSuperchainWETHReturnType
Utils
createInteropMessage
createInteropSentL2ToL2Messages
decodeExecutingMessages
decodeRelayedL2ToL2Messages
decodeSentL2ToL2Messages