Skip to content

Commit 884db49

Browse files
authored
Merge pull request #28 from bgd-labs/feat/script-to-change-owner-guardians
feat: add script to change owner and guardian on adi / gov contracts
2 parents bfaf9d4 + 3692b76 commit 884db49

16 files changed

+51
-18
lines changed

.gitmodules

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
[submodule "lib/aave-helpers"]
55
path = lib/aave-helpers
66
url = https://github.com/bgd-labs/aave-helpers
7-
branch = fix/e2e-fix-forwarder-diff-zksync

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,3 +270,6 @@ deploy-ccc-shuffle-payload:
270270

271271
deploy-zksync-path-payload:
272272
$(call deploy_fn,payloads/adapters/zksync/Network_Deployments,ethereum)
273+
274+
update-owners-and-guardians:
275+
$(call deploy_fn,helpers/Update_Ownership,zksync)

foundry.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata="none"
1111
solc = "0.8.19"
1212
ffi = true
1313

14-
[profile.default.zksync]
14+
[profile.zksync.zksync]
1515
fallback_oz = true
1616
mode = "3"
1717
zksolc="1.4.1"

lib/aave-helpers

Submodule aave-helpers updated 46 files

remappings.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
solidity-utils/=lib/aave-delivery-infrastructure/lib/solidity-utils/src/
1+
solidity-utils/=lib/aave-helpers/lib/solidity-utils/src/
22
forge-std/=lib/aave-helpers/lib/forge-std/src/
33
openzeppelin-contracts/=lib/aave-delivery-infrastructure/lib/openzeppelin-contracts/
44
aave-helpers/=lib/aave-helpers/src/

scripts/InitialDeployments.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ contract Zksync is BaseInitialDeployment {
272272
// }
273273

274274
function TRANSACTION_NETWORK() internal pure override returns (uint256) {
275-
return ChainIds.ZK_SYNC;
275+
return ChainIds.ZKSYNC;
276276
}
277277
}
278278

scripts/access_control/network_scripts/GranularGuardianNetworkDeploys.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,6 @@ contract Zksync is DeployGranularGuardian {
217217
}
218218

219219
function TRANSACTION_NETWORK() internal pure override returns (uint256) {
220-
return ChainIds.ZK_SYNC;
220+
return ChainIds.ZKSYNC;
221221
}
222222
}

scripts/adapters/DeployZkSyncAdapter.s.sol

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import '../BaseDeployerScript.sol';
66

77
abstract contract DeployZkSyncAdapter is BaseDeployerScript, BaseZkSyncAdapter {
88
function _execute(Addresses memory addresses) internal virtual override {
9-
if (TRANSACTION_NETWORK() == ChainIds.ZK_SYNC) {
9+
if (TRANSACTION_NETWORK() == ChainIds.ZKSYNC) {
1010
addresses.zksyncAdapter = _deployWithoutCreate2(
1111
BaseAdapterArgs({
1212
crossChainController: addresses.crossChainController,
@@ -31,7 +31,7 @@ contract Ethereum is DeployZkSyncAdapter {
3131
}
3232

3333
function REFUND_ADDRESS() internal view override returns (address) {
34-
Addresses memory remoteAddresses = _getAddresses(ChainIds.ZK_SYNC);
34+
Addresses memory remoteAddresses = _getAddresses(ChainIds.ZKSYNC);
3535
return remoteAddresses.crossChainController;
3636
}
3737

@@ -46,7 +46,7 @@ contract Ethereum is DeployZkSyncAdapter {
4646

4747
contract Zksync is DeployZkSyncAdapter {
4848
function TRANSACTION_NETWORK() internal pure override returns (uint256) {
49-
return ChainIds.ZK_SYNC;
49+
return ChainIds.ZKSYNC;
5050
}
5151

5252
function REMOTE_CCC_BY_NETWORK() internal view override returns (RemoteCCC[] memory) {
@@ -68,7 +68,7 @@ contract Ethereum_testnet is DeployZkSyncAdapter {
6868
}
6969

7070
function REFUND_ADDRESS() internal view override returns (address) {
71-
Addresses memory remoteAddresses = _getAddresses(TestNetChainIds.ZK_SYNC_SEPOLIA);
71+
Addresses memory remoteAddresses = _getAddresses(TestNetChainIds.ZKSYNC_SEPOLIA);
7272
return remoteAddresses.crossChainController;
7373
}
7474

@@ -87,7 +87,7 @@ contract Ethereum_testnet is DeployZkSyncAdapter {
8787

8888
contract Zksync_testnet is DeployZkSyncAdapter {
8989
function TRANSACTION_NETWORK() internal pure override returns (uint256) {
90-
return TestNetChainIds.ZK_SYNC_SEPOLIA;
90+
return TestNetChainIds.ZKSYNC_SEPOLIA;
9191
}
9292

9393
function REMOTE_CCC_BY_NETWORK() internal view override returns (RemoteCCC[] memory) {

scripts/ccc/DeployCCC.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ contract Celo is BaseCCCNetworkDeployment {
146146

147147
contract Zksync is BaseCCCNetworkDeployment {
148148
function TRANSACTION_NETWORK() internal pure override returns (uint256) {
149-
return ChainIds.ZK_SYNC;
149+
return ChainIds.ZKSYNC;
150150
}
151151
}
152152

0 commit comments

Comments
 (0)