@nadohq/shared 0.34.0 → 0.35.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 (286) hide show
  1. package/dist/{WalletNotProvidedError-BmmmAlfH.d.ts → WalletNotProvidedError-D5Bk1Qww.d.ts} +1 -1
  2. package/dist/{WalletNotProvidedError-BmmmAlfH.d.ts.map → WalletNotProvidedError-D5Bk1Qww.d.ts.map} +1 -1
  3. package/dist/{WalletNotProvidedError-BO2HXKke.d.cts → WalletNotProvidedError-h5Su4K7x.d.cts} +1 -1
  4. package/dist/{WalletNotProvidedError-BO2HXKke.d.cts.map → WalletNotProvidedError-h5Su4K7x.d.cts.map} +1 -1
  5. package/dist/{appendixTwapValue-DvZEJMKu.d.cts → appendixTwapValue-CNS7Tjmq.d.cts} +1 -1
  6. package/dist/{appendixTwapValue-DvZEJMKu.d.cts.map → appendixTwapValue-CNS7Tjmq.d.cts.map} +1 -1
  7. package/dist/{appendixTwapValue-Dl8PGFcO.d.ts → appendixTwapValue-DJ_gK_zH.d.ts} +1 -1
  8. package/dist/{appendixTwapValue-Dl8PGFcO.d.ts.map → appendixTwapValue-DJ_gK_zH.d.ts.map} +1 -1
  9. package/dist/{approveDepositAllowance-CDAebo8F.d.cts → approveDepositAllowance-C4q5eBqB.d.cts} +1 -1
  10. package/dist/{approveDepositAllowance-CDAebo8F.d.cts.map → approveDepositAllowance-C4q5eBqB.d.cts.map} +1 -1
  11. package/dist/{approveDepositAllowance-D5gFuiv_.d.ts → approveDepositAllowance-CatTGQsD.d.ts} +1 -1
  12. package/dist/{approveDepositAllowance-D5gFuiv_.d.ts.map → approveDepositAllowance-CatTGQsD.d.ts.map} +1 -1
  13. package/dist/{asyncResult-CFT4nPoy.d.ts → asyncResult-BLLFP1kU.d.ts} +1 -1
  14. package/dist/{asyncResult-CFT4nPoy.d.ts.map → asyncResult-BLLFP1kU.d.ts.map} +1 -1
  15. package/dist/{asyncResult-CaaGPWEO.d.cts → asyncResult-CjnetY6d.d.cts} +1 -1
  16. package/dist/{asyncResult-CaaGPWEO.d.cts.map → asyncResult-CjnetY6d.d.cts.map} +1 -1
  17. package/dist/{balanceValue-Neu6HA0s.d.cts → balanceValue-GaRs3xld.d.cts} +1 -1
  18. package/dist/{balanceValue-Neu6HA0s.d.cts.map → balanceValue-GaRs3xld.d.cts.map} +1 -1
  19. package/dist/{balanceValue-CdhFbL7k.d.ts → balanceValue-toSYv804.d.ts} +1 -1
  20. package/dist/{balanceValue-CdhFbL7k.d.ts.map → balanceValue-toSYv804.d.ts.map} +1 -1
  21. package/dist/{bitMaskValue-B2XMKJOM.d.cts → bitMaskValue-B9gKD-s2.d.cts} +1 -1
  22. package/dist/{bitMaskValue-B2XMKJOM.d.cts.map → bitMaskValue-B9gKD-s2.d.cts.map} +1 -1
  23. package/dist/{bitMaskValue-CYYm6h_1.d.ts → bitMaskValue-CnBOFZJO.d.ts} +1 -1
  24. package/dist/{bitMaskValue-CYYm6h_1.d.ts.map → bitMaskValue-CnBOFZJO.d.ts.map} +1 -1
  25. package/dist/{bytes32-CGLcXBPY.d.ts → bytes32-BbxfxTg5.d.ts} +1 -1
  26. package/dist/{bytes32-CGLcXBPY.d.ts.map → bytes32-BbxfxTg5.d.ts.map} +1 -1
  27. package/dist/{bytes32-B16W-MVm.d.cts → bytes32-D1f6ymZC.d.cts} +1 -1
  28. package/dist/{bytes32-B16W-MVm.d.cts.map → bytes32-D1f6ymZC.d.cts.map} +1 -1
  29. package/dist/{claimAirdropRewards-DSbwauo9.d.ts → claimAirdropRewards-1nkd6vNA.d.ts} +1 -1
  30. package/dist/{claimAirdropRewards-DSbwauo9.d.ts.map → claimAirdropRewards-1nkd6vNA.d.ts.map} +1 -1
  31. package/dist/{claimAirdropRewards-CUpMcs0d.d.cts → claimAirdropRewards-D_2tnS73.d.cts} +1 -1
  32. package/dist/{claimAirdropRewards-CUpMcs0d.d.cts.map → claimAirdropRewards-D_2tnS73.d.cts.map} +1 -1
  33. package/dist/clientType-C5JI-qUr.d.ts +9 -0
  34. package/dist/clientType-C5JI-qUr.d.ts.map +1 -0
  35. package/dist/clientType-DGSb0jD4.d.cts +9 -0
  36. package/dist/clientType-DGSb0jD4.d.cts.map +1 -0
  37. package/dist/consts/clientType.cjs +11 -0
  38. package/dist/consts/clientType.cjs.map +1 -0
  39. package/dist/consts/clientType.d.cts +2 -0
  40. package/dist/consts/clientType.d.ts +2 -0
  41. package/dist/consts/clientType.js +10 -0
  42. package/dist/consts/clientType.js.map +1 -0
  43. package/dist/consts/index.cjs +2 -0
  44. package/dist/consts/index.d.cts +3 -2
  45. package/dist/consts/index.d.ts +3 -2
  46. package/dist/consts/index.js +2 -1
  47. package/dist/consts/productIds.d.cts +1 -1
  48. package/dist/consts/productIds.d.ts +1 -1
  49. package/dist/{createDeterministicLinkedSignerPrivateKey-X-4blavG.d.ts → createDeterministicLinkedSignerPrivateKey-D4e8yf2e.d.ts} +1 -1
  50. package/dist/createDeterministicLinkedSignerPrivateKey-D4e8yf2e.d.ts.map +1 -0
  51. package/dist/{createDeterministicLinkedSignerPrivateKey-BFJnkRTJ.d.cts → createDeterministicLinkedSignerPrivateKey-wB4fNwEc.d.cts} +1 -1
  52. package/dist/createDeterministicLinkedSignerPrivateKey-wB4fNwEc.d.cts.map +1 -0
  53. package/dist/{depositCollateral-BaHpvNUP.d.cts → depositCollateral-BiZtmFJY.d.cts} +1 -1
  54. package/dist/{depositCollateral-BaHpvNUP.d.cts.map → depositCollateral-BiZtmFJY.d.cts.map} +1 -1
  55. package/dist/{depositCollateral-ByOicYI2.d.ts → depositCollateral-ed8PcBbs.d.ts} +1 -1
  56. package/dist/{depositCollateral-ByOicYI2.d.ts.map → depositCollateral-ed8PcBbs.d.ts.map} +1 -1
  57. package/dist/eip712/eip712ValueTypes.d.cts +1 -1
  58. package/dist/eip712/eip712ValueTypes.d.ts +1 -1
  59. package/dist/eip712/getNadoEIP712Domain.d.cts +1 -1
  60. package/dist/eip712/getNadoEIP712Domain.d.ts +1 -1
  61. package/dist/eip712/getNadoEIP712PrimaryType.d.cts +1 -1
  62. package/dist/eip712/getNadoEIP712PrimaryType.d.ts +1 -1
  63. package/dist/eip712/getNadoEIP712Types.d.cts +1 -1
  64. package/dist/eip712/getNadoEIP712Types.d.ts +1 -1
  65. package/dist/eip712/getNadoEIP712Values.d.cts +1 -1
  66. package/dist/eip712/getNadoEIP712Values.d.ts +1 -1
  67. package/dist/eip712/getOrderVerifyingAddress.d.cts +1 -1
  68. package/dist/eip712/getOrderVerifyingAddress.d.ts +1 -1
  69. package/dist/eip712/getSignedTransactionRequest.d.cts +1 -1
  70. package/dist/eip712/getSignedTransactionRequest.d.ts +1 -1
  71. package/dist/eip712/index.d.cts +10 -10
  72. package/dist/eip712/index.d.ts +10 -10
  73. package/dist/eip712/orderDigest.d.cts +1 -1
  74. package/dist/eip712/orderDigest.d.ts +1 -1
  75. package/dist/eip712/signableRequestType.d.cts +1 -1
  76. package/dist/eip712/signableRequestType.d.ts +1 -1
  77. package/dist/eip712/signatureParamTypes.d.cts +1 -1
  78. package/dist/eip712/signatureParamTypes.d.ts +1 -1
  79. package/dist/{eip712ValueTypes-g_dr11Sl.d.cts → eip712ValueTypes-B6cczPL4.d.cts} +2 -2
  80. package/dist/{eip712ValueTypes-g_dr11Sl.d.cts.map → eip712ValueTypes-B6cczPL4.d.cts.map} +1 -1
  81. package/dist/{eip712ValueTypes-BqMcT_Ao.d.ts → eip712ValueTypes-DWRbSrU6.d.ts} +2 -2
  82. package/dist/{eip712ValueTypes-BqMcT_Ao.d.ts.map → eip712ValueTypes-DWRbSrU6.d.ts.map} +1 -1
  83. package/dist/encoding/encoding.d.cts +1 -1
  84. package/dist/encoding/encoding.d.ts +1 -1
  85. package/dist/encoding/index.d.cts +1 -1
  86. package/dist/encoding/index.d.ts +1 -1
  87. package/dist/{encoding-DLU2i7EK.d.cts → encoding-BOXKE9zU.d.cts} +2 -2
  88. package/dist/{encoding-DLU2i7EK.d.cts.map → encoding-BOXKE9zU.d.cts.map} +1 -1
  89. package/dist/{encoding-CqMXeouQ.d.ts → encoding-Cew-9oja.d.ts} +2 -2
  90. package/dist/{encoding-CqMXeouQ.d.ts.map → encoding-Cew-9oja.d.ts.map} +1 -1
  91. package/dist/execute/approveDepositAllowance.d.cts +1 -1
  92. package/dist/execute/approveDepositAllowance.d.ts +1 -1
  93. package/dist/execute/claimAirdropRewards.d.cts +1 -1
  94. package/dist/execute/claimAirdropRewards.d.ts +1 -1
  95. package/dist/execute/depositCollateral.d.cts +1 -1
  96. package/dist/execute/depositCollateral.d.ts +1 -1
  97. package/dist/execute/index.d.cts +3 -3
  98. package/dist/execute/index.d.ts +3 -3
  99. package/dist/getNadoClientTypeHeaders-CDa28EIU.d.ts +12 -0
  100. package/dist/getNadoClientTypeHeaders-CDa28EIU.d.ts.map +1 -0
  101. package/dist/getNadoClientTypeHeaders-D3Nmw3I7.d.cts +12 -0
  102. package/dist/getNadoClientTypeHeaders-D3Nmw3I7.d.cts.map +1 -0
  103. package/dist/{getNadoEIP712Domain-DigwZ9Zl.d.cts → getNadoEIP712Domain-DWkoNKMb.d.cts} +1 -1
  104. package/dist/{getNadoEIP712Domain-DigwZ9Zl.d.cts.map → getNadoEIP712Domain-DWkoNKMb.d.cts.map} +1 -1
  105. package/dist/{getNadoEIP712Domain-zp6D0bND.d.ts → getNadoEIP712Domain-EesdKKUp.d.ts} +1 -1
  106. package/dist/{getNadoEIP712Domain-zp6D0bND.d.ts.map → getNadoEIP712Domain-EesdKKUp.d.ts.map} +1 -1
  107. package/dist/{getNadoEIP712PrimaryType-i-ZN_3U-.d.cts → getNadoEIP712PrimaryType-Bejv3c1B.d.cts} +2 -2
  108. package/dist/{getNadoEIP712PrimaryType-i-ZN_3U-.d.cts.map → getNadoEIP712PrimaryType-Bejv3c1B.d.cts.map} +1 -1
  109. package/dist/{getNadoEIP712PrimaryType-CdCXJDjf.d.ts → getNadoEIP712PrimaryType-D_8Q2HLf.d.ts} +2 -2
  110. package/dist/{getNadoEIP712PrimaryType-CdCXJDjf.d.ts.map → getNadoEIP712PrimaryType-D_8Q2HLf.d.ts.map} +1 -1
  111. package/dist/{getNadoEIP712Types-DobEFsh0.d.cts → getNadoEIP712Types-Dk91ok96.d.cts} +2 -2
  112. package/dist/{getNadoEIP712Types-DobEFsh0.d.cts.map → getNadoEIP712Types-Dk91ok96.d.cts.map} +1 -1
  113. package/dist/{getNadoEIP712Types-RFzasa9X.d.ts → getNadoEIP712Types-Pqw_eS7W.d.ts} +2 -2
  114. package/dist/{getNadoEIP712Types-RFzasa9X.d.ts.map → getNadoEIP712Types-Pqw_eS7W.d.ts.map} +1 -1
  115. package/dist/{getNadoEIP712Values-9F8fm5P4.d.ts → getNadoEIP712Values-BcqdLZIm.d.ts} +3 -3
  116. package/dist/{getNadoEIP712Values-9F8fm5P4.d.ts.map → getNadoEIP712Values-BcqdLZIm.d.ts.map} +1 -1
  117. package/dist/{getNadoEIP712Values-D5ZpK5vA.d.cts → getNadoEIP712Values-DLq9NjdD.d.cts} +3 -3
  118. package/dist/{getNadoEIP712Values-D5ZpK5vA.d.cts.map → getNadoEIP712Values-DLq9NjdD.d.cts.map} +1 -1
  119. package/dist/{getOrderVerifyingAddress-Cs7fPjtv.d.ts → getOrderVerifyingAddress-BucrPmXA.d.ts} +1 -1
  120. package/dist/{getOrderVerifyingAddress-Cs7fPjtv.d.ts.map → getOrderVerifyingAddress-BucrPmXA.d.ts.map} +1 -1
  121. package/dist/{getOrderVerifyingAddress-B-Tsl6J5.d.cts → getOrderVerifyingAddress-DLu7zmfY.d.cts} +1 -1
  122. package/dist/{getOrderVerifyingAddress-B-Tsl6J5.d.cts.map → getOrderVerifyingAddress-DLu7zmfY.d.cts.map} +1 -1
  123. package/dist/{getSignedTransactionRequest-pTAyk-iM.d.ts → getSignedTransactionRequest-BlSnuwHY.d.ts} +2 -2
  124. package/dist/{getSignedTransactionRequest-pTAyk-iM.d.ts.map → getSignedTransactionRequest-BlSnuwHY.d.ts.map} +1 -1
  125. package/dist/{getSignedTransactionRequest-DmfyBo7M.d.cts → getSignedTransactionRequest-DO61MCC5.d.cts} +2 -2
  126. package/dist/{getSignedTransactionRequest-DmfyBo7M.d.cts.map → getSignedTransactionRequest-DO61MCC5.d.cts.map} +1 -1
  127. package/dist/{getValidatedAddress-DysX4VJ4.d.ts → getValidatedAddress-BUja91qP.d.ts} +1 -1
  128. package/dist/getValidatedAddress-BUja91qP.d.ts.map +1 -0
  129. package/dist/{getValidatedAddress-DWiQL3jm.d.cts → getValidatedAddress-BlhlqXfr.d.cts} +1 -1
  130. package/dist/getValidatedAddress-BlhlqXfr.d.cts.map +1 -0
  131. package/dist/{getValidatedHex-BhVxQzGX.d.cts → getValidatedHex-DZ1oKuMy.d.cts} +1 -1
  132. package/dist/getValidatedHex-DZ1oKuMy.d.cts.map +1 -0
  133. package/dist/{getValidatedHex-DCTv7x1f.d.ts → getValidatedHex-VgG_L7ux.d.ts} +1 -1
  134. package/dist/getValidatedHex-VgG_L7ux.d.ts.map +1 -0
  135. package/dist/index.cjs +4 -0
  136. package/dist/index.d.cts +38 -36
  137. package/dist/index.d.ts +38 -36
  138. package/dist/index.js +3 -1
  139. package/dist/{interest-BzvmgBbf.d.ts → interest-C7qa--Ug.d.ts} +1 -1
  140. package/dist/{interest-BzvmgBbf.d.ts.map → interest-C7qa--Ug.d.ts.map} +1 -1
  141. package/dist/{interest-DoIHF90d.d.cts → interest-CJqaxn67.d.cts} +1 -1
  142. package/dist/{interest-DoIHF90d.d.cts.map → interest-CJqaxn67.d.cts.map} +1 -1
  143. package/dist/isWriteableContract-BiNSZzx3.d.cts +10 -0
  144. package/dist/isWriteableContract-BiNSZzx3.d.cts.map +1 -0
  145. package/dist/isWriteableContract-DjxRDGtF.d.ts +10 -0
  146. package/dist/isWriteableContract-DjxRDGtF.d.ts.map +1 -0
  147. package/dist/{mapValues-B3WVCh0N.d.cts → mapValues-CXY2PhZB.d.cts} +1 -1
  148. package/dist/{mapValues-B3WVCh0N.d.cts.map → mapValues-CXY2PhZB.d.cts.map} +1 -1
  149. package/dist/{mapValues-DwstqciQ.d.ts → mapValues-D7iqAHOZ.d.ts} +1 -1
  150. package/dist/{mapValues-DwstqciQ.d.ts.map → mapValues-D7iqAHOZ.d.ts.map} +1 -1
  151. package/dist/{orderDigest-DWIIBqaQ.d.cts → orderDigest-DbpeOiaf.d.cts} +2 -2
  152. package/dist/{orderDigest-DWIIBqaQ.d.cts.map → orderDigest-DbpeOiaf.d.cts.map} +1 -1
  153. package/dist/{orderDigest-kOLcfU6o.d.ts → orderDigest-DiC-SWoU.d.ts} +2 -2
  154. package/dist/{orderDigest-kOLcfU6o.d.ts.map → orderDigest-DiC-SWoU.d.ts.map} +1 -1
  155. package/dist/{orderNonce-Dg0s-Fha.d.cts → orderNonce-CTfv_-KZ.d.cts} +1 -1
  156. package/dist/{orderNonce-Dg0s-Fha.d.cts.map → orderNonce-CTfv_-KZ.d.cts.map} +1 -1
  157. package/dist/{orderNonce-CrWpMXqK.d.ts → orderNonce-D0uz4sJe.d.ts} +1 -1
  158. package/dist/{orderNonce-CrWpMXqK.d.ts.map → orderNonce-D0uz4sJe.d.ts.map} +1 -1
  159. package/dist/{packOrderAppendix-BfvFqpY6.d.cts → packOrderAppendix-CogBpIvf.d.cts} +1 -1
  160. package/dist/{packOrderAppendix-BfvFqpY6.d.cts.map → packOrderAppendix-CogBpIvf.d.cts.map} +1 -1
  161. package/dist/{packOrderAppendix-CZqxrtrH.d.ts → packOrderAppendix-DGcuEwU9.d.ts} +1 -1
  162. package/dist/{packOrderAppendix-CZqxrtrH.d.ts.map → packOrderAppendix-DGcuEwU9.d.ts.map} +1 -1
  163. package/dist/{productIds-D7GN7Lgd.d.ts → productIds-BJ4tQXSm.d.ts} +1 -1
  164. package/dist/productIds-BJ4tQXSm.d.ts.map +1 -0
  165. package/dist/{productIds-DCBn-bgt.d.cts → productIds-Cr-PFBSk.d.cts} +1 -1
  166. package/dist/productIds-Cr-PFBSk.d.cts.map +1 -0
  167. package/dist/{productTypeFilter-V_la6JWu.d.ts → productTypeFilter-DZfwAtvT.d.ts} +1 -1
  168. package/dist/{productTypeFilter-V_la6JWu.d.ts.map → productTypeFilter-DZfwAtvT.d.ts.map} +1 -1
  169. package/dist/{productTypeFilter-CwuVIa5F.d.cts → productTypeFilter-f9g4BkRz.d.cts} +1 -1
  170. package/dist/{productTypeFilter-CwuVIa5F.d.cts.map → productTypeFilter-f9g4BkRz.d.cts.map} +1 -1
  171. package/dist/{recvTime-DlHKCQaT.d.ts → recvTime-CL_idZLw.d.ts} +1 -1
  172. package/dist/recvTime-CL_idZLw.d.ts.map +1 -0
  173. package/dist/{recvTime-dPFrjrqH.d.cts → recvTime-DnaMp37j.d.cts} +1 -1
  174. package/dist/recvTime-DnaMp37j.d.cts.map +1 -0
  175. package/dist/{signableRequestType-CtCvF93j.d.ts → signableRequestType-B-IEDkA3.d.ts} +2 -2
  176. package/dist/{signableRequestType-CtCvF93j.d.ts.map → signableRequestType-B-IEDkA3.d.ts.map} +1 -1
  177. package/dist/{signableRequestType-DRCOSRmf.d.cts → signableRequestType-CrGJVQRc.d.cts} +2 -2
  178. package/dist/{signableRequestType-DRCOSRmf.d.cts.map → signableRequestType-CrGJVQRc.d.cts.map} +1 -1
  179. package/dist/{signatureParamTypes-DYNPFnDk.d.cts → signatureParamTypes-DjMkCp5D.d.cts} +1 -1
  180. package/dist/{signatureParamTypes-DYNPFnDk.d.cts.map → signatureParamTypes-DjMkCp5D.d.cts.map} +1 -1
  181. package/dist/{signatureParamTypes-CkgH5li0.d.ts → signatureParamTypes-uDa_9pfk.d.ts} +1 -1
  182. package/dist/{signatureParamTypes-CkgH5li0.d.ts.map → signatureParamTypes-uDa_9pfk.d.ts.map} +1 -1
  183. package/dist/{time-BQgHQv-v.d.ts → time-CwRQDvZ4.d.ts} +1 -1
  184. package/dist/{time-BQgHQv-v.d.ts.map → time-CwRQDvZ4.d.ts.map} +1 -1
  185. package/dist/{time-RZ5da1jn.d.cts → time-Mb8vgnLE.d.cts} +1 -1
  186. package/dist/{time-RZ5da1jn.d.cts.map → time-Mb8vgnLE.d.cts.map} +1 -1
  187. package/dist/{toPrintableObject-DHygU7wB.d.cts → toPrintableObject-ByoFvQTu.d.cts} +1 -1
  188. package/dist/{toPrintableObject-DHygU7wB.d.cts.map → toPrintableObject-ByoFvQTu.d.cts.map} +1 -1
  189. package/dist/{toPrintableObject-B3b3VKoz.d.ts → toPrintableObject-CxHQ9l9x.d.ts} +1 -1
  190. package/dist/{toPrintableObject-B3b3VKoz.d.ts.map → toPrintableObject-CxHQ9l9x.d.ts.map} +1 -1
  191. package/dist/{types-D8P2ghfC.d.ts → types-CZNaX1KL.d.ts} +1 -1
  192. package/dist/{types-D8P2ghfC.d.ts.map → types-CZNaX1KL.d.ts.map} +1 -1
  193. package/dist/{types-cPN_yXFW.d.cts → types-DkBOmSwM.d.cts} +1 -1
  194. package/dist/{types-cPN_yXFW.d.cts.map → types-DkBOmSwM.d.cts.map} +1 -1
  195. package/dist/{unpackOrderAppendix-DqX3cPtS.d.cts → unpackOrderAppendix-DyaR_1OA.d.cts} +1 -1
  196. package/dist/{unpackOrderAppendix-DqX3cPtS.d.cts.map → unpackOrderAppendix-DyaR_1OA.d.cts.map} +1 -1
  197. package/dist/{unpackOrderAppendix-CyFKLfhF.d.ts → unpackOrderAppendix-YQ0wi7uU.d.ts} +1 -1
  198. package/dist/{unpackOrderAppendix-CyFKLfhF.d.ts.map → unpackOrderAppendix-YQ0wi7uU.d.ts.map} +1 -1
  199. package/dist/utils/asyncResult.d.cts +1 -1
  200. package/dist/utils/asyncResult.d.ts +1 -1
  201. package/dist/utils/balanceValue.d.cts +1 -1
  202. package/dist/utils/balanceValue.d.ts +1 -1
  203. package/dist/utils/bytes32.d.cts +1 -1
  204. package/dist/utils/bytes32.d.ts +1 -1
  205. package/dist/utils/createDeterministicLinkedSignerPrivateKey.d.cts +1 -1
  206. package/dist/utils/createDeterministicLinkedSignerPrivateKey.d.ts +1 -1
  207. package/dist/utils/errors/WalletNotProvidedError.d.cts +1 -1
  208. package/dist/utils/errors/WalletNotProvidedError.d.ts +1 -1
  209. package/dist/utils/errors/index.d.cts +1 -1
  210. package/dist/utils/errors/index.d.ts +1 -1
  211. package/dist/utils/getNadoClientTypeHeaders.cjs +18 -0
  212. package/dist/utils/getNadoClientTypeHeaders.cjs.map +1 -0
  213. package/dist/utils/getNadoClientTypeHeaders.d.cts +2 -0
  214. package/dist/utils/getNadoClientTypeHeaders.d.ts +2 -0
  215. package/dist/utils/getNadoClientTypeHeaders.js +17 -0
  216. package/dist/utils/getNadoClientTypeHeaders.js.map +1 -0
  217. package/dist/utils/getValidatedAddress.d.cts +1 -1
  218. package/dist/utils/getValidatedAddress.d.ts +1 -1
  219. package/dist/utils/getValidatedHex.d.cts +1 -1
  220. package/dist/utils/getValidatedHex.d.ts +1 -1
  221. package/dist/utils/index.cjs +2 -0
  222. package/dist/utils/index.d.cts +22 -21
  223. package/dist/utils/index.d.ts +22 -21
  224. package/dist/utils/index.js +2 -1
  225. package/dist/utils/interest.d.cts +1 -1
  226. package/dist/utils/interest.d.ts +1 -1
  227. package/dist/utils/isWriteableContract.cjs.map +1 -1
  228. package/dist/utils/isWriteableContract.d.cts +1 -1
  229. package/dist/utils/isWriteableContract.d.ts +1 -1
  230. package/dist/utils/isWriteableContract.js.map +1 -1
  231. package/dist/utils/mapValues.d.cts +1 -1
  232. package/dist/utils/mapValues.d.ts +1 -1
  233. package/dist/utils/orders/appendix/appendixTwapValue.d.cts +1 -1
  234. package/dist/utils/orders/appendix/appendixTwapValue.d.ts +1 -1
  235. package/dist/utils/orders/appendix/bitMaskValue.d.cts +1 -1
  236. package/dist/utils/orders/appendix/bitMaskValue.d.ts +1 -1
  237. package/dist/utils/orders/appendix/index.d.cts +5 -5
  238. package/dist/utils/orders/appendix/index.d.ts +5 -5
  239. package/dist/utils/orders/appendix/packOrderAppendix.d.cts +1 -1
  240. package/dist/utils/orders/appendix/packOrderAppendix.d.ts +1 -1
  241. package/dist/utils/orders/appendix/types.d.cts +1 -1
  242. package/dist/utils/orders/appendix/types.d.ts +1 -1
  243. package/dist/utils/orders/appendix/unpackOrderAppendix.d.cts +1 -1
  244. package/dist/utils/orders/appendix/unpackOrderAppendix.d.ts +1 -1
  245. package/dist/utils/orders/index.d.cts +7 -7
  246. package/dist/utils/orders/index.d.ts +7 -7
  247. package/dist/utils/orders/orderNonce.d.cts +1 -1
  248. package/dist/utils/orders/orderNonce.d.ts +1 -1
  249. package/dist/utils/orders/recvTime.d.cts +1 -1
  250. package/dist/utils/orders/recvTime.d.ts +1 -1
  251. package/dist/utils/productTypeFilter.d.cts +1 -1
  252. package/dist/utils/productTypeFilter.d.ts +1 -1
  253. package/dist/utils/time.d.cts +1 -1
  254. package/dist/utils/time.d.ts +1 -1
  255. package/dist/utils/toPrintableObject.d.cts +1 -1
  256. package/dist/utils/toPrintableObject.d.ts +1 -1
  257. package/package.json +2 -2
  258. package/src/consts/clientType.ts +5 -0
  259. package/src/consts/index.ts +1 -0
  260. package/src/utils/getNadoClientTypeHeaders.ts +20 -0
  261. package/src/utils/index.ts +1 -0
  262. package/src/utils/isWriteableContract.ts +4 -7
  263. package/dist/createDeterministicLinkedSignerPrivateKey-BFJnkRTJ.d.cts.map +0 -1
  264. package/dist/createDeterministicLinkedSignerPrivateKey-X-4blavG.d.ts.map +0 -1
  265. package/dist/getValidatedAddress-DWiQL3jm.d.cts.map +0 -1
  266. package/dist/getValidatedAddress-DysX4VJ4.d.ts.map +0 -1
  267. package/dist/getValidatedHex-BhVxQzGX.d.cts.map +0 -1
  268. package/dist/getValidatedHex-DCTv7x1f.d.ts.map +0 -1
  269. package/dist/isWriteableContract-COmW-VlM.d.cts +0 -8
  270. package/dist/isWriteableContract-COmW-VlM.d.cts.map +0 -1
  271. package/dist/isWriteableContract-CrtCZA45.d.ts +0 -8
  272. package/dist/isWriteableContract-CrtCZA45.d.ts.map +0 -1
  273. package/dist/productIds-D7GN7Lgd.d.ts.map +0 -1
  274. package/dist/productIds-DCBn-bgt.d.cts.map +0 -1
  275. package/dist/recvTime-DlHKCQaT.d.ts.map +0 -1
  276. package/dist/recvTime-dPFrjrqH.d.cts.map +0 -1
  277. /package/dist/{index-AjYInbTh2.d.ts → index-B5F3AfVc.d.ts} +0 -0
  278. /package/dist/{index-BJ8-FA6N.d.cts → index-CUPkUUOR.d.ts} +0 -0
  279. /package/dist/{index-CLFDvZ2B.d.cts → index-CwHYpK-f.d.ts} +0 -0
  280. /package/dist/{index-CNuTE0dv.d.ts → index-Cz6N-KeS.d.cts} +0 -0
  281. /package/dist/{index-CmUzJ4E-2.d.cts → index-DSiHnMH2.d.cts} +0 -0
  282. /package/dist/{index-CwSIy_W-.d.cts → index-DUb4iB7z2.d.cts} +0 -0
  283. /package/dist/{index-DADolYsP.d.ts → index-DUsgLc7n2.d.ts} +0 -0
  284. /package/dist/{index-DAwMsCZ3.d.ts → index-DpEKQcoR.d.cts} +0 -0
  285. /package/dist/{index-gxEAO6Ad.d.cts → index-DxSM7VXJ.d.cts} +0 -0
  286. /package/dist/{index-uQcTfU6c.d.ts → index-qM4PwHTs.d.ts} +0 -0
