@nadohq/shared 0.26.0 → 0.27.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/README.md +0 -8
  2. package/dist/{WalletNotProvidedError-BFEw-O_V.d.cts → WalletNotProvidedError-BEoW-nA1.d.cts} +1 -1
  3. package/dist/{WalletNotProvidedError-BFEw-O_V.d.cts.map → WalletNotProvidedError-BEoW-nA1.d.cts.map} +1 -1
  4. package/dist/{WalletNotProvidedError-B7hy83Dp.d.ts → WalletNotProvidedError-v1a959kl.d.ts} +1 -1
  5. package/dist/{WalletNotProvidedError-B7hy83Dp.d.ts.map → WalletNotProvidedError-v1a959kl.d.ts.map} +1 -1
  6. package/dist/{appendixTwapValue-2e-BBSSp.d.cts → appendixTwapValue-DIqDV7Z7.d.cts} +1 -1
  7. package/dist/{appendixTwapValue-2e-BBSSp.d.cts.map → appendixTwapValue-DIqDV7Z7.d.cts.map} +1 -1
  8. package/dist/{appendixTwapValue-D5Fv_hF5.d.ts → appendixTwapValue-DPsC1hXX.d.ts} +1 -1
  9. package/dist/{appendixTwapValue-D5Fv_hF5.d.ts.map → appendixTwapValue-DPsC1hXX.d.ts.map} +1 -1
  10. package/dist/{approveDepositAllowance-DzLfrUa1.d.cts → approveDepositAllowance-BbqDck6c.d.cts} +1 -1
  11. package/dist/{approveDepositAllowance-DzLfrUa1.d.cts.map → approveDepositAllowance-BbqDck6c.d.cts.map} +1 -1
  12. package/dist/{approveDepositAllowance-Dc7stdrU.d.ts → approveDepositAllowance-ChasXUS7.d.ts} +1 -1
  13. package/dist/{approveDepositAllowance-Dc7stdrU.d.ts.map → approveDepositAllowance-ChasXUS7.d.ts.map} +1 -1
  14. package/dist/{asyncResult-D-rEUypp.d.cts → asyncResult-B8ly8lP_.d.cts} +1 -1
  15. package/dist/{asyncResult-D-rEUypp.d.cts.map → asyncResult-B8ly8lP_.d.cts.map} +1 -1
  16. package/dist/{asyncResult-Cs02Ws6J.d.ts → asyncResult-CrfiRFh5.d.ts} +1 -1
  17. package/dist/{asyncResult-Cs02Ws6J.d.ts.map → asyncResult-CrfiRFh5.d.ts.map} +1 -1
  18. package/dist/{balanceValue-BHDw2fCR.d.cts → balanceValue-CT4Q7W0T.d.cts} +1 -1
  19. package/dist/{balanceValue-BHDw2fCR.d.cts.map → balanceValue-CT4Q7W0T.d.cts.map} +1 -1
  20. package/dist/{balanceValue-mNCg2O57.d.ts → balanceValue-bkwkBhFu.d.ts} +1 -1
  21. package/dist/{balanceValue-mNCg2O57.d.ts.map → balanceValue-bkwkBhFu.d.ts.map} +1 -1
  22. package/dist/{bitMaskValue-CWv12B9a.d.cts → bitMaskValue-CDz7vtPM.d.cts} +1 -1
  23. package/dist/{bitMaskValue-CWv12B9a.d.cts.map → bitMaskValue-CDz7vtPM.d.cts.map} +1 -1
  24. package/dist/{bitMaskValue-rhaIF9Xj.d.ts → bitMaskValue-qyWUOgv1.d.ts} +1 -1
  25. package/dist/{bitMaskValue-rhaIF9Xj.d.ts.map → bitMaskValue-qyWUOgv1.d.ts.map} +1 -1
  26. package/dist/{bytes32-gz7vDEim.d.ts → bytes32-D-tn3XZy.d.ts} +2 -2
  27. package/dist/{bytes32-gz7vDEim.d.ts.map → bytes32-D-tn3XZy.d.ts.map} +1 -1
  28. package/dist/{bytes32-CE-v0SzM.d.cts → bytes32-klqLJUFN.d.cts} +2 -2
  29. package/dist/{bytes32-CE-v0SzM.d.cts.map → bytes32-klqLJUFN.d.cts.map} +1 -1
  30. package/dist/{chainEnvToChain-Cze_i6hZ.d.cts → chainEnvToChain-DdLczNYZ.d.cts} +1 -1
  31. package/dist/{chainEnvToChain-Cze_i6hZ.d.cts.map → chainEnvToChain-DdLczNYZ.d.cts.map} +1 -1
  32. package/dist/{chainEnvToChain-iWWdSu4g.d.ts → chainEnvToChain-DpBYNlnk.d.ts} +1 -1
  33. package/dist/{chainEnvToChain-iWWdSu4g.d.ts.map → chainEnvToChain-DpBYNlnk.d.ts.map} +1 -1
  34. package/dist/consts/chainEnvToChain.d.cts +1 -1
  35. package/dist/consts/chainEnvToChain.d.ts +1 -1
  36. package/dist/consts/index.d.cts +2 -2
  37. package/dist/consts/index.d.ts +2 -2
  38. package/dist/consts/productIds.d.cts +1 -1
  39. package/dist/consts/productIds.d.ts +1 -1
  40. package/dist/{createDeterministicLinkedSignerPrivateKey-XciG6RLh.d.ts → createDeterministicLinkedSignerPrivateKey-47pkYOE0.d.ts} +2 -2
  41. package/dist/createDeterministicLinkedSignerPrivateKey-47pkYOE0.d.ts.map +1 -0
  42. package/dist/{createDeterministicLinkedSignerPrivateKey-C2v9BK5R.d.cts → createDeterministicLinkedSignerPrivateKey-CcJhRSf7.d.cts} +2 -2
  43. package/dist/{createDeterministicLinkedSignerPrivateKey-C2v9BK5R.d.cts.map → createDeterministicLinkedSignerPrivateKey-CcJhRSf7.d.cts.map} +1 -1
  44. package/dist/{depositCollateral-476kzs4N.d.ts → depositCollateral-BZOXvr6h.d.ts} +1 -1
  45. package/dist/{depositCollateral-476kzs4N.d.ts.map → depositCollateral-BZOXvr6h.d.ts.map} +1 -1
  46. package/dist/{depositCollateral-CmEXlJQs.d.cts → depositCollateral-C3mp2GTo.d.cts} +1 -1
  47. package/dist/{depositCollateral-CmEXlJQs.d.cts.map → depositCollateral-C3mp2GTo.d.cts.map} +1 -1
  48. package/dist/eip712/eip712ValueTypes.d.cts +2 -2
  49. package/dist/eip712/eip712ValueTypes.d.ts +2 -2
  50. package/dist/eip712/getNadoEIP712Domain.d.cts +1 -1
  51. package/dist/eip712/getNadoEIP712Domain.d.ts +1 -1
  52. package/dist/eip712/getNadoEIP712PrimaryType.d.cts +1 -1
  53. package/dist/eip712/getNadoEIP712PrimaryType.d.ts +1 -1
  54. package/dist/eip712/getNadoEIP712Types.cjs +18 -0
  55. package/dist/eip712/getNadoEIP712Types.cjs.map +1 -1
  56. package/dist/eip712/getNadoEIP712Types.d.cts +1 -1
  57. package/dist/eip712/getNadoEIP712Types.d.ts +1 -1
  58. package/dist/eip712/getNadoEIP712Types.js +18 -0
  59. package/dist/eip712/getNadoEIP712Types.js.map +1 -1
  60. package/dist/eip712/getNadoEIP712Values.cjs +14 -0
  61. package/dist/eip712/getNadoEIP712Values.cjs.map +1 -1
  62. package/dist/eip712/getNadoEIP712Values.d.cts +1 -1
  63. package/dist/eip712/getNadoEIP712Values.d.ts +1 -1
  64. package/dist/eip712/getNadoEIP712Values.js +14 -0
  65. package/dist/eip712/getNadoEIP712Values.js.map +1 -1
  66. package/dist/eip712/getOrderVerifyingAddress.d.cts +1 -1
  67. package/dist/eip712/getOrderVerifyingAddress.d.ts +1 -1
  68. package/dist/eip712/getSignedTransactionRequest.d.cts +1 -1
  69. package/dist/eip712/getSignedTransactionRequest.d.ts +1 -1
  70. package/dist/eip712/index.d.cts +11 -11
  71. package/dist/eip712/index.d.ts +11 -11
  72. package/dist/eip712/orderDigest.d.cts +1 -1
  73. package/dist/eip712/orderDigest.d.ts +1 -1
  74. package/dist/eip712/signableRequestType.d.cts +1 -1
  75. package/dist/eip712/signableRequestType.d.ts +1 -1
  76. package/dist/eip712/signatureParamTypes.d.cts +2 -2
  77. package/dist/eip712/signatureParamTypes.d.ts +2 -2
  78. package/dist/{eip712ValueTypes-CI6wMCCw.d.cts → eip712ValueTypes-B7SUNimi.d.cts} +5 -3
  79. package/dist/{eip712ValueTypes-CI6wMCCw.d.cts.map → eip712ValueTypes-B7SUNimi.d.cts.map} +1 -1
  80. package/dist/{eip712ValueTypes-CD1TxxFv.d.ts → eip712ValueTypes-Bx73DiwJ.d.ts} +5 -3
  81. package/dist/{eip712ValueTypes-CD1TxxFv.d.ts.map → eip712ValueTypes-Bx73DiwJ.d.ts.map} +1 -1
  82. package/dist/encoding/encoding.d.cts +1 -1
  83. package/dist/encoding/encoding.d.ts +1 -1
  84. package/dist/encoding/index.d.cts +1 -1
  85. package/dist/encoding/index.d.ts +1 -1
  86. package/dist/{encoding-DaxmoLmF.d.ts → encoding-ChEwtCUc.d.ts} +2 -2
  87. package/dist/{encoding-DaxmoLmF.d.ts.map → encoding-ChEwtCUc.d.ts.map} +1 -1
  88. package/dist/{encoding-BXqysa4s.d.cts → encoding-DGoJlZo_.d.cts} +2 -2
  89. package/dist/{encoding-BXqysa4s.d.cts.map → encoding-DGoJlZo_.d.cts.map} +1 -1
  90. package/dist/execute/approveDepositAllowance.d.cts +1 -1
  91. package/dist/execute/approveDepositAllowance.d.ts +1 -1
  92. package/dist/execute/depositCollateral.d.cts +1 -1
  93. package/dist/execute/depositCollateral.d.ts +1 -1
  94. package/dist/execute/index.d.cts +2 -2
  95. package/dist/execute/index.d.ts +2 -2
  96. package/dist/{getNadoEIP712Domain-iDIuXsMf.d.cts → getNadoEIP712Domain-CbvRaSxS.d.cts} +1 -1
  97. package/dist/{getNadoEIP712Domain-iDIuXsMf.d.cts.map → getNadoEIP712Domain-CbvRaSxS.d.cts.map} +1 -1
  98. package/dist/{getNadoEIP712Domain-CSV6Zxuw.d.ts → getNadoEIP712Domain-kTOBSTeO.d.ts} +1 -1
  99. package/dist/{getNadoEIP712Domain-CSV6Zxuw.d.ts.map → getNadoEIP712Domain-kTOBSTeO.d.ts.map} +1 -1
  100. package/dist/{getNadoEIP712PrimaryType-CE0fRiTI.d.ts → getNadoEIP712PrimaryType-BcdZPTeT.d.ts} +2 -2
  101. package/dist/{getNadoEIP712PrimaryType-CE0fRiTI.d.ts.map → getNadoEIP712PrimaryType-BcdZPTeT.d.ts.map} +1 -1
  102. package/dist/{getNadoEIP712PrimaryType-Cq8siJx7.d.cts → getNadoEIP712PrimaryType-DxmJJfz2.d.cts} +2 -2
  103. package/dist/{getNadoEIP712PrimaryType-Cq8siJx7.d.cts.map → getNadoEIP712PrimaryType-DxmJJfz2.d.cts.map} +1 -1
  104. package/dist/{getNadoEIP712Types-D7duS2wH.d.cts → getNadoEIP712Types-CJFATDaU.d.cts} +2 -2
  105. package/dist/{getNadoEIP712Types-D7duS2wH.d.cts.map → getNadoEIP712Types-CJFATDaU.d.cts.map} +1 -1
  106. package/dist/{getNadoEIP712Types-BmB1bTGu.d.ts → getNadoEIP712Types-DUE5ujkf.d.ts} +2 -2
  107. package/dist/{getNadoEIP712Types-BmB1bTGu.d.ts.map → getNadoEIP712Types-DUE5ujkf.d.ts.map} +1 -1
  108. package/dist/{getNadoEIP712Values-0EOMObhX.d.ts → getNadoEIP712Values-CTLCQp1t.d.ts} +3 -3
  109. package/dist/getNadoEIP712Values-CTLCQp1t.d.ts.map +1 -0
  110. package/dist/{getNadoEIP712Values-DEBZh7-M.d.cts → getNadoEIP712Values-P4Ypt-zt.d.cts} +3 -3
  111. package/dist/getNadoEIP712Values-P4Ypt-zt.d.cts.map +1 -0
  112. package/dist/{getOrderVerifyingAddress-BygcgBA1.d.ts → getOrderVerifyingAddress-BX_s3Vfh.d.ts} +1 -1
  113. package/dist/{getOrderVerifyingAddress-BygcgBA1.d.ts.map → getOrderVerifyingAddress-BX_s3Vfh.d.ts.map} +1 -1
  114. package/dist/{getOrderVerifyingAddress-CHRCQ8AZ.d.cts → getOrderVerifyingAddress-DDfqL0tj.d.cts} +1 -1
  115. package/dist/{getOrderVerifyingAddress-CHRCQ8AZ.d.cts.map → getOrderVerifyingAddress-DDfqL0tj.d.cts.map} +1 -1
  116. package/dist/{getSignedTransactionRequest-DxUMBHLe.d.cts → getSignedTransactionRequest-C0S7STob.d.cts} +2 -2
  117. package/dist/{getSignedTransactionRequest-DxUMBHLe.d.cts.map → getSignedTransactionRequest-C0S7STob.d.cts.map} +1 -1
  118. package/dist/{getSignedTransactionRequest-Et_1Y1wr.d.ts → getSignedTransactionRequest-EzUfIGU0.d.ts} +2 -2
  119. package/dist/{getSignedTransactionRequest-Et_1Y1wr.d.ts.map → getSignedTransactionRequest-EzUfIGU0.d.ts.map} +1 -1
  120. package/dist/{getValidatedAddress-BQJEkmbN.d.cts → getValidatedAddress-BiT9E3l6.d.cts} +1 -1
  121. package/dist/getValidatedAddress-BiT9E3l6.d.cts.map +1 -0
  122. package/dist/{getValidatedAddress-BmCqRBeh.d.ts → getValidatedAddress-f8b_x20V.d.ts} +1 -1
  123. package/dist/getValidatedAddress-f8b_x20V.d.ts.map +1 -0
  124. package/dist/{getValidatedHex-PXNPR4pI.d.cts → getValidatedHex-D_p2LkRB.d.cts} +1 -1
  125. package/dist/getValidatedHex-D_p2LkRB.d.cts.map +1 -0
  126. package/dist/{getValidatedHex-DuwBnuEB.d.ts → getValidatedHex-_FrR4ehU.d.ts} +1 -1
  127. package/dist/getValidatedHex-_FrR4ehU.d.ts.map +1 -0
  128. package/dist/index.d.cts +38 -37
  129. package/dist/index.d.ts +38 -37
  130. package/dist/{interest-DRpagIcs.d.cts → interest-BJn3z3kZ.d.cts} +1 -1
  131. package/dist/{interest-DRpagIcs.d.cts.map → interest-BJn3z3kZ.d.cts.map} +1 -1
  132. package/dist/{interest-CUXHxrel.d.ts → interest-D9Nu3wzM.d.ts} +1 -1
  133. package/dist/{interest-CUXHxrel.d.ts.map → interest-D9Nu3wzM.d.ts.map} +1 -1
  134. package/dist/{isWriteableContract-DcM3nqdX.d.ts → isWriteableContract-Cm5HlOta.d.ts} +1 -1
  135. package/dist/{isWriteableContract-DcM3nqdX.d.ts.map → isWriteableContract-Cm5HlOta.d.ts.map} +1 -1
  136. package/dist/{isWriteableContract-ZGxc9VmC.d.cts → isWriteableContract-GxOuGwru.d.cts} +1 -1
  137. package/dist/{isWriteableContract-ZGxc9VmC.d.cts.map → isWriteableContract-GxOuGwru.d.cts.map} +1 -1
  138. package/dist/{mapValues-cO_NBiCx.d.ts → mapValues-CO9UDyHu.d.ts} +1 -1
  139. package/dist/{mapValues-cO_NBiCx.d.ts.map → mapValues-CO9UDyHu.d.ts.map} +1 -1
  140. package/dist/{mapValues-jlfbJybF.d.cts → mapValues-o-kMemvA.d.cts} +1 -1
  141. package/dist/{mapValues-jlfbJybF.d.cts.map → mapValues-o-kMemvA.d.cts.map} +1 -1
  142. package/dist/{orderDigest-BlytCeEr.d.ts → orderDigest-Dkq7daQm.d.ts} +2 -2
  143. package/dist/{orderDigest-BlytCeEr.d.ts.map → orderDigest-Dkq7daQm.d.ts.map} +1 -1
  144. package/dist/{orderDigest-C9Sr-5TO.d.cts → orderDigest-KkIGidxX.d.cts} +2 -2
  145. package/dist/{orderDigest-C9Sr-5TO.d.cts.map → orderDigest-KkIGidxX.d.cts.map} +1 -1
  146. package/dist/{orderNonce-p8m6ZrSd.d.cts → orderNonce-CqjVRxk_.d.cts} +1 -1
  147. package/dist/{orderNonce-p8m6ZrSd.d.cts.map → orderNonce-CqjVRxk_.d.cts.map} +1 -1
  148. package/dist/{orderNonce-BgvYpe4l.d.ts → orderNonce-DjWVtNql.d.ts} +1 -1
  149. package/dist/{orderNonce-BgvYpe4l.d.ts.map → orderNonce-DjWVtNql.d.ts.map} +1 -1
  150. package/dist/{packOrderAppendix-BokzjU2O.d.ts → packOrderAppendix-BvzI7zfI.d.ts} +1 -1
  151. package/dist/{packOrderAppendix-BokzjU2O.d.ts.map → packOrderAppendix-BvzI7zfI.d.ts.map} +1 -1
  152. package/dist/{packOrderAppendix-DJlhe5P5.d.cts → packOrderAppendix-cBX9_d08.d.cts} +1 -1
  153. package/dist/{packOrderAppendix-DJlhe5P5.d.cts.map → packOrderAppendix-cBX9_d08.d.cts.map} +1 -1
  154. package/dist/{productIds-CCewi4tC.d.ts → productIds-BZeKoHcK.d.ts} +1 -1
  155. package/dist/productIds-BZeKoHcK.d.ts.map +1 -0
  156. package/dist/{productIds-COuWMJat.d.cts → productIds-CePkYUZH.d.cts} +1 -1
  157. package/dist/productIds-CePkYUZH.d.cts.map +1 -0
  158. package/dist/{productTypeFilter-B6CoWHmB.d.cts → productTypeFilter-Dtf71CLf.d.cts} +1 -1
  159. package/dist/{productTypeFilter-B6CoWHmB.d.cts.map → productTypeFilter-Dtf71CLf.d.cts.map} +1 -1
  160. package/dist/{productTypeFilter-B0oL5G_q.d.ts → productTypeFilter-IKV6IkNW.d.ts} +1 -1
  161. package/dist/{productTypeFilter-B0oL5G_q.d.ts.map → productTypeFilter-IKV6IkNW.d.ts.map} +1 -1
  162. package/dist/{recvTime-C6ulZVuR.d.ts → recvTime-B5XYRV0S.d.ts} +1 -1
  163. package/dist/recvTime-B5XYRV0S.d.ts.map +1 -0
  164. package/dist/{recvTime-lSkRnXFh.d.cts → recvTime-D6SfTY5U.d.cts} +1 -1
  165. package/dist/recvTime-D6SfTY5U.d.cts.map +1 -0
  166. package/dist/{signableRequestType-DWpXrjGE.d.ts → signableRequestType-BtNg2SMb.d.cts} +3 -2
  167. package/dist/signableRequestType-BtNg2SMb.d.cts.map +1 -0
  168. package/dist/{signableRequestType-BV11vCXW.d.cts → signableRequestType-CZjIeuKt.d.ts} +3 -2
  169. package/dist/signableRequestType-CZjIeuKt.d.ts.map +1 -0
  170. package/dist/{signatureParamTypes-Cjm4X5PA.d.cts → signatureParamTypes-D30zq2Ac.d.cts} +12 -4
  171. package/dist/{signatureParamTypes-Cjm4X5PA.d.cts.map → signatureParamTypes-D30zq2Ac.d.cts.map} +1 -1
  172. package/dist/{signatureParamTypes-CDUNzp0c.d.ts → signatureParamTypes-wuLv8rkA.d.ts} +12 -4
  173. package/dist/{signatureParamTypes-CDUNzp0c.d.ts.map → signatureParamTypes-wuLv8rkA.d.ts.map} +1 -1
  174. package/dist/signatureTypes-DxmIJNug.d.ts +15 -0
  175. package/dist/signatureTypes-DxmIJNug.d.ts.map +1 -0
  176. package/dist/signatureTypes-S1LMAbRM.d.cts +15 -0
  177. package/dist/signatureTypes-S1LMAbRM.d.cts.map +1 -0
  178. package/dist/{subaccountTypes-FoLRswIa.d.ts → subaccountTypes-BuzrDicU.d.ts} +1 -1
  179. package/dist/{subaccountTypes-FoLRswIa.d.ts.map → subaccountTypes-BuzrDicU.d.ts.map} +1 -1
  180. package/dist/{subaccountTypes-BGE4tJKb.d.cts → subaccountTypes-DCl5hh9_.d.cts} +1 -1
  181. package/dist/{subaccountTypes-BGE4tJKb.d.cts.map → subaccountTypes-DCl5hh9_.d.cts.map} +1 -1
  182. package/dist/{time-BpZLFNOC.d.ts → time-BXCJoadZ.d.ts} +1 -1
  183. package/dist/{time-BpZLFNOC.d.ts.map → time-BXCJoadZ.d.ts.map} +1 -1
  184. package/dist/{time-D6SSEenZ.d.cts → time-CN8jbcGn.d.cts} +1 -1
  185. package/dist/{time-D6SSEenZ.d.cts.map → time-CN8jbcGn.d.cts.map} +1 -1
  186. package/dist/{toPrintableObject-CwWr2voJ.d.cts → toPrintableObject-BD8fvLEw.d.cts} +1 -1
  187. package/dist/{toPrintableObject-CwWr2voJ.d.cts.map → toPrintableObject-BD8fvLEw.d.cts.map} +1 -1
  188. package/dist/{toPrintableObject-kBzCvR0Y.d.ts → toPrintableObject-qU66WYAb.d.ts} +1 -1
  189. package/dist/{toPrintableObject-kBzCvR0Y.d.ts.map → toPrintableObject-qU66WYAb.d.ts.map} +1 -1
  190. package/dist/types/index.d.cts +3 -2
  191. package/dist/types/index.d.ts +3 -2
  192. package/dist/types/signatureTypes.cjs +0 -0
  193. package/dist/types/signatureTypes.d.cts +2 -0
  194. package/dist/types/signatureTypes.d.ts +2 -0
  195. package/dist/types/signatureTypes.js +1 -0
  196. package/dist/types/subaccountTypes.d.cts +1 -1
  197. package/dist/types/subaccountTypes.d.ts +1 -1
  198. package/dist/{types-Cqqkhcva.d.ts → types-C3h0_DhN.d.ts} +1 -1
  199. package/dist/{types-Cqqkhcva.d.ts.map → types-C3h0_DhN.d.ts.map} +1 -1
  200. package/dist/{types-BdV1zhbS.d.cts → types-STPWaMSZ.d.cts} +1 -1
  201. package/dist/{types-BdV1zhbS.d.cts.map → types-STPWaMSZ.d.cts.map} +1 -1
  202. package/dist/{unpackOrderAppendix-Dx0MDs4V.d.ts → unpackOrderAppendix-BtZ5M1kJ.d.ts} +1 -1
  203. package/dist/{unpackOrderAppendix-Dx0MDs4V.d.ts.map → unpackOrderAppendix-BtZ5M1kJ.d.ts.map} +1 -1
  204. package/dist/{unpackOrderAppendix-E8HT7dKm.d.cts → unpackOrderAppendix-D2mTEbjX.d.cts} +1 -1
  205. package/dist/{unpackOrderAppendix-E8HT7dKm.d.cts.map → unpackOrderAppendix-D2mTEbjX.d.cts.map} +1 -1
  206. package/dist/utils/asyncResult.d.cts +1 -1
  207. package/dist/utils/asyncResult.d.ts +1 -1
  208. package/dist/utils/balanceValue.d.cts +1 -1
  209. package/dist/utils/balanceValue.d.ts +1 -1
  210. package/dist/utils/bytes32.d.cts +1 -1
  211. package/dist/utils/bytes32.d.ts +1 -1
  212. package/dist/utils/createDeterministicLinkedSignerPrivateKey.d.cts +1 -1
  213. package/dist/utils/createDeterministicLinkedSignerPrivateKey.d.ts +1 -1
  214. package/dist/utils/errors/WalletNotProvidedError.d.cts +1 -1
  215. package/dist/utils/errors/WalletNotProvidedError.d.ts +1 -1
  216. package/dist/utils/errors/index.d.cts +1 -1
  217. package/dist/utils/errors/index.d.ts +1 -1
  218. package/dist/utils/getValidatedAddress.d.cts +1 -1
  219. package/dist/utils/getValidatedAddress.d.ts +1 -1
  220. package/dist/utils/getValidatedHex.d.cts +1 -1
  221. package/dist/utils/getValidatedHex.d.ts +1 -1
  222. package/dist/utils/index.d.cts +20 -20
  223. package/dist/utils/index.d.ts +20 -20
  224. package/dist/utils/interest.d.cts +1 -1
  225. package/dist/utils/interest.d.ts +1 -1
  226. package/dist/utils/isWriteableContract.d.cts +1 -1
  227. package/dist/utils/isWriteableContract.d.ts +1 -1
  228. package/dist/utils/mapValues.d.cts +1 -1
  229. package/dist/utils/mapValues.d.ts +1 -1
  230. package/dist/utils/orders/appendix/appendixTwapValue.d.cts +1 -1
  231. package/dist/utils/orders/appendix/appendixTwapValue.d.ts +1 -1
  232. package/dist/utils/orders/appendix/bitMaskValue.d.cts +1 -1
  233. package/dist/utils/orders/appendix/bitMaskValue.d.ts +1 -1
  234. package/dist/utils/orders/appendix/index.d.cts +5 -5
  235. package/dist/utils/orders/appendix/index.d.ts +5 -5
  236. package/dist/utils/orders/appendix/packOrderAppendix.d.cts +1 -1
  237. package/dist/utils/orders/appendix/packOrderAppendix.d.ts +1 -1
  238. package/dist/utils/orders/appendix/types.d.cts +1 -1
  239. package/dist/utils/orders/appendix/types.d.ts +1 -1
  240. package/dist/utils/orders/appendix/unpackOrderAppendix.d.cts +1 -1
  241. package/dist/utils/orders/appendix/unpackOrderAppendix.d.ts +1 -1
  242. package/dist/utils/orders/index.d.cts +7 -7
  243. package/dist/utils/orders/index.d.ts +7 -7
  244. package/dist/utils/orders/orderNonce.d.cts +1 -1
  245. package/dist/utils/orders/orderNonce.d.ts +1 -1
  246. package/dist/utils/orders/recvTime.d.cts +1 -1
  247. package/dist/utils/orders/recvTime.d.ts +1 -1
  248. package/dist/utils/productTypeFilter.d.cts +1 -1
  249. package/dist/utils/productTypeFilter.d.ts +1 -1
  250. package/dist/utils/time.d.cts +1 -1
  251. package/dist/utils/time.d.ts +1 -1
  252. package/dist/utils/toPrintableObject.d.cts +1 -1
  253. package/dist/utils/toPrintableObject.d.ts +1 -1
  254. package/package.json +2 -2
  255. package/src/eip712/eip712ValueTypes.ts +5 -0
  256. package/src/eip712/getNadoEIP712Types.ts +9 -0
  257. package/src/eip712/getNadoEIP712Values.ts +21 -0
  258. package/src/eip712/signableRequestType.ts +2 -0
  259. package/src/eip712/signatureParamTypes.ts +12 -1
  260. package/src/types/index.ts +1 -0
  261. package/src/types/signatureTypes.ts +11 -0
  262. package/dist/createDeterministicLinkedSignerPrivateKey-XciG6RLh.d.ts.map +0 -1
  263. package/dist/getNadoEIP712Values-0EOMObhX.d.ts.map +0 -1
  264. package/dist/getNadoEIP712Values-DEBZh7-M.d.cts.map +0 -1
  265. package/dist/getValidatedAddress-BQJEkmbN.d.cts.map +0 -1
  266. package/dist/getValidatedAddress-BmCqRBeh.d.ts.map +0 -1
  267. package/dist/getValidatedHex-DuwBnuEB.d.ts.map +0 -1
  268. package/dist/getValidatedHex-PXNPR4pI.d.cts.map +0 -1
  269. package/dist/productIds-CCewi4tC.d.ts.map +0 -1
  270. package/dist/productIds-COuWMJat.d.cts.map +0 -1
  271. package/dist/recvTime-C6ulZVuR.d.ts.map +0 -1
  272. package/dist/recvTime-lSkRnXFh.d.cts.map +0 -1
  273. package/dist/signableRequestType-BV11vCXW.d.cts.map +0 -1
  274. package/dist/signableRequestType-DWpXrjGE.d.ts.map +0 -1
  275. /package/dist/{index-B1btZMWF.d.ts → index-B98eXebS.d.ts} +0 -0
  276. /package/dist/{index-BCsiC0tv.d.cts → index-BJ8-FA6N.d.cts} +0 -0
  277. /package/dist/{index-BVJyZlmP2.d.cts → index-BLREDRDJ.d.cts} +0 -0
  278. /package/dist/{index-Ba3GYDF9.d.ts → index-BLwMeReG.d.ts} +0 -0
  279. /package/dist/{index-Bq2ftOXk2.d.cts → index-C6yvNuzO.d.cts} +0 -0
  280. /package/dist/{index-Br3qA4B52.d.ts → index-CNuTE0dv.d.ts} +0 -0
  281. /package/dist/{index-C9nY9t1j.d.ts → index-DFKoAoY2.d.cts} +0 -0
  282. /package/dist/{index-CB5PSF-Q.d.ts → index-DPuvk4iq.d.ts} +0 -0
  283. /package/dist/{index-CQ25UCod.d.cts → index-DYVpYyuQ2.d.ts} +0 -0
  284. /package/dist/{index-D4eheNJJ.d.cts → index-Dh6J9gb5.d.cts} +0 -0
  285. /package/dist/{index-ZFCPoV_B2.d.ts → index-ma3taAs-.d.ts} +0 -0
  286. /package/dist/{index-_1bfRgi2.d.cts → index-qOayZAJw2.d.cts} +0 -0
