@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.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(),
|
|
@@ -813,7 +813,7 @@ const ingressEgressDeposit = zod.z.object({
|
|
|
813
813
|
deposit_details: zod.z.union([zod.z.object({ tx_hashes: zod.z.array(hexString) }), zod.z.object({
|
|
814
814
|
tx_id: zod.z.string().transform((v) => v.startsWith("0x") ? v : `0x${v}`),
|
|
815
815
|
vout: zod.z.number().int()
|
|
816
|
-
})]).
|
|
816
|
+
})]).nullish()
|
|
817
817
|
});
|
|
818
818
|
const txRef = zod.z.object({ hash: zod.z.string() });
|
|
819
819
|
const txOutId = zod.z.union([zod.z.object({ hash: zod.z.string() }), zod.z.object({ signature: zod.z.object({
|
|
@@ -828,7 +828,7 @@ const ingressEgressBroadcast = zod.z.object({
|
|
|
828
828
|
});
|
|
829
829
|
const ingressEgressVaultDeposit = zod.z.object({
|
|
830
830
|
tx_id: zod.z.string(),
|
|
831
|
-
deposit_chain_block_height: zod.z.number().
|
|
831
|
+
deposit_chain_block_height: zod.z.number().nullish(),
|
|
832
832
|
input_asset: zod.z.object({
|
|
833
833
|
chain: zod.z.string(),
|
|
834
834
|
asset: zod.z.string()
|
|
@@ -839,15 +839,15 @@ const ingressEgressVaultDeposit = zod.z.object({
|
|
|
839
839
|
}),
|
|
840
840
|
amount: u128,
|
|
841
841
|
destination_address: zod.z.string(),
|
|
842
|
-
ccm_deposit_metadata: zod.z.unknown().
|
|
843
|
-
deposit_details: zod.z.unknown().
|
|
842
|
+
ccm_deposit_metadata: zod.z.unknown().nullish(),
|
|
843
|
+
deposit_details: zod.z.unknown().nullish(),
|
|
844
844
|
broker_fee: zod.z.object({
|
|
845
845
|
account: zod.z.string().transform((v) => _chainflip_utils_ss58.encode({
|
|
846
846
|
data: _chainflip_utils_ss58.decode(v).data,
|
|
847
847
|
ss58Format: _chainflip_utils_consts.CHAINFLIP_SS58_PREFIX
|
|
848
848
|
})),
|
|
849
849
|
bps: zod.z.number()
|
|
850
|
-
}).
|
|
850
|
+
}).nullish(),
|
|
851
851
|
affiliate_fees: zod.z.array(zod.z.object({
|
|
852
852
|
account: zod.z.string().transform((v) => _chainflip_utils_ss58.encode({
|
|
853
853
|
data: _chainflip_utils_ss58.decode(v).data,
|
|
@@ -859,13 +859,13 @@ const ingressEgressVaultDeposit = zod.z.object({
|
|
|
859
859
|
retry_duration: zod.z.number(),
|
|
860
860
|
refund_address: zod.z.string(),
|
|
861
861
|
min_price: u128,
|
|
862
|
-
refund_ccm_metadata: zod.z.unknown().
|
|
863
|
-
max_oracle_price_slippage: zod.z.number().
|
|
864
|
-
}).
|
|
862
|
+
refund_ccm_metadata: zod.z.unknown().nullish(),
|
|
863
|
+
max_oracle_price_slippage: zod.z.number().nullish()
|
|
864
|
+
}).nullish(),
|
|
865
865
|
dca_params: zod.z.object({
|
|
866
866
|
number_of_chunks: zod.z.number(),
|
|
867
867
|
chunk_interval: zod.z.number()
|
|
868
|
-
}).
|
|
868
|
+
}).nullish(),
|
|
869
869
|
max_boost_fee: zod.z.number().optional()
|
|
870
870
|
});
|
|
871
871
|
const cfIngressEgressEvents = zod.z.object({
|