@chainflip/rpc 1.5.2 → 1.5.3

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/parsers.mjs CHANGED
@@ -96,6 +96,15 @@ var cfFundingEnvironment = z.object({
96
96
  redemption_tax: numberOrHex,
97
97
  minimum_funding_amount: numberOrHex
98
98
  });
99
+ var defaultFeeInfo = {
100
+ limit_order_fee_hundredth_pips: 0,
101
+ range_order_fee_hundredth_pips: 0,
102
+ range_order_total_fees_earned: { base: "0x0", quote: "0x0" },
103
+ limit_order_total_fees_earned: { base: "0x0", quote: "0x0" },
104
+ range_total_swap_inputs: { base: "0x0", quote: "0x0" },
105
+ limit_total_swap_inputs: { base: "0x0", quote: "0x0" },
106
+ quote_asset: { chain: "Ethereum", asset: "USDC" }
107
+ };
99
108
  var cfPoolsEnvironment = z.object({
100
109
  fees: chainBaseAssetMapFactory(
101
110
  z.object({
@@ -106,16 +115,8 @@ var cfPoolsEnvironment = z.object({
106
115
  range_total_swap_inputs: z.object({ base: u256, quote: u256 }),
107
116
  limit_total_swap_inputs: z.object({ base: u256, quote: u256 }),
108
117
  quote_asset: z.object({ chain: z.literal("Ethereum"), asset: z.literal("USDC") })
109
- }),
110
- {
111
- limit_order_fee_hundredth_pips: 0,
112
- range_order_fee_hundredth_pips: 0,
113
- range_order_total_fees_earned: { base: "0x0", quote: "0x0" },
114
- limit_order_total_fees_earned: { base: "0x0", quote: "0x0" },
115
- range_total_swap_inputs: { base: "0x0", quote: "0x0" },
116
- limit_total_swap_inputs: { base: "0x0", quote: "0x0" },
117
- quote_asset: { chain: "Ethereum", asset: "USDC" }
118
- }
118
+ }).nullable().transform((info) => info ?? structuredClone(defaultFeeInfo)),
119
+ structuredClone(defaultFeeInfo)
119
120
  )
120
121
  });
121
122
  var cfEnvironment = z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainflip/rpc",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@chainflip/utils": "^0.3.0",