@@ -1,2 +1,2 @@
1
- import { t as isWriteableContract } from "../isWriteableContract-ZGxc9VmC.cjs";
1
+ import { t as isWriteableContract } from "../isWriteableContract-GxOuGwru.cjs";
2
2
  export { isWriteableContract };
@@ -1,2 +1,2 @@
1
- import { t as isWriteableContract } from "../isWriteableContract-DcM3nqdX.js";
1
+ import { t as isWriteableContract } from "../isWriteableContract-Cm5HlOta.js";
2
2
  export { isWriteableContract };
@@ -1,2 +1,2 @@
1
- import { t as mapValues } from "../mapValues-jlfbJybF.cjs";
1
+ import { t as mapValues } from "../mapValues-o-kMemvA.cjs";
2
2
  export { mapValues };
@@ -1,2 +1,2 @@
1
- import { t as mapValues } from "../mapValues-cO_NBiCx.js";
1
+ import { t as mapValues } from "../mapValues-CO9UDyHu.js";
2
2
  export { mapValues };
@@ -1,2 +1,2 @@
1
- import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-2e-BBSSp.cjs";
1
+ import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-DIqDV7Z7.cjs";
2
2
  export { packTwapOrderAppendixValue, unpackTwapOrderAppendixValue };
@@ -1,2 +1,2 @@
1
- import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-D5Fv_hF5.js";
1
+ import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-DPsC1hXX.js";
2
2
  export { packTwapOrderAppendixValue, unpackTwapOrderAppendixValue };
