diff --git a/.gitmodules b/.gitmodules index 32f4fc9..6cc88ab 100644 --- a/.gitmodules +++ b/.gitmodules @@ -16,4 +16,19 @@ [submodule "lib/solidity-stringutils"] path = lib/solidity-stringutils url = https://github.com/Arachnid/solidity-stringutils - ignore = dirty \ No newline at end of file + ignore = dirty +[submodule "lib/angle-transmuter"] + path = lib/angle-transmuter + url = https://github.com/AngleProtocol/angle-transmuter +[submodule "lib/borrow-contracts"] + path = lib/borrow-contracts + url = https://github.com/AngleProtocol/borrow-contracts +[submodule "lib/new-oz"] + path = lib/new-oz + url = https://github.com/OpenZeppelin/openzeppelin-contracts +[submodule "lib/new-oz-upgradeable"] + path = lib/new-oz-upgradeable + url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable +[submodule "lib/chainlink"] + path = lib/chainlink + url = https://github.com/smartcontractkit/chainlink diff --git a/foundry.toml b/foundry.toml index e3a0c73..02a1d6f 100644 --- a/foundry.toml +++ b/foundry.toml @@ -12,6 +12,7 @@ optimizer = true optimizer_runs = 1000 solc_version = "0.8.23" ffi = true +fs_permissions = [{ access = "read-write", path = "./scripts/proposals/payload.json"}] [fuzz] runs = 10000 @@ -43,7 +44,7 @@ optimism = { key = "${OPTIMISM_ETHERSCAN_API_KEY}" } polygon = { key = "${POLYGON_ETHERSCAN_API_KEY}" } avalanche = { key = "${AVALANCHE_ETHERSCAN_API_KEY}" } celo = { key = "${CELO_ETHERSCAN_API_KEY}", url = "https://api.celoscan.io/api" } -polygon-zkevm = { key = "${POLYGONZKEVM_ETHERSCAN_API_KEY}", url = "https://api-zkevm.polygonscan.com/api" } +polygon-zkevm = { key = "${POLYGON_ZKEVM_ETHERSCAN_API_KEY}", url = "https://api-zkevm.polygonscan.com/api" } bsc = { key = "${BSC_ETHERSCAN_API_KEY}"} base = { key = "${BASE_ETHERSCAN_API_KEY}", url = "https://api.basescan.org/api" } linea = { key = "${LINEA_ETHERSCAN_API_KEY}" } diff --git a/helpers/createProposal.sh b/helpers/createProposal.sh new file mode 100644 index 0000000..0514ed2 --- /dev/null +++ b/helpers/createProposal.sh @@ -0,0 +1,197 @@ +#! /bin/bash + +function chain_to_uri { + chain=$1 + + case $chain in + "1") + echo $ETH_NODE_URI_MAINNET + ;; + "2") + echo $ETH_NODE_URI_ARBITRUM + ;; + "3") + echo $ETH_NODE_URI_POLYGON + ;; + "4") + echo $ETH_NODE_URI_GNOSIS + ;; + "5") + echo $ETH_NODE_URI_AVALANCHE + ;; + "6") + echo $ETH_NODE_URI_BASE + ;; + "7") + echo $ETH_NODE_URI_BSC + ;; + "8") + echo $ETH_NODE_URI_CELO + ;; + "9") + echo $ETH_NODE_URI_POLYGON_ZKEVM + ;; + "10") + echo $ETH_NODE_URI_OPTIMISM + ;; + "11") + echo $ETH_NODE_URI_LINEA + ;; + *) + ;; + esac +} + +function chain_to_chainId { + chain=$1 + + case $chain in + "1") + echo "1" + ;; + "2") + echo "42161" + ;; + "3") + echo "137" + ;; + "4") + echo "100" + ;; + "5") + echo "43114" + ;; + "6") + echo "8453" + ;; + "7") + echo "56" + ;; + "8") + echo "42220" + ;; + "9") + echo "1101" + ;; + "10") + echo "10" + ;; + "11") + echo "59144" + ;; + *) + ;; + esac +} + +function usage { + echo "bash createProposal.sh