@nadohq/shared 0.1.0-alpha.8 → 0.1.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 (290) hide show
  1. package/dist/abis/index.cjs +12 -12
  2. package/dist/abis/index.cjs.map +1 -1
  3. package/dist/abis/index.d.cts +6 -6
  4. package/dist/abis/index.d.ts +6 -6
  5. package/dist/abis/index.js +6 -6
  6. package/dist/abis/index.js.map +1 -1
  7. package/dist/{chunk-TUJ4HQKF.js → chunk-2GPIH63F.js} +3 -3
  8. package/dist/chunk-2GPIH63F.js.map +1 -0
  9. package/dist/consts/chainEnvToChain.cjs +2 -2
  10. package/dist/consts/chainEnvToChain.cjs.map +1 -1
  11. package/dist/consts/chainEnvToChain.d.cts +329 -39
  12. package/dist/consts/chainEnvToChain.d.ts +329 -39
  13. package/dist/consts/chainEnvToChain.js +3 -3
  14. package/dist/consts/chainEnvToChain.js.map +1 -1
  15. package/dist/consts/productIds.cjs +1 -1
  16. package/dist/consts/productIds.cjs.map +1 -1
  17. package/dist/consts/productIds.d.cts +1 -1
  18. package/dist/consts/productIds.d.ts +1 -1
  19. package/dist/consts/productIds.js +1 -1
  20. package/dist/consts/productIds.js.map +1 -1
  21. package/dist/deployments/core/deployment.inkMainnet.json +13 -0
  22. package/dist/deployments/core/deployment.inkSepolia.json +13 -0
  23. package/dist/deployments/index.cjs +6 -6
  24. package/dist/deployments/index.cjs.map +1 -1
  25. package/dist/deployments/index.js +5 -5
  26. package/dist/deployments/index.js.map +1 -1
  27. package/dist/eip712/eip712ValueTypes.cjs.map +1 -1
  28. package/dist/eip712/eip712ValueTypes.d.cts +3 -3
  29. package/dist/eip712/eip712ValueTypes.d.ts +3 -3
  30. package/dist/eip712/getNadoEIP712Domain.cjs.map +1 -1
  31. package/dist/eip712/getNadoEIP712Domain.js.map +1 -1
  32. package/dist/eip712/getNadoEIP712PrimaryType.d.cts +1 -1
  33. package/dist/eip712/getNadoEIP712PrimaryType.d.ts +1 -1
  34. package/dist/eip712/getNadoEIP712Types.d.cts +1 -1
  35. package/dist/eip712/getNadoEIP712Types.d.ts +1 -1
  36. package/dist/eip712/getNadoEIP712Values.d.cts +1 -1
  37. package/dist/eip712/getNadoEIP712Values.d.ts +1 -1
  38. package/dist/eip712/getSignedTransactionRequest.d.cts +1 -1
  39. package/dist/eip712/getSignedTransactionRequest.d.ts +1 -1
  40. package/dist/eip712/index.cjs +13 -13
  41. package/dist/eip712/index.cjs.map +1 -1
  42. package/dist/eip712/index.d.cts +9 -9
  43. package/dist/eip712/index.d.ts +9 -9
  44. package/dist/eip712/index.js +6 -6
  45. package/dist/eip712/index.js.map +1 -1
  46. package/dist/eip712/orderDigest.d.cts +1 -1
  47. package/dist/eip712/orderDigest.d.ts +1 -1
  48. package/dist/eip712/signableRequestType.d.cts +1 -1
  49. package/dist/eip712/signableRequestType.d.ts +1 -1
  50. package/dist/eip712/signatureParamTypes.cjs.map +1 -1
  51. package/dist/eip712/signatureParamTypes.d.cts +13 -13
  52. package/dist/eip712/signatureParamTypes.d.ts +13 -13
  53. package/dist/encoding/encoding.cjs +21 -0
  54. package/dist/encoding/encoding.cjs.map +1 -1
  55. package/dist/encoding/encoding.d.cts +28 -4
  56. package/dist/encoding/encoding.d.ts +28 -4
  57. package/dist/encoding/encoding.js +24 -1
  58. package/dist/encoding/encoding.js.map +1 -1
  59. package/dist/encoding/index.d.cts +3 -3
  60. package/dist/encoding/index.d.ts +3 -3
  61. package/dist/execute/approveDepositAllowance.cjs.map +1 -1
  62. package/dist/execute/approveDepositAllowance.d.cts +2 -2
  63. package/dist/execute/approveDepositAllowance.d.ts +2 -2
  64. package/dist/execute/approveDepositAllowance.js.map +1 -1
  65. package/dist/execute/depositCollateral.cjs.map +1 -1
  66. package/dist/execute/depositCollateral.d.cts +2 -2
  67. package/dist/execute/depositCollateral.d.ts +2 -2
  68. package/dist/execute/depositCollateral.js.map +1 -1
  69. package/dist/execute/index.d.cts +1 -1
  70. package/dist/execute/index.d.ts +1 -1
  71. package/dist/index.d.cts +35 -35
  72. package/dist/index.d.ts +35 -35
  73. package/dist/types/ChainEnv.cjs +1 -1
  74. package/dist/types/ChainEnv.cjs.map +1 -1
  75. package/dist/types/ChainEnv.d.cts +2 -2
  76. package/dist/types/ChainEnv.d.ts +2 -2
  77. package/dist/types/ChainEnv.js +1 -1
  78. package/dist/types/ChainEnv.js.map +1 -1
  79. package/dist/types/balanceTypes.cjs.map +1 -1
  80. package/dist/types/balanceTypes.d.cts +5 -5
  81. package/dist/types/balanceTypes.d.ts +5 -5
  82. package/dist/types/healthTypes.cjs.map +1 -1
  83. package/dist/types/healthTypes.d.cts +4 -4
  84. package/dist/types/healthTypes.d.ts +4 -4
  85. package/dist/types/index.cjs +7 -7
  86. package/dist/types/index.cjs.map +1 -1
  87. package/dist/types/index.d.cts +4 -4
  88. package/dist/types/index.d.ts +4 -4
  89. package/dist/types/index.js +3 -3
  90. package/dist/types/index.js.map +1 -1
  91. package/dist/types/marketTypes.cjs.map +1 -1
  92. package/dist/types/marketTypes.d.cts +4 -4
  93. package/dist/types/marketTypes.d.ts +4 -4
  94. package/dist/types/orderAppendixTypes.cjs.map +1 -1
  95. package/dist/types/orderAppendixTypes.d.cts +27 -3
  96. package/dist/types/orderAppendixTypes.d.ts +27 -3
  97. package/dist/types/productTypes.cjs.map +1 -1
  98. package/dist/types/productTypes.d.cts +16 -16
  99. package/dist/types/productTypes.d.ts +16 -16
  100. package/dist/types/productTypes.js.map +1 -1
  101. package/dist/types/viemTypes.d.cts +1 -1
  102. package/dist/types/viemTypes.d.ts +1 -1
  103. package/dist/utils/balanceValue.cjs.map +1 -1
  104. package/dist/utils/balanceValue.d.cts +5 -5
  105. package/dist/utils/balanceValue.d.ts +5 -5
  106. package/dist/utils/balanceValue.js.map +1 -1
  107. package/dist/utils/bytes32.d.cts +1 -1
  108. package/dist/utils/bytes32.d.ts +1 -1
  109. package/dist/utils/bytes32.test.cjs +2 -2
  110. package/dist/utils/bytes32.test.cjs.map +1 -1
  111. package/dist/utils/bytes32.test.js +1 -1
  112. package/dist/utils/createDeterministicLinkedSignerPrivateKey.cjs.map +1 -1
  113. package/dist/utils/createDeterministicLinkedSignerPrivateKey.js.map +1 -1
  114. package/dist/utils/index.cjs +12 -12
  115. package/dist/utils/index.cjs.map +1 -1
  116. package/dist/utils/index.d.cts +22 -22
  117. package/dist/utils/index.d.ts +22 -22
  118. package/dist/utils/index.js +6 -6
  119. package/dist/utils/index.js.map +1 -1
  120. package/dist/utils/interest.cjs +9 -9
  121. package/dist/utils/interest.cjs.map +1 -1
  122. package/dist/utils/interest.d.cts +8 -8
  123. package/dist/utils/interest.d.ts +8 -8
  124. package/dist/utils/interest.js +10 -14
  125. package/dist/utils/interest.js.map +1 -1
  126. package/dist/utils/math/{BigDecimals.cjs → BigNumbers.cjs} +13 -13
  127. package/dist/utils/math/BigNumbers.cjs.map +1 -0
  128. package/dist/utils/math/BigNumbers.d.cts +10 -0
  129. package/dist/utils/math/BigNumbers.d.ts +10 -0
  130. package/dist/utils/math/BigNumbers.js +14 -0
  131. package/dist/utils/math/BigNumbers.js.map +1 -0
  132. package/dist/utils/math/{bigDecimal.cjs → bigNumber.cjs} +12 -14
  133. package/dist/utils/math/bigNumber.cjs.map +1 -0
  134. package/dist/utils/math/bigNumber.d.cts +17 -0
  135. package/dist/utils/math/bigNumber.d.ts +17 -0
  136. package/dist/utils/math/bigNumber.js +22 -0
  137. package/dist/utils/math/bigNumber.js.map +1 -0
  138. package/dist/utils/math/clamp.cjs +3 -3
  139. package/dist/utils/math/clamp.cjs.map +1 -1
  140. package/dist/utils/math/clamp.d.cts +5 -5
  141. package/dist/utils/math/clamp.d.ts +5 -5
  142. package/dist/utils/math/clamp.js +2 -2
  143. package/dist/utils/math/clamp.js.map +1 -1
  144. package/dist/utils/math/decimalAdjustment.cjs +5 -5
  145. package/dist/utils/math/decimalAdjustment.cjs.map +1 -1
  146. package/dist/utils/math/decimalAdjustment.d.cts +6 -6
  147. package/dist/utils/math/decimalAdjustment.d.ts +6 -6
  148. package/dist/utils/math/decimalAdjustment.js +5 -5
  149. package/dist/utils/math/decimalAdjustment.js.map +1 -1
  150. package/dist/utils/math/index.cjs +10 -10
  151. package/dist/utils/math/index.cjs.map +1 -1
  152. package/dist/utils/math/index.d.cts +7 -7
  153. package/dist/utils/math/index.d.ts +7 -7
  154. package/dist/utils/math/index.js +5 -5
  155. package/dist/utils/math/index.js.map +1 -1
  156. package/dist/utils/math/{sumBigDecimalBy.cjs → sumBigNumberBy.cjs} +10 -10
  157. package/dist/utils/math/sumBigNumberBy.cjs.map +1 -0
  158. package/dist/utils/math/sumBigNumberBy.d.cts +10 -0
  159. package/dist/utils/math/sumBigNumberBy.d.ts +10 -0
  160. package/dist/utils/math/sumBigNumberBy.js +13 -0
  161. package/dist/utils/math/sumBigNumberBy.js.map +1 -0
  162. package/dist/utils/math/toBigInt.cjs.map +1 -1
  163. package/dist/utils/math/toBigInt.d.cts +3 -3
  164. package/dist/utils/math/toBigInt.d.ts +3 -3
  165. package/dist/utils/math/toBigInt.js.map +1 -1
  166. package/dist/utils/math/toIntegerString.cjs +2 -2
  167. package/dist/utils/math/toIntegerString.cjs.map +1 -1
  168. package/dist/utils/math/toIntegerString.d.cts +3 -3
  169. package/dist/utils/math/toIntegerString.d.ts +3 -3
  170. package/dist/utils/math/toIntegerString.js +2 -2
  171. package/dist/utils/math/toIntegerString.js.map +1 -1
  172. package/dist/utils/orders/appendix/appendixIsolatedValue.cjs +50 -0
  173. package/dist/utils/orders/appendix/appendixIsolatedValue.cjs.map +1 -0
  174. package/dist/utils/orders/appendix/appendixIsolatedValue.d.cts +26 -0
  175. package/dist/utils/orders/appendix/appendixIsolatedValue.d.ts +26 -0
  176. package/dist/utils/orders/appendix/appendixIsolatedValue.js +31 -0
  177. package/dist/utils/orders/appendix/appendixIsolatedValue.js.map +1 -0
  178. package/dist/utils/orders/appendix/appendixTwapValue.cjs +3 -4
  179. package/dist/utils/orders/appendix/appendixTwapValue.cjs.map +1 -1
  180. package/dist/utils/orders/appendix/appendixTwapValue.d.cts +12 -14
  181. package/dist/utils/orders/appendix/appendixTwapValue.d.ts +12 -14
  182. package/dist/utils/orders/appendix/appendixTwapValue.js +3 -4
  183. package/dist/utils/orders/appendix/appendixTwapValue.js.map +1 -1
  184. package/dist/utils/orders/appendix/index.cjs +4 -4
  185. package/dist/utils/orders/appendix/index.cjs.map +1 -1
  186. package/dist/utils/orders/appendix/index.d.cts +3 -3
  187. package/dist/utils/orders/appendix/index.d.ts +3 -3
  188. package/dist/utils/orders/appendix/index.js +2 -2
  189. package/dist/utils/orders/appendix/index.js.map +1 -1
  190. package/dist/utils/orders/appendix/orderAppendix.test.cjs +67 -14
  191. package/dist/utils/orders/appendix/orderAppendix.test.cjs.map +1 -1
  192. package/dist/utils/orders/appendix/orderAppendix.test.js +66 -13
  193. package/dist/utils/orders/appendix/orderAppendix.test.js.map +1 -1
  194. package/dist/utils/orders/appendix/packOrderAppendix.cjs +9 -5
  195. package/dist/utils/orders/appendix/packOrderAppendix.cjs.map +1 -1
  196. package/dist/utils/orders/appendix/packOrderAppendix.d.cts +1 -1
  197. package/dist/utils/orders/appendix/packOrderAppendix.d.ts +1 -1
  198. package/dist/utils/orders/appendix/packOrderAppendix.js +9 -5
  199. package/dist/utils/orders/appendix/packOrderAppendix.js.map +1 -1
  200. package/dist/utils/orders/appendix/types.cjs.map +1 -1
  201. package/dist/utils/orders/appendix/types.d.cts +6 -4
  202. package/dist/utils/orders/appendix/types.d.ts +6 -4
  203. package/dist/utils/orders/appendix/unpackOrderAppendix.cjs +22 -5
  204. package/dist/utils/orders/appendix/unpackOrderAppendix.cjs.map +1 -1
  205. package/dist/utils/orders/appendix/unpackOrderAppendix.d.cts +2 -2
  206. package/dist/utils/orders/appendix/unpackOrderAppendix.d.ts +2 -2
  207. package/dist/utils/orders/appendix/unpackOrderAppendix.js +22 -5
  208. package/dist/utils/orders/appendix/unpackOrderAppendix.js.map +1 -1
  209. package/dist/utils/orders/index.cjs +3 -3
  210. package/dist/utils/orders/index.cjs.map +1 -1
  211. package/dist/utils/orders/index.d.cts +5 -5
  212. package/dist/utils/orders/index.d.ts +5 -5
  213. package/dist/utils/orders/index.js +1 -1
  214. package/dist/utils/orders/index.js.map +1 -1
  215. package/dist/utils/productTypeFilter.cjs.map +1 -1
  216. package/dist/utils/productTypeFilter.d.cts +2 -2
  217. package/dist/utils/productTypeFilter.d.ts +2 -2
  218. package/dist/utils/productTypeFilter.js.map +1 -1
  219. package/dist/utils/toPrintableObject.cjs +29 -11
  220. package/dist/utils/toPrintableObject.cjs.map +1 -1
  221. package/dist/utils/toPrintableObject.d.cts +7 -2
  222. package/dist/utils/toPrintableObject.d.ts +7 -2
  223. package/dist/utils/toPrintableObject.js +19 -11
  224. package/dist/utils/toPrintableObject.js.map +1 -1
  225. package/package.json +14 -7
  226. package/src/abis/index.ts +6 -6
  227. package/src/consts/chainEnvToChain.ts +2 -2
  228. package/src/consts/productIds.ts +1 -1
  229. package/src/deployments/core/deployment.inkMainnet.json +13 -0
  230. package/src/deployments/core/deployment.inkSepolia.json +13 -0
  231. package/src/deployments/index.ts +5 -5
  232. package/src/eip712/eip712ValueTypes.ts +2 -2
  233. package/src/eip712/getNadoEIP712Domain.ts +1 -1
  234. package/src/eip712/index.ts +6 -6
  235. package/src/eip712/signatureParamTypes.ts +13 -13
  236. package/src/encoding/encoding.ts +43 -1
  237. package/src/execute/approveDepositAllowance.ts +2 -2
  238. package/src/execute/depositCollateral.ts +2 -2
  239. package/src/types/ChainEnv.ts +1 -1
  240. package/src/types/balanceTypes.ts +4 -4
  241. package/src/types/healthTypes.ts +4 -4
  242. package/src/types/index.ts +3 -3
  243. package/src/types/marketTypes.ts +4 -4
  244. package/src/types/orderAppendixTypes.ts +27 -2
  245. package/src/types/productTypes.ts +16 -16
  246. package/src/utils/balanceValue.ts +4 -4
  247. package/src/utils/createDeterministicLinkedSignerPrivateKey.ts +1 -1
  248. package/src/utils/index.ts +6 -6
  249. package/src/utils/interest.ts +26 -31
  250. package/src/utils/math/BigNumbers.ts +8 -0
  251. package/src/utils/math/bigNumber.ts +31 -0
  252. package/src/utils/math/clamp.ts +4 -7
  253. package/src/utils/math/decimalAdjustment.ts +11 -10
  254. package/src/utils/math/index.ts +5 -5
  255. package/src/utils/math/sumBigNumberBy.ts +18 -0
  256. package/src/utils/math/toBigInt.ts +3 -3
  257. package/src/utils/math/toIntegerString.ts +4 -4
  258. package/src/utils/orders/appendix/appendixIsolatedValue.ts +49 -0
  259. package/src/utils/orders/appendix/appendixTwapValue.ts +14 -19
  260. package/src/utils/orders/appendix/index.ts +2 -2
  261. package/src/utils/orders/appendix/orderAppendix.test.ts +68 -11
  262. package/src/utils/orders/appendix/packOrderAppendix.ts +10 -6
  263. package/src/utils/orders/appendix/types.ts +9 -7
  264. package/src/utils/orders/appendix/unpackOrderAppendix.ts +24 -7
  265. package/src/utils/orders/index.ts +1 -1
  266. package/src/utils/productTypeFilter.ts +2 -2
  267. package/src/utils/toPrintableObject.ts +32 -12
  268. package/dist/chunk-TUJ4HQKF.js.map +0 -1
  269. package/dist/deployments/core/deployment.InkSepolia.json +0 -13
  270. package/dist/deployments/core/deployment.arbitrumOne.json +0 -18
  271. package/dist/utils/math/BigDecimals.cjs.map +0 -1
  272. package/dist/utils/math/BigDecimals.d.cts +0 -8
  273. package/dist/utils/math/BigDecimals.d.ts +0 -8
  274. package/dist/utils/math/BigDecimals.js +0 -14
  275. package/dist/utils/math/BigDecimals.js.map +0 -1
  276. package/dist/utils/math/bigDecimal.cjs.map +0 -1
  277. package/dist/utils/math/bigDecimal.d.cts +0 -18
  278. package/dist/utils/math/bigDecimal.d.ts +0 -18
  279. package/dist/utils/math/bigDecimal.js +0 -23
  280. package/dist/utils/math/bigDecimal.js.map +0 -1
  281. package/dist/utils/math/sumBigDecimalBy.cjs.map +0 -1
  282. package/dist/utils/math/sumBigDecimalBy.d.cts +0 -10
  283. package/dist/utils/math/sumBigDecimalBy.d.ts +0 -10
  284. package/dist/utils/math/sumBigDecimalBy.js +0 -13
  285. package/dist/utils/math/sumBigDecimalBy.js.map +0 -1
  286. package/src/deployments/core/deployment.InkSepolia.json +0 -13
  287. package/src/deployments/core/deployment.arbitrumOne.json +0 -18
  288. package/src/utils/math/BigDecimals.ts +0 -8
  289. package/src/utils/math/bigDecimal.ts +0 -32
  290. package/src/utils/math/sumBigDecimalBy.ts +0 -18
