From 25e1602d5a29e4ab49addda7e4178b50894999df Mon Sep 17 00:00:00 2001 From: Hoa Nguyen Date: Mon, 29 Apr 2024 16:18:18 +0700 Subject: [PATCH] feat: add testnet genesis (#199) --- scripts/run-node.sh | 8 +- testnets/genesis.json | 474 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 478 insertions(+), 4 deletions(-) create mode 100644 testnets/genesis.json diff --git a/scripts/run-node.sh b/scripts/run-node.sh index bc4f52e1..cdc4f1f4 100755 --- a/scripts/run-node.sh +++ b/scripts/run-node.sh @@ -57,11 +57,11 @@ $BINARY keys add $KEY1 --keyring-backend $KEYRING --home $HOME_DIR $BINARY keys add $KEY2 --keyring-backend $KEYRING --home $HOME_DIR # Allocate genesis accounts (cosmos formatted addresses) -$BINARY genesis add-genesis-account $KEY "1000000000000${DENOM}" --keyring-backend $KEYRING --home $HOME_DIR -$BINARY genesis add-genesis-account $KEY1 "1000000000000${DENOM}" --keyring-backend $KEYRING --home $HOME_DIR -$BINARY genesis add-genesis-account $KEY2 "1000000000000${DENOM}" --keyring-backend $KEYRING --home $HOME_DIR +$BINARY genesis add-genesis-account $KEY "1000000000000000${DENOM}" --keyring-backend $KEYRING --home $HOME_DIR +$BINARY genesis add-genesis-account $KEY1 "1000000000000000${DENOM}" --keyring-backend $KEYRING --home $HOME_DIR +$BINARY genesis add-genesis-account $KEY2 "1000000000000000${DENOM}" --keyring-backend $KEYRING --home $HOME_DIR -update_test_genesis '.app_state["gov"]["voting_params"]["voting_period"]="20s"' +update_test_genesis '.app_state["gov"]["voting_params"]["voting_period"]="600s"' update_test_genesis '.app_state["mint"]["params"]["mint_denom"]="'$DENOM'"' update_test_genesis '.app_state["gov"]["deposit_params"]["min_deposit"]=[{"denom":"'$DENOM'","amount": "1000000"}]' update_test_genesis '.app_state["crisis"]["constant_fee"]={"denom":"'$DENOM'","amount":"1000"}' diff --git a/testnets/genesis.json b/testnets/genesis.json new file mode 100644 index 00000000..7b4d4370 --- /dev/null +++ b/testnets/genesis.json @@ -0,0 +1,474 @@ +{ + "app_name": "eved", + "app_version": "0.0.1-355-g76d3aa2", + "genesis_time": "2024-04-29T09:11:31.480798Z", + "chain_id": "local-eve", + "initial_height": 1, + "app_hash": null, + "app_state": { + "07-tendermint": null, + "08-wasm": { + "contracts": [] + }, + "alliance": { + "params": { + "reward_delay_time": "604800s", + "take_rate_claim_interval": "300s", + "last_take_rate_claim_time": "0001-01-01T00:00:00Z" + }, + "assets": [], + "validator_infos": [], + "reward_weight_change_snaphots": [], + "delegations": [], + "redelegations": [], + "undelegations": [] + }, + "auth": { + "params": { + "max_memo_characters": "256", + "tx_sig_limit": "7", + "tx_size_cost_per_byte": "10", + "sig_verify_cost_ed25519": "590", + "sig_verify_cost_secp256k1": "1000" + }, + "accounts": [ + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "eve16mjlmmwyg75dy5k3qzj2l34e3p5zcpptmw4gms", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "eve1anhu7wa6e3m2l6uyps4gjdrzp2yslj9k6rpfs6", + "pub_key": null, + "account_number": "1", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "eve1sc7kfre5ensxwj6e48lgqa0947z0h59h3jz0kc", + "pub_key": null, + "account_number": "2", + "sequence": "0" + } + ] + }, + "authz": { + "authorization": [] + }, + "bank": { + "params": { + "send_enabled": [], + "default_send_enabled": true + }, + "balances": [ + { + "address": "eve1sc7kfre5ensxwj6e48lgqa0947z0h59h3jz0kc", + "coins": [ + { + "denom": "ueve", + "amount": "1000000000000000" + } + ] + }, + { + "address": "eve16mjlmmwyg75dy5k3qzj2l34e3p5zcpptmw4gms", + "coins": [ + { + "denom": "ueve", + "amount": "1000000000000000" + } + ] + }, + { + "address": "eve1anhu7wa6e3m2l6uyps4gjdrzp2yslj9k6rpfs6", + "coins": [ + { + "denom": "ueve", + "amount": "1000000000000000" + } + ] + } + ], + "supply": [ + { + "denom": "ueve", + "amount": "3000000000000000" + } + ], + "denom_metadata": [], + "send_enabled": [] + }, + "capability": { + "index": "1", + "owners": [] + }, + "circuit": { + "account_permissions": [], + "disabled_type_urls": [] + }, + "consensus": null, + "crisis": { + "constant_fee": { + "denom": "ueve", + "amount": "1000" + } + }, + "distribution": { + "params": { + "community_tax": "0.020000000000000000", + "base_proposer_reward": "0.000000000000000000", + "bonus_proposer_reward": "0.000000000000000000", + "withdraw_addr_enabled": true + }, + "fee_pool": { + "community_pool": [] + }, + "delegator_withdraw_infos": [], + "previous_proposer": "", + "outstanding_rewards": [], + "validator_accumulated_commissions": [], + "validator_historical_rewards": [], + "validator_current_rewards": [], + "delegator_starting_infos": [], + "validator_slash_events": [] + }, + "evidence": { + "evidence": [] + }, + "feeabs": { + "params": { + "native_ibced_in_osmosis": "ibc/C053D637CCA2A2BA030E2C5EE1B28A16F71CCB0E45E8BE52766DC1B241B77878", + "osmosis_query_twap_path": "/osmosis.twap.v1beta1.Query/ArithmeticTwapToNow", + "chain_name": "feeappd-t1", + "ibc_transfer_channel": "", + "ibc_query_icq_channel": "", + "osmosis_crosschain_swap_address": "" + }, + "epochs": [ + { + "identifier": "query", + "start_time": "0001-01-01T00:00:00Z", + "duration": "60s", + "current_epoch": "0", + "current_epoch_start_time": "0001-01-01T00:00:00Z", + "epoch_counting_started": false, + "current_epoch_start_height": "0" + }, + { + "identifier": "swap", + "start_time": "0001-01-01T00:00:00Z", + "duration": "120s", + "current_epoch": "0", + "current_epoch_start_time": "0001-01-01T00:00:00Z", + "epoch_counting_started": false, + "current_epoch_start_height": "0" + } + ], + "port_id": "feeabs" + }, + "feegrant": { + "allowances": [] + }, + "feeibc": { + "identified_fees": [], + "fee_enabled_channels": [], + "registered_payees": [], + "registered_counterparty_payees": [], + "forward_relayers": [] + }, + "genutil": { + "gen_txs": [ + { + "body": { + "messages": [ + { + "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", + "description": { + "moniker": "moniker", + "identity": "", + "website": "", + "security_contact": "", + "details": "" + }, + "commission": { + "rate": "0.010000000000000000", + "max_rate": "0.020000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "", + "validator_address": "evevaloper16mjlmmwyg75dy5k3qzj2l34e3p5zcppt6xfu6h", + "pubkey": { + "@type": "/cosmos.crypto.ed25519.PubKey", + "key": "8Lme7X1E9CPAL9fk71CyJXlUpZsHKNOxpAseIj0QJ30=" + }, + "value": { + "denom": "ueve", + "amount": "1000000" + } + } + ], + "memo": "bc2f3f01ac4a5d51b77d174d75bef3614e31b8e9@172.16.11.150:26656", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/cosmos.crypto.secp256k1.PubKey", + "key": "A3SB8ovHCDXUxX32e1HjQyf+V//i4TkgPX79SxiY2c95" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_DIRECT" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "200000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "3vTlbWKS61yR1oxXcqHSl9kW1SjQOtK2FKdlN/EKqvFFuLGKkbjEM8D+U15t1CoDGvQKkvWe6ZfdZHBl/XXTyg==" + ] + } + ] + }, + "gov": { + "starting_proposal_id": "1", + "deposits": [], + "votes": [], + "proposals": [], + "deposit_params": { + "min_deposit": [ + { + "denom": "ueve", + "amount": "1000000" + } + ] + }, + "voting_params": { + "voting_period": "600s" + }, + "tally_params": null, + "params": { + "min_deposit": [ + { + "denom": "stake", + "amount": "10000000" + } + ], + "max_deposit_period": "172800s", + "voting_period": "172800s", + "quorum": "0.334000000000000000", + "threshold": "0.500000000000000000", + "veto_threshold": "0.334000000000000000", + "min_initial_deposit_ratio": "0.000000000000000000", + "proposal_cancel_ratio": "0.500000000000000000", + "proposal_cancel_dest": "", + "expedited_voting_period": "86400s", + "expedited_threshold": "0.667000000000000000", + "expedited_min_deposit": [ + { + "denom": "stake", + "amount": "50000000" + } + ], + "burn_vote_quorum": false, + "burn_proposal_deposit_prevote": false, + "burn_vote_veto": true, + "min_deposit_ratio": "0.010000000000000000" + }, + "constitution": "" + }, + "group": { + "group_seq": "0", + "groups": [], + "group_members": [], + "group_policy_seq": "0", + "group_policies": [], + "proposal_seq": "0", + "proposals": [], + "votes": [] + }, + "ibc": { + "client_genesis": { + "clients": [], + "clients_consensus": [], + "clients_metadata": [], + "params": { + "allowed_clients": [ + "*" + ] + }, + "create_localhost": false, + "next_client_sequence": "0" + }, + "connection_genesis": { + "connections": [], + "client_connection_paths": [], + "next_connection_sequence": "0", + "params": { + "max_expected_time_per_block": "30000000000" + } + }, + "channel_genesis": { + "channels": [], + "acknowledgements": [], + "commitments": [], + "receipts": [], + "send_sequences": [], + "recv_sequences": [], + "ack_sequences": [], + "next_channel_sequence": "0", + "params": { + "upgrade_timeout": { + "height": { + "revision_number": "0", + "revision_height": "0" + }, + "timestamp": "600000000000" + } + } + } + }, + "interchainaccounts": { + "controller_genesis_state": { + "active_channels": [], + "interchain_accounts": [], + "ports": [], + "params": { + "controller_enabled": true + } + }, + "host_genesis_state": { + "active_channels": [], + "interchain_accounts": [], + "port": "icahost", + "params": { + "host_enabled": true, + "allow_messages": [ + "*" + ] + } + } + }, + "mint": { + "minter": { + "inflation": "0.130000000000000000", + "annual_provisions": "0.000000000000000000" + }, + "params": { + "mint_denom": "ueve", + "inflation_rate_change": "0.130000000000000000", + "inflation_max": "0.200000000000000000", + "inflation_min": "0.070000000000000000", + "goal_bonded": "0.670000000000000000", + "blocks_per_year": "6311520" + } + }, + "nft": { + "classes": [], + "entries": [] + }, + "params": null, + "slashing": { + "params": { + "signed_blocks_window": "100", + "min_signed_per_window": "0.500000000000000000", + "downtime_jail_duration": "600s", + "slash_fraction_double_sign": "0.050000000000000000", + "slash_fraction_downtime": "0.010000000000000000" + }, + "signing_infos": [], + "missed_blocks": [] + }, + "staking": { + "params": { + "unbonding_time": "1814400s", + "max_validators": 100, + "max_entries": 7, + "historical_entries": 10000, + "bond_denom": "ueve", + "min_commission_rate": "0.000000000000000000" + }, + "last_total_power": "0", + "last_validator_powers": [], + "validators": [], + "delegations": [], + "unbonding_delegations": [], + "redelegations": [], + "exported": false + }, + "tokenfactory": { + "params": { + "denom_creation_fee": [ + { + "denom": "stake", + "amount": "10000000" + } + ], + "denom_creation_gas_consume": "1000000" + }, + "factory_denoms": [] + }, + "transfer": { + "port_id": "transfer", + "denom_traces": [], + "params": { + "send_enabled": true, + "receive_enabled": true + }, + "total_escrowed": [] + }, + "upgrade": {}, + "vesting": {}, + "wasm": { + "params": { + "code_upload_access": { + "permission": "Everybody", + "addresses": [] + }, + "instantiate_default_permission": "Everybody" + }, + "codes": [], + "contracts": [], + "sequences": [] + } + }, + "consensus": { + "params": { + "block": { + "max_bytes": "22020096", + "max_gas": "-1" + }, + "evidence": { + "max_age_num_blocks": "100000", + "max_age_duration": "172800000000000", + "max_bytes": "1048576" + }, + "validator": { + "pub_key_types": [ + "ed25519" + ] + }, + "version": { + "app": "0" + }, + "abci": { + "vote_extensions_enable_height": "0" + } + } + } +} \ No newline at end of file