@@ -1,2 +1,2 @@
1
- import { t as bitMaskValue } from "../../../bitMaskValue-CWv12B9a.cjs";
1
+ import { t as bitMaskValue } from "../../../bitMaskValue-CDz7vtPM.cjs";
2
2
  export { bitMaskValue };
@@ -1,2 +1,2 @@
1
- import { t as bitMaskValue } from "../../../bitMaskValue-rhaIF9Xj.js";
1
+ import { t as bitMaskValue } from "../../../bitMaskValue-qyWUOgv1.js";
2
2
  export { bitMaskValue };
@@ -1,6 +1,6 @@
1
- import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-2e-BBSSp.cjs";
2
- import { t as bitMaskValue } from "../../../bitMaskValue-CWv12B9a.cjs";
3
- import { t as packOrderAppendix } from "../../../packOrderAppendix-DJlhe5P5.cjs";
4
- import { t as PackedOrderAppendixBits } from "../../../types-BdV1zhbS.cjs";
5
- import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-E8HT7dKm.cjs";
1
+ import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-DIqDV7Z7.cjs";
2
+ import { t as bitMaskValue } from "../../../bitMaskValue-CDz7vtPM.cjs";
3
+ import { t as packOrderAppendix } from "../../../packOrderAppendix-cBX9_d08.cjs";
4
+ import { t as PackedOrderAppendixBits } from "../../../types-STPWaMSZ.cjs";
5
+ import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-D2mTEbjX.cjs";
6
6
  export { PackedOrderAppendixBits, bitMaskValue, packOrderAppendix, packTwapOrderAppendixValue, unpackOrderAppendix, unpackTwapOrderAppendixValue };
