From b8e6e584b82d0e9090c3a541e9c6d078cfb222cc Mon Sep 17 00:00:00 2001 From: Draco Date: Mon, 19 Aug 2024 12:23:51 -0400 Subject: [PATCH] chore(ci): update internal testnet genesis and seed to support committee voting (#2008) * chore(ci): update internal testnet genesis and seed to support committee voting * chore(ci): update gov proposal voting period to 7 days * chore: use auto gas calculation --- .github/scripts/seed-internal-testnet.sh | 15 +++++++++++++++ ci/env/kava-internal-testnet/genesis.json | 22 ++++++++++++++++++++-- ci/env/kava-protonet/genesis.json | 4 ++-- 3 files changed, 37 insertions(+), 4 deletions(-) diff --git a/.github/scripts/seed-internal-testnet.sh b/.github/scripts/seed-internal-testnet.sh index 772babeb..bc82b31b 100755 --- a/.github/scripts/seed-internal-testnet.sh +++ b/.github/scripts/seed-internal-testnet.sh @@ -225,6 +225,21 @@ sleep $AVG_SECONDS_BETWEEN_BLOCKS 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" +# submit a kava token committee proposal +COMMITTEE_PROP_TEMPLATE=$( + cat <<'END_HEREDOC' +{ + "@type": "/cosmos.gov.v1beta1.TextProposal", + "title": "The next big thing signaling proposal.", + "description": "The purpose of this proposal is to signal support/opposition to the next big thing" +} +END_HEREDOC +) +committeeProposalFileName="$(date +%s)-committee-proposal.json" +echo "$COMMITTEE_PROP_TEMPLATE" >$committeeProposalFileName +tokenCommitteeId=4 +kava tx committee submit-proposal "$tokenCommitteeId" "$committeeProposalFileName" --gas auto --gas-adjustment 1.5 --gas-prices 0.01ukava --from god -y + # 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 \ diff --git a/ci/env/kava-internal-testnet/genesis.json b/ci/env/kava-internal-testnet/genesis.json index f38e8aea..9f2d601a 100644 --- a/ci/env/kava-internal-testnet/genesis.json +++ b/ci/env/kava-internal-testnet/genesis.json @@ -1021,8 +1021,7 @@ "check_collateralization_index_count": "10", "conversion_factor": "6" } - ] - , + ], "debt_auction_lot": "10000000000", "debt_auction_threshold": "100000000000", "debt_param": { @@ -2103,6 +2102,25 @@ } ], "nested_types": [] + }, + { + "msg_type_url": "/kava.committee.v1beta1.MsgVote", + "msg_value_type_name": "MsgValueCommitteeVote", + "value_types": [ + { + "name": "proposal_id", + "type": "uint64" + }, + { + "name": "voter", + "type": "string" + }, + { + "name": "vote_type", + "type": "int32" + } + ], + "nested_types": [] } ], "allow_unprotected_txs": false diff --git a/ci/env/kava-protonet/genesis.json b/ci/env/kava-protonet/genesis.json index e42273ea..3e7e6f76 100644 --- a/ci/env/kava-protonet/genesis.json +++ b/ci/env/kava-protonet/genesis.json @@ -2172,7 +2172,7 @@ "max_deposit_period": "172800s" }, "voting_params": { - "voting_period": "600s" + "voting_period": "604800s" }, "tally_params": { "quorum": "0.334000000000000000", @@ -2187,7 +2187,7 @@ } ], "max_deposit_period": "172800s", - "voting_period": "600s", + "voting_period": "604800s", "quorum": "0.334000000000000000", "threshold": "0.500000000000000000", "veto_threshold": "0.334000000000000000",