@chainflip/rpc 2.1.7-dev.0 → 2.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/parsers.mjs CHANGED
@@ -191,7 +191,7 @@ const cfIngressEgressEnvironment = z.object({
191
191
  channel_opening_fees: chainMapFactory(numberOrHex, 0),
192
192
  ingress_delays: chainMapFactory(z.number(), 0),
193
193
  boost_delays: chainMapFactory(z.number(), 0),
194
- boost_minimum_add_funds_amounts: chainAssetMapFactory(numberOrHex.nullable(), null).optional()
194
+ boost_minimum_add_funds_amounts: chainAssetMapFactory(numberOrHex.nullable(), null)
195
195
  }).transform(rename({ egress_dust_limits: "minimum_egress_amounts" }));
196
196
  const cfSwappingEnvironment = z.object({
197
197
  maximum_swap_amounts: chainAssetMapFactory(numberOrHex.nullable(), null),
@@ -201,7 +201,7 @@ const cfSwappingEnvironment = z.object({
201
201
  max_swap_request_duration_blocks: z.number(),
202
202
  minimum_chunk_size: chainAssetMapFactory(numberOrHex.nullable(), null),
203
203
  network_fees: networkFees,
204
- default_oracle_price_protection: chainAssetMapFactory(z.number().nullable(), null).optional()
204
+ default_oracle_price_protection: chainAssetMapFactory(z.number().nullable(), null)
205
205
  });
206
206
  const cfFundingEnvironment = z.object({
207
207
  redemption_tax: numberOrHex,
@@ -564,14 +564,6 @@ const cfTradingStrategy = z.object({
564
564
  min_sell_tick: z.number(),
565
565
  max_sell_tick: z.number(),
566
566
  base_asset: rpcAssetSchema
567
- }) }),
568
- z.object({ OracleTracking: z.object({
569
- min_buy_offset_tick: z.number(),
570
- max_buy_offset_tick: z.number(),
571
- min_sell_offset_tick: z.number(),
572
- max_sell_offset_tick: z.number(),
573
- base_asset: rpcAssetSchema,
574
- quote_asset: rpcAssetSchema
575
567
  }) })
576
568
  ]),
577
569
  balance: z.array(z.tuple([rpcAssetSchema, numberOrHex]))
@@ -675,8 +667,8 @@ const cfSafeModeStatuses = z.object({
675
667
  state_chain_gateway_witnessing: z.boolean(),
676
668
  key_manager_witnessing: z.boolean(),
677
669
  sc_utils_witnessing: z.boolean()
678
- }).optional(),
679
- arbitrum_elections: z.object({ key_manager_witnessing: z.boolean() }).optional(),
670
+ }),
671
+ arbitrum_elections: z.object({ key_manager_witnessing: z.boolean() }),
680
672
  elections_generic: z.object({ oracle_price_elections: z.boolean() })
681
673
  });
682
674
  const cfLendingPools = z.array(z.object({
@@ -732,7 +724,8 @@ const cfLoanAccount = z.object({
732
724
  loans: z.array(z.object({
733
725
  loan_id: z.number(),
734
726
  asset: rpcAssetSchema,
735
- principal_amount: numberOrHex
727
+ principal_amount: numberOrHex,
728
+ loan_type: z.object({ User: accountId }).optional()
736
729
  })),
737
730
  liquidation_status: z.object({
738
731
  liquidation_swaps: z.array(z.object({
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@chainflip/rpc",
3
- "version": "2.1.7-dev.0",
3
+ "version": "2.1.7",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@chainflip/utils": "2.1.2",
7
7
  "zod": "^3.25.75"
8
8
  },
9
9
  "devDependencies": {
10
- "@types/node": "^25.5.0",
10
+ "@types/node": "^25.6.0",
11
11
  "@types/ws": "^8.18.1",
12
12
  "ws": "^8.20.0"
13
13
  },