@lifi/perps-sdk 21.0.0 → 22.0.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.
Files changed (207) hide show
  1. package/README.md +84 -16
  2. package/dist/cjs/client/PerpsClient.d.ts +3 -3
  3. package/dist/cjs/client/PerpsClient.d.ts.map +1 -1
  4. package/dist/cjs/client/PerpsClient.js.map +1 -1
  5. package/dist/cjs/decimal/convert.d.ts +1 -5
  6. package/dist/cjs/decimal/convert.d.ts.map +1 -1
  7. package/dist/cjs/decimal/convert.js +10 -28
  8. package/dist/cjs/decimal/convert.js.map +1 -1
  9. package/dist/cjs/decimal/format.d.ts +2 -1
  10. package/dist/cjs/decimal/format.d.ts.map +1 -1
  11. package/dist/cjs/decimal/format.js.map +1 -1
  12. package/dist/cjs/decimal/parse.d.ts +2 -4
  13. package/dist/cjs/decimal/parse.d.ts.map +1 -1
  14. package/dist/cjs/decimal/parse.js +5 -2
  15. package/dist/cjs/decimal/parse.js.map +1 -1
  16. package/dist/cjs/decimal/requireDecimal.d.ts.map +1 -0
  17. package/dist/cjs/{wire → decimal}/requireDecimal.js +2 -1
  18. package/dist/cjs/decimal/requireDecimal.js.map +1 -0
  19. package/dist/cjs/index.d.ts +5 -5
  20. package/dist/cjs/index.d.ts.map +1 -1
  21. package/dist/cjs/index.js +6 -20
  22. package/dist/cjs/index.js.map +1 -1
  23. package/dist/cjs/math/fills.d.ts +3 -3
  24. package/dist/cjs/math/fills.d.ts.map +1 -1
  25. package/dist/cjs/math/fills.js.map +1 -1
  26. package/dist/cjs/math/order.d.ts +1 -8
  27. package/dist/cjs/math/order.d.ts.map +1 -1
  28. package/dist/cjs/math/order.js +6 -11
  29. package/dist/cjs/math/order.js.map +1 -1
  30. package/dist/cjs/math/position.d.ts +3 -8
  31. package/dist/cjs/math/position.d.ts.map +1 -1
  32. package/dist/cjs/math/position.js +12 -12
  33. package/dist/cjs/math/position.js.map +1 -1
  34. package/dist/cjs/services/getActivity.d.ts.map +1 -1
  35. package/dist/cjs/services/getActivity.js.map +1 -1
  36. package/dist/cjs/services/getFills.d.ts.map +1 -1
  37. package/dist/cjs/services/getFills.js.map +1 -1
  38. package/dist/cjs/services/getOrder.d.ts.map +1 -1
  39. package/dist/cjs/services/getOrder.js.map +1 -1
  40. package/dist/cjs/services/getOrders.d.ts.map +1 -1
  41. package/dist/cjs/services/getOrders.js.map +1 -1
  42. package/dist/cjs/services/getPositions.d.ts.map +1 -1
  43. package/dist/cjs/services/getPositions.js.map +1 -1
  44. package/dist/cjs/services/resolveSubscribeQuote.d.ts +1 -1
  45. package/dist/cjs/services/resolveSubscribeQuote.d.ts.map +1 -1
  46. package/dist/cjs/services/resolveSubscribeQuote.js +24 -13
  47. package/dist/cjs/services/resolveSubscribeQuote.js.map +1 -1
  48. package/dist/cjs/types/api.d.ts +4 -4
  49. package/dist/cjs/types/api.d.ts.map +1 -1
  50. package/dist/cjs/types/provider.d.ts +1 -1
  51. package/dist/cjs/types/provider.d.ts.map +1 -1
  52. package/dist/cjs/version.d.ts +1 -1
  53. package/dist/cjs/version.js +1 -1
  54. package/dist/cjs/wire/orderAmounts.d.ts +1 -2
  55. package/dist/cjs/wire/orderAmounts.d.ts.map +1 -1
  56. package/dist/cjs/wire/orderAmounts.js +19 -52
  57. package/dist/cjs/wire/orderAmounts.js.map +1 -1
  58. package/dist/cjs/wire/refuel.js +1 -1
  59. package/dist/cjs/wire/refuel.js.map +1 -1
  60. package/dist/cjs/wire/transferable.js +1 -1
  61. package/dist/cjs/wire/transferable.js.map +1 -1
  62. package/dist/cjs/wire/withdraw.d.ts.map +1 -1
  63. package/dist/cjs/wire/withdraw.js +1 -1
  64. package/dist/cjs/wire/withdraw.js.map +1 -1
  65. package/dist/esm/client/PerpsClient.d.ts +40 -8
  66. package/dist/esm/client/PerpsClient.d.ts.map +1 -1
  67. package/dist/esm/client/PerpsClient.js +37 -5
  68. package/dist/esm/client/PerpsClient.js.map +1 -1
  69. package/dist/esm/decimal/convert.d.ts +8 -24
  70. package/dist/esm/decimal/convert.d.ts.map +1 -1
  71. package/dist/esm/decimal/convert.js +16 -42
  72. package/dist/esm/decimal/convert.js.map +1 -1
  73. package/dist/esm/decimal/format.d.ts +2 -1
  74. package/dist/esm/decimal/format.d.ts.map +1 -1
  75. package/dist/esm/decimal/format.js.map +1 -1
  76. package/dist/esm/decimal/parse.d.ts +7 -20
  77. package/dist/esm/decimal/parse.d.ts.map +1 -1
  78. package/dist/esm/decimal/parse.js +9 -4
  79. package/dist/esm/decimal/parse.js.map +1 -1
  80. package/dist/esm/{wire → decimal}/requireDecimal.d.ts +1 -1
  81. package/dist/esm/decimal/requireDecimal.d.ts.map +1 -0
  82. package/dist/esm/{wire → decimal}/requireDecimal.js +3 -2
  83. package/dist/esm/decimal/requireDecimal.js.map +1 -0
  84. package/dist/esm/index.d.ts +5 -5
  85. package/dist/esm/index.d.ts.map +1 -1
  86. package/dist/esm/index.js +4 -4
  87. package/dist/esm/index.js.map +1 -1
  88. package/dist/esm/math/fills.d.ts +3 -3
  89. package/dist/esm/math/fills.d.ts.map +1 -1
  90. package/dist/esm/math/fills.js +1 -1
  91. package/dist/esm/math/fills.js.map +1 -1
  92. package/dist/esm/math/order.d.ts +3 -34
  93. package/dist/esm/math/order.d.ts.map +1 -1
  94. package/dist/esm/math/order.js +8 -26
  95. package/dist/esm/math/order.js.map +1 -1
  96. package/dist/esm/math/position.d.ts +16 -34
  97. package/dist/esm/math/position.d.ts.map +1 -1
  98. package/dist/esm/math/position.js +23 -36
  99. package/dist/esm/math/position.js.map +1 -1
  100. package/dist/esm/services/getActivity.d.ts +4 -0
  101. package/dist/esm/services/getActivity.d.ts.map +1 -1
  102. package/dist/esm/services/getActivity.js +4 -0
  103. package/dist/esm/services/getActivity.js.map +1 -1
  104. package/dist/esm/services/getFills.d.ts +4 -0
  105. package/dist/esm/services/getFills.d.ts.map +1 -1
  106. package/dist/esm/services/getFills.js +4 -0
  107. package/dist/esm/services/getFills.js.map +1 -1
  108. package/dist/esm/services/getOrder.d.ts +4 -0
  109. package/dist/esm/services/getOrder.d.ts.map +1 -1
  110. package/dist/esm/services/getOrder.js +4 -0
  111. package/dist/esm/services/getOrder.js.map +1 -1
  112. package/dist/esm/services/getOrders.d.ts +10 -1
  113. package/dist/esm/services/getOrders.d.ts.map +1 -1
  114. package/dist/esm/services/getOrders.js +10 -1
  115. package/dist/esm/services/getOrders.js.map +1 -1
  116. package/dist/esm/services/getPositions.d.ts +4 -0
  117. package/dist/esm/services/getPositions.d.ts.map +1 -1
  118. package/dist/esm/services/getPositions.js +4 -0
  119. package/dist/esm/services/getPositions.js.map +1 -1
  120. package/dist/esm/services/resolveSubscribeQuote.d.ts +6 -1
  121. package/dist/esm/services/resolveSubscribeQuote.d.ts.map +1 -1
  122. package/dist/esm/services/resolveSubscribeQuote.js +29 -13
  123. package/dist/esm/services/resolveSubscribeQuote.js.map +1 -1
  124. package/dist/esm/types/api.d.ts +4 -4
  125. package/dist/esm/types/api.d.ts.map +1 -1
  126. package/dist/esm/types/provider.d.ts +1 -1
  127. package/dist/esm/types/provider.d.ts.map +1 -1
  128. package/dist/esm/version.d.ts +1 -1
  129. package/dist/esm/version.js +1 -1
  130. package/dist/esm/wire/orderAmounts.d.ts +15 -29
  131. package/dist/esm/wire/orderAmounts.d.ts.map +1 -1
  132. package/dist/esm/wire/orderAmounts.js +28 -88
  133. package/dist/esm/wire/orderAmounts.js.map +1 -1
  134. package/dist/esm/wire/refuel.js +1 -1
  135. package/dist/esm/wire/refuel.js.map +1 -1
  136. package/dist/esm/wire/transferable.js +1 -1
  137. package/dist/esm/wire/transferable.js.map +1 -1
  138. package/dist/esm/wire/withdraw.d.ts.map +1 -1
  139. package/dist/esm/wire/withdraw.js +1 -1
  140. package/dist/esm/wire/withdraw.js.map +1 -1
  141. package/dist/types/client/PerpsClient.d.ts +40 -8
  142. package/dist/types/client/PerpsClient.d.ts.map +1 -1
  143. package/dist/types/decimal/convert.d.ts +8 -24
  144. package/dist/types/decimal/convert.d.ts.map +1 -1
  145. package/dist/types/decimal/format.d.ts +2 -1
  146. package/dist/types/decimal/format.d.ts.map +1 -1
  147. package/dist/types/decimal/parse.d.ts +7 -20
  148. package/dist/types/decimal/parse.d.ts.map +1 -1
  149. package/dist/types/{wire → decimal}/requireDecimal.d.ts +1 -1
  150. package/dist/types/decimal/requireDecimal.d.ts.map +1 -0
  151. package/dist/types/index.d.ts +5 -5
  152. package/dist/types/index.d.ts.map +1 -1
  153. package/dist/types/math/fills.d.ts +3 -3
  154. package/dist/types/math/fills.d.ts.map +1 -1
  155. package/dist/types/math/order.d.ts +3 -34
  156. package/dist/types/math/order.d.ts.map +1 -1
  157. package/dist/types/math/position.d.ts +16 -34
  158. package/dist/types/math/position.d.ts.map +1 -1
  159. package/dist/types/services/getActivity.d.ts +4 -0
  160. package/dist/types/services/getActivity.d.ts.map +1 -1
  161. package/dist/types/services/getFills.d.ts +4 -0
  162. package/dist/types/services/getFills.d.ts.map +1 -1
  163. package/dist/types/services/getOrder.d.ts +4 -0
  164. package/dist/types/services/getOrder.d.ts.map +1 -1
  165. package/dist/types/services/getOrders.d.ts +10 -1
  166. package/dist/types/services/getOrders.d.ts.map +1 -1
  167. package/dist/types/services/getPositions.d.ts +4 -0
  168. package/dist/types/services/getPositions.d.ts.map +1 -1
  169. package/dist/types/services/resolveSubscribeQuote.d.ts +6 -1
  170. package/dist/types/services/resolveSubscribeQuote.d.ts.map +1 -1
  171. package/dist/types/types/api.d.ts +4 -4
  172. package/dist/types/types/api.d.ts.map +1 -1
  173. package/dist/types/types/provider.d.ts +1 -1
  174. package/dist/types/types/provider.d.ts.map +1 -1
  175. package/dist/types/version.d.ts +1 -1
  176. package/dist/types/wire/orderAmounts.d.ts +15 -29
  177. package/dist/types/wire/orderAmounts.d.ts.map +1 -1
  178. package/dist/types/wire/withdraw.d.ts.map +1 -1
  179. package/package.json +2 -2
  180. package/src/client/PerpsClient.ts +40 -7
  181. package/src/decimal/convert.ts +27 -54
  182. package/src/decimal/format.ts +3 -1
  183. package/src/decimal/parse.ts +10 -6
  184. package/src/{wire → decimal}/requireDecimal.ts +3 -6
  185. package/src/index.ts +4 -21
  186. package/src/math/fills.ts +8 -4
  187. package/src/math/order.ts +8 -31
  188. package/src/math/position.ts +32 -43
  189. package/src/services/getActivity.ts +4 -0
  190. package/src/services/getFills.ts +4 -0
  191. package/src/services/getOrder.ts +4 -0
  192. package/src/services/getOrders.ts +10 -1
  193. package/src/services/getPositions.ts +4 -0
  194. package/src/services/resolveSubscribeQuote.ts +37 -19
  195. package/src/types/api.ts +4 -3
  196. package/src/types/provider.ts +1 -1
  197. package/src/version.ts +1 -1
  198. package/src/wire/orderAmounts.ts +35 -117
  199. package/src/wire/refuel.ts +1 -1
  200. package/src/wire/transferable.ts +1 -1
  201. package/src/wire/withdraw.ts +1 -1
  202. package/dist/cjs/wire/requireDecimal.d.ts.map +0 -1
  203. package/dist/cjs/wire/requireDecimal.js.map +0 -1
  204. package/dist/esm/wire/requireDecimal.d.ts.map +0 -1
  205. package/dist/esm/wire/requireDecimal.js.map +0 -1
  206. package/dist/types/wire/requireDecimal.d.ts.map +0 -1
  207. /package/dist/cjs/{wire → decimal}/requireDecimal.d.ts +0 -0
