@chainflip/rpc 2.1.10 → 2.2.0-dev.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
@@ -700,7 +700,7 @@ const cfLendingPools = zod.z.array(zod.z.object({
700
700
  const cfLendingConfig = zod.z.object({
701
701
  ltv_thresholds: zod.z.object({
702
702
  target: zod.z.number(),
703
- topup: zod.z.number().nullable(),
703
+ topup: zod.z.number().nullish(),
704
704
  soft_liquidation: zod.z.number(),
705
705
  soft_liquidation_abort: zod.z.number(),
706
706
  hard_liquidation: zod.z.number(),
@@ -755,10 +755,15 @@ const cfLendingPoolSupplyBalances = zod.z.array(zod.z.intersection(rpcAssetSchem
755
755
  lp_id: accountId,
756
756
  total_amount: numberOrHex
757
757
  })) })));
758
+ const u128 = zod.z.union([
759
+ zod.z.number(),
760
+ numericString,
761
+ hexString
762
+ ]).transform((arg) => BigInt(arg));
758
763
  const ingressEgressDeposit = zod.z.object({
759
764
  deposit_chain_block_height: zod.z.number(),
760
765
  deposit_address: zod.z.string(),
761
- amount: zod.z.string(),
766
+ amount: u128,
762
767
  asset: zod.z.object({
763
768
  chain: zod.z.string(),
764
769
  asset: zod.z.string()
@@ -766,13 +771,18 @@ const ingressEgressDeposit = zod.z.object({
766
771
  deposit_details: zod.z.union([zod.z.object({ tx_hashes: zod.z.array(hexString) }), zod.z.object({
767
772
  tx_id: zod.z.string().transform((v) => v.startsWith("0x") ? v : `0x${v}`),
768
773
  vout: zod.z.number().int()
769
- })]).nullable()
774
+ })]).nullable().optional()
770
775
  });
776
+ const txRef = zod.z.object({ hash: zod.z.string() });
777
+ const txOutId = zod.z.union([zod.z.object({ hash: zod.z.string() }), zod.z.object({ signature: zod.z.object({
778
+ s: zod.z.array(zod.z.number()),
779
+ k_times_g_address: zod.z.array(zod.z.number())
780
+ }) })]);
771
781
  const ingressEgressBroadcast = zod.z.object({
772
782
  broadcast_id: zod.z.number(),
773
783
  broadcast_chain_block_height: zod.z.number(),
774
- tx_out_id: zod.z.unknown(),
775
- tx_ref: zod.z.unknown()
784
+ tx_out_id: txOutId,
785
+ tx_ref: txRef
776
786
  });
777
787
  const ingressEgressVaultDeposit = zod.z.object({
778
788
  tx_id: zod.z.string(),
@@ -785,7 +795,7 @@ const ingressEgressVaultDeposit = zod.z.object({
785
795
  chain: zod.z.string(),
786
796
  asset: zod.z.string()
787
797
  }),
788
- amount: zod.z.string(),
798
+ amount: u128,
789
799
  destination_address: zod.z.string(),
790
800
  ccm_deposit_metadata: zod.z.unknown().nullable().optional(),
791
801
  deposit_details: zod.z.unknown().nullable().optional(),
@@ -806,9 +816,9 @@ const ingressEgressVaultDeposit = zod.z.object({
806
816
  refund_params: zod.z.object({
807
817
  retry_duration: zod.z.number(),
808
818
  refund_address: zod.z.string(),
809
- min_price: zod.z.string(),
819
+ min_price: u128,
810
820
  refund_ccm_metadata: zod.z.unknown().nullable().optional(),
811
- max_oracle_price_slippage: zod.z.unknown().nullable().optional()
821
+ max_oracle_price_slippage: zod.z.number().nullable().optional()
812
822
  }).nullable().optional(),
813
823
  dca_params: zod.z.object({
814
824
  number_of_chunks: zod.z.number(),