Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/lucky-panda-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@aave-dao/solidity-utils': patch
---

add arc
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RPC_BINANCE=https://bsc-dataseed.binance.org/
RPC_BINANCE_TESTNET=https://data-seed-prebsc-1-s1.binance.org:8545/
RPC_ZKSYNC=https://mainnet.era.zksync.io
RPC_ZKSYNC_TESTNET=https://sepolia.era.zksync.dev
RPC_ARC=

# Etherscan api keys for verification & download utils
ETHERSCAN_API_KEY_MAINNET=
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ deploy-zksync :; FOUNDRY_PROFILE=zksync forge script zksync/script/DeployTranspa
deploy-xlayer :; forge script script/DeployTransparentProxyFactory.s.sol:DeployTransparentProxyFactory --rpc-url xlayer --broadcast --ledger --mnemonic-indexes ${MNEMONIC_INDEX} --sender ${LEDGER_SENDER} --verify --legacy -vvvv
deploy-megaeth :; forge script script/DeployTransparentProxyFactory.s.sol:DeployTransparentProxyFactory --rpc-url megaeth --broadcast --ledger --mnemonic-indexes ${MNEMONIC_INDEX} --sender ${LEDGER_SENDER} --verify --legacy -vvvv --skip-simulation
deploy-monad :; forge script script/DeployTransparentProxyFactory.s.sol:DeployTransparentProxyFactory --rpc-url monad --broadcast --ledger --mnemonic-indexes ${MNEMONIC_INDEX} --sender ${LEDGER_SENDER} --verify --legacy -vvvv
deploy-arc :; forge script script/DeployTransparentProxyFactory.s.sol:DeployTransparentProxyFactory --rpc-url arc --broadcast --ledger --mnemonic-indexes ${MNEMONIC_INDEX} --sender ${LEDGER_SENDER} -vvvv
# ---------------------------------------------- BASE SCRIPT CONFIGURATION ---------------------------------------------

BASE_LEDGER = --ledger --mnemonic-indexes $(MNEMONIC_INDEX) --sender $(LEDGER_SENDER)
Expand Down
1 change: 1 addition & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ bob = "${RPC_BOB}"
xlayer = "${RPC_XLAYER}"
megaeth = "${RPC_MEGAETH}"
monad = "${RPC_MONAD}"
arc = "${RPC_ARC}"

[fuzz]
no_zksync_reserved_addresses = true
Expand Down
5 changes: 5 additions & 0 deletions src/contracts/utils/ChainHelpers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ library ChainIds {
uint256 internal constant ANVIL = 31337;
uint256 internal constant MEGAETH = 4326;
uint256 internal constant MONAD = 143;
uint256 internal constant ARC = 5042;
}

library TestNetChainIds {
Expand Down Expand Up @@ -121,6 +122,8 @@ library ChainHelpers {
newFork = vm.createSelectFork(vm.rpcUrl('megaeth'));
} else if (chainId == ChainIds.MONAD) {
newFork = vm.createSelectFork(vm.rpcUrl('monad'));
} else if (chainId == ChainIds.ARC) {
newFork = vm.createSelectFork(vm.rpcUrl('arc'));
} else {
revert UnknownChainId();
}
Expand Down Expand Up @@ -175,6 +178,8 @@ library ChainHelpers {
networkName = 'megaeth';
} else if (chainId == ChainIds.MONAD) {
networkName = 'monad';
} else if (chainId == ChainIds.ARC) {
networkName = 'arc';
}
// testnets
else if (chainId == TestNetChainIds.ETHEREUM_SEPOLIA) {
Expand Down
4 changes: 4 additions & 0 deletions src/contracts/utils/ScriptUtils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ abstract contract MonadScript is WithChainIdValidation {
constructor() WithChainIdValidation(ChainIds.MONAD) {}
}

abstract contract ArcScript is WithChainIdValidation {
constructor() WithChainIdValidation(ChainIds.ARC) {}
}

library Create2Utils {
// https://github.com/safe-global/safe-singleton-factory
address public constant CREATE2_FACTORY = 0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7;
Expand Down
Loading