@@ -1,6 +1,6 @@
1
- import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-D5Fv_hF5.js";
2
- import { t as bitMaskValue } from "../../../bitMaskValue-rhaIF9Xj.js";
3
- import { t as packOrderAppendix } from "../../../packOrderAppendix-BokzjU2O.js";
4
- import { t as PackedOrderAppendixBits } from "../../../types-Cqqkhcva.js";
5
- import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-Dx0MDs4V.js";
1
+ import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-DPsC1hXX.js";
2
+ import { t as bitMaskValue } from "../../../bitMaskValue-qyWUOgv1.js";
3
+ import { t as packOrderAppendix } from "../../../packOrderAppendix-BvzI7zfI.js";
4
+ import { t as PackedOrderAppendixBits } from "../../../types-C3h0_DhN.js";
5
+ import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-BtZ5M1kJ.js";
6
6
  export { PackedOrderAppendixBits, bitMaskValue, packOrderAppendix, packTwapOrderAppendixValue, unpackOrderAppendix, unpackTwapOrderAppendixValue };
@@ -1,2 +1,2 @@
1
- import { t as packOrderAppendix } from "../../../packOrderAppendix-DJlhe5P5.cjs";
1
+ import { t as packOrderAppendix } from "../../../packOrderAppendix-cBX9_d08.cjs";
2
2
  export { packOrderAppendix };
