Skip to content

Commit

Permalink
Add in some config and update market
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Dusek committed Mar 25, 2024
1 parent b74fcce commit 37efa0e
Show file tree
Hide file tree
Showing 4 changed files with 398 additions and 3 deletions.
385 changes: 385 additions & 0 deletions chain/onex-devnet/genesis-onex-devnet.json
Original file line number Diff line number Diff line change
@@ -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": {}
}
}
10 changes: 10 additions & 0 deletions chain/scripts/ubuntu-firewall.sh
Original file line number Diff line number Diff line change
@@ -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
Loading

0 comments on commit 37efa0e

Please sign in to comment.