@chainflip/rpc 2.1.9 → 2.1.11
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/common.d.cts +558 -489
- package/dist/common.d.mts +558 -489
- package/dist/parsers.cjs +20 -10
- package/dist/parsers.d.cts +758 -689
- package/dist/parsers.d.mts +758 -689
- package/dist/parsers.mjs +20 -10
- package/package.json +1 -1
package/dist/parsers.cjs
CHANGED
|
@@ -653,8 +653,8 @@ const cfSafeModeStatuses = zod.z.object({
|
|
|
653
653
|
borrowing: cfSupportedAssets,
|
|
654
654
|
add_lender_funds: cfSupportedAssets,
|
|
655
655
|
withdraw_lender_funds: cfSupportedAssets,
|
|
656
|
-
add_collateral: cfSupportedAssets,
|
|
657
|
-
remove_collateral: cfSupportedAssets,
|
|
656
|
+
add_collateral: cfSupportedAssets.optional(),
|
|
657
|
+
remove_collateral: cfSupportedAssets.optional(),
|
|
658
658
|
liquidations_enabled: zod.z.boolean()
|
|
659
659
|
}),
|
|
660
660
|
broadcast_ethereum: broadcastPalletSafeModeStatuses,
|
|
@@ -725,7 +725,7 @@ const cfLendingConfig = zod.z.object({
|
|
|
725
725
|
minimum_loan_amount_usd: numberOrHex,
|
|
726
726
|
minimum_supply_amount_usd: numberOrHex,
|
|
727
727
|
minimum_update_loan_amount_usd: numberOrHex,
|
|
728
|
-
minimum_update_collateral_amount_usd: numberOrHex
|
|
728
|
+
minimum_update_collateral_amount_usd: numberOrHex.optional()
|
|
729
729
|
});
|
|
730
730
|
const cfLoanAccount = zod.z.object({
|
|
731
731
|
account: accountId,
|
|
@@ -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:
|
|
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:
|
|
775
|
-
tx_ref:
|
|
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:
|
|
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:
|
|
819
|
+
min_price: u128,
|
|
810
820
|
refund_ccm_metadata: zod.z.unknown().nullable().optional(),
|
|
811
|
-
max_oracle_price_slippage: zod.z.
|
|
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(),
|