@@ -1,2 +1,2 @@
1
- import { t as packOrderAppendix } from "../../../packOrderAppendix-BokzjU2O.js";
1
+ import { t as packOrderAppendix } from "../../../packOrderAppendix-BvzI7zfI.js";
2
2
  export { packOrderAppendix };
@@ -1,2 +1,2 @@
1
- import { t as PackedOrderAppendixBits } from "../../../types-BdV1zhbS.cjs";
1
+ import { t as PackedOrderAppendixBits } from "../../../types-STPWaMSZ.cjs";
2
2
  export { PackedOrderAppendixBits };
@@ -1,2 +1,2 @@
1
- import { t as PackedOrderAppendixBits } from "../../../types-Cqqkhcva.js";
1
+ import { t as PackedOrderAppendixBits } from "../../../types-C3h0_DhN.js";
2
2
  export { PackedOrderAppendixBits };
@@ -1,2 +1,2 @@
1
- import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-E8HT7dKm.cjs";
1
+ import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-D2mTEbjX.cjs";
2
2
  export { unpackOrderAppendix };
@@ -1,2 +1,2 @@
1
- import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-Dx0MDs4V.js";
1
+ import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-BtZ5M1kJ.js";
2
2
  export { unpackOrderAppendix };
@@ -1,8 +1,8 @@
1
- import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../appendixTwapValue-2e-BBSSp.cjs";
2
- import { t as bitMaskValue } from "../../bitMaskValue-CWv12B9a.cjs";
3
- import { t as packOrderAppendix } from "../../packOrderAppendix-DJlhe5P5.cjs";
4
- import { t as PackedOrderAppendixBits } from "../../types-BdV1zhbS.cjs";
5
- import { t as unpackOrderAppendix } from "../../unpackOrderAppendix-E8HT7dKm.cjs";
6
- import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-p8m6ZrSd.cjs";
7
- import { t as getDefaultRecvTime } from "../../recvTime-lSkRnXFh.cjs";
1
+ import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../appendixTwapValue-DIqDV7Z7.cjs";
2
+ import { t as bitMaskValue } from "../../bitMaskValue-CDz7vtPM.cjs";
3
+ import { t as packOrderAppendix } from "../../packOrderAppendix-cBX9_d08.cjs";
4
+ import { t as PackedOrderAppendixBits } from "../../types-STPWaMSZ.cjs";
5
+ import { t as unpackOrderAppendix } from "../../unpackOrderAppendix-D2mTEbjX.cjs";
6
+ import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-CqjVRxk_.cjs";
7
+ import { t as getDefaultRecvTime } from "../../recvTime-D6SfTY5U.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-D5Fv_hF5.js";
2
- import { t as bitMaskValue } from "../../bitMaskValue-rhaIF9Xj.js";
3
- import { t as packOrderAppendix } from "../../packOrderAppendix-BokzjU2O.js";
4
- import { t as PackedOrderAppendixBits } from "../../types-Cqqkhcva.js";
5
- import { t as unpackOrderAppendix } from "../../unpackOrderAppendix-Dx0MDs4V.js";
6
- import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-BgvYpe4l.js";
7
- import { t as getDefaultRecvTime } from "../../recvTime-C6ulZVuR.js";
1
+ import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../appendixTwapValue-DPsC1hXX.js";
2
+ import { t as bitMaskValue } from "../../bitMaskValue-qyWUOgv1.js";
3
+ import { t as packOrderAppendix } from "../../packOrderAppendix-BvzI7zfI.js";
4
+ import { t as PackedOrderAppendixBits } from "../../types-C3h0_DhN.js";
5
+ import { t as unpackOrderAppendix } from "../../unpackOrderAppendix-BtZ5M1kJ.js";
6
+ import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-DjWVtNql.js";
7
+ import { t as getDefaultRecvTime } from "../../recvTime-B5XYRV0S.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-p8m6ZrSd.cjs";
1
+ import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-CqjVRxk_.cjs";
2
2
  export { getOrderNonce, getRecvTimeFromOrderNonce };
