From aa1bed666d0f7ec53be723f8d16f9e2d4fc1587d Mon Sep 17 00:00:00 2001 From: Mantrachain Development Support Date: Wed, 11 Sep 2024 14:52:52 +0800 Subject: [PATCH 01/33] add dukong genesis (#46) * new genesis generation * add genesis file * fix app name * fix network name --- app/genesis.go | 16 ++ networks/dukong/genesis.json | 330 +++++++++++++++++++++++++++++++++++ 2 files changed, 346 insertions(+) create mode 100644 networks/dukong/genesis.json diff --git a/app/genesis.go b/app/genesis.go index a326b7cb..fc9b9b0f 100644 --- a/app/genesis.go +++ b/app/genesis.go @@ -7,6 +7,8 @@ import ( "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/types/module" tokenfactorytypes "github.com/osmosis-labs/osmosis/v26/x/tokenfactory/types" + marketmaptypes "github.com/skip-mev/connect/v2/x/marketmap/types" + oracletypes "github.com/skip-mev/connect/v2/x/oracle/types" feemarkettypes "github.com/skip-mev/feemarket/x/feemarket/types" ) @@ -32,6 +34,20 @@ func NewDefaultGenesisState(cdc codec.JSONCodec) GenesisState { } genesisState[tokenfactorytypes.ModuleName] = tokenFactoryGenesisStateBytes + oracleGenesis := oracletypes.DefaultGenesisState() + oracleGenesisStateBytes, err := json.Marshal(oracleGenesis) + if err != nil { + panic("cannot marshal connect genesis state for tests") + } + genesisState[oracletypes.ModuleName] = oracleGenesisStateBytes + + marketmapGenesis := marketmaptypes.DefaultGenesisState() + marketmapGenesisStateBytes, err := json.Marshal(marketmapGenesis) + if err != nil { + panic("cannot marshal connect genesis state for tests") + } + genesisState[marketmaptypes.ModuleName] = marketmapGenesisStateBytes + feemarketFeeGenesis := feemarkettypes.GenesisState{ Params: feemarkettypes.Params{ Alpha: math.LegacyOneDec(), diff --git a/networks/dukong/genesis.json b/networks/dukong/genesis.json new file mode 100644 index 00000000..20a87f45 --- /dev/null +++ b/networks/dukong/genesis.json @@ -0,0 +1,330 @@ +{ + "app_name": "mantrachaind", + "app_version": "mantrachain-genesis-346faa0", + "genesis_time": "2024-09-11T05:59:35.55195Z", + "chain_id": "mantrachain", + "initial_height": 1, + "app_hash": null, + "app_state": { + "06-solomachine": null, + "07-tendermint": null, + "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": [] + }, + "authz": { + "authorization": [] + }, + "bank": { + "params": { + "send_enabled": [], + "default_send_enabled": true + }, + "balances": [], + "supply": [], + "denom_metadata": [], + "send_enabled": [] + }, + "capability": { + "index": "1", + "owners": [] + }, + "circuit": { + "account_permissions": [], + "disabled_type_urls": [] + }, + "consensus": null, + "crisis": { + "constant_fee": { + "denom": "stake", + "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": [] + }, + "feegrant": { + "allowances": [] + }, + "feeibc": { + "identified_fees": [], + "fee_enabled_channels": [], + "registered_payees": [], + "registered_counterparty_payees": [], + "forward_relayers": [] + }, + "feemarket": { + "params": { + "alpha": "0.000000000000000000", + "beta": "1.000000000000000000", + "gamma": "0.000000000000000000", + "delta": "0.000000000000000000", + "min_base_gas_price": "1.000000000000000000", + "min_learning_rate": "0.125000000000000000", + "max_learning_rate": "0.125000000000000000", + "max_block_utilization": "30000000", + "window": "1", + "fee_denom": "stake", + "enabled": true, + "distribute_fees": false + }, + "state": { + "base_gas_price": "1.000000000000000000", + "learning_rate": "0.125000000000000000", + "window": [ + "0" + ], + "index": "0" + } + }, + "genutil": { + "gen_txs": [] + }, + "gov": { + "starting_proposal_id": "1", + "deposits": [], + "votes": [], + "proposals": [], + "deposit_params": null, + "voting_params": null, + "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": [ + "*" + ] + } + } + }, + "marketmap": { + "market_map": { + "markets": {} + }, + "last_updated": "0", + "params": { + "market_authorities": [ + "mantra10d07y265gmmuvt4z0w9aw880jnsr700j3fep4f" + ], + "admin": "mantra10d07y265gmmuvt4z0w9aw880jnsr700j3fep4f" + } + }, + "mint": { + "minter": { + "inflation": "0.130000000000000000", + "annual_provisions": "0.000000000000000000" + }, + "params": { + "mint_denom": "stake", + "inflation_rate_change": "0.130000000000000000", + "inflation_max": "0.200000000000000000", + "inflation_min": "0.070000000000000000", + "goal_bonded": "0.670000000000000000", + "blocks_per_year": "6311520" + } + }, + "nft": { + "classes": [], + "entries": [] + }, + "oracle": { + "currency_pair_genesis": [], + "next_id": "0" + }, + "params": null, + "runtime": 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": "stake", + "min_commission_rate": "0.000000000000000000" + }, + "last_total_power": "0", + "last_validator_powers": [], + "validators": [], + "delegations": [], + "unbonding_delegations": [], + "redelegations": [], + "exported": false + }, + "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 From 6fb29f8a63a49a6dc7dc3c9459fe8c6e71a162b9 Mon Sep 17 00:00:00 2001 From: Lance Lan Meng <36537676+freeelancer@users.noreply.github.com> Date: Wed, 11 Sep 2024 15:09:12 +0800 Subject: [PATCH 02/33] feat: added oracle genesis (#47) --- networks/dukong/genesis.json | 310 ++++++++++++++++++++++++++++++++++- 1 file changed, 307 insertions(+), 3 deletions(-) diff --git a/networks/dukong/genesis.json b/networks/dukong/genesis.json index 20a87f45..9719df89 100644 --- a/networks/dukong/genesis.json +++ b/networks/dukong/genesis.json @@ -217,7 +217,247 @@ }, "marketmap": { "market_map": { - "markets": {} + "markets": { + "OM/USD": { + "ticker": { + "currency_pair": { + "Base": "OM", + "Quote": "USD" + }, + "decimals": 6, + "min_provider_count": 2, + "enabled": true + }, + "provider_configs": [ + { + "name": "binance_ws", + "off_chain_ticker": "OMUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "okx_ws", + "off_chain_ticker": "OM-USDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + } + ] + }, + "USDY/USD": { + "ticker": { + "currency_pair": { + "Base": "USDY", + "Quote": "USD" + }, + "decimals": 6, + "min_provider_count": 1, + "enabled": true + }, + "provider_configs": [ + { + "name": "bybit_ws", + "off_chain_ticker": "USDYUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + } + ] + }, + "BTC/USD": { + "ticker": { + "currency_pair": { + "Base": "BTC", + "Quote": "USD" + }, + "decimals": 5, + "min_provider_count": 3, + "enabled": true + }, + "provider_configs": [ + { + "name": "binance_ws", + "off_chain_ticker": "BTCUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "bybit_ws", + "off_chain_ticker": "BTCUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "coinbase_ws", + "off_chain_ticker": "BTC-USD" + }, + { + "name": "okx_ws", + "off_chain_ticker": "BTC-USDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + } + ] + }, + "ETH/USD": { + "ticker": { + "currency_pair": { + "Base": "ETH", + "Quote": "USD" + }, + "decimals": 6, + "min_provider_count": 3, + "enabled": true + }, + "provider_configs": [ + { + "name": "binance_ws", + "off_chain_ticker": "ETHUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "bybit_ws", + "off_chain_ticker": "ETHUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "coinbase_ws", + "off_chain_ticker": "ETH-USD" + }, + { + "name": "okx_ws", + "off_chain_ticker": "ETH-USDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + } + ] + }, + "USDT/USD": { + "ticker": { + "currency_pair": { + "Base": "USDT", + "Quote": "USD" + }, + "decimals": 9, + "min_provider_count": 1, + "enabled": true + }, + "provider_configs": [ + { + "name": "binance_ws", + "off_chain_ticker": "USDCUSDT", + "invert": true + }, + { + "name": "bybit_ws", + "off_chain_ticker": "USDCUSDT", + "invert": true + }, + { + "name": "coinbase_ws", + "off_chain_ticker": "USDT-USD" + }, + { + "name": "okx_ws", + "off_chain_ticker": "USDC-USDT", + "invert": true + } + ] + }, + "ATOM/USD": { + "ticker": { + "currency_pair": { + "Base": "ATOM", + "Quote": "USD" + }, + "decimals": 9, + "min_provider_count": 3, + "enabled": true + }, + "provider_configs": [ + { + "name": "binance_ws", + "off_chain_ticker": "ATOMUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "bybit_ws", + "off_chain_ticker": "ATOMUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "coinbase_ws", + "off_chain_ticker": "ATOM-USD" + }, + { + "name": "okx_ws", + "off_chain_ticker": "ATOM-USDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + } + ] + }, + "OSMO/USD": { + "ticker": { + "currency_pair": { + "Base": "OSMO", + "Quote": "USD" + }, + "decimals": 8, + "min_provider_count": 1, + "enabled": true, + "metadata_JSON": "{\"reference_price\":1,\"liquidity\":0,\"aggregate_ids\":[]}" + }, + "provider_configs": [ + { + "name": "coinbase_ws", + "off_chain_ticker": "OSMO-USD" + }, + { + "name": "huobi_ws", + "off_chain_ticker": "osmousdt", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "binance_api", + "off_chain_ticker": "OSMOUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + } + ] + } + } }, "last_updated": "0", "params": { @@ -246,8 +486,72 @@ "entries": [] }, "oracle": { - "currency_pair_genesis": [], - "next_id": "0" + "currency_pair_genesis": [ + { + "currency_pair": { + "Base": "OM", + "Quote": "USD" + }, + "currency_pair_price": null, + "nonce": 0, + "id": 1 + }, + { + "currency_pair": { + "Base": "USDY", + "Quote": "USD" + }, + "currency_pair_price": null, + "nonce": 0, + "id": 2 + }, + { + "currency_pair": { + "Base": "BTC", + "Quote": "USD" + }, + "currency_pair_price": null, + "nonce": 0, + "id": 3 + }, + { + "currency_pair": { + "Base": "ETH", + "Quote": "USD" + }, + "currency_pair_price": null, + "nonce": 0, + "id": 4 + }, + { + "currency_pair": { + "Base": "USDT", + "Quote": "USD" + }, + "currency_pair_price": null, + "nonce": 0, + "id": 5 + }, + { + "currency_pair": { + "Base": "ATOM", + "Quote": "USD" + }, + "currency_pair_price": null, + "nonce": 0, + "id": 6 + }, + { + "currency_pair": { + "Base": "OSMO", + "Quote": "USD" + }, + "currency_pair_price": null, + "nonce": 0, + "id": 7 + } + ], + "next_id": 8 }, "params": null, "runtime": null, From 54cd39c2ffb9617be5e818c5340d8042c9b9b915 Mon Sep 17 00:00:00 2001 From: Lance Lan Meng <36537676+freeelancer@users.noreply.github.com> Date: Wed, 11 Sep 2024 15:29:41 +0800 Subject: [PATCH 03/33] fix: enable vote extension (#48) --- networks/dukong/genesis.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/networks/dukong/genesis.json b/networks/dukong/genesis.json index 9719df89..685f85d6 100644 --- a/networks/dukong/genesis.json +++ b/networks/dukong/genesis.json @@ -627,7 +627,7 @@ "app": "0" }, "abci": { - "vote_extensions_enable_height": "0" + "vote_extensions_enable_height": "1" } } } From ebd7dec621a9ab07c8ca6d0fbb9a879c3d7b9784 Mon Sep 17 00:00:00 2001 From: Mantrachain Development Support Date: Wed, 11 Sep 2024 16:26:07 +0800 Subject: [PATCH 04/33] chore: update genesis.json (#50) Signed-off-by: Mantrachain Development Support --- networks/dukong/genesis.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/networks/dukong/genesis.json b/networks/dukong/genesis.json index 685f85d6..fdaa5472 100644 --- a/networks/dukong/genesis.json +++ b/networks/dukong/genesis.json @@ -12,7 +12,7 @@ "params": { "max_memo_characters": "256", "tx_sig_limit": "7", - "tx_size_cost_per_byte": "10", + "tx_size_cost_per_byte": "100", "sig_verify_cost_ed25519": "590", "sig_verify_cost_secp256k1": "1000" }, @@ -631,4 +631,4 @@ } } } -} \ No newline at end of file +} From bb8bdd057f6b8275009f1b018596dd8af3488dc5 Mon Sep 17 00:00:00 2001 From: Mantrachain Development Support Date: Wed, 11 Sep 2024 16:26:57 +0800 Subject: [PATCH 05/33] chore update genesis.json (#49) Signed-off-by: Mantrachain Development Support --- networks/dukong/genesis.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/networks/dukong/genesis.json b/networks/dukong/genesis.json index fdaa5472..174ad2b5 100644 --- a/networks/dukong/genesis.json +++ b/networks/dukong/genesis.json @@ -610,8 +610,8 @@ "consensus": { "params": { "block": { - "max_bytes": "22020096", - "max_gas": "-1" + "max_bytes": "1000000", + "max_gas": "100000000" }, "evidence": { "max_age_num_blocks": "100000", From 1e2b515bf1f460cd2866bb5a652139c2ffd084af Mon Sep 17 00:00:00 2001 From: Mantrachain Development Support Date: Wed, 11 Sep 2024 16:27:26 +0800 Subject: [PATCH 06/33] chore: assign uom denom (#51) Signed-off-by: Mantrachain Development Support --- networks/dukong/genesis.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/networks/dukong/genesis.json b/networks/dukong/genesis.json index 174ad2b5..bea70343 100644 --- a/networks/dukong/genesis.json +++ b/networks/dukong/genesis.json @@ -42,7 +42,7 @@ "consensus": null, "crisis": { "constant_fee": { - "denom": "stake", + "denom": "uom", "amount": "1000" } }, @@ -89,7 +89,7 @@ "max_learning_rate": "0.125000000000000000", "max_block_utilization": "30000000", "window": "1", - "fee_denom": "stake", + "fee_denom": "uom", "enabled": true, "distribute_fees": false }, @@ -116,7 +116,7 @@ "params": { "min_deposit": [ { - "denom": "stake", + "denom": "uom", "amount": "10000000" } ], @@ -132,7 +132,7 @@ "expedited_threshold": "0.667000000000000000", "expedited_min_deposit": [ { - "denom": "stake", + "denom": "uom", "amount": "50000000" } ], @@ -473,7 +473,7 @@ "annual_provisions": "0.000000000000000000" }, "params": { - "mint_denom": "stake", + "mint_denom": "uom", "inflation_rate_change": "0.130000000000000000", "inflation_max": "0.200000000000000000", "inflation_min": "0.070000000000000000", @@ -572,7 +572,7 @@ "max_validators": 100, "max_entries": 7, "historical_entries": 10000, - "bond_denom": "stake", + "bond_denom": "uom", "min_commission_rate": "0.000000000000000000" }, "last_total_power": "0", From 45639dddc31a80eea5435dfcef5c713564751615 Mon Sep 17 00:00:00 2001 From: Matt <161822405+mantramatt@users.noreply.github.com> Date: Wed, 11 Sep 2024 18:17:19 +0800 Subject: [PATCH 07/33] fix: update denoms and timings in genesis file (#52) * fix: update denoms and timings in genesis file * fix: remove leading whitespace in genesis.json * set crisis constant_fee to 1000uom Signed-off-by: Mantrachain Development Support --------- Signed-off-by: Mantrachain Development Support Co-authored-by: Mantrachain Development Support --- networks/dukong/genesis.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/networks/dukong/genesis.json b/networks/dukong/genesis.json index bea70343..a323a470 100644 --- a/networks/dukong/genesis.json +++ b/networks/dukong/genesis.json @@ -117,7 +117,7 @@ "min_deposit": [ { "denom": "uom", - "amount": "10000000" + "amount": "88888000000" } ], "max_deposit_period": "172800s", @@ -133,7 +133,7 @@ "expedited_min_deposit": [ { "denom": "uom", - "amount": "50000000" + "amount": "888888000000" } ], "burn_vote_quorum": false, @@ -469,14 +469,14 @@ }, "mint": { "minter": { - "inflation": "0.130000000000000000", + "inflation": "0.080000000000000000", "annual_provisions": "0.000000000000000000" }, "params": { "mint_denom": "uom", "inflation_rate_change": "0.130000000000000000", - "inflation_max": "0.200000000000000000", - "inflation_min": "0.070000000000000000", + "inflation_max": "0.0800000000000000000", + "inflation_min": "0.080000000000000000", "goal_bonded": "0.670000000000000000", "blocks_per_year": "6311520" } @@ -568,7 +568,7 @@ }, "staking": { "params": { - "unbonding_time": "1814400s", + "unbonding_time": "691200s", "max_validators": 100, "max_entries": 7, "historical_entries": 10000, From cba66dc94a22d46d4da7435a6cad04163e06a22e Mon Sep 17 00:00:00 2001 From: Matt <161822405+mantramatt@users.noreply.github.com> Date: Wed, 11 Sep 2024 18:19:08 +0800 Subject: [PATCH 08/33] Add devcontainer support (#53) * chore: add dev container support * chore: remove boilerplate comments from devcontainer config --------- Co-authored-by: Mantrachain Development Support --- .devcontainer/devcontainer.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..9b81c2c0 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,5 @@ +{ + "name": "MANTRA Chain Dev Container", + "image": "mcr.microsoft.com/devcontainers/go:1-1.23-bookworm", + "postCreateCommand": "curl https://get.ignite.com/cli | bash && mv ignite /usr/local/go/bin" +} \ No newline at end of file From 9d203b0964ec7e5472e19de421bdb2dc6be4b6f1 Mon Sep 17 00:00:00 2001 From: Mantrachain Development Support Date: Wed, 11 Sep 2024 19:05:27 +0800 Subject: [PATCH 09/33] ci: validate genesis (#57) * validate genesis file in ci Signed-off-by: Mantrachain Development Support * Update .github/workflows/build.yml Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Mantrachain Development Support * Update genesis.json Signed-off-by: Mantrachain Development Support * Update .github/workflows/build.yml Co-authored-by: Leo Pang <34628052+allthatjazzleo@users.noreply.github.com> Signed-off-by: Mantrachain Development Support * Update genesis.json Signed-off-by: Mantrachain Development Support * Update genesis.json Signed-off-by: Mantrachain Development Support --------- Signed-off-by: Mantrachain Development Support Signed-off-by: Mantrachain Development Support Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Leo Pang <34628052+allthatjazzleo@users.noreply.github.com> --- .github/workflows/build.yml | 7 +++++-- networks/dukong/genesis.json | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 811fe658..cd38eb6d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,5 @@ on: [push, pull_request] -name: Test +name: Build and validate genesis jobs: test: strategy: @@ -12,4 +12,7 @@ jobs: with: go-version: ${{ matrix.go-version }} - uses: actions/checkout@v4 - - run: go build ./... + - name: install + run: make install + - name: validate genesis + run: mantrachaind genesis validate-genesis networks/dukong/genesis.json diff --git a/networks/dukong/genesis.json b/networks/dukong/genesis.json index a323a470..a293b097 100644 --- a/networks/dukong/genesis.json +++ b/networks/dukong/genesis.json @@ -475,7 +475,7 @@ "params": { "mint_denom": "uom", "inflation_rate_change": "0.130000000000000000", - "inflation_max": "0.0800000000000000000", + "inflation_max": "0.080000000000000000", "inflation_min": "0.080000000000000000", "goal_bonded": "0.670000000000000000", "blocks_per_year": "6311520" @@ -616,7 +616,7 @@ "evidence": { "max_age_num_blocks": "100000", "max_age_duration": "172800000000000", - "max_bytes": "1048576" + "max_bytes": "1000000" }, "validator": { "pub_key_types": [ From 175e123b5c20af032d1ff92d638983206e0f6ca0 Mon Sep 17 00:00:00 2001 From: Mantrachain Development Support Date: Wed, 11 Sep 2024 19:41:13 +0800 Subject: [PATCH 10/33] Update market_authorities and admin identifiers in genesis.json for Dukong network (#54) * Update genesis.json Signed-off-by: Mantrachain Development Support * add genesis.json validator Signed-off-by: Mantrachain Development Support --------- Signed-off-by: Mantrachain Development Support --- networks/dukong/genesis.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/networks/dukong/genesis.json b/networks/dukong/genesis.json index a293b097..f42feadf 100644 --- a/networks/dukong/genesis.json +++ b/networks/dukong/genesis.json @@ -462,9 +462,9 @@ "last_updated": "0", "params": { "market_authorities": [ - "mantra10d07y265gmmuvt4z0w9aw880jnsr700j3fep4f" + "mantra15m77x4pe6w9vtpuqm22qxu0ds7vn4ehzwx8pls" ], - "admin": "mantra10d07y265gmmuvt4z0w9aw880jnsr700j3fep4f" + "admin": "mantra15m77x4pe6w9vtpuqm22qxu0ds7vn4ehzwx8pls" } }, "mint": { From b62b6fb6e994f771cf14470a2dee6d115d02c570 Mon Sep 17 00:00:00 2001 From: Leo Pang <34628052+allthatjazzleo@users.noreply.github.com> Date: Wed, 11 Sep 2024 19:45:20 +0800 Subject: [PATCH 11/33] update with token allocation and validator sig (#55) * update with token allocation and validator sig * fix genesis param * add the validator here Signed-off-by: Mantrachain Development Support * reset block parameters to correct values Signed-off-by: Mantrachain Development Support * Update genesis.json Signed-off-by: Mantrachain Development Support * Update genesis.json Signed-off-by: Mantrachain Development Support * reinstate correct values for the slashing module Signed-off-by: Mantrachain Development Support * set vote_extensions_enable_height to 1 Signed-off-by: Mantrachain Development Support --------- Signed-off-by: Mantrachain Development Support Co-authored-by: Mantrachain Development Support --- networks/dukong/genesis.json | 801 ++++++++++++++++++++++++++++++++++- 1 file changed, 783 insertions(+), 18 deletions(-) diff --git a/networks/dukong/genesis.json b/networks/dukong/genesis.json index f42feadf..0ccaba8c 100644 --- a/networks/dukong/genesis.json +++ b/networks/dukong/genesis.json @@ -1,8 +1,8 @@ { "app_name": "mantrachaind", - "app_version": "mantrachain-genesis-346faa0", - "genesis_time": "2024-09-11T05:59:35.55195Z", - "chain_id": "mantrachain", + "app_version": "v1.0.0-alpha.1", + "genesis_time": "2024-09-12T08:00:00Z", + "chain_id": "mantra-dukong-1", "initial_height": 1, "app_hash": null, "app_state": { @@ -16,7 +16,146 @@ "sig_verify_cost_ed25519": "590", "sig_verify_cost_secp256k1": "1000" }, - "accounts": [] + "accounts": [ + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "mantra1t3g4vylrgun8k4wm5dlw8hmcn5x0p6jvknh550", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "mantra13zktdh2vcjmwa8hs8syqvr90hzlrv6uzphck4u", + "pub_key": null, + "account_number": "1", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "mantra18jywgwczf0qt4q40tnr9rmzyjmccawykhl3qm8", + "pub_key": null, + "account_number": "2", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "mantra134vcayn3jmv0sa0e26qxdhekcnvzvf6s6qx03f", + "pub_key": null, + "account_number": "3", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "mantra1w9np7x84tenkhhxcvz290jw8tefe57qedu0cz5", + "pub_key": null, + "account_number": "4", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "mantra1carsvyd6280z7gju0cmxs3tcpg9edp5ep2uwr6", + "pub_key": null, + "account_number": "5", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "mantra1q8mgs55hfgkm7d5rret439997x87s2ekwcxlv0", + "pub_key": null, + "account_number": "6", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "mantra1p4vzrfuqv5hkyyxcq44mm3mcx8z7nm0t3j3avs", + "pub_key": null, + "account_number": "7", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "mantra1z5nlpmdunwrlxww3366t76fkftmt3m37n7s734", + "pub_key": null, + "account_number": "8", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "mantra15m77x4pe6w9vtpuqm22qxu0ds7vn4ehzwx8pls", + "pub_key": null, + "account_number": "9", + "sequence": "0" + }, + { + "@type": "/cosmos.vesting.v1beta1.DelayedVestingAccount", + "base_vesting_account": { + "base_account": { + "address": "mantra1faur4y3xnng3qp7eyx54j40clnyz7ln3r2mw39", + "pub_key": null, + "account_number": "10", + "sequence": "0" + }, + "original_vesting": [ + { + "denom": "uom", + "amount": "10000000000000" + } + ], + "delegated_free": [], + "delegated_vesting": [], + "end_time": "1728758000" + } + }, + { + "@type": "/cosmos.vesting.v1beta1.DelayedVestingAccount", + "base_vesting_account": { + "base_account": { + "address": "mantra1f57tfaez0jedl5xq729gps93jlp09fz6qsagfl", + "pub_key": null, + "account_number": "11", + "sequence": "0" + }, + "original_vesting": [ + { + "denom": "uom", + "amount": "10000000000000" + } + ], + "delegated_free": [], + "delegated_vesting": [], + "end_time": "1731388000" + } + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "mantra1js37tvkg4g6r6mvrfh6v93jvf02x73x6xtpzcj", + "pub_key": null, + "account_number": "12", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "mantra1xsar0ajf02g20yxnvx988e2e9avka5jqspc8dh", + "pub_key": null, + "account_number": "13", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "mantra1f240kjundxrjvwf6hutseh49r8qc24e748tgcr", + "pub_key": null, + "account_number": "14", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "mantra1ydks9dv635r9g26xg653vmh96tkr04p3hvc9pa", + "pub_key": null, + "account_number": "15", + "sequence": "0" + } + ] }, "authz": { "authorization": [] @@ -26,9 +165,190 @@ "send_enabled": [], "default_send_enabled": true }, - "balances": [], - "supply": [], - "denom_metadata": [], + "balances": [ + { + "address": "mantra1q8mgs55hfgkm7d5rret439997x87s2ekwcxlv0", + "coins": [ + { + "denom": "uom", + "amount": "70000000000000" + } + ] + }, + { + "address": "mantra1p4vzrfuqv5hkyyxcq44mm3mcx8z7nm0t3j3avs", + "coins": [ + { + "denom": "uom", + "amount": "10000000000000" + } + ] + }, + { + "address": "mantra1z5nlpmdunwrlxww3366t76fkftmt3m37n7s734", + "coins": [ + { + "denom": "uom", + "amount": "10000000000000" + } + ] + }, + { + "address": "mantra1ydks9dv635r9g26xg653vmh96tkr04p3hvc9pa", + "coins": [ + { + "denom": "uom", + "amount": "40000000000000" + } + ] + }, + { + "address": "mantra1xsar0ajf02g20yxnvx988e2e9avka5jqspc8dh", + "coins": [ + { + "denom": "uom", + "amount": "40000000000000" + } + ] + }, + { + "address": "mantra18jywgwczf0qt4q40tnr9rmzyjmccawykhl3qm8", + "coins": [ + { + "denom": "uom", + "amount": "70000000000000" + } + ] + }, + { + "address": "mantra1f240kjundxrjvwf6hutseh49r8qc24e748tgcr", + "coins": [ + { + "denom": "uom", + "amount": "40000000000000" + } + ] + }, + { + "address": "mantra1f57tfaez0jedl5xq729gps93jlp09fz6qsagfl", + "coins": [ + { + "denom": "uom", + "amount": "30000000000000" + } + ] + }, + { + "address": "mantra1faur4y3xnng3qp7eyx54j40clnyz7ln3r2mw39", + "coins": [ + { + "denom": "uom", + "amount": "108000000000000" + } + ] + }, + { + "address": "mantra1t3g4vylrgun8k4wm5dlw8hmcn5x0p6jvknh550", + "coins": [ + { + "denom": "uom", + "amount": "70000000000000" + } + ] + }, + { + "address": "mantra1w9np7x84tenkhhxcvz290jw8tefe57qedu0cz5", + "coins": [ + { + "denom": "uom", + "amount": "70000000000000" + } + ] + }, + { + "address": "mantra13zktdh2vcjmwa8hs8syqvr90hzlrv6uzphck4u", + "coins": [ + { + "denom": "uom", + "amount": "70000000000000" + } + ] + }, + { + "address": "mantra134vcayn3jmv0sa0e26qxdhekcnvzvf6s6qx03f", + "coins": [ + { + "denom": "uom", + "amount": "70000000000000" + } + ] + }, + { + "address": "mantra1js37tvkg4g6r6mvrfh6v93jvf02x73x6xtpzcj", + "coins": [ + { + "denom": "uom", + "amount": "40000000000000" + } + ] + }, + { + "address": "mantra15m77x4pe6w9vtpuqm22qxu0ds7vn4ehzwx8pls", + "coins": [ + { + "denom": "uom", + "amount": "80000000000000" + } + ] + }, + { + "address": "mantra1carsvyd6280z7gju0cmxs3tcpg9edp5ep2uwr6", + "coins": [ + { + "denom": "uom", + "amount": "70000000000000" + } + ] + } + ], + "supply": [ + { + "denom": "uom", + "amount": "888000000000000" + } + ], + "denom_metadata": [ + { + "description": "The native staking token of the Mantrachain.", + "denom_units": [ + { + "denom": "uom", + "exponent": 0, + "aliases": [ + "microom" + ] + }, + { + "denom": "mom", + "exponent": 3, + "aliases": [ + "milliom" + ] + }, + { + "denom": "om", + "exponent": 6, + "aliases": [] + } + ], + "base": "uom", + "display": "om", + "name": "om", + "symbol": "OM", + "uri": "", + "uri_hash": "" + } + ], "send_enabled": [] }, "capability": { @@ -39,11 +359,21 @@ "account_permissions": [], "disabled_type_urls": [] }, - "consensus": null, + "consensus": { + "params": { + "block": { + "max_bytes": "10000000", + "max_gas": "1000000000" + }, + "abci": { + "vote_extensions_enable_height": "1" + } + } + }, "crisis": { "constant_fee": { "denom": "uom", - "amount": "1000" + "amount": "8000" } }, "distribution": { @@ -103,7 +433,442 @@ } }, "genutil": { - "gen_txs": [] + "gen_txs": [ + { + "body": { + "messages": [ + { + "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", + "description": { + "moniker": "Foundation 7", + "identity": "", + "website": "", + "security_contact": "aaron@mantra.finance", + "details": "Foundation 7" + }, + "commission": { + "rate": "0.100000000000000000", + "max_rate": "0.100000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "", + "validator_address": "mantravaloper1q8mgs55hfgkm7d5rret439997x87s2ek2r83q2", + "pubkey": { + "@type": "/cosmos.crypto.ed25519.PubKey", + "key": "Asq73mCiJzrJDIJJIJ2xyWHdWeOybCpVGVafqs2BYHY=" + }, + "value": { + "denom": "uom", + "amount": "70000000000000" + } + } + ], + "memo": "0b620af007c75717f690ef011652ddb8fee88aa2@192.168.10.137:26656", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/cosmos.crypto.secp256k1.PubKey", + "key": "A7JV1K0xc0yOYkXh5yELJ0XVI8DUd+j2mYE9SO1hb2Eq" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_DIRECT" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "200000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "DjmnyFhGwysurSgsYvkzVXvL1QmwXlxYcemMXaWIkVhnP3N3dvniI5Y6C5gpCNTYt5m5bFrUg1tRhcB7yUanvg==" + ] + }, + { + "body": { + "messages": [ + { + "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", + "description": { + "moniker": "Foundation 6", + "identity": "", + "website": "", + "security_contact": "aaron@mantra.finance", + "details": "Foundation 6" + }, + "commission": { + "rate": "0.100000000000000000", + "max_rate": "0.100000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "", + "validator_address": "mantravaloper1carsvyd6280z7gju0cmxs3tcpg9edp5e93aq0l", + "pubkey": { + "@type": "/cosmos.crypto.ed25519.PubKey", + "key": "rBVPnQLab8MlwJfGsYIzVADJdZyobF8b07bqdgYh3S0=" + }, + "value": { + "denom": "uom", + "amount": "70000000000000" + } + } + ], + "memo": "2c50e342427070af777f292ac5391e9d0cfab36d@192.168.10.137:26656", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/cosmos.crypto.secp256k1.PubKey", + "key": "AjIlfMG+ITDM5/xMNUdh/7S309e2XzVJ2/ReRkFaLoQO" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_DIRECT" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "200000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "/0H/bPmOVeQq4Zd1IzozlldX9pnXoObBIaiikVG3c6AouKH3YAn2VFN5zTd3W+8saxjpOqa2UDRNaXVXxXf+tQ==" + ] + }, + { + "body": { + "messages": [ + { + "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", + "description": { + "moniker": "Foundation 1", + "identity": "", + "website": "", + "security_contact": "aaron@mantra.finance", + "details": "Foundation 1" + }, + "commission": { + "rate": "0.100000000000000000", + "max_rate": "0.100000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "", + "validator_address": "mantravaloper1t3g4vylrgun8k4wm5dlw8hmcn5x0p6jvjgk6c2", + "pubkey": { + "@type": "/cosmos.crypto.ed25519.PubKey", + "key": "b5nPsOjwMNH/nhBLrvePoVcb26oF5UXceaAubPmxSGs=" + }, + "value": { + "denom": "uom", + "amount": "70000000000000" + } + } + ], + "memo": "2f0e76493fee708ec730ad92b4d4565da5648176@192.168.10.137:26656", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/cosmos.crypto.secp256k1.PubKey", + "key": "AgggsfLgkQm2QgMzjd32dIKje17hDEp6kZNJRD2ejYE1" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_DIRECT" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "200000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "ntko5jIiScETP878dJR9p9ZsGQg/HhWUzXqIUi0nKwxqoRbMdUldHmoTOsO/M59R20XeFv4X+3dRVSOIwpsxSg==" + ] + }, + { + "body": { + "messages": [ + { + "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", + "description": { + "moniker": "Foundation 3", + "identity": "", + "website": "", + "security_contact": "aaron@mantra.finance", + "details": "Foundation 3" + }, + "commission": { + "rate": "0.100000000000000000", + "max_rate": "0.100000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "", + "validator_address": "mantravaloper18jywgwczf0qt4q40tnr9rmzyjmccawyknyswhz", + "pubkey": { + "@type": "/cosmos.crypto.ed25519.PubKey", + "key": "tInpJiQpuFfq1LOBi/20bbM1aTXkAHPm+/yLLRijdKQ=" + }, + "value": { + "denom": "uom", + "amount": "70000000000000" + } + } + ], + "memo": "c0fb1c937945bc0235eb5a6201d263b4fee05637@192.168.10.137:26656", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/cosmos.crypto.secp256k1.PubKey", + "key": "AmKuothSXnDT3ZCHPuLKANvXcv45Fij5DutgIsGiFS2B" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_DIRECT" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "200000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "30c8Tg7O1qH9qrb0E5vsbMdsNO1KWPqgqtLrSj9A56xSljgOEpz4nn/PtZNRqCThIMkcorrMPb7rFecwoRr73g==" + ] + }, + { + "body": { + "messages": [ + { + "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", + "description": { + "moniker": "Foundation 5", + "identity": "", + "website": "", + "security_contact": "aaron@mantra.finance", + "details": "Foundation 5" + }, + "commission": { + "rate": "0.100000000000000000", + "max_rate": "0.100000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "", + "validator_address": "mantravaloper1w9np7x84tenkhhxcvz290jw8tefe57qef8wkw3", + "pubkey": { + "@type": "/cosmos.crypto.ed25519.PubKey", + "key": "67p2U8LDTkRGIZH38W05rnrjZEAow2eHNU2WsmjIKPc=" + }, + "value": { + "denom": "uom", + "amount": "70000000000000" + } + } + ], + "memo": "e1562e5230dddd084429917a3981372a9a34d4f5@192.168.10.137:26656", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/cosmos.crypto.secp256k1.PubKey", + "key": "Auc/SjqQAwLM95WRO7YjyCjkhe9n3Mz9aZrYdyz0ilaX" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_DIRECT" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "200000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "qPcvq3jt9rqrAMYvcQM3DCIpuZgXeONtjnjcKfnU/SMG1MDcnIbIU3jhlLNCsNvBe00Wi/m35XMo67ByOdVv/A==" + ] + }, + { + "body": { + "messages": [ + { + "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", + "description": { + "moniker": "Foundation 4", + "identity": "", + "website": "", + "security_contact": "aaron@mantra.finance", + "details": "Foundation 4" + }, + "commission": { + "rate": "0.100000000000000000", + "max_rate": "0.100000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "", + "validator_address": "mantravaloper134vcayn3jmv0sa0e26qxdhekcnvzvf6s7m8pav", + "pubkey": { + "@type": "/cosmos.crypto.ed25519.PubKey", + "key": "URx/4xt6skFDAQiGYFiURmMEMq0GV4RIpjn+yH/0ISE=" + }, + "value": { + "denom": "uom", + "amount": "70000000000000" + } + } + ], + "memo": "ea192cc237162c88dd8db7d8e80cca1cea796bc1@192.168.10.137:26656", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/cosmos.crypto.secp256k1.PubKey", + "key": "A9+JWac97Fj/cSG2rVcoXUtMgmFXDYodkzLT3svBVPsF" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_DIRECT" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "200000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "2QobLJzlS30pJBy4GKBMJCBNzXzkMrZAKpyIxBqhx7hX9UHxB58xTmkGwD027BRZFGxVI4ubs+eY8bGrap8HTg==" + ] + }, + { + "body": { + "messages": [ + { + "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", + "description": { + "moniker": "Foundation 2", + "identity": "", + "website": "", + "security_contact": "aaron@mantra.finance", + "details": "Foundation 2" + }, + "commission": { + "rate": "0.100000000000000000", + "max_rate": "0.100000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "", + "validator_address": "mantravaloper13zktdh2vcjmwa8hs8syqvr90hzlrv6uz9vecee", + "pubkey": { + "@type": "/cosmos.crypto.ed25519.PubKey", + "key": "YDjW6dPj/yQ11jnp2s72iG0UReWLJlo3k0qh3Y7ivjU=" + }, + "value": { + "denom": "uom", + "amount": "70000000000000" + } + } + ], + "memo": "fd2ed679a77aecbc572ae1f4d4f847a8d213dd64@192.168.10.137:26656", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/cosmos.crypto.secp256k1.PubKey", + "key": "A6tJFBrlgjT0HTZ7+fSN3NW5LrLV1avX9pfxNmO2bLDk" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_DIRECT" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "200000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "ip/jywCeNvhCNhBs6ySL78NF/+43bH+iDcakDW6UhzpqIcxmtdJ2Ms5wJLa5xb0kTJ3GmW5owHMLmr5RN7LB1w==" + ] + } + ] }, "gov": { "starting_proposal_id": "1", @@ -120,15 +885,15 @@ "amount": "88888000000" } ], - "max_deposit_period": "172800s", - "voting_period": "172800s", + "max_deposit_period": "691200s", + "voting_period": "691200s", "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_voting_period": "3600s", "expedited_threshold": "0.667000000000000000", "expedited_min_deposit": [ { @@ -557,11 +1322,11 @@ "runtime": null, "slashing": { "params": { - "signed_blocks_window": "100", + "signed_blocks_window": "1000", "min_signed_per_window": "0.500000000000000000", - "downtime_jail_duration": "600s", + "downtime_jail_duration": "60s", "slash_fraction_double_sign": "0.050000000000000000", - "slash_fraction_downtime": "0.010000000000000000" + "slash_fraction_downtime": "0.000000000000000000" }, "signing_infos": [], "missed_blocks": [] @@ -569,11 +1334,11 @@ "staking": { "params": { "unbonding_time": "691200s", - "max_validators": 100, + "max_validators": "500", "max_entries": 7, "historical_entries": 10000, "bond_denom": "uom", - "min_commission_rate": "0.000000000000000000" + "min_commission_rate": "0.050000000000000000" }, "last_total_power": "0", "last_validator_powers": [], From 622adbb84385f5c42fdf94d92657fbd24954d553 Mon Sep 17 00:00:00 2001 From: Leo Pang <34628052+allthatjazzleo@users.noreply.github.com> Date: Wed, 11 Sep 2024 22:05:01 +0800 Subject: [PATCH 12/33] fix genesis time (#59) --- networks/dukong/genesis.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/networks/dukong/genesis.json b/networks/dukong/genesis.json index 0ccaba8c..e7a4f68c 100644 --- a/networks/dukong/genesis.json +++ b/networks/dukong/genesis.json @@ -1,7 +1,7 @@ { "app_name": "mantrachaind", "app_version": "v1.0.0-alpha.1", - "genesis_time": "2024-09-12T08:00:00Z", + "genesis_time": "2024-09-11T14:00:00Z", "chain_id": "mantra-dukong-1", "initial_height": 1, "app_hash": null, From 7c5804f86b6dac8f508613c03deb00a13dbe02c6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 12 Sep 2024 11:12:24 +0800 Subject: [PATCH 13/33] chore(deps): bump github.com/skip-mev/slinky in /tests/connect (#62) Bumps [github.com/skip-mev/slinky](https://github.com/skip-mev/slinky) from 1.0.10 to 1.0.11. - [Release notes](https://github.com/skip-mev/slinky/releases) - [Changelog](https://github.com/skip-mev/connect/blob/main/.goreleaser.yml) - [Commits](https://github.com/skip-mev/slinky/compare/v1.0.10...v1.0.11) --- updated-dependencies: - dependency-name: github.com/skip-mev/slinky dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- tests/connect/go.mod | 2 +- tests/connect/go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/connect/go.mod b/tests/connect/go.mod index 96581923..ef4f2743 100644 --- a/tests/connect/go.mod +++ b/tests/connect/go.mod @@ -7,7 +7,7 @@ toolchain go1.23.0 require ( github.com/cosmos/cosmos-sdk v0.50.10-0.20240904192747-c8aec4d15e22 github.com/icza/dyno v0.0.0-20230330125955-09f820a8d9c0 - github.com/skip-mev/slinky v1.0.10 + github.com/skip-mev/slinky v1.0.11 github.com/skip-mev/slinky/tests/integration v1.1.0 github.com/strangelove-ventures/interchaintest/v8 v8.7.0 github.com/stretchr/testify v1.9.0 diff --git a/tests/connect/go.sum b/tests/connect/go.sum index 4d507c24..327eb5b3 100644 --- a/tests/connect/go.sum +++ b/tests/connect/go.sum @@ -1097,8 +1097,8 @@ github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/skip-mev/chaintestutil v0.0.0-20240514161515-056d7ba45610 h1:4JlsiRVt/YZOvrKH525T7sZXgEWUEjqSDMwE6fXNbdo= github.com/skip-mev/chaintestutil v0.0.0-20240514161515-056d7ba45610/go.mod h1:kB8gFZX07CyJnw8q9iEZijI3qJTIe1K/Y++P5VGkrcg= -github.com/skip-mev/slinky v1.0.10 h1:QBd/jBxUcV2dq3VERhf5h42cAA0s2awPZGWpHgh0t20= -github.com/skip-mev/slinky v1.0.10/go.mod h1:8mxMdQ8MY8QAxgxLvUKTfDwX6XCAUeqZwkU/r+ZsELU= +github.com/skip-mev/slinky v1.0.11 h1:1Guw2nKaLkbfJCCcrYXiU0hbP1iHKS3X8xmFsKZLnzw= +github.com/skip-mev/slinky v1.0.11/go.mod h1:8mxMdQ8MY8QAxgxLvUKTfDwX6XCAUeqZwkU/r+ZsELU= github.com/skip-mev/slinky/tests/integration v1.1.0 h1:QQo0E0WqE6G3ejwogkVnWJGWebtkbC3Ry1m6KyMSQ2A= github.com/skip-mev/slinky/tests/integration v1.1.0/go.mod h1:MQtr5sHRG9O8Ytl7Anlqs01Cm+DtgP13p+TOn7KPjGo= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= From c8be27282129f35b32ae8da29863ad3661b5f639 Mon Sep 17 00:00:00 2001 From: Mantrachain Development Support Date: Thu, 12 Sep 2024 11:45:09 +0800 Subject: [PATCH 14/33] add tf to genesis (#61) --- networks/dukong/genesis.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/networks/dukong/genesis.json b/networks/dukong/genesis.json index e7a4f68c..aff8eee1 100644 --- a/networks/dukong/genesis.json +++ b/networks/dukong/genesis.json @@ -1372,6 +1372,18 @@ "sequences": [] } }, + "tokenfactory": { + "params": { + "denom_creation_fee": [ + { + "denom": "uom", + "amount": "88888888888" + } + ], + "denom_creation_gas_consume": "1000000" + }, + "factory_denoms": [] + }, "consensus": { "params": { "block": { From f065d207b6bd3b67a2cc1985328695b24f889f95 Mon Sep 17 00:00:00 2001 From: Lance Lan Meng <36537676+freeelancer@users.noreply.github.com> Date: Thu, 12 Sep 2024 15:16:54 +0800 Subject: [PATCH 15/33] fix: missing rest api (#64) * fix: missing rest api * regenerate api --- app/app.go | 11 ++++++----- client/docs/config.json | 2 +- client/docs/static/openapi/index.html | 6 +++--- client/docs/static/openapi/openapi.yaml | 2 +- client/docs/static/swagger/swagger.yaml | 2 +- client/docs/statik/statik.go | 2 +- 6 files changed, 13 insertions(+), 12 deletions(-) diff --git a/app/app.go b/app/app.go index a34df7e6..7f17e697 100644 --- a/app/app.go +++ b/app/app.go @@ -30,6 +30,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/runtime" + "github.com/cosmos/cosmos-sdk/server" "github.com/cosmos/cosmos-sdk/server/api" "github.com/cosmos/cosmos-sdk/server/config" servertypes "github.com/cosmos/cosmos-sdk/server/types" @@ -417,11 +418,11 @@ func (app *App) SimulationManager() *module.SimulationManager { func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig) { clientCtx := apiSvr.ClientCtx - // app.App.RegisterAPIRoutes(apiSvr, apiConfig) - // // register swagger API in app.go so that other applications can override easily - // if err := server.RegisterSwaggerAPI(apiSvr.ClientCtx, apiSvr.Router, apiConfig.Swagger); err != nil { - // panic(err) - // } + app.App.RegisterAPIRoutes(apiSvr, apiConfig) + // register swagger API in app.go so that other applications can override easily + if err := server.RegisterSwaggerAPI(apiSvr.ClientCtx, apiSvr.Router, apiConfig.Swagger); err != nil { + panic(err) + } // register app's OpenAPI routes. if apiConfig.Swagger { diff --git a/client/docs/config.json b/client/docs/config.json index ae951be5..acb82948 100644 --- a/client/docs/config.json +++ b/client/docs/config.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "title": "Osmosis - gRPC Gateway docs", + "title": "DuKong - gRPC Gateway docs", "description": "A REST interface for state queries, legacy transactions", "version": "1.0.0" }, diff --git a/client/docs/static/openapi/index.html b/client/docs/static/openapi/index.html index 258d0921..4074ea80 100644 --- a/client/docs/static/openapi/index.html +++ b/client/docs/static/openapi/index.html @@ -3,7 +3,7 @@ - Osmosis - gRPC Gateway docs + DuKong - gRPC Gateway docs