@chainflip/rpc 2.1.1-beta.0 → 2.1.2

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
@@ -188,17 +188,18 @@ const cfIngressEgressEnvironment = zod.z.object({
188
188
  witness_safety_margins: chainMapFactory(zod.z.number().nullable(), null),
189
189
  egress_dust_limits: chainAssetMapFactory(numberOrHex, 0),
190
190
  channel_opening_fees: chainMapFactory(numberOrHex, 0),
191
- ingress_delays: chainMapFactory(zod.z.number(), 0).optional(),
192
- boost_delays: chainMapFactory(zod.z.number(), 0).optional()
191
+ ingress_delays: chainMapFactory(zod.z.number(), 0),
192
+ boost_delays: chainMapFactory(zod.z.number(), 0)
193
193
  }).transform(rename({ egress_dust_limits: "minimum_egress_amounts" }));
194
194
  const cfSwappingEnvironment = zod.z.object({
195
195
  maximum_swap_amounts: chainAssetMapFactory(numberOrHex.nullable(), null),
196
196
  network_fee_hundredth_pips: zod.z.number(),
197
- swap_retry_delay_blocks: zod.z.number().optional(),
198
- max_swap_retry_duration_blocks: zod.z.number().optional(),
199
- max_swap_request_duration_blocks: zod.z.number().optional(),
200
- minimum_chunk_size: chainAssetMapFactory(numberOrHex.nullable(), null).optional(),
201
- network_fees: networkFees
197
+ swap_retry_delay_blocks: zod.z.number(),
198
+ max_swap_retry_duration_blocks: zod.z.number(),
199
+ max_swap_request_duration_blocks: zod.z.number(),
200
+ minimum_chunk_size: chainAssetMapFactory(numberOrHex.nullable(), null),
201
+ network_fees: networkFees,
202
+ default_oracle_price_protection: chainAssetMapFactory(zod.z.number().nullable(), null).optional()
202
203
  });
203
204
  const cfFundingEnvironment = zod.z.object({
204
205
  redemption_tax: numberOrHex,
@@ -383,8 +384,8 @@ const liquidityProvider = zod.z.object({
383
384
  lending_positions: zod.z.array(zod.z.intersection(rpcAssetSchema, zod.z.object({
384
385
  total_amount: numberOrHex,
385
386
  available_amount: numberOrHex
386
- }))).optional(),
387
- collateral_balances: zod.z.array(zod.z.intersection(rpcAssetSchema, zod.z.object({ amount: numberOrHex }))).optional()
387
+ }))),
388
+ collateral_balances: zod.z.array(zod.z.intersection(rpcAssetSchema, zod.z.object({ amount: numberOrHex })))
388
389
  });
389
390
  const validator = zod.z.object({
390
391
  role: zod.z.literal("validator"),
@@ -587,7 +588,7 @@ const cfOraclePrices = zod.z.array(zod.z.object({
587
588
  "UpToDate",
588
589
  "Stale",
589
590
  "MaybeStale"
590
- ]).optional()
591
+ ])
591
592
  }));
592
593
  const broadcastPalletSafeModeStatuses = zod.z.object({
593
594
  retry_enabled: zod.z.boolean(),
@@ -635,11 +636,11 @@ const cfSafeModeStatuses = zod.z.object({
635
636
  lending_pools: zod.z.object({
636
637
  add_boost_funds_enabled: zod.z.boolean(),
637
638
  stop_boosting_enabled: zod.z.boolean(),
638
- borrowing_enabled: zod.z.array(rpcAssetSchema).optional(),
639
- add_lender_funds_enabled: zod.z.array(rpcAssetSchema).optional(),
640
- withdraw_lender_funds_enabled: zod.z.array(rpcAssetSchema).optional(),
641
- add_collateral_enabled: zod.z.array(rpcAssetSchema).optional(),
642
- remove_collateral_enabled: zod.z.array(rpcAssetSchema).optional()
639
+ borrowing_enabled: zod.z.array(rpcAssetSchema),
640
+ add_lender_funds_enabled: zod.z.array(rpcAssetSchema),
641
+ withdraw_lender_funds_enabled: zod.z.array(rpcAssetSchema),
642
+ add_collateral_enabled: zod.z.array(rpcAssetSchema),
643
+ remove_collateral_enabled: zod.z.array(rpcAssetSchema)
643
644
  }),
644
645
  broadcast_ethereum: broadcastPalletSafeModeStatuses,
645
646
  broadcast_bitcoin: broadcastPalletSafeModeStatuses,