@@ -1,2 +1,2 @@
1
- import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-BgvYpe4l.js";
1
+ import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-DjWVtNql.js";
2
2
  export { getOrderNonce, getRecvTimeFromOrderNonce };
@@ -1,2 +1,2 @@
1
- import { t as getDefaultRecvTime } from "../../recvTime-lSkRnXFh.cjs";
1
+ import { t as getDefaultRecvTime } from "../../recvTime-D6SfTY5U.cjs";
2
2
  export { getDefaultRecvTime };
@@ -1,2 +1,2 @@
1
- import { t as getDefaultRecvTime } from "../../recvTime-C6ulZVuR.js";
1
+ import { t as getDefaultRecvTime } from "../../recvTime-B5XYRV0S.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-B6CoWHmB.cjs";
1
+ import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-Dtf71CLf.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-B0oL5G_q.js";
1
+ import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-IKV6IkNW.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-D6SSEenZ.cjs";
1
+ import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-CN8jbcGn.cjs";
2
2
  export { TimeInSeconds, millisToSeconds, nowInSeconds };
@@ -1,2 +1,2 @@
1
- import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-BpZLFNOC.js";
1
+ import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-BXCJoadZ.js";
2
2
  export { TimeInSeconds, millisToSeconds, nowInSeconds };