@@ -1,2 +1,2 @@
1
- import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-Neu6HA0s.cjs";
1
+ import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-GaRs3xld.cjs";
2
2
  export { calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcSpotBalanceValue };
@@ -1,2 +1,2 @@
1
- import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-CdhFbL7k.js";
1
+ import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-toSYv804.js";
2
2
  export { calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcSpotBalanceValue };
@@ -1,2 +1,2 @@
1
- import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-B16W-MVm.cjs";
1
+ import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-D1f6ymZC.cjs";
2
2
  export { subaccountFromBytes32, subaccountFromHex, subaccountNameBytesToStr, subaccountNameToBytes12, subaccountToBytes32, subaccountToHex };
@@ -1,2 +1,2 @@
1
- import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-CGLcXBPY.js";
1
+ import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-BbxfxTg5.js";
2
2
  export { subaccountFromBytes32, subaccountFromHex, subaccountNameBytesToStr, subaccountNameToBytes12, subaccountToBytes32, subaccountToHex };
@@ -1,2 +1,2 @@
1
- import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-BFJnkRTJ.cjs";
1
+ import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-wB4fNwEc.cjs";
2
2
  export { createDeterministicLinkedSignerPrivateKey };
@@ -1,2 +1,2 @@
1
- import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-X-4blavG.js";
1
+ import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-D4e8yf2e.js";
2
2
  export { createDeterministicLinkedSignerPrivateKey };
