@chainflip/rpc 2.2.0-alpha.8 → 2.2.0-beta.0
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 +1729 -1685
- package/dist/common.d.mts +1729 -1685
- package/dist/parsers.cjs +15 -11
- package/dist/parsers.d.cts +1342 -1272
- package/dist/parsers.d.mts +1342 -1272
- package/dist/parsers.mjs +15 -11
- package/package.json +2 -2
package/dist/parsers.cjs
CHANGED
|
@@ -381,7 +381,7 @@ const broker = zod.z.object({
|
|
|
381
381
|
role: zod.z.literal("broker"),
|
|
382
382
|
...accountInfoCommon,
|
|
383
383
|
earned_fees: chainAssetMapFactory(numberOrHex, 0),
|
|
384
|
-
btc_vault_deposit_address: zod.z.string().
|
|
384
|
+
btc_vault_deposit_address: zod.z.string().nullish(),
|
|
385
385
|
affiliates: zod.z.array(zod.z.object({
|
|
386
386
|
account_id: accountId,
|
|
387
387
|
short_id: zod.z.number(),
|
|
@@ -768,7 +768,11 @@ const cfLoan = zod.z.object({
|
|
|
768
768
|
asset: rpcAssetSchema,
|
|
769
769
|
principal_amount: numberOrHex,
|
|
770
770
|
loan_type: zod.z.union([zod.z.object({ User: accountId }), zod.z.object({ Boost: numberOrHex })]).optional(),
|
|
771
|
-
created_at: zod.z.number().optional()
|
|
771
|
+
created_at: zod.z.number().optional(),
|
|
772
|
+
broker: zod.z.object({
|
|
773
|
+
account: accountId,
|
|
774
|
+
bps: zod.z.number()
|
|
775
|
+
}).nullish()
|
|
772
776
|
});
|
|
773
777
|
const cfLoanAccount = zod.z.object({
|
|
774
778
|
account: accountId,
|
|
@@ -809,7 +813,7 @@ const ingressEgressDeposit = zod.z.object({
|
|
|
809
813
|
deposit_details: zod.z.union([zod.z.object({ tx_hashes: zod.z.array(hexString) }), zod.z.object({
|
|
810
814
|
tx_id: zod.z.string().transform((v) => v.startsWith("0x") ? v : `0x${v}`),
|
|
811
815
|
vout: zod.z.number().int()
|
|
812
|
-
})]).
|
|
816
|
+
})]).nullish()
|
|
813
817
|
});
|
|
814
818
|
const txRef = zod.z.object({ hash: zod.z.string() });
|
|
815
819
|
const txOutId = zod.z.union([zod.z.object({ hash: zod.z.string() }), zod.z.object({ signature: zod.z.object({
|
|
@@ -824,7 +828,7 @@ const ingressEgressBroadcast = zod.z.object({
|
|
|
824
828
|
});
|
|
825
829
|
const ingressEgressVaultDeposit = zod.z.object({
|
|
826
830
|
tx_id: zod.z.string(),
|
|
827
|
-
deposit_chain_block_height: zod.z.number().
|
|
831
|
+
deposit_chain_block_height: zod.z.number().nullish(),
|
|
828
832
|
input_asset: zod.z.object({
|
|
829
833
|
chain: zod.z.string(),
|
|
830
834
|
asset: zod.z.string()
|
|
@@ -835,15 +839,15 @@ const ingressEgressVaultDeposit = zod.z.object({
|
|
|
835
839
|
}),
|
|
836
840
|
amount: u128,
|
|
837
841
|
destination_address: zod.z.string(),
|
|
838
|
-
ccm_deposit_metadata: zod.z.unknown().
|
|
839
|
-
deposit_details: zod.z.unknown().
|
|
842
|
+
ccm_deposit_metadata: zod.z.unknown().nullish(),
|
|
843
|
+
deposit_details: zod.z.unknown().nullish(),
|
|
840
844
|
broker_fee: zod.z.object({
|
|
841
845
|
account: zod.z.string().transform((v) => _chainflip_utils_ss58.encode({
|
|
842
846
|
data: _chainflip_utils_ss58.decode(v).data,
|
|
843
847
|
ss58Format: _chainflip_utils_consts.CHAINFLIP_SS58_PREFIX
|
|
844
848
|
})),
|
|
845
849
|
bps: zod.z.number()
|
|
846
|
-
}).
|
|
850
|
+
}).nullish(),
|
|
847
851
|
affiliate_fees: zod.z.array(zod.z.object({
|
|
848
852
|
account: zod.z.string().transform((v) => _chainflip_utils_ss58.encode({
|
|
849
853
|
data: _chainflip_utils_ss58.decode(v).data,
|
|
@@ -855,13 +859,13 @@ const ingressEgressVaultDeposit = zod.z.object({
|
|
|
855
859
|
retry_duration: zod.z.number(),
|
|
856
860
|
refund_address: zod.z.string(),
|
|
857
861
|
min_price: u128,
|
|
858
|
-
refund_ccm_metadata: zod.z.unknown().
|
|
859
|
-
max_oracle_price_slippage: zod.z.number().
|
|
860
|
-
}).
|
|
862
|
+
refund_ccm_metadata: zod.z.unknown().nullish(),
|
|
863
|
+
max_oracle_price_slippage: zod.z.number().nullish()
|
|
864
|
+
}).nullish(),
|
|
861
865
|
dca_params: zod.z.object({
|
|
862
866
|
number_of_chunks: zod.z.number(),
|
|
863
867
|
chunk_interval: zod.z.number()
|
|
864
|
-
}).
|
|
868
|
+
}).nullish(),
|
|
865
869
|
max_boost_fee: zod.z.number().optional()
|
|
866
870
|
});
|
|
867
871
|
const cfIngressEgressEvents = zod.z.object({
|