@nadohq/shared 0.15.0 → 0.17.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 (746) hide show
  1. package/dist/BigNumbers-CM-lXODL.d.ts +10 -0
  2. package/dist/BigNumbers-CM-lXODL.d.ts.map +1 -0
  3. package/dist/BigNumbers-CZl--in2.d.cts +10 -0
  4. package/dist/BigNumbers-CZl--in2.d.cts.map +1 -0
  5. package/dist/ChainEnv-C_iC1v8V.d.cts +9 -0
  6. package/dist/ChainEnv-C_iC1v8V.d.cts.map +1 -0
  7. package/dist/ChainEnv-CxBY-mBv.d.ts +9 -0
  8. package/dist/ChainEnv-CxBY-mBv.d.ts.map +1 -0
  9. package/dist/Clearinghouse-BSEaz5pq.d.cts +671 -0
  10. package/dist/Clearinghouse-BSEaz5pq.d.cts.map +1 -0
  11. package/dist/Clearinghouse-DnDIOiNH.d.ts +671 -0
  12. package/dist/Clearinghouse-DnDIOiNH.d.ts.map +1 -0
  13. package/dist/ERC20-B7MWgTx9.d.cts +145 -0
  14. package/dist/ERC20-B7MWgTx9.d.cts.map +1 -0
  15. package/dist/ERC20-D1Ys4UR9.d.ts +145 -0
  16. package/dist/ERC20-D1Ys4UR9.d.ts.map +1 -0
  17. package/dist/Endpoint-CDL8LY0g.d.ts +435 -0
  18. package/dist/Endpoint-CDL8LY0g.d.ts.map +1 -0
  19. package/dist/Endpoint-CKPE7OC6.d.cts +435 -0
  20. package/dist/Endpoint-CKPE7OC6.d.cts.map +1 -0
  21. package/dist/MockERC20-Dvjx8zWd.d.ts +241 -0
  22. package/dist/MockERC20-Dvjx8zWd.d.ts.map +1 -0
  23. package/dist/MockERC20-H_LdnMKX.d.cts +241 -0
  24. package/dist/MockERC20-H_LdnMKX.d.cts.map +1 -0
  25. package/dist/OrderExecutionType-BCH5Wop4.d.ts +12 -0
  26. package/dist/OrderExecutionType-BCH5Wop4.d.ts.map +1 -0
  27. package/dist/OrderExecutionType-gZHBzTTF.d.cts +12 -0
  28. package/dist/OrderExecutionType-gZHBzTTF.d.cts.map +1 -0
  29. package/dist/PerpEngine-BnN-Yxzr.d.cts +663 -0
  30. package/dist/PerpEngine-BnN-Yxzr.d.cts.map +1 -0
  31. package/dist/PerpEngine-S4CxsOLz.d.ts +663 -0
  32. package/dist/PerpEngine-S4CxsOLz.d.ts.map +1 -0
  33. package/dist/Querier-CEz3AkR5.d.cts +1151 -0
  34. package/dist/Querier-CEz3AkR5.d.cts.map +1 -0
  35. package/dist/Querier-ktPkIit7.d.ts +1151 -0
  36. package/dist/Querier-ktPkIit7.d.ts.map +1 -0
  37. package/dist/SpotEngine-CxCXv_mh.d.ts +703 -0
  38. package/dist/SpotEngine-CxCXv_mh.d.ts.map +1 -0
  39. package/dist/SpotEngine-DICQOt6X.d.cts +703 -0
  40. package/dist/SpotEngine-DICQOt6X.d.cts.map +1 -0
  41. package/dist/WalletNotProvidedError-B7hy83Dp.d.ts +7 -0
  42. package/dist/WalletNotProvidedError-B7hy83Dp.d.ts.map +1 -0
  43. package/dist/WalletNotProvidedError-BFEw-O_V.d.cts +7 -0
  44. package/dist/WalletNotProvidedError-BFEw-O_V.d.cts.map +1 -0
  45. package/dist/WithdrawPool-BFEPzU-O.d.cts +216 -0
  46. package/dist/WithdrawPool-BFEPzU-O.d.cts.map +1 -0
  47. package/dist/WithdrawPool-BwxqwHtJ.d.ts +216 -0
  48. package/dist/WithdrawPool-BwxqwHtJ.d.ts.map +1 -0
  49. package/dist/abis/Clearinghouse.cjs +784 -889
  50. package/dist/abis/Clearinghouse.cjs.map +1 -1
  51. package/dist/abis/Clearinghouse.d.cts +2 -669
  52. package/dist/abis/Clearinghouse.d.ts +2 -669
  53. package/dist/abis/Clearinghouse.js +783 -866
  54. package/dist/abis/Clearinghouse.js.map +1 -1
  55. package/dist/abis/ERC20.cjs +166 -213
  56. package/dist/abis/ERC20.cjs.map +1 -1
  57. package/dist/abis/ERC20.d.cts +2 -143
  58. package/dist/abis/ERC20.d.ts +2 -143
  59. package/dist/abis/ERC20.js +165 -190
  60. package/dist/abis/ERC20.js.map +1 -1
  61. package/dist/abis/Endpoint.cjs +513 -587
  62. package/dist/abis/Endpoint.cjs.map +1 -1
  63. package/dist/abis/Endpoint.d.cts +2 -433
  64. package/dist/abis/Endpoint.d.ts +2 -433
  65. package/dist/abis/Endpoint.js +512 -564
  66. package/dist/abis/Endpoint.js.map +1 -1
  67. package/dist/abis/MockERC20.cjs +273 -339
  68. package/dist/abis/MockERC20.cjs.map +1 -1
  69. package/dist/abis/MockERC20.d.cts +2 -239
  70. package/dist/abis/MockERC20.d.ts +2 -239
  71. package/dist/abis/MockERC20.js +272 -316
  72. package/dist/abis/MockERC20.js.map +1 -1
  73. package/dist/abis/PerpEngine.cjs +778 -884
  74. package/dist/abis/PerpEngine.cjs.map +1 -1
  75. package/dist/abis/PerpEngine.d.cts +2 -661
  76. package/dist/abis/PerpEngine.d.ts +2 -661
  77. package/dist/abis/PerpEngine.js +777 -861
  78. package/dist/abis/PerpEngine.js.map +1 -1
  79. package/dist/abis/Querier.cjs +1415 -1520
  80. package/dist/abis/Querier.cjs.map +1 -1
  81. package/dist/abis/Querier.d.cts +2 -1149
  82. package/dist/abis/Querier.d.ts +2 -1149
  83. package/dist/abis/Querier.js +1414 -1497
  84. package/dist/abis/Querier.js.map +1 -1
  85. package/dist/abis/SpotEngine.cjs +819 -935
  86. package/dist/abis/SpotEngine.cjs.map +1 -1
  87. package/dist/abis/SpotEngine.d.cts +2 -701
  88. package/dist/abis/SpotEngine.d.ts +2 -701
  89. package/dist/abis/SpotEngine.js +818 -912
  90. package/dist/abis/SpotEngine.js.map +1 -1
  91. package/dist/abis/WithdrawPool.cjs +249 -305
  92. package/dist/abis/WithdrawPool.cjs.map +1 -1
  93. package/dist/abis/WithdrawPool.d.cts +2 -214
  94. package/dist/abis/WithdrawPool.d.ts +2 -214
  95. package/dist/abis/WithdrawPool.js +248 -282
  96. package/dist/abis/WithdrawPool.js.map +1 -1
  97. package/dist/abis/index.cjs +19 -41
  98. package/dist/abis/index.d.cts +10 -9
  99. package/dist/abis/index.d.ts +10 -9
  100. package/dist/abis/index.js +10 -11
  101. package/dist/abis/nadoAbis.cjs +17 -41
  102. package/dist/abis/nadoAbis.cjs.map +1 -1
  103. package/dist/abis/nadoAbis.d.cts +2 -3821
  104. package/dist/abis/nadoAbis.d.ts +2 -3821
  105. package/dist/abis/nadoAbis.js +11 -13
  106. package/dist/abis/nadoAbis.js.map +1 -1
  107. package/dist/appendixTwapValue-2e-BBSSp.d.cts +31 -0
  108. package/dist/appendixTwapValue-2e-BBSSp.d.cts.map +1 -0
  109. package/dist/appendixTwapValue-D5Fv_hF5.d.ts +31 -0
  110. package/dist/appendixTwapValue-D5Fv_hF5.d.ts.map +1 -0
  111. package/dist/approveDepositAllowance-Dc7stdrU.d.ts +20 -0
  112. package/dist/approveDepositAllowance-Dc7stdrU.d.ts.map +1 -0
  113. package/dist/approveDepositAllowance-DzLfrUa1.d.cts +20 -0
  114. package/dist/approveDepositAllowance-DzLfrUa1.d.cts.map +1 -0
  115. package/dist/asyncResult-Cs02Ws6J.d.ts +6 -0
  116. package/dist/asyncResult-Cs02Ws6J.d.ts.map +1 -0
  117. package/dist/asyncResult-D-rEUypp.d.cts +6 -0
  118. package/dist/asyncResult-D-rEUypp.d.cts.map +1 -0
  119. package/dist/balanceTypes-BLk1F6NY.d.ts +40 -0
  120. package/dist/balanceTypes-BLk1F6NY.d.ts.map +1 -0
  121. package/dist/balanceTypes-DdDBwUwZ.d.cts +40 -0
  122. package/dist/balanceTypes-DdDBwUwZ.d.cts.map +1 -0
  123. package/dist/balanceValue-BHDw2fCR.d.cts +25 -0
  124. package/dist/balanceValue-BHDw2fCR.d.cts.map +1 -0
  125. package/dist/balanceValue-mNCg2O57.d.ts +25 -0
  126. package/dist/balanceValue-mNCg2O57.d.ts.map +1 -0
  127. package/dist/bigNumber-BLE4n-ku.d.ts +19 -0
  128. package/dist/bigNumber-BLE4n-ku.d.ts.map +1 -0
  129. package/dist/bigNumber-DX0JX9bQ.d.cts +19 -0
  130. package/dist/bigNumber-DX0JX9bQ.d.cts.map +1 -0
  131. package/dist/bitMaskValue-CWv12B9a.d.cts +12 -0
  132. package/dist/bitMaskValue-CWv12B9a.d.cts.map +1 -0
  133. package/dist/bitMaskValue-rhaIF9Xj.d.ts +12 -0
  134. package/dist/bitMaskValue-rhaIF9Xj.d.ts.map +1 -0
  135. package/dist/bytes-Bv66A6U8.d.ts +5 -0
  136. package/dist/bytes-Bv66A6U8.d.ts.map +1 -0
  137. package/dist/bytes-DAhqCt_o.d.cts +5 -0
  138. package/dist/bytes-DAhqCt_o.d.cts.map +1 -0
  139. package/dist/bytes32-CE-v0SzM.d.cts +49 -0
  140. package/dist/bytes32-CE-v0SzM.d.cts.map +1 -0
  141. package/dist/bytes32-gz7vDEim.d.ts +49 -0
  142. package/dist/bytes32-gz7vDEim.d.ts.map +1 -0
  143. package/dist/chainEnvToChain-B7RbZcmd.d.cts +696 -0
  144. package/dist/chainEnvToChain-B7RbZcmd.d.cts.map +1 -0
  145. package/dist/chainEnvToChain-C9Uw2moR.d.ts +696 -0
  146. package/dist/chainEnvToChain-C9Uw2moR.d.ts.map +1 -0
  147. package/dist/chunk-CKQMccvm.cjs +28 -0
  148. package/dist/clamp-B7YSY8XJ.d.cts +17 -0
  149. package/dist/clamp-B7YSY8XJ.d.cts.map +1 -0
  150. package/dist/clamp-CWW-gFbE.d.ts +17 -0
  151. package/dist/clamp-CWW-gFbE.d.ts.map +1 -0
  152. package/dist/consts/chainEnvToChain.cjs +12 -41
  153. package/dist/consts/chainEnvToChain.cjs.map +1 -1
  154. package/dist/consts/chainEnvToChain.d.cts +2 -684
  155. package/dist/consts/chainEnvToChain.d.ts +2 -684
  156. package/dist/consts/chainEnvToChain.js +9 -17
  157. package/dist/consts/chainEnvToChain.js.map +1 -1
  158. package/dist/consts/index.cjs +7 -27
  159. package/dist/consts/index.d.cts +3 -6
  160. package/dist/consts/index.d.ts +3 -6
  161. package/dist/consts/index.js +3 -4
  162. package/dist/consts/productIds.cjs +7 -32
  163. package/dist/consts/productIds.cjs.map +1 -1
  164. package/dist/consts/productIds.d.cts +2 -4
  165. package/dist/consts/productIds.d.ts +2 -4
  166. package/dist/consts/productIds.js +5 -8
  167. package/dist/consts/productIds.js.map +1 -1
  168. package/dist/createDeterministicLinkedSignerPrivateKey-C2v9BK5R.d.cts +20 -0
  169. package/dist/createDeterministicLinkedSignerPrivateKey-C2v9BK5R.d.cts.map +1 -0
  170. package/dist/createDeterministicLinkedSignerPrivateKey-XciG6RLh.d.ts +20 -0
  171. package/dist/createDeterministicLinkedSignerPrivateKey-XciG6RLh.d.ts.map +1 -0
  172. package/dist/decimalAdjustment-1vhO65Zz.d.ts +33 -0
  173. package/dist/decimalAdjustment-1vhO65Zz.d.ts.map +1 -0
  174. package/dist/decimalAdjustment-CMqU3rNy.d.cts +33 -0
  175. package/dist/decimalAdjustment-CMqU3rNy.d.cts.map +1 -0
  176. package/dist/deployments/index.cjs +3 -65
  177. package/dist/deployments/index.d.cts +8 -8
  178. package/dist/deployments/index.d.cts.map +1 -0
  179. package/dist/deployments/index.d.ts +8 -8
  180. package/dist/deployments/index.d.ts.map +1 -0
  181. package/dist/deployments/index.js +2 -32
  182. package/dist/deployments-Nr4Pqn99.cjs +79 -0
  183. package/dist/deployments-Nr4Pqn99.cjs.map +1 -0
  184. package/dist/deployments-ZEtLr8Dz.js +74 -0
  185. package/dist/deployments-ZEtLr8Dz.js.map +1 -0
  186. package/dist/depositCollateral-476kzs4N.d.ts +24 -0
  187. package/dist/depositCollateral-476kzs4N.d.ts.map +1 -0
  188. package/dist/depositCollateral-CmEXlJQs.d.cts +24 -0
  189. package/dist/depositCollateral-CmEXlJQs.d.cts.map +1 -0
  190. package/dist/eip712/eip712ValueTypes.cjs +0 -19
  191. package/dist/eip712/eip712ValueTypes.d.cts +2 -50
  192. package/dist/eip712/eip712ValueTypes.d.ts +2 -50
  193. package/dist/eip712/eip712ValueTypes.js +1 -1
  194. package/dist/eip712/getNadoEIP712Domain.cjs +18 -36
  195. package/dist/eip712/getNadoEIP712Domain.cjs.map +1 -1
  196. package/dist/eip712/getNadoEIP712Domain.d.cts +2 -11
  197. package/dist/eip712/getNadoEIP712Domain.d.ts +2 -11
  198. package/dist/eip712/getNadoEIP712Domain.js +16 -12
  199. package/dist/eip712/getNadoEIP712Domain.js.map +1 -1
  200. package/dist/eip712/getNadoEIP712PrimaryType.cjs +13 -32
  201. package/dist/eip712/getNadoEIP712PrimaryType.cjs.map +1 -1
  202. package/dist/eip712/getNadoEIP712PrimaryType.d.cts +2 -16
  203. package/dist/eip712/getNadoEIP712PrimaryType.d.ts +2 -16
  204. package/dist/eip712/getNadoEIP712PrimaryType.js +11 -8
  205. package/dist/eip712/getNadoEIP712PrimaryType.js.map +1 -1
  206. package/dist/eip712/getNadoEIP712Types.cjs +209 -135
  207. package/dist/eip712/getNadoEIP712Types.cjs.map +1 -1
  208. package/dist/eip712/getNadoEIP712Types.d.cts +2 -20
  209. package/dist/eip712/getNadoEIP712Types.d.ts +2 -20
  210. package/dist/eip712/getNadoEIP712Types.js +208 -112
  211. package/dist/eip712/getNadoEIP712Types.js.map +1 -1
  212. package/dist/eip712/getNadoEIP712Values.cjs +167 -195
  213. package/dist/eip712/getNadoEIP712Values.cjs.map +1 -1
  214. package/dist/eip712/getNadoEIP712Values.d.cts +2 -20
  215. package/dist/eip712/getNadoEIP712Values.d.ts +2 -20
  216. package/dist/eip712/getNadoEIP712Values.js +165 -171
  217. package/dist/eip712/getNadoEIP712Values.js.map +1 -1
  218. package/dist/eip712/getOrderVerifyingAddress.cjs +12 -31
  219. package/dist/eip712/getOrderVerifyingAddress.cjs.map +1 -1
  220. package/dist/eip712/getOrderVerifyingAddress.d.cts +2 -9
  221. package/dist/eip712/getOrderVerifyingAddress.d.ts +2 -9
  222. package/dist/eip712/getOrderVerifyingAddress.js +9 -7
  223. package/dist/eip712/getOrderVerifyingAddress.js.map +1 -1
  224. package/dist/eip712/getSignedTransactionRequest.cjs +15 -39
  225. package/dist/eip712/getSignedTransactionRequest.cjs.map +1 -1
  226. package/dist/eip712/getSignedTransactionRequest.d.cts +2 -19
  227. package/dist/eip712/getSignedTransactionRequest.d.ts +2 -19
  228. package/dist/eip712/getSignedTransactionRequest.js +11 -13
  229. package/dist/eip712/getSignedTransactionRequest.js.map +1 -1
  230. package/dist/eip712/index.cjs +15 -43
  231. package/dist/eip712/index.d.cts +11 -17
  232. package/dist/eip712/index.d.ts +11 -17
  233. package/dist/eip712/index.js +8 -12
  234. package/dist/eip712/orderDigest.cjs +24 -42
  235. package/dist/eip712/orderDigest.cjs.map +1 -1
  236. package/dist/eip712/orderDigest.d.cts +2 -20
  237. package/dist/eip712/orderDigest.d.ts +2 -20
  238. package/dist/eip712/orderDigest.js +18 -15
  239. package/dist/eip712/orderDigest.js.map +1 -1
  240. package/dist/eip712/signableRequestType.cjs +0 -19
  241. package/dist/eip712/signableRequestType.d.cts +2 -27
  242. package/dist/eip712/signableRequestType.d.ts +2 -27
  243. package/dist/eip712/signableRequestType.js +1 -1
  244. package/dist/eip712/signatureParamTypes.cjs +0 -19
  245. package/dist/eip712/signatureParamTypes.d.cts +2 -73
  246. package/dist/eip712/signatureParamTypes.d.ts +2 -73
  247. package/dist/eip712/signatureParamTypes.js +1 -1
  248. package/dist/eip712ValueTypes-DUvhlJpT.d.ts +49 -0
  249. package/dist/eip712ValueTypes-DUvhlJpT.d.ts.map +1 -0
  250. package/dist/eip712ValueTypes-WH3jtsab.d.cts +49 -0
  251. package/dist/eip712ValueTypes-WH3jtsab.d.cts.map +1 -0
  252. package/dist/encoding/encoding.cjs +46 -87
  253. package/dist/encoding/encoding.cjs.map +1 -1
  254. package/dist/encoding/encoding.d.cts +2 -35
  255. package/dist/encoding/encoding.d.ts +2 -35
  256. package/dist/encoding/encoding.js +41 -65
  257. package/dist/encoding/encoding.js.map +1 -1
  258. package/dist/encoding/index.cjs +6 -25
  259. package/dist/encoding/index.d.cts +2 -7
  260. package/dist/encoding/index.d.ts +2 -7
  261. package/dist/encoding/index.js +2 -3
  262. package/dist/encoding-COa5q5x1.d.cts +33 -0
  263. package/dist/encoding-COa5q5x1.d.cts.map +1 -0
  264. package/dist/encoding-Cxt77WO_.d.ts +33 -0
  265. package/dist/encoding-Cxt77WO_.d.ts.map +1 -0
  266. package/dist/execute/approveDepositAllowance.cjs +11 -36
  267. package/dist/execute/approveDepositAllowance.cjs.map +1 -1
  268. package/dist/execute/approveDepositAllowance.d.cts +2 -18
  269. package/dist/execute/approveDepositAllowance.d.ts +2 -18
  270. package/dist/execute/approveDepositAllowance.js +10 -13
  271. package/dist/execute/approveDepositAllowance.js.map +1 -1
  272. package/dist/execute/depositCollateral.cjs +27 -57
  273. package/dist/execute/depositCollateral.cjs.map +1 -1
  274. package/dist/execute/depositCollateral.d.cts +2 -21
  275. package/dist/execute/depositCollateral.d.ts +2 -21
  276. package/dist/execute/depositCollateral.js +24 -33
  277. package/dist/execute/depositCollateral.js.map +1 -1
  278. package/dist/execute/index.cjs +5 -27
  279. package/dist/execute/index.d.cts +3 -9
  280. package/dist/execute/index.d.ts +3 -9
  281. package/dist/execute/index.js +3 -4
  282. package/dist/getNadoEIP712Domain-CSV6Zxuw.d.ts +13 -0
  283. package/dist/getNadoEIP712Domain-CSV6Zxuw.d.ts.map +1 -0
  284. package/dist/getNadoEIP712Domain-iDIuXsMf.d.cts +13 -0
  285. package/dist/getNadoEIP712Domain-iDIuXsMf.d.cts.map +1 -0
  286. package/dist/getNadoEIP712PrimaryType-06Sfytq4.d.ts +12 -0
  287. package/dist/getNadoEIP712PrimaryType-06Sfytq4.d.ts.map +1 -0
  288. package/dist/getNadoEIP712PrimaryType-DyOGHC2S.d.cts +12 -0
  289. package/dist/getNadoEIP712PrimaryType-DyOGHC2S.d.cts.map +1 -0
  290. package/dist/getNadoEIP712Types-mK6qHv4z.d.cts +16 -0
  291. package/dist/getNadoEIP712Types-mK6qHv4z.d.cts.map +1 -0
  292. package/dist/getNadoEIP712Types-mvpnvnQN.d.ts +16 -0
  293. package/dist/getNadoEIP712Types-mvpnvnQN.d.ts.map +1 -0
  294. package/dist/getNadoEIP712Values-CIQ84bij.d.ts +16 -0
  295. package/dist/getNadoEIP712Values-CIQ84bij.d.ts.map +1 -0
  296. package/dist/getNadoEIP712Values-DcBLDRmy.d.cts +16 -0
  297. package/dist/getNadoEIP712Values-DcBLDRmy.d.cts.map +1 -0
  298. package/dist/getOrderVerifyingAddress-BygcgBA1.d.ts +11 -0
  299. package/dist/getOrderVerifyingAddress-BygcgBA1.d.ts.map +1 -0
  300. package/dist/getOrderVerifyingAddress-CHRCQ8AZ.d.cts +11 -0
  301. package/dist/getOrderVerifyingAddress-CHRCQ8AZ.d.cts.map +1 -0
  302. package/dist/getSignedTransactionRequest-BJVBUKpD.d.cts +15 -0
  303. package/dist/getSignedTransactionRequest-BJVBUKpD.d.cts.map +1 -0
  304. package/dist/getSignedTransactionRequest-GAXb1D7h.d.ts +15 -0
  305. package/dist/getSignedTransactionRequest-GAXb1D7h.d.ts.map +1 -0
  306. package/dist/getValidatedAddress-BQJEkmbN.d.cts +11 -0
  307. package/dist/getValidatedAddress-BQJEkmbN.d.cts.map +1 -0
  308. package/dist/getValidatedAddress-BmCqRBeh.d.ts +11 -0
  309. package/dist/getValidatedAddress-BmCqRBeh.d.ts.map +1 -0
  310. package/dist/getValidatedHex-DuwBnuEB.d.ts +11 -0
  311. package/dist/getValidatedHex-DuwBnuEB.d.ts.map +1 -0
  312. package/dist/getValidatedHex-PXNPR4pI.d.cts +11 -0
  313. package/dist/getValidatedHex-PXNPR4pI.d.cts.map +1 -0
  314. package/dist/healthTypes-D_CkTy9b.d.ts +17 -0
  315. package/dist/healthTypes-D_CkTy9b.d.ts.map +1 -0
  316. package/dist/healthTypes-rZq7PTC8.d.cts +17 -0
  317. package/dist/healthTypes-rZq7PTC8.d.cts.map +1 -0
  318. package/dist/index-B1btZMWF.d.ts +1 -0
  319. package/dist/index-BCsiC0tv.d.cts +1 -0
  320. package/dist/index-BVJyZlmP2.d.cts +1 -0
  321. package/dist/index-Ba3GYDF9.d.ts +1 -0
  322. package/dist/index-Bq2ftOXk2.d.cts +1 -0
  323. package/dist/index-Br3qA4B52.d.ts +1 -0
  324. package/dist/index-C9nY9t1j.d.ts +1 -0
  325. package/dist/index-CB5PSF-Q.d.ts +1 -0
  326. package/dist/index-CHmsNSsb.d.ts +1 -0
  327. package/dist/index-CI4LJief.d.ts +1 -0
  328. package/dist/index-CQ25UCod.d.cts +1 -0
  329. package/dist/index-D4eheNJJ.d.cts +1 -0
  330. package/dist/index-D6CnpA_r.d.cts +1 -0
  331. package/dist/index-ZFCPoV_B2.d.ts +1 -0
  332. package/dist/index-_1bfRgi2.d.cts +1 -0
  333. package/dist/index-zO0Ly4bS.d.cts +1 -0
  334. package/dist/index.cjs +137 -39
  335. package/dist/index.d.cts +64 -67
  336. package/dist/index.d.ts +64 -67
  337. package/dist/index.js +57 -10
  338. package/dist/interest-CUXHxrel.d.ts +52 -0
  339. package/dist/interest-CUXHxrel.d.ts.map +1 -0
  340. package/dist/interest-DRpagIcs.d.cts +52 -0
  341. package/dist/interest-DRpagIcs.d.cts.map +1 -0
  342. package/dist/isWriteableContract-DcM3nqdX.d.ts +8 -0
  343. package/dist/isWriteableContract-DcM3nqdX.d.ts.map +1 -0
  344. package/dist/isWriteableContract-ZGxc9VmC.d.cts +8 -0
  345. package/dist/isWriteableContract-ZGxc9VmC.d.cts.map +1 -0
  346. package/dist/mapValues-cO_NBiCx.d.ts +9 -0
  347. package/dist/mapValues-cO_NBiCx.d.ts.map +1 -0
  348. package/dist/mapValues-jlfbJybF.d.cts +9 -0
  349. package/dist/mapValues-jlfbJybF.d.cts.map +1 -0
  350. package/dist/marketTypes-BSevYB-h.d.cts +33 -0
  351. package/dist/marketTypes-BSevYB-h.d.cts.map +1 -0
  352. package/dist/marketTypes-C37HnBB7.d.ts +33 -0
  353. package/dist/marketTypes-C37HnBB7.d.ts.map +1 -0
  354. package/dist/nadoAbis-DR-8nVpe.d.ts +3823 -0
  355. package/dist/nadoAbis-DR-8nVpe.d.ts.map +1 -0
  356. package/dist/nadoAbis-m_V_D5Iu.d.cts +3823 -0
  357. package/dist/nadoAbis-m_V_D5Iu.d.cts.map +1 -0
  358. package/dist/nadoContractTypes-Cp3kD2DC.d.cts +13 -0
  359. package/dist/nadoContractTypes-Cp3kD2DC.d.cts.map +1 -0
  360. package/dist/nadoContractTypes-PWzd6_3s.d.ts +13 -0
  361. package/dist/nadoContractTypes-PWzd6_3s.d.ts.map +1 -0
  362. package/dist/orderAppendixTypes-5NqkTOxO.d.ts +79 -0
  363. package/dist/orderAppendixTypes-5NqkTOxO.d.ts.map +1 -0
  364. package/dist/orderAppendixTypes-CM-eb5WL.d.cts +79 -0
  365. package/dist/orderAppendixTypes-CM-eb5WL.d.cts.map +1 -0
  366. package/dist/orderDigest-DzYNH958.d.ts +17 -0
  367. package/dist/orderDigest-DzYNH958.d.ts.map +1 -0
  368. package/dist/orderDigest-aIOz0KyI.d.cts +17 -0
  369. package/dist/orderDigest-aIOz0KyI.d.cts.map +1 -0
  370. package/dist/orderNonce-BgvYpe4l.d.ts +16 -0
  371. package/dist/orderNonce-BgvYpe4l.d.ts.map +1 -0
  372. package/dist/orderNonce-p8m6ZrSd.d.cts +16 -0
  373. package/dist/orderNonce-p8m6ZrSd.d.cts.map +1 -0
  374. package/dist/packOrderAppendix-BokzjU2O.d.ts +11 -0
  375. package/dist/packOrderAppendix-BokzjU2O.d.ts.map +1 -0
  376. package/dist/packOrderAppendix-DJlhe5P5.d.cts +11 -0
  377. package/dist/packOrderAppendix-DJlhe5P5.d.cts.map +1 -0
  378. package/dist/productIds-CCewi4tC.d.ts +6 -0
  379. package/dist/productIds-CCewi4tC.d.ts.map +1 -0
  380. package/dist/productIds-COuWMJat.d.cts +6 -0
  381. package/dist/productIds-COuWMJat.d.cts.map +1 -0
  382. package/dist/productTypeFilter-B0oL5G_q.d.ts +11 -0
  383. package/dist/productTypeFilter-B0oL5G_q.d.ts.map +1 -0
  384. package/dist/productTypeFilter-B6CoWHmB.d.cts +11 -0
  385. package/dist/productTypeFilter-B6CoWHmB.d.cts.map +1 -0
  386. package/dist/productTypes-B7T8OB24.d.ts +57 -0
  387. package/dist/productTypes-B7T8OB24.d.ts.map +1 -0
  388. package/dist/productTypes-COwl-Svz.d.cts +57 -0
  389. package/dist/productTypes-COwl-Svz.d.cts.map +1 -0
  390. package/dist/recvTime-C6ulZVuR.d.ts +11 -0
  391. package/dist/recvTime-C6ulZVuR.d.ts.map +1 -0
  392. package/dist/recvTime-lSkRnXFh.d.cts +11 -0
  393. package/dist/recvTime-lSkRnXFh.d.cts.map +1 -0
  394. package/dist/signableRequestType-AQGiKX97.d.cts +24 -0
  395. package/dist/signableRequestType-AQGiKX97.d.cts.map +1 -0
  396. package/dist/signableRequestType-B69C0QQm.d.ts +24 -0
  397. package/dist/signableRequestType-B69C0QQm.d.ts.map +1 -0
  398. package/dist/signatureParamTypes-BEG1v7Qn.d.cts +73 -0
  399. package/dist/signatureParamTypes-BEG1v7Qn.d.cts.map +1 -0
  400. package/dist/signatureParamTypes-ByiLhbva.d.ts +73 -0
  401. package/dist/signatureParamTypes-ByiLhbva.d.ts.map +1 -0
  402. package/dist/subaccountTypes-BGE4tJKb.d.cts +15 -0
  403. package/dist/subaccountTypes-BGE4tJKb.d.cts.map +1 -0
  404. package/dist/subaccountTypes-FoLRswIa.d.ts +15 -0
  405. package/dist/subaccountTypes-FoLRswIa.d.ts.map +1 -0
  406. package/dist/sumBigNumberBy-BWQ-bPpk.d.cts +12 -0
  407. package/dist/sumBigNumberBy-BWQ-bPpk.d.cts.map +1 -0
  408. package/dist/sumBigNumberBy-wVwOxwyc.d.ts +12 -0
  409. package/dist/sumBigNumberBy-wVwOxwyc.d.ts.map +1 -0
  410. package/dist/time-BpZLFNOC.d.ts +19 -0
  411. package/dist/time-BpZLFNOC.d.ts.map +1 -0
  412. package/dist/time-D6SSEenZ.d.cts +19 -0
  413. package/dist/time-D6SSEenZ.d.cts.map +1 -0
  414. package/dist/toBigInt-PqI3ILSN.d.ts +12 -0
  415. package/dist/toBigInt-PqI3ILSN.d.ts.map +1 -0
  416. package/dist/toBigInt-cEajjeFa.d.cts +12 -0
  417. package/dist/toBigInt-cEajjeFa.d.cts.map +1 -0
  418. package/dist/toIntegerString-CHveFt3s.d.cts +12 -0
  419. package/dist/toIntegerString-CHveFt3s.d.cts.map +1 -0
  420. package/dist/toIntegerString-sATPFuxt.d.ts +12 -0
  421. package/dist/toIntegerString-sATPFuxt.d.ts.map +1 -0
  422. package/dist/toPrintableObject-CwWr2voJ.d.cts +13 -0
  423. package/dist/toPrintableObject-CwWr2voJ.d.cts.map +1 -0
  424. package/dist/toPrintableObject-kBzCvR0Y.d.ts +13 -0
  425. package/dist/toPrintableObject-kBzCvR0Y.d.ts.map +1 -0
  426. package/dist/types/ChainEnv.cjs +15 -42
  427. package/dist/types/ChainEnv.cjs.map +1 -1
  428. package/dist/types/ChainEnv.d.cts +2 -7
  429. package/dist/types/ChainEnv.d.ts +2 -7
  430. package/dist/types/ChainEnv.js +11 -16
  431. package/dist/types/ChainEnv.js.map +1 -1
  432. package/dist/types/OrderExecutionType.cjs +0 -19
  433. package/dist/types/OrderExecutionType.d.cts +2 -10
  434. package/dist/types/OrderExecutionType.d.ts +2 -10
  435. package/dist/types/OrderExecutionType.js +1 -1
  436. package/dist/types/balanceTypes.cjs +0 -19
  437. package/dist/types/balanceTypes.d.cts +2 -38
  438. package/dist/types/balanceTypes.d.ts +2 -38
  439. package/dist/types/balanceTypes.js +1 -1
  440. package/dist/types/bytes.cjs +0 -19
  441. package/dist/types/bytes.d.cts +2 -3
  442. package/dist/types/bytes.d.ts +2 -3
  443. package/dist/types/bytes.js +1 -1
  444. package/dist/types/healthTypes.cjs +0 -19
  445. package/dist/types/healthTypes.d.cts +2 -15
  446. package/dist/types/healthTypes.d.ts +2 -15
  447. package/dist/types/healthTypes.js +1 -1
  448. package/dist/types/index.cjs +9 -45
  449. package/dist/types/index.d.cts +12 -15
  450. package/dist/types/index.d.ts +12 -15
  451. package/dist/types/index.js +3 -13
  452. package/dist/types/marketTypes.cjs +0 -19
  453. package/dist/types/marketTypes.d.cts +2 -31
  454. package/dist/types/marketTypes.d.ts +2 -31
  455. package/dist/types/marketTypes.js +1 -1
  456. package/dist/types/nadoContractTypes.cjs +0 -19
  457. package/dist/types/nadoContractTypes.d.cts +2 -14
  458. package/dist/types/nadoContractTypes.d.ts +2 -14
  459. package/dist/types/nadoContractTypes.js +1 -1
  460. package/dist/types/orderAppendixTypes.cjs +0 -19
  461. package/dist/types/orderAppendixTypes.d.cts +2 -78
  462. package/dist/types/orderAppendixTypes.d.ts +2 -78
  463. package/dist/types/orderAppendixTypes.js +1 -1
  464. package/dist/types/productTypes.cjs +24 -44
  465. package/dist/types/productTypes.cjs.map +1 -1
  466. package/dist/types/productTypes.d.cts +2 -55
  467. package/dist/types/productTypes.d.ts +2 -55
  468. package/dist/types/productTypes.js +22 -20
  469. package/dist/types/productTypes.js.map +1 -1
  470. package/dist/types/subaccountTypes.cjs +0 -19
  471. package/dist/types/subaccountTypes.d.cts +2 -13
  472. package/dist/types/subaccountTypes.d.ts +2 -13
  473. package/dist/types/subaccountTypes.js +1 -1
  474. package/dist/types/viemTypes.cjs +0 -19
  475. package/dist/types/viemTypes.d.cts +2 -23
  476. package/dist/types/viemTypes.d.ts +2 -23
  477. package/dist/types/viemTypes.js +1 -1
  478. package/dist/types-BdV1zhbS.d.cts +23 -0
  479. package/dist/types-BdV1zhbS.d.cts.map +1 -0
  480. package/dist/types-Cqqkhcva.d.ts +23 -0
  481. package/dist/types-Cqqkhcva.d.ts.map +1 -0
  482. package/dist/unpackOrderAppendix-Dx0MDs4V.d.ts +12 -0
  483. package/dist/unpackOrderAppendix-Dx0MDs4V.d.ts.map +1 -0
  484. package/dist/unpackOrderAppendix-E8HT7dKm.d.cts +12 -0
  485. package/dist/unpackOrderAppendix-E8HT7dKm.d.cts.map +1 -0
  486. package/dist/utils/asyncResult.cjs +6 -33
  487. package/dist/utils/asyncResult.cjs.map +1 -1
  488. package/dist/utils/asyncResult.d.cts +2 -4
  489. package/dist/utils/asyncResult.d.ts +2 -4
  490. package/dist/utils/asyncResult.js +5 -10
  491. package/dist/utils/asyncResult.js.map +1 -1
  492. package/dist/utils/balanceValue.cjs +25 -36
  493. package/dist/utils/balanceValue.cjs.map +1 -1
  494. package/dist/utils/balanceValue.d.cts +2 -25
  495. package/dist/utils/balanceValue.d.ts +2 -25
  496. package/dist/utils/balanceValue.js +22 -11
  497. package/dist/utils/balanceValue.js.map +1 -1
  498. package/dist/utils/bytes32.cjs +69 -79
  499. package/dist/utils/bytes32.cjs.map +1 -1
  500. package/dist/utils/bytes32.d.cts +2 -47
  501. package/dist/utils/bytes32.d.ts +2 -47
  502. package/dist/utils/bytes32.js +61 -50
  503. package/dist/utils/bytes32.js.map +1 -1
  504. package/dist/utils/createDeterministicLinkedSignerPrivateKey.cjs +29 -53
  505. package/dist/utils/createDeterministicLinkedSignerPrivateKey.cjs.map +1 -1
  506. package/dist/utils/createDeterministicLinkedSignerPrivateKey.d.cts +2 -20
  507. package/dist/utils/createDeterministicLinkedSignerPrivateKey.d.ts +2 -20
  508. package/dist/utils/createDeterministicLinkedSignerPrivateKey.js +25 -28
  509. package/dist/utils/createDeterministicLinkedSignerPrivateKey.js.map +1 -1
  510. package/dist/utils/errors/WalletNotProvidedError.cjs +9 -33
  511. package/dist/utils/errors/WalletNotProvidedError.cjs.map +1 -1
  512. package/dist/utils/errors/WalletNotProvidedError.d.cts +2 -5
  513. package/dist/utils/errors/WalletNotProvidedError.d.ts +2 -5
  514. package/dist/utils/errors/WalletNotProvidedError.js +8 -10
  515. package/dist/utils/errors/WalletNotProvidedError.js.map +1 -1
  516. package/dist/utils/errors/index.cjs +3 -25
  517. package/dist/utils/errors/index.d.cts +2 -1
  518. package/dist/utils/errors/index.d.ts +2 -1
  519. package/dist/utils/errors/index.js +2 -3
  520. package/dist/utils/getValidatedAddress.cjs +13 -34
  521. package/dist/utils/getValidatedAddress.cjs.map +1 -1
  522. package/dist/utils/getValidatedAddress.d.cts +2 -9
  523. package/dist/utils/getValidatedAddress.d.ts +2 -9
  524. package/dist/utils/getValidatedAddress.js +10 -10
  525. package/dist/utils/getValidatedAddress.js.map +1 -1
  526. package/dist/utils/getValidatedHex.cjs +13 -34
  527. package/dist/utils/getValidatedHex.cjs.map +1 -1
  528. package/dist/utils/getValidatedHex.d.cts +2 -9
  529. package/dist/utils/getValidatedHex.d.ts +2 -9
  530. package/dist/utils/getValidatedHex.js +10 -10
  531. package/dist/utils/getValidatedHex.js.map +1 -1
  532. package/dist/utils/index.cjs +74 -53
  533. package/dist/utils/index.d.cts +28 -37
  534. package/dist/utils/index.d.ts +28 -37
  535. package/dist/utils/index.js +27 -17
  536. package/dist/utils/interest.cjs +73 -81
  537. package/dist/utils/interest.cjs.map +1 -1
  538. package/dist/utils/interest.d.cts +2 -50
  539. package/dist/utils/interest.d.ts +2 -50
  540. package/dist/utils/interest.js +67 -53
  541. package/dist/utils/interest.js.map +1 -1
  542. package/dist/utils/isWriteableContract.cjs +6 -30
  543. package/dist/utils/isWriteableContract.cjs.map +1 -1
  544. package/dist/utils/isWriteableContract.d.cts +2 -6
  545. package/dist/utils/isWriteableContract.d.ts +2 -6
  546. package/dist/utils/isWriteableContract.js +5 -7
  547. package/dist/utils/isWriteableContract.js.map +1 -1
  548. package/dist/utils/mapValues.cjs +6 -35
  549. package/dist/utils/mapValues.cjs.map +1 -1
  550. package/dist/utils/mapValues.d.cts +2 -7
  551. package/dist/utils/mapValues.d.ts +2 -7
  552. package/dist/utils/mapValues.js +5 -12
  553. package/dist/utils/mapValues.js.map +1 -1
  554. package/dist/utils/math/BigNumbers.cjs +11 -35
  555. package/dist/utils/math/BigNumbers.cjs.map +1 -1
  556. package/dist/utils/math/BigNumbers.d.cts +2 -10
  557. package/dist/utils/math/BigNumbers.d.ts +2 -10
  558. package/dist/utils/math/BigNumbers.js +9 -11
  559. package/dist/utils/math/BigNumbers.js.map +1 -1
  560. package/dist/utils/math/bigNumber.cjs +24 -56
  561. package/dist/utils/math/bigNumber.cjs.map +1 -1
  562. package/dist/utils/math/bigNumber.d.cts +2 -17
  563. package/dist/utils/math/bigNumber.d.ts +2 -17
  564. package/dist/utils/math/bigNumber.js +20 -22
  565. package/dist/utils/math/bigNumber.js.map +1 -1
  566. package/dist/utils/math/clamp.cjs +14 -35
  567. package/dist/utils/math/clamp.cjs.map +1 -1
  568. package/dist/utils/math/clamp.d.cts +2 -15
  569. package/dist/utils/math/clamp.d.ts +2 -15
  570. package/dist/utils/math/clamp.js +13 -12
  571. package/dist/utils/math/clamp.js.map +1 -1
  572. package/dist/utils/math/decimalAdjustment.cjs +38 -57
  573. package/dist/utils/math/decimalAdjustment.cjs.map +1 -1
  574. package/dist/utils/math/decimalAdjustment.d.cts +2 -31
  575. package/dist/utils/math/decimalAdjustment.d.ts +2 -31
  576. package/dist/utils/math/decimalAdjustment.js +34 -31
  577. package/dist/utils/math/decimalAdjustment.js.map +1 -1
  578. package/dist/utils/math/index.cjs +17 -37
  579. package/dist/utils/math/index.d.cts +8 -8
  580. package/dist/utils/math/index.d.ts +8 -8
  581. package/dist/utils/math/index.js +8 -9
  582. package/dist/utils/math/sumBigNumberBy.cjs +14 -33
  583. package/dist/utils/math/sumBigNumberBy.cjs.map +1 -1
  584. package/dist/utils/math/sumBigNumberBy.d.cts +2 -10
  585. package/dist/utils/math/sumBigNumberBy.d.ts +2 -10
  586. package/dist/utils/math/sumBigNumberBy.js +12 -9
  587. package/dist/utils/math/sumBigNumberBy.js.map +1 -1
  588. package/dist/utils/math/toBigInt.cjs +12 -31
  589. package/dist/utils/math/toBigInt.cjs.map +1 -1
  590. package/dist/utils/math/toBigInt.d.cts +2 -11
  591. package/dist/utils/math/toBigInt.d.ts +2 -11
  592. package/dist/utils/math/toBigInt.js +10 -7
  593. package/dist/utils/math/toBigInt.js.map +1 -1
  594. package/dist/utils/math/toIntegerString.cjs +12 -31
  595. package/dist/utils/math/toIntegerString.cjs.map +1 -1
  596. package/dist/utils/math/toIntegerString.d.cts +2 -11
  597. package/dist/utils/math/toIntegerString.d.ts +2 -11
  598. package/dist/utils/math/toIntegerString.js +10 -7
  599. package/dist/utils/math/toIntegerString.js.map +1 -1
  600. package/dist/utils/orders/appendix/appendixIsolatedValue.cjs +30 -46
  601. package/dist/utils/orders/appendix/appendixIsolatedValue.cjs.map +1 -1
  602. package/dist/utils/orders/appendix/appendixIsolatedValue.d.cts +7 -7
  603. package/dist/utils/orders/appendix/appendixIsolatedValue.d.cts.map +1 -0
  604. package/dist/utils/orders/appendix/appendixIsolatedValue.d.ts +7 -7
  605. package/dist/utils/orders/appendix/appendixIsolatedValue.d.ts.map +1 -0
  606. package/dist/utils/orders/appendix/appendixIsolatedValue.js +27 -26
  607. package/dist/utils/orders/appendix/appendixIsolatedValue.js.map +1 -1
  608. package/dist/utils/orders/appendix/appendixTwapValue.cjs +38 -45
  609. package/dist/utils/orders/appendix/appendixTwapValue.cjs.map +1 -1
  610. package/dist/utils/orders/appendix/appendixTwapValue.d.cts +2 -29
  611. package/dist/utils/orders/appendix/appendixTwapValue.d.ts +2 -29
  612. package/dist/utils/orders/appendix/appendixTwapValue.js +36 -21
  613. package/dist/utils/orders/appendix/appendixTwapValue.js.map +1 -1
  614. package/dist/utils/orders/appendix/bitMaskValue.cjs +14 -31
  615. package/dist/utils/orders/appendix/bitMaskValue.cjs.map +1 -1
  616. package/dist/utils/orders/appendix/bitMaskValue.d.cts +2 -10
  617. package/dist/utils/orders/appendix/bitMaskValue.d.ts +2 -10
  618. package/dist/utils/orders/appendix/bitMaskValue.js +13 -8
  619. package/dist/utils/orders/appendix/bitMaskValue.js.map +1 -1
  620. package/dist/utils/orders/appendix/index.cjs +10 -33
  621. package/dist/utils/orders/appendix/index.d.cts +6 -9
  622. package/dist/utils/orders/appendix/index.d.ts +6 -9
  623. package/dist/utils/orders/appendix/index.js +5 -7
  624. package/dist/utils/orders/appendix/packOrderAppendix.cjs +55 -87
  625. package/dist/utils/orders/appendix/packOrderAppendix.cjs.map +1 -1
  626. package/dist/utils/orders/appendix/packOrderAppendix.d.cts +2 -12
  627. package/dist/utils/orders/appendix/packOrderAppendix.d.ts +2 -12
  628. package/dist/utils/orders/appendix/packOrderAppendix.js +52 -62
  629. package/dist/utils/orders/appendix/packOrderAppendix.js.map +1 -1
  630. package/dist/utils/orders/appendix/types.cjs +0 -19
  631. package/dist/utils/orders/appendix/types.d.cts +2 -21
  632. package/dist/utils/orders/appendix/types.d.ts +2 -21
  633. package/dist/utils/orders/appendix/types.js +1 -1
  634. package/dist/utils/orders/appendix/unpackOrderAppendix.cjs +78 -118
  635. package/dist/utils/orders/appendix/unpackOrderAppendix.cjs.map +1 -1
  636. package/dist/utils/orders/appendix/unpackOrderAppendix.d.cts +2 -12
  637. package/dist/utils/orders/appendix/unpackOrderAppendix.d.ts +2 -12
  638. package/dist/utils/orders/appendix/unpackOrderAppendix.js +75 -93
  639. package/dist/utils/orders/appendix/unpackOrderAppendix.js.map +1 -1
  640. package/dist/utils/orders/index.cjs +15 -29
  641. package/dist/utils/orders/index.d.cts +8 -11
  642. package/dist/utils/orders/index.d.ts +8 -11
  643. package/dist/utils/orders/index.js +7 -5
  644. package/dist/utils/orders/orderNonce.cjs +23 -38
  645. package/dist/utils/orders/orderNonce.cjs.map +1 -1
  646. package/dist/utils/orders/orderNonce.d.cts +2 -14
  647. package/dist/utils/orders/orderNonce.d.ts +2 -14
  648. package/dist/utils/orders/orderNonce.js +18 -11
  649. package/dist/utils/orders/orderNonce.js.map +1 -1
  650. package/dist/utils/orders/recvTime.cjs +12 -30
  651. package/dist/utils/orders/recvTime.cjs.map +1 -1
  652. package/dist/utils/orders/recvTime.d.cts +2 -9
  653. package/dist/utils/orders/recvTime.d.ts +2 -9
  654. package/dist/utils/orders/recvTime.js +11 -7
  655. package/dist/utils/orders/recvTime.js.map +1 -1
  656. package/dist/utils/productTypeFilter.cjs +13 -40
  657. package/dist/utils/productTypeFilter.cjs.map +1 -1
  658. package/dist/utils/productTypeFilter.d.cts +2 -11
  659. package/dist/utils/productTypeFilter.d.ts +2 -11
  660. package/dist/utils/productTypeFilter.js +9 -16
  661. package/dist/utils/productTypeFilter.js.map +1 -1
  662. package/dist/utils/time.cjs +23 -42
  663. package/dist/utils/time.cjs.map +1 -1
  664. package/dist/utils/time.d.cts +2 -17
  665. package/dist/utils/time.d.ts +2 -17
  666. package/dist/utils/time.js +20 -17
  667. package/dist/utils/time.js.map +1 -1
  668. package/dist/utils/toPrintableObject.cjs +21 -66
  669. package/dist/utils/toPrintableObject.cjs.map +1 -1
  670. package/dist/utils/toPrintableObject.d.cts +2 -11
  671. package/dist/utils/toPrintableObject.d.ts +2 -11
  672. package/dist/utils/toPrintableObject.js +17 -32
  673. package/dist/utils/toPrintableObject.js.map +1 -1
  674. package/dist/viemTypes-D3kRC8jF.d.ts +25 -0
  675. package/dist/viemTypes-D3kRC8jF.d.ts.map +1 -0
  676. package/dist/viemTypes-Mjfxe2ou.d.cts +25 -0
  677. package/dist/viemTypes-Mjfxe2ou.d.cts.map +1 -0
  678. package/package.json +9 -9
  679. package/dist/abis/index.cjs.map +0 -1
  680. package/dist/abis/index.js.map +0 -1
  681. package/dist/chunk-2GPIH63F.js +0 -33
  682. package/dist/chunk-2GPIH63F.js.map +0 -1
  683. package/dist/chunk-5WRI5ZAA.js +0 -31
  684. package/dist/chunk-5WRI5ZAA.js.map +0 -1
  685. package/dist/consts/index.cjs.map +0 -1
  686. package/dist/consts/index.js.map +0 -1
  687. package/dist/deployments/index.cjs.map +0 -1
  688. package/dist/deployments/index.js.map +0 -1
  689. package/dist/eip712/eip712ValueTypes.cjs.map +0 -1
  690. package/dist/eip712/eip712ValueTypes.js.map +0 -1
  691. package/dist/eip712/index.cjs.map +0 -1
  692. package/dist/eip712/index.js.map +0 -1
  693. package/dist/eip712/signableRequestType.cjs.map +0 -1
  694. package/dist/eip712/signableRequestType.js.map +0 -1
  695. package/dist/eip712/signatureParamTypes.cjs.map +0 -1
  696. package/dist/eip712/signatureParamTypes.js.map +0 -1
  697. package/dist/encoding/index.cjs.map +0 -1
  698. package/dist/encoding/index.js.map +0 -1
  699. package/dist/execute/index.cjs.map +0 -1
  700. package/dist/execute/index.js.map +0 -1
  701. package/dist/index.cjs.map +0 -1
  702. package/dist/index.js.map +0 -1
  703. package/dist/types/OrderExecutionType.cjs.map +0 -1
  704. package/dist/types/OrderExecutionType.js.map +0 -1
  705. package/dist/types/balanceTypes.cjs.map +0 -1
  706. package/dist/types/balanceTypes.js.map +0 -1
  707. package/dist/types/bytes.cjs.map +0 -1
  708. package/dist/types/bytes.js.map +0 -1
  709. package/dist/types/healthTypes.cjs.map +0 -1
  710. package/dist/types/healthTypes.js.map +0 -1
  711. package/dist/types/index.cjs.map +0 -1
  712. package/dist/types/index.js.map +0 -1
  713. package/dist/types/marketTypes.cjs.map +0 -1
  714. package/dist/types/marketTypes.js.map +0 -1
  715. package/dist/types/nadoContractTypes.cjs.map +0 -1
  716. package/dist/types/nadoContractTypes.js.map +0 -1
  717. package/dist/types/orderAppendixTypes.cjs.map +0 -1
  718. package/dist/types/orderAppendixTypes.js.map +0 -1
  719. package/dist/types/subaccountTypes.cjs.map +0 -1
  720. package/dist/types/subaccountTypes.js.map +0 -1
  721. package/dist/types/viemTypes.cjs.map +0 -1
  722. package/dist/types/viemTypes.js.map +0 -1
  723. package/dist/utils/bytes32.test.cjs +0 -203
  724. package/dist/utils/bytes32.test.cjs.map +0 -1
  725. package/dist/utils/bytes32.test.d.cts +0 -2
  726. package/dist/utils/bytes32.test.d.ts +0 -2
  727. package/dist/utils/bytes32.test.js +0 -165
  728. package/dist/utils/bytes32.test.js.map +0 -1
  729. package/dist/utils/errors/index.cjs.map +0 -1
  730. package/dist/utils/errors/index.js.map +0 -1
  731. package/dist/utils/index.cjs.map +0 -1
  732. package/dist/utils/index.js.map +0 -1
  733. package/dist/utils/math/index.cjs.map +0 -1
  734. package/dist/utils/math/index.js.map +0 -1
  735. package/dist/utils/orders/appendix/index.cjs.map +0 -1
  736. package/dist/utils/orders/appendix/index.js.map +0 -1
  737. package/dist/utils/orders/appendix/orderAppendix.test.cjs +0 -218
  738. package/dist/utils/orders/appendix/orderAppendix.test.cjs.map +0 -1
  739. package/dist/utils/orders/appendix/orderAppendix.test.d.cts +0 -2
  740. package/dist/utils/orders/appendix/orderAppendix.test.d.ts +0 -2
  741. package/dist/utils/orders/appendix/orderAppendix.test.js +0 -173
  742. package/dist/utils/orders/appendix/orderAppendix.test.js.map +0 -1
  743. package/dist/utils/orders/appendix/types.cjs.map +0 -1
  744. package/dist/utils/orders/appendix/types.js.map +0 -1
  745. package/dist/utils/orders/index.cjs.map +0 -1
  746. package/dist/utils/orders/index.js.map +0 -1