@@ -1,2 +1,2 @@
1
- import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-BO2HXKke.cjs";
1
+ import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-h5Su4K7x.cjs";
2
2
  export { WalletNotProvidedError };
@@ -1,2 +1,2 @@
1
- import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-BmmmAlfH.js";
1
+ import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-D5Bk1Qww.js";
2
2
  export { WalletNotProvidedError };
@@ -1,2 +1,2 @@
1
- import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-BO2HXKke.cjs";
1
+ import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-h5Su4K7x.cjs";
2
2
  export { WalletNotProvidedError };
@@ -1,2 +1,2 @@
1
- import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-BmmmAlfH.js";
1
+ import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-D5Bk1Qww.js";
2
2
  export { WalletNotProvidedError };
@@ -0,0 +1,18 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_consts_clientType = require("../consts/clientType.cjs");
3
+ //#region src/utils/getNadoClientTypeHeaders.ts
4
+ /**
5
+ * Builds the default request headers identifying the calling client. Used by every service client
6
+ * so that all outgoing requests are attributed to a client type.
7
+ *
8
+ * @param clientType - Client type to send. The header is omitted entirely when not given.
9
+ * @returns Headers to apply to all requests made by a service client.
10
+ */
11
+ function getNadoClientTypeHeaders(clientType) {
12
+ if (!clientType) return {};
13
+ return { [require_consts_clientType.NADO_CLIENT_TYPE_HEADER]: clientType };
14
+ }
15
+ //#endregion
16
+ exports.getNadoClientTypeHeaders = getNadoClientTypeHeaders;
17
+
18
+ //# sourceMappingURL=getNadoClientTypeHeaders.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getNadoClientTypeHeaders.cjs","names":["NADO_CLIENT_TYPE_HEADER"],"sources":["../../src/utils/getNadoClientTypeHeaders.ts"],"sourcesContent":["import { NADO_CLIENT_TYPE_HEADER } from '../consts/clientType';\n\n/**\n * Builds the default request headers identifying the calling client. Used by every service client\n * so that all outgoing requests are attributed to a client type.\n *\n * @param clientType - Client type to send. The header is omitted entirely when not given.\n * @returns Headers to apply to all requests made by a service client.\n */\nexport function getNadoClientTypeHeaders(\n clientType?: string,\n): Record<string, string> {\n if (!clientType) {\n return {};\n }\n\n return {\n [NADO_CLIENT_TYPE_HEADER]: clientType,\n };\n}\n"],"mappings":";;;;;;;;;;AASA,SAAgB,yBACd,YACwB;CACxB,IAAI,CAAC,YACH,OAAO,CAAC;CAGV,OAAO,GACJA,0BAAAA,0BAA0B,WAC7B;AACF"}
@@ -0,0 +1,2 @@
1
+ import { t as getNadoClientTypeHeaders } from "../getNadoClientTypeHeaders-D3Nmw3I7.cjs";
2
+ export { getNadoClientTypeHeaders };
@@ -0,0 +1,2 @@
1
+ import { t as getNadoClientTypeHeaders } from "../getNadoClientTypeHeaders-CDa28EIU.js";
2
+ export { getNadoClientTypeHeaders };
@@ -0,0 +1,17 @@
1
+ import { NADO_CLIENT_TYPE_HEADER } from "../consts/clientType.js";
2
+ //#region src/utils/getNadoClientTypeHeaders.ts
3
+ /**
4
+ * Builds the default request headers identifying the calling client. Used by every service client
5
+ * so that all outgoing requests are attributed to a client type.
6
+ *
7
+ * @param clientType - Client type to send. The header is omitted entirely when not given.
8
+ * @returns Headers to apply to all requests made by a service client.
9
+ */
10
+ function getNadoClientTypeHeaders(clientType) {
11
+ if (!clientType) return {};
12
+ return { [NADO_CLIENT_TYPE_HEADER]: clientType };
13
+ }
14
+ //#endregion
15
+ export { getNadoClientTypeHeaders };
16
+
17
+ //# sourceMappingURL=getNadoClientTypeHeaders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getNadoClientTypeHeaders.js","names":[],"sources":["../../src/utils/getNadoClientTypeHeaders.ts"],"sourcesContent":["import { NADO_CLIENT_TYPE_HEADER } from '../consts/clientType';\n\n/**\n * Builds the default request headers identifying the calling client. Used by every service client\n * so that all outgoing requests are attributed to a client type.\n *\n * @param clientType - Client type to send. The header is omitted entirely when not given.\n * @returns Headers to apply to all requests made by a service client.\n */\nexport function getNadoClientTypeHeaders(\n clientType?: string,\n): Record<string, string> {\n if (!clientType) {\n return {};\n }\n\n return {\n [NADO_CLIENT_TYPE_HEADER]: clientType,\n };\n}\n"],"mappings":";;;;;;;;;AASA,SAAgB,yBACd,YACwB;CACxB,IAAI,CAAC,YACH,OAAO,CAAC;CAGV,OAAO,GACJ,0BAA0B,WAC7B;AACF"}
@@ -1,2 +1,2 @@
1
- import { t as getValidatedAddress } from "../getValidatedAddress-DWiQL3jm.cjs";
1
+ import { t as getValidatedAddress } from "../getValidatedAddress-BlhlqXfr.cjs";
2
2
  export { getValidatedAddress };
