@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.mjs
CHANGED
|
@@ -378,7 +378,7 @@ const broker = z.object({
|
|
|
378
378
|
role: z.literal("broker"),
|
|
379
379
|
...accountInfoCommon,
|
|
380
380
|
earned_fees: chainAssetMapFactory(numberOrHex, 0),
|
|
381
|
-
btc_vault_deposit_address: z.string().
|
|
381
|
+
btc_vault_deposit_address: z.string().nullish(),
|
|
382
382
|
affiliates: z.array(z.object({
|
|
383
383
|
account_id: accountId,
|
|
384
384
|
short_id: z.number(),
|
|
@@ -765,7 +765,11 @@ const cfLoan = z.object({
|
|
|
765
765
|
asset: rpcAssetSchema,
|
|
766
766
|
principal_amount: numberOrHex,
|
|
767
767
|
loan_type: z.union([z.object({ User: accountId }), z.object({ Boost: numberOrHex })]).optional(),
|
|
768
|
-
created_at: z.number().optional()
|
|
768
|
+
created_at: z.number().optional(),
|
|
769
|
+
broker: z.object({
|
|
770
|
+
account: accountId,
|
|
771
|
+
bps: z.number()
|
|
772
|
+
}).nullish()
|
|
769
773
|
});
|
|
770
774
|
const cfLoanAccount = z.object({
|
|
771
775
|
account: accountId,
|
|
@@ -806,7 +810,7 @@ const ingressEgressDeposit = z.object({
|
|
|
806
810
|
deposit_details: z.union([z.object({ tx_hashes: z.array(hexString) }), z.object({
|
|
807
811
|
tx_id: z.string().transform((v) => v.startsWith("0x") ? v : `0x${v}`),
|
|
808
812
|
vout: z.number().int()
|
|
809
|
-
})]).
|
|
813
|
+
})]).nullish()
|
|
810
814
|
});
|
|
811
815
|
const txRef = z.object({ hash: z.string() });
|
|
812
816
|
const txOutId = z.union([z.object({ hash: z.string() }), z.object({ signature: z.object({
|
|
@@ -821,7 +825,7 @@ const ingressEgressBroadcast = z.object({
|
|
|
821
825
|
});
|
|
822
826
|
const ingressEgressVaultDeposit = z.object({
|
|
823
827
|
tx_id: z.string(),
|
|
824
|
-
deposit_chain_block_height: z.number().
|
|
828
|
+
deposit_chain_block_height: z.number().nullish(),
|
|
825
829
|
input_asset: z.object({
|
|
826
830
|
chain: z.string(),
|
|
827
831
|
asset: z.string()
|
|
@@ -832,15 +836,15 @@ const ingressEgressVaultDeposit = z.object({
|
|
|
832
836
|
}),
|
|
833
837
|
amount: u128,
|
|
834
838
|
destination_address: z.string(),
|
|
835
|
-
ccm_deposit_metadata: z.unknown().
|
|
836
|
-
deposit_details: z.unknown().
|
|
839
|
+
ccm_deposit_metadata: z.unknown().nullish(),
|
|
840
|
+
deposit_details: z.unknown().nullish(),
|
|
837
841
|
broker_fee: z.object({
|
|
838
842
|
account: z.string().transform((v) => ss58.encode({
|
|
839
843
|
data: ss58.decode(v).data,
|
|
840
844
|
ss58Format: CHAINFLIP_SS58_PREFIX
|
|
841
845
|
})),
|
|
842
846
|
bps: z.number()
|
|
843
|
-
}).
|
|
847
|
+
}).nullish(),
|
|
844
848
|
affiliate_fees: z.array(z.object({
|
|
845
849
|
account: z.string().transform((v) => ss58.encode({
|
|
846
850
|
data: ss58.decode(v).data,
|
|
@@ -852,13 +856,13 @@ const ingressEgressVaultDeposit = z.object({
|
|
|
852
856
|
retry_duration: z.number(),
|
|
853
857
|
refund_address: z.string(),
|
|
854
858
|
min_price: u128,
|
|
855
|
-
refund_ccm_metadata: z.unknown().
|
|
856
|
-
max_oracle_price_slippage: z.number().
|
|
857
|
-
}).
|
|
859
|
+
refund_ccm_metadata: z.unknown().nullish(),
|
|
860
|
+
max_oracle_price_slippage: z.number().nullish()
|
|
861
|
+
}).nullish(),
|
|
858
862
|
dca_params: z.object({
|
|
859
863
|
number_of_chunks: z.number(),
|
|
860
864
|
chunk_interval: z.number()
|
|
861
|
-
}).
|
|
865
|
+
}).nullish(),
|
|
862
866
|
max_boost_fee: z.number().optional()
|
|
863
867
|
});
|
|
864
868
|
const cfIngressEgressEvents = z.object({
|
package/package.json
CHANGED