Skip to content

Commit 8a7b300

Browse files
authored
refactor(zevm): update payload to 2048 (node v29) (#484)
1 parent c151ad8 commit 8a7b300

File tree

10 files changed

+43
-10
lines changed

10 files changed

+43
-10
lines changed

contracts/zevm/GatewayZEVM.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ contract GatewayZEVM is
3939
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
4040

4141
/// @notice Max size of message + revertOptions revert message.
42-
uint256 public constant MAX_MESSAGE_SIZE = 1024;
42+
uint256 public constant MAX_MESSAGE_SIZE = 2048;
4343

4444
/// @dev Only protocol address allowed modifier.
4545
modifier onlyProtocol() {

data/addresses.testnet.json

+33
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
"chain_name": "bsc_testnet",
3030
"type": "zetaToken"
3131
},
32+
{
33+
"address": "0x6b2fe12c605d64e14ca69f9aba51550593ba92ff43376d0a6cc26a5ca226f9bd,0x6fc08f682551e52c2cc34362a20f744ba6a3d8d17f6583fa2f774887c4079700",
34+
"category": "omnichain",
35+
"chain_id": 103,
36+
"chain_name": "sui_testnet",
37+
"type": "gateway"
38+
},
3239
{
3340
"address": "ZETAjseVjuFsxdRxo6MmTCvqFwb3ZHUx56Co3vCmGis",
3441
"category": "omnichain",
@@ -124,6 +131,19 @@
124131
"symbol": "ETH.BASESEPOLIA",
125132
"type": "zrc20"
126133
},
134+
{
135+
"address": "0x3e128c169564DD527C8e9bd85124BF6A890E5a5f",
136+
"asset": "",
137+
"category": "omnichain",
138+
"chain_id": 7001,
139+
"chain_name": "zeta_testnet",
140+
"coin_type": "gas",
141+
"decimals": 9,
142+
"description": "ZetaChain ZRC20 SUI Testnet SUI",
143+
"foreign_chain_id": "103",
144+
"symbol": "SUI.SUI",
145+
"type": "zrc20"
146+
},
127147
{
128148
"address": "0x4bC32034caCcc9B7e02536945eDbC286bACbA073",
129149
"asset": "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d",
@@ -267,6 +287,19 @@
267287
"symbol": "USDC.AMOY",
268288
"type": "zrc20"
269289
},
290+
{
291+
"address": "0xE80e3e8Ac1C19c744d4c2147172489BEAF23E3C5",
292+
"asset": "a1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC",
293+
"category": "omnichain",
294+
"chain_id": 7001,
295+
"chain_name": "zeta_testnet",
296+
"coin_type": "erc20",
297+
"decimals": 6,
298+
"description": "ZetaChain ZRC20 USDC on Sui Testnet",
299+
"foreign_chain_id": "103",
300+
"symbol": "USDC.SUI",
301+
"type": "zrc20"
302+
},
270303
{
271304
"address": "0xEe9CC614D03e7Dbe994b514079f4914a605B4719",
272305
"asset": "",

docs/src/contracts/zevm/GatewayZEVM.sol/contract.GatewayZEVM.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Max size of message + revertOptions revert message.
4242

4343

4444
```solidity
45-
uint256 public constant MAX_MESSAGE_SIZE = 1024;
45+
uint256 public constant MAX_MESSAGE_SIZE = 2048;
4646
```
4747

4848

lib/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type ParamSymbol = "USDC.ARB" | "USDC.BSC" | "USDT.ARB" | "USDC.ETH" | "BTC.BTC" | "ETH.BASE" | "PEPE.ETH" | "USDT.AVAX" | "CBBTC.ETH" | "BNB.BSC" | "SOL.SOL" | "CBBTC.SOL" | "SHIB.ETH" | "USDT.ETH" | "USDC.SOL" | "USDT.BSC" | "USDC.BASE" | "USDC.AVAX" | "ETH.ARB" | "POL.POLYGON" | "DAI.ETH" | "WBTC.ETH" | "ULTI.BSC" | "ETH.ETH" | "USDT.POL" | "NPC.ETH" | "ULTI.ETH" | "CBBTC.BASE" | "AVAX.AVAX" | "USDT.SOL" | "USDC.POL" | "sETH.SEPOLIA" | "ETH.ARBSEP" | "ETH.BASESEPOLIA" | "USDC.ARBSEP" | "TON.TON" | "MATIC.AMOY" | "USDC" | "USDC.FUJI" | "SOL.SOLANA" | "USDC.SEPOLIA" | "tBNB" | "sBTC" | "USDC.AMOY" | "AVAX.FUJI" | "tBTC";
2-
export type ParamChainName = "eth_mainnet" | "bsc_mainnet" | "polygon_mainnet" | "solana_mainnet" | "zeta_mainnet" | "btc_mainnet" | "base_mainnet" | "arbitrum_mainnet" | "avalanche_mainnet" | "bsc_testnet" | "solana_devnet" | "zeta_testnet" | "btc_testnet" | "avalanche_testnet" | "amoy_testnet" | "base_sepolia" | "arbitrum_sepolia" | "ton_testnet" | "sepolia_testnet";
1+
export type ParamSymbol = "USDC.ARB" | "USDC.BSC" | "USDT.ARB" | "USDC.ETH" | "BTC.BTC" | "ETH.BASE" | "PEPE.ETH" | "USDT.AVAX" | "CBBTC.ETH" | "BNB.BSC" | "SOL.SOL" | "CBBTC.SOL" | "SHIB.ETH" | "USDT.ETH" | "USDC.SOL" | "USDT.BSC" | "USDC.BASE" | "USDC.AVAX" | "ETH.ARB" | "POL.POLYGON" | "DAI.ETH" | "WBTC.ETH" | "ULTI.BSC" | "ETH.ETH" | "USDT.POL" | "NPC.ETH" | "ULTI.ETH" | "CBBTC.BASE" | "AVAX.AVAX" | "USDT.SOL" | "USDC.POL" | "sETH.SEPOLIA" | "ETH.ARBSEP" | "ETH.BASESEPOLIA" | "SUI.SUI" | "USDC.ARBSEP" | "TON.TON" | "MATIC.AMOY" | "USDC" | "USDC.FUJI" | "SOL.SOLANA" | "USDC.SEPOLIA" | "tBNB" | "sBTC" | "USDC.AMOY" | "USDC.SUI" | "AVAX.FUJI" | "tBTC";
2+
export type ParamChainName = "eth_mainnet" | "bsc_mainnet" | "polygon_mainnet" | "solana_mainnet" | "zeta_mainnet" | "btc_mainnet" | "base_mainnet" | "arbitrum_mainnet" | "avalanche_mainnet" | "bsc_testnet" | "sui_testnet" | "solana_devnet" | "zeta_testnet" | "btc_testnet" | "avalanche_testnet" | "amoy_testnet" | "base_sepolia" | "arbitrum_sepolia" | "ton_testnet" | "sepolia_testnet";
33
export type ParamType = "tss" | "connector" | "erc20Custody" | "gateway" | "zetaToken" | "fungibleModule" | "systemContract" | "uniswapV2Factory" | "uniswapV2Router02" | "zrc20";
44

pkg/gatewayevmzevm.t.sol/gatewayevmzevmtest.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/gatewayzevm.sol/gatewayzevm.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/gatewayzevm.t.sol/gatewayzevminboundtest.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/gatewayzevm.t.sol/gatewayzevmoutboundtest.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/zrc20.t.sol/zrc20test.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

types/factories/GatewayZEVM__factory.ts

+1-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)