@@ -1,2 +1,2 @@
1
- import { t as getValidatedAddress } from "../getValidatedAddress-DysX4VJ4.js";
1
+ import { t as getValidatedAddress } from "../getValidatedAddress-BUja91qP.js";
2
2
  export { getValidatedAddress };
@@ -1,2 +1,2 @@
1
- import { t as getValidatedHex } from "../getValidatedHex-BhVxQzGX.cjs";
1
+ import { t as getValidatedHex } from "../getValidatedHex-DZ1oKuMy.cjs";
2
2
  export { getValidatedHex };
@@ -1,2 +1,2 @@
1
- import { t as getValidatedHex } from "../getValidatedHex-DCTv7x1f.js";
1
+ import { t as getValidatedHex } from "../getValidatedHex-VgG_L7ux.js";
2
2
  export { getValidatedHex };
@@ -12,6 +12,7 @@ const require_utils_asyncResult = require("./asyncResult.cjs");
12
12
  const require_utils_balanceValue = require("./balanceValue.cjs");
13
13
  const require_utils_createDeterministicLinkedSignerPrivateKey = require("./createDeterministicLinkedSignerPrivateKey.cjs");
14
14
  const require_utils_errors_WalletNotProvidedError = require("./errors/WalletNotProvidedError.cjs");
