diff --git a/multisig/interaction/release-v3/config-setter.cfg b/multisig/interaction/release-v3/config-setter.cfg index c7d28a7a..3601cdcc 100644 --- a/multisig/interaction/release-v3/config-setter.cfg +++ b/multisig/interaction/release-v3/config-setter.cfg @@ -1,3 +1,5 @@ +#### Ethereum + function set-eth-contracts-settings() { update-config RELAYER_ADDR_0 erd1utcjaku9mpat3mqmref29ppklvk0rfamxtwa6vszpn538e5gxc7qxn60fv update-config RELAYER_ADDR_1 erd13cgug7jgk0rfjypgxxe78g08cuetcd59nwygdtvtxf757mp0kuxq0ptlmz @@ -14,6 +16,188 @@ function set-eth-contracts-settings() { manual-update-config-file } +function set-eth-USDC-token-settings { + update-config NR_DECIMALS_CHAIN_SPECIFIC 6 + update-config NR_DECIMALS_UNIVERSAL 6 + update-config UNIVERSAL_TOKEN USDC-c76f1f + update-config CHAIN_SPECIFIC_TOKEN_TICKER ETHUSDCJ + update-config CHAIN_SPECIFIC_TOKEN ETHUSDC-220753 + update-config ERC20_TOKEN 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 + update-config MINTBURN_WHITELIST true + update-config NATIVE_TOKEN false + update-config FEE_AMOUNT 20 + update-config MAX_AMOUNT 50000 + + manual-update-config-file +} + +function set-eth-UTK-token-settings { + update-config NR_DECIMALS_CHAIN_SPECIFIC 18 + update-config NR_DECIMALS_UNIVERSAL 18 + update-config UNIVERSAL_TOKEN UTK-2f80e9 + update-config CHAIN_SPECIFIC_TOKEN_TICKER ETHUTK + update-config CHAIN_SPECIFIC_TOKEN ETHUTK-8cdf7a + update-config ERC20_TOKEN 0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c + update-config MINTBURN_WHITELIST true + update-config NATIVE_TOKEN false + update-config FEE_AMOUNT 660 + update-config MAX_AMOUNT 676600 + + manual-update-config-file +} + +function set-eth-USDT-token-settings { + update-config NR_DECIMALS_CHAIN_SPECIFIC 6 + update-config NR_DECIMALS_UNIVERSAL 6 + update-config UNIVERSAL_TOKEN USDT-f8c08c + update-config CHAIN_SPECIFIC_TOKEN_TICKER ETHUSDT + update-config CHAIN_SPECIFIC_TOKEN ETHUSDT-9c73c6 + update-config ERC20_TOKEN 0xdac17f958d2ee523a2206206994597c13d831ec7 + update-config MINTBURN_WHITELIST true + update-config NATIVE_TOKEN false + update-config FEE_AMOUNT 20 + update-config MAX_AMOUNT 50000 + + manual-update-config-file +} + +#function set-eth-BUSD-token-settings { +# update-config NR_DECIMALS_CHAIN_SPECIFIC 18 +# update-config NR_DECIMALS_UNIVERSAL 18 +# update-config UNIVERSAL_TOKEN BUSD-40b57e +# update-config CHAIN_SPECIFIC_TOKEN_TICKER ETHBUSD +# update-config CHAIN_SPECIFIC_TOKEN ETHBUSD-450923 +# update-config ERC20_TOKEN 0x4fabb145d64652a948d72533023f6e7a623c7c53 +# update-config MINTBURN_WHITELIST true +# update-config NATIVE_TOKEN false +# update-config FEE_AMOUNT 25 +# update-config MAX_AMOUNT 50000 +# +# manual-update-config-file +#} + +function set-eth-HMT-token-settings { + update-config NR_DECIMALS_CHAIN_SPECIFIC 18 + update-config NR_DECIMALS_UNIVERSAL 18 + update-config UNIVERSAL_TOKEN HMT-fc75d2 + update-config CHAIN_SPECIFIC_TOKEN_TICKER ETHHMT + update-config CHAIN_SPECIFIC_TOKEN ETHHMT-18538a + update-config ERC20_TOKEN 0xd1ba9bac957322d6e8c07a160a3a8da11a0d2867 + update-config MINTBURN_WHITELIST true + update-config NATIVE_TOKEN false + update-config FEE_AMOUNT 870 + update-config MAX_AMOUNT 872750 + + manual-update-config-file +} + +function set-eth-CGG-token-settings { + update-config NR_DECIMALS_CHAIN_SPECIFIC 18 + update-config NR_DECIMALS_UNIVERSAL 18 + update-config UNIVERSAL_TOKEN CGG-8b4838 + update-config CHAIN_SPECIFIC_TOKEN_TICKER ETHCGG + update-config CHAIN_SPECIFIC_TOKEN ETHCGG-ee4e0c + update-config ERC20_TOKEN 0x1fe24f25b1cf609b9c4e7e12d802e3640dfa5e43 + update-config MINTBURN_WHITELIST true + update-config NATIVE_TOKEN false + update-config FEE_AMOUNT 1853 + update-config MAX_AMOUNT 635000 + + manual-update-config-file +} + +function set-eth-INFRA-token-settings { + update-config NR_DECIMALS_CHAIN_SPECIFIC 18 + update-config NR_DECIMALS_UNIVERSAL 18 + update-config UNIVERSAL_TOKEN INFRA-43985c + update-config CHAIN_SPECIFIC_TOKEN_TICKER ETHINFRA + update-config CHAIN_SPECIFIC_TOKEN ETHINFRA-60a3bf + update-config ERC20_TOKEN 0x013062189dc3dcc99e9cee714c513033b8d99e3c + update-config MINTBURN_WHITELIST true + update-config NATIVE_TOKEN false + update-config FEE_AMOUNT 150 + update-config MAX_AMOUNT 100000 + + manual-update-config-file +} + +function set-eth-WBTC-token-settings { + update-config NR_DECIMALS_CHAIN_SPECIFIC 8 + update-config NR_DECIMALS_UNIVERSAL 8 + update-config UNIVERSAL_TOKEN WBTC-5349b3 + update-config CHAIN_SPECIFIC_TOKEN_TICKER ETHWBTC + update-config CHAIN_SPECIFIC_TOKEN ETHWBTC-74e282 + update-config ERC20_TOKEN 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599 + update-config MINTBURN_WHITELIST true + update-config NATIVE_TOKEN false + update-config FEE_AMOUNT 0.00032055 + update-config MAX_AMOUNT 2 + + manual-update-config-file +} + +function set-eth-WETH-token-settings { + update-config NR_DECIMALS_CHAIN_SPECIFIC 18 + update-config NR_DECIMALS_UNIVERSAL 18 + update-config UNIVERSAL_TOKEN WETH-b4ca29 + update-config CHAIN_SPECIFIC_TOKEN_TICKER ETHWETH + update-config CHAIN_SPECIFIC_TOKEN ETHWETH-e1c126 + update-config ERC20_TOKEN 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 + update-config MINTBURN_WHITELIST true + update-config NATIVE_TOKEN false + update-config FEE_AMOUNT 0.00711 + update-config MAX_AMOUNT 28.5 + + manual-update-config-file +} + +function set-eth-WSDAI-token-settings { + update-config NR_DECIMALS_CHAIN_SPECIFIC 18 + update-config NR_DECIMALS_UNIVERSAL 18 + update-config UNIVERSAL_TOKEN WSDAI-277fee + update-config CHAIN_SPECIFIC_TOKEN_TICKER ETHWSDAI + update-config CHAIN_SPECIFIC_TOKEN ETHWSDAI-572803 + update-config ERC20_TOKEN 0x83f20f44975d03b1b09e64809b757c47f942beea + update-config MINTBURN_WHITELIST true + update-config NATIVE_TOKEN false + update-config FEE_AMOUNT 17 + update-config MAX_AMOUNT 50000 + + manual-update-config-file +} + +function set-eth-UMB-token-settings { + update-config NR_DECIMALS_CHAIN_SPECIFIC 18 + update-config NR_DECIMALS_UNIVERSAL 18 + update-config UNIVERSAL_TOKEN UMB-e2b3d8 + update-config CHAIN_SPECIFIC_TOKEN_TICKER ETHUMB + update-config CHAIN_SPECIFIC_TOKEN ETHUMB-291202 + update-config ERC20_TOKEN 0x6fc13eace26590b80cccab1ba5d51890577d83b2 + update-config MINTBURN_WHITELIST true + update-config NATIVE_TOKEN false + update-config FEE_AMOUNT 2640 + update-config MAX_AMOUNT 2500000 + + manual-update-config-file +} + +function set-eth-WDAI-token-settings { + update-config NR_DECIMALS_CHAIN_SPECIFIC 18 + update-config NR_DECIMALS_UNIVERSAL 18 + update-config UNIVERSAL_TOKEN WDAI-9eeb54 + update-config CHAIN_SPECIFIC_TOKEN_TICKER ETHWDAI + update-config CHAIN_SPECIFIC_TOKEN ETHWDAI-bd65f9 + update-config ERC20_TOKEN 0x6b175474e89094c44da98b954eedeac495271d0f + update-config MINTBURN_WHITELIST true + update-config NATIVE_TOKEN false + update-config FEE_AMOUNT 20 + update-config MAX_AMOUNT 50000 + + manual-update-config-file +} + +### BSC + function set-bsc-contracts-settings() { update-config RELAYER_ADDR_0 erd18ymp4ppzxjkexvceedxt2lwllgqf9r30tf53af5jx8tufqa70rvq8f48fc update-config RELAYER_ADDR_1 erd12l4hyrxp76fdjae42vqr7tfcs38d83qe4d5kh8gykvqkkr3a0ejqzsl568 @@ -30,40 +214,72 @@ function set-bsc-contracts-settings() { manual-update-config-file } -function set-oracle-addresses { - update-config ORACLE_ADDR_0 erd1fpchumqmwhfencl2r4za6cxr95h632crejvz6eywptq3jf5lvvqq9s6mm7 - update-config ORACLE_ADDR_1 erd1zlzllfd5nks50w9lvfl4m7czkzsnxlxuw4zl7y563wku90hpdgqqvnaqsg - update-config ORACLE_ADDR_2 erd19qnq0g2ym0ex2sthvmp9x94cl40uaar6hxr4hjxfyv7j37yy7uqq27ludx +function set-bsc-USDC-token-settings { + update-config NR_DECIMALS_CHAIN_SPECIFIC 18 + update-config NR_DECIMALS_UNIVERSAL 6 + update-config UNIVERSAL_TOKEN USDC-c76f1f + update-config CHAIN_SPECIFIC_TOKEN_TICKER BSCUSDC + update-config CHAIN_SPECIFIC_TOKEN BSCUSDC-887875 + update-config ERC20_TOKEN 0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d + update-config MINTBURN_WHITELIST true + update-config NATIVE_TOKEN false + update-config FEE_AMOUNT 1 + update-config MAX_AMOUNT 50000 manual-update-config-file } -function set-eth-USDC-token-settings { - update-config NR_DECIMALS_CHAIN_SPECIFIC 6 +function set-bsc-USDT-token-settings { + update-config NR_DECIMALS_CHAIN_SPECIFIC 18 update-config NR_DECIMALS_UNIVERSAL 6 - update-config UNIVERSAL_TOKEN USDCJLS-fe0ed1 - update-config CHAIN_SPECIFIC_TOKEN_TICKER ETHUSDCJ - update-config CHAIN_SPECIFIC_TOKEN ETHUSDCJ-2336be - update-config ERC20_TOKEN 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 + update-config UNIVERSAL_TOKEN USDT-f8c08c + update-config CHAIN_SPECIFIC_TOKEN_TICKER BSCUSDT + update-config CHAIN_SPECIFIC_TOKEN BSCUSDT-059796 + update-config ERC20_TOKEN 0x55d398326f99059ff775485246999027b3197955 update-config MINTBURN_WHITELIST true update-config NATIVE_TOKEN false - update-config FEE_AMOUNT 5 - update-config MAX_AMOUNT 1000 + update-config FEE_AMOUNT 1 + update-config MAX_AMOUNT 50000 manual-update-config-file } -function set-bsc-USDC-token-settings { +# function set-bsc-BUSD-token-settings { +# update-config NR_DECIMALS_CHAIN_SPECIFIC 18 +# update-config NR_DECIMALS_UNIVERSAL 18 +# update-config UNIVERSAL_TOKEN BUSD-40b57e +# update-config CHAIN_SPECIFIC_TOKEN_TICKER BSCBUSD +# update-config CHAIN_SPECIFIC_TOKEN BSCBUSD-69b1d9 +# update-config ERC20_TOKEN 0xe9e7cea3dedca5984780bafc599bd69add087d56 +# update-config MINTBURN_WHITELIST true +# update-config NATIVE_TOKEN false +# update-config FEE_AMOUNT 5 +# update-config MAX_AMOUNT 50000 +# +# manual-update-config-file +# } + +function set-bsc-TADA-token-settings { update-config NR_DECIMALS_CHAIN_SPECIFIC 18 - update-config NR_DECIMALS_UNIVERSAL 6 - update-config UNIVERSAL_TOKEN USDCJLS-fe0ed1 - update-config CHAIN_SPECIFIC_TOKEN_TICKER BSCUSDCJ - update-config CHAIN_SPECIFIC_TOKEN BSCUSDCJ-91756a - update-config ERC20_TOKEN 0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d + update-config NR_DECIMALS_UNIVERSAL 18 + update-config UNIVERSAL_TOKEN TADA-5c032c + update-config CHAIN_SPECIFIC_TOKEN_TICKER BSCTADA + update-config CHAIN_SPECIFIC_TOKEN BSCTADA-f64757 + update-config ERC20_TOKEN 0x9b26e318bc6a2c8b45f5daea2cc14697e0e0f8b5 update-config MINTBURN_WHITELIST true update-config NATIVE_TOKEN false - update-config FEE_AMOUNT 5 - update-config MAX_AMOUNT 1000 + update-config FEE_AMOUNT 45 + update-config MAX_AMOUNT 1000000 + + manual-update-config-file +} + +### common + +function set-oracle-addresses { + update-config ORACLE_ADDR_0 erd1fpchumqmwhfencl2r4za6cxr95h632crejvz6eywptq3jf5lvvqq9s6mm7 + update-config ORACLE_ADDR_1 erd1zlzllfd5nks50w9lvfl4m7czkzsnxlxuw4zl7y563wku90hpdgqqvnaqsg + update-config ORACLE_ADDR_2 erd19qnq0g2ym0ex2sthvmp9x94cl40uaar6hxr4hjxfyv7j37yy7uqq27ludx manual-update-config-file -} \ No newline at end of file +} diff --git a/multisig/interaction/release-v3/menu_functions.cfg b/multisig/interaction/release-v3/menu_functions.cfg index eb24cf74..a838bd3c 100644 --- a/multisig/interaction/release-v3/menu_functions.cfg +++ b/multisig/interaction/release-v3/menu_functions.cfg @@ -81,10 +81,24 @@ function unpause-contracts-bsc-v3 { function set-tokens-on-eth { confirmation-multiple set-eth-USDC-token-settings addMapping addTokenToWhitelist setPairDecimals + confirmation-multiple set-eth-UTK-token-settings addMapping addTokenToWhitelist setPairDecimals + confirmation-multiple set-eth-USDT-token-settings addMapping addTokenToWhitelist setPairDecimals + #confirmation-multiple set-eth-BUSD-token-settings addMapping addTokenToWhitelist setPairDecimals + confirmation-multiple set-eth-HMT-token-settings addMapping addTokenToWhitelist setPairDecimals + confirmation-multiple set-eth-CGG-token-settings addMapping addTokenToWhitelist setPairDecimals + confirmation-multiple set-eth-INFRA-token-settings addMapping addTokenToWhitelist setPairDecimals + confirmation-multiple set-eth-WBTC-token-settings addMapping addTokenToWhitelist setPairDecimals + confirmation-multiple set-eth-WETH-token-settings addMapping addTokenToWhitelist setPairDecimals + confirmation-multiple set-eth-WSDAI-token-settings addMapping addTokenToWhitelist setPairDecimals + confirmation-multiple set-eth-WDAI-token-settings addMapping addTokenToWhitelist setPairDecimals + confirmation-multiple set-eth-UMB-token-settings addMapping addTokenToWhitelist setPairDecimals } function set-tokens-on-bsc { confirmation-multiple set-bsc-USDC-token-settings addMapping addTokenToWhitelist setPairDecimals + confirmation-multiple set-bsc-USDT-token-settings addMapping addTokenToWhitelist setPairDecimals + #confirmation-multiple set-bsc-BUSD-token-settings addMapping addTokenToWhitelist setPairDecimals + confirmation-multiple set-bsc-TADA-token-settings addMapping addTokenToWhitelist setPairDecimals } function stake-oracles { @@ -107,6 +121,17 @@ function submit-aggregation-batches-eth { set-oracle-addresses confirmation-multiple set-eth-USDC-token-settings submitAggregatorBatch + confirmation-multiple set-eth-UTK-token-settings submitAggregatorBatch + confirmation-multiple set-eth-USDT-token-settings submitAggregatorBatch + #confirmation-multiple set-eth-BUSD-token-settings submitAggregatorBatch + confirmation-multiple set-eth-HMT-token-settings submitAggregatorBatch + confirmation-multiple set-eth-CGG-token-settings submitAggregatorBatch + confirmation-multiple set-eth-INFRA-token-settings submitAggregatorBatch + confirmation-multiple set-eth-WBTC-token-settings submitAggregatorBatch + confirmation-multiple set-eth-WETH-token-settings submitAggregatorBatch + confirmation-multiple set-eth-WSDAI-token-settings submitAggregatorBatch + confirmation-multiple set-eth-WDAI-token-settings submitAggregatorBatch + confirmation-multiple set-eth-UMB-token-settings submitAggregatorBatch } function submit-aggregation-batches-bsc { @@ -118,6 +143,9 @@ function submit-aggregation-batches-bsc { set-oracle-addresses confirmation-multiple set-bsc-USDC-token-settings submitAggregatorBatch + confirmation-multiple set-bsc-USDT-token-settings submitAggregatorBatch + #confirmation-multiple set-bsc-BUSD-token-settings submitAggregatorBatch + confirmation-multiple set-bsc-TADA-token-settings submitAggregatorBatch } function stake-relayers-eth { @@ -134,10 +162,24 @@ function stake-relayers-bsc { function set-roles-on-esdt-safe-eth { confirmation-multiple set-eth-USDC-token-settings setLocalRolesEsdtSafe + confirmation-multiple set-eth-UTK-token-settings setLocalRolesEsdtSafe + confirmation-multiple set-eth-USDT-token-settings setLocalRolesEsdtSafe + #confirmation-multiple set-eth-BUSD-token-settings setLocalRolesEsdtSafe + confirmation-multiple set-eth-HMT-token-settings setLocalRolesEsdtSafe + confirmation-multiple set-eth-CGG-token-settings setLocalRolesEsdtSafe + confirmation-multiple set-eth-INFRA-token-settings setLocalRolesEsdtSafe + confirmation-multiple set-eth-WBTC-token-settings setLocalRolesEsdtSafe + confirmation-multiple set-eth-WETH-token-settings setLocalRolesEsdtSafe + confirmation-multiple set-eth-WSDAI-token-settings setLocalRolesEsdtSafe + confirmation-multiple set-eth-WDAI-token-settings setLocalRolesEsdtSafe + confirmation-multiple set-eth-UMB-token-settings setLocalRolesEsdtSafe } function set-roles-on-esdt-safe-bsc { confirmation-multiple set-bsc-USDC-token-settings setLocalRolesEsdtSafe + confirmation-multiple set-bsc-USDT-token-settings setLocalRolesEsdtSafe + #confirmation-multiple set-bsc-BUSD-token-settings setLocalRolesEsdtSafe + confirmation-multiple set-bsc-TADA-token-settings setLocalRolesEsdtSafe } function unpause-wrapper {