@@ -24,7 +24,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
24
24
  ensRegistry?: viem.ChainContract | undefined;
25
25
  ensUniversalResolver?: viem.ChainContract | undefined;
26
26
  multicall3?: viem.ChainContract | undefined;
27
- universalSignatureVerifier?: viem.ChainContract | undefined;
27
+ erc6492Verifier?: viem.ChainContract | undefined;
28
28
  } | undefined;
29
29
  ensTlds?: readonly string[] | undefined;
30
30
  id: 1337;
@@ -34,6 +34,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
34
34
  readonly name: "Ether";
35
35
  readonly symbol: "ETH";
36
36
  };
37
+ experimental_preconfirmationTime?: number | undefined | undefined;
37
38
  rpcUrls: {
38
39
  readonly default: {
39
40
  readonly http: readonly ["http://127.0.0.1:8545"];
@@ -44,41 +45,13 @@ declare const CHAIN_ENV_TO_CHAIN: {
44
45
  custom?: Record<string, unknown> | undefined;
45
46
  fees?: viem.ChainFees<undefined> | undefined;
46
47
  formatters?: undefined;
47
- serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
48
- };
49
- readonly arbitrum: {
50
- blockExplorers: {
51
- readonly default: {
52
- readonly name: "Arbiscan";
53
- readonly url: "https://arbiscan.io";
54
- readonly apiUrl: "https://api.arbiscan.io/api";
55
- };
56
- };
57
- blockTime?: number | undefined | undefined;
58
- contracts: {
59
- readonly multicall3: {
60
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
61
- readonly blockCreated: 7654707;
62
- };
63
- };
64
- ensTlds?: readonly string[] | undefined;
65
- id: 42161;
66
- name: "Arbitrum One";
67
- nativeCurrency: {
68
- readonly name: "Ether";
69
- readonly symbol: "ETH";
70
- readonly decimals: 18;
71
- };
72
- rpcUrls: {
73
- readonly default: {
74
- readonly http: readonly ["https://arb1.arbitrum.io/rpc"];
75
- };
76
- };
77
- sourceId?: number | undefined | undefined;
78
- testnet?: boolean | undefined | undefined;
79
- custom?: Record<string, unknown> | undefined;
80
- fees?: viem.ChainFees<undefined> | undefined;
81
- formatters?: undefined;
48
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
49
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
50
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
51
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
52
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
53
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
54
+ }] | undefined;
82
55
  serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
83
56
  };
