@nadohq/shared 0.26.0 → 0.28.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 (387) hide show
  1. package/README.md +0 -8
  2. package/dist/{BigNumbers-CZl--in2.d.cts → BigNumbers-DYhqk1Hm.d.cts} +1 -1
  3. package/dist/BigNumbers-DYhqk1Hm.d.cts.map +1 -0
  4. package/dist/{BigNumbers-CM-lXODL.d.ts → BigNumbers-eMROAdGq.d.ts} +1 -1
  5. package/dist/BigNumbers-eMROAdGq.d.ts.map +1 -0
  6. package/dist/{OrderExecutionType-BCH5Wop4.d.ts → OrderExecutionType-CUI095dh.d.ts} +1 -1
  7. package/dist/OrderExecutionType-CUI095dh.d.ts.map +1 -0
  8. package/dist/{OrderExecutionType-gZHBzTTF.d.cts → OrderExecutionType-CsOBf1tI.d.cts} +1 -1
  9. package/dist/OrderExecutionType-CsOBf1tI.d.cts.map +1 -0
  10. package/dist/{WalletNotProvidedError-BFEw-O_V.d.cts → WalletNotProvidedError-Cr6ag4xm.d.cts} +1 -1
  11. package/dist/{WalletNotProvidedError-BFEw-O_V.d.cts.map → WalletNotProvidedError-Cr6ag4xm.d.cts.map} +1 -1
  12. package/dist/{WalletNotProvidedError-B7hy83Dp.d.ts → WalletNotProvidedError-ouN7ZyL3.d.ts} +1 -1
  13. package/dist/{WalletNotProvidedError-B7hy83Dp.d.ts.map → WalletNotProvidedError-ouN7ZyL3.d.ts.map} +1 -1
  14. package/dist/{appendixTwapValue-D5Fv_hF5.d.ts → appendixTwapValue-CNPJq2Zy.d.ts} +2 -2
  15. package/dist/{appendixTwapValue-D5Fv_hF5.d.ts.map → appendixTwapValue-CNPJq2Zy.d.ts.map} +1 -1
  16. package/dist/{appendixTwapValue-2e-BBSSp.d.cts → appendixTwapValue-CnnIIOqv.d.cts} +2 -2
  17. package/dist/{appendixTwapValue-2e-BBSSp.d.cts.map → appendixTwapValue-CnnIIOqv.d.cts.map} +1 -1
  18. package/dist/{approveDepositAllowance-Dc7stdrU.d.ts → approveDepositAllowance-C26Htbqh.d.ts} +4 -4
  19. package/dist/{approveDepositAllowance-Dc7stdrU.d.ts.map → approveDepositAllowance-C26Htbqh.d.ts.map} +1 -1
  20. package/dist/{approveDepositAllowance-DzLfrUa1.d.cts → approveDepositAllowance-D2qQPRNF.d.cts} +4 -4
  21. package/dist/{approveDepositAllowance-DzLfrUa1.d.cts.map → approveDepositAllowance-D2qQPRNF.d.cts.map} +1 -1
  22. package/dist/{asyncResult-Cs02Ws6J.d.ts → asyncResult-BocLZEYd.d.ts} +1 -1
  23. package/dist/{asyncResult-Cs02Ws6J.d.ts.map → asyncResult-BocLZEYd.d.ts.map} +1 -1
  24. package/dist/{asyncResult-D-rEUypp.d.cts → asyncResult-DQ8gHsyJ.d.cts} +1 -1
  25. package/dist/{asyncResult-D-rEUypp.d.cts.map → asyncResult-DQ8gHsyJ.d.cts.map} +1 -1
  26. package/dist/{balanceValue-mNCg2O57.d.ts → balanceValue-CluFIFzW.d.ts} +1 -1
  27. package/dist/{balanceValue-mNCg2O57.d.ts.map → balanceValue-CluFIFzW.d.ts.map} +1 -1
  28. package/dist/{balanceValue-BHDw2fCR.d.cts → balanceValue-DqIWjoKX.d.cts} +1 -1
  29. package/dist/{balanceValue-BHDw2fCR.d.cts.map → balanceValue-DqIWjoKX.d.cts.map} +1 -1
  30. package/dist/{bigNumber-BLE4n-ku.d.ts → bigNumber-CbDXQHqX.d.ts} +1 -1
  31. package/dist/{bigNumber-BLE4n-ku.d.ts.map → bigNumber-CbDXQHqX.d.ts.map} +1 -1
  32. package/dist/{bigNumber-DX0JX9bQ.d.cts → bigNumber-DRrWI93s.d.cts} +1 -1
  33. package/dist/{bigNumber-DX0JX9bQ.d.cts.map → bigNumber-DRrWI93s.d.cts.map} +1 -1
  34. package/dist/{bitMaskValue-rhaIF9Xj.d.ts → bitMaskValue-BlqosskH.d.ts} +1 -1
  35. package/dist/{bitMaskValue-rhaIF9Xj.d.ts.map → bitMaskValue-BlqosskH.d.ts.map} +1 -1
  36. package/dist/{bitMaskValue-CWv12B9a.d.cts → bitMaskValue-R5zFzHLe.d.cts} +1 -1
  37. package/dist/{bitMaskValue-CWv12B9a.d.cts.map → bitMaskValue-R5zFzHLe.d.cts.map} +1 -1
  38. package/dist/{bytes32-CE-v0SzM.d.cts → bytes32-DcJ5FJSi.d.cts} +2 -2
  39. package/dist/{bytes32-CE-v0SzM.d.cts.map → bytes32-DcJ5FJSi.d.cts.map} +1 -1
  40. package/dist/{bytes32-gz7vDEim.d.ts → bytes32-yfMy-djO.d.ts} +2 -2
  41. package/dist/{bytes32-gz7vDEim.d.ts.map → bytes32-yfMy-djO.d.ts.map} +1 -1
  42. package/dist/{chainEnvToChain-Cze_i6hZ.d.cts → chainEnvToChain-Bq28rZNo.d.cts} +1 -1
  43. package/dist/{chainEnvToChain-Cze_i6hZ.d.cts.map → chainEnvToChain-Bq28rZNo.d.cts.map} +1 -1
  44. package/dist/{chainEnvToChain-iWWdSu4g.d.ts → chainEnvToChain-C1jHzKxP.d.ts} +1 -1
  45. package/dist/{chainEnvToChain-iWWdSu4g.d.ts.map → chainEnvToChain-C1jHzKxP.d.ts.map} +1 -1
  46. package/dist/{clamp-B7YSY8XJ.d.cts → clamp-BZmNZW_0.d.cts} +1 -1
  47. package/dist/{clamp-B7YSY8XJ.d.cts.map → clamp-BZmNZW_0.d.cts.map} +1 -1
  48. package/dist/{clamp-CWW-gFbE.d.ts → clamp-KwKoWc1c.d.ts} +1 -1
  49. package/dist/{clamp-CWW-gFbE.d.ts.map → clamp-KwKoWc1c.d.ts.map} +1 -1
  50. package/dist/consts/chainEnvToChain.d.cts +1 -1
  51. package/dist/consts/chainEnvToChain.d.ts +1 -1
  52. package/dist/consts/index.d.cts +2 -2
  53. package/dist/consts/index.d.ts +2 -2
  54. package/dist/consts/productIds.d.cts +1 -1
  55. package/dist/consts/productIds.d.ts +1 -1
  56. package/dist/{createDeterministicLinkedSignerPrivateKey-C2v9BK5R.d.cts → createDeterministicLinkedSignerPrivateKey-CTTU-mEr.d.cts} +3 -3
  57. package/dist/{createDeterministicLinkedSignerPrivateKey-C2v9BK5R.d.cts.map → createDeterministicLinkedSignerPrivateKey-CTTU-mEr.d.cts.map} +1 -1
  58. package/dist/{createDeterministicLinkedSignerPrivateKey-XciG6RLh.d.ts → createDeterministicLinkedSignerPrivateKey-DoRNbHu0.d.ts} +3 -3
  59. package/dist/createDeterministicLinkedSignerPrivateKey-DoRNbHu0.d.ts.map +1 -0
  60. package/dist/{decimalAdjustment-CMqU3rNy.d.cts → decimalAdjustment-BnyIQK-9.d.cts} +2 -2
  61. package/dist/{decimalAdjustment-CMqU3rNy.d.cts.map → decimalAdjustment-BnyIQK-9.d.cts.map} +1 -1
  62. package/dist/{decimalAdjustment-1vhO65Zz.d.ts → decimalAdjustment-Ckj7Q4bK.d.ts} +2 -2
  63. package/dist/{decimalAdjustment-1vhO65Zz.d.ts.map → decimalAdjustment-Ckj7Q4bK.d.ts.map} +1 -1
  64. package/dist/{depositCollateral-CmEXlJQs.d.cts → depositCollateral-BGegWF6K.d.cts} +3 -3
  65. package/dist/{depositCollateral-CmEXlJQs.d.cts.map → depositCollateral-BGegWF6K.d.cts.map} +1 -1
  66. package/dist/{depositCollateral-476kzs4N.d.ts → depositCollateral-BaPQJFGG.d.ts} +3 -3
  67. package/dist/{depositCollateral-476kzs4N.d.ts.map → depositCollateral-BaPQJFGG.d.ts.map} +1 -1
  68. package/dist/eip712/eip712ValueTypes.d.cts +2 -2
  69. package/dist/eip712/eip712ValueTypes.d.ts +2 -2
  70. package/dist/eip712/getNadoEIP712Domain.d.cts +1 -1
  71. package/dist/eip712/getNadoEIP712Domain.d.ts +1 -1
  72. package/dist/eip712/getNadoEIP712PrimaryType.d.cts +1 -1
  73. package/dist/eip712/getNadoEIP712PrimaryType.d.ts +1 -1
  74. package/dist/eip712/getNadoEIP712Types.cjs +18 -0
  75. package/dist/eip712/getNadoEIP712Types.cjs.map +1 -1
  76. package/dist/eip712/getNadoEIP712Types.d.cts +1 -1
  77. package/dist/eip712/getNadoEIP712Types.d.ts +1 -1
  78. package/dist/eip712/getNadoEIP712Types.js +18 -0
  79. package/dist/eip712/getNadoEIP712Types.js.map +1 -1
  80. package/dist/eip712/getNadoEIP712Values.cjs +14 -0
  81. package/dist/eip712/getNadoEIP712Values.cjs.map +1 -1
  82. package/dist/eip712/getNadoEIP712Values.d.cts +1 -1
  83. package/dist/eip712/getNadoEIP712Values.d.ts +1 -1
  84. package/dist/eip712/getNadoEIP712Values.js +14 -0
  85. package/dist/eip712/getNadoEIP712Values.js.map +1 -1
  86. package/dist/eip712/getOrderVerifyingAddress.d.cts +1 -1
  87. package/dist/eip712/getOrderVerifyingAddress.d.ts +1 -1
  88. package/dist/eip712/getSignedTransactionRequest.d.cts +1 -1
  89. package/dist/eip712/getSignedTransactionRequest.d.ts +1 -1
  90. package/dist/eip712/index.d.cts +11 -11
  91. package/dist/eip712/index.d.ts +11 -11
  92. package/dist/eip712/orderDigest.d.cts +1 -1
  93. package/dist/eip712/orderDigest.d.ts +1 -1
  94. package/dist/eip712/signableRequestType.d.cts +1 -1
  95. package/dist/eip712/signableRequestType.d.ts +1 -1
  96. package/dist/eip712/signatureParamTypes.d.cts +2 -2
  97. package/dist/eip712/signatureParamTypes.d.ts +2 -2
  98. package/dist/{eip712ValueTypes-CD1TxxFv.d.ts → eip712ValueTypes-D7iOMl8G.d.ts} +6 -4
  99. package/dist/{eip712ValueTypes-CD1TxxFv.d.ts.map → eip712ValueTypes-D7iOMl8G.d.ts.map} +1 -1
  100. package/dist/{eip712ValueTypes-CI6wMCCw.d.cts → eip712ValueTypes-DYHO0ldz.d.cts} +6 -4
  101. package/dist/{eip712ValueTypes-CI6wMCCw.d.cts.map → eip712ValueTypes-DYHO0ldz.d.cts.map} +1 -1
  102. package/dist/encoding/encoding.d.cts +1 -1
  103. package/dist/encoding/encoding.d.ts +1 -1
  104. package/dist/encoding/index.d.cts +1 -1
  105. package/dist/encoding/index.d.ts +1 -1
  106. package/dist/{encoding-DaxmoLmF.d.ts → encoding-Dr8S7QxO.d.ts} +2 -2
  107. package/dist/{encoding-DaxmoLmF.d.ts.map → encoding-Dr8S7QxO.d.ts.map} +1 -1
  108. package/dist/{encoding-BXqysa4s.d.cts → encoding-tWL2ZXfF.d.cts} +2 -2
  109. package/dist/{encoding-BXqysa4s.d.cts.map → encoding-tWL2ZXfF.d.cts.map} +1 -1
  110. package/dist/errorCodes-BIHhESbW.d.ts +41 -0
  111. package/dist/errorCodes-BIHhESbW.d.ts.map +1 -0
  112. package/dist/errorCodes-DT284XV9.d.cts +41 -0
  113. package/dist/errorCodes-DT284XV9.d.cts.map +1 -0
  114. package/dist/execute/approveDepositAllowance.d.cts +1 -1
  115. package/dist/execute/approveDepositAllowance.d.ts +1 -1
  116. package/dist/execute/depositCollateral.d.cts +1 -1
  117. package/dist/execute/depositCollateral.d.ts +1 -1
  118. package/dist/execute/index.d.cts +2 -2
  119. package/dist/execute/index.d.ts +2 -2
  120. package/dist/{getNadoEIP712Domain-iDIuXsMf.d.cts → getNadoEIP712Domain-DYtFpJm-.d.cts} +1 -1
  121. package/dist/{getNadoEIP712Domain-iDIuXsMf.d.cts.map → getNadoEIP712Domain-DYtFpJm-.d.cts.map} +1 -1
  122. package/dist/{getNadoEIP712Domain-CSV6Zxuw.d.ts → getNadoEIP712Domain-FRScInwf.d.ts} +1 -1
  123. package/dist/{getNadoEIP712Domain-CSV6Zxuw.d.ts.map → getNadoEIP712Domain-FRScInwf.d.ts.map} +1 -1
  124. package/dist/{getNadoEIP712PrimaryType-CE0fRiTI.d.ts → getNadoEIP712PrimaryType-DqnS3gdK.d.ts} +2 -2
  125. package/dist/{getNadoEIP712PrimaryType-CE0fRiTI.d.ts.map → getNadoEIP712PrimaryType-DqnS3gdK.d.ts.map} +1 -1
  126. package/dist/{getNadoEIP712PrimaryType-Cq8siJx7.d.cts → getNadoEIP712PrimaryType-vOoXWu15.d.cts} +2 -2
  127. package/dist/{getNadoEIP712PrimaryType-Cq8siJx7.d.cts.map → getNadoEIP712PrimaryType-vOoXWu15.d.cts.map} +1 -1
  128. package/dist/{getNadoEIP712Types-BmB1bTGu.d.ts → getNadoEIP712Types-R02heQll.d.ts} +2 -2
  129. package/dist/{getNadoEIP712Types-BmB1bTGu.d.ts.map → getNadoEIP712Types-R02heQll.d.ts.map} +1 -1
  130. package/dist/{getNadoEIP712Types-D7duS2wH.d.cts → getNadoEIP712Types-mNqrs54G.d.cts} +2 -2
  131. package/dist/{getNadoEIP712Types-D7duS2wH.d.cts.map → getNadoEIP712Types-mNqrs54G.d.cts.map} +1 -1
  132. package/dist/{getNadoEIP712Values-0EOMObhX.d.ts → getNadoEIP712Values-Ce5lqSVk.d.ts} +3 -3
  133. package/dist/getNadoEIP712Values-Ce5lqSVk.d.ts.map +1 -0
  134. package/dist/{getNadoEIP712Values-DEBZh7-M.d.cts → getNadoEIP712Values-N1wTvB-r.d.cts} +3 -3
  135. package/dist/getNadoEIP712Values-N1wTvB-r.d.cts.map +1 -0
  136. package/dist/{getOrderVerifyingAddress-CHRCQ8AZ.d.cts → getOrderVerifyingAddress-CLL7iyLD.d.cts} +1 -1
  137. package/dist/{getOrderVerifyingAddress-CHRCQ8AZ.d.cts.map → getOrderVerifyingAddress-CLL7iyLD.d.cts.map} +1 -1
  138. package/dist/{getOrderVerifyingAddress-BygcgBA1.d.ts → getOrderVerifyingAddress-CNyXGx9D.d.ts} +1 -1
  139. package/dist/{getOrderVerifyingAddress-BygcgBA1.d.ts.map → getOrderVerifyingAddress-CNyXGx9D.d.ts.map} +1 -1
  140. package/dist/{getSignedTransactionRequest-Et_1Y1wr.d.ts → getSignedTransactionRequest-D0b4BDSB.d.ts} +3 -3
  141. package/dist/{getSignedTransactionRequest-Et_1Y1wr.d.ts.map → getSignedTransactionRequest-D0b4BDSB.d.ts.map} +1 -1
  142. package/dist/{getSignedTransactionRequest-DxUMBHLe.d.cts → getSignedTransactionRequest-kTbC9qPT.d.cts} +3 -3
  143. package/dist/{getSignedTransactionRequest-DxUMBHLe.d.cts.map → getSignedTransactionRequest-kTbC9qPT.d.cts.map} +1 -1
  144. package/dist/{getValidatedAddress-BmCqRBeh.d.ts → getValidatedAddress-4dLXIemu.d.ts} +1 -1
  145. package/dist/getValidatedAddress-4dLXIemu.d.ts.map +1 -0
  146. package/dist/{getValidatedAddress-BQJEkmbN.d.cts → getValidatedAddress-C_HmNidZ.d.cts} +1 -1
  147. package/dist/getValidatedAddress-C_HmNidZ.d.cts.map +1 -0
  148. package/dist/{getValidatedHex-DuwBnuEB.d.ts → getValidatedHex-CNqNVarV.d.ts} +1 -1
  149. package/dist/getValidatedHex-CNqNVarV.d.ts.map +1 -0
  150. package/dist/{getValidatedHex-PXNPR4pI.d.cts → getValidatedHex-zCkkMsa7.d.cts} +1 -1
  151. package/dist/getValidatedHex-zCkkMsa7.d.cts.map +1 -0
  152. package/dist/index.cjs +2 -0
  153. package/dist/index.d.cts +51 -49
  154. package/dist/index.d.ts +51 -49
  155. package/dist/index.js +2 -1
  156. package/dist/{interest-DRpagIcs.d.cts → interest-BfAowKdU.d.cts} +2 -2
  157. package/dist/{interest-DRpagIcs.d.cts.map → interest-BfAowKdU.d.cts.map} +1 -1
  158. package/dist/{interest-CUXHxrel.d.ts → interest-CWfKnmdX.d.ts} +2 -2
  159. package/dist/{interest-CUXHxrel.d.ts.map → interest-CWfKnmdX.d.ts.map} +1 -1
  160. package/dist/{isWriteableContract-DcM3nqdX.d.ts → isWriteableContract-CYLwGFCM.d.ts} +2 -2
  161. package/dist/{isWriteableContract-DcM3nqdX.d.ts.map → isWriteableContract-CYLwGFCM.d.ts.map} +1 -1
  162. package/dist/{isWriteableContract-ZGxc9VmC.d.cts → isWriteableContract-Ctl78F8z.d.cts} +2 -2
  163. package/dist/{isWriteableContract-ZGxc9VmC.d.cts.map → isWriteableContract-Ctl78F8z.d.cts.map} +1 -1
  164. package/dist/{mapValues-jlfbJybF.d.cts → mapValues-BoHvsgT1.d.cts} +1 -1
  165. package/dist/{mapValues-jlfbJybF.d.cts.map → mapValues-BoHvsgT1.d.cts.map} +1 -1
  166. package/dist/{mapValues-cO_NBiCx.d.ts → mapValues-DstqVXbD.d.ts} +1 -1
  167. package/dist/{mapValues-cO_NBiCx.d.ts.map → mapValues-DstqVXbD.d.ts.map} +1 -1
  168. package/dist/{marketTypes-C37HnBB7.d.ts → marketTypes-7eW2lrO4.d.ts} +1 -1
  169. package/dist/{marketTypes-C37HnBB7.d.ts.map → marketTypes-7eW2lrO4.d.ts.map} +1 -1
  170. package/dist/{marketTypes-BSevYB-h.d.cts → marketTypes-BvUKMyk2.d.cts} +1 -1
  171. package/dist/{marketTypes-BSevYB-h.d.cts.map → marketTypes-BvUKMyk2.d.cts.map} +1 -1
  172. package/dist/{nadoContractTypes-PWzd6_3s.d.ts → nadoContractTypes-DcaQVx7u.d.ts} +2 -2
  173. package/dist/{nadoContractTypes-PWzd6_3s.d.ts.map → nadoContractTypes-DcaQVx7u.d.ts.map} +1 -1
  174. package/dist/{nadoContractTypes-Cp3kD2DC.d.cts → nadoContractTypes-Dhmt_9t1.d.cts} +2 -2
  175. package/dist/{nadoContractTypes-Cp3kD2DC.d.cts.map → nadoContractTypes-Dhmt_9t1.d.cts.map} +1 -1
  176. package/dist/{orderAppendixTypes-CM-eb5WL.d.cts → orderAppendixTypes-CaYlUEvF.d.cts} +3 -3
  177. package/dist/{orderAppendixTypes-CM-eb5WL.d.cts.map → orderAppendixTypes-CaYlUEvF.d.cts.map} +1 -1
  178. package/dist/{orderAppendixTypes-5NqkTOxO.d.ts → orderAppendixTypes-DUvKIHUi.d.ts} +3 -3
  179. package/dist/{orderAppendixTypes-5NqkTOxO.d.ts.map → orderAppendixTypes-DUvKIHUi.d.ts.map} +1 -1
  180. package/dist/{orderDigest-BlytCeEr.d.ts → orderDigest-BcP0wyIO.d.ts} +2 -2
  181. package/dist/{orderDigest-BlytCeEr.d.ts.map → orderDigest-BcP0wyIO.d.ts.map} +1 -1
  182. package/dist/{orderDigest-C9Sr-5TO.d.cts → orderDigest-Ds3Er4tZ.d.cts} +2 -2
  183. package/dist/{orderDigest-C9Sr-5TO.d.cts.map → orderDigest-Ds3Er4tZ.d.cts.map} +1 -1
  184. package/dist/{orderNonce-p8m6ZrSd.d.cts → orderNonce-CFJ5UiYP.d.cts} +1 -1
  185. package/dist/{orderNonce-p8m6ZrSd.d.cts.map → orderNonce-CFJ5UiYP.d.cts.map} +1 -1
  186. package/dist/{orderNonce-BgvYpe4l.d.ts → orderNonce-Cb1fh07x.d.ts} +1 -1
  187. package/dist/{orderNonce-BgvYpe4l.d.ts.map → orderNonce-Cb1fh07x.d.ts.map} +1 -1
  188. package/dist/{packOrderAppendix-BokzjU2O.d.ts → packOrderAppendix-5Ubx5Sd-.d.ts} +2 -2
  189. package/dist/{packOrderAppendix-BokzjU2O.d.ts.map → packOrderAppendix-5Ubx5Sd-.d.ts.map} +1 -1
  190. package/dist/{packOrderAppendix-DJlhe5P5.d.cts → packOrderAppendix-CczLGSVB.d.cts} +2 -2
  191. package/dist/{packOrderAppendix-DJlhe5P5.d.cts.map → packOrderAppendix-CczLGSVB.d.cts.map} +1 -1
  192. package/dist/{productIds-CCewi4tC.d.ts → productIds-CpASnkHa.d.ts} +1 -1
  193. package/dist/productIds-CpASnkHa.d.ts.map +1 -0
  194. package/dist/{productIds-COuWMJat.d.cts → productIds-DBfWyycx.d.cts} +1 -1
  195. package/dist/productIds-DBfWyycx.d.cts.map +1 -0
  196. package/dist/{productTypeFilter-B6CoWHmB.d.cts → productTypeFilter-DafbByZQ.d.cts} +1 -1
  197. package/dist/{productTypeFilter-B6CoWHmB.d.cts.map → productTypeFilter-DafbByZQ.d.cts.map} +1 -1
  198. package/dist/{productTypeFilter-B0oL5G_q.d.ts → productTypeFilter-TlybWfkQ.d.ts} +1 -1
  199. package/dist/{productTypeFilter-B0oL5G_q.d.ts.map → productTypeFilter-TlybWfkQ.d.ts.map} +1 -1
  200. package/dist/{recvTime-lSkRnXFh.d.cts → recvTime-Bm6OOxAH.d.cts} +1 -1
  201. package/dist/recvTime-Bm6OOxAH.d.cts.map +1 -0
  202. package/dist/{recvTime-C6ulZVuR.d.ts → recvTime-KqiAQOdv.d.ts} +1 -1
  203. package/dist/recvTime-KqiAQOdv.d.ts.map +1 -0
  204. package/dist/{signableRequestType-BV11vCXW.d.cts → signableRequestType-BF56QkJp.d.ts} +3 -2
  205. package/dist/signableRequestType-BF56QkJp.d.ts.map +1 -0
  206. package/dist/{signableRequestType-DWpXrjGE.d.ts → signableRequestType-CHAdsHVX.d.cts} +3 -2
  207. package/dist/signableRequestType-CHAdsHVX.d.cts.map +1 -0
  208. package/dist/{signatureParamTypes-Cjm4X5PA.d.cts → signatureParamTypes-B9sr1m_2.d.cts} +13 -5
  209. package/dist/{signatureParamTypes-Cjm4X5PA.d.cts.map → signatureParamTypes-B9sr1m_2.d.cts.map} +1 -1
  210. package/dist/{signatureParamTypes-CDUNzp0c.d.ts → signatureParamTypes-BxQjdL0b.d.ts} +13 -5
  211. package/dist/{signatureParamTypes-CDUNzp0c.d.ts.map → signatureParamTypes-BxQjdL0b.d.ts.map} +1 -1
  212. package/dist/signatureTypes-BM7i3jUU.d.ts +15 -0
  213. package/dist/signatureTypes-BM7i3jUU.d.ts.map +1 -0
  214. package/dist/signatureTypes-CmG9clmQ.d.cts +15 -0
  215. package/dist/signatureTypes-CmG9clmQ.d.cts.map +1 -0
  216. package/dist/{subaccountTypes-BGE4tJKb.d.cts → subaccountTypes-CwU5OiX6.d.cts} +1 -1
  217. package/dist/{subaccountTypes-BGE4tJKb.d.cts.map → subaccountTypes-CwU5OiX6.d.cts.map} +1 -1
  218. package/dist/{subaccountTypes-FoLRswIa.d.ts → subaccountTypes-Dt_jFmL7.d.ts} +1 -1
  219. package/dist/{subaccountTypes-FoLRswIa.d.ts.map → subaccountTypes-Dt_jFmL7.d.ts.map} +1 -1
  220. package/dist/{sumBigNumberBy-BWQ-bPpk.d.cts → sumBigNumberBy-DDmCAeH7.d.cts} +1 -1
  221. package/dist/{sumBigNumberBy-BWQ-bPpk.d.cts.map → sumBigNumberBy-DDmCAeH7.d.cts.map} +1 -1
  222. package/dist/{sumBigNumberBy-wVwOxwyc.d.ts → sumBigNumberBy-DsDksVWh.d.ts} +1 -1
  223. package/dist/{sumBigNumberBy-wVwOxwyc.d.ts.map → sumBigNumberBy-DsDksVWh.d.ts.map} +1 -1
  224. package/dist/{time-BpZLFNOC.d.ts → time-C-Xp9CnI.d.ts} +1 -1
  225. package/dist/{time-BpZLFNOC.d.ts.map → time-C-Xp9CnI.d.ts.map} +1 -1
  226. package/dist/{time-D6SSEenZ.d.cts → time-CWyHslwY.d.cts} +1 -1
  227. package/dist/{time-D6SSEenZ.d.cts.map → time-CWyHslwY.d.cts.map} +1 -1
  228. package/dist/{toBigInt-PqI3ILSN.d.ts → toBigInt-34g6nMmn.d.ts} +2 -2
  229. package/dist/toBigInt-34g6nMmn.d.ts.map +1 -0
  230. package/dist/{toBigInt-cEajjeFa.d.cts → toBigInt-BeWZDOuB.d.cts} +2 -2
  231. package/dist/toBigInt-BeWZDOuB.d.cts.map +1 -0
  232. package/dist/{toIntegerString-CHveFt3s.d.cts → toIntegerString-BPfShEi9.d.cts} +2 -2
  233. package/dist/toIntegerString-BPfShEi9.d.cts.map +1 -0
  234. package/dist/{toIntegerString-sATPFuxt.d.ts → toIntegerString-C3ktEfvO.d.ts} +2 -2
  235. package/dist/toIntegerString-C3ktEfvO.d.ts.map +1 -0
  236. package/dist/{toPrintableObject-CwWr2voJ.d.cts → toPrintableObject-CFG_kUbt.d.cts} +1 -1
  237. package/dist/{toPrintableObject-CwWr2voJ.d.cts.map → toPrintableObject-CFG_kUbt.d.cts.map} +1 -1
  238. package/dist/{toPrintableObject-kBzCvR0Y.d.ts → toPrintableObject-CIlaceiA.d.ts} +1 -1
  239. package/dist/{toPrintableObject-kBzCvR0Y.d.ts.map → toPrintableObject-CIlaceiA.d.ts.map} +1 -1
  240. package/dist/types/OrderExecutionType.d.cts +1 -1
  241. package/dist/types/OrderExecutionType.d.ts +1 -1
  242. package/dist/types/errorCodes.cjs +50 -0
  243. package/dist/types/errorCodes.cjs.map +1 -0
  244. package/dist/types/errorCodes.d.cts +2 -0
  245. package/dist/types/errorCodes.d.ts +2 -0
  246. package/dist/types/errorCodes.js +49 -0
  247. package/dist/types/errorCodes.js.map +1 -0
  248. package/dist/types/index.cjs +2 -0
  249. package/dist/types/index.d.cts +9 -7
  250. package/dist/types/index.d.ts +9 -7
  251. package/dist/types/index.js +2 -1
  252. package/dist/types/marketTypes.d.cts +1 -1
  253. package/dist/types/marketTypes.d.ts +1 -1
  254. package/dist/types/nadoContractTypes.d.cts +1 -1
  255. package/dist/types/nadoContractTypes.d.ts +1 -1
  256. package/dist/types/orderAppendixTypes.d.cts +1 -1
  257. package/dist/types/orderAppendixTypes.d.ts +1 -1
  258. package/dist/types/signatureTypes.cjs +0 -0
  259. package/dist/types/signatureTypes.d.cts +2 -0
  260. package/dist/types/signatureTypes.d.ts +2 -0
  261. package/dist/types/signatureTypes.js +1 -0
  262. package/dist/types/subaccountTypes.d.cts +1 -1
  263. package/dist/types/subaccountTypes.d.ts +1 -1
  264. package/dist/types/viemTypes.d.cts +1 -1
  265. package/dist/types/viemTypes.d.ts +1 -1
  266. package/dist/{types-BdV1zhbS.d.cts → types-D_CNVlha.d.cts} +1 -1
  267. package/dist/{types-BdV1zhbS.d.cts.map → types-D_CNVlha.d.cts.map} +1 -1
  268. package/dist/{types-Cqqkhcva.d.ts → types-sH1nzoKv.d.ts} +1 -1
  269. package/dist/{types-Cqqkhcva.d.ts.map → types-sH1nzoKv.d.ts.map} +1 -1
  270. package/dist/{unpackOrderAppendix-E8HT7dKm.d.cts → unpackOrderAppendix-Cjy13jK5.d.cts} +3 -3
  271. package/dist/{unpackOrderAppendix-E8HT7dKm.d.cts.map → unpackOrderAppendix-Cjy13jK5.d.cts.map} +1 -1
  272. package/dist/{unpackOrderAppendix-Dx0MDs4V.d.ts → unpackOrderAppendix-_bLyMoDZ.d.ts} +3 -3
  273. package/dist/{unpackOrderAppendix-Dx0MDs4V.d.ts.map → unpackOrderAppendix-_bLyMoDZ.d.ts.map} +1 -1
  274. package/dist/utils/asyncResult.d.cts +1 -1
  275. package/dist/utils/asyncResult.d.ts +1 -1
  276. package/dist/utils/balanceValue.d.cts +1 -1
  277. package/dist/utils/balanceValue.d.ts +1 -1
  278. package/dist/utils/bytes32.d.cts +1 -1
  279. package/dist/utils/bytes32.d.ts +1 -1
  280. package/dist/utils/createDeterministicLinkedSignerPrivateKey.d.cts +1 -1
  281. package/dist/utils/createDeterministicLinkedSignerPrivateKey.d.ts +1 -1
  282. package/dist/utils/errors/WalletNotProvidedError.d.cts +1 -1
  283. package/dist/utils/errors/WalletNotProvidedError.d.ts +1 -1
  284. package/dist/utils/errors/index.d.cts +1 -1
  285. package/dist/utils/errors/index.d.ts +1 -1
  286. package/dist/utils/getValidatedAddress.d.cts +1 -1
  287. package/dist/utils/getValidatedAddress.d.ts +1 -1
  288. package/dist/utils/getValidatedHex.d.cts +1 -1
  289. package/dist/utils/getValidatedHex.d.ts +1 -1
  290. package/dist/utils/index.d.cts +27 -27
  291. package/dist/utils/index.d.ts +27 -27
  292. package/dist/utils/interest.d.cts +1 -1
  293. package/dist/utils/interest.d.ts +1 -1
  294. package/dist/utils/isWriteableContract.d.cts +1 -1
  295. package/dist/utils/isWriteableContract.d.ts +1 -1
  296. package/dist/utils/mapValues.d.cts +1 -1
  297. package/dist/utils/mapValues.d.ts +1 -1
  298. package/dist/utils/math/BigNumbers.d.cts +1 -1
  299. package/dist/utils/math/BigNumbers.d.ts +1 -1
  300. package/dist/utils/math/bigNumber.d.cts +1 -1
  301. package/dist/utils/math/bigNumber.d.ts +1 -1
  302. package/dist/utils/math/clamp.d.cts +1 -1
  303. package/dist/utils/math/clamp.d.ts +1 -1
  304. package/dist/utils/math/decimalAdjustment.d.cts +1 -1
  305. package/dist/utils/math/decimalAdjustment.d.ts +1 -1
  306. package/dist/utils/math/index.d.cts +7 -7
  307. package/dist/utils/math/index.d.ts +7 -7
  308. package/dist/utils/math/sumBigNumberBy.d.cts +1 -1
  309. package/dist/utils/math/sumBigNumberBy.d.ts +1 -1
  310. package/dist/utils/math/toBigInt.d.cts +1 -1
  311. package/dist/utils/math/toBigInt.d.ts +1 -1
  312. package/dist/utils/math/toIntegerString.d.cts +1 -1
  313. package/dist/utils/math/toIntegerString.d.ts +1 -1
  314. package/dist/utils/orders/appendix/appendixIsolatedValue.d.cts +1 -1
  315. package/dist/utils/orders/appendix/appendixIsolatedValue.d.ts +1 -1
  316. package/dist/utils/orders/appendix/appendixTwapValue.d.cts +1 -1
  317. package/dist/utils/orders/appendix/appendixTwapValue.d.ts +1 -1
  318. package/dist/utils/orders/appendix/bitMaskValue.d.cts +1 -1
  319. package/dist/utils/orders/appendix/bitMaskValue.d.ts +1 -1
  320. package/dist/utils/orders/appendix/index.d.cts +5 -5
  321. package/dist/utils/orders/appendix/index.d.ts +5 -5
  322. package/dist/utils/orders/appendix/packOrderAppendix.d.cts +1 -1
  323. package/dist/utils/orders/appendix/packOrderAppendix.d.ts +1 -1
  324. package/dist/utils/orders/appendix/types.d.cts +1 -1
  325. package/dist/utils/orders/appendix/types.d.ts +1 -1
  326. package/dist/utils/orders/appendix/unpackOrderAppendix.d.cts +1 -1
  327. package/dist/utils/orders/appendix/unpackOrderAppendix.d.ts +1 -1
  328. package/dist/utils/orders/index.d.cts +7 -7
  329. package/dist/utils/orders/index.d.ts +7 -7
  330. package/dist/utils/orders/orderNonce.d.cts +1 -1
  331. package/dist/utils/orders/orderNonce.d.ts +1 -1
  332. package/dist/utils/orders/recvTime.d.cts +1 -1
  333. package/dist/utils/orders/recvTime.d.ts +1 -1
  334. package/dist/utils/productTypeFilter.d.cts +1 -1
  335. package/dist/utils/productTypeFilter.d.ts +1 -1
  336. package/dist/utils/time.d.cts +1 -1
  337. package/dist/utils/time.d.ts +1 -1
  338. package/dist/utils/toPrintableObject.d.cts +1 -1
  339. package/dist/utils/toPrintableObject.d.ts +1 -1
  340. package/dist/{viemTypes-Mjfxe2ou.d.cts → viemTypes-B1TUCDzm.d.cts} +1 -1
  341. package/dist/{viemTypes-Mjfxe2ou.d.cts.map → viemTypes-B1TUCDzm.d.cts.map} +1 -1
  342. package/dist/{viemTypes-D3kRC8jF.d.ts → viemTypes-CK7FBgk7.d.ts} +1 -1
  343. package/dist/{viemTypes-D3kRC8jF.d.ts.map → viemTypes-CK7FBgk7.d.ts.map} +1 -1
  344. package/package.json +2 -2
  345. package/src/eip712/eip712ValueTypes.ts +5 -0
  346. package/src/eip712/getNadoEIP712Types.ts +9 -0
  347. package/src/eip712/getNadoEIP712Values.ts +21 -0
  348. package/src/eip712/signableRequestType.ts +2 -0
  349. package/src/eip712/signatureParamTypes.ts +12 -1
  350. package/src/types/errorCodes.ts +60 -0
  351. package/src/types/index.ts +2 -0
  352. package/src/types/signatureTypes.ts +11 -0
  353. package/dist/BigNumbers-CM-lXODL.d.ts.map +0 -1
  354. package/dist/BigNumbers-CZl--in2.d.cts.map +0 -1
  355. package/dist/OrderExecutionType-BCH5Wop4.d.ts.map +0 -1
  356. package/dist/OrderExecutionType-gZHBzTTF.d.cts.map +0 -1
  357. package/dist/createDeterministicLinkedSignerPrivateKey-XciG6RLh.d.ts.map +0 -1
  358. package/dist/getNadoEIP712Values-0EOMObhX.d.ts.map +0 -1
  359. package/dist/getNadoEIP712Values-DEBZh7-M.d.cts.map +0 -1
  360. package/dist/getValidatedAddress-BQJEkmbN.d.cts.map +0 -1
  361. package/dist/getValidatedAddress-BmCqRBeh.d.ts.map +0 -1
  362. package/dist/getValidatedHex-DuwBnuEB.d.ts.map +0 -1
  363. package/dist/getValidatedHex-PXNPR4pI.d.cts.map +0 -1
  364. package/dist/productIds-CCewi4tC.d.ts.map +0 -1
  365. package/dist/productIds-COuWMJat.d.cts.map +0 -1
  366. package/dist/recvTime-C6ulZVuR.d.ts.map +0 -1
  367. package/dist/recvTime-lSkRnXFh.d.cts.map +0 -1
  368. package/dist/signableRequestType-BV11vCXW.d.cts.map +0 -1
  369. package/dist/signableRequestType-DWpXrjGE.d.ts.map +0 -1
  370. package/dist/toBigInt-PqI3ILSN.d.ts.map +0 -1
  371. package/dist/toBigInt-cEajjeFa.d.cts.map +0 -1
  372. package/dist/toIntegerString-CHveFt3s.d.cts.map +0 -1
  373. package/dist/toIntegerString-sATPFuxt.d.ts.map +0 -1
  374. /package/dist/{index-B1btZMWF.d.ts → index--u_qpYmX.d.cts} +0 -0
  375. /package/dist/{index-BCsiC0tv.d.cts → index-Be7jjS77.d.ts} +0 -0
  376. /package/dist/{index-BVJyZlmP2.d.cts → index-By0zIfzM2.d.cts} +0 -0
  377. /package/dist/{index-Ba3GYDF9.d.ts → index-CLcwj8U0.d.ts} +0 -0
  378. /package/dist/{index-Bq2ftOXk2.d.cts → index-CTIq-bNp.d.ts} +0 -0
  379. /package/dist/{index-Br3qA4B52.d.ts → index-CWsYGvaO.d.ts} +0 -0
  380. /package/dist/{index-C9nY9t1j.d.ts → index-Cg9utiy0.d.ts} +0 -0
  381. /package/dist/{index-CB5PSF-Q.d.ts → index-Cw3C7_1f.d.ts} +0 -0
  382. /package/dist/{index-CI4LJief.d.ts → index-DSF1o-R6.d.cts} +0 -0
  383. /package/dist/{index-CQ25UCod.d.cts → index-DULmiVT72.d.ts} +0 -0
  384. /package/dist/{index-D4eheNJJ.d.cts → index-DrZ2Dh-H.d.cts} +0 -0
  385. /package/dist/{index-ZFCPoV_B2.d.ts → index-lQ_hGQ08.d.cts} +0 -0
  386. /package/dist/{index-_1bfRgi2.d.cts → index-qCd8f7Um.d.cts} +0 -0
  387. /package/dist/{index-zO0Ly4bS.d.cts → index-uTS5iDq_.d.cts} +0 -0