@@ -1,8 +1,8 @@
1
- export { BigNumberish, toBigNumber } from './bigNumber.js';
2
- export { BigNumbers } from './BigNumbers.js';
3
- export { clampBigNumber } from './clamp.js';
4
- export { NADO_PRODUCT_DECIMALS, addDecimals, removeDecimals } from './decimalAdjustment.js';
5
- export { sumBigNumberBy } from './sumBigNumberBy.js';
6
- export { toBigInt } from './toBigInt.js';
7
- export { toIntegerString } from './toIntegerString.js';
8
- import 'bignumber.js';
1
+ import { n as toBigNumber, t as BigNumberish } from "../../bigNumber-BLE4n-ku.js";
2
+ import { t as BigNumbers } from "../../BigNumbers-CM-lXODL.js";
3
+ import { t as clampBigNumber } from "../../clamp-CWW-gFbE.js";
4
+ import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../../decimalAdjustment-1vhO65Zz.js";
5
+ import { t as sumBigNumberBy } from "../../sumBigNumberBy-wVwOxwyc.js";
6
+ import { t as toBigInt } from "../../toBigInt-PqI3ILSN.js";
7
+ import { t as toIntegerString } from "../../toIntegerString-sATPFuxt.js";
8
+ export { BigNumberish, BigNumbers, NADO_PRODUCT_DECIMALS, addDecimals, clampBigNumber, removeDecimals, sumBigNumberBy, toBigInt, toBigNumber, toIntegerString };
@@ -1,9 +1,8 @@
1
- // src/utils/math/index.ts
2
- export * from "./bigNumber.js";
3
- export * from "./BigNumbers.js";
4
- export * from "./clamp.js";
5
- export * from "./decimalAdjustment.js";
6
- export * from "./sumBigNumberBy.js";
7
- export * from "./toBigInt.js";
8
- export * from "./toIntegerString.js";
9
- //# sourceMappingURL=index.js.map
1
+ import { toBigNumber } from "./bigNumber.js";
2
+ import { BigNumbers } from "./BigNumbers.js";
3
+ import { clampBigNumber } from "./clamp.js";
4
+ import { NADO_PRODUCT_DECIMALS, addDecimals, removeDecimals } from "./decimalAdjustment.js";
5
+ import { sumBigNumberBy } from "./sumBigNumberBy.js";
6
+ import { toIntegerString } from "./toIntegerString.js";
7
+ import { toBigInt } from "./toBigInt.js";
8
+ export { BigNumbers, NADO_PRODUCT_DECIMALS, addDecimals, clampBigNumber, removeDecimals, sumBigNumberBy, toBigInt, toBigNumber, toIntegerString };
@@ -1,36 +1,17 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/utils/math/sumBigNumberBy.ts
21
- var sumBigNumberBy_exports = {};
22
- __export(sumBigNumberBy_exports, {
23
- sumBigNumberBy: () => sumBigNumberBy
24
- });
25
- module.exports = __toCommonJS(sumBigNumberBy_exports);
26
- var import_BigNumbers = require("./BigNumbers.cjs");
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_utils_math_BigNumbers = require("./BigNumbers.cjs");
3
+ //#region src/utils/math/sumBigNumberBy.ts
4
+ /**
5
+ * Util function to sum BigNumber values, inspired by Lodash
6
+ * @param collection
7
+ * @param iteratee
8
+ */
27
9
  function sumBigNumberBy(collection, iteratee) {
28
- return collection?.reduce((total, item) => {
29
- return total.plus(iteratee(item));
30
- }, import_BigNumbers.BigNumbers.ZERO) ?? import_BigNumbers.BigNumbers.ZERO;
10
+ return collection?.reduce((total, item) => {
11
+ return total.plus(iteratee(item));
12
+ }, require_utils_math_BigNumbers.BigNumbers.ZERO) ?? require_utils_math_BigNumbers.BigNumbers.ZERO;
31
13
  }
