@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/common.d.cts +2878 -187
- package/dist/common.d.ts +2878 -187
- package/dist/parsers.cjs +12 -11
- package/dist/parsers.d.cts +2935 -244
- package/dist/parsers.d.ts +2935 -244
- package/dist/parsers.mjs +11 -10
- package/package.json +1 -1
package/dist/parsers.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true})
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/parsers.ts
|
|
2
2
|
var _guard = require('@chainflip/utils/guard');
|
|
3
3
|
var _string = require('@chainflip/utils/string');
|
|
4
4
|
var _zod = require('zod');
|
|
@@ -96,6 +96,15 @@ var cfFundingEnvironment = _zod.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 = _zod.z.object({
|
|
100
109
|
fees: chainBaseAssetMapFactory(
|
|
101
110
|
_zod.z.object({
|
|
@@ -106,16 +115,8 @@ var cfPoolsEnvironment = _zod.z.object({
|
|
|
106
115
|
range_total_swap_inputs: _zod.z.object({ base: u256, quote: u256 }),
|
|
107
116
|
limit_total_swap_inputs: _zod.z.object({ base: u256, quote: u256 }),
|
|
108
117
|
quote_asset: _zod.z.object({ chain: _zod.z.literal("Ethereum"), asset: _zod.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) => _nullishCoalesce(info, () => ( structuredClone(defaultFeeInfo)))),
|
|
119
|
+
structuredClone(defaultFeeInfo)
|
|
119
120
|
)
|
|
120
121
|
});
|
|
121
122
|
var cfEnvironment = _zod.z.object({
|