From 55d52efceff6cbd9714dc7a6014029824716f138 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Thu, 12 May 2022 15:32:36 +0200 Subject: [PATCH] feat(denom): add uknow & know denoms metadata --- chains/localnet/genesis.json | 685 +++++++++++++++++--------------- chains/testnet/genesis.json | 26 +- chains/testnet/pre-genesis.json | 26 +- 3 files changed, 404 insertions(+), 333 deletions(-) diff --git a/chains/localnet/genesis.json b/chains/localnet/genesis.json index 73d40288..ccedc06e 100644 --- a/chains/localnet/genesis.json +++ b/chains/localnet/genesis.json @@ -1,346 +1,373 @@ { - "genesis_time": "2022-02-16T14:40:17.054995Z", - "chain_id": "okp4-localnet-1", - "initial_height": "1", - "consensus_params": { - "block": { - "max_bytes": "22020096", - "max_gas": "-1", - "time_iota_ms": "1000" - }, - "evidence": { - "max_age_num_blocks": "100000", - "max_age_duration": "172800000000000", - "max_bytes": "1048576" - }, - "validator": { - "pub_key_types": ["ed25519"] - }, - "version": {} + "genesis_time": "2022-02-16T14:40:17.054995Z", + "chain_id": "okp4-localnet-1", + "initial_height": "1", + "consensus_params": { + "block": { + "max_bytes": "22020096", + "max_gas": "-1", + "time_iota_ms": "1000" }, - "app_hash": "", - "app_state": { - "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": "okp412audd6xmwte2rkxdz0ag38cmp0yu46un9nu75e", - "pub_key": null, - "account_number": "0", - "sequence": "0" - }, - { - "@type": "/cosmos.auth.v1beta1.BaseAccount", - "address": "okp4136ukr7yftag6w6qmk23ht27wx9vxr553dfpulz", - "pub_key": null, - "account_number": "0", - "sequence": "0" - }, - { - "@type": "/cosmos.auth.v1beta1.BaseAccount", - "address": "okp415ka7cykmgu9l7eqqqq9qy3c40ygaa8y2r8zavk", - "pub_key": null, - "account_number": "0", - "sequence": "0" - }, - { - "@type": "/cosmos.auth.v1beta1.BaseAccount", - "address": "okp41jjafa4d43q3f6gq7q60s7s593cnne3dcga6svz", - "pub_key": null, - "account_number": "0", - "sequence": "0" - }, - { - "@type": "/cosmos.auth.v1beta1.BaseAccount", - "address": "okp4166jc7uuwg0jf5tgev38t235vlrf6ruj4dkgl94", - "pub_key": null, - "account_number": "0", - "sequence": "0" - }, - { - "@type": "/cosmos.auth.v1beta1.BaseAccount", - "address": "okp41nc75uehak9a5f5slexfpxrxy5vh8e8phzmrq6e", - "pub_key": null, - "account_number": "0", - "sequence": "0" - } - ] - }, - "bank": { - "params": { - "send_enabled": [], - "default_send_enabled": true - }, - "balances": [ - { - "address": "okp412audd6xmwte2rkxdz0ag38cmp0yu46un9nu75e", - "coins": [ - { - "denom": "know", - "amount": "100" - } - ] - }, - { - "address": "okp4136ukr7yftag6w6qmk23ht27wx9vxr553dfpulz", - "coins": [ - { - "denom": "know", - "amount": "50" - } - ] - }, - { - "address": "okp41jjafa4d43q3f6gq7q60s7s593cnne3dcga6svz", - "coins": [ - { - "denom": "know", - "amount": "10000000000" - } - ] - }, - { - "address": "okp41nc75uehak9a5f5slexfpxrxy5vh8e8phzmrq6e", - "coins": [ - { - "denom": "know", - "amount": "1000001" - } - ] - }, - { - "address": "okp415ka7cykmgu9l7eqqqq9qy3c40ygaa8y2r8zavk", - "coins": [ - { - "denom": "know", - "amount": "10000000000" - } - ] - }, - { - "address": "okp4166jc7uuwg0jf5tgev38t235vlrf6ruj4dkgl94", - "coins": [ - { - "denom": "know", - "amount": "10000000000" - } - ] - } - ], - "supply": [], - "denom_metadata": [] - }, - "capability": { - "index": "1", - "owners": [] - }, - "crisis": { - "constant_fee": { - "amount": "1000", - "denom": "stake" - } + "evidence": { + "max_age_num_blocks": "100000", + "max_age_duration": "172800000000000", + "max_bytes": "1048576" + }, + "validator": { + "pub_key_types": [ + "ed25519" + ] + }, + "version": {} + }, + "app_hash": "", + "app_state": { + "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": "okp412audd6xmwte2rkxdz0ag38cmp0yu46un9nu75e", + "pub_key": null, + "account_number": "0", + "sequence": "0" }, - "distribution": { - "delegator_starting_infos": [], - "delegator_withdraw_infos": [], - "fee_pool": { - "community_pool": [] - }, - "outstanding_rewards": [], - "params": { - "base_proposer_reward": "0.010000000000000000", - "bonus_proposer_reward": "0.040000000000000000", - "community_tax": "0.020000000000000000", - "withdraw_addr_enabled": true - }, - "previous_proposer": "", - "validator_accumulated_commissions": [], - "validator_current_rewards": [], - "validator_historical_rewards": [], - "validator_slash_events": [] + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "okp4136ukr7yftag6w6qmk23ht27wx9vxr553dfpulz", + "pub_key": null, + "account_number": "0", + "sequence": "0" }, - "evidence": { - "evidence": [] + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "okp415ka7cykmgu9l7eqqqq9qy3c40ygaa8y2r8zavk", + "pub_key": null, + "account_number": "0", + "sequence": "0" }, - "feegrant": { - "allowances": [] + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "okp41jjafa4d43q3f6gq7q60s7s593cnne3dcga6svz", + "pub_key": null, + "account_number": "0", + "sequence": "0" }, - "genutil": { - "gen_txs": [ - { - "body": { - "messages": [ - { - "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", - "description": { - "moniker": "mynode", - "identity": "", - "website": "", - "security_contact": "", - "details": "" - }, - "commission": { - "rate": "0.100000000000000000", - "max_rate": "0.200000000000000000", - "max_change_rate": "0.010000000000000000" - }, - "min_self_delegation": "1", - "delegator_address": "okp41nc75uehak9a5f5slexfpxrxy5vh8e8phzmrq6e", - "validator_address": "okp4valoper1nc75uehak9a5f5slexfpxrxy5vh8e8phhunfyc", - "pubkey": { - "@type": "/cosmos.crypto.ed25519.PubKey", - "key": "15ZeFwIv7og5s4DsRr7M9j+vlqjTsLQvXcJT/sTm2pk=" - }, - "value": { - "denom": "know", - "amount": "1000000" - } - } - ], - "memo": "8d7e4bb4c17a924aac7ec58aa69de8cd5bb31f22@192.168.1.5:26656", - "timeout_height": "0", - "extension_options": [], - "non_critical_extension_options": [] - }, - "auth_info": { - "signer_infos": [ - { - "public_key": { - "@type": "/cosmos.crypto.secp256k1.PubKey", - "key": "A4qymsGDq4lPZn39cZ/SaqoB14vPpNXxwRXxA4GnBk/k" - }, - "mode_info": { - "single": { - "mode": "SIGN_MODE_DIRECT" - } - }, - "sequence": "0" - } - ], - "fee": { - "amount": [], - "gas_limit": "200000", - "payer": "", - "granter": "" - } - }, - "signatures": [ - "mfnSKt6EFTFPcCkLTlSKe4x7LSd1c5SG5pMbyzwP4AhJnciPw5FgLTZ759kxsHKNF2TTyOfdareREAq0yp0EfA==" - ] - } - ] + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "okp4166jc7uuwg0jf5tgev38t235vlrf6ruj4dkgl94", + "pub_key": null, + "account_number": "0", + "sequence": "0" }, - "gov": { - "deposit_params": { - "max_deposit_period": "172800s", - "min_deposit": [ - { - "amount": "10000000", - "denom": "stake" - } - ] - }, - "deposits": [], - "proposals": [], - "starting_proposal_id": "1", - "tally_params": { - "quorum": "0.334000000000000000", - "threshold": "0.500000000000000000", - "veto_threshold": "0.334000000000000000" - }, - "votes": [], - "voting_params": { - "voting_period": "172800s" + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "okp41nc75uehak9a5f5slexfpxrxy5vh8e8phzmrq6e", + "pub_key": null, + "account_number": "0", + "sequence": "0" + } + ] + }, + "bank": { + "params": { + "send_enabled": [], + "default_send_enabled": true + }, + "balances": [ + { + "address": "okp412audd6xmwte2rkxdz0ag38cmp0yu46un9nu75e", + "coins": [ + { + "denom": "know", + "amount": "100" } + ] }, - "ibc": { - "channel_genesis": { - "ack_sequences": [], - "acknowledgements": [], - "channels": [], - "commitments": [], - "next_channel_sequence": "0", - "receipts": [], - "recv_sequences": [], - "send_sequences": [] - }, - "client_genesis": { - "clients": [], - "clients_consensus": [], - "clients_metadata": [], - "create_localhost": false, - "next_client_sequence": "0", - "params": { - "allowed_clients": ["06-solomachine", "07-tendermint"] - } - }, - "connection_genesis": { - "client_connection_paths": [], - "connections": [], - "next_connection_sequence": "0", - "params": { - "max_expected_time_per_block": "30000000000" - } + { + "address": "okp4136ukr7yftag6w6qmk23ht27wx9vxr553dfpulz", + "coins": [ + { + "denom": "know", + "amount": "50" } + ] }, - "mint": { - "minter": { - "annual_provisions": "0.000000000000000000", - "inflation": "0.130000000000000000" - }, - "params": { - "blocks_per_year": "6311520", - "goal_bonded": "0.670000000000000000", - "inflation_max": "0.200000000000000000", - "inflation_min": "0.070000000000000000", - "inflation_rate_change": "0.130000000000000000", - "mint_denom": "stake" + { + "address": "okp41jjafa4d43q3f6gq7q60s7s593cnne3dcga6svz", + "coins": [ + { + "denom": "know", + "amount": "10000000000" } + ] }, - "params": null, - "slashing": { - "missed_blocks": [], - "params": { - "downtime_jail_duration": "600s", - "min_signed_per_window": "0.500000000000000000", - "signed_blocks_window": "100", - "slash_fraction_double_sign": "0.050000000000000000", - "slash_fraction_downtime": "0.010000000000000000" - }, - "signing_infos": [] + { + "address": "okp41nc75uehak9a5f5slexfpxrxy5vh8e8phzmrq6e", + "coins": [ + { + "denom": "know", + "amount": "1000001" + } + ] }, - "staking": { - "delegations": [], - "exported": false, - "last_total_power": "0", - "last_validator_powers": [], - "params": { - "bond_denom": "know", - "historical_entries": 10000, - "max_entries": 7, - "max_validators": 100, - "unbonding_time": "1814400s" - }, - "redelegations": [], - "unbonding_delegations": [], - "validators": [] + { + "address": "okp415ka7cykmgu9l7eqqqq9qy3c40ygaa8y2r8zavk", + "coins": [ + { + "denom": "know", + "amount": "10000000000" + } + ] }, - "transfer": { - "denom_traces": [], - "params": { - "receive_enabled": true, - "send_enabled": true + { + "address": "okp4166jc7uuwg0jf5tgev38t235vlrf6ruj4dkgl94", + "coins": [ + { + "denom": "know", + "amount": "10000000000" + } + ] + } + ], + "supply": [], + "denom_metadata": [ + { + "base": "uknow", + "name": "OKP4 Know", + "description": "The native token of ØKP4", + "display": "know", + "symbol": "KNOW", + "denom_units": [ + { + "aliases": [ + "microknow" + ], + "denom": "uknow", + "exponent": 0 }, - "port_id": "transfer" - }, - "upgrade": {}, - "vesting": {} - } + { + "aliases": [], + "denom": "know", + "exponent": 6 + } + ] + } + ] + }, + "capability": { + "index": "1", + "owners": [] + }, + "crisis": { + "constant_fee": { + "amount": "1000", + "denom": "stake" + } + }, + "distribution": { + "delegator_starting_infos": [], + "delegator_withdraw_infos": [], + "fee_pool": { + "community_pool": [] + }, + "outstanding_rewards": [], + "params": { + "base_proposer_reward": "0.010000000000000000", + "bonus_proposer_reward": "0.040000000000000000", + "community_tax": "0.020000000000000000", + "withdraw_addr_enabled": true + }, + "previous_proposer": "", + "validator_accumulated_commissions": [], + "validator_current_rewards": [], + "validator_historical_rewards": [], + "validator_slash_events": [] + }, + "evidence": { + "evidence": [] + }, + "feegrant": { + "allowances": [] + }, + "genutil": { + "gen_txs": [ + { + "body": { + "messages": [ + { + "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", + "description": { + "moniker": "mynode", + "identity": "", + "website": "", + "security_contact": "", + "details": "" + }, + "commission": { + "rate": "0.100000000000000000", + "max_rate": "0.200000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "okp41nc75uehak9a5f5slexfpxrxy5vh8e8phzmrq6e", + "validator_address": "okp4valoper1nc75uehak9a5f5slexfpxrxy5vh8e8phhunfyc", + "pubkey": { + "@type": "/cosmos.crypto.ed25519.PubKey", + "key": "15ZeFwIv7og5s4DsRr7M9j+vlqjTsLQvXcJT/sTm2pk=" + }, + "value": { + "denom": "know", + "amount": "1000000" + } + } + ], + "memo": "8d7e4bb4c17a924aac7ec58aa69de8cd5bb31f22@192.168.1.5:26656", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/cosmos.crypto.secp256k1.PubKey", + "key": "A4qymsGDq4lPZn39cZ/SaqoB14vPpNXxwRXxA4GnBk/k" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_DIRECT" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "200000", + "payer": "", + "granter": "" + } + }, + "signatures": [ + "mfnSKt6EFTFPcCkLTlSKe4x7LSd1c5SG5pMbyzwP4AhJnciPw5FgLTZ759kxsHKNF2TTyOfdareREAq0yp0EfA==" + ] + } + ] + }, + "gov": { + "deposit_params": { + "max_deposit_period": "172800s", + "min_deposit": [ + { + "amount": "10000000", + "denom": "stake" + } + ] + }, + "deposits": [], + "proposals": [], + "starting_proposal_id": "1", + "tally_params": { + "quorum": "0.334000000000000000", + "threshold": "0.500000000000000000", + "veto_threshold": "0.334000000000000000" + }, + "votes": [], + "voting_params": { + "voting_period": "172800s" + } + }, + "ibc": { + "channel_genesis": { + "ack_sequences": [], + "acknowledgements": [], + "channels": [], + "commitments": [], + "next_channel_sequence": "0", + "receipts": [], + "recv_sequences": [], + "send_sequences": [] + }, + "client_genesis": { + "clients": [], + "clients_consensus": [], + "clients_metadata": [], + "create_localhost": false, + "next_client_sequence": "0", + "params": { + "allowed_clients": [ + "06-solomachine", + "07-tendermint" + ] + } + }, + "connection_genesis": { + "client_connection_paths": [], + "connections": [], + "next_connection_sequence": "0", + "params": { + "max_expected_time_per_block": "30000000000" + } + } + }, + "mint": { + "minter": { + "annual_provisions": "0.000000000000000000", + "inflation": "0.130000000000000000" + }, + "params": { + "blocks_per_year": "6311520", + "goal_bonded": "0.670000000000000000", + "inflation_max": "0.200000000000000000", + "inflation_min": "0.070000000000000000", + "inflation_rate_change": "0.130000000000000000", + "mint_denom": "stake" + } + }, + "params": null, + "slashing": { + "missed_blocks": [], + "params": { + "downtime_jail_duration": "600s", + "min_signed_per_window": "0.500000000000000000", + "signed_blocks_window": "100", + "slash_fraction_double_sign": "0.050000000000000000", + "slash_fraction_downtime": "0.010000000000000000" + }, + "signing_infos": [] + }, + "staking": { + "delegations": [], + "exported": false, + "last_total_power": "0", + "last_validator_powers": [], + "params": { + "bond_denom": "know", + "historical_entries": 10000, + "max_entries": 7, + "max_validators": 100, + "unbonding_time": "1814400s" + }, + "redelegations": [], + "unbonding_delegations": [], + "validators": [] + }, + "transfer": { + "denom_traces": [], + "params": { + "receive_enabled": true, + "send_enabled": true + }, + "port_id": "transfer" + }, + "upgrade": {}, + "vesting": {} + } } diff --git a/chains/testnet/genesis.json b/chains/testnet/genesis.json index d93a6f3f..f3cc4575 100644 --- a/chains/testnet/genesis.json +++ b/chains/testnet/genesis.json @@ -105,7 +105,29 @@ } ], "supply": [], - "denom_metadata": [] + "denom_metadata": [ + { + "base": "uknow", + "name": "OKP4 Network", + "description": "The native token of ØKP4", + "display": "know", + "symbol": "KNOW", + "denom_units": [ + { + "aliases": [ + "microknow" + ], + "denom": "uknow", + "exponent": 0 + }, + { + "aliases": [], + "denom": "know", + "exponent": 6 + } + ] + } + ] }, "capability": { "index": "1", @@ -319,4 +341,4 @@ "upgrade": {}, "vesting": {} } -} \ No newline at end of file +} diff --git a/chains/testnet/pre-genesis.json b/chains/testnet/pre-genesis.json index 7d4248a3..01fd274e 100644 --- a/chains/testnet/pre-genesis.json +++ b/chains/testnet/pre-genesis.json @@ -105,7 +105,29 @@ } ], "supply": [], - "denom_metadata": [] + "denom_metadata": [ + { + "base": "uknow", + "name": "OKP4 Network", + "description": "The native token of ØKP4", + "display": "know", + "symbol": "KNOW", + "denom_units": [ + { + "aliases": [ + "microknow" + ], + "denom": "uknow", + "exponent": 0 + }, + { + "aliases": [], + "denom": "know", + "exponent": 6 + } + ] + } + ] }, "capability": { "index": "1", @@ -257,4 +279,4 @@ "upgrade": {}, "vesting": {} } -} \ No newline at end of file +}