@@ -1,2 +1,2 @@
1
- import { t as toPrintableObject } from "../toPrintableObject-CwWr2voJ.cjs";
1
+ import { t as toPrintableObject } from "../toPrintableObject-BD8fvLEw.cjs";
2
2
  export { toPrintableObject };
@@ -1,2 +1,2 @@
1
- import { t as toPrintableObject } from "../toPrintableObject-kBzCvR0Y.js";
1
+ import { t as toPrintableObject } from "../toPrintableObject-qU66WYAb.js";
2
2
  export { toPrintableObject };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadohq/shared",
3
- "version": "0.26.0",
3
+ "version": "0.27.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": "6bca370cf5c0b5f1bad86c33acb9c2342d476bc6"
55
+ "gitHead": "8a372c1df88e29446e9fd60072c76003d403fdce"
56
56
  }
@@ -9,6 +9,7 @@ import {
9
9
  EIP712LiquidateSubaccountParams,
10
10
  EIP712ListTriggerOrdersParams,
11
11
  EIP712MintNlpParams,
12
+ EIP712NadoAuthenticationParams,
12
13
  EIP712OrderParams,
13
14
  EIP712SocialAuthenticationParams,
14
15
  EIP712TransferQuoteParams,
@@ -77,6 +78,9 @@ export type EIP712MintNlpValues = WithEIP712Sender<EIP712MintNlpParams>;
77
78
 
78
79
  export type EIP712BurnNlpValues = WithEIP712Sender<EIP712BurnNlpParams>;
79
80
 
81
+ export type EIP712NadoAuthenticationValues =
82
+ WithEIP712Sender<EIP712NadoAuthenticationParams>;
83
+
80
84
  /**
81
85
  * All possible requests to be signed, to the EIP712 value interface
82
86
  */
@@ -89,6 +93,7 @@ export interface SignableRequestTypeToEIP712Values {
89
93
  liquidate_subaccount: EIP712LiquidateSubaccountValues;
90
94
  list_trigger_orders: EIP712ListTriggerOrdersValues;
91
95
  mint_nlp: EIP712MintNlpValues;
96
+ nado_authentication: EIP712NadoAuthenticationValues;
92
97
  place_order: EIP712OrderValues;
93
98
  social_authentication: EIP712SocialAuthenticationValues;
94
99
  transfer_quote: EIP712TransferQuoteValues;
@@ -138,5 +138,14 @@ export function getNadoEIP712Types(
138
138
  { name: 'nonce', type: 'uint64' },
139
139
  ],
140
140
  };
141
+ case 'nado_authentication':
142
+ return {
143
+ NadoAuthentication: [
144
+ { name: 'method', type: 'string' },
145
+ { name: 'sender', type: 'bytes32' },
146
+ { name: 'payloadHash', type: 'bytes32' },
147
+ { name: 'nonce', type: 'uint64' },
148
+ ],
149
+ };
141
150
  }
142
151
  }
