@chainflip/rpc 1.11.0-beta.11 → 1.11.0-beta.13

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
@@ -211,6 +211,7 @@ var delegationStatus = _zod.z.object({
211
211
  bid: numberOrHex
212
212
  });
213
213
  var accountInfoCommon = {
214
+ vanity_name: _zod.z.string().optional(),
214
215
  flip_balance: numberOrHex,
215
216
  asset_balances: chainAssetMapFactory(numberOrHex, 0),
216
217
  bond: numberOrHex,
@@ -284,7 +285,24 @@ var liquidityProvider = _zod.z.object({
284
285
  ...accountInfoCommon,
285
286
  refund_addresses: chainMapFactory(_zod.z.string().nullable(), null),
286
287
  earned_fees: chainAssetMapFactory(numberOrHex, 0),
287
- boost_balances: chainAssetMapFactory(boostBalances, [])
288
+ boost_balances: chainAssetMapFactory(boostBalances, []),
289
+ lending_positions: _zod.z.array(
290
+ _zod.z.intersection(
291
+ rpcAssetSchema,
292
+ _zod.z.object({
293
+ total_amount: numberOrHex,
294
+ available_amount: numberOrHex
295
+ })
296
+ )
297
+ ).optional(),
298
+ collateral_balances: _zod.z.array(
299
+ _zod.z.intersection(
300
+ rpcAssetSchema,
301
+ _zod.z.object({
302
+ amount: numberOrHex
303
+ })
304
+ )
305
+ ).optional()
288
306
  });
289
307
  var oldValidator = _zod.z.object({
290
308
  role: _zod.z.literal("validator"),
@@ -631,7 +649,15 @@ var cfLendingPools = _zod.z.array(
631
649
  total_amount: numberOrHex,
632
650
  available_amount: numberOrHex,
633
651
  utilisation_rate: _zod.z.number(),
634
- interest_rate: _zod.z.number()
652
+ current_interest_rate: _zod.z.number(),
653
+ origination_fee: _zod.z.number(),
654
+ liquidation_fee: _zod.z.number(),
655
+ interest_rate_curve: _zod.z.object({
656
+ interest_at_zero_utilisation: _zod.z.number(),
657
+ junction_utilisation: _zod.z.number(),
658
+ interest_at_junction_utilisation: _zod.z.number(),
659
+ interest_at_max_utilisation: _zod.z.number()
660
+ })
635
661
  })
636
662
  );
637
663