15
+ const require_utils_getNadoClientTypeHeaders = require("./getNadoClientTypeHeaders.cjs");
15
16
  const require_utils_getValidatedHex = require("./getValidatedHex.cjs");
16
17
  const require_utils_time = require("./time.cjs");
17
18
  const require_utils_interest = require("./interest.cjs");
@@ -44,6 +45,7 @@ exports.calcUtilizationRatio = require_utils_interest.calcUtilizationRatio;
44
45
  exports.clampBigNumber = require_utils_math_clamp.clampBigNumber;
45
46
  exports.createDeterministicLinkedSignerPrivateKey = require_utils_createDeterministicLinkedSignerPrivateKey.createDeterministicLinkedSignerPrivateKey;
46
47
  exports.getDefaultRecvTime = require_utils_orders_recvTime.getDefaultRecvTime;
48
+ exports.getNadoClientTypeHeaders = require_utils_getNadoClientTypeHeaders.getNadoClientTypeHeaders;
47
49
  exports.getOrderNonce = require_utils_orders_orderNonce.getOrderNonce;
48
50
  exports.getRecvTimeFromOrderNonce = require_utils_orders_orderNonce.getRecvTimeFromOrderNonce;
49
51
  exports.getValidatedAddress = require_utils_getValidatedAddress.getValidatedAddress;
@@ -5,24 +5,25 @@ import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } fro
5
5
  import { t as sumBigNumberBy } from "../sumBigNumberBy-VDqHKxCL.cjs";
6
6
  import { t as toBigInt } from "../toBigInt-rwR3pRam.cjs";
7
7
  import { t as toIntegerString } from "../toIntegerString-89Wn3cp6.cjs";
8
- import { n as asyncResult, t as AsyncResult } from "../asyncResult-CaaGPWEO.cjs";
9
- import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-Neu6HA0s.cjs";
10
- import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-B16W-MVm.cjs";
11
- import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-BFJnkRTJ.cjs";
12
- import { t as WalletNotProvidedError } from "../WalletNotProvidedError-BO2HXKke.cjs";
13
- import { t as getValidatedAddress } from "../getValidatedAddress-DWiQL3jm.cjs";
14
- import { t as getValidatedHex } from "../getValidatedHex-BhVxQzGX.cjs";
15
- import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-DoIHF90d.cjs";
16
- import { t as isWriteableContract } from "../isWriteableContract-COmW-VlM.cjs";
17
- import { t as mapValues } from "../mapValues-B3WVCh0N.cjs";
18
- import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../appendixTwapValue-DvZEJMKu.cjs";
19
- import { t as bitMaskValue } from "../bitMaskValue-B2XMKJOM.cjs";
20
- import { t as packOrderAppendix } from "../packOrderAppendix-BfvFqpY6.cjs";
21
- import { t as PackedOrderAppendixBits } from "../types-cPN_yXFW.cjs";
22
- import { t as unpackOrderAppendix } from "../unpackOrderAppendix-DqX3cPtS.cjs";
23
- import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../orderNonce-Dg0s-Fha.cjs";
24
- import { t as getDefaultRecvTime } from "../recvTime-dPFrjrqH.cjs";
25
- import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-CwuVIa5F.cjs";
26
- import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-RZ5da1jn.cjs";
27
- import { t as toPrintableObject } from "../toPrintableObject-DHygU7wB.cjs";
28
- export { AsyncResult, BigNumberish, BigNumbers, NADO_PRODUCT_DECIMALS, PackedOrderAppendixBits, TimeInSeconds, WalletNotProvidedError, addDecimals, asyncResult, bitMaskValue, calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcRealizedDepositRateForTimeRange, calcSpotBalanceValue, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio, clampBigNumber, createDeterministicLinkedSignerPrivateKey, getDefaultRecvTime, getOrderNonce, getRecvTimeFromOrderNonce, getValidatedAddress, getValidatedHex, isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct, isWriteableContract, mapValues, millisToSeconds, nowInSeconds, packOrderAppendix, packTwapOrderAppendixValue, removeDecimals, subaccountFromBytes32, subaccountFromHex, subaccountNameBytesToStr, subaccountNameToBytes12, subaccountToBytes32, subaccountToHex, sumBigNumberBy, toBigInt, toBigNumber, toIntegerString, toPrintableObject, unpackOrderAppendix, unpackTwapOrderAppendixValue };
8
+ import { n as asyncResult, t as AsyncResult } from "../asyncResult-CjnetY6d.cjs";
9
+ import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-GaRs3xld.cjs";
10
+ import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-D1f6ymZC.cjs";
11
+ import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-wB4fNwEc.cjs";
12
+ import { t as WalletNotProvidedError } from "../WalletNotProvidedError-h5Su4K7x.cjs";
13
+ import { t as getNadoClientTypeHeaders } from "../getNadoClientTypeHeaders-D3Nmw3I7.cjs";
14
+ import { t as getValidatedAddress } from "../getValidatedAddress-BlhlqXfr.cjs";
15
+ import { t as getValidatedHex } from "../getValidatedHex-DZ1oKuMy.cjs";
16
+ import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-CJqaxn67.cjs";
17
+ import { t as isWriteableContract } from "../isWriteableContract-BiNSZzx3.cjs";
18
+ import { t as mapValues } from "../mapValues-CXY2PhZB.cjs";
19
+ import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../appendixTwapValue-CNS7Tjmq.cjs";
20
+ import { t as bitMaskValue } from "../bitMaskValue-B9gKD-s2.cjs";
21
+ import { t as packOrderAppendix } from "../packOrderAppendix-CogBpIvf.cjs";
22
+ import { t as PackedOrderAppendixBits } from "../types-DkBOmSwM.cjs";
23
+ import { t as unpackOrderAppendix } from "../unpackOrderAppendix-DyaR_1OA.cjs";
24
+ import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../orderNonce-CTfv_-KZ.cjs";
25
+ import { t as getDefaultRecvTime } from "../recvTime-DnaMp37j.cjs";
26
+ import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-f9g4BkRz.cjs";
27
+ import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-Mb8vgnLE.cjs";
28
+ import { t as toPrintableObject } from "../toPrintableObject-ByoFvQTu.cjs";
29
+ export { AsyncResult, BigNumberish, BigNumbers, NADO_PRODUCT_DECIMALS, PackedOrderAppendixBits, TimeInSeconds, WalletNotProvidedError, addDecimals, asyncResult, bitMaskValue, calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcRealizedDepositRateForTimeRange, calcSpotBalanceValue, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio, clampBigNumber, createDeterministicLinkedSignerPrivateKey, getDefaultRecvTime, getNadoClientTypeHeaders, getOrderNonce, getRecvTimeFromOrderNonce, getValidatedAddress, getValidatedHex, isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct, isWriteableContract, mapValues, millisToSeconds, nowInSeconds, packOrderAppendix, packTwapOrderAppendixValue, removeDecimals, subaccountFromBytes32, subaccountFromHex, subaccountNameBytesToStr, subaccountNameToBytes12, subaccountToBytes32, subaccountToHex, sumBigNumberBy, toBigInt, toBigNumber, toIntegerString, toPrintableObject, unpackOrderAppendix, unpackTwapOrderAppendixValue };
@@ -5,24 +5,25 @@ import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } fro
5
5
  import { t as sumBigNumberBy } from "../sumBigNumberBy-DvRQv-qH.js";
