From 99be9dd8abc348e63ab824ac39cbae2e5094e608 Mon Sep 17 00:00:00 2001 From: Denali Marsh Date: Fri, 24 Jan 2020 13:44:13 -0800 Subject: [PATCH] [WIP] example proposal.json files for param changes (#331) * proposal examples, copy of cdptestnet genesis * co-located genesis files with their respective proposals in contrib * added genesis file for updatedebtlimit * Removed legacy genesis example * added sample genesis files as starting states of auction tests * auction proposal json files (untested) * max auction duration and bid duration tested * requested changes --- .../genesis_test_collateral_auctions.json | 360 +++++++++++++++++ .../genesis_test_debt_auctions.json | 360 +++++++++++++++++ .../addcollateral/addcollateral.json | 50 +++ .../addcollateral/addcollateral2.json | 72 ++++ .../addcollateral/genesis_addcollateral.json | 344 +++++++++++++++++ .../addmarket/addmarket.json | 45 +++ .../addmarket/genesis_addmarket.json | 359 +++++++++++++++++ .../updatebidduration/updatebidduration.json | 17 + .../genesis_updatedebtlimit.json | 361 ++++++++++++++++++ .../updatedebtlimit/updatedebtlimit.json | 34 ++ .../updatemaxauctionduration.json | 17 + 11 files changed, 2019 insertions(+) create mode 100644 contrib/genesis_examples/genesis_test_collateral_auctions.json create mode 100644 contrib/genesis_examples/genesis_test_debt_auctions.json create mode 100644 contrib/proposal_examples/addcollateral/addcollateral.json create mode 100644 contrib/proposal_examples/addcollateral/addcollateral2.json create mode 100644 contrib/proposal_examples/addcollateral/genesis_addcollateral.json create mode 100644 contrib/proposal_examples/addmarket/addmarket.json create mode 100644 contrib/proposal_examples/addmarket/genesis_addmarket.json create mode 100644 contrib/proposal_examples/updatebidduration/updatebidduration.json create mode 100644 contrib/proposal_examples/updatedebtlimit/genesis_updatedebtlimit.json create mode 100644 contrib/proposal_examples/updatedebtlimit/updatedebtlimit.json create mode 100644 contrib/proposal_examples/updatemaxauctionduration/updatemaxauctionduration.json diff --git a/contrib/genesis_examples/genesis_test_collateral_auctions.json b/contrib/genesis_examples/genesis_test_collateral_auctions.json new file mode 100644 index 00000000..79d1cb2d --- /dev/null +++ b/contrib/genesis_examples/genesis_test_collateral_auctions.json @@ -0,0 +1,360 @@ +{ + "genesis_time": "2020-01-22T22:39:50.083273Z", + "chain_id": "testing", + "consensus_params": { + "block": { + "max_bytes": "200000", + "max_gas": "2000000", + "time_iota_ms": "1000" + }, + "evidence": { + "max_age": "1000000" + }, + "validator": { + "pub_key_types": [ + "ed25519" + ] + } + }, + "app_hash": "", + "app_state": { + "slashing": { + "missed_blocks": {}, + "params": { + "downtime_jail_duration": "600000000000", + "max_evidence_age": "3600000000000", + "min_signed_per_window": "0.010000000000000000", + "signed_blocks_window": "1000", + "slash_fraction_double_sign": "0.050000000000000000", + "slash_fraction_downtime": "0.000100000000000000" + }, + "signing_infos": {} + }, + "params": null, + "bank": { + "send_enabled": true + }, + "crisis": { + "constant_fee": { + "amount": "1333000000", + "denom": "ukava" + } + }, + "cdp": { + "cdps": [], + "debt_denom": "debt", + "deposits": [], + "gov_denom": "ukava", + "params": { + "circuit_breaker": false, + "collateral_params": [ + { + "auction_size": "10000000", + "conversion_factor": "8", + "debt_limit": [ + { + "amount": "1000000000000", + "denom": "usdx" + } + ], + "denom": "btc", + "liquidation_penalty": "0.05", + "liquidation_ratio": "1.5", + "market_id": "btc:usd", + "prefix": 0, + "stability_fee": "1.0000000007829977" + }, + { + "auction_size": "10000000", + "conversion_factor": "6", + "debt_limit": [ + { + "amount": "10000000", + "denom": "usdx" + } + ], + "denom": "xrp", + "liquidation_penalty": "0.1", + "liquidation_ratio": "2.0", + "market_id": "xrp:usd", + "prefix": 1, + "stability_fee": "1.0000000007829977" + } + ], + "debt_auction_threshold": "1000000000", + "debt_params": [ + { + "conversion_factor": "6", + "debt_floor": "10000000", + "debt_limit": [ + { + "amount": "2000000000000", + "denom": "usdx" + } + ], + "denom": "usdx", + "reference_asset": "usd" + } + ], + "global_debt_limit": [ + { + "amount": "2000000000000", + "denom": "usdx" + } + ], + "surplus_auction_threshold": "1000000000" + }, + "previous_block_time": "1970-01-01T00:00:00Z", + "starting_cdp_id": "1" + }, + "auction": { + "auctions": [], + "next_auction_id": "0", + "params": { + "bid_duration": "150000000000", + "max_auction_duration": "400000000000" + } + }, + "genutil": { + "gentxs": [ + { + "type": "cosmos-sdk/StdTx", + "value": { + "msg": [ + { + "type": "cosmos-sdk/MsgCreateValidator", + "value": { + "description": { + "moniker": "validator", + "identity": "", + "website": "", + "security_contact": "", + "details": "" + }, + "commission": { + "rate": "0.100000000000000000", + "max_rate": "0.200000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw", + "validator_address": "kavavaloper15qdefkmwswysgg4qxgqpqr35k3m49pkx8yhpte", + "pubkey": "kavavalconspub1zcjduepq0ykwlzr3guncl5l8npqa5lmq8kc5y2aeqp8zc8e72t3stxujxvxsxqjqwt", + "value": { + "denom": "ukava", + "amount": "100000000" + } + } + } + ], + "fee": { + "amount": [], + "gas": "200000" + }, + "signatures": [ + { + "pub_key": { + "type": "tendermint/PubKeySecp256k1", + "value": "Az740XKIPCJtnZLmJfktTfhsEStEJE3n2iRVyJ3wko43" + }, + "signature": "llQmiLi+BQDKT2D2fOSr+eiDTXnce9xvZ7xls8EgoLIn+vz3HpyaTEoUQVes0kXbHfwJVSTz8jN6Z7HWYeEDlw==" + } + ], + "memo": "75917fc405a9af4ed44161a38456ce290a588100@10.21.104.217:26656" + } + } + ] + }, + "supply": { + "supply": [] + }, + "validatorvesting": { + "previous_block_time": "1970-01-01T00:00:00Z" + }, + "mint": { + "minter": { + "annual_provisions": "0.000000000000000000", + "inflation": "0.020000000000000000" + }, + "params": { + "blocks_per_year": "6311520", + "goal_bonded": "0.670000000000000000", + "inflation_max": "0.130000000000000000", + "inflation_min": "0.010000000000000000", + "inflation_rate_change": "0.130000000000000000", + "mint_denom": "ukava" + } + }, + "distribution": { + "base_proposer_reward": "0.010000000000000000", + "bonus_proposer_reward": "0.040000000000000000", + "community_tax": "0.000000000000000000", + "delegator_starting_infos": [], + "delegator_withdraw_infos": [], + "fee_pool": { + "community_pool": [] + }, + "outstanding_rewards": [], + "previous_proposer": "", + "validator_accumulated_commissions": [], + "validator_current_rewards": [], + "validator_historical_rewards": [], + "validator_slash_events": [], + "withdraw_addr_enabled": true + }, + "auth": { + "accounts": [ + { + "type": "cosmos-sdk/Account", + "value": { + "account_number": "0", + "address": "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw", + "coins": [ + { + "amount": "10000000000", + "denom": "btc" + }, + { + "amount": "9000000000", + "denom": "ukava" + }, + { + "amount": "90000000000", + "denom": "xrp" + } + ], + "public_key": null, + "sequence": "0" + } + }, + { + "type": "cosmos-sdk/Account", + "value": { + "account_number": "0", + "address": "kava1xy7hrjy9r0algz9w3gzm8u6mrpq97kwta747gj", + "coins": [ + { + "amount": "10000000000", + "denom": "btc" + }, + { + "amount": "9000000000", + "denom": "ukava" + }, + { + "amount": "90000000000", + "denom": "xrp" + } + ], + "public_key": null, + "sequence": "0" + } + }, + { + "type": "cosmos-sdk/Account", + "value": { + "account_number": "0", + "address": "kava12jk3szk45afmvjc3xc6kvj4e40tuy2m8ckgs03", + "coins": [ + { + "amount": "10000000000", + "denom": "btc" + }, + { + "amount": "9000000000", + "denom": "ukava" + }, + { + "amount": "90000000000", + "denom": "xrp" + } + ], + "public_key": null, + "sequence": "0" + } + } + ], + "params": { + "max_memo_characters": "256", + "sig_verify_cost_ed25519": "590", + "sig_verify_cost_secp256k1": "1000", + "tx_sig_limit": "7", + "tx_size_cost_per_byte": "10" + } + }, + "staking": { + "delegations": null, + "exported": false, + "last_total_power": "0", + "last_validator_powers": null, + "params": { + "bond_denom": "ukava", + "max_entries": 7, + "max_validators": 100, + "unbonding_time": "3600000000000" + }, + "redelegations": null, + "unbonding_delegations": null, + "validators": null + }, + "pricefeed": { + "params": { + "markets": [ + { + "active": true, + "base_asset": "xrp", + "market_id": "xrp:usd", + "oracles": [ + "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw" + ], + "quote_asset": "usd" + }, + { + "active": true, + "base_asset": "btc", + "market_id": "btc:usd", + "oracles": [], + "quote_asset": "usd" + } + ] + }, + "posted_prices": [ + { + "expiry": "2050-01-01T00:00:00Z", + "market_id": "btc:usd", + "oracle_address": "", + "price": "8700.0" + }, + { + "expiry": "2050-01-01T00:00:00Z", + "market_id": "xrp:usd", + "oracle_address": "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw", + "price": "0.25" + } + ] + }, + "gov": { + "deposit_params": { + "max_deposit_period": "300000000000", + "min_deposit": [ + { + "amount": "1000000", + "denom": "ukava" + } + ] + }, + "deposits": null, + "proposals": null, + "starting_proposal_id": "1", + "tally_params": { + "quorum": "0.334000000000000000", + "threshold": "0.500000000000000000", + "veto": "0.334000000000000000" + }, + "votes": null, + "voting_params": { + "voting_period": "300000000000" + } + } + } +} diff --git a/contrib/genesis_examples/genesis_test_debt_auctions.json b/contrib/genesis_examples/genesis_test_debt_auctions.json new file mode 100644 index 00000000..6187986a --- /dev/null +++ b/contrib/genesis_examples/genesis_test_debt_auctions.json @@ -0,0 +1,360 @@ +{ + "genesis_time": "2020-01-22T22:39:50.083273Z", + "chain_id": "testing", + "consensus_params": { + "block": { + "max_bytes": "200000", + "max_gas": "2000000", + "time_iota_ms": "1000" + }, + "evidence": { + "max_age": "1000000" + }, + "validator": { + "pub_key_types": [ + "ed25519" + ] + } + }, + "app_hash": "", + "app_state": { + "slashing": { + "missed_blocks": {}, + "params": { + "downtime_jail_duration": "600000000000", + "max_evidence_age": "3600000000000", + "min_signed_per_window": "0.010000000000000000", + "signed_blocks_window": "1000", + "slash_fraction_double_sign": "0.050000000000000000", + "slash_fraction_downtime": "0.000100000000000000" + }, + "signing_infos": {} + }, + "params": null, + "bank": { + "send_enabled": true + }, + "crisis": { + "constant_fee": { + "amount": "1333000000", + "denom": "ukava" + } + }, + "cdp": { + "cdps": [], + "debt_denom": "ukava", + "deposits": [], + "gov_denom": "ukava", + "params": { + "circuit_breaker": false, + "collateral_params": [ + { + "auction_size": "10000000000", + "conversion_factor": "8", + "debt_limit": [ + { + "amount": "1000000000", + "denom": "usdx" + } + ], + "denom": "btc", + "liquidation_penalty": "0.05", + "liquidation_ratio": "1.5", + "market_id": "btc:usd", + "prefix": 0, + "stability_fee": "1.0000000007829977" + }, + { + "auction_size": "100000000", + "conversion_factor": "6", + "debt_limit": [ + { + "amount": "10000000", + "denom": "usdx" + } + ], + "denom": "xrp", + "liquidation_penalty": "0.1", + "liquidation_ratio": "2.0", + "market_id": "xrp:usd", + "prefix": 1, + "stability_fee": "1.0000000007829977" + } + ], + "debt_auction_threshold": "9000000", + "debt_params": [ + { + "conversion_factor": "6", + "debt_floor": "10000000", + "debt_limit": [ + { + "amount": "2000000000000", + "denom": "usdx" + } + ], + "denom": "usdx", + "reference_asset": "usd" + } + ], + "global_debt_limit": [ + { + "amount": "2000000000000", + "denom": "usdx" + } + ], + "surplus_auction_threshold": "9000000" + }, + "previous_block_time": "1970-01-01T00:00:00Z", + "starting_cdp_id": "1" + }, + "auction": { + "auctions": [], + "next_auction_id": "0", + "params": { + "bid_duration": "100000000000", + "max_auction_duration": "100000000000" + } + }, + "genutil": { + "gentxs": [ + { + "type": "cosmos-sdk/StdTx", + "value": { + "msg": [ + { + "type": "cosmos-sdk/MsgCreateValidator", + "value": { + "description": { + "moniker": "validator", + "identity": "", + "website": "", + "security_contact": "", + "details": "" + }, + "commission": { + "rate": "0.100000000000000000", + "max_rate": "0.200000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw", + "validator_address": "kavavaloper15qdefkmwswysgg4qxgqpqr35k3m49pkx8yhpte", + "pubkey": "kavavalconspub1zcjduepq0ykwlzr3guncl5l8npqa5lmq8kc5y2aeqp8zc8e72t3stxujxvxsxqjqwt", + "value": { + "denom": "ukava", + "amount": "100000000" + } + } + } + ], + "fee": { + "amount": [], + "gas": "200000" + }, + "signatures": [ + { + "pub_key": { + "type": "tendermint/PubKeySecp256k1", + "value": "Az740XKIPCJtnZLmJfktTfhsEStEJE3n2iRVyJ3wko43" + }, + "signature": "llQmiLi+BQDKT2D2fOSr+eiDTXnce9xvZ7xls8EgoLIn+vz3HpyaTEoUQVes0kXbHfwJVSTz8jN6Z7HWYeEDlw==" + } + ], + "memo": "75917fc405a9af4ed44161a38456ce290a588100@10.21.104.217:26656" + } + } + ] + }, + "supply": { + "supply": [] + }, + "validatorvesting": { + "previous_block_time": "1970-01-01T00:00:00Z" + }, + "mint": { + "minter": { + "annual_provisions": "0.000000000000000000", + "inflation": "0.020000000000000000" + }, + "params": { + "blocks_per_year": "6311520", + "goal_bonded": "0.670000000000000000", + "inflation_max": "0.130000000000000000", + "inflation_min": "0.010000000000000000", + "inflation_rate_change": "0.130000000000000000", + "mint_denom": "ukava" + } + }, + "distribution": { + "base_proposer_reward": "0.010000000000000000", + "bonus_proposer_reward": "0.040000000000000000", + "community_tax": "0.000000000000000000", + "delegator_starting_infos": [], + "delegator_withdraw_infos": [], + "fee_pool": { + "community_pool": [] + }, + "outstanding_rewards": [], + "previous_proposer": "", + "validator_accumulated_commissions": [], + "validator_current_rewards": [], + "validator_historical_rewards": [], + "validator_slash_events": [], + "withdraw_addr_enabled": true + }, + "auth": { + "accounts": [ + { + "type": "cosmos-sdk/Account", + "value": { + "account_number": "0", + "address": "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw", + "coins": [ + { + "amount": "10000000000", + "denom": "btc" + }, + { + "amount": "9000000000", + "denom": "ukava" + }, + { + "amount": "90000000000", + "denom": "xrp" + } + ], + "public_key": null, + "sequence": "0" + } + }, + { + "type": "cosmos-sdk/Account", + "value": { + "account_number": "0", + "address": "kava1xy7hrjy9r0algz9w3gzm8u6mrpq97kwta747gj", + "coins": [ + { + "amount": "10000000000", + "denom": "btc" + }, + { + "amount": "9000000000", + "denom": "ukava" + }, + { + "amount": "90000000000", + "denom": "xrp" + } + ], + "public_key": null, + "sequence": "0" + } + }, + { + "type": "cosmos-sdk/Account", + "value": { + "account_number": "0", + "address": "kava12jk3szk45afmvjc3xc6kvj4e40tuy2m8ckgs03", + "coins": [ + { + "amount": "10000000000", + "denom": "btc" + }, + { + "amount": "9000000000", + "denom": "ukava" + }, + { + "amount": "90000000000", + "denom": "xrp" + } + ], + "public_key": null, + "sequence": "0" + } + } + ], + "params": { + "max_memo_characters": "256", + "sig_verify_cost_ed25519": "590", + "sig_verify_cost_secp256k1": "1000", + "tx_sig_limit": "7", + "tx_size_cost_per_byte": "10" + } + }, + "staking": { + "delegations": null, + "exported": false, + "last_total_power": "0", + "last_validator_powers": null, + "params": { + "bond_denom": "ukava", + "max_entries": 7, + "max_validators": 100, + "unbonding_time": "3600000000000" + }, + "redelegations": null, + "unbonding_delegations": null, + "validators": null + }, + "pricefeed": { + "params": { + "markets": [ + { + "active": true, + "base_asset": "xrp", + "market_id": "xrp:usd", + "oracles": [ + "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw" + ], + "quote_asset": "usd" + }, + { + "active": true, + "base_asset": "btc", + "market_id": "btc:usd", + "oracles": [], + "quote_asset": "usd" + } + ] + }, + "posted_prices": [ + { + "expiry": "2050-01-01T00:00:00Z", + "market_id": "btc:usd", + "oracle_address": "", + "price": "8700.0" + }, + { + "expiry": "2050-01-01T00:00:00Z", + "market_id": "xrp:usd", + "oracle_address": "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw", + "price": "0.25" + } + ] + }, + "gov": { + "deposit_params": { + "max_deposit_period": "300000000000", + "min_deposit": [ + { + "amount": "1000000", + "denom": "ukava" + } + ] + }, + "deposits": null, + "proposals": null, + "starting_proposal_id": "1", + "tally_params": { + "quorum": "0.334000000000000000", + "threshold": "0.500000000000000000", + "veto": "0.334000000000000000" + }, + "votes": null, + "voting_params": { + "voting_period": "300000000000" + } + } + } +} diff --git a/contrib/proposal_examples/addcollateral/addcollateral.json b/contrib/proposal_examples/addcollateral/addcollateral.json new file mode 100644 index 00000000..0da6f526 --- /dev/null +++ b/contrib/proposal_examples/addcollateral/addcollateral.json @@ -0,0 +1,50 @@ +{ + "title": "CDP Param Change", + "description": "Add collateral XRP", + "changes": [ + { + "subspace": "cdp", + "key": "CollateralParams", + "value": [ + { + "auction_size": "50000000", + "conversion_factor": "6", + "debt_limit": [ + { + "amount": "1000000000", + "denom": "usdx" + } + ], + "denom": "xrp", + "liquidation_penalty": "0.05", + "liquidation_ratio": "2.0", + "market_id": "xrp:usd", + "prefix": 0, + "stability_fee": "1.000000001547126" + }, + { + "auction_size": "10000000", + "conversion_factor": "8", + "debt_limit": [ + { + "amount": "1000000000000", + "denom": "usdx" + } + ], + "denom": "btc", + "liquidation_penalty": "0.05", + "liquidation_ratio": "1.5", + "market_id": "btc:usd", + "prefix": 1, + "stability_fee": "1.0000000007829977" + } + ] + } + ], + "deposit": [ + { + "denom": "ukava", + "amount": "1000000" + } + ] + } \ No newline at end of file diff --git a/contrib/proposal_examples/addcollateral/addcollateral2.json b/contrib/proposal_examples/addcollateral/addcollateral2.json new file mode 100644 index 00000000..b961b894 --- /dev/null +++ b/contrib/proposal_examples/addcollateral/addcollateral2.json @@ -0,0 +1,72 @@ +{ + "title": "CDP Param Change", + "description": "Add collateral XRP", + "changes": [ + { + "subspace": "cdp", + "key": "CollateralParams", + "value": [ + { + "auction_size": "50000000", + "conversion_factor": "6", + "debt_limit": [ + { + "amount": "1000000000", + "denom": "usdx" + } + ], + "denom": "xrp", + "liquidation_penalty": "0.05", + "liquidation_ratio": "2.0", + "market_id": "xrp:usd", + "prefix": 0, + "stability_fee": "1.000000001547126" + }, + { + "auction_size": "10000000", + "conversion_factor": "8", + "debt_limit": [ + { + "amount": "1000000000000", + "denom": "usdx" + } + ], + "denom": "btc", + "liquidation_penalty": "0.05", + "liquidation_ratio": "1.5", + "market_id": "btc:usd", + "prefix": 1, + "stability_fee": "1.0000000007829977" + } + ] + }, + { + "subspace": "cdp", + "key": "DebtParams", + "value": [ + { + "conversion_factor": "6", + "debt_floor": "10000000", + "denom": "usdx", + "reference_asset": "usd" + } + ] + }, + { + "subspace": "cdp", + "key": "GlobalDebtLimit", + "value": [ + { + "amount": "3000000000000", + "denom": "usdx" + } + ] + } + ], + "deposit": [ + { + "denom": "ukava", + "amount": "1000000" + } + ] +} \ No newline at end of file diff --git a/contrib/proposal_examples/addcollateral/genesis_addcollateral.json b/contrib/proposal_examples/addcollateral/genesis_addcollateral.json new file mode 100644 index 00000000..c798f8c9 --- /dev/null +++ b/contrib/proposal_examples/addcollateral/genesis_addcollateral.json @@ -0,0 +1,344 @@ +{ + "genesis_time": "2020-01-22T22:39:50.083273Z", + "chain_id": "testing", + "consensus_params": { + "block": { + "max_bytes": "200000", + "max_gas": "2000000", + "time_iota_ms": "1000" + }, + "evidence": { + "max_age": "1000000" + }, + "validator": { + "pub_key_types": [ + "ed25519" + ] + } + }, + "app_hash": "", + "app_state": { + "slashing": { + "missed_blocks": {}, + "params": { + "downtime_jail_duration": "600000000000", + "max_evidence_age": "3600000000000", + "min_signed_per_window": "0.010000000000000000", + "signed_blocks_window": "1000", + "slash_fraction_double_sign": "0.050000000000000000", + "slash_fraction_downtime": "0.000100000000000000" + }, + "signing_infos": {} + }, + "params": null, + "bank": { + "send_enabled": true + }, + "crisis": { + "constant_fee": { + "amount": "1333000000", + "denom": "ukava" + } + }, + "cdp": { + "cdps": [], + "debt_denom": "debt", + "deposits": [], + "gov_denom": "ukava", + "params": { + "circuit_breaker": false, + "collateral_params": [ + { + "auction_size": "10000000", + "conversion_factor": "8", + "debt_limit": [ + { + "amount": "1000000000000", + "denom": "usdx" + } + ], + "denom": "btc", + "liquidation_penalty": "0.05", + "liquidation_ratio": "1.5", + "market_id": "btc:usd", + "prefix": 1, + "stability_fee": "1.0000000007829977" + } + ], + "debt_auction_threshold": "1000000000", + "debt_params": [ + { + "conversion_factor": "6", + "debt_floor": "10000000", + "debt_limit": [ + { + "amount": "2000000000000", + "denom": "usdx" + } + ], + "denom": "usdx", + "reference_asset": "usd" + } + ], + "global_debt_limit": [ + { + "amount": "2000000000000", + "denom": "usdx" + } + ], + "surplus_auction_threshold": "1000000000" + }, + "previous_block_time": "1970-01-01T00:00:00Z", + "starting_cdp_id": "1" + }, + "auction": { + "auctions": [], + "next_auction_id": "0", + "params": { + "bid_duration": "600000000000", + "max_auction_duration": "172800000000000" + } + }, + "genutil": { + "gentxs": [ + { + "type": "cosmos-sdk/StdTx", + "value": { + "msg": [ + { + "type": "cosmos-sdk/MsgCreateValidator", + "value": { + "description": { + "moniker": "validator", + "identity": "", + "website": "", + "security_contact": "", + "details": "" + }, + "commission": { + "rate": "0.100000000000000000", + "max_rate": "0.200000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw", + "validator_address": "kavavaloper15qdefkmwswysgg4qxgqpqr35k3m49pkx8yhpte", + "pubkey": "kavavalconspub1zcjduepq0ykwlzr3guncl5l8npqa5lmq8kc5y2aeqp8zc8e72t3stxujxvxsxqjqwt", + "value": { + "denom": "ukava", + "amount": "100000000" + } + } + } + ], + "fee": { + "amount": [], + "gas": "200000" + }, + "signatures": [ + { + "pub_key": { + "type": "tendermint/PubKeySecp256k1", + "value": "Az740XKIPCJtnZLmJfktTfhsEStEJE3n2iRVyJ3wko43" + }, + "signature": "llQmiLi+BQDKT2D2fOSr+eiDTXnce9xvZ7xls8EgoLIn+vz3HpyaTEoUQVes0kXbHfwJVSTz8jN6Z7HWYeEDlw==" + } + ], + "memo": "75917fc405a9af4ed44161a38456ce290a588100@10.21.104.217:26656" + } + } + ] + }, + "supply": { + "supply": [] + }, + "validatorvesting": { + "previous_block_time": "1970-01-01T00:00:00Z" + }, + "mint": { + "minter": { + "annual_provisions": "0.000000000000000000", + "inflation": "0.020000000000000000" + }, + "params": { + "blocks_per_year": "6311520", + "goal_bonded": "0.670000000000000000", + "inflation_max": "0.130000000000000000", + "inflation_min": "0.010000000000000000", + "inflation_rate_change": "0.130000000000000000", + "mint_denom": "ukava" + } + }, + "distribution": { + "base_proposer_reward": "0.010000000000000000", + "bonus_proposer_reward": "0.040000000000000000", + "community_tax": "0.000000000000000000", + "delegator_starting_infos": [], + "delegator_withdraw_infos": [], + "fee_pool": { + "community_pool": [] + }, + "outstanding_rewards": [], + "previous_proposer": "", + "validator_accumulated_commissions": [], + "validator_current_rewards": [], + "validator_historical_rewards": [], + "validator_slash_events": [], + "withdraw_addr_enabled": true + }, + "auth": { + "accounts": [ + { + "type": "cosmos-sdk/Account", + "value": { + "account_number": "0", + "address": "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw", + "coins": [ + { + "amount": "10000000000", + "denom": "btc" + }, + { + "amount": "9000000000", + "denom": "ukava" + }, + { + "amount": "90000000000", + "denom": "xrp" + } + ], + "public_key": null, + "sequence": "0" + } + }, + { + "type": "cosmos-sdk/Account", + "value": { + "account_number": "0", + "address": "kava1xy7hrjy9r0algz9w3gzm8u6mrpq97kwta747gj", + "coins": [ + { + "amount": "10000000000", + "denom": "btc" + }, + { + "amount": "9000000000", + "denom": "ukava" + }, + { + "amount": "90000000000", + "denom": "xrp" + } + ], + "public_key": null, + "sequence": "0" + } + }, + { + "type": "cosmos-sdk/Account", + "value": { + "account_number": "0", + "address": "kava12jk3szk45afmvjc3xc6kvj4e40tuy2m8ckgs03", + "coins": [ + { + "amount": "10000000000", + "denom": "btc" + }, + { + "amount": "9000000000", + "denom": "ukava" + }, + { + "amount": "90000000000", + "denom": "xrp" + } + ], + "public_key": null, + "sequence": "0" + } + } + ], + "params": { + "max_memo_characters": "256", + "sig_verify_cost_ed25519": "590", + "sig_verify_cost_secp256k1": "1000", + "tx_sig_limit": "7", + "tx_size_cost_per_byte": "10" + } + }, + "staking": { + "delegations": null, + "exported": false, + "last_total_power": "0", + "last_validator_powers": null, + "params": { + "bond_denom": "ukava", + "max_entries": 7, + "max_validators": 100, + "unbonding_time": "3600000000000" + }, + "redelegations": null, + "unbonding_delegations": null, + "validators": null + }, + "pricefeed": { + "params": { + "markets": [ + { + "active": true, + "base_asset": "xrp", + "market_id": "xrp:usd", + "oracles": [ + "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw" + ], + "quote_asset": "usd" + }, + { + "active": true, + "base_asset": "btc", + "market_id": "btc:usd", + "oracles": [], + "quote_asset": "usd" + } + ] + }, + "posted_prices": [ + { + "expiry": "2050-01-01T00:00:00Z", + "market_id": "btc:usd", + "oracle_address": "", + "price": "8700.0" + }, + { + "expiry": "2050-01-01T00:00:00Z", + "market_id": "xrp:usd", + "oracle_address": "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw", + "price": "0.25" + } + ] + }, + "gov": { + "deposit_params": { + "max_deposit_period": "300000000000", + "min_deposit": [ + { + "amount": "1000000", + "denom": "ukava" + } + ] + }, + "deposits": null, + "proposals": null, + "starting_proposal_id": "1", + "tally_params": { + "quorum": "0.334000000000000000", + "threshold": "0.500000000000000000", + "veto": "0.334000000000000000" + }, + "votes": null, + "voting_params": { + "voting_period": "300000000000" + } + } + } +} diff --git a/contrib/proposal_examples/addmarket/addmarket.json b/contrib/proposal_examples/addmarket/addmarket.json new file mode 100644 index 00000000..7f92c432 --- /dev/null +++ b/contrib/proposal_examples/addmarket/addmarket.json @@ -0,0 +1,45 @@ +{ + "title": "Pricefeed Param Change", + "description": "Add market bnb-usd", + "changes": [ + { + "subspace": "pricefeed", + "key": "Markets", + "value": [ + { + "active": true, + "base_asset": "btc", + "market_id": "btc-usd", + "oracles": [ + "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw" + ], + "quote_asset": "usd" + }, + { + "active": true, + "base_asset": "xrp", + "market_id": "xrp-usd", + "oracles": [ + "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw" + ], + "quote_asset": "usd" + }, + { + "active": true, + "base_asset": "bnb", + "market_id": "bnb-usd", + "oracles": [ + "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw" + ], + "quote_asset": "usd" + } + ] + } + ], + "deposit": [ + { + "denom": "ukava", + "amount": "1000000" + } + ] +} \ No newline at end of file diff --git a/contrib/proposal_examples/addmarket/genesis_addmarket.json b/contrib/proposal_examples/addmarket/genesis_addmarket.json new file mode 100644 index 00000000..c95298ae --- /dev/null +++ b/contrib/proposal_examples/addmarket/genesis_addmarket.json @@ -0,0 +1,359 @@ +{ + "genesis_time": "2020-01-22T22:39:50.083273Z", + "chain_id": "testing", + "consensus_params": { + "block": { + "max_bytes": "200000", + "max_gas": "2000000", + "time_iota_ms": "1000" + }, + "evidence": { + "max_age": "1000000" + }, + "validator": { + "pub_key_types": [ + "ed25519" + ] + } + }, + "app_hash": "", + "app_state": { + "slashing": { + "missed_blocks": {}, + "params": { + "downtime_jail_duration": "600000000000", + "max_evidence_age": "3600000000000", + "min_signed_per_window": "0.010000000000000000", + "signed_blocks_window": "1000", + "slash_fraction_double_sign": "0.050000000000000000", + "slash_fraction_downtime": "0.000100000000000000" + }, + "signing_infos": {} + }, + "params": null, + "bank": { + "send_enabled": true + }, + "crisis": { + "constant_fee": { + "amount": "1333000000", + "denom": "ukava" + } + }, + "cdp": { + "cdps": [], + "debt_denom": "debt", + "deposits": [], + "gov_denom": "ukava", + "params": { + "circuit_breaker": false, + "collateral_params": [ + { + "auction_size": "5000000000", + "conversion_factor": "6", + "debt_limit": [ + { + "amount": "1000000000000", + "denom": "usdx" + } + ], + "denom": "xrp", + "liquidation_penalty": "0.05", + "liquidation_ratio": "2.0", + "market_id": "xrp:usd", + "prefix": 0, + "stability_fee": "1.000000001547126" + }, + { + "auction_size": "10000000", + "conversion_factor": "8", + "debt_limit": [ + { + "amount": "1000000000000", + "denom": "usdx" + } + ], + "denom": "btc", + "liquidation_penalty": "0.05", + "liquidation_ratio": "1.5", + "market_id": "btc:usd", + "prefix": 1, + "stability_fee": "1.0000000007829977" + } + ], + "debt_auction_threshold": "1000000000", + "debt_params": [ + { + "conversion_factor": "6", + "debt_floor": "10000000", + "debt_limit": [ + { + "amount": "2000000000000", + "denom": "usdx" + } + ], + "denom": "usdx", + "reference_asset": "usd" + } + ], + "global_debt_limit": [ + { + "amount": "2000000000000", + "denom": "usdx" + } + ], + "surplus_auction_threshold": "1000000000" + }, + "previous_block_time": "1970-01-01T00:00:00Z", + "starting_cdp_id": "1" + }, + "auction": { + "auctions": [], + "next_auction_id": "0", + "params": { + "bid_duration": "600000000000", + "max_auction_duration": "172800000000000" + } + }, + "genutil": { + "gentxs": [ + { + "type": "cosmos-sdk/StdTx", + "value": { + "msg": [ + { + "type": "cosmos-sdk/MsgCreateValidator", + "value": { + "description": { + "moniker": "validator", + "identity": "", + "website": "", + "security_contact": "", + "details": "" + }, + "commission": { + "rate": "0.100000000000000000", + "max_rate": "0.200000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw", + "validator_address": "kavavaloper15qdefkmwswysgg4qxgqpqr35k3m49pkx8yhpte", + "pubkey": "kavavalconspub1zcjduepq0ykwlzr3guncl5l8npqa5lmq8kc5y2aeqp8zc8e72t3stxujxvxsxqjqwt", + "value": { + "denom": "ukava", + "amount": "100000000" + } + } + } + ], + "fee": { + "amount": [], + "gas": "200000" + }, + "signatures": [ + { + "pub_key": { + "type": "tendermint/PubKeySecp256k1", + "value": "Az740XKIPCJtnZLmJfktTfhsEStEJE3n2iRVyJ3wko43" + }, + "signature": "llQmiLi+BQDKT2D2fOSr+eiDTXnce9xvZ7xls8EgoLIn+vz3HpyaTEoUQVes0kXbHfwJVSTz8jN6Z7HWYeEDlw==" + } + ], + "memo": "75917fc405a9af4ed44161a38456ce290a588100@10.21.104.217:26656" + } + } + ] + }, + "supply": { + "supply": [] + }, + "validatorvesting": { + "previous_block_time": "1970-01-01T00:00:00Z" + }, + "mint": { + "minter": { + "annual_provisions": "0.000000000000000000", + "inflation": "0.020000000000000000" + }, + "params": { + "blocks_per_year": "6311520", + "goal_bonded": "0.670000000000000000", + "inflation_max": "0.130000000000000000", + "inflation_min": "0.010000000000000000", + "inflation_rate_change": "0.130000000000000000", + "mint_denom": "ukava" + } + }, + "distribution": { + "base_proposer_reward": "0.010000000000000000", + "bonus_proposer_reward": "0.040000000000000000", + "community_tax": "0.000000000000000000", + "delegator_starting_infos": [], + "delegator_withdraw_infos": [], + "fee_pool": { + "community_pool": [] + }, + "outstanding_rewards": [], + "previous_proposer": "", + "validator_accumulated_commissions": [], + "validator_current_rewards": [], + "validator_historical_rewards": [], + "validator_slash_events": [], + "withdraw_addr_enabled": true + }, + "auth": { + "accounts": [ + { + "type": "cosmos-sdk/Account", + "value": { + "account_number": "0", + "address": "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw", + "coins": [ + { + "amount": "10000000000", + "denom": "btc" + }, + { + "amount": "9000000000", + "denom": "ukava" + }, + { + "amount": "100000000", + "denom": "xrp" + } + ], + "public_key": null, + "sequence": "0" + } + }, + { + "type": "cosmos-sdk/Account", + "value": { + "account_number": "0", + "address": "kava1xy7hrjy9r0algz9w3gzm8u6mrpq97kwta747gj", + "coins": [ + { + "amount": "10000000000", + "denom": "btc" + }, + { + "amount": "9000000000", + "denom": "ukava" + }, + { + "amount": "100000000", + "denom": "xrp" + } + ], + "public_key": null, + "sequence": "0" + } + }, + { + "type": "cosmos-sdk/Account", + "value": { + "account_number": "0", + "address": "kava12jk3szk45afmvjc3xc6kvj4e40tuy2m8ckgs03", + "coins": [ + { + "amount": "10000000000", + "denom": "btc" + }, + { + "amount": "9000000000", + "denom": "ukava" + }, + { + "amount": "100000000", + "denom": "xrp" + } + ], + "public_key": null, + "sequence": "0" + } + } + ], + "params": { + "max_memo_characters": "256", + "sig_verify_cost_ed25519": "590", + "sig_verify_cost_secp256k1": "1000", + "tx_sig_limit": "7", + "tx_size_cost_per_byte": "10" + } + }, + "staking": { + "delegations": null, + "exported": false, + "last_total_power": "0", + "last_validator_powers": null, + "params": { + "bond_denom": "ukava", + "max_entries": 7, + "max_validators": 100, + "unbonding_time": "3600000000000" + }, + "redelegations": null, + "unbonding_delegations": null, + "validators": null + }, + "pricefeed": { + "params": { + "markets": [ + { + "active": true, + "base_asset": "xrp", + "market_id": "xrp:usd", + "oracles": [], + "quote_asset": "usd" + }, + { + "active": true, + "base_asset": "btc", + "market_id": "btc:usd", + "oracles": [], + "quote_asset": "usd" + } + ] + }, + "posted_prices": [ + { + "expiry": "5000-01-01T00:00:00Z", + "market_id": "xrp:usd", + "oracle_address": "", + "price": "0.25" + }, + { + "expiry": "5000-01-01T00:00:00Z", + "market_id": "btc:usd", + "oracle_address": "", + "price": "8700.0" + } + ] + }, + "gov": { + "deposit_params": { + "max_deposit_period": "300000000000", + "min_deposit": [ + { + "amount": "1000000", + "denom": "ukava" + } + ] + }, + "deposits": null, + "proposals": null, + "starting_proposal_id": "1", + "tally_params": { + "quorum": "0.334000000000000000", + "threshold": "0.500000000000000000", + "veto": "0.334000000000000000" + }, + "votes": null, + "voting_params": { + "voting_period": "300000000000" + } + } + } + } + \ No newline at end of file diff --git a/contrib/proposal_examples/updatebidduration/updatebidduration.json b/contrib/proposal_examples/updatebidduration/updatebidduration.json new file mode 100644 index 00000000..ef0ce942 --- /dev/null +++ b/contrib/proposal_examples/updatebidduration/updatebidduration.json @@ -0,0 +1,17 @@ +{ + "title": "Auction Param Change", + "description": "Update auction bid duration", + "changes": [ + { + "subspace": "auction", + "key": "BidDuration", + "value": "912345000000" + } + ], + "deposit": [ + { + "denom": "ukava", + "amount": "1000000" + } + ] + } \ No newline at end of file diff --git a/contrib/proposal_examples/updatedebtlimit/genesis_updatedebtlimit.json b/contrib/proposal_examples/updatedebtlimit/genesis_updatedebtlimit.json new file mode 100644 index 00000000..0d334dee --- /dev/null +++ b/contrib/proposal_examples/updatedebtlimit/genesis_updatedebtlimit.json @@ -0,0 +1,361 @@ +{ + "genesis_time": "2020-01-22T22:39:50.083273Z", + "chain_id": "testing", + "consensus_params": { + "block": { + "max_bytes": "200000", + "max_gas": "2000000", + "time_iota_ms": "1000" + }, + "evidence": { + "max_age": "1000000" + }, + "validator": { + "pub_key_types": [ + "ed25519" + ] + } + }, + "app_hash": "", + "app_state": { + "slashing": { + "missed_blocks": {}, + "params": { + "downtime_jail_duration": "600000000000", + "max_evidence_age": "3600000000000", + "min_signed_per_window": "0.010000000000000000", + "signed_blocks_window": "1000", + "slash_fraction_double_sign": "0.050000000000000000", + "slash_fraction_downtime": "0.000100000000000000" + }, + "signing_infos": {} + }, + "params": null, + "bank": { + "send_enabled": true + }, + "crisis": { + "constant_fee": { + "amount": "1333000000", + "denom": "ukava" + } + }, + "cdp": { + "cdps": [], + "debt_denom": "debt", + "deposits": [], + "gov_denom": "ukava", + "params": { + "circuit_breaker": false, + "collateral_params": [ + { + "auction_size": "5000000000", + "conversion_factor": "6", + "debt_limit": [ + { + "amount": "1000000000000", + "denom": "usdx" + } + ], + "denom": "xrp", + "liquidation_penalty": "0.05", + "liquidation_ratio": "2.0", + "market_id": "xrp:usd", + "prefix": 0, + "stability_fee": "1.000000001547126" + }, + { + "auction_size": "10000000", + "conversion_factor": "8", + "debt_limit": [ + { + "amount": "1000000000000", + "denom": "usdx" + } + ], + "denom": "btc", + "liquidation_penalty": "0.05", + "liquidation_ratio": "1.5", + "market_id": "btc:usd", + "prefix": 1, + "stability_fee": "1.0000000007829977" + } + ], + "debt_auction_threshold": "1000000000", + "debt_params": [ + { + "conversion_factor": "6", + "debt_floor": "10000000", + "debt_limit": [ + { + "amount": "2000000000000", + "denom": "usdx" + } + ], + "denom": "usdx", + "reference_asset": "usd" + } + ], + "global_debt_limit": [ + { + "amount": "2000000000000", + "denom": "usdx" + } + ], + "surplus_auction_threshold": "1000000000" + }, + "previous_block_time": "1970-01-01T00:00:00Z", + "starting_cdp_id": "1" + }, + "auction": { + "auctions": [], + "next_auction_id": "0", + "params": { + "bid_duration": "600000000000", + "max_auction_duration": "172800000000000" + } + }, + "genutil": { + "gentxs": [ + { + "type": "cosmos-sdk/StdTx", + "value": { + "msg": [ + { + "type": "cosmos-sdk/MsgCreateValidator", + "value": { + "description": { + "moniker": "validator", + "identity": "", + "website": "", + "security_contact": "", + "details": "" + }, + "commission": { + "rate": "0.100000000000000000", + "max_rate": "0.200000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw", + "validator_address": "kavavaloper15qdefkmwswysgg4qxgqpqr35k3m49pkx8yhpte", + "pubkey": "kavavalconspub1zcjduepq0ykwlzr3guncl5l8npqa5lmq8kc5y2aeqp8zc8e72t3stxujxvxsxqjqwt", + "value": { + "denom": "ukava", + "amount": "100000000" + } + } + } + ], + "fee": { + "amount": [], + "gas": "200000" + }, + "signatures": [ + { + "pub_key": { + "type": "tendermint/PubKeySecp256k1", + "value": "Az740XKIPCJtnZLmJfktTfhsEStEJE3n2iRVyJ3wko43" + }, + "signature": "llQmiLi+BQDKT2D2fOSr+eiDTXnce9xvZ7xls8EgoLIn+vz3HpyaTEoUQVes0kXbHfwJVSTz8jN6Z7HWYeEDlw==" + } + ], + "memo": "75917fc405a9af4ed44161a38456ce290a588100@10.21.104.217:26656" + } + } + ] + }, + "supply": { + "supply": [] + }, + "validatorvesting": { + "previous_block_time": "1970-01-01T00:00:00Z" + }, + "mint": { + "minter": { + "annual_provisions": "0.000000000000000000", + "inflation": "0.020000000000000000" + }, + "params": { + "blocks_per_year": "6311520", + "goal_bonded": "0.670000000000000000", + "inflation_max": "0.130000000000000000", + "inflation_min": "0.010000000000000000", + "inflation_rate_change": "0.130000000000000000", + "mint_denom": "ukava" + } + }, + "distribution": { + "base_proposer_reward": "0.010000000000000000", + "bonus_proposer_reward": "0.040000000000000000", + "community_tax": "0.000000000000000000", + "delegator_starting_infos": [], + "delegator_withdraw_infos": [], + "fee_pool": { + "community_pool": [] + }, + "outstanding_rewards": [], + "previous_proposer": "", + "validator_accumulated_commissions": [], + "validator_current_rewards": [], + "validator_historical_rewards": [], + "validator_slash_events": [], + "withdraw_addr_enabled": true + }, + "auth": { + "accounts": [ + { + "type": "cosmos-sdk/Account", + "value": { + "account_number": "0", + "address": "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw", + "coins": [ + { + "amount": "10000000000", + "denom": "btc" + }, + { + "amount": "9000000000000", + "denom": "ukava" + }, + { + "amount": "9000000000000", + "denom": "xrp" + } + ], + "public_key": null, + "sequence": "0" + } + }, + { + "type": "cosmos-sdk/Account", + "value": { + "account_number": "0", + "address": "kava1xy7hrjy9r0algz9w3gzm8u6mrpq97kwta747gj", + "coins": [ + { + "amount": "10000000000", + "denom": "btc" + }, + { + "amount": "9000000000000", + "denom": "ukava" + }, + { + "amount": "9000000000000", + "denom": "xrp" + } + ], + "public_key": null, + "sequence": "0" + } + }, + { + "type": "cosmos-sdk/Account", + "value": { + "account_number": "0", + "address": "kava12jk3szk45afmvjc3xc6kvj4e40tuy2m8ckgs03", + "coins": [ + { + "amount": "10000000000", + "denom": "btc" + }, + { + "amount": "9000000000000", + "denom": "ukava" + }, + { + "amount": "9000000000000", + "denom": "xrp" + } + ], + "public_key": null, + "sequence": "0" + } + } + ], + "params": { + "max_memo_characters": "256", + "sig_verify_cost_ed25519": "590", + "sig_verify_cost_secp256k1": "1000", + "tx_sig_limit": "7", + "tx_size_cost_per_byte": "10" + } + }, + "staking": { + "delegations": null, + "exported": false, + "last_total_power": "0", + "last_validator_powers": null, + "params": { + "bond_denom": "ukava", + "max_entries": 7, + "max_validators": 100, + "unbonding_time": "3600000000000" + }, + "redelegations": null, + "unbonding_delegations": null, + "validators": null + }, + "pricefeed": { + "params": { + "markets": [ + { + "active": true, + "base_asset": "xrp", + "market_id": "xrp:usd", + "oracles": [ + "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw" + ], + "quote_asset": "usd" + }, + { + "active": true, + "base_asset": "btc", + "market_id": "btc:usd", + "oracles": [], + "quote_asset": "usd" + } + ] + }, + "posted_prices": [ + { + "expiry": "5000-01-01T00:00:00Z", + "market_id": "xrp:usd", + "oracle_address": "", + "price": "0.25" + }, + { + "expiry": "5000-01-01T00:00:00Z", + "market_id": "btc:usd", + "oracle_address": "", + "price": "8700.0" + } + ] + }, + "gov": { + "deposit_params": { + "max_deposit_period": "300000000000", + "min_deposit": [ + { + "amount": "1000000", + "denom": "ukava" + } + ] + }, + "deposits": null, + "proposals": null, + "starting_proposal_id": "1", + "tally_params": { + "quorum": "0.334000000000000000", + "threshold": "0.500000000000000000", + "veto": "0.334000000000000000" + }, + "votes": null, + "voting_params": { + "voting_period": "300000000000" + } + } + } + } + \ No newline at end of file diff --git a/contrib/proposal_examples/updatedebtlimit/updatedebtlimit.json b/contrib/proposal_examples/updatedebtlimit/updatedebtlimit.json new file mode 100644 index 00000000..53318661 --- /dev/null +++ b/contrib/proposal_examples/updatedebtlimit/updatedebtlimit.json @@ -0,0 +1,34 @@ +{ + "title": "CDP Param Change", + "description": "Update usdx debt limit for collateral type XRP", + "changes": [ + { + "subspace": "cdp", + "key": "CollateralParams", + "value": [ + { + "auction_size": "10000000", + "conversion_factor": "6", + "debt_limit": [ + { + "amount": "750000000", + "denom": "usdx" + } + ], + "denom": "xrp", + "liquidation_penalty": "0.05", + "liquidation_ratio": "2.0", + "market_id": "xrp:usd", + "prefix": 1, + "stability_fee": "1.0000000007829977" + } + ] + } + ], + "deposit": [ + { + "denom": "ukava", + "amount": "1000000" + } + ] +} \ No newline at end of file diff --git a/contrib/proposal_examples/updatemaxauctionduration/updatemaxauctionduration.json b/contrib/proposal_examples/updatemaxauctionduration/updatemaxauctionduration.json new file mode 100644 index 00000000..1521b26c --- /dev/null +++ b/contrib/proposal_examples/updatemaxauctionduration/updatemaxauctionduration.json @@ -0,0 +1,17 @@ +{ + "title": "Auction Param Change", + "description": "Update max auction duration", + "changes": [ + { + "subspace": "auction", + "key": "MaxAuctionDuration", + "value": "987654321000" + } + ], + "deposit": [ + { + "denom": "ukava", + "amount": "1000000" + } + ] + } \ No newline at end of file