@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.cjs CHANGED
@@ -6,7 +6,7 @@ let _chainflip_utils_chainflip = require("@chainflip/utils/chainflip");
6
6
  let _chainflip_utils_consts = require("@chainflip/utils/consts");
7
7
  let _chainflip_utils_guard = require("@chainflip/utils/guard");
8
8
  let _chainflip_utils_ss58 = require("@chainflip/utils/ss58");
9
- _chainflip_utils_ss58 = require_runtime.__toESM(_chainflip_utils_ss58);
9
+ _chainflip_utils_ss58 = require_runtime.__toESM(_chainflip_utils_ss58, 1);
10
10
  let _chainflip_utils_string = require("@chainflip/utils/string");
11
11
 
12
12
  //#region src/parsers.ts
@@ -194,7 +194,7 @@ const cfIngressEgressEnvironment = zod.z.object({
194
194
  channel_opening_fees: chainMapFactory(numberOrHex, 0),
195
195
  ingress_delays: chainMapFactory(zod.z.number(), 0),
196
196
  boost_delays: chainMapFactory(zod.z.number(), 0),
197
- boost_minimum_add_funds_amounts: chainAssetMapFactory(numberOrHex.nullable(), null).optional()
197
+ boost_minimum_add_funds_amounts: chainAssetMapFactory(numberOrHex.nullable(), null)
198
198
  }).transform(rename({ egress_dust_limits: "minimum_egress_amounts" }));
199
199
  const cfSwappingEnvironment = zod.z.object({
200
200
  maximum_swap_amounts: chainAssetMapFactory(numberOrHex.nullable(), null),
@@ -204,7 +204,7 @@ const cfSwappingEnvironment = zod.z.object({
204
204
  max_swap_request_duration_blocks: zod.z.number(),
205
205
  minimum_chunk_size: chainAssetMapFactory(numberOrHex.nullable(), null),
206
206
  network_fees: networkFees,
207
- default_oracle_price_protection: chainAssetMapFactory(zod.z.number().nullable(), null).optional()
207
+ default_oracle_price_protection: chainAssetMapFactory(zod.z.number().nullable(), null)
208
208
  });
209
209
  const cfFundingEnvironment = zod.z.object({
210
210
  redemption_tax: numberOrHex,
@@ -567,14 +567,6 @@ const cfTradingStrategy = zod.z.object({
567
567
  min_sell_tick: zod.z.number(),
568
568
  max_sell_tick: zod.z.number(),
569
569
  base_asset: rpcAssetSchema
570
- }) }),
571
- zod.z.object({ OracleTracking: zod.z.object({
572
- min_buy_offset_tick: zod.z.number(),
573
- max_buy_offset_tick: zod.z.number(),
574
- min_sell_offset_tick: zod.z.number(),
575
- max_sell_offset_tick: zod.z.number(),
576
- base_asset: rpcAssetSchema,
577
- quote_asset: rpcAssetSchema
578
570
  }) })
579
571
  ]),
580
572
  balance: zod.z.array(zod.z.tuple([rpcAssetSchema, numberOrHex]))
@@ -678,8 +670,8 @@ const cfSafeModeStatuses = zod.z.object({
678
670
  state_chain_gateway_witnessing: zod.z.boolean(),
679
671
  key_manager_witnessing: zod.z.boolean(),
680
672
  sc_utils_witnessing: zod.z.boolean()
681
- }).optional(),
682
- arbitrum_elections: zod.z.object({ key_manager_witnessing: zod.z.boolean() }).optional(),
673
+ }),
674
+ arbitrum_elections: zod.z.object({ key_manager_witnessing: zod.z.boolean() }),
683
675
  elections_generic: zod.z.object({ oracle_price_elections: zod.z.boolean() })
684
676
  });
685
677
  const cfLendingPools = zod.z.array(zod.z.object({
@@ -735,7 +727,8 @@ const cfLoanAccount = zod.z.object({
735
727
  loans: zod.z.array(zod.z.object({
736
728
  loan_id: zod.z.number(),
737
729
  asset: rpcAssetSchema,
738
- principal_amount: numberOrHex
730
+ principal_amount: numberOrHex,
731
+ loan_type: zod.z.object({ User: accountId }).optional()
739
732
  })),
740
733
  liquidation_status: zod.z.object({
741
734
  liquidation_swaps: zod.z.array(zod.z.object({