Skip to content

Commit e07ab1b

Browse files
authored
Upgrade sei (#4645)
2 parents 38d337c + 091dbbc commit e07ab1b

File tree

3 files changed

+63
-7
lines changed

3 files changed

+63
-7
lines changed

deployments/deployments.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@
758758
"ucs03": {
759759
"address": "0x5fbe74a283f7954f10aa04c2edf55578811aeb03",
760760
"height": 169277356,
761-
"commit": "3be0f9a289f3dafb3677723d943786e28ad6e3ef"
761+
"commit": "6187819079b3acb603e4d8c2d71ea6bd94d48e87"
762762
}
763763
}
764764
}

evm/evm.nix

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ _: {
204204
#
205205
# weth : ucs03 - address of the WETH equivalent on this chain
206206
# rate-limit-enabled : ucs03 - whether rate limiting is enabled for ucs03-zkgm
207-
# native-token-name : ucs03 - name of the native token on the chain, default to Ether
208-
# native-token-symbol : ucs03 - symbol of the native token on the chain, default to ETH
209-
# native-token-decimals : ucs03 - number of decimal places for the native token, default to 18
207+
# native-token-name : ucs03 - name of the native token on the chain
208+
# native-token-symbol : ucs03 - symbol of the native token on the chain
209+
# native-token-decimals : ucs03 - number of decimal places for the native token
210210
#
211211
# verify : whether this chain supports verification. defaults to true, if true then the
212212
# following args are also read:
@@ -225,6 +225,10 @@ _: {
225225
weth = "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF";
226226
rate-limit-enabled = "false";
227227

228+
native-token-name = "Ether";
229+
native-token-symbol = "ETH";
230+
native-token-decimals = 18;
231+
228232
verify = pkgs.stdenv.isx86_64;
229233
verifier = "blockscout";
230234
verification-key = ''""'';
@@ -257,6 +261,10 @@ _: {
257261
weth = "0x7b79995e5f793a07bc00c21412e50ecae098e7f9";
258262
rate-limit-enabled = "false";
259263

264+
native-token-name = "Ether";
265+
native-token-symbol = "ETH";
266+
native-token-decimals = 18;
267+
260268
verifier = "etherscan";
261269
verification-key = ''"$(op item get tenderly --vault union-testnet-10 --field contract-verification-api-key --reveal)"'';
262270
verifier-url = mkTenderlyVerifierUrl chain-id;
@@ -270,6 +278,10 @@ _: {
270278
weth = "0x94373a4919b3240d86ea41593d5eba789fef3848";
271279
rate-limit-enabled = "false";
272280

281+
native-token-name = "Ether";
282+
native-token-symbol = "ETH";
283+
native-token-decimals = 18;
284+
273285
verifier = "etherscan";
274286
verification-key = ''"$(op item get tenderly --vault union-testnet-10 --field contract-verification-api-key --reveal)"'';
275287
verifier-url = mkTenderlyVerifierUrl chain-id;
@@ -299,6 +311,10 @@ _: {
299311
weth = "0x4200000000000000000000000000000000000006";
300312
rate-limit-enabled = "false";
301313

314+
native-token-name = "Ether";
315+
native-token-symbol = "ETH";
316+
native-token-decimals = 18;
317+
302318
verifier = "etherscan";
303319
verification-key = ''"$(op item get tenderly --vault union-testnet-10 --field contract-verification-api-key --reveal)"'';
304320
verifier-url = mkTenderlyVerifierUrl chain-id;
@@ -328,6 +344,10 @@ _: {
328344
weth = "0xDc78B593dD44914C326D1ed37501EAd48c4C5628";
329345
rate-limit-enabled = "false";
330346

347+
native-token-name = "Sei";
348+
native-token-symbol = "SEI";
349+
native-token-decimals = 18;
350+
331351
verifier = "etherscan";
332352
verification-key = ''"$(op item get tenderly --vault union-testnet-10 --field contract-verification-api-key --reveal)"'';
333353
verifier-url = mkTenderlyVerifierUrl chain-id;
@@ -349,6 +369,10 @@ _: {
349369
private-key = ''"$(op item get deployer --vault union-testnet-10 --field evm-private-key --reveal)"'';
350370
weth = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2";
351371

372+
native-token-name = "Ether";
373+
native-token-symbol = "ETH";
374+
native-token-decimals = 18;
375+
352376
verifier = "etherscan";
353377
verification-key = ''"$(op item get tenderly --vault union-testnet-10 --field contract-verification-api-key --reveal)"'';
354378
verifier-url = mkTenderlyVerifierUrl chain-id;
@@ -361,6 +385,10 @@ _: {
361385
private-key = ''"$(op item get deployer --vault union-testnet-10 --field evm-private-key --reveal)"'';
362386
weth = "0x4200000000000000000000000000000000000006";
363387

388+
native-token-name = "Ether";
389+
native-token-symbol = "ETH";
390+
native-token-decimals = 18;
391+
364392
verifier = "etherscan";
365393
verification-key = ''"$(op item get tenderly --vault union-testnet-10 --field contract-verification-api-key --reveal)"'';
366394
verifier-url = mkTenderlyVerifierUrl chain-id;

evm/scripts/Deploy.s.sol

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,6 +1139,35 @@ contract GetDeployed is VersionedScript {
11391139
implUCS00 = implUCS00.serialize("args", bytes(hex""));
11401140
impls.serialize(implOf(ucs00).toHexString(), implUCS00);
11411141

1142+
string memory implUCS03Send = "implUCS03Send";
1143+
implUCS03Send.serialize(
1144+
"contract",
1145+
string("contracts/apps/ucs/03-zkgm/Zkgm.sol:UCS03ZkgmSendImpl")
1146+
);
1147+
implUCS03Send = implUCS03Send.serialize(
1148+
"args",
1149+
abi.encode(
1150+
handler,
1151+
weth,
1152+
nativeTokenName,
1153+
nativeTokenSymbol,
1154+
nativeTokenDecimals
1155+
)
1156+
);
1157+
impls.serialize(
1158+
UCS03Zkgm(payable(ucs03)).SEND_IMPL().toHexString(), implUCS03Send
1159+
);
1160+
1161+
string memory implUCS03Stake = "implUCS03Stake";
1162+
implUCS03Stake.serialize(
1163+
"contract",
1164+
string("contracts/apps/ucs/03-zkgm/Zkgm.sol:UCS03ZkgmStakeImpl")
1165+
);
1166+
implUCS03Stake = implUCS03Stake.serialize("args", abi.encode(handler));
1167+
impls.serialize(
1168+
UCS03Zkgm(payable(ucs03)).STAKE_IMPL().toHexString(), implUCS03Stake
1169+
);
1170+
11421171
string memory implUCS03 = "implUCS03";
11431172
implUCS03.serialize(
11441173
"contract", string("contracts/apps/ucs/03-zkgm/Zkgm.sol:UCS03Zkgm")
@@ -1150,9 +1179,8 @@ contract GetDeployed is VersionedScript {
11501179
weth,
11511180
zkgmERC20,
11521181
rateLimitEnabled,
1153-
nativeTokenName,
1154-
nativeTokenSymbol,
1155-
nativeTokenDecimals
1182+
UCS03Zkgm(payable(ucs03)).SEND_IMPL(),
1183+
UCS03Zkgm(payable(ucs03)).STAKE_IMPL()
11561184
)
11571185
);
11581186
impls = impls.serialize(implOf(ucs03).toHexString(), implUCS03);

0 commit comments

Comments
 (0)