6
6
  import { t as toBigInt } from "../toBigInt-DmsDdQeF.js";
7
7
  import { t as toIntegerString } from "../toIntegerString-CtEX9m8u.js";
8
- import { n as asyncResult, t as AsyncResult } from "../asyncResult-CFT4nPoy.js";
9
- import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-CdhFbL7k.js";
10
- import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-CGLcXBPY.js";
11
- import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-X-4blavG.js";
12
- import { t as WalletNotProvidedError } from "../WalletNotProvidedError-BmmmAlfH.js";
13
- import { t as getValidatedAddress } from "../getValidatedAddress-DysX4VJ4.js";
14
- import { t as getValidatedHex } from "../getValidatedHex-DCTv7x1f.js";
15
- import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-BzvmgBbf.js";
16
- import { t as isWriteableContract } from "../isWriteableContract-CrtCZA45.js";
17
- import { t as mapValues } from "../mapValues-DwstqciQ.js";
18
- import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../appendixTwapValue-Dl8PGFcO.js";
19
- import { t as bitMaskValue } from "../bitMaskValue-CYYm6h_1.js";
20
- import { t as packOrderAppendix } from "../packOrderAppendix-CZqxrtrH.js";
21
- import { t as PackedOrderAppendixBits } from "../types-D8P2ghfC.js";
22
- import { t as unpackOrderAppendix } from "../unpackOrderAppendix-CyFKLfhF.js";
23
- import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../orderNonce-CrWpMXqK.js";
24
- import { t as getDefaultRecvTime } from "../recvTime-DlHKCQaT.js";
25
- import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-V_la6JWu.js";
26
- import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-BQgHQv-v.js";
27
- import { t as toPrintableObject } from "../toPrintableObject-B3b3VKoz.js";
28
- export { AsyncResult, BigNumberish, BigNumbers, NADO_PRODUCT_DECIMALS, PackedOrderAppendixBits, TimeInSeconds, WalletNotProvidedError, addDecimals, asyncResult, bitMaskValue, calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcRealizedDepositRateForTimeRange, calcSpotBalanceValue, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio, clampBigNumber, createDeterministicLinkedSignerPrivateKey, getDefaultRecvTime, getOrderNonce, getRecvTimeFromOrderNonce, getValidatedAddress, getValidatedHex, isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct, isWriteableContract, mapValues, millisToSeconds, nowInSeconds, packOrderAppendix, packTwapOrderAppendixValue, removeDecimals, subaccountFromBytes32, subaccountFromHex, subaccountNameBytesToStr, subaccountNameToBytes12, subaccountToBytes32, subaccountToHex, sumBigNumberBy, toBigInt, toBigNumber, toIntegerString, toPrintableObject, unpackOrderAppendix, unpackTwapOrderAppendixValue };
8
+ import { n as asyncResult, t as AsyncResult } from "../asyncResult-BLLFP1kU.js";
9
+ import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-toSYv804.js";
10
+ import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-BbxfxTg5.js";
11
+ import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-D4e8yf2e.js";
12
+ import { t as WalletNotProvidedError } from "../WalletNotProvidedError-D5Bk1Qww.js";
13
+ import { t as getNadoClientTypeHeaders } from "../getNadoClientTypeHeaders-CDa28EIU.js";
14
+ import { t as getValidatedAddress } from "../getValidatedAddress-BUja91qP.js";
15
+ import { t as getValidatedHex } from "../getValidatedHex-VgG_L7ux.js";
16
+ import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-C7qa--Ug.js";
17
+ import { t as isWriteableContract } from "../isWriteableContract-DjxRDGtF.js";
18
+ import { t as mapValues } from "../mapValues-D7iqAHOZ.js";
19
+ import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../appendixTwapValue-DJ_gK_zH.js";
20
+ import { t as bitMaskValue } from "../bitMaskValue-CnBOFZJO.js";
21
+ import { t as packOrderAppendix } from "../packOrderAppendix-DGcuEwU9.js";
22
+ import { t as PackedOrderAppendixBits } from "../types-CZNaX1KL.js";
23
+ import { t as unpackOrderAppendix } from "../unpackOrderAppendix-YQ0wi7uU.js";
24
+ import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../orderNonce-D0uz4sJe.js";
25
+ import { t as getDefaultRecvTime } from "../recvTime-CL_idZLw.js";
26
+ import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-DZfwAtvT.js";
27
+ import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-CwRQDvZ4.js";
28
+ import { t as toPrintableObject } from "../toPrintableObject-CxHQ9l9x.js";
29
+ export { AsyncResult, BigNumberish, BigNumbers, NADO_PRODUCT_DECIMALS, PackedOrderAppendixBits, TimeInSeconds, WalletNotProvidedError, addDecimals, asyncResult, bitMaskValue, calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcRealizedDepositRateForTimeRange, calcSpotBalanceValue, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio, clampBigNumber, createDeterministicLinkedSignerPrivateKey, getDefaultRecvTime, getNadoClientTypeHeaders, getOrderNonce, getRecvTimeFromOrderNonce, getValidatedAddress, getValidatedHex, isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct, isWriteableContract, mapValues, millisToSeconds, nowInSeconds, packOrderAppendix, packTwapOrderAppendixValue, removeDecimals, subaccountFromBytes32, subaccountFromHex, subaccountNameBytesToStr, subaccountNameToBytes12, subaccountToBytes32, subaccountToHex, sumBigNumberBy, toBigInt, toBigNumber, toIntegerString, toPrintableObject, unpackOrderAppendix, unpackTwapOrderAppendixValue };
@@ -11,6 +11,7 @@ import { asyncResult } from "./asyncResult.js";
11
11
  import { calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcSpotBalanceValue } from "./balanceValue.js";
12
12
  import { createDeterministicLinkedSignerPrivateKey } from "./createDeterministicLinkedSignerPrivateKey.js";
13
13
  import { WalletNotProvidedError } from "./errors/WalletNotProvidedError.js";
14
+ import { getNadoClientTypeHeaders } from "./getNadoClientTypeHeaders.js";
14
15
  import { getValidatedHex } from "./getValidatedHex.js";
15
16
  import { TimeInSeconds, millisToSeconds, nowInSeconds } from "./time.js";
16
17
  import { calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcRealizedDepositRateForTimeRange, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio } from "./interest.js";
@@ -24,4 +25,4 @@ import { getDefaultRecvTime } from "./orders/recvTime.js";
24
25
  import { getOrderNonce, getRecvTimeFromOrderNonce } from "./orders/orderNonce.js";
25
26
  import { isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct } from "./productTypeFilter.js";
26
27
  import { toPrintableObject } from "./toPrintableObject.js";
