mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-25 15:55:18 +00:00
convert sdk.Coin to ERC20 on internal testnet deploy (#1642)
This commit is contained in:
parent
80c8c2c0f0
commit
336bac7466
13
.github/scripts/seed-internal-testnet.sh
vendored
13
.github/scripts/seed-internal-testnet.sh
vendored
@ -101,8 +101,7 @@ kava tx issuance issue 6000000000ukava kava1vlpsrmdyuywvaqrv7rx6xga224sqfwz3fyfh
|
|||||||
read -r -a GENESIS_VALIDATOR_ADDRESS_ARRAY <<<"$GENESIS_VALIDATOR_ADDRESSES"
|
read -r -a GENESIS_VALIDATOR_ADDRESS_ARRAY <<<"$GENESIS_VALIDATOR_ADDRESSES"
|
||||||
|
|
||||||
# delegate 300KAVA to each validator
|
# delegate 300KAVA to each validator
|
||||||
for validator in "${GENESIS_VALIDATOR_ADDRESS_ARRAY[@]}"
|
for validator in "${GENESIS_VALIDATOR_ADDRESS_ARRAY[@]}"; do
|
||||||
do
|
|
||||||
kava tx staking delegate "${validator}" 300000000ukava --from dev-wallet --gas-prices 0.5ukava -y
|
kava tx staking delegate "${validator}" 300000000ukava --from dev-wallet --gas-prices 0.5ukava -y
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -114,7 +113,8 @@ echo "${KAVA_TESTNET_GOD_MNEMONIC}" | kava keys add --recover god
|
|||||||
|
|
||||||
# create template string for the proposal we want to enact
|
# create template string for the proposal we want to enact
|
||||||
# https://kava-labs.atlassian.net/wiki/spaces/ENG/pages/1228537857/Submitting+Governance+Proposals+WIP
|
# https://kava-labs.atlassian.net/wiki/spaces/ENG/pages/1228537857/Submitting+Governance+Proposals+WIP
|
||||||
PARAM_CHANGE_PROP_TEMPLATE=$(cat <<'END_HEREDOC'
|
PARAM_CHANGE_PROP_TEMPLATE=$(
|
||||||
|
cat <<'END_HEREDOC'
|
||||||
{
|
{
|
||||||
"@type": "/cosmos.params.v1beta1.ParameterChangeProposal",
|
"@type": "/cosmos.params.v1beta1.ParameterChangeProposal",
|
||||||
"title": "Set Initial ERC-20 Contracts",
|
"title": "Set Initial ERC-20 Contracts",
|
||||||
@ -165,3 +165,10 @@ kava tx committee vote 1 yes --gas 2000000 --gas-prices 0.01ukava --from god -y
|
|||||||
# fetch current module params
|
# fetch current module params
|
||||||
updatedEvmUtilParams=$(curl https://api.app.internal.testnet.us-east.production.kava.io/kava/evmutil/v1beta1/params)
|
updatedEvmUtilParams=$(curl https://api.app.internal.testnet.us-east.production.kava.io/kava/evmutil/v1beta1/params)
|
||||||
printf "updated evm util module params\n %s" , "$updatedEvmUtilParams"
|
printf "updated evm util module params\n %s" , "$updatedEvmUtilParams"
|
||||||
|
|
||||||
|
# if adding more cosmos coins -> er20s, ensure that the deployment order below remains the same.
|
||||||
|
# convert 1 HARD to an erc20. doing this ensures the contract is deployed.
|
||||||
|
kava tx evmutil convert-cosmos-coin-to-erc20 \
|
||||||
|
"$DEV_TEST_WALLET_ADDRESS" \
|
||||||
|
1000000hard \
|
||||||
|
--from dev-wallet --gas 2000000 --gas-prices 0.001ukava -y
|
||||||
|
Loading…
Reference in New Issue
Block a user