32
- // Annotate the CommonJS export names for ESM import in node:
33
- 0 && (module.exports = {
34
- sumBigNumberBy
35
- });
14
+ //#endregion
15
+ exports.sumBigNumberBy = sumBigNumberBy;
16
+
36
17
  //# sourceMappingURL=sumBigNumberBy.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/utils/math/sumBigNumberBy.ts"],"sourcesContent":["import BigNumber from 'bignumber.js';\nimport { BigNumbers } from './BigNumbers';\n\n/**\n * Util function to sum BigNumber values, inspired by Lodash\n * @param collection\n * @param iteratee\n */\nexport function sumBigNumberBy<T>(\n collection: T[] | null | undefined,\n iteratee: (value: T) => BigNumber.Value,\n): BigNumber {\n return (\n collection?.reduce((total, item) => {\n return total.plus(iteratee(item));\n }, BigNumbers.ZERO) ?? BigNumbers.ZERO\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,wBAA2B;AAOpB,SAAS,eACd,YACA,UACW;AACX,SACE,YAAY,OAAO,CAAC,OAAO,SAAS;AAClC,WAAO,MAAM,KAAK,SAAS,IAAI,CAAC;AAAA,EAClC,GAAG,6BAAW,IAAI,KAAK,6BAAW;AAEtC;","names":[]}
