@chainflip/rpc 2.2.0-alpha.9 → 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 +1555 -1555
- package/dist/common.d.mts +1555 -1555
- package/dist/parsers.cjs +10 -10
- package/dist/parsers.d.cts +1306 -1306
- package/dist/parsers.d.mts +1306 -1306
- package/dist/parsers.mjs +10 -10
- 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(),
|
|
@@ -810,7 +810,7 @@ const ingressEgressDeposit = z.object({
|
|
|
810
810
|
deposit_details: z.union([z.object({ tx_hashes: z.array(hexString) }), z.object({
|
|
811
811
|
tx_id: z.string().transform((v) => v.startsWith("0x") ? v : `0x${v}`),
|
|
812
812
|
vout: z.number().int()
|
|
813
|
-
})]).
|
|
813
|
+
})]).nullish()
|
|
814
814
|
});
|
|
815
815
|
const txRef = z.object({ hash: z.string() });
|
|
816
816
|
const txOutId = z.union([z.object({ hash: z.string() }), z.object({ signature: z.object({
|
|
@@ -825,7 +825,7 @@ const ingressEgressBroadcast = z.object({
|
|
|
825
825
|
});
|
|
826
826
|
const ingressEgressVaultDeposit = z.object({
|
|
827
827
|
tx_id: z.string(),
|
|
828
|
-
deposit_chain_block_height: z.number().
|
|
828
|
+
deposit_chain_block_height: z.number().nullish(),
|
|
829
829
|
input_asset: z.object({
|
|
830
830
|
chain: z.string(),
|
|
831
831
|
asset: z.string()
|
|
@@ -836,15 +836,15 @@ const ingressEgressVaultDeposit = z.object({
|
|
|
836
836
|
}),
|
|
837
837
|
amount: u128,
|
|
838
838
|
destination_address: z.string(),
|
|
839
|
-
ccm_deposit_metadata: z.unknown().
|
|
840
|
-
deposit_details: z.unknown().
|
|
839
|
+
ccm_deposit_metadata: z.unknown().nullish(),
|
|
840
|
+
deposit_details: z.unknown().nullish(),
|
|
841
841
|
broker_fee: z.object({
|
|
842
842
|
account: z.string().transform((v) => ss58.encode({
|
|
843
843
|
data: ss58.decode(v).data,
|
|
844
844
|
ss58Format: CHAINFLIP_SS58_PREFIX
|
|
845
845
|
})),
|
|
846
846
|
bps: z.number()
|
|
847
|
-
}).
|
|
847
|
+
}).nullish(),
|
|
848
848
|
affiliate_fees: z.array(z.object({
|
|
849
849
|
account: z.string().transform((v) => ss58.encode({
|
|
850
850
|
data: ss58.decode(v).data,
|
|
@@ -856,13 +856,13 @@ const ingressEgressVaultDeposit = z.object({
|
|
|
856
856
|
retry_duration: z.number(),
|
|
857
857
|
refund_address: z.string(),
|
|
858
858
|
min_price: u128,
|
|
859
|
-
refund_ccm_metadata: z.unknown().
|
|
860
|
-
max_oracle_price_slippage: z.number().
|
|
861
|
-
}).
|
|
859
|
+
refund_ccm_metadata: z.unknown().nullish(),
|
|
860
|
+
max_oracle_price_slippage: z.number().nullish()
|
|
861
|
+
}).nullish(),
|
|
862
862
|
dca_params: z.object({
|
|
863
863
|
number_of_chunks: z.number(),
|
|
864
864
|
chunk_interval: z.number()
|
|
865
|
-
}).
|
|
865
|
+
}).nullish(),
|
|
866
866
|
max_boost_fee: z.number().optional()
|
|
867
867
|
});
|
|
868
868
|
const cfIngressEgressEvents = z.object({
|
package/package.json
CHANGED