mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +00:00
4a8b5696cb
* initial sketch * add module migrations * add migrations for all accout types * test account migration * add tendermint migration and migrate cmd * remove need for errors pkg dependency * add bech32 decoding fork * add suggested params and cmd to write them * add basic upgrade instructions * fix tests * address some migration todos * tidy contrib folder * finalize params values * align cdp init genesis with other modules * add tendermint and distribution test add custom distribution migration to patch bug * add staking migration test * add slashing, evidence tests, refactor auth tests * add full migration test * remove go-amino dependency from go.mod also tidy up unused indirect dependencies * address remaining TODOs * remove commented out code from legacy types * add spot/liquidation markets ids to kava-3 params * Apply suggestions from code review Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com> Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * address code review suggestions * add validate genesis to migrate test * refactor add params func * remove commented out code from old types * fix add params * add deputy address * add tests using exported kava-2 state * incorporate new cdp params from master * update params from review Co-authored-by: Kevin Davis <karzak@users.noreply.github.com> * add deputy account * add committee permissions for new params Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com> Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com> Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
123 lines
3.4 KiB
JSON
123 lines
3.4 KiB
JSON
{
|
|
"type": "kava/CommitteeChangeProposal",
|
|
"value": {
|
|
"title": "Update Committee 0",
|
|
"description": "This is a proposal that updates committee with id 0",
|
|
"new_committee": {
|
|
"id": "0",
|
|
"description": "This committee is for adjusting parameters of the cdp system.",
|
|
"members": [
|
|
"kava1vysxvcttv5sxzerywfjhxucazsxj0",
|
|
"kava1v9hx7argv4ezqenpddjjqctyv3ex2umndpth74"
|
|
],
|
|
"permissions": [
|
|
{
|
|
"type": "kava/SubParamChangePermission",
|
|
"value": {
|
|
"allowed_params": [
|
|
{
|
|
"subspace": "cdp",
|
|
"key": "GlobalDebtLimit"
|
|
},
|
|
{
|
|
"subspace": "cdp",
|
|
"key": "SurplusThreshold"
|
|
},
|
|
{
|
|
"subspace": "cdp",
|
|
"key": "DebtThreshold"
|
|
},
|
|
{
|
|
"subspace": "cdp",
|
|
"key": "DistributionFrequency"
|
|
},
|
|
{
|
|
"subspace": "cdp",
|
|
"key": "CircuitBreaker"
|
|
},
|
|
{
|
|
"subspace": "cdp",
|
|
"key": "CollateralParams"
|
|
},
|
|
{
|
|
"subspace": "cdp",
|
|
"key": "DebtParam"
|
|
},
|
|
{
|
|
"subspace": "auction",
|
|
"key": "BidDuration"
|
|
},
|
|
{
|
|
"subspace": "auction",
|
|
"key": "IncrementSurplus"
|
|
},
|
|
{
|
|
"subspace": "auction",
|
|
"key": "IncrementDebt"
|
|
},
|
|
{
|
|
"subspace": "auction",
|
|
"key": "IncrementCollateral"
|
|
},
|
|
{
|
|
"subspace": "bep3",
|
|
"key": "SupportedAssets"
|
|
},
|
|
{
|
|
"subspace": "pricefeed",
|
|
"key": "Markets"
|
|
},
|
|
{
|
|
"subspace": "incentive",
|
|
"key": "Active"
|
|
},
|
|
{
|
|
"subspace": "kavadist",
|
|
"key": "Active"
|
|
}
|
|
],
|
|
"allowed_collateral_params": [
|
|
{
|
|
"denom": "bnb",
|
|
"liquidation_ratio": false,
|
|
"debt_limit": true,
|
|
"stability_fee": true,
|
|
"auction_size": true,
|
|
"liquidation_penalty": false,
|
|
"prefix": false,
|
|
"market_id": false,
|
|
"conversion_factor": false
|
|
}
|
|
],
|
|
"allowed_debt_param": {
|
|
"denom": false,
|
|
"reference_asset": false,
|
|
"conversion_factor": false,
|
|
"debt_floor": false,
|
|
"savings_rate": true
|
|
},
|
|
"allowed_asset_params": [
|
|
{
|
|
"denom": "bnb",
|
|
"coin_id": false,
|
|
"limit": true,
|
|
"active": true
|
|
}
|
|
],
|
|
"allowed_markets": [
|
|
{
|
|
"market_id": "bnb:usd",
|
|
"base_asset": false,
|
|
"quote_asset": false,
|
|
"oracles": false,
|
|
"active": true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"vote_threshold": "0.750000000000000000",
|
|
"proposal_duration": "604800000000000"
|
|
}
|
|
}
|
|
} |