1
+ {"version":3,"file":"sumBigNumberBy.cjs","names":["BigNumbers"],"sources":["../../../src/utils/math/sumBigNumberBy.ts"],"sourcesContent":["import BigNumber from 'bignumber.js';\nimport { BigNumbers } from './BigNumbers';\n\n/**\n * Util function to sum BigNumber values, inspired by Lodash\n * @param collection\n * @param iteratee\n */\nexport function sumBigNumberBy<T>(\n collection: T[] | null | undefined,\n iteratee: (value: T) => BigNumber.Value,\n): BigNumber {\n return (\n collection?.reduce((total, item) => {\n return total.plus(iteratee(item));\n }, BigNumbers.ZERO) ?? BigNumbers.ZERO\n );\n}\n"],"mappings":";;;;;;;;AAQA,SAAgB,eACd,YACA,UACW;CACX,OACE,YAAY,QAAQ,OAAO,SAAS;EAClC,OAAO,MAAM,KAAK,SAAS,IAAI,CAAC;CAClC,GAAGA,8BAAAA,WAAW,IAAI,KAAKA,8BAAAA,WAAW;AAEtC"}
@@ -1,10 +1,2 @@
1
- import BigNumber__default from 'bignumber.js';
2
-
3
- /**
4
- * Util function to sum BigNumber values, inspired by Lodash
5
- * @param collection
6
- * @param iteratee
7
- */
8
- declare function sumBigNumberBy<T>(collection: T[] | null | undefined, iteratee: (value: T) => BigNumber__default.Value): BigNumber__default;
9
-
10
- export { sumBigNumberBy };
1
+ import { t as sumBigNumberBy } from "../../sumBigNumberBy-BWQ-bPpk.cjs";
2
+ export { sumBigNumberBy };
@@ -1,10 +1,2 @@
1
- import BigNumber__default from 'bignumber.js';
2
-
3
- /**
4
- * Util function to sum BigNumber values, inspired by Lodash
5
- * @param collection
6
- * @param iteratee
7
- */
8
- declare function sumBigNumberBy<T>(collection: T[] | null | undefined, iteratee: (value: T) => BigNumber__default.Value): BigNumber__default;
9
-
10
- export { sumBigNumberBy };
1
+ import { t as sumBigNumberBy } from "../../sumBigNumberBy-wVwOxwyc.js";
2
+ export { sumBigNumberBy };
@@ -1,13 +1,16 @@
1
- import "../../chunk-5WRI5ZAA.js";
2
-
3
- // src/utils/math/sumBigNumberBy.ts
4
1
  import { BigNumbers } from "./BigNumbers.js";