@@ -1,4 +1,4 @@
1
- import { g as SignedTx, h as SignedEIP712OrderParams, p as EIP712WithdrawCollateralParams } from "./signatureParamTypes-CDUNzp0c.js";
1
+ import { _ as SignedTx, g as SignedEIP712OrderParams, m as EIP712WithdrawCollateralParams } from "./signatureParamTypes-BxQjdL0b.js";
2
2
  import { Hex } from "viem";
3
3
 
4
4
  //#region src/encoding/encoding.d.ts
@@ -31,4 +31,4 @@ interface ClaimBuilderFeeParams {
31
31
  declare function encodeClaimBuilderFeeTx(params: ClaimBuilderFeeParams): Hex;
32
32
  //#endregion
33
33
  export { encodeSignedWithdrawCollateralTx as a, encodeSignedOrder as i, SlowModeTxType as n, encodeClaimBuilderFeeTx as r, ClaimBuilderFeeParams as t };
34
- //# sourceMappingURL=encoding-DaxmoLmF.d.ts.map
34
+ //# sourceMappingURL=encoding-Dr8S7QxO.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"encoding-DaxmoLmF.d.ts","names":[],"sources":["../src/encoding/src/encoding/encoding.ts"],"mappings":";;;;;;;aAgBY,cAAA;EACV,iBAAA;EACA,kBAAA;EACA,UAAA;EACA,eAAA;EACA,oBAAA;AAAA;AAAA,iBAGc,gCAAA,CACd,MAAA,EAAQ,QAAQ,CAAC,8BAAA;AAAA,iBAqBH,iBAAA,CAAkB,MAA+B,EAAvB,uBAAuB;AAAA,UAqBhD,qBAAA;EA9CK;EAgDpB,MAAA,EAAQ,GAAG;EA7CmC;EA+C9C,SAAA;AAAA;;;;;AA9CgD;AAqBlD;;;iBAoCgB,uBAAA,CAAwB,MAAA,EAAQ,qBAAA,GAAwB,GAAG"}
1
+ {"version":3,"file":"encoding-Dr8S7QxO.d.ts","names":[],"sources":["../src/encoding/src/encoding/encoding.ts"],"mappings":";;;;;;;aAgBY,cAAA;EACV,iBAAA;EACA,kBAAA;EACA,UAAA;EACA,eAAA;EACA,oBAAA;AAAA;AAAA,iBAGc,gCAAA,CACd,MAAA,EAAQ,QAAQ,CAAC,8BAAA;AAAA,iBAqBH,iBAAA,CAAkB,MAA+B,EAAvB,uBAAuB;AAAA,UAqBhD,qBAAA;EA9CK;EAgDpB,MAAA,EAAQ,GAAG;EA7CmC;EA+C9C,SAAA;AAAA;;;;;AA9CgD;AAqBlD;;;iBAoCgB,uBAAA,CAAwB,MAAA,EAAQ,qBAAA,GAAwB,GAAG"}
@@ -1,4 +1,4 @@
1
- import { g as SignedTx, h as SignedEIP712OrderParams, p as EIP712WithdrawCollateralParams } from "./signatureParamTypes-Cjm4X5PA.cjs";
1
+ import { _ as SignedTx, g as SignedEIP712OrderParams, m as EIP712WithdrawCollateralParams } from "./signatureParamTypes-B9sr1m_2.cjs";
2
2
  import { Hex } from "viem";
3
3
 
4
4
  //#region src/encoding/encoding.d.ts
@@ -31,4 +31,4 @@ interface ClaimBuilderFeeParams {
31
31
  declare function encodeClaimBuilderFeeTx(params: ClaimBuilderFeeParams): Hex;
32
32
  //#endregion
33
33
  export { encodeSignedWithdrawCollateralTx as a, encodeSignedOrder as i, SlowModeTxType as n, encodeClaimBuilderFeeTx as r, ClaimBuilderFeeParams as t };
34
- //# sourceMappingURL=encoding-BXqysa4s.d.cts.map
34
+ //# sourceMappingURL=encoding-tWL2ZXfF.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"encoding-BXqysa4s.d.cts","names":[],"sources":["../src/encoding/src/encoding/encoding.ts"],"mappings":";;;;;;;aAgBY,cAAA;EACV,iBAAA;EACA,kBAAA;EACA,UAAA;EACA,eAAA;EACA,oBAAA;AAAA;AAAA,iBAGc,gCAAA,CACd,MAAA,EAAQ,QAAQ,CAAC,8BAAA;AAAA,iBAqBH,iBAAA,CAAkB,MAA+B,EAAvB,uBAAuB;AAAA,UAqBhD,qBAAA;EA9CK;EAgDpB,MAAA,EAAQ,GAAG;EA7CmC;EA+C9C,SAAA;AAAA;;;;;AA9CgD;AAqBlD;;;iBAoCgB,uBAAA,CAAwB,MAAA,EAAQ,qBAAA,GAAwB,GAAG"}
1
+ {"version":3,"file":"encoding-tWL2ZXfF.d.cts","names":[],"sources":["../src/encoding/src/encoding/encoding.ts"],"mappings":";;;;;;;aAgBY,cAAA;EACV,iBAAA;EACA,kBAAA;EACA,UAAA;EACA,eAAA;EACA,oBAAA;AAAA;AAAA,iBAGc,gCAAA,CACd,MAAA,EAAQ,QAAQ,CAAC,8BAAA;AAAA,iBAqBH,iBAAA,CAAkB,MAA+B,EAAvB,uBAAuB;AAAA,UAqBhD,qBAAA;EA9CK;EAgDpB,MAAA,EAAQ,GAAG;EA7CmC;EA+C9C,SAAA;AAAA;;;;;AA9CgD;AAqBlD;;;iBAoCgB,uBAAA,CAAwB,MAAA,EAAQ,qBAAA,GAAwB,GAAG"}
@@ -0,0 +1,41 @@
1
+ //#region src/types/errorCodes.d.ts
2
+ /**
3
+ * Common error codes shared across all Nado backend services (engine, indexer, trigger, mobile).
4
+ *
5
+ * These codes come from the backend's `ResponseError` enum (see `nado-utils/src/error.rs`) and
6
+ * are reused by every service's `*_ERROR_CODES` map (e.g. {@link ENGINE_ERROR_CODES},
7
+ * {@link TRIGGER_ERROR_CODES}, {@link INDEXER_ERROR_CODES}, `MOBILE_ERROR_CODES`). Service-specific
8
+ * codes live in their own ranges and are enumerated in each service's package — see those maps
9
+ * for the full per-service list.
10
+ *
11
+ * The general errors (1xxx range) apply to all services. The `INVALID_SIGNER` (2028) code is
12
+ * technically in the query/execute range but is returned by every signed service, so it is
13
+ * promoted here. The "other" errors (4xxx range) and `INTERNAL_ERROR` (5000) are also
14
+ * cross-service.
15
+ */
16
+ declare const NADO_ERROR_CODES: {
17
+ /** Rate limit exceeded; returns HTTP 429. */readonly RATE_LIMIT: 1000; /** Address is blacklisted for ToS violation. */
18
+ readonly BLACKLISTED_ADDRESS: 1001; /** Access blocked from this geographic location. */
19
+ readonly BLOCKED_LOCATION: 1002; /** Access blocked from this geographic subdivision. */
20
+ readonly BLOCKED_SUBDIVISION: 1003; /** Service is temporarily unavailable due to scheduled maintenance. */
21
+ readonly MAINTENANCE: 1004; /** Gateway sent an invalid request (edge query rejection). */
22
+ readonly GATEWAY_INVALID_REQUEST: 1005; /** Service is temporarily unavailable; returns HTTP 503. */
23
+ readonly SERVICE_UNAVAILABLE: 1006; /** Signature does not match the sender or linked signer. */
24
+ readonly INVALID_SIGNER: 2028; /** Perp tick formatting: avg_price_diffs/product_ids length mismatch. */
25
+ readonly PERP_TICK_FORMATTING: 4000; /** Feature/route is not yet implemented; mobile returns HTTP 501. */
26
+ readonly NOT_IMPLEMENTED: 4001; /** MintNLP on perps is temporarily disabled. */
27
+ readonly TEMPORARILY_DISABLED_MINT_LP: 4002; /** EVM contract call reverted. */
28
+ readonly EVM_REVERT: 4003; /** Protocol risk withdrawal limit exceeded. */
29
+ readonly WITHDRAW_RISK: 4004; /** Unhandled internal server error. */
30
+ readonly INTERNAL_ERROR: 5000;
31
+ };
32
+ /**
33
+ * Union of all shared cross-service Nado error codes.
34
+ *
35
+ * Service-specific error code maps extend this set with their own ranges — see
36
+ * {@link ENGINE_ERROR_CODES}, {@link TRIGGER_ERROR_CODES}, and {@link INDEXER_ERROR_CODES}.
37
+ */
38
+ type NadoErrorCode = (typeof NADO_ERROR_CODES)[keyof typeof NADO_ERROR_CODES];
39
+ //#endregion
40
+ export { NadoErrorCode as n, NADO_ERROR_CODES as t };
41
+ //# sourceMappingURL=errorCodes-BIHhESbW.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errorCodes-BIHhESbW.d.ts","names":[],"sources":["../src/types/src/types/errorCodes.ts"],"mappings":";;AAcA;;;;;;;;;;;;;cAAa,gBAAA;;;mCA4CD;EAAA;8BAC6C;EAAA;;;;;;;;;;;;;;;;KAD7C,aAAA,WACF,gBAAA,eAA+B,gBAAgB"}
@@ -0,0 +1,41 @@
1
+ //#region src/types/errorCodes.d.ts
2
+ /**
3
+ * Common error codes shared across all Nado backend services (engine, indexer, trigger, mobile).
4
+ *
5
+ * These codes come from the backend's `ResponseError` enum (see `nado-utils/src/error.rs`) and
6
+ * are reused by every service's `*_ERROR_CODES` map (e.g. {@link ENGINE_ERROR_CODES},
7
+ * {@link TRIGGER_ERROR_CODES}, {@link INDEXER_ERROR_CODES}, `MOBILE_ERROR_CODES`). Service-specific
8
+ * codes live in their own ranges and are enumerated in each service's package — see those maps
9
+ * for the full per-service list.
10
+ *
11
+ * The general errors (1xxx range) apply to all services. The `INVALID_SIGNER` (2028) code is
12
+ * technically in the query/execute range but is returned by every signed service, so it is
13
+ * promoted here. The "other" errors (4xxx range) and `INTERNAL_ERROR` (5000) are also
14
+ * cross-service.
15
+ */
16
+ declare const NADO_ERROR_CODES: {
17
+ /** Rate limit exceeded; returns HTTP 429. */readonly RATE_LIMIT: 1000; /** Address is blacklisted for ToS violation. */
18
+ readonly BLACKLISTED_ADDRESS: 1001; /** Access blocked from this geographic location. */
19
+ readonly BLOCKED_LOCATION: 1002; /** Access blocked from this geographic subdivision. */
20
+ readonly BLOCKED_SUBDIVISION: 1003; /** Service is temporarily unavailable due to scheduled maintenance. */
21
+ readonly MAINTENANCE: 1004; /** Gateway sent an invalid request (edge query rejection). */
22
+ readonly GATEWAY_INVALID_REQUEST: 1005; /** Service is temporarily unavailable; returns HTTP 503. */
23
+ readonly SERVICE_UNAVAILABLE: 1006; /** Signature does not match the sender or linked signer. */
24
+ readonly INVALID_SIGNER: 2028; /** Perp tick formatting: avg_price_diffs/product_ids length mismatch. */
25
+ readonly PERP_TICK_FORMATTING: 4000; /** Feature/route is not yet implemented; mobile returns HTTP 501. */
26
+ readonly NOT_IMPLEMENTED: 4001; /** MintNLP on perps is temporarily disabled. */
27
+ readonly TEMPORARILY_DISABLED_MINT_LP: 4002; /** EVM contract call reverted. */
28
+ readonly EVM_REVERT: 4003; /** Protocol risk withdrawal limit exceeded. */
29
+ readonly WITHDRAW_RISK: 4004; /** Unhandled internal server error. */
30
+ readonly INTERNAL_ERROR: 5000;
31
+ };
32
+ /**
33
+ * Union of all shared cross-service Nado error codes.
34
+ *
35
+ * Service-specific error code maps extend this set with their own ranges — see
36
+ * {@link ENGINE_ERROR_CODES}, {@link TRIGGER_ERROR_CODES}, and {@link INDEXER_ERROR_CODES}.
37
+ */
38
+ type NadoErrorCode = (typeof NADO_ERROR_CODES)[keyof typeof NADO_ERROR_CODES];
39
+ //#endregion
40
+ export { NadoErrorCode as n, NADO_ERROR_CODES as t };
41
+ //# sourceMappingURL=errorCodes-DT284XV9.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errorCodes-DT284XV9.d.cts","names":[],"sources":["../src/types/src/types/errorCodes.ts"],"mappings":";;AAcA;;;;;;;;;;;;;cAAa,gBAAA;;;mCA4CD;EAAA;8BAC6C;EAAA;;;;;;;;;;;;;;;;KAD7C,aAAA,WACF,gBAAA,eAA+B,gBAAgB"}
@@ -1,2 +1,2 @@
1
- import { n as approveDepositAllowance, t as ApproveDepositAllowanceParams } from "../approveDepositAllowance-DzLfrUa1.cjs";
1
+ import { n as approveDepositAllowance, t as ApproveDepositAllowanceParams } from "../approveDepositAllowance-D2qQPRNF.cjs";
2
2
  export { ApproveDepositAllowanceParams, approveDepositAllowance };
@@ -1,2 +1,2 @@
1
- import { n as approveDepositAllowance, t as ApproveDepositAllowanceParams } from "../approveDepositAllowance-Dc7stdrU.js";
1
+ import { n as approveDepositAllowance, t as ApproveDepositAllowanceParams } from "../approveDepositAllowance-C26Htbqh.js";
2
2
  export { ApproveDepositAllowanceParams, approveDepositAllowance };
@@ -1,2 +1,2 @@
1
- import { n as depositCollateral, t as DepositCollateralParams } from "../depositCollateral-CmEXlJQs.cjs";
1
+ import { n as depositCollateral, t as DepositCollateralParams } from "../depositCollateral-BGegWF6K.cjs";
2
2
  export { DepositCollateralParams, depositCollateral };
@@ -1,2 +1,2 @@
1
- import { n as depositCollateral, t as DepositCollateralParams } from "../depositCollateral-476kzs4N.js";
1
+ import { n as depositCollateral, t as DepositCollateralParams } from "../depositCollateral-BaPQJFGG.js";
2
2
  export { DepositCollateralParams, depositCollateral };
@@ -1,3 +1,3 @@
1
- import { n as approveDepositAllowance, t as ApproveDepositAllowanceParams } from "../approveDepositAllowance-DzLfrUa1.cjs";
2
- import { n as depositCollateral, t as DepositCollateralParams } from "../depositCollateral-CmEXlJQs.cjs";
1
+ import { n as approveDepositAllowance, t as ApproveDepositAllowanceParams } from "../approveDepositAllowance-D2qQPRNF.cjs";
2
+ import { n as depositCollateral, t as DepositCollateralParams } from "../depositCollateral-BGegWF6K.cjs";
3
3
  export { ApproveDepositAllowanceParams, DepositCollateralParams, approveDepositAllowance, depositCollateral };
@@ -1,3 +1,3 @@
1
- import { n as approveDepositAllowance, t as ApproveDepositAllowanceParams } from "../approveDepositAllowance-Dc7stdrU.js";
2
- import { n as depositCollateral, t as DepositCollateralParams } from "../depositCollateral-476kzs4N.js";
1
+ import { n as approveDepositAllowance, t as ApproveDepositAllowanceParams } from "../approveDepositAllowance-C26Htbqh.js";
2
+ import { n as depositCollateral, t as DepositCollateralParams } from "../depositCollateral-BaPQJFGG.js";
3
3
  export { ApproveDepositAllowanceParams, DepositCollateralParams, approveDepositAllowance, depositCollateral };
@@ -10,4 +10,4 @@ import { TypedDataDomain } from "abitype";
10
10
  declare function getNadoEIP712Domain(contractAddress: string, chainId: number): TypedDataDomain;
11
11
  //#endregion
12
12
  export { getNadoEIP712Domain as t };
13
- //# sourceMappingURL=getNadoEIP712Domain-iDIuXsMf.d.cts.map
13
+ //# sourceMappingURL=getNadoEIP712Domain-DYtFpJm-.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getNadoEIP712Domain-iDIuXsMf.d.cts","names":[],"sources":["../src/eip712/src/eip712/getNadoEIP712Domain.ts"],"mappings":";;;;;AASA;;;;iBAAgB,mBAAA,CACd,eAAA,UACA,OAAA,WACC,eAAe"}
1
+ {"version":3,"file":"getNadoEIP712Domain-DYtFpJm-.d.cts","names":[],"sources":["../src/eip712/src/eip712/getNadoEIP712Domain.ts"],"mappings":";;;;;AASA;;;;iBAAgB,mBAAA,CACd,eAAA,UACA,OAAA,WACC,eAAe"}
@@ -10,4 +10,4 @@ import { TypedDataDomain } from "abitype";
10
10
  declare function getNadoEIP712Domain(contractAddress: string, chainId: number): TypedDataDomain;
11
11
  //#endregion
12
12
  export { getNadoEIP712Domain as t };
13
- //# sourceMappingURL=getNadoEIP712Domain-CSV6Zxuw.d.ts.map
13
+ //# sourceMappingURL=getNadoEIP712Domain-FRScInwf.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getNadoEIP712Domain-CSV6Zxuw.d.ts","names":[],"sources":["../src/eip712/src/eip712/getNadoEIP712Domain.ts"],"mappings":";;;;;AASA;;;;iBAAgB,mBAAA,CACd,eAAA,UACA,OAAA,WACC,eAAe"}
1
+ {"version":3,"file":"getNadoEIP712Domain-FRScInwf.d.ts","names":[],"sources":["../src/eip712/src/eip712/getNadoEIP712Domain.ts"],"mappings":";;;;;AASA;;;;iBAAgB,mBAAA,CACd,eAAA,UACA,OAAA,WACC,eAAe"}
@@ -1,4 +1,4 @@
1
- import { t as SignableRequestType } from "./signableRequestType-DWpXrjGE.js";
1
+ import { t as SignableRequestType } from "./signableRequestType-BF56QkJp.js";
2
2
 
3
3
  //#region src/eip712/getNadoEIP712PrimaryType.d.ts
4
4
  /**
@@ -9,4 +9,4 @@ import { t as SignableRequestType } from "./signableRequestType-DWpXrjGE.js";
9
9
  declare function getNadoEIP712PrimaryType(requestType: SignableRequestType): string;
10
10
  //#endregion
11
11
  export { getNadoEIP712PrimaryType as t };
12
- //# sourceMappingURL=getNadoEIP712PrimaryType-CE0fRiTI.d.ts.map
12
+ //# sourceMappingURL=getNadoEIP712PrimaryType-DqnS3gdK.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getNadoEIP712PrimaryType-CE0fRiTI.d.ts","names":[],"sources":["../src/eip712/src/eip712/getNadoEIP712PrimaryType.ts"],"mappings":";;;;;AAQA;;;iBAAgB,wBAAA,CAAyB,WAAgC,EAAnB,mBAAmB"}
1
+ {"version":3,"file":"getNadoEIP712PrimaryType-DqnS3gdK.d.ts","names":[],"sources":["../src/eip712/src/eip712/getNadoEIP712PrimaryType.ts"],"mappings":";;;;;AAQA;;;iBAAgB,wBAAA,CAAyB,WAAgC,EAAnB,mBAAmB"}
@@ -1,4 +1,4 @@
1
- import { t as SignableRequestType } from "./signableRequestType-BV11vCXW.cjs";
1
+ import { t as SignableRequestType } from "./signableRequestType-CHAdsHVX.cjs";
2
2
 
3
3
  //#region src/eip712/getNadoEIP712PrimaryType.d.ts
4
4
  /**
@@ -9,4 +9,4 @@ import { t as SignableRequestType } from "./signableRequestType-BV11vCXW.cjs";
9
9
  declare function getNadoEIP712PrimaryType(requestType: SignableRequestType): string;
10
10
  //#endregion
11
11
  export { getNadoEIP712PrimaryType as t };
12
- //# sourceMappingURL=getNadoEIP712PrimaryType-Cq8siJx7.d.cts.map
12
+ //# sourceMappingURL=getNadoEIP712PrimaryType-vOoXWu15.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getNadoEIP712PrimaryType-Cq8siJx7.d.cts","names":[],"sources":["../src/eip712/src/eip712/getNadoEIP712PrimaryType.ts"],"mappings":";;;;;AAQA;;;iBAAgB,wBAAA,CAAyB,WAAgC,EAAnB,mBAAmB"}
1
+ {"version":3,"file":"getNadoEIP712PrimaryType-vOoXWu15.d.cts","names":[],"sources":["../src/eip712/src/eip712/getNadoEIP712PrimaryType.ts"],"mappings":";;;;;AAQA;;;iBAAgB,wBAAA,CAAyB,WAAgC,EAAnB,mBAAmB"}
@@ -1,4 +1,4 @@
1
- import { t as SignableRequestType } from "./signableRequestType-DWpXrjGE.js";
1
+ import { t as SignableRequestType } from "./signableRequestType-BF56QkJp.js";
2
2
 
3
3
  //#region src/eip712/getNadoEIP712Types.d.ts
4
4
  interface TypedDataField {
@@ -13,4 +13,4 @@ interface TypedDataField {
13
13
  declare function getNadoEIP712Types(requestType: SignableRequestType): Record<string, Array<TypedDataField>>;
14
14
  //#endregion
15
15
  export { getNadoEIP712Types as t };
16
- //# sourceMappingURL=getNadoEIP712Types-BmB1bTGu.d.ts.map
16
+ //# sourceMappingURL=getNadoEIP712Types-R02heQll.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getNadoEIP712Types-BmB1bTGu.d.ts","names":[],"sources":["../src/eip712/src/eip712/getNadoEIP712Types.ts"],"mappings":";;;UAEU,cAAA;EACR,IAAA;EACA,IAAI;AAAA;;;AAAA;AAQN;;iBAAgB,kBAAA,CACd,WAAA,EAAa,mBAAA,GACZ,MAAA,SAAe,KAAA,CAAM,cAAA"}
1
+ {"version":3,"file":"getNadoEIP712Types-R02heQll.d.ts","names":[],"sources":["../src/eip712/src/eip712/getNadoEIP712Types.ts"],"mappings":";;;UAEU,cAAA;EACR,IAAA;EACA,IAAI;AAAA;;;AAAA;AAQN;;iBAAgB,kBAAA,CACd,WAAA,EAAa,mBAAA,GACZ,MAAA,SAAe,KAAA,CAAM,cAAA"}
@@ -1,4 +1,4 @@
1
- import { t as SignableRequestType } from "./signableRequestType-BV11vCXW.cjs";
1
+ import { t as SignableRequestType } from "./signableRequestType-CHAdsHVX.cjs";
2
2
 
3
3
  //#region src/eip712/getNadoEIP712Types.d.ts
4
4
  interface TypedDataField {
@@ -13,4 +13,4 @@ interface TypedDataField {
13
13
  declare function getNadoEIP712Types(requestType: SignableRequestType): Record<string, Array<TypedDataField>>;
14
14
  //#endregion
15
15
  export { getNadoEIP712Types as t };
16
- //# sourceMappingURL=getNadoEIP712Types-D7duS2wH.d.cts.map
16
+ //# sourceMappingURL=getNadoEIP712Types-mNqrs54G.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getNadoEIP712Types-D7duS2wH.d.cts","names":[],"sources":["../src/eip712/src/eip712/getNadoEIP712Types.ts"],"mappings":";;;UAEU,cAAA;EACR,IAAA;EACA,IAAI;AAAA;;;AAAA;AAQN;;iBAAgB,kBAAA,CACd,WAAA,EAAa,mBAAA,GACZ,MAAA,SAAe,KAAA,CAAM,cAAA"}
1
+ {"version":3,"file":"getNadoEIP712Types-mNqrs54G.d.cts","names":[],"sources":["../src/eip712/src/eip712/getNadoEIP712Types.ts"],"mappings":";;;UAEU,cAAA;EACR,IAAA;EACA,IAAI;AAAA;;;AAAA;AAQN;;iBAAgB,kBAAA,CACd,WAAA,EAAa,mBAAA,GACZ,MAAA,SAAe,KAAA,CAAM,cAAA"}
@@ -1,5 +1,5 @@
1
- import { h as SignableRequestTypeToEIP712Values } from "./eip712ValueTypes-CD1TxxFv.js";
2
- import { n as SignableRequestTypeToParams, t as SignableRequestType } from "./signableRequestType-DWpXrjGE.js";
1
+ import { g as SignableRequestTypeToEIP712Values } from "./eip712ValueTypes-D7iOMl8G.js";
2
+ import { n as SignableRequestTypeToParams, t as SignableRequestType } from "./signableRequestType-BF56QkJp.js";
3
3
 
4
4
  //#region src/eip712/getNadoEIP712Values.d.ts
5
5
  /**
@@ -13,4 +13,4 @@ import { n as SignableRequestTypeToParams, t as SignableRequestType } from "./si
13
13
  declare function getNadoEIP712Values<TReqType extends SignableRequestType>(requestType: TReqType, params: SignableRequestTypeToParams[TReqType]): SignableRequestTypeToEIP712Values[TReqType];
14
14
  //#endregion
15
15
  export { getNadoEIP712Values as t };
16
- //# sourceMappingURL=getNadoEIP712Values-0EOMObhX.d.ts.map
16
+ //# sourceMappingURL=getNadoEIP712Values-Ce5lqSVk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getNadoEIP712Values-Ce5lqSVk.d.ts","names":[],"sources":["../src/eip712/src/eip712/getNadoEIP712Values.ts"],"mappings":";;;;;;AAkDA;;;;;;iBAAgB,mBAAA,kBAAqC,mBAAA,CAAA,CACnD,WAAA,EAAa,QAAA,EACb,MAAA,EAAQ,2BAAA,CAA4B,QAAA,IACnC,iCAAA,CAAkC,QAAA"}
@@ -1,5 +1,5 @@
1
- import { h as SignableRequestTypeToEIP712Values } from "./eip712ValueTypes-CI6wMCCw.cjs";
2
- import { n as SignableRequestTypeToParams, t as SignableRequestType } from "./signableRequestType-BV11vCXW.cjs";
1
+ import { g as SignableRequestTypeToEIP712Values } from "./eip712ValueTypes-DYHO0ldz.cjs";
2
+ import { n as SignableRequestTypeToParams, t as SignableRequestType } from "./signableRequestType-CHAdsHVX.cjs";
3
3
 
4
4
  //#region src/eip712/getNadoEIP712Values.d.ts
5
5
  /**
@@ -13,4 +13,4 @@ import { n as SignableRequestTypeToParams, t as SignableRequestType } from "./si
13
13
  declare function getNadoEIP712Values<TReqType extends SignableRequestType>(requestType: TReqType, params: SignableRequestTypeToParams[TReqType]): SignableRequestTypeToEIP712Values[TReqType];
14
14
  //#endregion
15
15
  export { getNadoEIP712Values as t };
16
- //# sourceMappingURL=getNadoEIP712Values-DEBZh7-M.d.cts.map
16
+ //# sourceMappingURL=getNadoEIP712Values-N1wTvB-r.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getNadoEIP712Values-N1wTvB-r.d.cts","names":[],"sources":["../src/eip712/src/eip712/getNadoEIP712Values.ts"],"mappings":";;;;;;AAkDA;;;;;;iBAAgB,mBAAA,kBAAqC,mBAAA,CAAA,CACnD,WAAA,EAAa,QAAA,EACb,MAAA,EAAQ,2BAAA,CAA4B,QAAA,IACnC,iCAAA,CAAkC,QAAA"}
@@ -8,4 +8,4 @@ import { Address } from "viem";
8
8
  declare function getOrderVerifyingAddress(productId: number): Address;
9
9
  //#endregion
10
10
  export { getOrderVerifyingAddress as t };
11
- //# sourceMappingURL=getOrderVerifyingAddress-CHRCQ8AZ.d.cts.map
11
+ //# sourceMappingURL=getOrderVerifyingAddress-CLL7iyLD.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getOrderVerifyingAddress-CHRCQ8AZ.d.cts","names":[],"sources":["../src/eip712/src/eip712/getOrderVerifyingAddress.ts"],"mappings":";;;;;AAMA;;iBAAgB,wBAAA,CAAyB,SAAA,WAAoB,OAAO"}
1
+ {"version":3,"file":"getOrderVerifyingAddress-CLL7iyLD.d.cts","names":[],"sources":["../src/eip712/src/eip712/getOrderVerifyingAddress.ts"],"mappings":";;;;;AAMA;;iBAAgB,wBAAA,CAAyB,SAAA,WAAoB,OAAO"}
@@ -8,4 +8,4 @@ import { Address } from "viem";
8
8
  declare function getOrderVerifyingAddress(productId: number): Address;
9
9
  //#endregion
10
10
  export { getOrderVerifyingAddress as t };
11
- //# sourceMappingURL=getOrderVerifyingAddress-BygcgBA1.d.ts.map
11
+ //# sourceMappingURL=getOrderVerifyingAddress-CNyXGx9D.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getOrderVerifyingAddress-BygcgBA1.d.ts","names":[],"sources":["../src/eip712/src/eip712/getOrderVerifyingAddress.ts"],"mappings":";;;;;AAMA;;iBAAgB,wBAAA,CAAyB,SAAA,WAAoB,OAAO"}
1
+ {"version":3,"file":"getOrderVerifyingAddress-CNyXGx9D.d.ts","names":[],"sources":["../src/eip712/src/eip712/getOrderVerifyingAddress.ts"],"mappings":";;;;;AAMA;;iBAAgB,wBAAA,CAAyB,SAAA,WAAoB,OAAO"}
@@ -1,5 +1,5 @@
1
- import { r as WalletClientWithAccount } from "./viemTypes-D3kRC8jF.js";
2
- import { n as SignableRequestTypeToParams, t as SignableRequestType } from "./signableRequestType-DWpXrjGE.js";
1
+ import { r as WalletClientWithAccount } from "./viemTypes-CK7FBgk7.js";
2
+ import { n as SignableRequestTypeToParams, t as SignableRequestType } from "./signableRequestType-BF56QkJp.js";
3
3
 
4
4
  //#region src/eip712/getSignedTransactionRequest.d.ts
5
5
  interface Params<TReqType extends SignableRequestType> {
@@ -12,4 +12,4 @@ interface Params<TReqType extends SignableRequestType> {
12
12
  declare function getSignedTransactionRequest<TReqType extends SignableRequestType>(params: Params<TReqType>): Promise<`0x${string}`>;
13
13
  //#endregion
14
14
  export { getSignedTransactionRequest as t };
15
- //# sourceMappingURL=getSignedTransactionRequest-Et_1Y1wr.d.ts.map
15
+ //# sourceMappingURL=getSignedTransactionRequest-D0b4BDSB.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSignedTransactionRequest-Et_1Y1wr.d.ts","names":[],"sources":["../src/eip712/src/eip712/getSignedTransactionRequest.ts"],"mappings":";;;;UAUU,MAAA,kBAAwB,mBAAA;EAChC,WAAA,EAAa,QAAA;EACb,aAAA,EAAe,2BAAA,CAA4B,QAAA;EAE3C,OAAA;EAEA,iBAAA;EACA,YAAA,EAAc,uBAAA;AAAA;AAAA,iBAGA,2BAAA,kBACG,mBAAA,CAAA,CACjB,MAAA,EAAQ,MAAA,CAAO,QAAA,IAAS,OAAA"}
1
+ {"version":3,"file":"getSignedTransactionRequest-D0b4BDSB.d.ts","names":[],"sources":["../src/eip712/src/eip712/getSignedTransactionRequest.ts"],"mappings":";;;;UAUU,MAAA,kBAAwB,mBAAA;EAChC,WAAA,EAAa,QAAA;EACb,aAAA,EAAe,2BAAA,CAA4B,QAAA;EAE3C,OAAA;EAEA,iBAAA;EACA,YAAA,EAAc,uBAAA;AAAA;AAAA,iBAGA,2BAAA,kBACG,mBAAA,CAAA,CACjB,MAAA,EAAQ,MAAA,CAAO,QAAA,IAAS,OAAA"}
@@ -1,5 +1,5 @@
1
- import { r as WalletClientWithAccount } from "./viemTypes-Mjfxe2ou.cjs";
2
- import { n as SignableRequestTypeToParams, t as SignableRequestType } from "./signableRequestType-BV11vCXW.cjs";
1
+ import { r as WalletClientWithAccount } from "./viemTypes-B1TUCDzm.cjs";
2
+ import { n as SignableRequestTypeToParams, t as SignableRequestType } from "./signableRequestType-CHAdsHVX.cjs";
3
3
 
4
4
  //#region src/eip712/getSignedTransactionRequest.d.ts
5
5
  interface Params<TReqType extends SignableRequestType> {
@@ -12,4 +12,4 @@ interface Params<TReqType extends SignableRequestType> {
12
12
  declare function getSignedTransactionRequest<TReqType extends SignableRequestType>(params: Params<TReqType>): Promise<`0x${string}`>;
13
13
  //#endregion
14
14
  export { getSignedTransactionRequest as t };
15
- //# sourceMappingURL=getSignedTransactionRequest-DxUMBHLe.d.cts.map
15
+ //# sourceMappingURL=getSignedTransactionRequest-kTbC9qPT.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSignedTransactionRequest-DxUMBHLe.d.cts","names":[],"sources":["../src/eip712/src/eip712/getSignedTransactionRequest.ts"],"mappings":";;;;UAUU,MAAA,kBAAwB,mBAAA;EAChC,WAAA,EAAa,QAAA;EACb,aAAA,EAAe,2BAAA,CAA4B,QAAA;EAE3C,OAAA;EAEA,iBAAA;EACA,YAAA,EAAc,uBAAA;AAAA;AAAA,iBAGA,2BAAA,kBACG,mBAAA,CAAA,CACjB,MAAA,EAAQ,MAAA,CAAO,QAAA,IAAS,OAAA"}
1
+ {"version":3,"file":"getSignedTransactionRequest-kTbC9qPT.d.cts","names":[],"sources":["../src/eip712/src/eip712/getSignedTransactionRequest.ts"],"mappings":";;;;UAUU,MAAA,kBAAwB,mBAAA;EAChC,WAAA,EAAa,QAAA;EACb,aAAA,EAAe,2BAAA,CAA4B,QAAA;EAE3C,OAAA;EAEA,iBAAA;EACA,YAAA,EAAc,uBAAA;AAAA;AAAA,iBAGA,2BAAA,kBACG,mBAAA,CAAA,CACjB,MAAA,EAAQ,MAAA,CAAO,QAAA,IAAS,OAAA"}
@@ -8,4 +8,4 @@ import { Address } from "viem";
8
8
  declare function getValidatedAddress(maybeAddress: string): Address;
9
9
  //#endregion
10
10
  export { getValidatedAddress as t };
11
- //# sourceMappingURL=getValidatedAddress-BmCqRBeh.d.ts.map
11
+ //# sourceMappingURL=getValidatedAddress-4dLXIemu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getValidatedAddress-4dLXIemu.d.ts","names":[],"sources":["../src/utils/src/utils/getValidatedAddress.ts"],"mappings":";;;;;AAMA;;iBAAgB,mBAAA,CAAoB,YAAA,WAAuB,OAAO"}
@@ -8,4 +8,4 @@ import { Address } from "viem";
8
8
  declare function getValidatedAddress(maybeAddress: string): Address;
9
9
  //#endregion
10
10
  export { getValidatedAddress as t };
11
- //# sourceMappingURL=getValidatedAddress-BQJEkmbN.d.cts.map
11
+ //# sourceMappingURL=getValidatedAddress-C_HmNidZ.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getValidatedAddress-C_HmNidZ.d.cts","names":[],"sources":["../src/utils/src/utils/getValidatedAddress.ts"],"mappings":";;;;;AAMA;;iBAAgB,mBAAA,CAAoB,YAAA,WAAuB,OAAO"}
@@ -8,4 +8,4 @@ import { Hex } from "viem";
8
8
  declare function getValidatedHex(maybeHex: string): Hex;
9
9
  //#endregion
10
10
  export { getValidatedHex as t };
11
- //# sourceMappingURL=getValidatedHex-DuwBnuEB.d.ts.map
11
+ //# sourceMappingURL=getValidatedHex-CNqNVarV.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getValidatedHex-CNqNVarV.d.ts","names":[],"sources":["../src/utils/src/utils/getValidatedHex.ts"],"mappings":";;;;;AAMA;;iBAAgB,eAAA,CAAgB,QAAA,WAAmB,GAAG"}
@@ -8,4 +8,4 @@ import { Hex } from "viem";
8
8
  declare function getValidatedHex(maybeHex: string): Hex;
9
9
  //#endregion
10
10
  export { getValidatedHex as t };
11
- //# sourceMappingURL=getValidatedHex-PXNPR4pI.d.cts.map
11
+ //# sourceMappingURL=getValidatedHex-zCkkMsa7.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getValidatedHex-zCkkMsa7.d.cts","names":[],"sources":["../src/utils/src/utils/getValidatedHex.ts"],"mappings":";;;;;AAMA;;iBAAgB,eAAA,CAAgB,QAAA,WAAmB,GAAG"}
package/dist/index.cjs CHANGED
@@ -54,6 +54,7 @@ const require_execute_approveDepositAllowance = require("./execute/approveDeposi
54
54
  const require_execute_depositCollateral = require("./execute/depositCollateral.cjs");
55
55
  require("./execute/index.cjs");
56
56
  const require_types_ChainEnv = require("./types/ChainEnv.cjs");
57
+ const require_types_errorCodes = require("./types/errorCodes.cjs");
57
58
  require("./types/index.cjs");
58
59
  exports.ALL_CHAIN_ENVS = require_types_ChainEnv.ALL_CHAIN_ENVS;
59
60
  exports.BigNumbers = require_utils_math_BigNumbers.BigNumbers;
@@ -67,6 +68,7 @@ exports.MAINNET_CHAIN_ENVS = require_types_ChainEnv.MAINNET_CHAIN_ENVS;
67
68
  exports.MOCK_ERC20_ABI = require_abis_MockERC20.MOCK_ERC20_ABI;
68
69
  exports.NADO_ABIS = require_abis_nadoAbis.NADO_ABIS;
69
70
  exports.NADO_DEPLOYMENTS = require_deployments.NADO_DEPLOYMENTS;
71
+ exports.NADO_ERROR_CODES = require_types_errorCodes.NADO_ERROR_CODES;
70
72
  exports.NADO_PRODUCT_DECIMALS = require_utils_math_decimalAdjustment.NADO_PRODUCT_DECIMALS;
71
73
  exports.NLP_PRODUCT_ID = require_consts_productIds.NLP_PRODUCT_ID;
72
74
  exports.PERP_ENGINE_ABI = require_abis_PerpEngine.PERP_ENGINE_ABI;
package/dist/index.d.cts CHANGED
@@ -12,53 +12,55 @@ import { a as toProductEngineType, i as SpotProduct, n as Product, r as ProductE
12
12
  import { a as PerpBalance, c as SpotBalanceWithProduct, i as BalanceWithProduct, n as BalanceHealthContributions, o as PerpBalanceWithProduct, r as BalanceSide, s as SpotBalance, t as Balance } from "./balanceTypes-DdDBwUwZ.cjs";
13
13
  import { t as Bytes } from "./bytes-DAhqCt_o.cjs";
14
14
  import { a as TESTNET_CHAIN_ENVS, i as MAINNET_CHAIN_ENVS, n as ChainEnv, r as LOCAL_CHAIN_ENVS, t as ALL_CHAIN_ENVS } from "./ChainEnv-C_iC1v8V.cjs";
15
- import { i as SpotMarket, n as MarketWithProduct, r as PerpMarket, t as Market } from "./marketTypes-BSevYB-h.cjs";
16
- import { i as WriteableContractInstance, n as ContractInstance, r as WalletClientWithAccount, t as AccountWithPrivateKey } from "./viemTypes-Mjfxe2ou.cjs";
17
- import { n as WithContract, r as WithContracts, t as NadoContracts } from "./nadoContractTypes-Cp3kD2DC.cjs";
18
- import { n as toBigNumber, t as BigNumberish } from "./bigNumber-DX0JX9bQ.cjs";
19
- import { t as BigNumbers } from "./BigNumbers-CZl--in2.cjs";
20
- import { t as clampBigNumber } from "./clamp-B7YSY8XJ.cjs";
21
- import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "./decimalAdjustment-CMqU3rNy.cjs";
22
- import { t as sumBigNumberBy } from "./sumBigNumberBy-BWQ-bPpk.cjs";
23
- import { t as toBigInt } from "./toBigInt-cEajjeFa.cjs";
24
- import { t as toIntegerString } from "./toIntegerString-CHveFt3s.cjs";
25
- import { t as OrderExecutionType } from "./OrderExecutionType-gZHBzTTF.cjs";
26
- import { a as OrderAppendixTwapFields, i as OrderAppendixTriggerType, n as OrderAppendixBuilderFields, r as OrderAppendixIsolatedFields, t as OrderAppendix } from "./orderAppendixTypes-CM-eb5WL.cjs";
27
- import { n as SubaccountBytes32, r as SubaccountNameBytes12, t as Subaccount } from "./subaccountTypes-BGE4tJKb.cjs";
28
- import { n as CHAIN_ID_TO_CHAIN_ENV, t as CHAIN_ENV_TO_CHAIN } from "./chainEnvToChain-Cze_i6hZ.cjs";
29
- import { n as QUOTE_PRODUCT_ID, t as NLP_PRODUCT_ID } from "./productIds-COuWMJat.cjs";
15
+ import { n as NadoErrorCode, t as NADO_ERROR_CODES } from "./errorCodes-DT284XV9.cjs";
16
+ import { i as SpotMarket, n as MarketWithProduct, r as PerpMarket, t as Market } from "./marketTypes-BvUKMyk2.cjs";
17
+ import { i as WriteableContractInstance, n as ContractInstance, r as WalletClientWithAccount, t as AccountWithPrivateKey } from "./viemTypes-B1TUCDzm.cjs";
18
+ import { n as WithContract, r as WithContracts, t as NadoContracts } from "./nadoContractTypes-Dhmt_9t1.cjs";
19
+ import { n as toBigNumber, t as BigNumberish } from "./bigNumber-DRrWI93s.cjs";
20
+ import { t as BigNumbers } from "./BigNumbers-DYhqk1Hm.cjs";
21
+ import { t as clampBigNumber } from "./clamp-BZmNZW_0.cjs";
22
+ import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "./decimalAdjustment-BnyIQK-9.cjs";
23
+ import { t as sumBigNumberBy } from "./sumBigNumberBy-DDmCAeH7.cjs";
24
+ import { t as toBigInt } from "./toBigInt-BeWZDOuB.cjs";
25
+ import { t as toIntegerString } from "./toIntegerString-BPfShEi9.cjs";
26
+ import { t as OrderExecutionType } from "./OrderExecutionType-CsOBf1tI.cjs";
27
+ import { a as OrderAppendixTwapFields, i as OrderAppendixTriggerType, n as OrderAppendixBuilderFields, r as OrderAppendixIsolatedFields, t as OrderAppendix } from "./orderAppendixTypes-CaYlUEvF.cjs";
28
+ import { t as SignatureParams } from "./signatureTypes-CmG9clmQ.cjs";
29
+ import { n as SubaccountBytes32, r as SubaccountNameBytes12, t as Subaccount } from "./subaccountTypes-CwU5OiX6.cjs";
30
+ import { n as CHAIN_ID_TO_CHAIN_ENV, t as CHAIN_ENV_TO_CHAIN } from "./chainEnvToChain-Bq28rZNo.cjs";
31
+ import { n as QUOTE_PRODUCT_ID, t as NLP_PRODUCT_ID } from "./productIds-DBfWyycx.cjs";
30
32
  import { NADO_DEPLOYMENTS, NadoDeploymentAddresses } from "./deployments/index.cjs";
31
- import { n as asyncResult, t as AsyncResult } from "./asyncResult-D-rEUypp.cjs";
32
- import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "./balanceValue-BHDw2fCR.cjs";
33
- import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "./bytes32-CE-v0SzM.cjs";
34
- import { t as createDeterministicLinkedSignerPrivateKey } from "./createDeterministicLinkedSignerPrivateKey-C2v9BK5R.cjs";
35
- import { t as WalletNotProvidedError } from "./WalletNotProvidedError-BFEw-O_V.cjs";
36
- import { t as getValidatedAddress } from "./getValidatedAddress-BQJEkmbN.cjs";
37
- import { t as getValidatedHex } from "./getValidatedHex-PXNPR4pI.cjs";
38
- import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "./interest-DRpagIcs.cjs";
39
- import { t as isWriteableContract } from "./isWriteableContract-ZGxc9VmC.cjs";
40
- import { t as mapValues } from "./mapValues-jlfbJybF.cjs";
41
- import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "./appendixTwapValue-2e-BBSSp.cjs";
42
- import { t as bitMaskValue } from "./bitMaskValue-CWv12B9a.cjs";
43
- import { t as packOrderAppendix } from "./packOrderAppendix-DJlhe5P5.cjs";
44
- import { t as PackedOrderAppendixBits } from "./types-BdV1zhbS.cjs";
45
- import { t as unpackOrderAppendix } from "./unpackOrderAppendix-E8HT7dKm.cjs";
46
- import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "./orderNonce-p8m6ZrSd.cjs";
47
- import { t as getDefaultRecvTime } from "./recvTime-lSkRnXFh.cjs";
48
- import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "./productTypeFilter-B6CoWHmB.cjs";
49
- import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "./time-D6SSEenZ.cjs";
50
- import { t as toPrintableObject } from "./toPrintableObject-CwWr2voJ.cjs";
51
- import { a as EIP712LinkSignerParams, c as EIP712MintNlpParams, d as EIP712TransferQuoteParams, f as EIP712UpdateDependencyParams, g as SignedTx, h as SignedEIP712OrderParams, i as EIP712LeaderboardAuthenticationParams, l as EIP712OrderParams, m as EIP712WithdrawCollateralV2Params, n as EIP712CancelOrdersParams, o as EIP712LiquidateSubaccountParams, p as EIP712WithdrawCollateralParams, r as EIP712CancelProductOrdersParams, s as EIP712ListTriggerOrdersParams, t as EIP712BurnNlpParams, u as EIP712SocialAuthenticationParams } from "./signatureParamTypes-Cjm4X5PA.cjs";
52
- import { a as EIP712ListTriggerOrdersValues, c as EIP712OrderValues, d as EIP712TransferQuoteValues, f as EIP712UpdateDependencyValues, h as SignableRequestTypeToEIP712Values, i as EIP712LiquidateSubaccountValues, l as EIP712ProductOrdersCancellationValues, m as EIP712WithdrawCollateralValues, n as EIP712LeaderboardAuthenticationValues, o as EIP712MintNlpValues, p as EIP712WithdrawCollateralV2Values, r as EIP712LinkSignerValues, s as EIP712OrderCancellationValues, t as EIP712BurnNlpValues, u as EIP712SocialAuthenticationValues } from "./eip712ValueTypes-CI6wMCCw.cjs";
53
- import { t as getNadoEIP712Domain } from "./getNadoEIP712Domain-iDIuXsMf.cjs";
54
- import { n as SignableRequestTypeToParams, t as SignableRequestType } from "./signableRequestType-BV11vCXW.cjs";
55
- import { t as getNadoEIP712PrimaryType } from "./getNadoEIP712PrimaryType-Cq8siJx7.cjs";
56
- import { t as getNadoEIP712Types } from "./getNadoEIP712Types-D7duS2wH.cjs";
57
- import { t as getNadoEIP712Values } from "./getNadoEIP712Values-DEBZh7-M.cjs";
58
- import { t as getOrderVerifyingAddress } from "./getOrderVerifyingAddress-CHRCQ8AZ.cjs";
59
- import { t as getSignedTransactionRequest } from "./getSignedTransactionRequest-DxUMBHLe.cjs";
60
- import { t as getOrderDigest } from "./orderDigest-C9Sr-5TO.cjs";
61
- import { a as encodeSignedWithdrawCollateralTx, i as encodeSignedOrder, n as SlowModeTxType, r as encodeClaimBuilderFeeTx, t as ClaimBuilderFeeParams } from "./encoding-BXqysa4s.cjs";
62
- import { n as approveDepositAllowance, t as ApproveDepositAllowanceParams } from "./approveDepositAllowance-DzLfrUa1.cjs";
63
- import { n as depositCollateral, t as DepositCollateralParams } from "./depositCollateral-CmEXlJQs.cjs";
64
- export { ALL_CHAIN_ENVS, AccountWithPrivateKey, ApproveDepositAllowanceParams, AsyncResult, Balance, BalanceHealthContributions, BalanceSide, BalanceWithProduct, BigNumberish, BigNumbers, Bytes, CHAIN_ENV_TO_CHAIN, CHAIN_ID_TO_CHAIN_ENV, CLEARINGHOUSE_ABI, ChainEnv, ClaimBuilderFeeParams, ContractInstance, DepositCollateralParams, EIP712BurnNlpParams, EIP712BurnNlpValues, EIP712CancelOrdersParams, EIP712CancelProductOrdersParams, EIP712LeaderboardAuthenticationParams, EIP712LeaderboardAuthenticationValues, EIP712LinkSignerParams, EIP712LinkSignerValues, EIP712LiquidateSubaccountParams, EIP712LiquidateSubaccountValues, EIP712ListTriggerOrdersParams, EIP712ListTriggerOrdersValues, EIP712MintNlpParams, EIP712MintNlpValues, EIP712OrderCancellationValues, EIP712OrderParams, EIP712OrderValues, EIP712ProductOrdersCancellationValues, EIP712SocialAuthenticationParams, EIP712SocialAuthenticationValues, EIP712TransferQuoteParams, EIP712TransferQuoteValues, EIP712UpdateDependencyParams, EIP712UpdateDependencyValues, EIP712WithdrawCollateralParams, EIP712WithdrawCollateralV2Params, EIP712WithdrawCollateralV2Values, EIP712WithdrawCollateralValues, ENDPOINT_ABI, ERC20_ABI, HealthGroup, HealthStatus, HealthStatusByType, HealthType, LOCAL_CHAIN_ENVS, MAINNET_CHAIN_ENVS, MOCK_ERC20_ABI, Market, MarketWithProduct, NADO_ABIS, NADO_DEPLOYMENTS, NADO_PRODUCT_DECIMALS, NLP_PRODUCT_ID, NadoAbis, NadoContractName, NadoContracts, NadoDeploymentAddresses, OrderAppendix, OrderAppendixBuilderFields, OrderAppendixIsolatedFields, OrderAppendixTriggerType, OrderAppendixTwapFields, OrderExecutionType, PERP_ENGINE_ABI, PackedOrderAppendixBits, PerpBalance, PerpBalanceWithProduct, PerpMarket, PerpProduct, Product, ProductEngineType, QUERIER_ABI, QUOTE_PRODUCT_ID, SPOT_ENGINE_ABI, SignableRequestType, SignableRequestTypeToEIP712Values, SignableRequestTypeToParams, SignedEIP712OrderParams, SignedTx, SlowModeTxType, SpotBalance, SpotBalanceWithProduct, SpotMarket, SpotProduct, Subaccount, SubaccountBytes32, SubaccountNameBytes12, TESTNET_CHAIN_ENVS, TimeInSeconds, WITHDRAW_POOL_ABI, WalletClientWithAccount, WalletNotProvidedError, WithContract, WithContracts, WriteableContractInstance, addDecimals, approveDepositAllowance, asyncResult, bitMaskValue, calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcRealizedDepositRateForTimeRange, calcSpotBalanceValue, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio, clampBigNumber, createDeterministicLinkedSignerPrivateKey, depositCollateral, encodeClaimBuilderFeeTx, encodeSignedOrder, encodeSignedWithdrawCollateralTx, getDefaultRecvTime, getNadoEIP712Domain, getNadoEIP712PrimaryType, getNadoEIP712Types, getNadoEIP712Values, getOrderDigest, getOrderNonce, getOrderVerifyingAddress, getRecvTimeFromOrderNonce, getSignedTransactionRequest, getValidatedAddress, getValidatedHex, isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct, isWriteableContract, mapValues, millisToSeconds, nowInSeconds, packOrderAppendix, packTwapOrderAppendixValue, removeDecimals, subaccountFromBytes32, subaccountFromHex, subaccountNameBytesToStr, subaccountNameToBytes12, subaccountToBytes32, subaccountToHex, sumBigNumberBy, toBigInt, toBigNumber, toIntegerString, toPrintableObject, toProductEngineType, unpackOrderAppendix, unpackTwapOrderAppendixValue };
33
+ import { n as asyncResult, t as AsyncResult } from "./asyncResult-DQ8gHsyJ.cjs";
34
+ import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "./balanceValue-DqIWjoKX.cjs";
35
+ import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "./bytes32-DcJ5FJSi.cjs";
36
+ import { t as createDeterministicLinkedSignerPrivateKey } from "./createDeterministicLinkedSignerPrivateKey-CTTU-mEr.cjs";
37
+ import { t as WalletNotProvidedError } from "./WalletNotProvidedError-Cr6ag4xm.cjs";
38
+ import { t as getValidatedAddress } from "./getValidatedAddress-C_HmNidZ.cjs";
39
+ import { t as getValidatedHex } from "./getValidatedHex-zCkkMsa7.cjs";
40
+ import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "./interest-BfAowKdU.cjs";
41
+ import { t as isWriteableContract } from "./isWriteableContract-Ctl78F8z.cjs";
42
+ import { t as mapValues } from "./mapValues-BoHvsgT1.cjs";
43
+ import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "./appendixTwapValue-CnnIIOqv.cjs";
44
+ import { t as bitMaskValue } from "./bitMaskValue-R5zFzHLe.cjs";
45
+ import { t as packOrderAppendix } from "./packOrderAppendix-CczLGSVB.cjs";
46
+ import { t as PackedOrderAppendixBits } from "./types-D_CNVlha.cjs";
47
+ import { t as unpackOrderAppendix } from "./unpackOrderAppendix-Cjy13jK5.cjs";
48
+ import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "./orderNonce-CFJ5UiYP.cjs";
49
+ import { t as getDefaultRecvTime } from "./recvTime-Bm6OOxAH.cjs";
50
+ import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "./productTypeFilter-DafbByZQ.cjs";
51
+ import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "./time-CWyHslwY.cjs";
52
+ import { t as toPrintableObject } from "./toPrintableObject-CFG_kUbt.cjs";
53
+ import { _ as SignedTx, a as EIP712LinkSignerParams, c as EIP712MintNlpParams, d as EIP712SocialAuthenticationParams, f as EIP712TransferQuoteParams, g as SignedEIP712OrderParams, h as EIP712WithdrawCollateralV2Params, i as EIP712LeaderboardAuthenticationParams, l as EIP712NadoAuthenticationParams, m as EIP712WithdrawCollateralParams, n as EIP712CancelOrdersParams, o as EIP712LiquidateSubaccountParams, p as EIP712UpdateDependencyParams, r as EIP712CancelProductOrdersParams, s as EIP712ListTriggerOrdersParams, t as EIP712BurnNlpParams, u as EIP712OrderParams } from "./signatureParamTypes-B9sr1m_2.cjs";
54
+ import { a as EIP712ListTriggerOrdersValues, c as EIP712OrderCancellationValues, d as EIP712SocialAuthenticationValues, f as EIP712TransferQuoteValues, g as SignableRequestTypeToEIP712Values, h as EIP712WithdrawCollateralValues, i as EIP712LiquidateSubaccountValues, l as EIP712OrderValues, m as EIP712WithdrawCollateralV2Values, n as EIP712LeaderboardAuthenticationValues, o as EIP712MintNlpValues, p as EIP712UpdateDependencyValues, r as EIP712LinkSignerValues, s as EIP712NadoAuthenticationValues, t as EIP712BurnNlpValues, u as EIP712ProductOrdersCancellationValues } from "./eip712ValueTypes-DYHO0ldz.cjs";
55
+ import { t as getNadoEIP712Domain } from "./getNadoEIP712Domain-DYtFpJm-.cjs";
56
+ import { n as SignableRequestTypeToParams, t as SignableRequestType } from "./signableRequestType-CHAdsHVX.cjs";
57
+ import { t as getNadoEIP712PrimaryType } from "./getNadoEIP712PrimaryType-vOoXWu15.cjs";
58
+ import { t as getNadoEIP712Types } from "./getNadoEIP712Types-mNqrs54G.cjs";
59
+ import { t as getNadoEIP712Values } from "./getNadoEIP712Values-N1wTvB-r.cjs";
60
+ import { t as getOrderVerifyingAddress } from "./getOrderVerifyingAddress-CLL7iyLD.cjs";
61
+ import { t as getSignedTransactionRequest } from "./getSignedTransactionRequest-kTbC9qPT.cjs";
62
+ import { t as getOrderDigest } from "./orderDigest-Ds3Er4tZ.cjs";
63
+ import { a as encodeSignedWithdrawCollateralTx, i as encodeSignedOrder, n as SlowModeTxType, r as encodeClaimBuilderFeeTx, t as ClaimBuilderFeeParams } from "./encoding-tWL2ZXfF.cjs";
64
+ import { n as approveDepositAllowance, t as ApproveDepositAllowanceParams } from "./approveDepositAllowance-D2qQPRNF.cjs";
65
+ import { n as depositCollateral, t as DepositCollateralParams } from "./depositCollateral-BGegWF6K.cjs";
66
+ export { ALL_CHAIN_ENVS, AccountWithPrivateKey, ApproveDepositAllowanceParams, AsyncResult, Balance, BalanceHealthContributions, BalanceSide, BalanceWithProduct, BigNumberish, BigNumbers, Bytes, CHAIN_ENV_TO_CHAIN, CHAIN_ID_TO_CHAIN_ENV, CLEARINGHOUSE_ABI, ChainEnv, ClaimBuilderFeeParams, ContractInstance, DepositCollateralParams, EIP712BurnNlpParams, EIP712BurnNlpValues, EIP712CancelOrdersParams, EIP712CancelProductOrdersParams, EIP712LeaderboardAuthenticationParams, EIP712LeaderboardAuthenticationValues, EIP712LinkSignerParams, EIP712LinkSignerValues, EIP712LiquidateSubaccountParams, EIP712LiquidateSubaccountValues, EIP712ListTriggerOrdersParams, EIP712ListTriggerOrdersValues, EIP712MintNlpParams, EIP712MintNlpValues, EIP712NadoAuthenticationParams, EIP712NadoAuthenticationValues, EIP712OrderCancellationValues, EIP712OrderParams, EIP712OrderValues, EIP712ProductOrdersCancellationValues, EIP712SocialAuthenticationParams, EIP712SocialAuthenticationValues, EIP712TransferQuoteParams, EIP712TransferQuoteValues, EIP712UpdateDependencyParams, EIP712UpdateDependencyValues, EIP712WithdrawCollateralParams, EIP712WithdrawCollateralV2Params, EIP712WithdrawCollateralV2Values, EIP712WithdrawCollateralValues, ENDPOINT_ABI, ERC20_ABI, HealthGroup, HealthStatus, HealthStatusByType, HealthType, LOCAL_CHAIN_ENVS, MAINNET_CHAIN_ENVS, MOCK_ERC20_ABI, Market, MarketWithProduct, NADO_ABIS, NADO_DEPLOYMENTS, NADO_ERROR_CODES, NADO_PRODUCT_DECIMALS, NLP_PRODUCT_ID, NadoAbis, NadoContractName, NadoContracts, NadoDeploymentAddresses, NadoErrorCode, OrderAppendix, OrderAppendixBuilderFields, OrderAppendixIsolatedFields, OrderAppendixTriggerType, OrderAppendixTwapFields, OrderExecutionType, PERP_ENGINE_ABI, PackedOrderAppendixBits, PerpBalance, PerpBalanceWithProduct, PerpMarket, PerpProduct, Product, ProductEngineType, QUERIER_ABI, QUOTE_PRODUCT_ID, SPOT_ENGINE_ABI, SignableRequestType, SignableRequestTypeToEIP712Values, SignableRequestTypeToParams, SignatureParams, SignedEIP712OrderParams, SignedTx, SlowModeTxType, SpotBalance, SpotBalanceWithProduct, SpotMarket, SpotProduct, Subaccount, SubaccountBytes32, SubaccountNameBytes12, TESTNET_CHAIN_ENVS, TimeInSeconds, WITHDRAW_POOL_ABI, WalletClientWithAccount, WalletNotProvidedError, WithContract, WithContracts, WriteableContractInstance, addDecimals, approveDepositAllowance, asyncResult, bitMaskValue, calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcRealizedDepositRateForTimeRange, calcSpotBalanceValue, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio, clampBigNumber, createDeterministicLinkedSignerPrivateKey, depositCollateral, encodeClaimBuilderFeeTx, encodeSignedOrder, encodeSignedWithdrawCollateralTx, getDefaultRecvTime, getNadoEIP712Domain, getNadoEIP712PrimaryType, getNadoEIP712Types, getNadoEIP712Values, getOrderDigest, getOrderNonce, getOrderVerifyingAddress, getRecvTimeFromOrderNonce, getSignedTransactionRequest, getValidatedAddress, getValidatedHex, isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct, isWriteableContract, mapValues, millisToSeconds, nowInSeconds, packOrderAppendix, packTwapOrderAppendixValue, removeDecimals, subaccountFromBytes32, subaccountFromHex, subaccountNameBytesToStr, subaccountNameToBytes12, subaccountToBytes32, subaccountToHex, sumBigNumberBy, toBigInt, toBigNumber, toIntegerString, toPrintableObject, toProductEngineType, unpackOrderAppendix, unpackTwapOrderAppendixValue };