27
- export { BigNumbers, NADO_PRODUCT_DECIMALS, TimeInSeconds, WalletNotProvidedError, addDecimals, asyncResult, bitMaskValue, calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcRealizedDepositRateForTimeRange, calcSpotBalanceValue, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio, clampBigNumber, createDeterministicLinkedSignerPrivateKey, getDefaultRecvTime, getOrderNonce, getRecvTimeFromOrderNonce, getValidatedAddress, getValidatedHex, isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct, isWriteableContract, mapValues, millisToSeconds, nowInSeconds, packOrderAppendix, packTwapOrderAppendixValue, removeDecimals, subaccountFromBytes32, subaccountFromHex, subaccountNameBytesToStr, subaccountNameToBytes12, subaccountToBytes32, subaccountToHex, sumBigNumberBy, toBigInt, toBigNumber, toIntegerString, toPrintableObject, unpackOrderAppendix, unpackTwapOrderAppendixValue };
28
+ export { BigNumbers, NADO_PRODUCT_DECIMALS, TimeInSeconds, WalletNotProvidedError, addDecimals, asyncResult, bitMaskValue, calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcRealizedDepositRateForTimeRange, calcSpotBalanceValue, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio, clampBigNumber, createDeterministicLinkedSignerPrivateKey, getDefaultRecvTime, getNadoClientTypeHeaders, getOrderNonce, getRecvTimeFromOrderNonce, getValidatedAddress, getValidatedHex, isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct, isWriteableContract, mapValues, millisToSeconds, nowInSeconds, packOrderAppendix, packTwapOrderAppendixValue, removeDecimals, subaccountFromBytes32, subaccountFromHex, subaccountNameBytesToStr, subaccountNameToBytes12, subaccountToBytes32, subaccountToHex, sumBigNumberBy, toBigInt, toBigNumber, toIntegerString, toPrintableObject, unpackOrderAppendix, unpackTwapOrderAppendixValue };
@@ -1,2 +1,2 @@
1
- import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-DoIHF90d.cjs";
1
+ import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-CJqaxn67.cjs";
2
2
  export { calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcRealizedDepositRateForTimeRange, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio };
@@ -1,2 +1,2 @@
1
- import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-BzvmgBbf.js";
1
+ import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-C7qa--Ug.js";
2
2
  export { calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcRealizedDepositRateForTimeRange, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio };
@@ -1 +1 @@
1
- {"version":3,"file":"isWriteableContract.cjs","names":[],"sources":["../../src/utils/isWriteableContract.ts"],"sourcesContent":["import { Abi } from 'viem';\nimport {\n ContractInstance,\n WriteableContractInstance,\n} from '../types/viemTypes';\n\nexport function isWriteableContract<TAbi extends Abi>(\n contract: ContractInstance<TAbi>,\n): contract is WriteableContractInstance<TAbi> {\n return 'write' in contract;\n}\n"],"mappings":";;AAMA,SAAgB,oBACd,UAC6C;CAC7C,OAAO,WAAW;AACpB"}
1
+ {"version":3,"file":"isWriteableContract.cjs","names":[],"sources":["../../src/utils/isWriteableContract.ts"],"sourcesContent":["import { Abi } from 'viem';\nimport { WriteableContractInstance } from '../types/viemTypes';\n\nexport function isWriteableContract<T extends { abi: Abi }>(\n contract: T,\n): contract is T & WriteableContractInstance<T['abi']> {\n return 'write' in contract;\n}\n"],"mappings":";;AAGA,SAAgB,oBACd,UACqD;CACrD,OAAO,WAAW;AACpB"}
@@ -1,2 +1,2 @@
1
- import { t as isWriteableContract } from "../isWriteableContract-COmW-VlM.cjs";
1
+ import { t as isWriteableContract } from "../isWriteableContract-BiNSZzx3.cjs";
2
2
  export { isWriteableContract };
@@ -1,2 +1,2 @@
1
- import { t as isWriteableContract } from "../isWriteableContract-CrtCZA45.js";
1
+ import { t as isWriteableContract } from "../isWriteableContract-DjxRDGtF.js";
2
2
  export { isWriteableContract };
@@ -1 +1 @@
1
- {"version":3,"file":"isWriteableContract.js","names":[],"sources":["../../src/utils/isWriteableContract.ts"],"sourcesContent":["import { Abi } from 'viem';\nimport {\n ContractInstance,\n WriteableContractInstance,\n} from '../types/viemTypes';\n\nexport function isWriteableContract<TAbi extends Abi>(\n contract: ContractInstance<TAbi>,\n): contract is WriteableContractInstance<TAbi> {\n return 'write' in contract;\n}\n"],"mappings":";AAMA,SAAgB,oBACd,UAC6C;CAC7C,OAAO,WAAW;AACpB"}
1
+ {"version":3,"file":"isWriteableContract.js","names":[],"sources":["../../src/utils/isWriteableContract.ts"],"sourcesContent":["import { Abi } from 'viem';\nimport { WriteableContractInstance } from '../types/viemTypes';\n\nexport function isWriteableContract<T extends { abi: Abi }>(\n contract: T,\n): contract is T & WriteableContractInstance<T['abi']> {\n return 'write' in contract;\n}\n"],"mappings":";AAGA,SAAgB,oBACd,UACqD;CACrD,OAAO,WAAW;AACpB"}
@@ -1,2 +1,2 @@
1
- import { t as mapValues } from "../mapValues-B3WVCh0N.cjs";
1
+ import { t as mapValues } from "../mapValues-CXY2PhZB.cjs";
2
2
  export { mapValues };
@@ -1,2 +1,2 @@
1
- import { t as mapValues } from "../mapValues-DwstqciQ.js";
1
+ import { t as mapValues } from "../mapValues-D7iqAHOZ.js";
2
2
  export { mapValues };
@@ -1,2 +1,2 @@
1
- import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-DvZEJMKu.cjs";
1
+ import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-CNS7Tjmq.cjs";
2
2
  export { packTwapOrderAppendixValue, unpackTwapOrderAppendixValue };
@@ -1,2 +1,2 @@
1
- import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-Dl8PGFcO.js";
1
+ import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-DJ_gK_zH.js";
2
2
  export { packTwapOrderAppendixValue, unpackTwapOrderAppendixValue };
@@ -1,2 +1,2 @@
1
- import { t as bitMaskValue } from "../../../bitMaskValue-B2XMKJOM.cjs";
1
+ import { t as bitMaskValue } from "../../../bitMaskValue-B9gKD-s2.cjs";
2
2
  export { bitMaskValue };
@@ -1,2 +1,2 @@
1
- import { t as bitMaskValue } from "../../../bitMaskValue-CYYm6h_1.js";
1
+ import { t as bitMaskValue } from "../../../bitMaskValue-CnBOFZJO.js";
2
2
  export { bitMaskValue };
@@ -1,6 +1,6 @@
1
- import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-DvZEJMKu.cjs";
2
- import { t as bitMaskValue } from "../../../bitMaskValue-B2XMKJOM.cjs";
3
- import { t as packOrderAppendix } from "../../../packOrderAppendix-BfvFqpY6.cjs";
4
- import { t as PackedOrderAppendixBits } from "../../../types-cPN_yXFW.cjs";
5
- import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-DqX3cPtS.cjs";
1
+ import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-CNS7Tjmq.cjs";
2
+ import { t as bitMaskValue } from "../../../bitMaskValue-B9gKD-s2.cjs";
3
+ import { t as packOrderAppendix } from "../../../packOrderAppendix-CogBpIvf.cjs";
4
+ import { t as PackedOrderAppendixBits } from "../../../types-DkBOmSwM.cjs";
5
+ import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-DyaR_1OA.cjs";
6
6
  export { PackedOrderAppendixBits, bitMaskValue, packOrderAppendix, packTwapOrderAppendixValue, unpackOrderAppendix, unpackTwapOrderAppendixValue };
@@ -1,6 +1,6 @@
1
- import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-Dl8PGFcO.js";
2
- import { t as bitMaskValue } from "../../../bitMaskValue-CYYm6h_1.js";
3
- import { t as packOrderAppendix } from "../../../packOrderAppendix-CZqxrtrH.js";
4
- import { t as PackedOrderAppendixBits } from "../../../types-D8P2ghfC.js";
5
- import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-CyFKLfhF.js";
1
+ import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-DJ_gK_zH.js";
2
+ import { t as bitMaskValue } from "../../../bitMaskValue-CnBOFZJO.js";
3
+ import { t as packOrderAppendix } from "../../../packOrderAppendix-DGcuEwU9.js";
4
+ import { t as PackedOrderAppendixBits } from "../../../types-CZNaX1KL.js";
5
+ import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-YQ0wi7uU.js";
6
6
  export { PackedOrderAppendixBits, bitMaskValue, packOrderAppendix, packTwapOrderAppendixValue, unpackOrderAppendix, unpackTwapOrderAppendixValue };
@@ -1,2 +1,2 @@
1
- import { t as packOrderAppendix } from "../../../packOrderAppendix-BfvFqpY6.cjs";
1
+ import { t as packOrderAppendix } from "../../../packOrderAppendix-CogBpIvf.cjs";
2
2
  export { packOrderAppendix };
@@ -1,2 +1,2 @@
1
- import { t as packOrderAppendix } from "../../../packOrderAppendix-CZqxrtrH.js";
1
+ import { t as packOrderAppendix } from "../../../packOrderAppendix-DGcuEwU9.js";
2
2
  export { packOrderAppendix };
@@ -1,2 +1,2 @@
1
- import { t as PackedOrderAppendixBits } from "../../../types-cPN_yXFW.cjs";
1
+ import { t as PackedOrderAppendixBits } from "../../../types-DkBOmSwM.cjs";
2
2
  export { PackedOrderAppendixBits };
@@ -1,2 +1,2 @@
1
- import { t as PackedOrderAppendixBits } from "../../../types-D8P2ghfC.js";
1
+ import { t as PackedOrderAppendixBits } from "../../../types-CZNaX1KL.js";
2
2
  export { PackedOrderAppendixBits };
