Skip to content

Commit

Permalink
chore(ci): update internal testnet genesis and seed to support commit…
Browse files Browse the repository at this point in the history
…tee 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
  • Loading branch information
DracoLi authored Aug 19, 2024
1 parent 27d63f1 commit b8e6e58
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .github/scripts/seed-internal-testnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
22 changes: 20 additions & 2 deletions ci/env/kava-internal-testnet/genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -1021,8 +1021,7 @@
"check_collateralization_index_count": "10",
"conversion_factor": "6"
}
]
,
],
"debt_auction_lot": "10000000000",
"debt_auction_threshold": "100000000000",
"debt_param": {
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions ci/env/kava-protonet/genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -2172,7 +2172,7 @@
"max_deposit_period": "172800s"
},
"voting_params": {
"voting_period": "600s"
"voting_period": "604800s"
},
"tally_params": {
"quorum": "0.334000000000000000",
Expand All @@ -2187,7 +2187,7 @@
}
],
"max_deposit_period": "172800s",
"voting_period": "600s",
"voting_period": "604800s",
"quorum": "0.334000000000000000",
"threshold": "0.500000000000000000",
"veto_threshold": "0.334000000000000000",
Expand Down

0 comments on commit b8e6e58

Please sign in to comment.