Skip to content

Commit

Permalink
feat(viem): update SuperchainWETH abi to latest (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
tremarkley authored Oct 22, 2024
1 parent 22ca398 commit 6ff0b6d
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 85 deletions.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-grapes-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@eth-optimism/viem": patch
---

Update SuperchainWETH abi to latest version
131 changes: 46 additions & 85 deletions packages/viem/src/abis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,42 @@ export const superchainWETHABI = [
],
stateMutability: 'view',
},
{
type: 'function',
name: 'crosschainBurn',
inputs: [
{
name: '_from',
type: 'address',
internalType: 'address',
},
{
name: '_amount',
type: 'uint256',
internalType: 'uint256',
},
],
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
name: 'crosschainMint',
inputs: [
{
name: '_to',
type: 'address',
internalType: 'address',
},
{
name: '_amount',
type: 'uint256',
internalType: 'uint256',
},
],
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
name: 'decimals',
Expand Down Expand Up @@ -1046,52 +1082,6 @@ export const superchainWETHABI = [
],
stateMutability: 'view',
},
{
type: 'function',
name: 'relayERC20',
inputs: [
{
name: 'from',
type: 'address',
internalType: 'address',
},
{
name: 'dst',
type: 'address',
internalType: 'address',
},
{
name: 'wad',
type: 'uint256',
internalType: 'uint256',
},
],
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
name: 'sendERC20',
inputs: [
{
name: 'dst',
type: 'address',
internalType: 'address',
},
{
name: 'wad',
type: 'uint256',
internalType: 'uint256',
},
{
name: 'chainId',
type: 'uint256',
internalType: 'uint256',
},
],
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
name: 'symbol',
Expand Down Expand Up @@ -1189,7 +1179,7 @@ export const superchainWETHABI = [
name: 'withdraw',
inputs: [
{
name: 'wad',
name: '_amount',
type: 'uint256',
internalType: 'uint256',
},
Expand Down Expand Up @@ -1224,16 +1214,16 @@ export const superchainWETHABI = [
},
{
type: 'event',
name: 'Deposit',
name: 'CrosschainBurnt',
inputs: [
{
name: 'dst',
name: 'from',
type: 'address',
indexed: true,
internalType: 'address',
},
{
name: 'wad',
name: 'amount',
type: 'uint256',
indexed: false,
internalType: 'uint256',
Expand All @@ -1243,14 +1233,8 @@ export const superchainWETHABI = [
},
{
type: 'event',
name: 'RelayERC20',
name: 'CrosschainMinted',
inputs: [
{
name: 'from',
type: 'address',
indexed: true,
internalType: 'address',
},
{
name: 'to',
type: 'address',
Expand All @@ -1263,39 +1247,21 @@ export const superchainWETHABI = [
indexed: false,
internalType: 'uint256',
},
{
name: 'source',
type: 'uint256',
indexed: false,
internalType: 'uint256',
},
],
anonymous: false,
},
{
type: 'event',
name: 'SendERC20',
name: 'Deposit',
inputs: [
{
name: 'from',
type: 'address',
indexed: true,
internalType: 'address',
},
{
name: 'to',
name: 'dst',
type: 'address',
indexed: true,
internalType: 'address',
},
{
name: 'amount',
type: 'uint256',
indexed: false,
internalType: 'uint256',
},
{
name: 'destination',
name: 'wad',
type: 'uint256',
indexed: false,
internalType: 'uint256',
Expand Down Expand Up @@ -1349,17 +1315,12 @@ export const superchainWETHABI = [
},
{
type: 'error',
name: 'CallerNotL2ToL2CrossDomainMessenger',
inputs: [],
},
{
type: 'error',
name: 'InvalidCrossDomainSender',
name: 'NotCustomGasToken',
inputs: [],
},
{
type: 'error',
name: 'NotCustomGasToken',
name: 'Unauthorized',
inputs: [],
},
] as const

0 comments on commit 6ff0b6d

Please sign in to comment.