Skip to content

Commit

Permalink
Use placeholder json + update sample pregenesis
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyding committed Dec 13, 2024
1 parent 462dbfc commit 147ce71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion protocol/scripts/genesis/sample_pregenesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -3850,13 +3850,15 @@
"pair": "DYDX-USD"
},
{
"exchange_config_json": "{\"placeholder\":\"placeholder\"}",
"exponent": -9,
"id": 300,
"min_exchanges": 1,
"min_price_change_ppm": 800,
"pair": "EIGEN-USD"
},
{
"exchange_config_json": "{\"placeholder\":\"placeholder\"}",
"exponent": -12,
"id": 301,
"min_exchanges": 1,
Expand Down Expand Up @@ -4180,7 +4182,7 @@
]
}
},
"app_version": "7.0.0-dev0-149-g12cfb908b",
"app_version": "7.0.5-4-g462dbfcc7",
"chain_id": "dydx-sample-1",
"consensus": {
"params": {
Expand Down
2 changes: 2 additions & 0 deletions protocol/testing/genesis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1865,6 +1865,7 @@ function edit_genesis() {
dasel put -t int -f "$GENESIS" '.app_state.prices.market_params.[35].exponent' -v '-9'
dasel put -t int -f "$GENESIS" '.app_state.prices.market_params.[35].min_price_change_ppm' -v '800' # 0.080%
dasel put -t int -f "$GENESIS" '.app_state.prices.market_params.[35].min_exchanges' -v '1'
dasel put -t string -f "$GENESIS" '.app_state.prices.market_params.[35].exchange_config_json' -v '{"placeholder":"placeholder"}'
dasel put -t json -f "$GENESIS" '.app_state.prices.market_prices.[]' -v "{}"
dasel put -t int -f "$GENESIS" '.app_state.prices.market_prices.[35].id' -v '300'
dasel put -t int -f "$GENESIS" '.app_state.prices.market_prices.[35].exponent' -v '-9'
Expand All @@ -1877,6 +1878,7 @@ function edit_genesis() {
dasel put -t int -f "$GENESIS" '.app_state.prices.market_params.[36].exponent' -v '-12'
dasel put -t int -f "$GENESIS" '.app_state.prices.market_params.[36].min_price_change_ppm' -v '800' # 0.080%
dasel put -t int -f "$GENESIS" '.app_state.prices.market_params.[36].min_exchanges' -v '1'
dasel put -t string -f "$GENESIS" '.app_state.prices.market_params.[36].exchange_config_json' -v '{"placeholder":"placeholder"}'
dasel put -t json -f "$GENESIS" '.app_state.prices.market_prices.[]' -v "{}"
dasel put -t int -f "$GENESIS" '.app_state.prices.market_prices.[36].id' -v '301'
dasel put -t int -f "$GENESIS" '.app_state.prices.market_prices.[36].exponent' -v '-12'
Expand Down

0 comments on commit 147ce71

Please sign in to comment.