84
57
  readonly inkTestnet: {
@@ -137,6 +110,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
137
110
  readonly symbol: "ETH";
138
111
  readonly decimals: 18;
139
112
  };
113
+ experimental_preconfirmationTime?: number | undefined | undefined;
140
114
  rpcUrls: {
141
115
  readonly default: {
142
116
  readonly http: readonly ["https://rpc-gel-sepolia.inkonchain.com"];
@@ -149,7 +123,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
149
123
  formatters: {
150
124
  readonly block: {
151
125
  exclude: [] | undefined;
152
- format: (args: viem_chains.OpStackRpcBlock) => {
126
+ format: (args: viem_chains.OpStackRpcBlock, action?: string | undefined) => {
153
127
  baseFeePerGas: bigint | null;
154
128
  blobGasUsed: bigint;
155
129
  difficulty: bigint;
@@ -182,7 +156,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
182
156
  };
183
157
  readonly transaction: {
184
158
  exclude: [] | undefined;
185
- format: (args: viem_chains.OpStackRpcTransaction) => ({
159
+ format: (args: viem_chains.OpStackRpcTransaction, action?: string | undefined) => ({
186
160
  blockHash: `0x${string}` | null;
187
161
  blockNumber: bigint | null;
188
162
  from: viem.Address;
@@ -210,17 +184,326 @@ declare const CHAIN_ENV_TO_CHAIN: {
210
184
  r: viem.Hex;
211
185
  s: viem.Hex;
212
186
  v: bigint;
187
+ value: bigint;
188
+ gas: bigint;
213
189
  to: viem.Address | null;
214
190
  from: viem.Address;
191
+ nonce: number;
192
+ blockHash: `0x${string}` | null;
193
+ blockNumber: bigint | null;
194
+ transactionIndex: number | null;
195
+ hash: viem.Hash;
196
+ input: viem.Hex;
197
+ typeHex: viem.Hex | null;
198
+ accessList?: undefined | undefined;
199
+ authorizationList?: undefined | undefined;
200
+ blobVersionedHashes?: undefined | undefined;
201
+ chainId?: number | undefined;
202
+ yParity?: undefined | undefined;
203
+ type: "legacy";
204
+ gasPrice: bigint;
205
+ maxFeePerBlobGas?: undefined | undefined;
206
+ maxFeePerGas?: undefined | undefined;
207
+ maxPriorityFeePerGas?: undefined | undefined;
208
+ isSystemTx?: undefined | undefined;
209
+ mint?: undefined | undefined;
210
+ sourceHash?: undefined | undefined;
211
+ } | {
212
+ blockHash: `0x${string}` | null;
213
+ blockNumber: bigint | null;
214
+ from: viem.Address;
215
215
  gas: bigint;
216
+ hash: viem.Hash;
217
+ input: viem.Hex;
216
218
  nonce: number;
219
+ r: viem.Hex;
220
+ s: viem.Hex;
221
+ to: viem.Address | null;
222
+ transactionIndex: number | null;
223
+ typeHex: viem.Hex | null;
224
+ v: bigint;
217
225
  value: bigint;
226
+ yParity: number;
227
+ accessList: viem.AccessList;
228
+ authorizationList?: undefined | undefined;
229
+ blobVersionedHashes?: undefined | undefined;
230
+ chainId: number;
231
+ type: "eip2930";
232
+ gasPrice: bigint;
233
+ maxFeePerBlobGas?: undefined | undefined;
234
+ maxFeePerGas?: undefined | undefined;
235
+ maxPriorityFeePerGas?: undefined | undefined;
236
+ isSystemTx?: undefined | undefined;
237
+ mint?: undefined | undefined;
238
+ sourceHash?: undefined | undefined;
239
+ } | {
218
240
  blockHash: `0x${string}` | null;
219
241
  blockNumber: bigint | null;
242
+ from: viem.Address;
243
+ gas: bigint;
220
244
  hash: viem.Hash;
221
245
  input: viem.Hex;
246
+ nonce: number;
247
+ r: viem.Hex;
248
+ s: viem.Hex;
249
+ to: viem.Address | null;
222
250
  transactionIndex: number | null;
223
251
  typeHex: viem.Hex | null;
252
+ v: bigint;
253
+ value: bigint;
254
+ yParity: number;
255
+ accessList: viem.AccessList;
256
+ authorizationList?: undefined | undefined;
257
+ blobVersionedHashes?: undefined | undefined;
258
+ chainId: number;
259
+ type: "eip1559";
260
+ gasPrice?: undefined | undefined;
261
+ maxFeePerBlobGas?: undefined | undefined;
262
+ maxFeePerGas: bigint;
263
+ maxPriorityFeePerGas: bigint;
264
+ isSystemTx?: undefined | undefined;
265
+ mint?: undefined | undefined;
266
+ sourceHash?: undefined | undefined;
267
+ } | {
268
+ blockHash: `0x${string}` | null;
269
+ blockNumber: bigint | null;
270
+ from: viem.Address;
271
+ gas: bigint;
272
+ hash: viem.Hash;
273
+ input: viem.Hex;
274
+ nonce: number;
275
+ r: viem.Hex;
276
+ s: viem.Hex;
277
+ to: viem.Address | null;
278
+ transactionIndex: number | null;
279
+ typeHex: viem.Hex | null;
280
+ v: bigint;
281
+ value: bigint;
282
+ yParity: number;
283
+ accessList: viem.AccessList;
284
+ authorizationList?: undefined | undefined;
285
+ blobVersionedHashes: readonly viem.Hex[];
286
+ chainId: number;
287
+ type: "eip4844";
288
+ gasPrice?: undefined | undefined;
289
+ maxFeePerBlobGas: bigint;
290
+ maxFeePerGas: bigint;
291
+ maxPriorityFeePerGas: bigint;
292
+ isSystemTx?: undefined | undefined;
293
+ mint?: undefined | undefined;
294
+ sourceHash?: undefined | undefined;
295
+ } | {
296
+ blockHash: `0x${string}` | null;
297
+ blockNumber: bigint | null;
298
+ from: viem.Address;
299
+ gas: bigint;
300
+ hash: viem.Hash;
301
+ input: viem.Hex;
302
+ nonce: number;
303
+ r: viem.Hex;
304
+ s: viem.Hex;
305
+ to: viem.Address | null;
306
+ transactionIndex: number | null;
307
+ typeHex: viem.Hex | null;
308
+ v: bigint;
309
+ value: bigint;
310
+ yParity: number;
311
+ accessList: viem.AccessList;
312
+ authorizationList: viem.SignedAuthorizationList;
313
+ blobVersionedHashes?: undefined | undefined;
314
+ chainId: number;
315
+ type: "eip7702";
316
+ gasPrice?: undefined | undefined;
317
+ maxFeePerBlobGas?: undefined | undefined;
318
+ maxFeePerGas: bigint;
319
+ maxPriorityFeePerGas: bigint;
320
+ isSystemTx?: undefined | undefined;
321
+ mint?: undefined | undefined;
322
+ sourceHash?: undefined | undefined;
323
+ }) & {};
324
+ type: "transaction";
325
+ };
326
+ readonly transactionReceipt: {
327
+ exclude: [] | undefined;
328
+ format: (args: viem_chains.OpStackRpcTransactionReceipt, action?: string | undefined) => {
329
+ blobGasPrice?: bigint | undefined;
330
+ blobGasUsed?: bigint | undefined;
331
+ blockHash: viem.Hash;
332
+ blockNumber: bigint;
333
+ contractAddress: viem.Address | null | undefined;
334
+ cumulativeGasUsed: bigint;
335
+ effectiveGasPrice: bigint;
336
+ from: viem.Address;
337
+ gasUsed: bigint;
338
+ logs: viem.Log<bigint, number, false>[];
339
+ logsBloom: viem.Hex;
340
+ root?: `0x${string}` | undefined;
341
+ status: "success" | "reverted";
342
+ to: viem.Address | null;
343
+ transactionHash: viem.Hash;
344
+ transactionIndex: number;
345
+ type: viem.TransactionType;
346
+ l1GasPrice: bigint | null;
347
+ l1GasUsed: bigint | null;
348
+ l1Fee: bigint | null;
349
+ l1FeeScalar: number | null;
350
+ } & {};
351
+ type: "transactionReceipt";
352
+ };
353
+ };
354
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
355
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
356
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
357
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
358
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
359
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
360
+ }] | undefined;
361
+ serializers: {
362
+ readonly transaction: typeof viem_chains.serializeTransactionOpStack;
363
+ };
364
+ };
365
+ readonly inkMainnet: {
366
+ blockExplorers: {
367
+ readonly default: {
368
+ readonly name: "Blockscout";
369
+ readonly url: "https://explorer.inkonchain.com";
370
+ readonly apiUrl: "https://explorer.inkonchain.com/api/v2";
371
+ };
372
+ };
373
+ blockTime: 2000;
374
+ contracts: {
375
+ readonly disputeGameFactory: {
376
+ readonly 1: {
377
+ readonly address: "0x10d7b35078d3baabb96dd45a9143b94be65b12cd";
378
+ };
379
+ };
380
+ readonly portal: {
381
+ readonly 1: {
382
+ readonly address: "0x5d66c1782664115999c47c9fa5cd031f495d3e4f";
383
+ };
384
+ };
385
+ readonly l1StandardBridge: {
386
+ readonly 1: {
387
+ readonly address: "0x88ff1e5b602916615391f55854588efcbb7663f0";
388
+ };
389
+ };
390
+ readonly gasPriceOracle: {
391
+ readonly address: "0x420000000000000000000000000000000000000F";
392
+ };
393
+ readonly l1Block: {
394
+ readonly address: "0x4200000000000000000000000000000000000015";
395
+ };
396
+ readonly l2CrossDomainMessenger: {
397
+ readonly address: "0x4200000000000000000000000000000000000007";
398
+ };
399
+ readonly l2Erc721Bridge: {
400
+ readonly address: "0x4200000000000000000000000000000000000014";
401
+ };
402
+ readonly l2StandardBridge: {
403
+ readonly address: "0x4200000000000000000000000000000000000010";
404
+ };
405
+ readonly l2ToL1MessagePasser: {
406
+ readonly address: "0x4200000000000000000000000000000000000016";
407
+ };
408
+ readonly multicall3: {
409
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
410
+ readonly blockCreated: 0;
411
+ };
412
+ };
413
+ ensTlds?: readonly string[] | undefined;
414
+ id: 57073;
415
+ name: "Ink";
416
+ nativeCurrency: {
417
+ readonly name: "Ether";
418
+ readonly symbol: "ETH";
419
+ readonly decimals: 18;
420
+ };
421
+ experimental_preconfirmationTime?: number | undefined | undefined;
422
+ rpcUrls: {
423
+ readonly default: {
424
+ readonly http: readonly ["https://rpc-gel.inkonchain.com", "https://rpc-qnd.inkonchain.com"];
425
+ readonly webSocket: readonly ["wss://rpc-gel.inkonchain.com", "wss://rpc-qnd.inkonchain.com"];
426
+ };
427
+ };
428
+ sourceId: 1;
429
+ testnet: false;
430
+ custom?: Record<string, unknown> | undefined;
431
+ fees?: viem.ChainFees<undefined> | undefined;
432
+ formatters: {
433
+ readonly block: {
434
+ exclude: [] | undefined;
435
+ format: (args: viem_chains.OpStackRpcBlock, action?: string | undefined) => {
436
+ baseFeePerGas: bigint | null;
437
+ blobGasUsed: bigint;
438
+ difficulty: bigint;
439
+ excessBlobGas: bigint;
440
+ extraData: viem.Hex;
441
+ gasLimit: bigint;
442
+ gasUsed: bigint;
443
+ hash: `0x${string}` | null;
444
+ logsBloom: `0x${string}` | null;
445
+ miner: viem.Address;
446
+ mixHash: viem.Hash;
447
+ nonce: `0x${string}` | null;
448
+ number: bigint | null;
449
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
450
+ parentHash: viem.Hash;
451
+ receiptsRoot: viem.Hex;
452
+ sealFields: viem.Hex[];
453
+ sha3Uncles: viem.Hash;
454
+ size: bigint;
455
+ stateRoot: viem.Hash;
456
+ timestamp: bigint;
457
+ totalDifficulty: bigint | null;
458
+ transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
459
+ transactionsRoot: viem.Hash;
460
+ uncles: viem.Hash[];
461
+ withdrawals?: viem.Withdrawal[] | undefined | undefined;
462
+ withdrawalsRoot?: `0x${string}` | undefined;
463
+ } & {};
464
+ type: "block";
465
+ };
466
+ readonly transaction: {
467
+ exclude: [] | undefined;
468
+ format: (args: viem_chains.OpStackRpcTransaction, action?: string | undefined) => ({
469
+ blockHash: `0x${string}` | null;
470
+ blockNumber: bigint | null;
471
+ from: viem.Address;
472
+ gas: bigint;
473
+ hash: viem.Hash;
474
+ input: viem.Hex;
475
+ nonce: number;
476
+ r: viem.Hex;
477
+ s: viem.Hex;
478
+ to: viem.Address | null;
479
+ transactionIndex: number | null;
480
+ typeHex: viem.Hex | null;
481
+ v: bigint;
482
+ value: bigint;
483
+ yParity: number;
484
+ gasPrice?: undefined | undefined;
485
+ maxFeePerBlobGas?: undefined | undefined;
486
+ maxFeePerGas: bigint;
487
+ maxPriorityFeePerGas: bigint;
488
+ isSystemTx?: boolean;
489
+ mint?: bigint | undefined | undefined;
490
+ sourceHash: viem.Hex;
491
+ type: "deposit";
492
+ } | {
493
+ r: viem.Hex;
494
+ s: viem.Hex;
495
+ v: bigint;
496
+ value: bigint;
497
+ gas: bigint;
498
+ to: viem.Address | null;
499
+ from: viem.Address;
500
+ nonce: number;
501
+ blockHash: `0x${string}` | null;
502
+ blockNumber: bigint | null;
503
+ transactionIndex: number | null;
504
+ hash: viem.Hash;
505
+ input: viem.Hex;
506
+ typeHex: viem.Hex | null;
224
507
  accessList?: undefined | undefined;
225
508
  authorizationList?: undefined | undefined;
226
509
  blobVersionedHashes?: undefined | undefined;
@@ -351,7 +634,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
351
634
  };
352
635
  readonly transactionReceipt: {
353
636
  exclude: [] | undefined;
354
- format: (args: viem_chains.OpStackRpcTransactionReceipt) => {
637
+ format: (args: viem_chains.OpStackRpcTransactionReceipt, action?: string | undefined) => {
355
638
  blobGasPrice?: bigint | undefined;
356
639
  blobGasUsed?: bigint | undefined;
357
640
  blockHash: viem.Hash;
@@ -377,6 +660,13 @@ declare const CHAIN_ENV_TO_CHAIN: {
377
660
  type: "transactionReceipt";
378
661
  };
379
662
  };
663
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
664
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
665
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
666
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
667
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
668
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
669
+ }] | undefined;
380
670
  serializers: {
381
671
  readonly transaction: typeof viem_chains.serializeTransactionOpStack;
382
672
  };
@@ -1,11 +1,11 @@
1
1
  import "../chunk-5WRI5ZAA.js";
2
2
 
3
3
  // src/consts/chainEnvToChain.ts
4
- import { arbitrum, inkSepolia, localhost } from "viem/chains";
4
+ import { ink, inkSepolia, localhost } from "viem/chains";
5
5
  var CHAIN_ENV_TO_CHAIN = {
6
6
  local: localhost,
7
- arbitrum,
8
- inkTestnet: inkSepolia
7
+ inkTestnet: inkSepolia,
8
+ inkMainnet: ink
9
9
  };
10
10
  var CHAIN_ID_TO_CHAIN_ENV = Object.fromEntries(
11
11
  Object.entries(CHAIN_ENV_TO_CHAIN).map(([chainEnv, chain]) => [
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/consts/chainEnvToChain.ts"],"sourcesContent":["import { Chain } from 'viem';\nimport { arbitrum, inkSepolia, localhost } from 'viem/chains';\nimport { ChainEnv } from '../types';\n\nexport const CHAIN_ENV_TO_CHAIN = {\n local: localhost,\n arbitrum: arbitrum,\n inkTestnet: inkSepolia,\n} as const satisfies Record<ChainEnv, Chain>;\n\nexport const CHAIN_ID_TO_CHAIN_ENV = Object.fromEntries(\n Object.entries(CHAIN_ENV_TO_CHAIN).map(([chainEnv, chain]) => [\n chain.id,\n chainEnv,\n ]),\n) as Record<number, ChainEnv>;\n"],"mappings":";;;AACA,SAAS,UAAU,YAAY,iBAAiB;AAGzC,IAAM,qBAAqB;AAAA,EAChC,OAAO;AAAA,EACP;AAAA,EACA,YAAY;AACd;AAEO,IAAM,wBAAwB,OAAO;AAAA,EAC1C,OAAO,QAAQ,kBAAkB,EAAE,IAAI,CAAC,CAAC,UAAU,KAAK,MAAM;AAAA,IAC5D,MAAM;AAAA,IACN;AAAA,EACF,CAAC;AACH;","names":[]}
1
+ {"version":3,"sources":["../../src/consts/chainEnvToChain.ts"],"sourcesContent":["import { Chain } from 'viem';\nimport { ink, inkSepolia, localhost } from 'viem/chains';\nimport { ChainEnv } from '../types';\n\nexport const CHAIN_ENV_TO_CHAIN = {\n local: localhost,\n inkTestnet: inkSepolia,\n inkMainnet: ink,\n} as const satisfies Record<ChainEnv, Chain>;\n\nexport const CHAIN_ID_TO_CHAIN_ENV = Object.fromEntries(\n Object.entries(CHAIN_ENV_TO_CHAIN).map(([chainEnv, chain]) => [\n chain.id,\n chainEnv,\n ]),\n) as Record<number, ChainEnv>;\n"],"mappings":";;;AACA,SAAS,KAAK,YAAY,iBAAiB;AAGpC,IAAM,qBAAqB;AAAA,EAChC,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,YAAY;AACd;AAEO,IAAM,wBAAwB,OAAO;AAAA,EAC1C,OAAO,QAAQ,kBAAkB,EAAE,IAAI,CAAC,CAAC,UAAU,KAAK,MAAM;AAAA,IAC5D,MAAM;AAAA,IACN;AAAA,EACF,CAAC;AACH;","names":[]}
@@ -25,7 +25,7 @@ __export(productIds_exports, {
25
25
  });
26
26
  module.exports = __toCommonJS(productIds_exports);
27
27
  var QUOTE_PRODUCT_ID = 0;
28
- var NLP_PRODUCT_ID = 153;
28
+ var NLP_PRODUCT_ID = 11;
29
29
  // Annotate the CommonJS export names for ESM import in node:
30
30
  0 && (module.exports = {
31
31
  NLP_PRODUCT_ID,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/consts/productIds.ts"],"sourcesContent":["export const QUOTE_PRODUCT_ID = 0;\n\nexport const NLP_PRODUCT_ID = 153;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAM,mBAAmB;AAEzB,IAAM,iBAAiB;","names":[]}
1
+ {"version":3,"sources":["../../src/consts/productIds.ts"],"sourcesContent":["export const QUOTE_PRODUCT_ID = 0;\n\nexport const NLP_PRODUCT_ID = 11;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAM,mBAAmB;AAEzB,IAAM,iBAAiB;","names":[]}
@@ -1,4 +1,4 @@
1
1
  declare const QUOTE_PRODUCT_ID = 0;
2
- declare const NLP_PRODUCT_ID = 153;
2
+ declare const NLP_PRODUCT_ID = 11;
3
3
 
4
4
  export { NLP_PRODUCT_ID, QUOTE_PRODUCT_ID };
@@ -1,4 +1,4 @@
1
1
  declare const QUOTE_PRODUCT_ID = 0;
2
- declare const NLP_PRODUCT_ID = 153;
2
+ declare const NLP_PRODUCT_ID = 11;
3
3
 
4
4
  export { NLP_PRODUCT_ID, QUOTE_PRODUCT_ID };
@@ -2,7 +2,7 @@ import "../chunk-5WRI5ZAA.js";
2
2
 
3
3
  // src/consts/productIds.ts
4
4
  var QUOTE_PRODUCT_ID = 0;
5
- var NLP_PRODUCT_ID = 153;
5
+ var NLP_PRODUCT_ID = 11;
6
6
  export {
7
7
  NLP_PRODUCT_ID,
8
8
  QUOTE_PRODUCT_ID
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/consts/productIds.ts"],"sourcesContent":["export const QUOTE_PRODUCT_ID = 0;\n\nexport const NLP_PRODUCT_ID = 153;\n"],"mappings":";;;AAAO,IAAM,mBAAmB;AAEzB,IAAM,iBAAiB;","names":[]}
1
+ {"version":3,"sources":["../../src/consts/productIds.ts"],"sourcesContent":["export const QUOTE_PRODUCT_ID = 0;\n\nexport const NLP_PRODUCT_ID = 11;\n"],"mappings":";;;AAAO,IAAM,mBAAmB;AAEzB,IAAM,iBAAiB;","names":[]}
@@ -0,0 +1,13 @@
1
+ {
2
+ "nodeUrl": "https://ink.drpc.org",
3
+ "explorerUrl": "https://explorer.inkonchain.com",
4
+ "startBlock": 29851015,
5
+ "deployer": "0xC1cC56caB60e832665E6c3780BfEBe3C1C971603",
6
+ "quote": "0x0200C29006150606B650577BBE7B6248F58470c1",
7
+ "querier": "0x68798229F88251b31D534733D6C4098318c9dff8",
8
+ "clearinghouse": "0xD218103918C19D0A10cf35300E4CfAfbD444c5fE",
9
+ "endpoint": "0x05ec92D78ED421f3D3Ada77FFdE167106565974E",
10
+ "spotEngine": "0xFcD94770B95fd9Cc67143132BB172EB17A0907fE",
11
+ "perpEngine": "0xF8599D58d1137fC56EcDd9C16ee139C8BDf96da1",
12
+ "withdrawPool": "0x09fb495AA7859635f755E827d64c4C9A2e5b9651"
13
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "nodeUrl": "https://rpc-gel-sepolia.inkonchain.com",
3
+ "explorerUrl": "https://explorer-sepolia.inkonchain.com",
4
+ "startBlock": 33809962,
5
+ "deployer": "0x59841b3761Ed1D089a783E4d7CB49E4534CD4F85",
6
+ "quote": "0x60F50F902b2E91aef7D6c700Eb22599e297fa86F",
7
+ "querier": "0x8E693BEa316bcC0F4f8be403081b954a0E3743C8",
8
+ "clearinghouse": "0x23a283B359D55A941bBeEC58801B6b17D955CC73",
9
+ "endpoint": "0x698D87105274292B5673367DEC81874Ce3633Ac2",
10
+ "spotEngine": "0x3352b2fF0fAc4ce38A6eA1C188cF4F924df54E5D",
11
+ "perpEngine": "0x4E859C47fea3666B5053B16C81AF64e77567702e",
12
+ "withdrawPool": "0xBD672Fe513acbA5c1ceE7b02F998A1B542852b3b"
13
+ }
@@ -34,15 +34,15 @@ __export(deployments_exports, {
34
34
  });
35
35
  module.exports = __toCommonJS(deployments_exports);
36
36
  var import_getValidatedAddress = require("../utils/getValidatedAddress.cjs");
37
- var import_deployment_arbitrumOne = __toESM(require("./core/deployment.arbitrumOne.json"), 1);
38
- var import_deployment_InkSepolia = __toESM(require("./core/deployment.InkSepolia.json"), 1);
37
+ var import_deployment_inkMainnet = __toESM(require("./core/deployment.inkMainnet.json"), 1);
38
+ var import_deployment_inkSepolia = __toESM(require("./core/deployment.inkSepolia.json"), 1);
39
39
  var import_deployment_localhost = __toESM(require("./core/deployment.localhost.json"), 1);
40
40
  var NADO_DEPLOYMENTS = {
41
- arbitrum: validateDeployment({
42
- ...import_deployment_arbitrumOne.default
43
- }),
44
41
  inkTestnet: validateDeployment({
45
- ...import_deployment_InkSepolia.default
42
+ ...import_deployment_inkSepolia.default
43
+ }),
44
+ inkMainnet: validateDeployment({
45
+ ...import_deployment_inkMainnet.default
46
46
  }),
47
47
  local: validateDeployment({
48
48
  ...import_deployment_localhost.default
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/deployments/index.ts"],"sourcesContent":["import { Address } from 'viem';\nimport { NadoContractName } from '../abis/nadoAbis';\n\nimport { ChainEnv } from '../types';\nimport { getValidatedAddress } from '../utils/getValidatedAddress';\nimport ArbitrumOneCoreDeployment from './core/deployment.arbitrumOne.json' with { type: 'json' };\nimport InkSepoliaCoreDeployment from './core/deployment.InkSepolia.json' with { type: 'json' };\nimport LocalCoreDeployment from './core/deployment.localhost.json' with { type: 'json' };\n\nexport type NadoDeploymentAddresses = {\n [name in NadoContractName]: Address;\n};\n\n/**\n * Known deployment addresses for the Nado contracts\n */\nexport const NADO_DEPLOYMENTS: Record<ChainEnv, NadoDeploymentAddresses> = {\n arbitrum: validateDeployment({\n ...ArbitrumOneCoreDeployment,\n }),\n inkTestnet: validateDeployment({\n ...InkSepoliaCoreDeployment,\n }),\n local: validateDeployment({\n ...LocalCoreDeployment,\n }),\n};\n\nfunction validateDeployment(\n deployment: Record<NadoContractName, string>,\n): Record<NadoContractName, Address> {\n return {\n clearinghouse: getValidatedAddress(deployment.clearinghouse),\n endpoint: getValidatedAddress(deployment.endpoint),\n perpEngine: getValidatedAddress(deployment.perpEngine),\n querier: getValidatedAddress(deployment.querier),\n spotEngine: getValidatedAddress(deployment.spotEngine),\n withdrawPool: getValidatedAddress(deployment.withdrawPool),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,iCAAoC;AACpC,oCAAsC;AACtC,mCAAqC;AACrC,kCAAgC;AASzB,IAAM,mBAA8D;AAAA,EACzE,UAAU,mBAAmB;AAAA,IAC3B,GAAG,8BAAAA;AAAA,EACL,CAAC;AAAA,EACD,YAAY,mBAAmB;AAAA,IAC7B,GAAG,6BAAAC;AAAA,EACL,CAAC;AAAA,EACD,OAAO,mBAAmB;AAAA,IACxB,GAAG,4BAAAC;AAAA,EACL,CAAC;AACH;AAEA,SAAS,mBACP,YACmC;AACnC,SAAO;AAAA,IACL,mBAAe,gDAAoB,WAAW,aAAa;AAAA,IAC3D,cAAU,gDAAoB,WAAW,QAAQ;AAAA,IACjD,gBAAY,gDAAoB,WAAW,UAAU;AAAA,IACrD,aAAS,gDAAoB,WAAW,OAAO;AAAA,IAC/C,gBAAY,gDAAoB,WAAW,UAAU;AAAA,IACrD,kBAAc,gDAAoB,WAAW,YAAY;AAAA,EAC3D;AACF;","names":["ArbitrumOneCoreDeployment","InkSepoliaCoreDeployment","LocalCoreDeployment"]}
1
+ {"version":3,"sources":["../../src/deployments/index.ts"],"sourcesContent":["import { Address } from 'viem';\nimport { NadoContractName } from '../abis/nadoAbis';\n\nimport { ChainEnv } from '../types';\nimport { getValidatedAddress } from '../utils/getValidatedAddress';\nimport InkMainnetCoreDeployment from './core/deployment.inkMainnet.json' with { type: 'json' };\nimport InkSepoliaCoreDeployment from './core/deployment.inkSepolia.json' with { type: 'json' };\nimport LocalCoreDeployment from './core/deployment.localhost.json' with { type: 'json' };\n\nexport type NadoDeploymentAddresses = {\n [name in NadoContractName]: Address;\n};\n\n/**\n * Known deployment addresses for the Nado contracts\n */\nexport const NADO_DEPLOYMENTS: Record<ChainEnv, NadoDeploymentAddresses> = {\n inkTestnet: validateDeployment({\n ...InkSepoliaCoreDeployment,\n }),\n inkMainnet: validateDeployment({\n ...InkMainnetCoreDeployment,\n }),\n local: validateDeployment({\n ...LocalCoreDeployment,\n }),\n};\n\nfunction validateDeployment(\n deployment: Record<NadoContractName, string>,\n): Record<NadoContractName, Address> {\n return {\n clearinghouse: getValidatedAddress(deployment.clearinghouse),\n endpoint: getValidatedAddress(deployment.endpoint),\n perpEngine: getValidatedAddress(deployment.perpEngine),\n querier: getValidatedAddress(deployment.querier),\n spotEngine: getValidatedAddress(deployment.spotEngine),\n withdrawPool: getValidatedAddress(deployment.withdrawPool),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,iCAAoC;AACpC,mCAAqC;AACrC,mCAAqC;AACrC,kCAAgC;AASzB,IAAM,mBAA8D;AAAA,EACzE,YAAY,mBAAmB;AAAA,IAC7B,GAAG,6BAAAA;AAAA,EACL,CAAC;AAAA,EACD,YAAY,mBAAmB;AAAA,IAC7B,GAAG,6BAAAC;AAAA,EACL,CAAC;AAAA,EACD,OAAO,mBAAmB;AAAA,IACxB,GAAG,4BAAAC;AAAA,EACL,CAAC;AACH;AAEA,SAAS,mBACP,YACmC;AACnC,SAAO;AAAA,IACL,mBAAe,gDAAoB,WAAW,aAAa;AAAA,IAC3D,cAAU,gDAAoB,WAAW,QAAQ;AAAA,IACjD,gBAAY,gDAAoB,WAAW,UAAU;AAAA,IACrD,aAAS,gDAAoB,WAAW,OAAO;AAAA,IAC/C,gBAAY,gDAAoB,WAAW,UAAU;AAAA,IACrD,kBAAc,gDAAoB,WAAW,YAAY;AAAA,EAC3D;AACF;","names":["InkSepoliaCoreDeployment","InkMainnetCoreDeployment","LocalCoreDeployment"]}
@@ -2,16 +2,16 @@ import "../chunk-5WRI5ZAA.js";
2
2
 
3
3
  // src/deployments/index.ts
4
4
  import { getValidatedAddress } from "../utils/getValidatedAddress.js";
5
- import ArbitrumOneCoreDeployment from "./core/deployment.arbitrumOne.json" with { type: "json" };
6
- import InkSepoliaCoreDeployment from "./core/deployment.InkSepolia.json" with { type: "json" };
5
+ import InkMainnetCoreDeployment from "./core/deployment.inkMainnet.json" with { type: "json" };
6
+ import InkSepoliaCoreDeployment from "./core/deployment.inkSepolia.json" with { type: "json" };
7
7
  import LocalCoreDeployment from "./core/deployment.localhost.json" with { type: "json" };
8
8
  var NADO_DEPLOYMENTS = {
9
- arbitrum: validateDeployment({
10
- ...ArbitrumOneCoreDeployment
11
- }),
12
9
  inkTestnet: validateDeployment({
13
10
  ...InkSepoliaCoreDeployment
14
11
  }),
12
+ inkMainnet: validateDeployment({
13
+ ...InkMainnetCoreDeployment
14
+ }),
15
15
  local: validateDeployment({
16
16
  ...LocalCoreDeployment
17
17
  })
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/deployments/index.ts"],"sourcesContent":["import { Address } from 'viem';\nimport { NadoContractName } from '../abis/nadoAbis';\n\nimport { ChainEnv } from '../types';\nimport { getValidatedAddress } from '../utils/getValidatedAddress';\nimport ArbitrumOneCoreDeployment from './core/deployment.arbitrumOne.json' with { type: 'json' };\nimport InkSepoliaCoreDeployment from './core/deployment.InkSepolia.json' with { type: 'json' };\nimport LocalCoreDeployment from './core/deployment.localhost.json' with { type: 'json' };\n\nexport type NadoDeploymentAddresses = {\n [name in NadoContractName]: Address;\n};\n\n/**\n * Known deployment addresses for the Nado contracts\n */\nexport const NADO_DEPLOYMENTS: Record<ChainEnv, NadoDeploymentAddresses> = {\n arbitrum: validateDeployment({\n ...ArbitrumOneCoreDeployment,\n }),\n inkTestnet: validateDeployment({\n ...InkSepoliaCoreDeployment,\n }),\n local: validateDeployment({\n ...LocalCoreDeployment,\n }),\n};\n\nfunction validateDeployment(\n deployment: Record<NadoContractName, string>,\n): Record<NadoContractName, Address> {\n return {\n clearinghouse: getValidatedAddress(deployment.clearinghouse),\n endpoint: getValidatedAddress(deployment.endpoint),\n perpEngine: getValidatedAddress(deployment.perpEngine),\n querier: getValidatedAddress(deployment.querier),\n spotEngine: getValidatedAddress(deployment.spotEngine),\n withdrawPool: getValidatedAddress(deployment.withdrawPool),\n };\n}\n"],"mappings":";;;AAIA,SAAS,2BAA2B;AACpC,OAAO,+BAA+B,qCAAqC,KAAK,EAAE,MAAM,OAAO;AAC/F,OAAO,8BAA8B,oCAAoC,KAAK,EAAE,MAAM,OAAO;AAC7F,OAAO,yBAAyB,mCAAmC,KAAK,EAAE,MAAM,OAAO;AAShF,IAAM,mBAA8D;AAAA,EACzE,UAAU,mBAAmB;AAAA,IAC3B,GAAG;AAAA,EACL,CAAC;AAAA,EACD,YAAY,mBAAmB;AAAA,IAC7B,GAAG;AAAA,EACL,CAAC;AAAA,EACD,OAAO,mBAAmB;AAAA,IACxB,GAAG;AAAA,EACL,CAAC;AACH;AAEA,SAAS,mBACP,YACmC;AACnC,SAAO;AAAA,IACL,eAAe,oBAAoB,WAAW,aAAa;AAAA,IAC3D,UAAU,oBAAoB,WAAW,QAAQ;AAAA,IACjD,YAAY,oBAAoB,WAAW,UAAU;AAAA,IACrD,SAAS,oBAAoB,WAAW,OAAO;AAAA,IAC/C,YAAY,oBAAoB,WAAW,UAAU;AAAA,IACrD,cAAc,oBAAoB,WAAW,YAAY;AAAA,EAC3D;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/deployments/index.ts"],"sourcesContent":["import { Address } from 'viem';\nimport { NadoContractName } from '../abis/nadoAbis';\n\nimport { ChainEnv } from '../types';\nimport { getValidatedAddress } from '../utils/getValidatedAddress';\nimport InkMainnetCoreDeployment from './core/deployment.inkMainnet.json' with { type: 'json' };\nimport InkSepoliaCoreDeployment from './core/deployment.inkSepolia.json' with { type: 'json' };\nimport LocalCoreDeployment from './core/deployment.localhost.json' with { type: 'json' };\n\nexport type NadoDeploymentAddresses = {\n [name in NadoContractName]: Address;\n};\n\n/**\n * Known deployment addresses for the Nado contracts\n */\nexport const NADO_DEPLOYMENTS: Record<ChainEnv, NadoDeploymentAddresses> = {\n inkTestnet: validateDeployment({\n ...InkSepoliaCoreDeployment,\n }),\n inkMainnet: validateDeployment({\n ...InkMainnetCoreDeployment,\n }),\n local: validateDeployment({\n ...LocalCoreDeployment,\n }),\n};\n\nfunction validateDeployment(\n deployment: Record<NadoContractName, string>,\n): Record<NadoContractName, Address> {\n return {\n clearinghouse: getValidatedAddress(deployment.clearinghouse),\n endpoint: getValidatedAddress(deployment.endpoint),\n perpEngine: getValidatedAddress(deployment.perpEngine),\n querier: getValidatedAddress(deployment.querier),\n spotEngine: getValidatedAddress(deployment.spotEngine),\n withdrawPool: getValidatedAddress(deployment.withdrawPool),\n };\n}\n"],"mappings":";;;AAIA,SAAS,2BAA2B;AACpC,OAAO,8BAA8B,oCAAoC,KAAK,EAAE,MAAM,OAAO;AAC7F,OAAO,8BAA8B,oCAAoC,KAAK,EAAE,MAAM,OAAO;AAC7F,OAAO,yBAAyB,mCAAmC,KAAK,EAAE,MAAM,OAAO;AAShF,IAAM,mBAA8D;AAAA,EACzE,YAAY,mBAAmB;AAAA,IAC7B,GAAG;AAAA,EACL,CAAC;AAAA,EACD,YAAY,mBAAmB;AAAA,IAC7B,GAAG;AAAA,EACL,CAAC;AAAA,EACD,OAAO,mBAAmB;AAAA,IACxB,GAAG;AAAA,EACL,CAAC;AACH;AAEA,SAAS,mBACP,YACmC;AACnC,SAAO;AAAA,IACL,eAAe,oBAAoB,WAAW,aAAa;AAAA,IAC3D,UAAU,oBAAoB,WAAW,QAAQ;AAAA,IACjD,YAAY,oBAAoB,WAAW,UAAU;AAAA,IACrD,SAAS,oBAAoB,WAAW,OAAO;AAAA,IAC/C,YAAY,oBAAoB,WAAW,UAAU;AAAA,IACrD,cAAc,oBAAoB,WAAW,YAAY;AAAA,EAC3D;AACF;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/eip712/eip712ValueTypes.ts"],"sourcesContent":["import { Hex } from 'viem';\nimport { BigDecimalish } from '../utils/math';\nimport {\n EIP712BurnNlpParams,\n EIP712CancelOrdersParams,\n EIP712CancelProductOrdersParams,\n EIP712LeaderboardAuthenticationParams,\n EIP712LinkSignerParams,\n EIP712LiquidateSubaccountParams,\n EIP712ListTriggerOrdersParams,\n EIP712MintNlpParams,\n EIP712OrderParams,\n EIP712TransferQuoteParams,\n EIP712WithdrawCollateralParams,\n} from './signatureParamTypes';\n\ntype WithEIP712Sender<\n T extends { subaccountOwner: string; subaccountName: string },\n> = Omit<T, 'subaccountOwner' | 'subaccountName'> & {\n // Hex encoded bytes32\n sender: Hex;\n};\n\nexport type EIP712WithdrawCollateralValues =\n WithEIP712Sender<EIP712WithdrawCollateralParams>;\n\nexport type EIP712LiquidateSubaccountValues = Omit<\n WithEIP712Sender<EIP712LiquidateSubaccountParams>,\n 'liquidateeOwner' | 'liquidateeName'\n> & {\n // Hex encoded bytes32\n liquidatee: string;\n};\n\nexport type EIP712OrderValues = Omit<\n WithEIP712Sender<EIP712OrderParams>,\n 'price'\n> & {\n priceX18: BigDecimalish;\n};\n\nexport type EIP712ListTriggerOrdersValues =\n WithEIP712Sender<EIP712ListTriggerOrdersParams>;\n\nexport type EIP712OrderCancellationValues =\n WithEIP712Sender<EIP712CancelOrdersParams>;\n\nexport type EIP712ProductOrdersCancellationValues =\n WithEIP712Sender<EIP712CancelProductOrdersParams>;\n\nexport type EIP712LinkSignerValues = WithEIP712Sender<EIP712LinkSignerParams>;\n\nexport type EIP712TransferQuoteValues = Omit<\n WithEIP712Sender<EIP712TransferQuoteParams>,\n 'recipientSubaccountName'\n> & {\n // Hex encoded bytes32\n recipient: string;\n};\n\nexport type EIP712LeaderboardAuthenticationValues =\n WithEIP712Sender<EIP712LeaderboardAuthenticationParams>;\n\nexport type EIP712MintNlpValues = WithEIP712Sender<EIP712MintNlpParams>;\n\nexport type EIP712BurnNlpValues = WithEIP712Sender<EIP712BurnNlpParams>;\n\n/**\n * All possible requests to be signed, to the EIP712 value interface\n */\nexport interface SignableRequestTypeToEIP712Values {\n burn_nlp: EIP712BurnNlpValues;\n cancel_orders: EIP712OrderCancellationValues;\n cancel_product_orders: EIP712ProductOrdersCancellationValues;\n leaderboard_authentication: EIP712LeaderboardAuthenticationValues;\n link_signer: EIP712LinkSignerValues;\n liquidate_subaccount: EIP712LiquidateSubaccountValues;\n list_trigger_orders: EIP712ListTriggerOrdersValues;\n mint_nlp: EIP712MintNlpValues;\n place_order: EIP712OrderValues;\n transfer_quote: EIP712TransferQuoteValues;\n withdraw_collateral: EIP712WithdrawCollateralValues;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../src/eip712/eip712ValueTypes.ts"],"sourcesContent":["import { Hex } from 'viem';\nimport { BigNumberish } from '../utils/math';\nimport {\n EIP712BurnNlpParams,\n EIP712CancelOrdersParams,\n EIP712CancelProductOrdersParams,\n EIP712LeaderboardAuthenticationParams,\n EIP712LinkSignerParams,\n EIP712LiquidateSubaccountParams,\n EIP712ListTriggerOrdersParams,\n EIP712MintNlpParams,\n EIP712OrderParams,\n EIP712TransferQuoteParams,\n EIP712WithdrawCollateralParams,\n} from './signatureParamTypes';\n\ntype WithEIP712Sender<\n T extends { subaccountOwner: string; subaccountName: string },\n> = Omit<T, 'subaccountOwner' | 'subaccountName'> & {\n // Hex encoded bytes32\n sender: Hex;\n};\n\nexport type EIP712WithdrawCollateralValues =\n WithEIP712Sender<EIP712WithdrawCollateralParams>;\n\nexport type EIP712LiquidateSubaccountValues = Omit<\n WithEIP712Sender<EIP712LiquidateSubaccountParams>,\n 'liquidateeOwner' | 'liquidateeName'\n> & {\n // Hex encoded bytes32\n liquidatee: string;\n};\n\nexport type EIP712OrderValues = Omit<\n WithEIP712Sender<EIP712OrderParams>,\n 'price'\n> & {\n priceX18: BigNumberish;\n};\n\nexport type EIP712ListTriggerOrdersValues =\n WithEIP712Sender<EIP712ListTriggerOrdersParams>;\n\nexport type EIP712OrderCancellationValues =\n WithEIP712Sender<EIP712CancelOrdersParams>;\n\nexport type EIP712ProductOrdersCancellationValues =\n WithEIP712Sender<EIP712CancelProductOrdersParams>;\n\nexport type EIP712LinkSignerValues = WithEIP712Sender<EIP712LinkSignerParams>;\n\nexport type EIP712TransferQuoteValues = Omit<\n WithEIP712Sender<EIP712TransferQuoteParams>,\n 'recipientSubaccountName'\n> & {\n // Hex encoded bytes32\n recipient: string;\n};\n\nexport type EIP712LeaderboardAuthenticationValues =\n WithEIP712Sender<EIP712LeaderboardAuthenticationParams>;\n\nexport type EIP712MintNlpValues = WithEIP712Sender<EIP712MintNlpParams>;\n\nexport type EIP712BurnNlpValues = WithEIP712Sender<EIP712BurnNlpParams>;\n\n/**\n * All possible requests to be signed, to the EIP712 value interface\n */\nexport interface SignableRequestTypeToEIP712Values {\n burn_nlp: EIP712BurnNlpValues;\n cancel_orders: EIP712OrderCancellationValues;\n cancel_product_orders: EIP712ProductOrdersCancellationValues;\n leaderboard_authentication: EIP712LeaderboardAuthenticationValues;\n link_signer: EIP712LinkSignerValues;\n liquidate_subaccount: EIP712LiquidateSubaccountValues;\n list_trigger_orders: EIP712ListTriggerOrdersValues;\n mint_nlp: EIP712MintNlpValues;\n place_order: EIP712OrderValues;\n transfer_quote: EIP712TransferQuoteValues;\n withdraw_collateral: EIP712WithdrawCollateralValues;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import { Hex } from 'viem';
2
- import { BigDecimalish } from '../utils/math/bigDecimal.cjs';
3
- import { EIP712BurnNlpParams, EIP712CancelOrdersParams, EIP712CancelProductOrdersParams, EIP712LeaderboardAuthenticationParams, EIP712LinkSignerParams, EIP712LiquidateSubaccountParams, EIP712ListTriggerOrdersParams, EIP712MintNlpParams, EIP712OrderParams, EIP712TransferQuoteParams, EIP712WithdrawCollateralParams } from './signatureParamTypes.cjs';
2
+ import { BigNumberish } from '../utils/math/bigNumber.cjs';
3
+ import { EIP712BurnNlpParams, EIP712LeaderboardAuthenticationParams, EIP712LinkSignerParams, EIP712LiquidateSubaccountParams, EIP712ListTriggerOrdersParams, EIP712MintNlpParams, EIP712CancelOrdersParams, EIP712OrderParams, EIP712CancelProductOrdersParams, EIP712TransferQuoteParams, EIP712WithdrawCollateralParams } from './signatureParamTypes.cjs';
4
4
  import 'bignumber.js';
5
5
  import '../types/subaccountTypes.cjs';
6
6
  import '../types/bytes.cjs';
@@ -16,7 +16,7 @@ type EIP712LiquidateSubaccountValues = Omit<WithEIP712Sender<EIP712LiquidateSuba
16
16
  liquidatee: string;
17
17
  };
18
18
  type EIP712OrderValues = Omit<WithEIP712Sender<EIP712OrderParams>, 'price'> & {
19
- priceX18: BigDecimalish;
19
+ priceX18: BigNumberish;
20
20
  };
21
21
  type EIP712ListTriggerOrdersValues = WithEIP712Sender<EIP712ListTriggerOrdersParams>;
22
22
  type EIP712OrderCancellationValues = WithEIP712Sender<EIP712CancelOrdersParams>;