@@ -1,12 +1,7 @@
1
- import {
2
- type DecimalString,
3
- isDecimalString,
4
- type Market,
5
- PerpsErrorCode,
6
- } from '@lifi/perps-types'
1
+ import type { DecimalString, Market } from '@lifi/perps-types'
7
2
  import Big from 'big.js'
8
- import { TruncBig } from '../decimal/big.js'
9
- import { PerpsError } from '../errors/PerpsError.js'
3
+ import { DivBig, TruncBig } from '../decimal/big.js'
4
+ import { isDecimalString } from '../decimal/parse.js'
10
5
  import type { PerpsSDKClient } from '../types/provider.js'
11
6
  import { snapOrderSize } from './snap.js'
12
7
 
@@ -19,66 +14,22 @@ export interface OrderAmountsInput {
19
14
  amount: DecimalString
20
15
  leverage: number
21
16
  price: DecimalString
22
- /** Decimals for the quote-asset amounts (margin, notional). Default 2. */
23
- quoteDecimals?: number
24
17
  }
25
18
 
26
19
  /** @public */
27
20
  export interface OrderAmounts {
28
21
  /**
29
- * On the `quoteDecimals` grid: rounded up when derived, so it funds `size`
30
- * at the requested leverage, and truncated when the user holds it.
22
+ * The held `amount`, byte-identical, when the user holds the margin;
23
+ * otherwise `notional ÷ leverage`, a display and comparison value that
24
+ * never reaches a venue.
31
25
  */
32
26
  margin: DecimalString
33
- /** Snapped onto the venue lot grid. */
27
+ /** Snapped onto the venue lot grid; the one amount an order sends. */
34
28
  size: DecimalString
35
- /** Truncated to `quoteDecimals`. */
29
+ /** Exactly `size × price`, from the snapped size. */
36
30
  notional: DecimalString
37
31
  }