2
+ //#region src/utils/math/sumBigNumberBy.ts
3
+ /**
4
+ * Util function to sum BigNumber values, inspired by Lodash
5
+ * @param collection
6
+ * @param iteratee
7
+ */
5
8
  function sumBigNumberBy(collection, iteratee) {
6
- return collection?.reduce((total, item) => {
7
- return total.plus(iteratee(item));
8
- }, BigNumbers.ZERO) ?? BigNumbers.ZERO;
9
+ return collection?.reduce((total, item) => {
10
+ return total.plus(iteratee(item));
11
+ }, BigNumbers.ZERO) ?? BigNumbers.ZERO;
9
12
  }
10
- export {
11
- sumBigNumberBy
12
- };
13
+ //#endregion
14
+ export { sumBigNumberBy };
15
+
13
16
  //# sourceMappingURL=sumBigNumberBy.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/utils/math/sumBigNumberBy.ts"],"sourcesContent":["import BigNumber from 'bignumber.js';\nimport { BigNumbers } from './BigNumbers';\n\n/**\n * Util function to sum BigNumber values, inspired by Lodash\n * @param collection\n * @param iteratee\n */\nexport function sumBigNumberBy<T>(\n collection: T[] | null | undefined,\n iteratee: (value: T) => BigNumber.Value,\n): BigNumber {\n return (\n collection?.reduce((total, item) => {\n return total.plus(iteratee(item));\n }, BigNumbers.ZERO) ?? BigNumbers.ZERO\n );\n}\n"],"mappings":";;;AACA,SAAS,kBAAkB;AAOpB,SAAS,eACd,YACA,UACW;AACX,SACE,YAAY,OAAO,CAAC,OAAO,SAAS;AAClC,WAAO,MAAM,KAAK,SAAS,IAAI,CAAC;AAAA,EAClC,GAAG,WAAW,IAAI,KAAK,WAAW;AAEtC;","names":[]}