@@ -1,2 +1,2 @@
1
- import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-DqX3cPtS.cjs";
1
+ import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-DyaR_1OA.cjs";
2
2
  export { unpackOrderAppendix };
@@ -1,2 +1,2 @@
1
- import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-CyFKLfhF.js";
1
+ import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-YQ0wi7uU.js";
2
2
  export { unpackOrderAppendix };
@@ -1,8 +1,8 @@
1
- import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../appendixTwapValue-DvZEJMKu.cjs";
2
- import { t as bitMaskValue } from "../../bitMaskValue-B2XMKJOM.cjs";
3
- import { t as packOrderAppendix } from "../../packOrderAppendix-BfvFqpY6.cjs";
4
- import { t as PackedOrderAppendixBits } from "../../types-cPN_yXFW.cjs";
5
- import { t as unpackOrderAppendix } from "../../unpackOrderAppendix-DqX3cPtS.cjs";
6
- import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-Dg0s-Fha.cjs";
7
- import { t as getDefaultRecvTime } from "../../recvTime-dPFrjrqH.cjs";
1
+ import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../appendixTwapValue-CNS7Tjmq.cjs";
2
+ import { t as bitMaskValue } from "../../bitMaskValue-B9gKD-s2.cjs";
3
+ import { t as packOrderAppendix } from "../../packOrderAppendix-CogBpIvf.cjs";
4
+ import { t as PackedOrderAppendixBits } from "../../types-DkBOmSwM.cjs";
5
+ import { t as unpackOrderAppendix } from "../../unpackOrderAppendix-DyaR_1OA.cjs";
6
+ import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-CTfv_-KZ.cjs";
7
+ import { t as getDefaultRecvTime } from "../../recvTime-DnaMp37j.cjs";
8
8
  export { PackedOrderAppendixBits, bitMaskValue, getDefaultRecvTime, getOrderNonce, getRecvTimeFromOrderNonce, packOrderAppendix, packTwapOrderAppendixValue, unpackOrderAppendix, unpackTwapOrderAppendixValue };
@@ -1,8 +1,8 @@
1
- import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../appendixTwapValue-Dl8PGFcO.js";
2
- import { t as bitMaskValue } from "../../bitMaskValue-CYYm6h_1.js";
3
- import { t as packOrderAppendix } from "../../packOrderAppendix-CZqxrtrH.js";
4
- import { t as PackedOrderAppendixBits } from "../../types-D8P2ghfC.js";
5
- import { t as unpackOrderAppendix } from "../../unpackOrderAppendix-CyFKLfhF.js";
6
- import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-CrWpMXqK.js";
7
- import { t as getDefaultRecvTime } from "../../recvTime-DlHKCQaT.js";
1
+ import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../appendixTwapValue-DJ_gK_zH.js";
2
+ import { t as bitMaskValue } from "../../bitMaskValue-CnBOFZJO.js";
3
+ import { t as packOrderAppendix } from "../../packOrderAppendix-DGcuEwU9.js";
4
+ import { t as PackedOrderAppendixBits } from "../../types-CZNaX1KL.js";
5
+ import { t as unpackOrderAppendix } from "../../unpackOrderAppendix-YQ0wi7uU.js";
6
+ import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-D0uz4sJe.js";
7
+ import { t as getDefaultRecvTime } from "../../recvTime-CL_idZLw.js";
8
8
  export { PackedOrderAppendixBits, bitMaskValue, getDefaultRecvTime, getOrderNonce, getRecvTimeFromOrderNonce, packOrderAppendix, packTwapOrderAppendixValue, unpackOrderAppendix, unpackTwapOrderAppendixValue };
@@ -1,2 +1,2 @@
1
- import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-Dg0s-Fha.cjs";
1
+ import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-CTfv_-KZ.cjs";
2
2
  export { getOrderNonce, getRecvTimeFromOrderNonce };
@@ -1,2 +1,2 @@
1
- import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-CrWpMXqK.js";
1
+ import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-D0uz4sJe.js";
2
2
  export { getOrderNonce, getRecvTimeFromOrderNonce };
@@ -1,2 +1,2 @@
1
- import { t as getDefaultRecvTime } from "../../recvTime-dPFrjrqH.cjs";
1
+ import { t as getDefaultRecvTime } from "../../recvTime-DnaMp37j.cjs";
2
2
  export { getDefaultRecvTime };
@@ -1,2 +1,2 @@
1
- import { t as getDefaultRecvTime } from "../../recvTime-DlHKCQaT.js";
1
+ import { t as getDefaultRecvTime } from "../../recvTime-CL_idZLw.js";
2
2
  export { getDefaultRecvTime };
@@ -1,2 +1,2 @@
1
- import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-CwuVIa5F.cjs";
1
+ import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-f9g4BkRz.cjs";
2
2
  export { isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct };
@@ -1,2 +1,2 @@
1
- import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-V_la6JWu.js";
1
+ import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-DZfwAtvT.js";
2
2
  export { isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct };
@@ -1,2 +1,2 @@
1
- import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-RZ5da1jn.cjs";
1
+ import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-Mb8vgnLE.cjs";
2
2
  export { TimeInSeconds, millisToSeconds, nowInSeconds };
@@ -1,2 +1,2 @@
1
- import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-BQgHQv-v.js";
1
+ import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-CwRQDvZ4.js";
2
2
  export { TimeInSeconds, millisToSeconds, nowInSeconds };
@@ -1,2 +1,2 @@
1
- import { t as toPrintableObject } from "../toPrintableObject-DHygU7wB.cjs";
1
+ import { t as toPrintableObject } from "../toPrintableObject-ByoFvQTu.cjs";
2
2
  export { toPrintableObject };
@@ -1,2 +1,2 @@
1
- import { t as toPrintableObject } from "../toPrintableObject-B3b3VKoz.js";
1
+ import { t as toPrintableObject } from "../toPrintableObject-CxHQ9l9x.js";
2
2
  export { toPrintableObject };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadohq/shared",
3
- "version": "0.34.0",
3
+ "version": "0.35.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "Shared utilities, types, and contract helpers for Nado SDK",
@@ -52,5 +52,5 @@
52
52
  "bignumber.js": "11.1.1",
53
53
  "viem": "2.52.0"
54
54
  },
55
- "gitHead": "a8dd2f31219463c5a4565ee535064ec2e2bdfb6b"
55
+ "gitHead": "232349cb0f432b024dab1b1c623e8ad3b74b8f85"
56
56
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Request header carrying the client type of the calling client, allowing the backend to attribute
3
+ * traffic to the surface that produced it.
4
+ */
5
+ export const NADO_CLIENT_TYPE_HEADER = 'x-nado-client-type';
@@ -1,2 +1,3 @@
1
1
  export * from './chainEnvToChain';
2
+ export * from './clientType';
2
3
  export * from './productIds';
@@ -0,0 +1,20 @@
1
+ import { NADO_CLIENT_TYPE_HEADER } from '../consts/clientType';
2
+
3
+ /**
4
+ * Builds the default request headers identifying the calling client. Used by every service client
5
+ * so that all outgoing requests are attributed to a client type.
6
+ *
7
+ * @param clientType - Client type to send. The header is omitted entirely when not given.
8
+ * @returns Headers to apply to all requests made by a service client.
9
+ */
10
+ export function getNadoClientTypeHeaders(
11
+ clientType?: string,
12
+ ): Record<string, string> {
13
+ if (!clientType) {
14
+ return {};
15
+ }
16
+
17
+ return {
18
+ [NADO_CLIENT_TYPE_HEADER]: clientType,
19
+ };
20
+ }
@@ -3,6 +3,7 @@ export * from './balanceValue';
3
3
  export * from './bytes32';
4
4
  export * from './createDeterministicLinkedSignerPrivateKey';
5
5
  export * from './errors';
6
+ export * from './getNadoClientTypeHeaders';
6
7
  export * from './getValidatedAddress';
7
8
  export * from './getValidatedHex';
8
9
  export * from './interest';
@@ -1,11 +1,8 @@
1
1
  import { Abi } from 'viem';
2
- import {
3
- ContractInstance,
4
- WriteableContractInstance,
5
- } from '../types/viemTypes';
2
+ import { WriteableContractInstance } from '../types/viemTypes';
6
3
 
7
- export function isWriteableContract<TAbi extends Abi>(
8
- contract: ContractInstance<TAbi>,
9
- ): contract is WriteableContractInstance<TAbi> {
4
+ export function isWriteableContract<T extends { abi: Abi }>(
5
+ contract: T,
6
+ ): contract is T & WriteableContractInstance<T['abi']> {
10
7
  return 'write' in contract;
11
8
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"createDeterministicLinkedSignerPrivateKey-BFJnkRTJ.d.cts","names":[],"sources":["../src/utils/src/utils/createDeterministicLinkedSignerPrivateKey.ts"],"mappings":";;;;UAMU,MAAA,SAAe,UAAU;EACjC,YAAA,EAAc,uBAAA;EACd,OAAA;EACA,eAAA;AAAA;;;;;;;;iBAUoB,yCAAA,CACpB,MAAA,EAAQ,MAAA,GAAM,OAAA"}