diff --git a/.gitmodules b/.gitmodules index 66a28e2..94e23a0 100644 --- a/.gitmodules +++ b/.gitmodules @@ -35,3 +35,6 @@ [submodule "lib/chainlink"] path = lib/chainlink url = https://github.com/smartcontractkit/chainlink +[submodule "lib/utils"] + path = lib/utils + url = https://github.com/AngleProtocol/utils diff --git a/helpers/common.sh b/helpers/common.sh deleted file mode 100644 index 7d28f4c..0000000 --- a/helpers/common.sh +++ /dev/null @@ -1,83 +0,0 @@ -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 -} \ No newline at end of file diff --git a/helpers/createProposal.sh b/helpers/createProposal.sh index 47fad49..1cfc17b 100644 --- a/helpers/createProposal.sh +++ b/helpers/createProposal.sh @@ -1,6 +1,6 @@ #! /bin/bash -source helpers/common.sh +source lib/utils/helpers/common.sh function usage { echo "bash createProposal.sh