1
+ {"version":3,"file":"sumBigNumberBy.js","names":[],"sources":["../../../src/utils/math/sumBigNumberBy.ts"],"sourcesContent":["import BigNumber from 'bignumber.js';\nimport { BigNumbers } from './BigNumbers';\n\n/**\n * Util function to sum BigNumber values, inspired by Lodash\n * @param collection\n * @param iteratee\n */\nexport function sumBigNumberBy<T>(\n collection: T[] | null | undefined,\n iteratee: (value: T) => BigNumber.Value,\n): BigNumber {\n return (\n collection?.reduce((total, item) => {\n return total.plus(iteratee(item));\n }, BigNumbers.ZERO) ?? BigNumbers.ZERO\n );\n}\n"],"mappings":";;;;;;;AAQA,SAAgB,eACd,YACA,UACW;CACX,OACE,YAAY,QAAQ,OAAO,SAAS;EAClC,OAAO,MAAM,KAAK,SAAS,IAAI,CAAC;CAClC,GAAG,WAAW,IAAI,KAAK,WAAW;AAEtC"}
@@ -1,34 +1,15 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/utils/math/toBigInt.ts
21
- var toBigInt_exports = {};
22
- __export(toBigInt_exports, {
23
- toBigInt: () => toBigInt
24
- });
25
- module.exports = __toCommonJS(toBigInt_exports);
26
- var import_toIntegerString = require("./toIntegerString.cjs");
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_utils_math_toIntegerString = require("./toIntegerString.cjs");
3
+ //#region src/utils/math/toBigInt.ts
4
+ /**
5
+ * Converts a BigNumberish value to bigint
6
+ *
7
+ * @param val
8
+ */
27
9
  function toBigInt(val) {
28
- return BigInt((0, import_toIntegerString.toIntegerString)(val));
10
+ return BigInt(require_utils_math_toIntegerString.toIntegerString(val));
29
11
  }
30
- // Annotate the CommonJS export names for ESM import in node:
31
- 0 && (module.exports = {
32
- toBigInt
33
- });
12
+ //#endregion
13
+ exports.toBigInt = toBigInt;
14
+
34
15
  //# sourceMappingURL=toBigInt.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/utils/math/toBigInt.ts"],"sourcesContent":["import { BigNumberish } from './bigNumber';\nimport { toIntegerString } from './toIntegerString';\n\n/**\n * Converts a BigNumberish value to bigint\n *\n * @param val\n */\nexport function toBigInt(val: BigNumberish): bigint {\n return BigInt(toIntegerString(val));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,6BAAgC;AAOzB,SAAS,SAAS,KAA2B;AAClD,SAAO,WAAO,wCAAgB,GAAG,CAAC;AACpC;","names":[]}
1
+ {"version":3,"file":"toBigInt.cjs","names":["toIntegerString"],"sources":["../../../src/utils/math/toBigInt.ts"],"sourcesContent":["import { BigNumberish } from './bigNumber';\nimport { toIntegerString } from './toIntegerString';\n\n/**\n * Converts a BigNumberish value to bigint\n *\n * @param val\n */\nexport function toBigInt(val: BigNumberish): bigint {\n return BigInt(toIntegerString(val));\n}\n"],"mappings":";;;;;;;;AAQA,SAAgB,SAAS,KAA2B;CAClD,OAAO,OAAOA,mCAAAA,gBAAgB,GAAG,CAAC;AACpC"}
@@ -1,11 +1,2 @@
1
- import { BigNumberish } from './bigNumber.cjs';
2
- import 'bignumber.js';
3
-
4
- /**
5
- * Converts a BigNumberish value to bigint
6
- *
7
- * @param val
8
- */
9
- declare function toBigInt(val: BigNumberish): bigint;
10
-
11
- export { toBigInt };
1
+ import { t as toBigInt } from "../../toBigInt-cEajjeFa.cjs";
2
+ export { toBigInt };
@@ -1,11 +1,2 @@
1
- import { BigNumberish } from './bigNumber.js';
2
- import 'bignumber.js';
3
-
4
- /**
5
- * Converts a BigNumberish value to bigint
6
- *
7
- * @param val
8
- */
9
- declare function toBigInt(val: BigNumberish): bigint;
10
-
11
- export { toBigInt };
1
+ import { t as toBigInt } from "../../toBigInt-PqI3ILSN.js";
2
+ export { toBigInt };
@@ -1,11 +1,14 @@
1
- import "../../chunk-5WRI5ZAA.js";
2
-
3
- // src/utils/math/toBigInt.ts
4
1
  import { toIntegerString } from "./toIntegerString.js";
2
+ //#region src/utils/math/toBigInt.ts
3
+ /**
4
+ * Converts a BigNumberish value to bigint
5
+ *
6
+ * @param val
7
+ */
5
8
  function toBigInt(val) {
6
- return BigInt(toIntegerString(val));
9
+ return BigInt(toIntegerString(val));
7
10
  }
8
- export {
9
- toBigInt
10
- };
11
+ //#endregion
12
+ export { toBigInt };
13
+
11
14
  //# sourceMappingURL=toBigInt.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/utils/math/toBigInt.ts"],"sourcesContent":["import { BigNumberish } from './bigNumber';\nimport { toIntegerString } from './toIntegerString';\n\n/**\n * Converts a BigNumberish value to bigint\n *\n * @param val\n */\nexport function toBigInt(val: BigNumberish): bigint {\n return BigInt(toIntegerString(val));\n}\n"],"mappings":";;;AACA,SAAS,uBAAuB;AAOzB,SAAS,SAAS,KAA2B;AAClD,SAAO,OAAO,gBAAgB,GAAG,CAAC;AACpC;","names":[]}
1
+ {"version":3,"file":"toBigInt.js","names":[],"sources":["../../../src/utils/math/toBigInt.ts"],"sourcesContent":["import { BigNumberish } from './bigNumber';\nimport { toIntegerString } from './toIntegerString';\n\n/**\n * Converts a BigNumberish value to bigint\n *\n * @param val\n */\nexport function toBigInt(val: BigNumberish): bigint {\n return BigInt(toIntegerString(val));\n}\n"],"mappings":";;;;;;;AAQA,SAAgB,SAAS,KAA2B;CAClD,OAAO,OAAO,gBAAgB,GAAG,CAAC;AACpC"}
@@ -1,34 +1,15 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/utils/math/toIntegerString.ts
21
- var toIntegerString_exports = {};
22
- __export(toIntegerString_exports, {
23
- toIntegerString: () => toIntegerString
24
- });
25
- module.exports = __toCommonJS(toIntegerString_exports);
26
- var import_bigNumber = require("./bigNumber.cjs");
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_utils_math_bigNumber = require("./bigNumber.cjs");
3
+ //#region src/utils/math/toIntegerString.ts
4
+ /**
5
+ * Converts a BigNumberish value to string
6
+ *
7
+ * @param val
8
+ */
27
9
  function toIntegerString(val) {
28
- return (0, import_bigNumber.toBigNumber)(val).toFixed(0);
10
+ return require_utils_math_bigNumber.toBigNumber(val).toFixed(0);
29
11
  }
30
- // Annotate the CommonJS export names for ESM import in node:
31
- 0 && (module.exports = {
32
- toIntegerString
33
- });
12
+ //#endregion
13
+ exports.toIntegerString = toIntegerString;
14
+
34
15
  //# sourceMappingURL=toIntegerString.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/utils/math/toIntegerString.ts"],"sourcesContent":["import { BigNumberish, toBigNumber } from './bigNumber';\n\n/**\n * Converts a BigNumberish value to string\n *\n * @param val\n */\nexport function toIntegerString(val: BigNumberish): string {\n // toFixed is required as toString gives values with `e`\n return toBigNumber(val).toFixed(0);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAA0C;AAOnC,SAAS,gBAAgB,KAA2B;AAEzD,aAAO,8BAAY,GAAG,EAAE,QAAQ,CAAC;AACnC;","names":[]}
