@@ -542,6 +542,26 @@ function edit_genesis() {
542
542
dasel put -t int -f " $GENESIS " ' .app_state.perpetuals.perpetuals.[32].params.liquidity_tier' -v ' 1'
543
543
dasel put -t int -f " $GENESIS " ' .app_state.perpetuals.perpetuals.[32].params.market_type' -v ' 1'
544
544
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
+
545
565
# Update MarketMap module.
546
566
dasel put -t json -f " $GENESIS " ' .app_state.marketmap.market_map' -v " {}"
547
567
dasel put -t json -f " $GENESIS " ' .app_state.marketmap.market_map.markets' -v " {}"
@@ -1254,7 +1274,43 @@ function edit_genesis() {
1254
1274
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}'
1255
1275
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}'
1256
1276
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":""}'
1258
1314
# Marketmap: DYDX-USD
1259
1315
dasel put -t json -f " $GENESIS " ' .app_state.marketmap.market_map.markets.DYDX/USD' -v " {}"
1260
1316
dasel put -t json -f " $GENESIS " ' .app_state.marketmap.market_map.markets.DYDX/USD.ticker' -v " {}"
@@ -1802,6 +1858,32 @@ function edit_genesis() {
1802
1858
dydx_exchange_config_json=$( cat " $EXCHANGE_CONFIG_JSON_DIR /dydx_exchange_config.json" | jq -c ' .' )
1803
1859
dasel put -t string -f " $GENESIS " ' .app_state.prices.market_params.[34].exchange_config_json' -v " $dydx_exchange_config_json "
1804
1860
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
+
1805
1887
# Initialize bridge module account balance as total native token supply.
1806
1888
bridge_module_account_balance=$TOTAL_NATIVE_TOKEN_SUPPLY
1807
1889
total_accounts_quote_balance=0
@@ -2168,6 +2250,24 @@ function edit_genesis() {
2168
2250
dasel put -t int -f " $GENESIS " ' .app_state.clob.clob_pairs.[32].subticks_per_tick' -v ' 1000000'
2169
2251
dasel put -t int -f " $GENESIS " ' .app_state.clob.clob_pairs.[32].quantum_conversion_exponent' -v ' -9'
2170
2252
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
+
2171
2271
# Liquidations
2172
2272
dasel put -t int -f " $GENESIS " ' .app_state.clob.liquidations_config.max_liquidation_fee_ppm' -v ' 15000' # 1.5%
2173
2273
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