@chainflip/rpc 2.1.8 → 2.1.10

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
@@ -650,8 +650,8 @@ const cfSafeModeStatuses = z.object({
650
650
  borrowing: cfSupportedAssets,
651
651
  add_lender_funds: cfSupportedAssets,
652
652
  withdraw_lender_funds: cfSupportedAssets,
653
- add_collateral: cfSupportedAssets,
654
- remove_collateral: cfSupportedAssets,
653
+ add_collateral: cfSupportedAssets.optional(),
654
+ remove_collateral: cfSupportedAssets.optional(),
655
655
  liquidations_enabled: z.boolean()
656
656
  }),
657
657
  broadcast_ethereum: broadcastPalletSafeModeStatuses,
@@ -722,7 +722,7 @@ const cfLendingConfig = z.object({
722
722
  minimum_loan_amount_usd: numberOrHex,
723
723
  minimum_supply_amount_usd: numberOrHex,
724
724
  minimum_update_loan_amount_usd: numberOrHex,
725
- minimum_update_collateral_amount_usd: numberOrHex
725
+ minimum_update_collateral_amount_usd: numberOrHex.optional()
726
726
  });
727
727
  const cfLoanAccount = z.object({
728
728
  account: accountId,
@@ -792,7 +792,7 @@ const ingressEgressVaultDeposit = z.object({
792
792
  ss58Format: CHAINFLIP_SS58_PREFIX
793
793
  })),
794
794
  bps: z.number()
795
- }).optional(),
795
+ }).nullable().optional(),
796
796
  affiliate_fees: z.array(z.object({
797
797
  account: z.string().transform((v) => ss58.encode({
798
798
  data: ss58.decode(v).data,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainflip/rpc",
3
- "version": "2.1.8",
3
+ "version": "2.1.10",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@chainflip/utils": "2.1.2",