1
+ {"version":3,"file":"toIntegerString.cjs","names":["toBigNumber"],"sources":["../../../src/utils/math/toIntegerString.ts"],"sourcesContent":["import { BigNumberish, toBigNumber } from './bigNumber';\n\n/**\n * Converts a BigNumberish value to string\n *\n * @param val\n */\nexport function toIntegerString(val: BigNumberish): string {\n // toFixed is required as toString gives values with `e`\n return toBigNumber(val).toFixed(0);\n}\n"],"mappings":";;;;;;;;AAOA,SAAgB,gBAAgB,KAA2B;CAEzD,OAAOA,6BAAAA,YAAY,GAAG,EAAE,QAAQ,CAAC;AACnC"}
@@ -1,11 +1,2 @@
1
- import { BigNumberish } from './bigNumber.cjs';
2
- import 'bignumber.js';
3
-
4
- /**
5
- * Converts a BigNumberish value to string
6
- *
7
- * @param val
8
- */
9
- declare function toIntegerString(val: BigNumberish): string;
10
-
11
- export { toIntegerString };
1
+ import { t as toIntegerString } from "../../toIntegerString-CHveFt3s.cjs";
2
+ export { toIntegerString };
@@ -1,11 +1,2 @@
1
- import { BigNumberish } from './bigNumber.js';
2
- import 'bignumber.js';
3
-
4
- /**
5
- * Converts a BigNumberish value to string
6
- *
7
- * @param val
8
- */
9
- declare function toIntegerString(val: BigNumberish): string;
10
-
11
- export { toIntegerString };
1
+ import { t as toIntegerString } from "../../toIntegerString-sATPFuxt.js";
2
+ export { toIntegerString };
@@ -1,11 +1,14 @@
1
- import "../../chunk-5WRI5ZAA.js";
2
-
3
- // src/utils/math/toIntegerString.ts
4
1
  import { toBigNumber } from "./bigNumber.js";
2
+ //#region src/utils/math/toIntegerString.ts
3
+ /**
4
+ * Converts a BigNumberish value to string
5
+ *
6
+ * @param val
7
+ */
5
8
  function toIntegerString(val) {
6
- return toBigNumber(val).toFixed(0);
9
+ return toBigNumber(val).toFixed(0);
7
10
  }
8
- export {
9
- toIntegerString
10
- };
11
+ //#endregion
12
+ export { toIntegerString };
13
+
11
14
  //# sourceMappingURL=toIntegerString.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/utils/math/toIntegerString.ts"],"sourcesContent":["import { BigNumberish, toBigNumber } from './bigNumber';\n\n/**\n * Converts a BigNumberish value to string\n *\n * @param val\n */\nexport function toIntegerString(val: BigNumberish): string {\n // toFixed is required as toString gives values with `e`\n return toBigNumber(val).toFixed(0);\n}\n"],"mappings":";;;AAAA,SAAuB,mBAAmB;AAOnC,SAAS,gBAAgB,KAA2B;AAEzD,SAAO,YAAY,GAAG,EAAE,QAAQ,CAAC;AACnC;","names":[]}
