File tree 2 files changed +53
-0
lines changed
2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change @@ -210,12 +210,14 @@ _: {
210
210
rpc-url = "https://rpc-sepolia.rockx.com" ;
211
211
private-key = ''"$1"'' ;
212
212
extra-args = ''--verify --verifier etherscan --etherscan-api-key "$2"'' ;
213
+ weth = "0x7b79995e5f793a07bc00c21412e50ecae098e7f9" ;
213
214
}
214
215
{
215
216
network = "holesky" ;
216
217
rpc-url = "https://1rpc.io/holesky" ;
217
218
private-key = ''"$1"'' ;
218
219
extra-args = ''--verify --verifier etherscan --etherscan-api-key "$2"'' ;
220
+ weth = "0x94373a4919b3240d86ea41593d5eba789fef3848" ;
219
221
}
220
222
{
221
223
network = "0g-testnet" ;
395
397
dry ? false ,
396
398
rpc-url ,
397
399
protocol ,
400
+ weth ? "" ,
398
401
...
399
402
} :
400
403
mkCi false (
433
436
cp --no-preserve=mode -r ${ self' . packages . evm-contracts } /* .
434
437
cp --no-preserve=mode -r ${ evmSources } /* .
435
438
439
+ WETH=${ weth } \
436
440
DEPLOYER="$argc_deployer_pk" \
437
441
SENDER="$argc_sender_pk" \
438
442
OWNER="${ pkgs . lib . optionalString dry "$argc_owner_pk" } " \
@@ -758,6 +762,18 @@ _: {
758
762
) ;
759
763
} ) networks
760
764
)
765
+ // builtins . listToAttrs (
766
+ builtins . map ( args : {
767
+ name = "eth-dryupgrade-${ args . network } -ucs03" ;
768
+ value = eth-upgrade (
769
+ {
770
+ dry = true ;
771
+ protocol = "UCS03" ;
772
+ }
773
+ // args
774
+ ) ;
775
+ } ) networks
776
+ )
761
777
// builtins . listToAttrs (
762
778
builtins . map ( args : {
763
779
name = "eth-dryupgrade-${ args . network } -cometbls-client" ;
Original file line number Diff line number Diff line change @@ -932,6 +932,43 @@ contract GetDeployed is Script {
932
932
}
933
933
}
934
934
935
+ contract DryUpgradeUCS03 is Script {
936
+ using LibString for * ;
937
+
938
+ address immutable deployer;
939
+ address immutable sender;
940
+ address immutable owner;
941
+
942
+ constructor () {
943
+ deployer = vm.envAddress ("DEPLOYER " );
944
+ sender = vm.envAddress ("SENDER " );
945
+ owner = vm.envAddress ("OWNER " );
946
+ }
947
+
948
+ function getDeployed (
949
+ string memory salt
950
+ ) internal view returns (address ) {
951
+ return CREATE3.predictDeterministicAddress (
952
+ keccak256 (abi.encodePacked (sender.toHexString (), "/ " , salt)),
953
+ deployer
954
+ );
955
+ }
956
+
957
+ function run () public {
958
+ address ucs03 = getDeployed (Protocols.make (Protocols.UCS03));
959
+
960
+ console.log (string (abi.encodePacked ("UCS03: " , ucs03.toHexString ())));
961
+
962
+ IWETH weth = IWETH (vm.envAddress ("WETH " ));
963
+
964
+ address newImplementation = address (new UCS03Zkgm ());
965
+ vm.prank (owner);
966
+ UCS03Zkgm (ucs03).upgradeToAndCall (
967
+ newImplementation, abi.encodeCall (UCS03Zkgm.setWeth, (weth))
968
+ );
969
+ }
970
+ }
971
+
935
972
contract UpgradeUCS03 is Script {
936
973
using LibString for * ;
937
974
You can’t perform that action at this time.
0 commit comments