38
32
 
39
- const DEFAULT_QUOTE_DECIMALS = 2
40
- const TEN = new Big(10)
41
-
42
- /** Round a quote amount down onto its decimal grid, with no trailing zeros. */
43
- function quoteAmount(value: Big, decimals: number): DecimalString {
44
- const truncated = value.round(decimals, Big.roundDown)
45
- return truncated.eq(0) ? '0' : truncated.toFixed()
46
- }
47
-
48
- /**
49
- * The smallest margin on the `decimals` grid that funds `notional` at
50
- * `leverage`, so `margin × leverage ≥ notional` holds. The one derived amount
51
- * that rounds up: a margin rounded down under-funds the size it backs.
52
- *
53
- * The ceiling is exact: the remainder decides the carry, so the result never
54
- * leans on a fixed decimal-place limit the way `div` then `round` would.
55
- */
56
- function coveringMargin(
57
- notional: Big,
58
- leverage: Big,
59
- decimals: number
60
- ): DecimalString {
61
- const scale = TEN.pow(decimals)
62
- const scaled = notional.times(scale)
63
- const remainder = scaled.mod(leverage)
64
- const whole = scaled.minus(remainder).div(leverage)
65
- const covering = remainder.eq(0) ? whole : whole.plus(1)
66
- return covering.eq(0) ? '0' : covering.div(scale).toFixed()
67
- }
68
-
69
- /**
70
- * An order needs three positive amounts. A grid that snaps any of them to
71
- * zero — a sub-lot size, a sub-cent quote amount — describes no order a venue
72
- * can take, so the caller gets `null` instead of a result it has to re-check.
73
- */
74
- function executable(amounts: OrderAmounts): OrderAmounts | null {
75
- const positive =
76
- new Big(amounts.size).gt(0) &&
77
- new Big(amounts.margin).gt(0) &&
78
- new Big(amounts.notional).gt(0)
79
- return positive ? amounts : null
80
- }
81
-
82
33
  function positiveDecimal(value: DecimalString): Big | null {
83
34
  if (!isDecimalString(value)) {
84
35
  return null
@@ -89,47 +40,22 @@ function positiveDecimal(value: DecimalString): Big | null {
89
40
 
90
41
  /**
91
42
  * The three order-entry amounts, derived from whichever one the user typed.
43
+ * Only `size` snaps, onto the market's venue lot grid, because an order sends
44
+ * size alone; no quote amount has a grid. A held margin returns byte-identical,
45
+ * `notional` is the snapped size × price, and a derived margin is
46
+ * `notional ÷ leverage` in `DivBig` (40 places, half-up).
92
47
  *
93
- * The held field is normalised first — truncated to `quoteDecimals` for a
94
- * margin or notional, snapped onto the venue lot grid for a size — and the
95
- * other two are then derived from that normalised value, so the three agree
96
- * with each other rather than with an input the user cannot see.
97
- *
98
- * Rounding is directional, so the result always funds itself:
99
- * `size × price ≤ margin × leverage`. A derived size truncates onto the lot
100
- * grid and a derived notional truncates onto the quote grid, but a derived
101
- * margin rounds **up** onto the quote grid, because it is the one amount that
102
- * has to cover the others rather than cap them.
103
- *
104
- * Formulas: `size = margin × leverage ÷ price`,
105
- * `margin = size × price ÷ leverage`, `notional = size × price`
106
- * (or `margin × leverage` when the margin is held).
107
- *
108
- * @returns `null` when `amount` or `price` is not a positive decimal string,
109
- * when `leverage` is not a positive finite number, or when the venue and
110
- * quote grids snap the result to a non-positive amount — a sub-lot size or
111
- * a sub-cent quote amount describes no order a venue can take.
112
- * @throws {PerpsError} `ValidationError` when `quoteDecimals` is not a
113
- * non-negative integer, or `SDKError` when `market.providerId` names no
114
- * registered provider plugin.
48
+ * @returns `null` when `amount` or `price` is not a positive
49
+ * {@link DecimalString}, when `leverage` is not a positive finite number, or
50
+ * when the snapped size is zero (below one lot).
51
+ * @throws {PerpsError} `SDKError` when `market.providerId` names no registered
52
+ * provider plugin.
115
53
  * @public
116
54
  */
117
55
  export function calculateOrderAmounts(
118
56
  input: OrderAmountsInput
119
57
  ): OrderAmounts | null {
120
- const {
121
- sdk,
122
- market,
123
- held,
124
- leverage,
125
- quoteDecimals = DEFAULT_QUOTE_DECIMALS,
126
- } = input
127
- if (!Number.isInteger(quoteDecimals) || quoteDecimals < 0) {
128
- throw new PerpsError(
129
- PerpsErrorCode.ValidationError,
130
- `Invalid quoteDecimals for order amounts: ${quoteDecimals}`
131
- )
132
- }
58
+ const { sdk, market, held, leverage } = input
133
59
  const amount = positiveDecimal(input.amount)
134
60
  const price = positiveDecimal(input.price)
135
61
  if (
@@ -140,33 +66,25 @@ export function calculateOrderAmounts(
140
66
  ) {
141
67
  return null
142
68
  }
143
- const leverageFactor = new TruncBig(leverage)
144
69
 
145
- if (held === 'size') {
146
- const size = snapOrderSize(sdk, market, amount.toFixed())
147
- const notional = new TruncBig(size).times(price)
148
- return executable({
149
- margin: coveringMargin(notional, leverageFactor, quoteDecimals),
150
- size,
151
- notional: quoteAmount(notional, quoteDecimals),
152
- })
70
+ const requested =
71
+ held === 'size'
72
+ ? input.amount
73
+ : held === 'notional'
74
+ ? amount.div(price).toFixed()
75
+ : amount.times(leverage).div(price).toFixed()
76
+ const size = snapOrderSize(sdk, market, requested)
77
+ if (new Big(size).eq(0)) {
78
+ return null
153
79
  }
154
80
 
155
- if (held === 'notional') {
156
- const notional = quoteAmount(amount, quoteDecimals)
157
- const exact = new TruncBig(notional)
158
- return executable({
159
- margin: coveringMargin(exact, leverageFactor, quoteDecimals),
160
- size: snapOrderSize(sdk, market, exact.div(price).toFixed()),
161
- notional,
162
- })
81
+ const notional = new TruncBig(size).times(price)
82
+ return {
83
+ margin:
84
+ held === 'margin'
85
+ ? input.amount
86
+ : new DivBig(notional).div(leverage).toFixed(),
87
+ size,
88
+ notional: notional.toFixed(),
163
89
  }
164
-
165
- const margin = quoteAmount(amount, quoteDecimals)
166
- const notional = new TruncBig(margin).times(leverage)
167
- return executable({
168
- margin,
169
- size: snapOrderSize(sdk, market, notional.div(price).toFixed()),
170
- notional: quoteAmount(notional, quoteDecimals),
171
- })
172
90
  }
@@ -1,7 +1,7 @@
1
1
  import { type DecimalString, PerpsErrorCode } from '@lifi/perps-types'
2
2
  import { DivBig } from '../decimal/big.js'
3
+ import { requireDecimal } from '../decimal/requireDecimal.js'
3
4
  import { PerpsError } from '../errors/PerpsError.js'
4
- import { requireDecimal } from './requireDecimal.js'
5
5
 
6
6
  /** @public */
7
7
  export interface RefuelAmountInput {
@@ -1,5 +1,5 @@
1
1
  import type { DecimalString } from '@lifi/perps-types'
2
- import { requireDecimal } from './requireDecimal.js'
2
+ import { requireDecimal } from '../decimal/requireDecimal.js'
3
3
 
4
4
  /**
5
5
  * The part of `units` that a venue-wide free figure releases: never below
@@ -1,6 +1,6 @@
1
1
  import type { DecimalString } from '@lifi/perps-types'
2
+ import { requireDecimal } from '../decimal/requireDecimal.js'
2
3
  import type { WithdrawableBalance } from '../types/withdrawal.js'
3
- import { requireDecimal } from './requireDecimal.js'
4
4
 
5
5
  /**
6
6
  * Largest `amount` a withdrawable row can fund: `available` when the venue
@@ -1 +0,0 @@
1
- {"version":3,"file":"requireDecimal.d.ts","sourceRoot":"","sources":["../../../src/wire/requireDecimal.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAGnB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,GAAG,MAAM,QAAQ,CAAA;AAUxB,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,CAQvE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"requireDecimal.js","sourceRoot":"","sources":["../../../src/wire/requireDecimal.ts"],"names":[],"mappings":";;;;;AAeA,wCAQC;AAvBD,mDAI0B;AAC1B,oDAAwB;AACxB,2DAAoD;AASpD,SAAgB,cAAc,CAAC,KAAoB,EAAE,KAAa;IAChE,IAAI,CAAC,IAAA,6BAAe,EAAC,KAAK,CAAC,EAAE,CAAC;QAC5B,MAAM,IAAI,0BAAU,CAClB,4BAAc,CAAC,eAAe,EAC9B,aAAa,KAAK,QAAQ,KAAK,4BAA4B,CAC5D,CAAA;IACH,CAAC;IACD,OAAO,IAAI,gBAAG,CAAC,KAAK,CAAC,CAAA;AACvB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"requireDecimal.d.ts","sourceRoot":"","sources":["../../../src/wire/requireDecimal.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAGnB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,GAAG,MAAM,QAAQ,CAAA;AAGxB;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,CAQvE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"requireDecimal.js","sourceRoot":"","sources":["../../../src/wire/requireDecimal.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EACf,cAAc,GACf,MAAM,mBAAmB,CAAA;AAC1B,OAAO,GAAG,MAAM,QAAQ,CAAA;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEpD;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,KAAoB,EAAE,KAAa;IAChE,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5B,MAAM,IAAI,UAAU,CAClB,cAAc,CAAC,eAAe,EAC9B,aAAa,KAAK,QAAQ,KAAK,4BAA4B,CAC5D,CAAA;IACH,CAAC;IACD,OAAO,IAAI,GAAG,CAAC,KAAK,CAAC,CAAA;AACvB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"requireDecimal.d.ts","sourceRoot":"","sources":["../../../src/wire/requireDecimal.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAGnB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,GAAG,MAAM,QAAQ,CAAA;AAGxB;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,CAQvE"}
File without changes