@@ -7,6 +7,7 @@ import {
7
7
  EIP712LiquidateSubaccountValues,
8
8
  EIP712ListTriggerOrdersValues,
9
9
  EIP712MintNlpValues,
10
+ EIP712NadoAuthenticationValues,
10
11
  EIP712OrderCancellationValues,
11
12
  EIP712OrderValues,
12
13
  EIP712ProductOrdersCancellationValues,
@@ -30,6 +31,7 @@ import {
30
31
  EIP712LiquidateSubaccountParams,
31
32
  EIP712ListTriggerOrdersParams,
32
33
  EIP712MintNlpParams,
34
+ EIP712NadoAuthenticationParams,
33
35
  EIP712OrderParams,
34
36
  EIP712SocialAuthenticationParams,
35
37
  EIP712TransferQuoteParams,
@@ -111,6 +113,11 @@ export function getNadoEIP712Values<TReqType extends SignableRequestType>(
111
113
  case 'burn_nlp':
112
114
  values = getBurnNlpValues(params as EIP712BurnNlpParams);
113
115
  break;
116
+ case 'nado_authentication':
117
+ values = getNadoAuthenticationValues(
118
+ params as EIP712NadoAuthenticationParams,
119
+ );
120
+ break;
114
121
  default:
115
122
  throw new Error(`Unsupported request type: ${requestType}`);
116
123
  }
@@ -311,3 +318,17 @@ function getBurnNlpValues(params: EIP712BurnNlpParams): EIP712BurnNlpValues {
311
318
  nonce: params.nonce,
312
319
  };
313
320
  }
321
+
322
+ function getNadoAuthenticationValues(
323
+ params: EIP712NadoAuthenticationParams,
324
+ ): EIP712NadoAuthenticationValues {
325
+ return {
326
+ method: params.method,
327
+ sender: subaccountToHex({
328
+ subaccountOwner: params.subaccountOwner,
329
+ subaccountName: params.subaccountName,
330
+ }),
331
+ payloadHash: params.payloadHash,
332
+ nonce: params.nonce,
333
+ };
334
+ }
@@ -7,6 +7,7 @@ import {
7
7
  EIP712LiquidateSubaccountParams,
8
8
  EIP712ListTriggerOrdersParams,
9
9
  EIP712MintNlpParams,
10
+ EIP712NadoAuthenticationParams,
10
11
  EIP712OrderParams,
11
12
  EIP712SocialAuthenticationParams,
12
13
  EIP712TransferQuoteParams,
@@ -27,6 +28,7 @@ export interface SignableRequestTypeToParams {
27
28
  liquidate_subaccount: EIP712LiquidateSubaccountParams;
28
29
  list_trigger_orders: EIP712ListTriggerOrdersParams;
29
30
  mint_nlp: EIP712MintNlpParams;
31
+ nado_authentication: EIP712NadoAuthenticationParams;
30
32
  place_order: EIP712OrderParams;
31
33
  social_authentication: EIP712SocialAuthenticationParams;
32
34
  transfer_quote: EIP712TransferQuoteParams;
@@ -1,4 +1,4 @@
1
- import { Address } from 'viem';
1
+ import { Address, Hex } from 'viem';
2
2
  import { Subaccount } from '../types/subaccountTypes';
3
3
  import { BigNumberish } from '../utils';
4
4
 
@@ -103,3 +103,14 @@ export interface EIP712BurnNlpParams extends Subaccount {
103
103
  nlpAmount: BigNumberish;
104
104
  nonce: string;
105
105
  }
106
+
107
+ /**
108
+ * Params for the mobile service API's `NadoAuthentication` envelope.
109
+ */
110
+ export interface EIP712NadoAuthenticationParams extends Subaccount {
111
+ // Namespaced method string, e.g. `mobile:execute_set_private_mode`.
112
+ method: string;
113
+ // keccak256 of the msgpack-encoded request payload.
114
+ payloadHash: Hex;
115
+ nonce: string;
116
+ }
@@ -7,5 +7,6 @@ export * from './nadoContractTypes';
7
7
  export * from './orderAppendixTypes';
8
8
  export * from './OrderExecutionType';
9
9
  export * from './productTypes';
10
+ export * from './signatureTypes';
10
11
  export * from './subaccountTypes';
11
12
  export * from './viemTypes';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * EIP-712 signing context common to all signed API requests.
3
+ */
4
+ export interface SignatureParams {
5
+ /**
6
+ * Verifying contract address for the EIP-712 domain. This is the endpoint address for most requests;
7
+ * order placement uses an address derived from the product (see `getOrderVerifyingAddress`).
8
+ */
9
+ verifyingAddr: string;
10
+ chainId: number;
11
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"createDeterministicLinkedSignerPrivateKey-XciG6RLh.d.ts","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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getNadoEIP712Values-0EOMObhX.d.ts","names":[],"sources":["../src/eip712/src/eip712/getNadoEIP712Values.ts"],"mappings":";;;;;;AAgDA;;;;;;iBAAgB,mBAAA,kBAAqC,mBAAA,CAAA,CACnD,WAAA,EAAa,QAAA,EACb,MAAA,EAAQ,2BAAA,CAA4B,QAAA,IACnC,iCAAA,CAAkC,QAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getNadoEIP712Values-DEBZh7-M.d.cts","names":[],"sources":["../src/eip712/src/eip712/getNadoEIP712Values.ts"],"mappings":";;;;;;AAgDA;;;;;;iBAAgB,mBAAA,kBAAqC,mBAAA,CAAA,CACnD,WAAA,EAAa,QAAA,EACb,MAAA,EAAQ,2BAAA,CAA4B,QAAA,IACnC,iCAAA,CAAkC,QAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getValidatedAddress-BQJEkmbN.d.cts","names":[],"sources":["../src/utils/src/utils/getValidatedAddress.ts"],"mappings":";;;;;AAMA;;iBAAgB,mBAAA,CAAoB,YAAA,WAAuB,OAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getValidatedAddress-BmCqRBeh.d.ts","names":[],"sources":["../src/utils/src/utils/getValidatedAddress.ts"],"mappings":";;;;;AAMA;;iBAAgB,mBAAA,CAAoB,YAAA,WAAuB,OAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getValidatedHex-DuwBnuEB.d.ts","names":[],"sources":["../src/utils/src/utils/getValidatedHex.ts"],"mappings":";;;;;AAMA;;iBAAgB,eAAA,CAAgB,QAAA,WAAmB,GAAG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getValidatedHex-PXNPR4pI.d.cts","names":[],"sources":["../src/utils/src/utils/getValidatedHex.ts"],"mappings":";;;;;AAMA;;iBAAgB,eAAA,CAAgB,QAAA,WAAmB,GAAG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"productIds-CCewi4tC.d.ts","names":[],"sources":["../src/consts/src/consts/productIds.ts"],"mappings":";cAAa,gBAAA;AAAA,cAEA,cAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"productIds-COuWMJat.d.cts","names":[],"sources":["../src/consts/src/consts/productIds.ts"],"mappings":";cAAa,gBAAA;AAAA,cAEA,cAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"recvTime-C6ulZVuR.d.ts","names":[],"sources":["../src/utils/orders/src/utils/orders/recvTime.ts"],"mappings":";;AAMA;;;;AAAyE;iBAAzD,kBAAA,CAAmB,iBAAsC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"recvTime-lSkRnXFh.d.cts","names":[],"sources":["../src/utils/orders/src/utils/orders/recvTime.ts"],"mappings":";;AAMA;;;;AAAyE;iBAAzD,kBAAA,CAAmB,iBAAsC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"signableRequestType-BV11vCXW.d.cts","names":[],"sources":["../src/eip712/src/eip712/signableRequestType.ts"],"mappings":";;;;;AAoBA;UAAiB,2BAAA;EACf,QAAA,EAAU,mBAAA;EACV,aAAA,EAAe,wBAAA;EACf,qBAAA,EAAuB,+BAAA;EACvB,0BAAA,EAA4B,qCAAA;EAC5B,WAAA,EAAa,sBAAA;EACb,oBAAA,EAAsB,+BAAA;EACtB,mBAAA,EAAqB,6BAAA;EACrB,QAAA,EAAU,mBAAA;EACV,WAAA,EAAa,iBAAA;EACb,qBAAA,EAAuB,gCAAA;EACvB,cAAA,EAAgB,yBAAA;EAChB,iBAAA,EAAmB,4BAAA;EACnB,mBAAA,EAAqB,8BAAA;EACrB,sBAAA,EAAwB,gCAAA;AAAA;AAAA,KAGd,mBAAA,SAA4B,2BAA2B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"signableRequestType-DWpXrjGE.d.ts","names":[],"sources":["../src/eip712/src/eip712/signableRequestType.ts"],"mappings":";;;;;AAoBA;UAAiB,2BAAA;EACf,QAAA,EAAU,mBAAA;EACV,aAAA,EAAe,wBAAA;EACf,qBAAA,EAAuB,+BAAA;EACvB,0BAAA,EAA4B,qCAAA;EAC5B,WAAA,EAAa,sBAAA;EACb,oBAAA,EAAsB,+BAAA;EACtB,mBAAA,EAAqB,6BAAA;EACrB,QAAA,EAAU,mBAAA;EACV,WAAA,EAAa,iBAAA;EACb,qBAAA,EAAuB,gCAAA;EACvB,cAAA,EAAgB,yBAAA;EAChB,iBAAA,EAAmB,4BAAA;EACnB,mBAAA,EAAqB,8BAAA;EACrB,sBAAA,EAAwB,gCAAA;AAAA;AAAA,KAGd,mBAAA,SAA4B,2BAA2B"}