@chainflip/rpc 2.1.6 → 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,
@@ -670,8 +670,8 @@ const cfSafeModeStatuses = zod.z.object({
670
670
  state_chain_gateway_witnessing: zod.z.boolean(),
671
671
  key_manager_witnessing: zod.z.boolean(),
672
672
  sc_utils_witnessing: zod.z.boolean()
673
- }).optional(),
674
- 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() }),
675
675
  elections_generic: zod.z.object({ oracle_price_elections: zod.z.boolean() })
676
676
  });
677
677
  const cfLendingPools = zod.z.array(zod.z.object({
@@ -727,7 +727,8 @@ const cfLoanAccount = zod.z.object({
727
727
  loans: zod.z.array(zod.z.object({
728
728
  loan_id: zod.z.number(),
729
729
  asset: rpcAssetSchema,
730
- principal_amount: numberOrHex
730
+ principal_amount: numberOrHex,
731
+ loan_type: zod.z.object({ User: accountId }).optional()
731
732
  })),
732
733
  liquidation_status: zod.z.object({
733
734
  liquidation_swaps: zod.z.array(zod.z.object({