Skip to content

Commit a53b7c7

Browse files
chore: Add EIGEN,BOME as isolatd market in default test genesis (backport #2651) (#2658)
Co-authored-by: Teddy Ding <teddy@dydx.exchange>
1 parent 34c8f71 commit a53b7c7

File tree

7 files changed

+282
-66
lines changed

7 files changed

+282
-66
lines changed

protocol/scripts/genesis/prod_pregenesis.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,10 @@ create_pregenesis_file() {
168168
echo "Copying exchange config jsons to $TMP_EXCHANGE_CONFIG_JSON_DIR"
169169
cp -R ./daemons/pricefeed/client/constants/testdata $TMP_EXCHANGE_CONFIG_JSON_DIR
170170

171+
echo "Running edit_genesis..."
171172
edit_genesis "$VAL_CONFIG_DIR" "" "" "" "" "$TMP_EXCHANGE_CONFIG_JSON_DIR" "./testing/delaymsg_config" "STATUS_INITIALIZING" ""
173+
174+
echo "Oerwriting genesis params for production..."
172175
overwrite_genesis_production
173176
}
174177

protocol/scripts/genesis/sample_pregenesis.json

Lines changed: 177 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,26 @@
475475
"status": "STATUS_INITIALIZING",
476476
"step_base_quantums": 1000000,
477477
"subticks_per_tick": 1000000
478+
},
479+
{
480+
"id": 300,
481+
"perpetual_clob_metadata": {
482+
"perpetual_id": 300
483+
},
484+
"quantum_conversion_exponent": -9,
485+
"status": "STATUS_INITIALIZING",
486+
"step_base_quantums": 1000000,
487+
"subticks_per_tick": 1000000
488+
},
489+
{
490+
"id": 301,
491+
"perpetual_clob_metadata": {
492+
"perpetual_id": 301
493+
},
494+
"quantum_conversion_exponent": -9,
495+
"status": "STATUS_INITIALIZING",
496+
"step_base_quantums": 1000000,
497+
"subticks_per_tick": 1000000
478498
}
479499
],
480500
"equity_tier_limit_config": {
@@ -1397,6 +1417,70 @@
13971417
"min_provider_count": 3
13981418
}
13991419
},
1420+
"BOME/USD": {
1421+
"provider_configs": [
1422+
{
1423+
"invert": false,
1424+
"metadata_JSON": "",
1425+
"name": "kucoin_ws",
1426+
"normalize_by_pair": {
1427+
"Base": "USDT",
1428+
"Quote": "USD"
1429+
},
1430+
"off_chain_ticker": "BOME-USDT"
1431+
},
1432+
{
1433+
"invert": false,
1434+
"metadata_JSON": "",
1435+
"name": "huobi_ws",
1436+
"normalize_by_pair": {
1437+
"Base": "USDT",
1438+
"Quote": "USD"
1439+
},
1440+
"off_chain_ticker": "bomeusdt"
1441+
},
1442+
{
1443+
"invert": false,
1444+
"metadata_JSON": "",
1445+
"name": "bybit_ws",
1446+
"normalize_by_pair": {
1447+
"Base": "USDT",
1448+
"Quote": "USD"
1449+
},
1450+
"off_chain_ticker": "BOMEUSDT"
1451+
},
1452+
{
1453+
"invert": false,
1454+
"metadata_JSON": "{\"base_token_vault\":{\"token_vault_address\":\"FBba2XsQVhkoQDMfbNLVmo7dsvssdT39BMzVc2eFfE21\",\"token_decimals\":6},\"quote_token_vault\":{\"token_vault_address\":\"GuXKCb9ibwSeRSdSYqaCL3dcxBZ7jJcj6Y7rDwzmUBu9\",\"token_decimals\":9},\"amm_info_address\":\"DSUvc5qf5LJHHV5e2tD184ixotSnCnwj7i4jJa4Xsrmt\",\"open_orders_address\":\"38p42yoKFWgxw2LCbB96wAKa2LwAxiBArY3fc3eA9yWv\"}",
1455+
"name": "raydium_api",
1456+
"normalize_by_pair": {
1457+
"Base": "SOL",
1458+
"Quote": "USD"
1459+
},
1460+
"off_chain_ticker": "BOME,RAYDIUM,UKHH6C7MMYIWCF1B9PNWE25TSPKDDT3H5PQZGZ74J82/SOL,RAYDIUM,SO11111111111111111111111111111111111111112"
1461+
},
1462+
{
1463+
"invert": false,
1464+
"metadata_JSON": "",
1465+
"name": "okx_ws",
1466+
"normalize_by_pair": {
1467+
"Base": "USDT",
1468+
"Quote": "USD"
1469+
},
1470+
"off_chain_ticker": "BOME-USDT"
1471+
}
1472+
],
1473+
"ticker": {
1474+
"currency_pair": {
1475+
"Base": "BOME",
1476+
"Quote": "USD"
1477+
},
1478+
"decimals": 12,
1479+
"enabled": true,
1480+
"metadata_JSON": "{\"reference_price\":6051284618,\"liquidity\":748591,\"aggregate_ids\":[{\"venue\":\"coinmarketcap\",\"ID\":\"29870\"}]}",
1481+
"min_provider_count": 1
1482+
}
1483+
},
14001484
"BTC/USD": {
14011485
"provider_configs": [
14021486
{
@@ -1739,6 +1823,50 @@
17391823
"min_provider_count": 3
17401824
}
17411825
},
1826+
"EIGEN/USD": {
1827+
"provider_configs": [
1828+
{
1829+
"invert": false,
1830+
"name": "okx_ws",
1831+
"normalize_by_pair": {
1832+
"Base": "USDT",
1833+
"Quote": "USD"
1834+
},
1835+
"off_chain_ticker": "EIGEN-USDT"
1836+
},
1837+
{
1838+
"invert": false,
1839+
"name": "bybit_ws",
1840+
"normalize_by_pair": {
1841+
"Base": "USDT",
1842+
"Quote": "USD"
1843+
},
1844+
"off_chain_ticker": "EIGENUSDT"
1845+
},
1846+
{
1847+
"name": "crypto_dot_com_ws",
1848+
"off_chain_ticker": "EIGEN_USD"
1849+
},
1850+
{
1851+
"name": "coinbase_ws",
1852+
"off_chain_ticker": "EIGEN-USD"
1853+
},
1854+
{
1855+
"name": "kraken_api",
1856+
"off_chain_ticker": "EIGENUSD"
1857+
}
1858+
],
1859+
"ticker": {
1860+
"currency_pair": {
1861+
"Base": "EIGEN",
1862+
"Quote": "USD"
1863+
},
1864+
"decimals": 9,
1865+
"enabled": true,
1866+
"metadata_JSON": "{\"reference_price\":3648941500,\"liquidity\":3099304,\"aggregate_ids\":[{\"venue\":\"coinmarketcap\",\"ID\":\"30494\"}]}",
1867+
"min_provider_count": 1
1868+
}
1869+
},
17421870
"ETC/USD": {
17431871
"provider_configs": [
17441872
{
@@ -3414,6 +3542,28 @@
34143542
"market_type": 1,
34153543
"ticker": "XRP-USD"
34163544
}
3545+
},
3546+
{
3547+
"params": {
3548+
"atomic_resolution": -6,
3549+
"default_funding_ppm": 0,
3550+
"id": 300,
3551+
"liquidity_tier": 4,
3552+
"market_id": 300,
3553+
"market_type": 2,
3554+
"ticker": "EIGEN-USD"
3555+
}
3556+
},
3557+
{
3558+
"params": {
3559+
"atomic_resolution": -3,
3560+
"default_funding_ppm": 0,
3561+
"id": 301,
3562+
"liquidity_tier": 4,
3563+
"market_id": 301,
3564+
"market_type": 2,
3565+
"ticker": "BOME-USD"
3566+
}
34173567
}
34183568
]
34193569
},
@@ -3698,6 +3848,22 @@
36983848
"min_exchanges": 3,
36993849
"min_price_change_ppm": 2500,
37003850
"pair": "DYDX-USD"
3851+
},
3852+
{
3853+
"exchange_config_json": "{\"placeholder\":\"placeholder\"}",
3854+
"exponent": -9,
3855+
"id": 300,
3856+
"min_exchanges": 1,
3857+
"min_price_change_ppm": 800,
3858+
"pair": "EIGEN-USD"
3859+
},
3860+
{
3861+
"exchange_config_json": "{\"placeholder\":\"placeholder\"}",
3862+
"exponent": -12,
3863+
"id": 301,
3864+
"min_exchanges": 1,
3865+
"min_price_change_ppm": 800,
3866+
"pair": "BOME-USD"
37013867
}
37023868
],
37033869
"market_prices": [
@@ -3875,6 +4041,16 @@
38754041
"exponent": -9,
38764042
"id": 1000001,
38774043
"price": 2050000000
4044+
},
4045+
{
4046+
"exponent": -9,
4047+
"id": 300,
4048+
"price": 4973000000
4049+
},
4050+
{
4051+
"exponent": -12,
4052+
"id": 301,
4053+
"price": 8695478191
38784054
}
38794055
]
38804056
},
@@ -4006,7 +4182,7 @@
40064182
]
40074183
}
40084184
},
4009-
"app_version": "5.2.1-172-g351fcccd",
4185+
"app_version": "7.0.5-4-g462dbfcc7",
40104186
"chain_id": "dydx-sample-1",
40114187
"consensus": {
40124188
"params": {

protocol/testing/genesis.sh

Lines changed: 101 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,26 @@ function edit_genesis() {
542542
dasel put -t int -f "$GENESIS" '.app_state.perpetuals.perpetuals.[32].params.liquidity_tier' -v '1'
543543
dasel put -t int -f "$GENESIS" '.app_state.perpetuals.perpetuals.[32].params.market_type' -v '1'
544544

545+
# Perpetual (Isolated): EIGEN-USD
546+
dasel put -t json -f "$GENESIS" '.app_state.perpetuals.perpetuals.[]' -v "{}"
547+
dasel put -t string -f "$GENESIS" '.app_state.perpetuals.perpetuals.[33].params.ticker' -v 'EIGEN-USD'
548+
dasel put -t int -f "$GENESIS" '.app_state.perpetuals.perpetuals.[33].params.id' -v '300'
549+
dasel put -t int -f "$GENESIS" '.app_state.perpetuals.perpetuals.[33].params.market_id' -v '300'
550+
dasel put -t int -f "$GENESIS" '.app_state.perpetuals.perpetuals.[33].params.atomic_resolution' -v '-6'
551+
dasel put -t int -f "$GENESIS" '.app_state.perpetuals.perpetuals.[33].params.default_funding_ppm' -v '0'
552+
dasel put -t int -f "$GENESIS" '.app_state.perpetuals.perpetuals.[33].params.liquidity_tier' -v '4'
553+
dasel put -t int -f "$GENESIS" '.app_state.perpetuals.perpetuals.[33].params.market_type' -v '2' # Isolated
554+
555+
# Perpetual (Isolated): BOME-USD
556+
dasel put -t json -f "$GENESIS" '.app_state.perpetuals.perpetuals.[]' -v "{}"
557+
dasel put -t string -f "$GENESIS" '.app_state.perpetuals.perpetuals.[34].params.ticker' -v 'BOME-USD'
558+
dasel put -t int -f "$GENESIS" '.app_state.perpetuals.perpetuals.[34].params.id' -v '301'
559+
dasel put -t int -f "$GENESIS" '.app_state.perpetuals.perpetuals.[34].params.market_id' -v '301'
560+
dasel put -t int -f "$GENESIS" '.app_state.perpetuals.perpetuals.[34].params.atomic_resolution' -v '-3'
561+
dasel put -t int -f "$GENESIS" '.app_state.perpetuals.perpetuals.[34].params.default_funding_ppm' -v '0'
562+
dasel put -t int -f "$GENESIS" '.app_state.perpetuals.perpetuals.[34].params.liquidity_tier' -v '4'
563+
dasel put -t int -f "$GENESIS" '.app_state.perpetuals.perpetuals.[34].params.market_type' -v '2' # Isolated
564+
545565
# Update MarketMap module.
546566
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map' -v "{}"
547567
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets' -v "{}"
@@ -1254,7 +1274,43 @@ function edit_genesis() {
12541274
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.USDT/USD.provider_configs.[]' -v '{"name": "kucoin_ws", "off_chain_ticker": "BTC-USDT", "normalize_by_pair": {"Base": "BTC", "Quote": "USD"}, "invert": true}'
12551275
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.USDT/USD.provider_configs.[]' -v '{"name": "okx_ws", "off_chain_ticker": "USDC-USDT", "invert": true}'
12561276

1257-
1277+
# Marketmap: EIGEN-USD
1278+
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.EIGEN/USD' -v "{}"
1279+
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.EIGEN/USD.ticker' -v "{}"
1280+
1281+
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.EIGEN/USD.ticker.currency_pair' -v "{}"
1282+
dasel put -t string -f "$GENESIS" '.app_state.marketmap.market_map.markets.EIGEN/USD.ticker.currency_pair.Base' -v 'EIGEN'
1283+
dasel put -t string -f "$GENESIS" '.app_state.marketmap.market_map.markets.EIGEN/USD.ticker.currency_pair.Quote' -v 'USD'
1284+
1285+
dasel put -t int -f "$GENESIS" '.app_state.marketmap.market_map.markets.EIGEN/USD.ticker.decimals' -v '9'
1286+
dasel put -t int -f "$GENESIS" '.app_state.marketmap.market_map.markets.EIGEN/USD.ticker.min_provider_count' -v '1'
1287+
dasel put -t bool -f "$GENESIS" '.app_state.marketmap.market_map.markets.EIGEN/USD.ticker.enabled' -v 'true'
1288+
dasel put -t string -f "$GENESIS" '.app_state.marketmap.market_map.markets.EIGEN/USD.ticker.metadata_JSON' -v '{"reference_price":3648941500,"liquidity":3099304,"aggregate_ids":[{"venue":"coinmarketcap","ID":"30494"}]}'
1289+
1290+
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.EIGEN/USD.provider_configs.[]' -v '{"name": "okx_ws", "off_chain_ticker": "EIGEN-USDT", "normalize_by_pair": {"Base": "USDT", "Quote": "USD"}, "invert": false}'
1291+
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.EIGEN/USD.provider_configs.[]' -v '{"name": "bybit_ws", "off_chain_ticker": "EIGENUSDT", "normalize_by_pair": {"Base": "USDT", "Quote": "USD"}, "invert": false}'
1292+
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.EIGEN/USD.provider_configs.[]' -v '{"name": "crypto_dot_com_ws", "off_chain_ticker": "EIGEN_USD"}'
1293+
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.EIGEN/USD.provider_configs.[]' -v '{"name": "coinbase_ws", "off_chain_ticker": "EIGEN-USD"}'
1294+
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.EIGEN/USD.provider_configs.[]' -v '{"name": "kraken_api", "off_chain_ticker": "EIGENUSD"}'
1295+
1296+
# Marketmap: BOME-USD
1297+
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.BOME/USD' -v "{}"
1298+
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.BOME/USD.ticker' -v "{}"
1299+
1300+
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.BOME/USD.ticker.currency_pair' -v "{}"
1301+
dasel put -t string -f "$GENESIS" '.app_state.marketmap.market_map.markets.BOME/USD.ticker.currency_pair.Base' -v 'BOME'
1302+
dasel put -t string -f "$GENESIS" '.app_state.marketmap.market_map.markets.BOME/USD.ticker.currency_pair.Quote' -v 'USD'
1303+
1304+
dasel put -t int -f "$GENESIS" '.app_state.marketmap.market_map.markets.BOME/USD.ticker.decimals' -v '12'
1305+
dasel put -t int -f "$GENESIS" '.app_state.marketmap.market_map.markets.BOME/USD.ticker.min_provider_count' -v '1'
1306+
dasel put -t bool -f "$GENESIS" '.app_state.marketmap.market_map.markets.BOME/USD.ticker.enabled' -v 'true'
1307+
dasel put -t string -f "$GENESIS" '.app_state.marketmap.market_map.markets.BOME/USD.ticker.metadata_JSON' -v '{"reference_price":6051284618,"liquidity":748591,"aggregate_ids":[{"venue":"coinmarketcap","ID":"29870"}]}'
1308+
1309+
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.BOME/USD.provider_configs.[]' -v '{"name":"kucoin_ws","off_chain_ticker":"BOME-USDT","normalize_by_pair":{"Base":"USDT","Quote":"USD"},"invert":false,"metadata_JSON":""}'
1310+
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.BOME/USD.provider_configs.[]' -v '{"name":"huobi_ws","off_chain_ticker":"bomeusdt","normalize_by_pair":{"Base":"USDT","Quote":"USD"},"invert":false,"metadata_JSON":""}'
1311+
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.BOME/USD.provider_configs.[]' -v '{"name":"bybit_ws","off_chain_ticker":"BOMEUSDT","normalize_by_pair":{"Base":"USDT","Quote":"USD"},"invert":false,"metadata_JSON":""}'
1312+
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.BOME/USD.provider_configs.[]' -v '{"name":"raydium_api","off_chain_ticker":"BOME,RAYDIUM,UKHH6C7MMYIWCF1B9PNWE25TSPKDDT3H5PQZGZ74J82/SOL,RAYDIUM,SO11111111111111111111111111111111111111112","normalize_by_pair":{"Base":"SOL","Quote":"USD"},"invert":false,"metadata_JSON":"{\"base_token_vault\":{\"token_vault_address\":\"FBba2XsQVhkoQDMfbNLVmo7dsvssdT39BMzVc2eFfE21\",\"token_decimals\":6},\"quote_token_vault\":{\"token_vault_address\":\"GuXKCb9ibwSeRSdSYqaCL3dcxBZ7jJcj6Y7rDwzmUBu9\",\"token_decimals\":9},\"amm_info_address\":\"DSUvc5qf5LJHHV5e2tD184ixotSnCnwj7i4jJa4Xsrmt\",\"open_orders_address\":\"38p42yoKFWgxw2LCbB96wAKa2LwAxiBArY3fc3eA9yWv\"}"}'
1313+
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.BOME/USD.provider_configs.[]' -v '{"name":"okx_ws","off_chain_ticker":"BOME-USDT","normalize_by_pair":{"Base":"USDT","Quote":"USD"},"invert":false,"metadata_JSON":""}'
12581314
# Marketmap: DYDX-USD
12591315
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.DYDX/USD' -v "{}"
12601316
dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.DYDX/USD.ticker' -v "{}"
@@ -1802,6 +1858,32 @@ function edit_genesis() {
18021858
dydx_exchange_config_json=$(cat "$EXCHANGE_CONFIG_JSON_DIR/dydx_exchange_config.json" | jq -c '.')
18031859
dasel put -t string -f "$GENESIS" '.app_state.prices.market_params.[34].exchange_config_json' -v "$dydx_exchange_config_json"
18041860

1861+
# Market: EIGEN-USD
1862+
dasel put -t json -f "$GENESIS" '.app_state.prices.market_params.[]' -v "{}"
1863+
dasel put -t string -f "$GENESIS" '.app_state.prices.market_params.[35].pair' -v 'EIGEN-USD'
1864+
dasel put -t int -f "$GENESIS" '.app_state.prices.market_params.[35].id' -v '300'
1865+
dasel put -t int -f "$GENESIS" '.app_state.prices.market_params.[35].exponent' -v '-9'
1866+
dasel put -t int -f "$GENESIS" '.app_state.prices.market_params.[35].min_price_change_ppm' -v '800' # 0.080%
1867+
dasel put -t int -f "$GENESIS" '.app_state.prices.market_params.[35].min_exchanges' -v '1'
1868+
dasel put -t string -f "$GENESIS" '.app_state.prices.market_params.[35].exchange_config_json' -v '{"placeholder":"placeholder"}'
1869+
dasel put -t json -f "$GENESIS" '.app_state.prices.market_prices.[]' -v "{}"
1870+
dasel put -t int -f "$GENESIS" '.app_state.prices.market_prices.[35].id' -v '300'
1871+
dasel put -t int -f "$GENESIS" '.app_state.prices.market_prices.[35].exponent' -v '-9'
1872+
dasel put -t int -f "$GENESIS" '.app_state.prices.market_prices.[35].price' -v '4973000000' # $4.973
1873+
1874+
# Market: BOME-USD
1875+
dasel put -t json -f "$GENESIS" '.app_state.prices.market_params.[]' -v "{}"
1876+
dasel put -t string -f "$GENESIS" '.app_state.prices.market_params.[36].pair' -v 'BOME-USD'
1877+
dasel put -t int -f "$GENESIS" '.app_state.prices.market_params.[36].id' -v '301'
1878+
dasel put -t int -f "$GENESIS" '.app_state.prices.market_params.[36].exponent' -v '-12'
1879+
dasel put -t int -f "$GENESIS" '.app_state.prices.market_params.[36].min_price_change_ppm' -v '800' # 0.080%
1880+
dasel put -t int -f "$GENESIS" '.app_state.prices.market_params.[36].min_exchanges' -v '1'
1881+
dasel put -t string -f "$GENESIS" '.app_state.prices.market_params.[36].exchange_config_json' -v '{"placeholder":"placeholder"}'
1882+
dasel put -t json -f "$GENESIS" '.app_state.prices.market_prices.[]' -v "{}"
1883+
dasel put -t int -f "$GENESIS" '.app_state.prices.market_prices.[36].id' -v '301'
1884+
dasel put -t int -f "$GENESIS" '.app_state.prices.market_prices.[36].exponent' -v '-12'
1885+
dasel put -t int -f "$GENESIS" '.app_state.prices.market_prices.[36].price' -v '8695478191' # $0.008695
1886+
18051887
# Initialize bridge module account balance as total native token supply.
18061888
bridge_module_account_balance=$TOTAL_NATIVE_TOKEN_SUPPLY
18071889
total_accounts_quote_balance=0
@@ -2168,6 +2250,24 @@ function edit_genesis() {
21682250
dasel put -t int -f "$GENESIS" '.app_state.clob.clob_pairs.[32].subticks_per_tick' -v '1000000'
21692251
dasel put -t int -f "$GENESIS" '.app_state.clob.clob_pairs.[32].quantum_conversion_exponent' -v '-9'
21702252

2253+
# Clob: EIGEN-USD
2254+
dasel put -t json -f "$GENESIS" '.app_state.clob.clob_pairs.[]' -v "{}"
2255+
dasel put -t int -f "$GENESIS" '.app_state.clob.clob_pairs.[33].id' -v '300'
2256+
dasel put -t string -f "$GENESIS" '.app_state.clob.clob_pairs.[33].status' -v "$INITIAL_CLOB_PAIR_STATUS"
2257+
dasel put -t int -f "$GENESIS" '.app_state.clob.clob_pairs.[33].perpetual_clob_metadata.perpetual_id' -v '300'
2258+
dasel put -t int -f "$GENESIS" '.app_state.clob.clob_pairs.[33].step_base_quantums' -v '1000000'
2259+
dasel put -t int -f "$GENESIS" '.app_state.clob.clob_pairs.[33].subticks_per_tick' -v '1000000'
2260+
dasel put -t int -f "$GENESIS" '.app_state.clob.clob_pairs.[33].quantum_conversion_exponent' -v '-9'
2261+
2262+
# Clob: BOME-USD
2263+
dasel put -t json -f "$GENESIS" '.app_state.clob.clob_pairs.[]' -v "{}"
2264+
dasel put -t int -f "$GENESIS" '.app_state.clob.clob_pairs.[34].id' -v '301'
2265+
dasel put -t string -f "$GENESIS" '.app_state.clob.clob_pairs.[34].status' -v "$INITIAL_CLOB_PAIR_STATUS"
2266+
dasel put -t int -f "$GENESIS" '.app_state.clob.clob_pairs.[34].perpetual_clob_metadata.perpetual_id' -v '301'
2267+
dasel put -t int -f "$GENESIS" '.app_state.clob.clob_pairs.[34].step_base_quantums' -v '1000000'
2268+
dasel put -t int -f "$GENESIS" '.app_state.clob.clob_pairs.[34].subticks_per_tick' -v '1000000'
2269+
dasel put -t int -f "$GENESIS" '.app_state.clob.clob_pairs.[34].quantum_conversion_exponent' -v '-9'
2270+
21712271
# Liquidations
21722272
dasel put -t int -f "$GENESIS" '.app_state.clob.liquidations_config.max_liquidation_fee_ppm' -v '15000' # 1.5%
21732273
dasel put -t int -f "$GENESIS" '.app_state.clob.liquidations_config.position_block_limits.min_position_notional_liquidated' -v '1000000000' # 1_000 USDC

0 commit comments

Comments
 (0)