From 37efa0ef3a883fafacae3b75f665b03cacb20c3f Mon Sep 17 00:00:00 2001 From: Charles Dusek Date: Sun, 24 Mar 2024 23:50:18 -0500 Subject: [PATCH] Add in some config and update market --- chain/onex-devnet/genesis-onex-devnet.json | 385 +++++++++++++++++++++ chain/scripts/ubuntu-firewall.sh | 10 + go.mod | 2 +- go.sum | 4 +- 4 files changed, 398 insertions(+), 3 deletions(-) create mode 100644 chain/onex-devnet/genesis-onex-devnet.json create mode 100644 chain/scripts/ubuntu-firewall.sh diff --git a/chain/onex-devnet/genesis-onex-devnet.json b/chain/onex-devnet/genesis-onex-devnet.json new file mode 100644 index 0000000..85c7c56 --- /dev/null +++ b/chain/onex-devnet/genesis-onex-devnet.json @@ -0,0 +1,385 @@ +{ + "genesis_time": "2024-03-24T21:35:18.305867214Z", + "chain_id": "onex", + "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": {} + }, + "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": "onomy1mczcy7z92fkyhrsctlv0ge690mzvmd9ye67mjy", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "onomy15d2ltjk9knex7llg25y5uwa0ulst06pghzv4ln", + "pub_key": null, + "account_number": "1", + "sequence": "0" + } + ] + }, + "authz": { + "authorization": [] + }, + "bank": { + "params": { + "send_enabled": [], + "default_send_enabled": true + }, + "balances": [ + { + "address": "onomy15d2ltjk9knex7llg25y5uwa0ulst06pghzv4ln", + "coins": [ + { + "denom": "stake", + "amount": "20000000000000000000" + } + ] + }, + { + "address": "onomy1mczcy7z92fkyhrsctlv0ge690mzvmd9ye67mjy", + "coins": [ + { + "denom": "abtc", + "amount": "150000000000000000000000" + }, + { + "denom": "anom", + "amount": "100000000000000000000000000" + }, + { + "denom": "ausdc", + "amount": "20000000000000000000000000000" + }, + { + "denom": "ausdt", + "amount": "20000000000000000000000000000" + }, + { + "denom": "stake", + "amount": "20000000000000000000" + }, + { + "denom": "wei", + "amount": "20000000000000000000000000" + } + ] + } + ], + "supply": [], + "denom_metadata": [ + { + "name": "Bitcoin", + "description": "Bitcoin", + "denom_units": [ + { + "denom": "abtc", + "exponent": 0, + "aliases": [] + }, + { + "denom": "btc", + "exponent": 18, + "aliases": [] + } + ], + "base": "abtc", + "display": "btc", + "symbol": "BTC" + }, + { + "name": "Ether", + "description": "Ethereum Native Coin", + "denom_units": [ + { + "denom": "wei", + "exponent": 0, + "aliases": [] + }, + { + "denom": "eth", + "exponent": 18, + "aliases": [] + } + ], + "base": "wei", + "display": "eth", + "symbol": "ETH" + }, + { + "name": "Nom", + "description": "Onomy NOM", + "denom_units": [ + { + "denom": "anom", + "exponent": 0, + "aliases": [] + }, + { + "denom": "nom", + "exponent": 18, + "aliases": [] + } + ], + "base": "anom", + "display": "nom", + "symbol": "NOM" + }, + { + "name": "Tether", + "description": "Tether USD", + "denom_units": [ + { + "denom": "ausdt", + "exponent": 0, + "aliases": [] + }, + { + "denom": "usdt", + "exponent": 18, + "aliases": [] + } + ], + "base": "ausdt", + "display": "usdt", + "symbol": "USDT" + }, + { + "name": "USDC", + "description": "USDC", + "denom_units": [ + { + "denom": "ausdc", + "exponent": 0, + "aliases": [] + }, + { + "denom": "usdc", + "exponent": 18, + "aliases": [] + } + ], + "base": "ausdc", + "display": "usdc", + "symbol": "USDC" + } + ] + }, + "capability": { + "index": "1", + "owners": [] + }, + "ccvconsumer": { + "params": { + "enabled": false, + "blocks_per_distribution_transmission": "1000", + "distribution_transmission_channel": "", + "provider_fee_pool_addr_str": "", + "ccv_timeout_period": "2419200s", + "transfer_timeout_period": "3600s", + "consumer_redistribution_fraction": "0.75", + "historical_entries": "10000", + "unbonding_period": "1728000s", + "soft_opt_out_threshold": "0.05", + "reward_denoms": [], + "provider_reward_denoms": [] + }, + "provider_client_id": "", + "provider_channel_id": "", + "new_chain": false, + "provider_client_state": null, + "provider_consensus_state": null, + "maturing_packets": [], + "initial_val_set": [], + "height_to_valset_update_id": [], + "outstanding_downtime_slashing": [], + "pending_consumer_packets": { + "list": [] + }, + "last_transmission_block_height": { + "height": "0" + } + }, + "crisis": { + "constant_fee": { + "denom": "stake", + "amount": "1000" + } + }, + "distribution": { + "params": { + "community_tax": "0.020000000000000000", + "base_proposer_reward": "0.010000000000000000", + "bonus_proposer_reward": "0.040000000000000000", + "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": [] + }, + "gov": { + "starting_proposal_id": "1", + "deposits": [], + "votes": [], + "proposals": [], + "deposit_params": { + "min_deposit": [ + { + "denom": "stake", + "amount": "10000000" + } + ], + "max_deposit_period": "172800s" + }, + "voting_params": { + "voting_period": "172800s" + }, + "tally_params": { + "quorum": "0.334000000000000000", + "threshold": "0.500000000000000000", + "veto_threshold": "0.334000000000000000" + } + }, + "ibc": { + "client_genesis": { + "clients": [], + "clients_consensus": [], + "clients_metadata": [], + "params": { + "allowed_clients": [ + "06-solomachine", + "07-tendermint" + ] + }, + "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" + } + }, + "market": { + "params": { + "earn_rates": "0500,0300,0200", + "burn_rate": "1000", + "burn_coin": "stake", + "market_fee": "0030" + }, + "poolList": [], + "dropList": [], + "memberList": [], + "burningsList": [], + "orderList": [] + }, + "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" + } + }, + "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": "stake" + }, + "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 + } + }, + "upgrade": {}, + "vesting": {} + } +} \ No newline at end of file diff --git a/chain/scripts/ubuntu-firewall.sh b/chain/scripts/ubuntu-firewall.sh new file mode 100644 index 0000000..42a8934 --- /dev/null +++ b/chain/scripts/ubuntu-firewall.sh @@ -0,0 +1,10 @@ +# Oracle Cloud Ubuntu Firewall Config +IPTABLES_CONFIG=/etc/iptables/rules.v4 +if test -f "$IPTABLES_CONFIG"; then + # Oracle Cloud Ubuntu Firewall Config + sudo sed -i 's/22 -j ACCEPT/&\n-A INPUT -p tcp -m state --state NEW -m tcp --dport 9091 -j ACCEPT/' $IPTABLES_CONFIG + sudo sed -i 's/22 -j ACCEPT/&\n-A INPUT -p tcp -m state --state NEW -m tcp --dport 9191 -j ACCEPT/' $IPTABLES_CONFIG + sudo sed -i 's/22 -j ACCEPT/&\n-A INPUT -p tcp -m state --state NEW -m tcp --dport 1317 -j ACCEPT/' $IPTABLES_CONFIG + sudo sed -i 's/22 -j ACCEPT/&\n-A INPUT -p tcp -m state --state NEW -m tcp --dport 26657 -j ACCEPT/' $IPTABLES_CONFIG + sudo iptables-restore < $IPTABLES_CONFIG +fi \ No newline at end of file diff --git a/go.mod b/go.mod index 83de894..10ea8a3 100644 --- a/go.mod +++ b/go.mod @@ -155,7 +155,7 @@ replace ( github.com/cosmos/cosmos-sdk => github.com/cosmos/cosmos-sdk v0.45.16-ics github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 github.com/keybase/go-keychain => github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 - github.com/pendulum-labs/market => github.com/onomyprotocol/market v1.1.1-dev + github.com/pendulum-labs/market => github.com/onomyprotocol/market v1.1.2-dev github.com/tendermint/tendermint => github.com/cometbft/cometbft v0.34.28 google.golang.org/grpc => google.golang.org/grpc v1.33.2 ) diff --git a/go.sum b/go.sum index 95eaa5e..e5f844f 100644 --- a/go.sum +++ b/go.sum @@ -2204,8 +2204,8 @@ github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:v github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= github.com/olekukonko/tablewriter v0.0.2/go.mod h1:rSAaSIOAGT9odnlyGlUfAJaoc5w2fSBUmeGDbRWPxyQ= github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= -github.com/onomyprotocol/market v1.1.1-dev h1:EPk9pkf7Ix/ObbrH5W5Bt2EnKnInM+XGrA3fi8i4rIw= -github.com/onomyprotocol/market v1.1.1-dev/go.mod h1:OFWUMLq8cfNRQnc6WqReQYq+hNYRqoc2RmMvECSxdwk= +github.com/onomyprotocol/market v1.1.2-dev h1:uLCI2DMclMrKJ9YGi7RyOz5EmG8b7EvJoNwgqfwp5Ks= +github.com/onomyprotocol/market v1.1.2-dev/go.mod h1:OFWUMLq8cfNRQnc6WqReQYq+hNYRqoc2RmMvECSxdwk= github.com/onsi/ginkgo v0.0.0-20151202141238-7f8ab55aaf3b/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=