Skip to content

Commit ff12430

Browse files
contract ABI and address updates (#1293)
1 parent 08e6475 commit ff12430

3 files changed

Lines changed: 65 additions & 2 deletions

File tree

packages/internal/bridge/sdk/src/config/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ const CONTRACTS_FOR_BRIDGE = new Map<BridgeInstance, BridgeContracts>()
4444
wrappedIMX: '0x0',
4545
})
4646
.set(ETH_SEPOLIA_TO_ZKEVM_TESTNET, {
47-
rootERC20BridgeFlowRate: '0x8d4528775a4406Def316DC2b450eE539750F8FAA',
48-
childERC20Bridge: '0xb0f971e2d11A4D410148af51b170D64E725c0bB9',
47+
rootERC20BridgeFlowRate: '0x0D3C59c779Fd552C27b23F723E80246c840100F5',
48+
childERC20Bridge: '0x0D3C59c779Fd552C27b23F723E80246c840100F5',
4949
wrappedIMX: '0xa86C6C6d3D51c0592BE85dA05A9b06B62360D56E',
5050
})
5151
.set(ETH_MAINNET_TO_ZKEVM_MAINNET, {

packages/internal/bridge/sdk/src/contracts/ABIs/ChildERC20Bridge.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
export const CHILD_ERC20_BRIDGE = [
2+
{
3+
inputs: [
4+
{
5+
internalType: 'address',
6+
name: '_initializerAddress',
7+
type: 'address',
8+
},
9+
],
10+
stateMutability: 'nonpayable',
11+
type: 'constructor',
12+
},
213
{
314
inputs: [],
415
name: 'AlreadyMapped',
@@ -101,6 +112,11 @@ export const CHILD_ERC20_BRIDGE = [
101112
name: 'TransferWIMXFailed',
102113
type: 'error',
103114
},
115+
{
116+
inputs: [],
117+
name: 'UnauthorizedInitializer',
118+
type: 'error',
119+
},
104120
{
105121
inputs: [],
106122
name: 'ZeroAddress',
@@ -855,6 +871,19 @@ export const CHILD_ERC20_BRIDGE = [
855871
stateMutability: 'nonpayable',
856872
type: 'function',
857873
},
874+
{
875+
inputs: [],
876+
name: 'initializerAddress',
877+
outputs: [
878+
{
879+
internalType: 'address',
880+
name: '',
881+
type: 'address',
882+
},
883+
],
884+
stateMutability: 'view',
885+
type: 'function',
886+
},
858887
{
859888
inputs: [
860889
{

packages/internal/bridge/sdk/src/contracts/ABIs/RootERC20BridgeFlowRate.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
export const ROOT_ERC20_BRIDGE_FLOW_RATE = [
2+
{
3+
inputs: [
4+
{
5+
internalType: 'address',
6+
name: '_initializerAddress',
7+
type: 'address',
8+
},
9+
],
10+
stateMutability: 'nonpayable',
11+
type: 'constructor',
12+
},
213
{
314
inputs: [],
415
name: 'AlreadyMapped',
@@ -149,6 +160,16 @@ export const ROOT_ERC20_BRIDGE_FLOW_RATE = [
149160
name: 'TokenIsZero',
150161
type: 'error',
151162
},
163+
{
164+
inputs: [],
165+
name: 'TokenNotSupported',
166+
type: 'error',
167+
},
168+
{
169+
inputs: [],
170+
name: 'UnauthorizedInitializer',
171+
type: 'error',
172+
},
152173
{
153174
inputs: [
154175
{
@@ -1572,6 +1593,19 @@ export const ROOT_ERC20_BRIDGE_FLOW_RATE = [
15721593
stateMutability: 'pure',
15731594
type: 'function',
15741595
},
1596+
{
1597+
inputs: [],
1598+
name: 'initializerAddress',
1599+
outputs: [
1600+
{
1601+
internalType: 'address',
1602+
name: '',
1603+
type: 'address',
1604+
},
1605+
],
1606+
stateMutability: 'view',
1607+
type: 'function',
1608+
},
15751609
{
15761610
inputs: [
15771611
{

0 commit comments

Comments
 (0)