1
+ {"version":3,"file":"toIntegerString.js","names":[],"sources":["../../../src/utils/math/toIntegerString.ts"],"sourcesContent":["import { BigNumberish, toBigNumber } from './bigNumber';\n\n/**\n * Converts a BigNumberish value to string\n *\n * @param val\n */\nexport function toIntegerString(val: BigNumberish): string {\n // toFixed is required as toString gives values with `e`\n return toBigNumber(val).toFixed(0);\n}\n"],"mappings":";;;;;;;AAOA,SAAgB,gBAAgB,KAA2B;CAEzD,OAAO,YAAY,GAAG,EAAE,QAAQ,CAAC;AACnC"}
@@ -1,50 +1,34 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/utils/orders/appendix/appendixIsolatedValue.ts
21
- var appendixIsolatedValue_exports = {};
22
- __export(appendixIsolatedValue_exports, {
23
- packIsolatedOrderAppendixValue: () => packIsolatedOrderAppendixValue,
24
- unpackIsolatedOrderAppendixValue: () => unpackIsolatedOrderAppendixValue
25
- });
26
- module.exports = __toCommonJS(appendixIsolatedValue_exports);
27
- var import_math = require("../../math/index.cjs");
28
- var import_bitMaskValue = require("./bitMaskValue.cjs");
29
- var APPENDIX_V1_ISO_MARGIN_DECIMALS = 6;
30
- var MARGIN_DECIMAL_ADJUSTMENT = import_math.NADO_PRODUCT_DECIMALS - APPENDIX_V1_ISO_MARGIN_DECIMALS;
31
- function packIsolatedOrderAppendixValue({
32
- margin
33
- }) {
34
- return (0, import_bitMaskValue.bitMaskValue)(
35
- (0, import_math.toBigInt)((0, import_math.removeDecimals)(margin, MARGIN_DECIMAL_ADJUSTMENT)),
36
- 64
37
- );
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_utils_math_decimalAdjustment = require("../../math/decimalAdjustment.cjs");
3
+ const require_utils_math_toBigInt = require("../../math/toBigInt.cjs");
4
+ const require_utils_orders_appendix_bitMaskValue = require("./bitMaskValue.cjs");
5
+ //#region src/utils/orders/appendix/appendixIsolatedValue.ts
6
+ const MARGIN_DECIMAL_ADJUSTMENT = 12;
7
+ /**
8
+ * Packs the provided margin into a single 64-bit bigint.
9
+ *
10
+ * Bit layout (MSB LSB):
11
+ * | margin_x6 |
12
+ * |-----------|
13
+ * | 63..0 |
14
+ * | 64 bits |
15
+ *
16
+ */
17
+ function packIsolatedOrderAppendixValue({ margin }) {
18
+ return require_utils_orders_appendix_bitMaskValue.bitMaskValue(require_utils_math_toBigInt.toBigInt(require_utils_math_decimalAdjustment.removeDecimals(margin, MARGIN_DECIMAL_ADJUSTMENT)), 64);
38
19
  }
20
+ /**
21
+ * Unpacks a 64-bit bigint into its component fields for Isolated orders.
22
+ *
23
+ * @param value 64-bit bigint to unpack
24
+ * @returns Object with:
25
+ * - margin_x6: bigint, from bits 63..0
26
+ */
39
27
  function unpackIsolatedOrderAppendixValue(value) {
40
- const margin = (0, import_bitMaskValue.bitMaskValue)(value, 64);
41
- return {
42
- margin: (0, import_math.toBigInt)((0, import_math.addDecimals)(margin, MARGIN_DECIMAL_ADJUSTMENT))
43
- };
28
+ return { margin: require_utils_math_toBigInt.toBigInt(require_utils_math_decimalAdjustment.addDecimals(require_utils_orders_appendix_bitMaskValue.bitMaskValue(value, 64), MARGIN_DECIMAL_ADJUSTMENT)) };
44
29
  }
45
- // Annotate the CommonJS export names for ESM import in node:
46
- 0 && (module.exports = {
47
- packIsolatedOrderAppendixValue,
48
- unpackIsolatedOrderAppendixValue
49
- });
30
+ //#endregion
31
+ exports.packIsolatedOrderAppendixValue = packIsolatedOrderAppendixValue;
32
+ exports.unpackIsolatedOrderAppendixValue = unpackIsolatedOrderAppendixValue;
33
+
50
34
  //# sourceMappingURL=appendixIsolatedValue.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/utils/orders/appendix/appendixIsolatedValue.ts"],"sourcesContent":["import { OrderAppendixIsolatedFields } from '../../../types';\nimport {\n addDecimals,\n NADO_PRODUCT_DECIMALS,\n removeDecimals,\n toBigInt,\n} from '../../math';\nimport { bitMaskValue } from './bitMaskValue';\n\nconst APPENDIX_V1_ISO_MARGIN_DECIMALS = 6;\n\n/* Appendix v1 uses x6 precision, so we need to adjust precision to/from SDK's usual precision */\nconst MARGIN_DECIMAL_ADJUSTMENT =\n NADO_PRODUCT_DECIMALS - APPENDIX_V1_ISO_MARGIN_DECIMALS;\n\n/**\n * Packs the provided margin into a single 64-bit bigint.\n *\n * Bit layout (MSB → LSB):\n * | margin_x6 |\n * |-----------|\n * | 63..0 |\n * | 64 bits |\n *\n */\nexport function packIsolatedOrderAppendixValue({\n margin,\n}: OrderAppendixIsolatedFields): bigint {\n return bitMaskValue(\n toBigInt(removeDecimals(margin, MARGIN_DECIMAL_ADJUSTMENT)),\n 64,\n );\n}\n\n/**\n * Unpacks a 64-bit bigint into its component fields for Isolated orders.\n *\n * @param value 64-bit bigint to unpack\n * @returns Object with:\n * - margin_x6: bigint, from bits 63..0\n */\nexport function unpackIsolatedOrderAppendixValue(\n value: bigint,\n): OrderAppendixIsolatedFields {\n const margin = bitMaskValue(value, 64);\n return {\n margin: toBigInt(addDecimals(margin, MARGIN_DECIMAL_ADJUSTMENT)),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAKO;AACP,0BAA6B;AAE7B,IAAM,kCAAkC;AAGxC,IAAM,4BACJ,oCAAwB;AAYnB,SAAS,+BAA+B;AAAA,EAC7C;AACF,GAAwC;AACtC,aAAO;AAAA,QACL,0BAAS,4BAAe,QAAQ,yBAAyB,CAAC;AAAA,IAC1D;AAAA,EACF;AACF;AASO,SAAS,iCACd,OAC6B;AAC7B,QAAM,aAAS,kCAAa,OAAO,EAAE;AACrC,SAAO;AAAA,IACL,YAAQ,0BAAS,yBAAY,QAAQ,yBAAyB,CAAC;AAAA,EACjE;AACF;","names":[]}
1
+ {"version":3,"file":"appendixIsolatedValue.cjs","names":["bitMaskValue","toBigInt","removeDecimals","addDecimals"],"sources":["../../../../src/utils/orders/appendix/appendixIsolatedValue.ts"],"sourcesContent":["import { OrderAppendixIsolatedFields } from '../../../types';\nimport {\n addDecimals,\n NADO_PRODUCT_DECIMALS,\n removeDecimals,\n toBigInt,\n} from '../../math';\nimport { bitMaskValue } from './bitMaskValue';\n\nconst APPENDIX_V1_ISO_MARGIN_DECIMALS = 6;\n\n/* Appendix v1 uses x6 precision, so we need to adjust precision to/from SDK's usual precision */\nconst MARGIN_DECIMAL_ADJUSTMENT =\n NADO_PRODUCT_DECIMALS - APPENDIX_V1_ISO_MARGIN_DECIMALS;\n\n/**\n * Packs the provided margin into a single 64-bit bigint.\n *\n * Bit layout (MSB → LSB):\n * | margin_x6 |\n * |-----------|\n * | 63..0 |\n * | 64 bits |\n *\n */\nexport function packIsolatedOrderAppendixValue({\n margin,\n}: OrderAppendixIsolatedFields): bigint {\n return bitMaskValue(\n toBigInt(removeDecimals(margin, MARGIN_DECIMAL_ADJUSTMENT)),\n 64,\n );\n}\n\n/**\n * Unpacks a 64-bit bigint into its component fields for Isolated orders.\n *\n * @param value 64-bit bigint to unpack\n * @returns Object with:\n * - margin_x6: bigint, from bits 63..0\n */\nexport function unpackIsolatedOrderAppendixValue(\n value: bigint,\n): OrderAppendixIsolatedFields {\n const margin = bitMaskValue(value, 64);\n return {\n margin: toBigInt(addDecimals(margin, MARGIN_DECIMAL_ADJUSTMENT)),\n };\n}\n"],"mappings":";;;;;AAYA,MAAM,4BAAA;;;;;;;;;;;AAaN,SAAgB,+BAA+B,EAC7C,UACsC;CACtC,OAAOA,2CAAAA,aACLC,4BAAAA,SAASC,qCAAAA,eAAe,QAAQ,yBAAyB,CAAC,GAC1D,EACF;AACF;;;;;;;;AASA,SAAgB,iCACd,OAC6B;CAE7B,OAAO,EACL,QAAQD,4BAAAA,SAASE,qCAAAA,YAFJH,2CAAAA,aAAa,OAAO,EAEC,GAAG,yBAAyB,CAAC,EACjE;AACF"}
@@ -1,8 +1,5 @@
1
- import { OrderAppendixIsolatedFields } from '../../../types/orderAppendixTypes.cjs';
2
- import '../../math/bigNumber.cjs';
3
- import 'bignumber.js';
4
- import '../../../types/OrderExecutionType.cjs';
5
-
1
+ import { r as OrderAppendixIsolatedFields } from "../../../orderAppendixTypes-CM-eb5WL.cjs";
2
+ //#region src/utils/orders/appendix/appendixIsolatedValue.d.ts
6
3
  /**
7
4
  * Packs the provided margin into a single 64-bit bigint.
8
5
  *
@@ -13,7 +10,9 @@ import '../../../types/OrderExecutionType.cjs';
13
10
  * | 64 bits |
14
11
  *
15
12
  */
16
- declare function packIsolatedOrderAppendixValue({ margin, }: OrderAppendixIsolatedFields): bigint;
13
+ declare function packIsolatedOrderAppendixValue({
14
+ margin
15
+ }: OrderAppendixIsolatedFields): bigint;
17
16
  /**
18
17
  * Unpacks a 64-bit bigint into its component fields for Isolated orders.
19
18
  *
@@ -22,5 +21,6 @@ declare function packIsolatedOrderAppendixValue({ margin, }: OrderAppendixIsolat
22
21
  * - margin_x6: bigint, from bits 63..0
23
22
  */
24
23
  declare function unpackIsolatedOrderAppendixValue(value: bigint): OrderAppendixIsolatedFields;
25
-
24
+ //#endregion
26
25
  export { packIsolatedOrderAppendixValue, unpackIsolatedOrderAppendixValue };
26
+ //# sourceMappingURL=appendixIsolatedValue.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appendixIsolatedValue.d.cts","names":[],"sources":["../../../../src/utils/orders/appendix/src/utils/orders/appendix/appendixIsolatedValue.ts"],"mappings":";;;;;AAyBA;;;;;;;iBAAgB,8BAAA,CAAA;EACd;AAAA,GACC,2BAA2B;AAAA;AAc9B;;;;AAE8B;;AAhBA,iBAcd,gCAAA,CACd,KAAA,WACC,2BAA2B"}
@@ -1,8 +1,5 @@
1
- import { OrderAppendixIsolatedFields } from '../../../types/orderAppendixTypes.js';
2
- import '../../math/bigNumber.js';
3
- import 'bignumber.js';
4
- import '../../../types/OrderExecutionType.js';
5
-
1
+ import { r as OrderAppendixIsolatedFields } from "../../../orderAppendixTypes-5NqkTOxO.js";
2
+ //#region src/utils/orders/appendix/appendixIsolatedValue.d.ts
6
3
  /**
7
4
  * Packs the provided margin into a single 64-bit bigint.
8
5
  *
@@ -13,7 +10,9 @@ import '../../../types/OrderExecutionType.js';
13
10
  * | 64 bits |
14
11
  *
15
12
  */
16
- declare function packIsolatedOrderAppendixValue({ margin, }: OrderAppendixIsolatedFields): bigint;
13
+ declare function packIsolatedOrderAppendixValue({
14
+ margin
15
+ }: OrderAppendixIsolatedFields): bigint;
17
16
  /**
18
17
  * Unpacks a 64-bit bigint into its component fields for Isolated orders.
19
18
  *
@@ -22,5 +21,6 @@ declare function packIsolatedOrderAppendixValue({ margin, }: OrderAppendixIsolat
22
21
  * - margin_x6: bigint, from bits 63..0
23
22
  */
24
23
  declare function unpackIsolatedOrderAppendixValue(value: bigint): OrderAppendixIsolatedFields;
25
-
24
+ //#endregion
26
25
  export { packIsolatedOrderAppendixValue, unpackIsolatedOrderAppendixValue };
26
+ //# sourceMappingURL=appendixIsolatedValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appendixIsolatedValue.d.ts","names":[],"sources":["../../../../src/utils/orders/appendix/src/utils/orders/appendix/appendixIsolatedValue.ts"],"mappings":";;;;;AAyBA;;;;;;;iBAAgB,8BAAA,CAAA;EACd;AAAA,GACC,2BAA2B;AAAA;AAc9B;;;;AAE8B;;AAhBA,iBAcd,gCAAA,CACd,KAAA,WACC,2BAA2B"}
@@ -1,31 +1,32 @@
1
- import "../../../chunk-5WRI5ZAA.js";
2
-
3
- // src/utils/orders/appendix/appendixIsolatedValue.ts
4
- import {
5
- addDecimals,
6
- NADO_PRODUCT_DECIMALS,
7
- removeDecimals,
8
- toBigInt
9
- } from "../../math/index.js";
1
+ import { addDecimals, removeDecimals } from "../../math/decimalAdjustment.js";
2
+ import { toBigInt } from "../../math/toBigInt.js";
10
3
  import { bitMaskValue } from "./bitMaskValue.js";
11
- var APPENDIX_V1_ISO_MARGIN_DECIMALS = 6;
12
- var MARGIN_DECIMAL_ADJUSTMENT = NADO_PRODUCT_DECIMALS - APPENDIX_V1_ISO_MARGIN_DECIMALS;
13
- function packIsolatedOrderAppendixValue({
14
- margin
15
- }) {
16
- return bitMaskValue(
17
- toBigInt(removeDecimals(margin, MARGIN_DECIMAL_ADJUSTMENT)),
18
- 64
19
- );
4
+ //#region src/utils/orders/appendix/appendixIsolatedValue.ts
5
+ const MARGIN_DECIMAL_ADJUSTMENT = 12;
6
+ /**
7
+ * Packs the provided margin into a single 64-bit bigint.
8
+ *
9
+ * Bit layout (MSB → LSB):
10
+ * | margin_x6 |
11
+ * |-----------|
12
+ * | 63..0 |
13
+ * | 64 bits |
14
+ *
15
+ */
16
+ function packIsolatedOrderAppendixValue({ margin }) {
17
+ return bitMaskValue(toBigInt(removeDecimals(margin, MARGIN_DECIMAL_ADJUSTMENT)), 64);
20
18
  }
19
+ /**
20
+ * Unpacks a 64-bit bigint into its component fields for Isolated orders.
21
+ *
22
+ * @param value 64-bit bigint to unpack
23
+ * @returns Object with:
24
+ * - margin_x6: bigint, from bits 63..0
25
+ */
21
26
  function unpackIsolatedOrderAppendixValue(value) {
22
- const margin = bitMaskValue(value, 64);
23
- return {
24
- margin: toBigInt(addDecimals(margin, MARGIN_DECIMAL_ADJUSTMENT))
25
- };
27
+ return { margin: toBigInt(addDecimals(bitMaskValue(value, 64), MARGIN_DECIMAL_ADJUSTMENT)) };
26
28
  }
27
- export {
28
- packIsolatedOrderAppendixValue,
29
- unpackIsolatedOrderAppendixValue
30
- };
29
+ //#endregion
30
+ export { packIsolatedOrderAppendixValue, unpackIsolatedOrderAppendixValue };
31
+
31
32
  //# sourceMappingURL=appendixIsolatedValue.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/utils/orders/appendix/appendixIsolatedValue.ts"],"sourcesContent":["import { OrderAppendixIsolatedFields } from '../../../types';\nimport {\n addDecimals,\n NADO_PRODUCT_DECIMALS,\n removeDecimals,\n toBigInt,\n} from '../../math';\nimport { bitMaskValue } from './bitMaskValue';\n\nconst APPENDIX_V1_ISO_MARGIN_DECIMALS = 6;\n\n/* Appendix v1 uses x6 precision, so we need to adjust precision to/from SDK's usual precision */\nconst MARGIN_DECIMAL_ADJUSTMENT =\n NADO_PRODUCT_DECIMALS - APPENDIX_V1_ISO_MARGIN_DECIMALS;\n\n/**\n * Packs the provided margin into a single 64-bit bigint.\n *\n * Bit layout (MSB → LSB):\n * | margin_x6 |\n * |-----------|\n * | 63..0 |\n * | 64 bits |\n *\n */\nexport function packIsolatedOrderAppendixValue({\n margin,\n}: OrderAppendixIsolatedFields): bigint {\n return bitMaskValue(\n toBigInt(removeDecimals(margin, MARGIN_DECIMAL_ADJUSTMENT)),\n 64,\n );\n}\n\n/**\n * Unpacks a 64-bit bigint into its component fields for Isolated orders.\n *\n * @param value 64-bit bigint to unpack\n * @returns Object with:\n * - margin_x6: bigint, from bits 63..0\n */\nexport function unpackIsolatedOrderAppendixValue(\n value: bigint,\n): OrderAppendixIsolatedFields {\n const margin = bitMaskValue(value, 64);\n return {\n margin: toBigInt(addDecimals(margin, MARGIN_DECIMAL_ADJUSTMENT)),\n };\n}\n"],"mappings":";;;AACA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,oBAAoB;AAE7B,IAAM,kCAAkC;AAGxC,IAAM,4BACJ,wBAAwB;AAYnB,SAAS,+BAA+B;AAAA,EAC7C;AACF,GAAwC;AACtC,SAAO;AAAA,IACL,SAAS,eAAe,QAAQ,yBAAyB,CAAC;AAAA,IAC1D;AAAA,EACF;AACF;AASO,SAAS,iCACd,OAC6B;AAC7B,QAAM,SAAS,aAAa,OAAO,EAAE;AACrC,SAAO;AAAA,IACL,QAAQ,SAAS,YAAY,QAAQ,yBAAyB,CAAC;AAAA,EACjE;AACF;","names":[]}
1
+ {"version":3,"file":"appendixIsolatedValue.js","names":[],"sources":["../../../../src/utils/orders/appendix/appendixIsolatedValue.ts"],"sourcesContent":["import { OrderAppendixIsolatedFields } from '../../../types';\nimport {\n addDecimals,\n NADO_PRODUCT_DECIMALS,\n removeDecimals,\n toBigInt,\n} from '../../math';\nimport { bitMaskValue } from './bitMaskValue';\n\nconst APPENDIX_V1_ISO_MARGIN_DECIMALS = 6;\n\n/* Appendix v1 uses x6 precision, so we need to adjust precision to/from SDK's usual precision */\nconst MARGIN_DECIMAL_ADJUSTMENT =\n NADO_PRODUCT_DECIMALS - APPENDIX_V1_ISO_MARGIN_DECIMALS;\n\n/**\n * Packs the provided margin into a single 64-bit bigint.\n *\n * Bit layout (MSB → LSB):\n * | margin_x6 |\n * |-----------|\n * | 63..0 |\n * | 64 bits |\n *\n */\nexport function packIsolatedOrderAppendixValue({\n margin,\n}: OrderAppendixIsolatedFields): bigint {\n return bitMaskValue(\n toBigInt(removeDecimals(margin, MARGIN_DECIMAL_ADJUSTMENT)),\n 64,\n );\n}\n\n/**\n * Unpacks a 64-bit bigint into its component fields for Isolated orders.\n *\n * @param value 64-bit bigint to unpack\n * @returns Object with:\n * - margin_x6: bigint, from bits 63..0\n */\nexport function unpackIsolatedOrderAppendixValue(\n value: bigint,\n): OrderAppendixIsolatedFields {\n const margin = bitMaskValue(value, 64);\n return {\n margin: toBigInt(addDecimals(margin, MARGIN_DECIMAL_ADJUSTMENT)),\n };\n}\n"],"mappings":";;;;AAYA,MAAM,4BAAA;;;;;;;;;;;AAaN,SAAgB,+BAA+B,EAC7C,UACsC;CACtC,OAAO,aACL,SAAS,eAAe,QAAQ,yBAAyB,CAAC,GAC1D,EACF;AACF;;;;;;;;AASA,SAAgB,iCACd,OAC6B;CAE7B,OAAO,EACL,QAAQ,SAAS,YAFJ,aAAa,OAAO,EAEC,GAAG,yBAAyB,CAAC,EACjE;AACF"}