@1stdex/first-sdk 1.0.0-rc.1

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 (491) hide show
  1. package/README.md +11 -0
  2. package/dist/cjs/calls/approval/market.js +136 -0
  3. package/dist/cjs/calls/approval/market.js.map +1 -0
  4. package/dist/cjs/calls/approval/open-order.js +50 -0
  5. package/dist/cjs/calls/approval/open-order.js.map +1 -0
  6. package/dist/cjs/calls/approval/order.js +45 -0
  7. package/dist/cjs/calls/approval/order.js.map +1 -0
  8. package/dist/cjs/calls/approval/token.js +167 -0
  9. package/dist/cjs/calls/approval/token.js.map +1 -0
  10. package/dist/cjs/calls/index.js +31 -0
  11. package/dist/cjs/calls/index.js.map +1 -0
  12. package/dist/cjs/calls/market/cancel.js +65 -0
  13. package/dist/cjs/calls/market/cancel.js.map +1 -0
  14. package/dist/cjs/calls/market/claim.js +64 -0
  15. package/dist/cjs/calls/market/claim.js.map +1 -0
  16. package/dist/cjs/calls/market/limit.js +187 -0
  17. package/dist/cjs/calls/market/limit.js.map +1 -0
  18. package/dist/cjs/calls/market/make.js +164 -0
  19. package/dist/cjs/calls/market/make.js.map +1 -0
  20. package/dist/cjs/calls/market/market.js +171 -0
  21. package/dist/cjs/calls/market/market.js.map +1 -0
  22. package/dist/cjs/calls/market/open.js +50 -0
  23. package/dist/cjs/calls/market/open.js.map +1 -0
  24. package/dist/cjs/calls/vault/deposit-to-vault.js +24 -0
  25. package/dist/cjs/calls/vault/deposit-to-vault.js.map +1 -0
  26. package/dist/cjs/calls/vault/index.js +12 -0
  27. package/dist/cjs/calls/vault/index.js.map +1 -0
  28. package/dist/cjs/calls/vault/remove-vault.js +24 -0
  29. package/dist/cjs/calls/vault/remove-vault.js.map +1 -0
  30. package/dist/cjs/calls/vault/set-vault.js +24 -0
  31. package/dist/cjs/calls/vault/set-vault.js.map +1 -0
  32. package/dist/cjs/calls/vault/withdraw-from-vault.js +24 -0
  33. package/dist/cjs/calls/vault/withdraw-from-vault.js.map +1 -0
  34. package/dist/cjs/constants/abis/core/book-manager-abi.js +1211 -0
  35. package/dist/cjs/constants/abis/core/book-manager-abi.js.map +1 -0
  36. package/dist/cjs/constants/abis/core/book-viewer-abi.js +321 -0
  37. package/dist/cjs/constants/abis/core/book-viewer-abi.js.map +1 -0
  38. package/dist/cjs/constants/abis/core/controller-abi.js +613 -0
  39. package/dist/cjs/constants/abis/core/controller-abi.js.map +1 -0
  40. package/dist/cjs/constants/abis/core/params-abi.js +64 -0
  41. package/dist/cjs/constants/abis/core/params-abi.js.map +1 -0
  42. package/dist/cjs/constants/chain-configs/addresses.js +18 -0
  43. package/dist/cjs/constants/chain-configs/addresses.js.map +1 -0
  44. package/dist/cjs/constants/chain-configs/chain.js +23 -0
  45. package/dist/cjs/constants/chain-configs/chain.js.map +1 -0
  46. package/dist/cjs/constants/chain-configs/currency.js +24 -0
  47. package/dist/cjs/constants/chain-configs/currency.js.map +1 -0
  48. package/dist/cjs/constants/chain-configs/fee.js +14 -0
  49. package/dist/cjs/constants/chain-configs/fee.js.map +1 -0
  50. package/dist/cjs/constants/chain-configs/subgraph.js +27 -0
  51. package/dist/cjs/constants/chain-configs/subgraph.js.map +1 -0
  52. package/dist/cjs/constants/permit.js +14 -0
  53. package/dist/cjs/constants/permit.js.map +1 -0
  54. package/dist/cjs/constants/price.js +7 -0
  55. package/dist/cjs/constants/price.js.map +1 -0
  56. package/dist/cjs/constants/tick.js +6 -0
  57. package/dist/cjs/constants/tick.js.map +1 -0
  58. package/dist/cjs/entities/analytics/apis/index.js +209 -0
  59. package/dist/cjs/entities/analytics/apis/index.js.map +1 -0
  60. package/dist/cjs/entities/analytics/types.js +3 -0
  61. package/dist/cjs/entities/analytics/types.js.map +1 -0
  62. package/dist/cjs/entities/book/apis/index.js +87 -0
  63. package/dist/cjs/entities/book/apis/index.js.map +1 -0
  64. package/dist/cjs/entities/book/model.js +197 -0
  65. package/dist/cjs/entities/book/model.js.map +1 -0
  66. package/dist/cjs/entities/book/types.js +3 -0
  67. package/dist/cjs/entities/book/types.js.map +1 -0
  68. package/dist/cjs/entities/book/utils/book-id.js +23 -0
  69. package/dist/cjs/entities/book/utils/book-id.js.map +1 -0
  70. package/dist/cjs/entities/currency/apis/allowance.js +38 -0
  71. package/dist/cjs/entities/currency/apis/allowance.js.map +1 -0
  72. package/dist/cjs/entities/currency/apis/approval.js +39 -0
  73. package/dist/cjs/entities/currency/apis/approval.js.map +1 -0
  74. package/dist/cjs/entities/currency/apis/index.js +123 -0
  75. package/dist/cjs/entities/currency/apis/index.js.map +1 -0
  76. package/dist/cjs/entities/currency/apis/price.js +36 -0
  77. package/dist/cjs/entities/currency/apis/price.js.map +1 -0
  78. package/dist/cjs/entities/currency/apis/total-supply.js +62 -0
  79. package/dist/cjs/entities/currency/apis/total-supply.js.map +1 -0
  80. package/dist/cjs/entities/currency/types.js +3 -0
  81. package/dist/cjs/entities/currency/types.js.map +1 -0
  82. package/dist/cjs/entities/fee-policy/model.js +92 -0
  83. package/dist/cjs/entities/fee-policy/model.js.map +1 -0
  84. package/dist/cjs/entities/market/apis/chart-log.js +171 -0
  85. package/dist/cjs/entities/market/apis/chart-log.js.map +1 -0
  86. package/dist/cjs/entities/market/apis/index.js +35 -0
  87. package/dist/cjs/entities/market/apis/index.js.map +1 -0
  88. package/dist/cjs/entities/market/apis/price.js +65 -0
  89. package/dist/cjs/entities/market/apis/price.js.map +1 -0
  90. package/dist/cjs/entities/market/apis/snapshot.js +374 -0
  91. package/dist/cjs/entities/market/apis/snapshot.js.map +1 -0
  92. package/dist/cjs/entities/market/model.js +185 -0
  93. package/dist/cjs/entities/market/model.js.map +1 -0
  94. package/dist/cjs/entities/market/types.js +3 -0
  95. package/dist/cjs/entities/market/types.js.map +1 -0
  96. package/dist/cjs/entities/market/utils/market-id.js +30 -0
  97. package/dist/cjs/entities/market/utils/market-id.js.map +1 -0
  98. package/dist/cjs/entities/open-order/apis/index.js +195 -0
  99. package/dist/cjs/entities/open-order/apis/index.js.map +1 -0
  100. package/dist/cjs/entities/open-order/apis/operator.js +15 -0
  101. package/dist/cjs/entities/open-order/apis/operator.js.map +1 -0
  102. package/dist/cjs/entities/open-order/types.js +3 -0
  103. package/dist/cjs/entities/open-order/types.js.map +1 -0
  104. package/dist/cjs/entities/open-order/utils/order-id.js +18 -0
  105. package/dist/cjs/entities/open-order/utils/order-id.js.map +1 -0
  106. package/dist/cjs/entities/vault/types.js +3 -0
  107. package/dist/cjs/entities/vault/types.js.map +1 -0
  108. package/dist/cjs/index.js +27 -0
  109. package/dist/cjs/index.js.map +1 -0
  110. package/dist/cjs/package.json +1 -0
  111. package/dist/cjs/types/default-options.js +3 -0
  112. package/dist/cjs/types/default-options.js.map +1 -0
  113. package/dist/cjs/types/index.js +21 -0
  114. package/dist/cjs/types/index.js.map +1 -0
  115. package/dist/cjs/types/permit.js +3 -0
  116. package/dist/cjs/types/permit.js.map +1 -0
  117. package/dist/cjs/types/transaction.js +3 -0
  118. package/dist/cjs/types/transaction.js.map +1 -0
  119. package/dist/cjs/utils/bigint.js +16 -0
  120. package/dist/cjs/utils/bigint.js.map +1 -0
  121. package/dist/cjs/utils/build-transaction.js +27 -0
  122. package/dist/cjs/utils/build-transaction.js.map +1 -0
  123. package/dist/cjs/utils/conversion.js +17 -0
  124. package/dist/cjs/utils/conversion.js.map +1 -0
  125. package/dist/cjs/utils/index.js +18 -0
  126. package/dist/cjs/utils/index.js.map +1 -0
  127. package/dist/cjs/utils/math.js +58 -0
  128. package/dist/cjs/utils/math.js.map +1 -0
  129. package/dist/cjs/utils/prices.js +56 -0
  130. package/dist/cjs/utils/prices.js.map +1 -0
  131. package/dist/cjs/utils/tick.js +117 -0
  132. package/dist/cjs/utils/tick.js.map +1 -0
  133. package/dist/cjs/utils/time.js +14 -0
  134. package/dist/cjs/utils/time.js.map +1 -0
  135. package/dist/cjs/utils/unit-size.js +8 -0
  136. package/dist/cjs/utils/unit-size.js.map +1 -0
  137. package/dist/cjs/views/address.js +9 -0
  138. package/dist/cjs/views/address.js.map +1 -0
  139. package/dist/cjs/views/analytics.js +25 -0
  140. package/dist/cjs/views/analytics.js.map +1 -0
  141. package/dist/cjs/views/currency.js +22 -0
  142. package/dist/cjs/views/currency.js.map +1 -0
  143. package/dist/cjs/views/index.js +39 -0
  144. package/dist/cjs/views/index.js.map +1 -0
  145. package/dist/cjs/views/market/chart-log.js +13 -0
  146. package/dist/cjs/views/market/chart-log.js.map +1 -0
  147. package/dist/cjs/views/market/index.js +40 -0
  148. package/dist/cjs/views/market/index.js.map +1 -0
  149. package/dist/cjs/views/market/parse.js +22 -0
  150. package/dist/cjs/views/market/parse.js.map +1 -0
  151. package/dist/cjs/views/market/quote.js +97 -0
  152. package/dist/cjs/views/market/quote.js.map +1 -0
  153. package/dist/cjs/views/market/snapshot.js +28 -0
  154. package/dist/cjs/views/market/snapshot.js.map +1 -0
  155. package/dist/cjs/views/market/token.js +10 -0
  156. package/dist/cjs/views/market/token.js.map +1 -0
  157. package/dist/cjs/views/open-order.js +13 -0
  158. package/dist/cjs/views/open-order.js.map +1 -0
  159. package/dist/cjs/views/subgraph.js +24 -0
  160. package/dist/cjs/views/subgraph.js.map +1 -0
  161. package/dist/cjs/views/tick.js +80 -0
  162. package/dist/cjs/views/tick.js.map +1 -0
  163. package/dist/cjs/views/vault.js +24 -0
  164. package/dist/cjs/views/vault.js.map +1 -0
  165. package/dist/esm/calls/approval/market.js +186 -0
  166. package/dist/esm/calls/approval/market.js.map +1 -0
  167. package/dist/esm/calls/approval/open-order.js +71 -0
  168. package/dist/esm/calls/approval/open-order.js.map +1 -0
  169. package/dist/esm/calls/approval/order.js +70 -0
  170. package/dist/esm/calls/approval/order.js.map +1 -0
  171. package/dist/esm/calls/approval/token.js +212 -0
  172. package/dist/esm/calls/approval/token.js.map +1 -0
  173. package/dist/esm/calls/index.js +12 -0
  174. package/dist/esm/calls/index.js.map +1 -0
  175. package/dist/esm/calls/market/cancel.js +108 -0
  176. package/dist/esm/calls/market/cancel.js.map +1 -0
  177. package/dist/esm/calls/market/claim.js +107 -0
  178. package/dist/esm/calls/market/claim.js.map +1 -0
  179. package/dist/esm/calls/market/limit.js +229 -0
  180. package/dist/esm/calls/market/limit.js.map +1 -0
  181. package/dist/esm/calls/market/make.js +160 -0
  182. package/dist/esm/calls/market/make.js.map +1 -0
  183. package/dist/esm/calls/market/market.js +202 -0
  184. package/dist/esm/calls/market/market.js.map +1 -0
  185. package/dist/esm/calls/market/open.js +65 -0
  186. package/dist/esm/calls/market/open.js.map +1 -0
  187. package/dist/esm/calls/vault/deposit-to-vault.js +39 -0
  188. package/dist/esm/calls/vault/deposit-to-vault.js.map +1 -0
  189. package/dist/esm/calls/vault/index.js +5 -0
  190. package/dist/esm/calls/vault/index.js.map +1 -0
  191. package/dist/esm/calls/vault/remove-vault.js +37 -0
  192. package/dist/esm/calls/vault/remove-vault.js.map +1 -0
  193. package/dist/esm/calls/vault/set-vault.js +39 -0
  194. package/dist/esm/calls/vault/set-vault.js.map +1 -0
  195. package/dist/esm/calls/vault/withdraw-from-vault.js +39 -0
  196. package/dist/esm/calls/vault/withdraw-from-vault.js.map +1 -0
  197. package/dist/esm/constants/abis/core/book-manager-abi.js +1208 -0
  198. package/dist/esm/constants/abis/core/book-manager-abi.js.map +1 -0
  199. package/dist/esm/constants/abis/core/book-viewer-abi.js +318 -0
  200. package/dist/esm/constants/abis/core/book-viewer-abi.js.map +1 -0
  201. package/dist/esm/constants/abis/core/controller-abi.js +610 -0
  202. package/dist/esm/constants/abis/core/controller-abi.js.map +1 -0
  203. package/dist/esm/constants/abis/core/params-abi.js +61 -0
  204. package/dist/esm/constants/abis/core/params-abi.js.map +1 -0
  205. package/dist/esm/constants/chain-configs/addresses.js +15 -0
  206. package/dist/esm/constants/chain-configs/addresses.js.map +1 -0
  207. package/dist/esm/constants/chain-configs/chain.js +22 -0
  208. package/dist/esm/constants/chain-configs/chain.js.map +1 -0
  209. package/dist/esm/constants/chain-configs/currency.js +23 -0
  210. package/dist/esm/constants/chain-configs/currency.js.map +1 -0
  211. package/dist/esm/constants/chain-configs/fee.js +11 -0
  212. package/dist/esm/constants/chain-configs/fee.js.map +1 -0
  213. package/dist/esm/constants/chain-configs/subgraph.js +23 -0
  214. package/dist/esm/constants/chain-configs/subgraph.js.map +1 -0
  215. package/dist/esm/constants/permit.js +11 -0
  216. package/dist/esm/constants/permit.js.map +1 -0
  217. package/dist/esm/constants/price.js +4 -0
  218. package/dist/esm/constants/price.js.map +1 -0
  219. package/dist/esm/constants/tick.js +3 -0
  220. package/dist/esm/constants/tick.js.map +1 -0
  221. package/dist/esm/entities/analytics/apis/index.js +206 -0
  222. package/dist/esm/entities/analytics/apis/index.js.map +1 -0
  223. package/dist/esm/entities/analytics/types.js +2 -0
  224. package/dist/esm/entities/analytics/types.js.map +1 -0
  225. package/dist/esm/entities/book/apis/index.js +83 -0
  226. package/dist/esm/entities/book/apis/index.js.map +1 -0
  227. package/dist/esm/entities/book/model.js +195 -0
  228. package/dist/esm/entities/book/model.js.map +1 -0
  229. package/dist/esm/entities/book/types.js +2 -0
  230. package/dist/esm/entities/book/types.js.map +1 -0
  231. package/dist/esm/entities/book/utils/book-id.js +19 -0
  232. package/dist/esm/entities/book/utils/book-id.js.map +1 -0
  233. package/dist/esm/entities/currency/apis/allowance.js +34 -0
  234. package/dist/esm/entities/currency/apis/allowance.js.map +1 -0
  235. package/dist/esm/entities/currency/apis/approval.js +35 -0
  236. package/dist/esm/entities/currency/apis/approval.js.map +1 -0
  237. package/dist/esm/entities/currency/apis/index.js +118 -0
  238. package/dist/esm/entities/currency/apis/index.js.map +1 -0
  239. package/dist/esm/entities/currency/apis/price.js +30 -0
  240. package/dist/esm/entities/currency/apis/price.js.map +1 -0
  241. package/dist/esm/entities/currency/apis/total-supply.js +57 -0
  242. package/dist/esm/entities/currency/apis/total-supply.js.map +1 -0
  243. package/dist/esm/entities/currency/types.js +2 -0
  244. package/dist/esm/entities/currency/types.js.map +1 -0
  245. package/dist/esm/entities/fee-policy/model.js +88 -0
  246. package/dist/esm/entities/fee-policy/model.js.map +1 -0
  247. package/dist/esm/entities/market/apis/chart-log.js +167 -0
  248. package/dist/esm/entities/market/apis/chart-log.js.map +1 -0
  249. package/dist/esm/entities/market/apis/index.js +30 -0
  250. package/dist/esm/entities/market/apis/index.js.map +1 -0
  251. package/dist/esm/entities/market/apis/price.js +86 -0
  252. package/dist/esm/entities/market/apis/price.js.map +1 -0
  253. package/dist/esm/entities/market/apis/snapshot.js +371 -0
  254. package/dist/esm/entities/market/apis/snapshot.js.map +1 -0
  255. package/dist/esm/entities/market/model.js +183 -0
  256. package/dist/esm/entities/market/model.js.map +1 -0
  257. package/dist/esm/entities/market/types.js +2 -0
  258. package/dist/esm/entities/market/types.js.map +1 -0
  259. package/dist/esm/entities/market/utils/market-id.js +28 -0
  260. package/dist/esm/entities/market/utils/market-id.js.map +1 -0
  261. package/dist/esm/entities/open-order/apis/index.js +192 -0
  262. package/dist/esm/entities/open-order/apis/index.js.map +1 -0
  263. package/dist/esm/entities/open-order/apis/operator.js +11 -0
  264. package/dist/esm/entities/open-order/apis/operator.js.map +1 -0
  265. package/dist/esm/entities/open-order/types.js +2 -0
  266. package/dist/esm/entities/open-order/types.js.map +1 -0
  267. package/dist/esm/entities/open-order/utils/order-id.js +13 -0
  268. package/dist/esm/entities/open-order/utils/order-id.js.map +1 -0
  269. package/dist/esm/entities/vault/types.js +2 -0
  270. package/dist/esm/entities/vault/types.js.map +1 -0
  271. package/dist/esm/index.js +9 -0
  272. package/dist/esm/index.js.map +1 -0
  273. package/dist/esm/package.json +1 -0
  274. package/dist/esm/types/default-options.js +2 -0
  275. package/dist/esm/types/default-options.js.map +1 -0
  276. package/dist/esm/types/index.js +17 -0
  277. package/dist/esm/types/index.js.map +1 -0
  278. package/dist/esm/types/permit.js +2 -0
  279. package/dist/esm/types/permit.js.map +1 -0
  280. package/dist/esm/types/transaction.js +2 -0
  281. package/dist/esm/types/transaction.js.map +1 -0
  282. package/dist/esm/utils/bigint.js +9 -0
  283. package/dist/esm/utils/bigint.js.map +1 -0
  284. package/dist/esm/utils/build-transaction.js +23 -0
  285. package/dist/esm/utils/build-transaction.js.map +1 -0
  286. package/dist/esm/utils/conversion.js +12 -0
  287. package/dist/esm/utils/conversion.js.map +1 -0
  288. package/dist/esm/utils/index.js +5 -0
  289. package/dist/esm/utils/index.js.map +1 -0
  290. package/dist/esm/utils/math.js +79 -0
  291. package/dist/esm/utils/math.js.map +1 -0
  292. package/dist/esm/utils/prices.js +50 -0
  293. package/dist/esm/utils/prices.js.map +1 -0
  294. package/dist/esm/utils/tick.js +110 -0
  295. package/dist/esm/utils/tick.js.map +1 -0
  296. package/dist/esm/utils/time.js +8 -0
  297. package/dist/esm/utils/time.js.map +1 -0
  298. package/dist/esm/utils/unit-size.js +4 -0
  299. package/dist/esm/utils/unit-size.js.map +1 -0
  300. package/dist/esm/views/address.js +17 -0
  301. package/dist/esm/views/address.js.map +1 -0
  302. package/dist/esm/views/analytics.js +17 -0
  303. package/dist/esm/views/analytics.js.map +1 -0
  304. package/dist/esm/views/currency.js +15 -0
  305. package/dist/esm/views/currency.js.map +1 -0
  306. package/dist/esm/views/index.js +9 -0
  307. package/dist/esm/views/index.js.map +1 -0
  308. package/dist/esm/views/market/chart-log.js +48 -0
  309. package/dist/esm/views/market/chart-log.js.map +1 -0
  310. package/dist/esm/views/market/index.js +62 -0
  311. package/dist/esm/views/market/index.js.map +1 -0
  312. package/dist/esm/views/market/parse.js +18 -0
  313. package/dist/esm/views/market/parse.js.map +1 -0
  314. package/dist/esm/views/market/quote.js +137 -0
  315. package/dist/esm/views/market/quote.js.map +1 -0
  316. package/dist/esm/views/market/snapshot.js +23 -0
  317. package/dist/esm/views/market/snapshot.js.map +1 -0
  318. package/dist/esm/views/market/token.js +23 -0
  319. package/dist/esm/views/market/token.js.map +1 -0
  320. package/dist/esm/views/open-order.js +38 -0
  321. package/dist/esm/views/open-order.js.map +1 -0
  322. package/dist/esm/views/subgraph.js +54 -0
  323. package/dist/esm/views/subgraph.js.map +1 -0
  324. package/dist/esm/views/tick.js +89 -0
  325. package/dist/esm/views/tick.js.map +1 -0
  326. package/dist/esm/views/vault.js +35 -0
  327. package/dist/esm/views/vault.js.map +1 -0
  328. package/dist/tsconfig.build.tsbuildinfo +1 -0
  329. package/dist/types/calls/approval/market.d.ts +43 -0
  330. package/dist/types/calls/approval/market.d.ts.map +1 -0
  331. package/dist/types/calls/approval/open-order.d.ts +33 -0
  332. package/dist/types/calls/approval/open-order.d.ts.map +1 -0
  333. package/dist/types/calls/approval/order.d.ts +39 -0
  334. package/dist/types/calls/approval/order.d.ts.map +1 -0
  335. package/dist/types/calls/approval/token.d.ts +41 -0
  336. package/dist/types/calls/approval/token.d.ts.map +1 -0
  337. package/dist/types/calls/index.d.ts +12 -0
  338. package/dist/types/calls/index.d.ts.map +1 -0
  339. package/dist/types/calls/market/cancel.d.ts +73 -0
  340. package/dist/types/calls/market/cancel.d.ts.map +1 -0
  341. package/dist/types/calls/market/claim.d.ts +73 -0
  342. package/dist/types/calls/market/claim.d.ts.map +1 -0
  343. package/dist/types/calls/market/limit.d.ts +90 -0
  344. package/dist/types/calls/market/limit.d.ts.map +1 -0
  345. package/dist/types/calls/market/make.d.ts +37 -0
  346. package/dist/types/calls/market/make.d.ts.map +1 -0
  347. package/dist/types/calls/market/market.d.ts +69 -0
  348. package/dist/types/calls/market/market.d.ts.map +1 -0
  349. package/dist/types/calls/market/open.d.ts +31 -0
  350. package/dist/types/calls/market/open.d.ts.map +1 -0
  351. package/dist/types/calls/vault/deposit-to-vault.d.ts +29 -0
  352. package/dist/types/calls/vault/deposit-to-vault.d.ts.map +1 -0
  353. package/dist/types/calls/vault/index.d.ts +5 -0
  354. package/dist/types/calls/vault/index.d.ts.map +1 -0
  355. package/dist/types/calls/vault/remove-vault.d.ts +26 -0
  356. package/dist/types/calls/vault/remove-vault.d.ts.map +1 -0
  357. package/dist/types/calls/vault/set-vault.d.ts +29 -0
  358. package/dist/types/calls/vault/set-vault.d.ts.map +1 -0
  359. package/dist/types/calls/vault/withdraw-from-vault.d.ts +29 -0
  360. package/dist/types/calls/vault/withdraw-from-vault.d.ts.map +1 -0
  361. package/dist/types/constants/abis/core/book-manager-abi.d.ts +1633 -0
  362. package/dist/types/constants/abis/core/book-manager-abi.d.ts.map +1 -0
  363. package/dist/types/constants/abis/core/book-viewer-abi.d.ts +243 -0
  364. package/dist/types/constants/abis/core/book-viewer-abi.d.ts.map +1 -0
  365. package/dist/types/constants/abis/core/controller-abi.d.ts +970 -0
  366. package/dist/types/constants/abis/core/controller-abi.d.ts.map +1 -0
  367. package/dist/types/constants/abis/core/params-abi.d.ts +31 -0
  368. package/dist/types/constants/abis/core/params-abi.d.ts.map +1 -0
  369. package/dist/types/constants/chain-configs/addresses.d.ts +9 -0
  370. package/dist/types/constants/chain-configs/addresses.d.ts.map +1 -0
  371. package/dist/types/constants/chain-configs/chain.d.ts +10 -0
  372. package/dist/types/constants/chain-configs/chain.d.ts.map +1 -0
  373. package/dist/types/constants/chain-configs/currency.d.ts +6 -0
  374. package/dist/types/constants/chain-configs/currency.d.ts.map +1 -0
  375. package/dist/types/constants/chain-configs/fee.d.ts +9 -0
  376. package/dist/types/constants/chain-configs/fee.d.ts.map +1 -0
  377. package/dist/types/constants/chain-configs/subgraph.d.ts +8 -0
  378. package/dist/types/constants/chain-configs/subgraph.d.ts.map +1 -0
  379. package/dist/types/constants/permit.d.ts +10 -0
  380. package/dist/types/constants/permit.d.ts.map +1 -0
  381. package/dist/types/constants/price.d.ts +4 -0
  382. package/dist/types/constants/price.d.ts.map +1 -0
  383. package/dist/types/constants/tick.d.ts +3 -0
  384. package/dist/types/constants/tick.d.ts.map +1 -0
  385. package/dist/types/entities/analytics/apis/index.d.ts +12 -0
  386. package/dist/types/entities/analytics/apis/index.d.ts.map +1 -0
  387. package/dist/types/entities/analytics/types.d.ts +57 -0
  388. package/dist/types/entities/analytics/types.d.ts.map +1 -0
  389. package/dist/types/entities/book/apis/index.d.ts +6 -0
  390. package/dist/types/entities/book/apis/index.d.ts.map +1 -0
  391. package/dist/types/entities/book/model.d.ts +50 -0
  392. package/dist/types/entities/book/model.d.ts.map +1 -0
  393. package/dist/types/entities/book/types.d.ts +14 -0
  394. package/dist/types/entities/book/types.d.ts.map +1 -0
  395. package/dist/types/entities/book/utils/book-id.d.ts +3 -0
  396. package/dist/types/entities/book/utils/book-id.d.ts.map +1 -0
  397. package/dist/types/entities/currency/apis/allowance.d.ts +3 -0
  398. package/dist/types/entities/currency/apis/allowance.d.ts.map +1 -0
  399. package/dist/types/entities/currency/apis/approval.d.ts +4 -0
  400. package/dist/types/entities/currency/apis/approval.d.ts.map +1 -0
  401. package/dist/types/entities/currency/apis/index.d.ts +6 -0
  402. package/dist/types/entities/currency/apis/index.d.ts.map +1 -0
  403. package/dist/types/entities/currency/apis/price.d.ts +10 -0
  404. package/dist/types/entities/currency/apis/price.d.ts.map +1 -0
  405. package/dist/types/entities/currency/apis/total-supply.d.ts +6 -0
  406. package/dist/types/entities/currency/apis/total-supply.d.ts.map +1 -0
  407. package/dist/types/entities/currency/types.d.ts +32 -0
  408. package/dist/types/entities/currency/types.d.ts.map +1 -0
  409. package/dist/types/entities/fee-policy/model.d.ts +15 -0
  410. package/dist/types/entities/fee-policy/model.d.ts.map +1 -0
  411. package/dist/types/entities/market/apis/chart-log.d.ts +9 -0
  412. package/dist/types/entities/market/apis/chart-log.d.ts.map +1 -0
  413. package/dist/types/entities/market/apis/index.d.ts +7 -0
  414. package/dist/types/entities/market/apis/index.d.ts.map +1 -0
  415. package/dist/types/entities/market/apis/price.d.ts +32 -0
  416. package/dist/types/entities/market/apis/price.d.ts.map +1 -0
  417. package/dist/types/entities/market/apis/snapshot.d.ts +6 -0
  418. package/dist/types/entities/market/apis/snapshot.d.ts.map +1 -0
  419. package/dist/types/entities/market/model.d.ts +58 -0
  420. package/dist/types/entities/market/model.d.ts.map +1 -0
  421. package/dist/types/entities/market/types.d.ts +38 -0
  422. package/dist/types/entities/market/types.d.ts.map +1 -0
  423. package/dist/types/entities/market/utils/market-id.d.ts +7 -0
  424. package/dist/types/entities/market/utils/market-id.d.ts.map +1 -0
  425. package/dist/types/entities/open-order/apis/index.d.ts +9 -0
  426. package/dist/types/entities/open-order/apis/index.d.ts.map +1 -0
  427. package/dist/types/entities/open-order/apis/operator.d.ts +4 -0
  428. package/dist/types/entities/open-order/apis/operator.d.ts.map +1 -0
  429. package/dist/types/entities/open-order/types.d.ts +22 -0
  430. package/dist/types/entities/open-order/types.d.ts.map +1 -0
  431. package/dist/types/entities/open-order/utils/order-id.d.ts +7 -0
  432. package/dist/types/entities/open-order/utils/order-id.d.ts.map +1 -0
  433. package/dist/types/entities/vault/types.d.ts +4 -0
  434. package/dist/types/entities/vault/types.d.ts.map +1 -0
  435. package/dist/types/index.d.ts +7 -0
  436. package/dist/types/index.d.ts.map +1 -0
  437. package/dist/types/types/default-options.d.ts +10 -0
  438. package/dist/types/types/default-options.d.ts.map +1 -0
  439. package/dist/types/types/index.d.ts +26 -0
  440. package/dist/types/types/index.d.ts.map +1 -0
  441. package/dist/types/types/permit.d.ts +12 -0
  442. package/dist/types/types/permit.d.ts.map +1 -0
  443. package/dist/types/types/transaction.d.ts +10 -0
  444. package/dist/types/types/transaction.d.ts.map +1 -0
  445. package/dist/types/utils/bigint.d.ts +5 -0
  446. package/dist/types/utils/bigint.d.ts.map +1 -0
  447. package/dist/types/utils/build-transaction.d.ts +4 -0
  448. package/dist/types/utils/build-transaction.d.ts.map +1 -0
  449. package/dist/types/utils/conversion.d.ts +3 -0
  450. package/dist/types/utils/conversion.d.ts.map +1 -0
  451. package/dist/types/utils/index.d.ts +5 -0
  452. package/dist/types/utils/index.d.ts.map +1 -0
  453. package/dist/types/utils/math.d.ts +4 -0
  454. package/dist/types/utils/math.d.ts.map +1 -0
  455. package/dist/types/utils/prices.d.ts +14 -0
  456. package/dist/types/utils/prices.d.ts.map +1 -0
  457. package/dist/types/utils/tick.d.ts +5 -0
  458. package/dist/types/utils/tick.d.ts.map +1 -0
  459. package/dist/types/utils/time.d.ts +4 -0
  460. package/dist/types/utils/time.d.ts.map +1 -0
  461. package/dist/types/utils/unit-size.d.ts +4 -0
  462. package/dist/types/utils/unit-size.d.ts.map +1 -0
  463. package/dist/types/views/address.d.ts +21 -0
  464. package/dist/types/views/address.d.ts.map +1 -0
  465. package/dist/types/views/analytics.d.ts +21 -0
  466. package/dist/types/views/analytics.d.ts.map +1 -0
  467. package/dist/types/views/currency.d.ts +20 -0
  468. package/dist/types/views/currency.d.ts.map +1 -0
  469. package/dist/types/views/index.d.ts +9 -0
  470. package/dist/types/views/index.d.ts.map +1 -0
  471. package/dist/types/views/market/chart-log.d.ts +56 -0
  472. package/dist/types/views/market/chart-log.d.ts.map +1 -0
  473. package/dist/types/views/market/index.d.ts +57 -0
  474. package/dist/types/views/market/index.d.ts.map +1 -0
  475. package/dist/types/views/market/parse.d.ts +10 -0
  476. package/dist/types/views/market/parse.d.ts.map +1 -0
  477. package/dist/types/views/market/quote.d.ts +90 -0
  478. package/dist/types/views/market/quote.d.ts.map +1 -0
  479. package/dist/types/views/market/snapshot.d.ts +17 -0
  480. package/dist/types/views/market/snapshot.d.ts.map +1 -0
  481. package/dist/types/views/market/token.d.ts +24 -0
  482. package/dist/types/views/market/token.d.ts.map +1 -0
  483. package/dist/types/views/open-order.d.ts +41 -0
  484. package/dist/types/views/open-order.d.ts.map +1 -0
  485. package/dist/types/views/subgraph.d.ts +52 -0
  486. package/dist/types/views/subgraph.d.ts.map +1 -0
  487. package/dist/types/views/tick.d.ts +77 -0
  488. package/dist/types/views/tick.d.ts.map +1 -0
  489. package/dist/types/views/vault.d.ts +25 -0
  490. package/dist/types/views/vault.d.ts.map +1 -0
  491. package/package.json +52 -0
@@ -0,0 +1,1211 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BOOK_MANAGER_ABI = void 0;
4
+ exports.BOOK_MANAGER_ABI = [
5
+ {
6
+ inputs: [
7
+ { internalType: 'address', name: '_owner', type: 'address' },
8
+ { internalType: 'address', name: '_defaultReferrer', type: 'address' },
9
+ ],
10
+ stateMutability: 'nonpayable',
11
+ type: 'constructor',
12
+ },
13
+ { inputs: [], name: 'AccessControlBadConfirmation', type: 'error' },
14
+ {
15
+ inputs: [
16
+ { internalType: 'address', name: 'account', type: 'address' },
17
+ { internalType: 'bytes32', name: 'neededRole', type: 'bytes32' },
18
+ ],
19
+ name: 'AccessControlUnauthorizedAccount',
20
+ type: 'error',
21
+ },
22
+ { inputs: [], name: 'AssetMismatch', type: 'error' },
23
+ { inputs: [], name: 'BookClosedError', type: 'error' },
24
+ { inputs: [], name: 'BookNotOpened', type: 'error' },
25
+ { inputs: [], name: 'BookPausedError', type: 'error' },
26
+ { inputs: [], name: 'CurrencyNotSettled', type: 'error' },
27
+ { inputs: [], name: 'CurrencyPausedError', type: 'error' },
28
+ { inputs: [], name: 'EmptyError', type: 'error' },
29
+ { inputs: [], name: 'InvalidFeePolicy', type: 'error' },
30
+ {
31
+ inputs: [{ internalType: 'address', name: 'provider', type: 'address' }],
32
+ name: 'InvalidProvider',
33
+ type: 'error',
34
+ },
35
+ { inputs: [], name: 'InvalidReferrerFeeRate', type: 'error' },
36
+ { inputs: [], name: 'InvalidTick', type: 'error' },
37
+ { inputs: [], name: 'InvalidUnitLimits', type: 'error' },
38
+ { inputs: [], name: 'InvalidUnitSize', type: 'error' },
39
+ {
40
+ inputs: [{ internalType: 'address', name: 'locker', type: 'address' }],
41
+ name: 'LockedBy',
42
+ type: 'error',
43
+ },
44
+ {
45
+ inputs: [{ internalType: 'OrderId', name: 'id', type: 'uint256' }],
46
+ name: 'OrderAlreadyExists',
47
+ type: 'error',
48
+ },
49
+ {
50
+ inputs: [{ internalType: 'OrderId', name: 'id', type: 'uint256' }],
51
+ name: 'OrderDoesNotExist',
52
+ type: 'error',
53
+ },
54
+ {
55
+ inputs: [
56
+ { internalType: 'address', name: 'operator', type: 'address' },
57
+ { internalType: 'OrderId', name: 'id', type: 'uint256' },
58
+ ],
59
+ name: 'OrderNotAuthorized',
60
+ type: 'error',
61
+ },
62
+ {
63
+ inputs: [{ internalType: 'address', name: 'owner', type: 'address' }],
64
+ name: 'OwnableInvalidOwner',
65
+ type: 'error',
66
+ },
67
+ {
68
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
69
+ name: 'OwnableUnauthorizedAccount',
70
+ type: 'error',
71
+ },
72
+ { inputs: [], name: 'OwnerCannotBeZero', type: 'error' },
73
+ { inputs: [], name: 'Unauthorized', type: 'error' },
74
+ {
75
+ inputs: [
76
+ { internalType: 'uint64', name: 'unit', type: 'uint64' },
77
+ { internalType: 'uint64', name: 'maxUnit', type: 'uint64' },
78
+ ],
79
+ name: 'UnitAboveMaximum',
80
+ type: 'error',
81
+ },
82
+ {
83
+ inputs: [
84
+ { internalType: 'uint64', name: 'unit', type: 'uint64' },
85
+ { internalType: 'uint64', name: 'minUnit', type: 'uint64' },
86
+ ],
87
+ name: 'UnitBelowMinimum',
88
+ type: 'error',
89
+ },
90
+ { inputs: [], name: 'VaultCannotBeZero', type: 'error' },
91
+ {
92
+ anonymous: false,
93
+ inputs: [
94
+ {
95
+ indexed: true,
96
+ internalType: 'BookId',
97
+ name: 'bookId',
98
+ type: 'uint192',
99
+ },
100
+ ],
101
+ name: 'BookPaused',
102
+ type: 'event',
103
+ },
104
+ {
105
+ anonymous: false,
106
+ inputs: [
107
+ {
108
+ indexed: true,
109
+ internalType: 'BookId',
110
+ name: 'bookId',
111
+ type: 'uint192',
112
+ },
113
+ ],
114
+ name: 'BookUnpaused',
115
+ type: 'event',
116
+ },
117
+ {
118
+ anonymous: false,
119
+ inputs: [
120
+ {
121
+ indexed: true,
122
+ internalType: 'OrderId',
123
+ name: 'orderId',
124
+ type: 'uint256',
125
+ },
126
+ { indexed: false, internalType: 'uint64', name: 'unit', type: 'uint64' },
127
+ ],
128
+ name: 'Cancel',
129
+ type: 'event',
130
+ },
131
+ {
132
+ anonymous: false,
133
+ inputs: [
134
+ {
135
+ indexed: true,
136
+ internalType: 'OrderId',
137
+ name: 'orderId',
138
+ type: 'uint256',
139
+ },
140
+ { indexed: false, internalType: 'uint64', name: 'unit', type: 'uint64' },
141
+ ],
142
+ name: 'Claim',
143
+ type: 'event',
144
+ },
145
+ {
146
+ anonymous: false,
147
+ inputs: [
148
+ {
149
+ indexed: true,
150
+ internalType: 'Currency',
151
+ name: 'currency',
152
+ type: 'address',
153
+ },
154
+ ],
155
+ name: 'CurrencyPaused',
156
+ type: 'event',
157
+ },
158
+ {
159
+ anonymous: false,
160
+ inputs: [
161
+ {
162
+ indexed: true,
163
+ internalType: 'Currency',
164
+ name: 'currency',
165
+ type: 'address',
166
+ },
167
+ ],
168
+ name: 'CurrencyUnpaused',
169
+ type: 'event',
170
+ },
171
+ {
172
+ anonymous: false,
173
+ inputs: [
174
+ {
175
+ indexed: true,
176
+ internalType: 'address',
177
+ name: 'provider',
178
+ type: 'address',
179
+ },
180
+ ],
181
+ name: 'Delist',
182
+ type: 'event',
183
+ },
184
+ {
185
+ anonymous: false,
186
+ inputs: [
187
+ {
188
+ indexed: true,
189
+ internalType: 'BookId',
190
+ name: 'bookId',
191
+ type: 'uint192',
192
+ },
193
+ { indexed: true, internalType: 'address', name: 'user', type: 'address' },
194
+ { indexed: false, internalType: 'Tick', name: 'tick', type: 'int24' },
195
+ {
196
+ indexed: false,
197
+ internalType: 'uint256',
198
+ name: 'orderIndex',
199
+ type: 'uint256',
200
+ },
201
+ { indexed: false, internalType: 'uint64', name: 'unit', type: 'uint64' },
202
+ {
203
+ indexed: false,
204
+ internalType: 'address',
205
+ name: 'provider',
206
+ type: 'address',
207
+ },
208
+ ],
209
+ name: 'Make',
210
+ type: 'event',
211
+ },
212
+ {
213
+ anonymous: false,
214
+ inputs: [
215
+ { indexed: true, internalType: 'BookId', name: 'id', type: 'uint192' },
216
+ {
217
+ indexed: true,
218
+ internalType: 'Currency',
219
+ name: 'base',
220
+ type: 'address',
221
+ },
222
+ {
223
+ indexed: true,
224
+ internalType: 'Currency',
225
+ name: 'quote',
226
+ type: 'address',
227
+ },
228
+ {
229
+ indexed: false,
230
+ internalType: 'uint64',
231
+ name: 'unitSize',
232
+ type: 'uint64',
233
+ },
234
+ {
235
+ indexed: false,
236
+ internalType: 'FeePolicy',
237
+ name: 'makerPolicy',
238
+ type: 'uint24',
239
+ },
240
+ {
241
+ indexed: false,
242
+ internalType: 'FeePolicy',
243
+ name: 'takerPolicy',
244
+ type: 'uint24',
245
+ },
246
+ ],
247
+ name: 'Open',
248
+ type: 'event',
249
+ },
250
+ {
251
+ anonymous: false,
252
+ inputs: [
253
+ { indexed: true, internalType: 'OrderId', name: 'id', type: 'uint256' },
254
+ {
255
+ indexed: true,
256
+ internalType: 'address',
257
+ name: 'owner',
258
+ type: 'address',
259
+ },
260
+ {
261
+ indexed: true,
262
+ internalType: 'BookId',
263
+ name: 'bookId',
264
+ type: 'uint192',
265
+ },
266
+ ],
267
+ name: 'OrderCreated',
268
+ type: 'event',
269
+ },
270
+ {
271
+ anonymous: false,
272
+ inputs: [
273
+ { indexed: true, internalType: 'OrderId', name: 'id', type: 'uint256' },
274
+ {
275
+ indexed: true,
276
+ internalType: 'address',
277
+ name: 'owner',
278
+ type: 'address',
279
+ },
280
+ {
281
+ indexed: true,
282
+ internalType: 'BookId',
283
+ name: 'bookId',
284
+ type: 'uint192',
285
+ },
286
+ ],
287
+ name: 'OrderDestroyed',
288
+ type: 'event',
289
+ },
290
+ {
291
+ anonymous: false,
292
+ inputs: [
293
+ {
294
+ indexed: true,
295
+ internalType: 'address',
296
+ name: 'owner',
297
+ type: 'address',
298
+ },
299
+ {
300
+ indexed: true,
301
+ internalType: 'address',
302
+ name: 'operator',
303
+ type: 'address',
304
+ },
305
+ { indexed: false, internalType: 'bool', name: 'approved', type: 'bool' },
306
+ ],
307
+ name: 'OrderOperatorSet',
308
+ type: 'event',
309
+ },
310
+ {
311
+ anonymous: false,
312
+ inputs: [
313
+ {
314
+ indexed: true,
315
+ internalType: 'address',
316
+ name: 'previousOwner',
317
+ type: 'address',
318
+ },
319
+ {
320
+ indexed: true,
321
+ internalType: 'address',
322
+ name: 'newOwner',
323
+ type: 'address',
324
+ },
325
+ ],
326
+ name: 'OwnershipTransferStarted',
327
+ type: 'event',
328
+ },
329
+ {
330
+ anonymous: false,
331
+ inputs: [
332
+ {
333
+ indexed: true,
334
+ internalType: 'address',
335
+ name: 'previousOwner',
336
+ type: 'address',
337
+ },
338
+ {
339
+ indexed: true,
340
+ internalType: 'address',
341
+ name: 'newOwner',
342
+ type: 'address',
343
+ },
344
+ ],
345
+ name: 'OwnershipTransferred',
346
+ type: 'event',
347
+ },
348
+ {
349
+ anonymous: false,
350
+ inputs: [
351
+ {
352
+ indexed: true,
353
+ internalType: 'address',
354
+ name: 'provider',
355
+ type: 'address',
356
+ },
357
+ {
358
+ indexed: true,
359
+ internalType: 'Currency',
360
+ name: 'currency',
361
+ type: 'address',
362
+ },
363
+ {
364
+ indexed: false,
365
+ internalType: 'uint256',
366
+ name: 'amount',
367
+ type: 'uint256',
368
+ },
369
+ ],
370
+ name: 'ProviderFeePaid',
371
+ type: 'event',
372
+ },
373
+ {
374
+ anonymous: false,
375
+ inputs: [
376
+ {
377
+ indexed: true,
378
+ internalType: 'address',
379
+ name: 'referrer',
380
+ type: 'address',
381
+ },
382
+ {
383
+ indexed: true,
384
+ internalType: 'address',
385
+ name: 'provider',
386
+ type: 'address',
387
+ },
388
+ {
389
+ indexed: true,
390
+ internalType: 'Currency',
391
+ name: 'currency',
392
+ type: 'address',
393
+ },
394
+ {
395
+ indexed: false,
396
+ internalType: 'uint256',
397
+ name: 'amount',
398
+ type: 'uint256',
399
+ },
400
+ ],
401
+ name: 'ReferrerFeePaid',
402
+ type: 'event',
403
+ },
404
+ {
405
+ anonymous: false,
406
+ inputs: [
407
+ { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' },
408
+ {
409
+ indexed: true,
410
+ internalType: 'bytes32',
411
+ name: 'previousAdminRole',
412
+ type: 'bytes32',
413
+ },
414
+ {
415
+ indexed: true,
416
+ internalType: 'bytes32',
417
+ name: 'newAdminRole',
418
+ type: 'bytes32',
419
+ },
420
+ ],
421
+ name: 'RoleAdminChanged',
422
+ type: 'event',
423
+ },
424
+ {
425
+ anonymous: false,
426
+ inputs: [
427
+ { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' },
428
+ {
429
+ indexed: true,
430
+ internalType: 'address',
431
+ name: 'account',
432
+ type: 'address',
433
+ },
434
+ {
435
+ indexed: true,
436
+ internalType: 'address',
437
+ name: 'sender',
438
+ type: 'address',
439
+ },
440
+ ],
441
+ name: 'RoleGranted',
442
+ type: 'event',
443
+ },
444
+ {
445
+ anonymous: false,
446
+ inputs: [
447
+ { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' },
448
+ {
449
+ indexed: true,
450
+ internalType: 'address',
451
+ name: 'account',
452
+ type: 'address',
453
+ },
454
+ {
455
+ indexed: true,
456
+ internalType: 'address',
457
+ name: 'sender',
458
+ type: 'address',
459
+ },
460
+ ],
461
+ name: 'RoleRevoked',
462
+ type: 'event',
463
+ },
464
+ {
465
+ anonymous: false,
466
+ inputs: [
467
+ {
468
+ indexed: true,
469
+ internalType: 'address',
470
+ name: 'referrer',
471
+ type: 'address',
472
+ },
473
+ ],
474
+ name: 'SetDefaultReferrer',
475
+ type: 'event',
476
+ },
477
+ {
478
+ anonymous: false,
479
+ inputs: [
480
+ {
481
+ indexed: true,
482
+ internalType: 'address',
483
+ name: 'provider',
484
+ type: 'address',
485
+ },
486
+ {
487
+ indexed: false,
488
+ internalType: 'uint256',
489
+ name: 'referrerFeeRate',
490
+ type: 'uint256',
491
+ },
492
+ ],
493
+ name: 'SetReferrerFeeRate',
494
+ type: 'event',
495
+ },
496
+ {
497
+ anonymous: false,
498
+ inputs: [
499
+ {
500
+ indexed: true,
501
+ internalType: 'BookId',
502
+ name: 'bookId',
503
+ type: 'uint192',
504
+ },
505
+ { indexed: true, internalType: 'address', name: 'user', type: 'address' },
506
+ { indexed: false, internalType: 'Tick', name: 'tick', type: 'int24' },
507
+ { indexed: false, internalType: 'uint64', name: 'unit', type: 'uint64' },
508
+ ],
509
+ name: 'Take',
510
+ type: 'event',
511
+ },
512
+ {
513
+ anonymous: false,
514
+ inputs: [
515
+ {
516
+ indexed: true,
517
+ internalType: 'BookId',
518
+ name: 'bookId',
519
+ type: 'uint192',
520
+ },
521
+ {
522
+ indexed: false,
523
+ internalType: 'uint64',
524
+ name: 'minUnit',
525
+ type: 'uint64',
526
+ },
527
+ {
528
+ indexed: false,
529
+ internalType: 'uint64',
530
+ name: 'maxUnit',
531
+ type: 'uint64',
532
+ },
533
+ ],
534
+ name: 'UnitLimitsUpdated',
535
+ type: 'event',
536
+ },
537
+ {
538
+ anonymous: false,
539
+ inputs: [
540
+ {
541
+ indexed: true,
542
+ internalType: 'Currency',
543
+ name: 'currency',
544
+ type: 'address',
545
+ },
546
+ ],
547
+ name: 'VaultRemoved',
548
+ type: 'event',
549
+ },
550
+ {
551
+ anonymous: false,
552
+ inputs: [
553
+ {
554
+ indexed: true,
555
+ internalType: 'Currency',
556
+ name: 'currency',
557
+ type: 'address',
558
+ },
559
+ {
560
+ indexed: true,
561
+ internalType: 'contract IDEXVault',
562
+ name: 'vault',
563
+ type: 'address',
564
+ },
565
+ ],
566
+ name: 'VaultSet',
567
+ type: 'event',
568
+ },
569
+ {
570
+ anonymous: false,
571
+ inputs: [
572
+ {
573
+ indexed: true,
574
+ internalType: 'address',
575
+ name: 'provider',
576
+ type: 'address',
577
+ },
578
+ ],
579
+ name: 'Whitelist',
580
+ type: 'event',
581
+ },
582
+ {
583
+ inputs: [],
584
+ name: 'ADMIN_ROLE',
585
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
586
+ stateMutability: 'view',
587
+ type: 'function',
588
+ },
589
+ {
590
+ inputs: [],
591
+ name: 'DEFAULT_ADMIN_ROLE',
592
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
593
+ stateMutability: 'view',
594
+ type: 'function',
595
+ },
596
+ {
597
+ inputs: [],
598
+ name: 'acceptOwnership',
599
+ outputs: [],
600
+ stateMutability: 'nonpayable',
601
+ type: 'function',
602
+ },
603
+ {
604
+ inputs: [
605
+ {
606
+ components: [
607
+ { internalType: 'OrderId', name: 'id', type: 'uint256' },
608
+ { internalType: 'uint64', name: 'toUnit', type: 'uint64' },
609
+ { internalType: 'address', name: 'owner', type: 'address' },
610
+ ],
611
+ internalType: 'struct IBookManager.CancelParams',
612
+ name: 'params',
613
+ type: 'tuple',
614
+ },
615
+ ],
616
+ name: 'cancel',
617
+ outputs: [
618
+ { internalType: 'uint256', name: 'canceledAmount', type: 'uint256' },
619
+ ],
620
+ stateMutability: 'nonpayable',
621
+ type: 'function',
622
+ },
623
+ {
624
+ inputs: [
625
+ {
626
+ components: [
627
+ { internalType: 'OrderId', name: 'id', type: 'uint256' },
628
+ { internalType: 'address', name: 'owner', type: 'address' },
629
+ ],
630
+ internalType: 'struct IBookManager.ClaimParams',
631
+ name: 'params',
632
+ type: 'tuple',
633
+ },
634
+ ],
635
+ name: 'claim',
636
+ outputs: [
637
+ { internalType: 'uint256', name: 'claimedAmount', type: 'uint256' },
638
+ ],
639
+ stateMutability: 'nonpayable',
640
+ type: 'function',
641
+ },
642
+ {
643
+ inputs: [],
644
+ name: 'defaultReferrer',
645
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
646
+ stateMutability: 'view',
647
+ type: 'function',
648
+ },
649
+ {
650
+ inputs: [{ internalType: 'address', name: 'provider', type: 'address' }],
651
+ name: 'delist',
652
+ outputs: [],
653
+ stateMutability: 'nonpayable',
654
+ type: 'function',
655
+ },
656
+ {
657
+ inputs: [
658
+ {
659
+ components: [
660
+ { internalType: 'Currency', name: 'base', type: 'address' },
661
+ { internalType: 'uint64', name: 'unitSize', type: 'uint64' },
662
+ { internalType: 'Currency', name: 'quote', type: 'address' },
663
+ { internalType: 'FeePolicy', name: 'makerPolicy', type: 'uint24' },
664
+ { internalType: 'FeePolicy', name: 'takerPolicy', type: 'uint24' },
665
+ ],
666
+ internalType: 'struct IBookManager.BookKey',
667
+ name: 'key',
668
+ type: 'tuple',
669
+ },
670
+ ],
671
+ name: 'encodeBookKey',
672
+ outputs: [{ internalType: 'BookId', name: '', type: 'uint192' }],
673
+ stateMutability: 'pure',
674
+ type: 'function',
675
+ },
676
+ {
677
+ inputs: [{ internalType: 'BookId', name: 'id', type: 'uint192' }],
678
+ name: 'getBookKey',
679
+ outputs: [
680
+ {
681
+ components: [
682
+ { internalType: 'Currency', name: 'base', type: 'address' },
683
+ { internalType: 'uint64', name: 'unitSize', type: 'uint64' },
684
+ { internalType: 'Currency', name: 'quote', type: 'address' },
685
+ { internalType: 'FeePolicy', name: 'makerPolicy', type: 'uint24' },
686
+ { internalType: 'FeePolicy', name: 'takerPolicy', type: 'uint24' },
687
+ ],
688
+ internalType: 'struct IBookManager.BookKey',
689
+ name: '',
690
+ type: 'tuple',
691
+ },
692
+ ],
693
+ stateMutability: 'view',
694
+ type: 'function',
695
+ },
696
+ {
697
+ inputs: [{ internalType: 'BookId', name: 'bookId', type: 'uint192' }],
698
+ name: 'getBookUnitLimits',
699
+ outputs: [
700
+ { internalType: 'uint64', name: 'minUnit', type: 'uint64' },
701
+ { internalType: 'uint64', name: 'maxUnit', type: 'uint64' },
702
+ ],
703
+ stateMutability: 'view',
704
+ type: 'function',
705
+ },
706
+ {
707
+ inputs: [{ internalType: 'BookId', name: 'bookId', type: 'uint192' }],
708
+ name: 'getBookUserCount',
709
+ outputs: [{ internalType: 'uint256', name: 'count', type: 'uint256' }],
710
+ stateMutability: 'view',
711
+ type: 'function',
712
+ },
713
+ {
714
+ inputs: [
715
+ { internalType: 'BookId', name: 'bookId', type: 'uint192' },
716
+ { internalType: 'uint256', name: 'offset', type: 'uint256' },
717
+ { internalType: 'uint256', name: 'limit', type: 'uint256' },
718
+ ],
719
+ name: 'getBookUsers',
720
+ outputs: [
721
+ { internalType: 'address[]', name: 'users', type: 'address[]' },
722
+ { internalType: 'uint256', name: 'nextOffset', type: 'uint256' },
723
+ ],
724
+ stateMutability: 'view',
725
+ type: 'function',
726
+ },
727
+ {
728
+ inputs: [
729
+ { internalType: 'BookId', name: 'id', type: 'uint192' },
730
+ { internalType: 'Tick', name: 'tick', type: 'int24' },
731
+ ],
732
+ name: 'getDepth',
733
+ outputs: [{ internalType: 'uint64', name: '', type: 'uint64' }],
734
+ stateMutability: 'view',
735
+ type: 'function',
736
+ },
737
+ {
738
+ inputs: [{ internalType: 'BookId', name: 'id', type: 'uint192' }],
739
+ name: 'getHighest',
740
+ outputs: [{ internalType: 'Tick', name: '', type: 'int24' }],
741
+ stateMutability: 'view',
742
+ type: 'function',
743
+ },
744
+ {
745
+ inputs: [{ internalType: 'uint256', name: 'i', type: 'uint256' }],
746
+ name: 'getLock',
747
+ outputs: [
748
+ { internalType: 'address', name: '', type: 'address' },
749
+ { internalType: 'address', name: '', type: 'address' },
750
+ ],
751
+ stateMutability: 'view',
752
+ type: 'function',
753
+ },
754
+ {
755
+ inputs: [],
756
+ name: 'getLockData',
757
+ outputs: [
758
+ { internalType: 'uint128', name: '', type: 'uint128' },
759
+ { internalType: 'uint128', name: '', type: 'uint128' },
760
+ ],
761
+ stateMutability: 'view',
762
+ type: 'function',
763
+ },
764
+ {
765
+ inputs: [{ internalType: 'OrderId', name: 'id', type: 'uint256' }],
766
+ name: 'getOrder',
767
+ outputs: [
768
+ {
769
+ components: [
770
+ { internalType: 'address', name: 'makerProvider', type: 'address' },
771
+ { internalType: 'address', name: 'makerReferrer', type: 'address' },
772
+ { internalType: 'uint64', name: 'open', type: 'uint64' },
773
+ { internalType: 'uint64', name: 'claimable', type: 'uint64' },
774
+ ],
775
+ internalType: 'struct IBookManager.OrderInfo',
776
+ name: '',
777
+ type: 'tuple',
778
+ },
779
+ ],
780
+ stateMutability: 'view',
781
+ type: 'function',
782
+ },
783
+ {
784
+ inputs: [{ internalType: 'OrderId', name: 'id', type: 'uint256' }],
785
+ name: 'getOrderOwner',
786
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
787
+ stateMutability: 'view',
788
+ type: 'function',
789
+ },
790
+ {
791
+ inputs: [{ internalType: 'address', name: 'provider', type: 'address' }],
792
+ name: 'getReferrerFeeRate',
793
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
794
+ stateMutability: 'view',
795
+ type: 'function',
796
+ },
797
+ {
798
+ inputs: [{ internalType: 'bytes32', name: 'role', type: 'bytes32' }],
799
+ name: 'getRoleAdmin',
800
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
801
+ stateMutability: 'view',
802
+ type: 'function',
803
+ },
804
+ {
805
+ inputs: [
806
+ { internalType: 'BookId', name: 'bookId', type: 'uint192' },
807
+ { internalType: 'address', name: 'user', type: 'address' },
808
+ ],
809
+ name: 'getUserOrderCount',
810
+ outputs: [{ internalType: 'uint256', name: 'count', type: 'uint256' }],
811
+ stateMutability: 'view',
812
+ type: 'function',
813
+ },
814
+ {
815
+ inputs: [
816
+ { internalType: 'BookId', name: 'bookId', type: 'uint192' },
817
+ { internalType: 'address', name: 'user', type: 'address' },
818
+ { internalType: 'uint256', name: 'offset', type: 'uint256' },
819
+ { internalType: 'uint256', name: 'limit', type: 'uint256' },
820
+ ],
821
+ name: 'getUserOrdersInBook',
822
+ outputs: [
823
+ { internalType: 'OrderId[]', name: 'orders', type: 'uint256[]' },
824
+ { internalType: 'uint256', name: 'nextOffset', type: 'uint256' },
825
+ ],
826
+ stateMutability: 'view',
827
+ type: 'function',
828
+ },
829
+ {
830
+ inputs: [{ internalType: 'Currency', name: 'currency', type: 'address' }],
831
+ name: 'getVault',
832
+ outputs: [
833
+ { internalType: 'contract IDEXVault', name: 'vault', type: 'address' },
834
+ ],
835
+ stateMutability: 'view',
836
+ type: 'function',
837
+ },
838
+ {
839
+ inputs: [{ internalType: 'address', name: 'admin', type: 'address' }],
840
+ name: 'grantAdminRole',
841
+ outputs: [],
842
+ stateMutability: 'nonpayable',
843
+ type: 'function',
844
+ },
845
+ {
846
+ inputs: [
847
+ { internalType: 'bytes32', name: 'role', type: 'bytes32' },
848
+ { internalType: 'address', name: 'account', type: 'address' },
849
+ ],
850
+ name: 'grantRole',
851
+ outputs: [],
852
+ stateMutability: 'nonpayable',
853
+ type: 'function',
854
+ },
855
+ {
856
+ inputs: [
857
+ { internalType: 'bytes32', name: 'role', type: 'bytes32' },
858
+ { internalType: 'address', name: 'account', type: 'address' },
859
+ ],
860
+ name: 'hasRole',
861
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
862
+ stateMutability: 'view',
863
+ type: 'function',
864
+ },
865
+ {
866
+ inputs: [{ internalType: 'BookId', name: 'bookId', type: 'uint192' }],
867
+ name: 'isBookPaused',
868
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
869
+ stateMutability: 'view',
870
+ type: 'function',
871
+ },
872
+ {
873
+ inputs: [{ internalType: 'Currency', name: 'currency', type: 'address' }],
874
+ name: 'isCurrencyPaused',
875
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
876
+ stateMutability: 'view',
877
+ type: 'function',
878
+ },
879
+ {
880
+ inputs: [{ internalType: 'BookId', name: 'id', type: 'uint192' }],
881
+ name: 'isEmpty',
882
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
883
+ stateMutability: 'view',
884
+ type: 'function',
885
+ },
886
+ {
887
+ inputs: [{ internalType: 'BookId', name: 'id', type: 'uint192' }],
888
+ name: 'isOpened',
889
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
890
+ stateMutability: 'view',
891
+ type: 'function',
892
+ },
893
+ {
894
+ inputs: [
895
+ { internalType: 'address', name: 'owner', type: 'address' },
896
+ { internalType: 'address', name: 'operator', type: 'address' },
897
+ ],
898
+ name: 'isOrderOperator',
899
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
900
+ stateMutability: 'view',
901
+ type: 'function',
902
+ },
903
+ {
904
+ inputs: [{ internalType: 'address', name: 'provider', type: 'address' }],
905
+ name: 'isWhitelisted',
906
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
907
+ stateMutability: 'view',
908
+ type: 'function',
909
+ },
910
+ {
911
+ inputs: [
912
+ { internalType: 'address', name: 'locker', type: 'address' },
913
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
914
+ ],
915
+ name: 'lock',
916
+ outputs: [{ internalType: 'bytes', name: 'result', type: 'bytes' }],
917
+ stateMutability: 'nonpayable',
918
+ type: 'function',
919
+ },
920
+ {
921
+ inputs: [
922
+ {
923
+ components: [
924
+ {
925
+ components: [
926
+ { internalType: 'Currency', name: 'base', type: 'address' },
927
+ { internalType: 'uint64', name: 'unitSize', type: 'uint64' },
928
+ { internalType: 'Currency', name: 'quote', type: 'address' },
929
+ {
930
+ internalType: 'FeePolicy',
931
+ name: 'makerPolicy',
932
+ type: 'uint24',
933
+ },
934
+ {
935
+ internalType: 'FeePolicy',
936
+ name: 'takerPolicy',
937
+ type: 'uint24',
938
+ },
939
+ ],
940
+ internalType: 'struct IBookManager.BookKey',
941
+ name: 'key',
942
+ type: 'tuple',
943
+ },
944
+ { internalType: 'Tick', name: 'tick', type: 'int24' },
945
+ { internalType: 'uint64', name: 'unit', type: 'uint64' },
946
+ { internalType: 'address', name: 'provider', type: 'address' },
947
+ { internalType: 'address', name: 'owner', type: 'address' },
948
+ { internalType: 'address', name: 'referrer', type: 'address' },
949
+ ],
950
+ internalType: 'struct IBookManager.MakeParams',
951
+ name: 'params',
952
+ type: 'tuple',
953
+ },
954
+ ],
955
+ name: 'make',
956
+ outputs: [
957
+ { internalType: 'OrderId', name: 'id', type: 'uint256' },
958
+ { internalType: 'uint256', name: 'quoteAmount', type: 'uint256' },
959
+ ],
960
+ stateMutability: 'nonpayable',
961
+ type: 'function',
962
+ },
963
+ {
964
+ inputs: [
965
+ { internalType: 'BookId', name: 'id', type: 'uint192' },
966
+ { internalType: 'Tick', name: 'tick', type: 'int24' },
967
+ ],
968
+ name: 'maxLessThan',
969
+ outputs: [{ internalType: 'Tick', name: '', type: 'int24' }],
970
+ stateMutability: 'view',
971
+ type: 'function',
972
+ },
973
+ {
974
+ inputs: [
975
+ {
976
+ components: [
977
+ { internalType: 'Currency', name: 'base', type: 'address' },
978
+ { internalType: 'uint64', name: 'unitSize', type: 'uint64' },
979
+ { internalType: 'Currency', name: 'quote', type: 'address' },
980
+ { internalType: 'FeePolicy', name: 'makerPolicy', type: 'uint24' },
981
+ { internalType: 'FeePolicy', name: 'takerPolicy', type: 'uint24' },
982
+ ],
983
+ internalType: 'struct IBookManager.BookKey',
984
+ name: 'key',
985
+ type: 'tuple',
986
+ },
987
+ { internalType: 'uint64', name: 'minUnit', type: 'uint64' },
988
+ { internalType: 'uint64', name: 'maxUnit', type: 'uint64' },
989
+ ],
990
+ name: 'open',
991
+ outputs: [],
992
+ stateMutability: 'nonpayable',
993
+ type: 'function',
994
+ },
995
+ {
996
+ inputs: [{ internalType: 'OrderId', name: 'id', type: 'uint256' }],
997
+ name: 'orderExists',
998
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
999
+ stateMutability: 'view',
1000
+ type: 'function',
1001
+ },
1002
+ {
1003
+ inputs: [],
1004
+ name: 'owner',
1005
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
1006
+ stateMutability: 'view',
1007
+ type: 'function',
1008
+ },
1009
+ {
1010
+ inputs: [{ internalType: 'BookId', name: 'bookId', type: 'uint192' }],
1011
+ name: 'pauseBook',
1012
+ outputs: [],
1013
+ stateMutability: 'nonpayable',
1014
+ type: 'function',
1015
+ },
1016
+ {
1017
+ inputs: [{ internalType: 'Currency', name: 'currency', type: 'address' }],
1018
+ name: 'pauseCurrency',
1019
+ outputs: [],
1020
+ stateMutability: 'nonpayable',
1021
+ type: 'function',
1022
+ },
1023
+ {
1024
+ inputs: [],
1025
+ name: 'pendingOwner',
1026
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
1027
+ stateMutability: 'view',
1028
+ type: 'function',
1029
+ },
1030
+ {
1031
+ inputs: [{ internalType: 'Currency', name: 'currency', type: 'address' }],
1032
+ name: 'removeVault',
1033
+ outputs: [],
1034
+ stateMutability: 'nonpayable',
1035
+ type: 'function',
1036
+ },
1037
+ {
1038
+ inputs: [],
1039
+ name: 'renounceOwnership',
1040
+ outputs: [],
1041
+ stateMutability: 'nonpayable',
1042
+ type: 'function',
1043
+ },
1044
+ {
1045
+ inputs: [
1046
+ { internalType: 'bytes32', name: 'role', type: 'bytes32' },
1047
+ { internalType: 'address', name: 'callerConfirmation', type: 'address' },
1048
+ ],
1049
+ name: 'renounceRole',
1050
+ outputs: [],
1051
+ stateMutability: 'nonpayable',
1052
+ type: 'function',
1053
+ },
1054
+ {
1055
+ inputs: [{ internalType: 'address', name: 'admin', type: 'address' }],
1056
+ name: 'revokeAdminRole',
1057
+ outputs: [],
1058
+ stateMutability: 'nonpayable',
1059
+ type: 'function',
1060
+ },
1061
+ {
1062
+ inputs: [
1063
+ { internalType: 'bytes32', name: 'role', type: 'bytes32' },
1064
+ { internalType: 'address', name: 'account', type: 'address' },
1065
+ ],
1066
+ name: 'revokeRole',
1067
+ outputs: [],
1068
+ stateMutability: 'nonpayable',
1069
+ type: 'function',
1070
+ },
1071
+ {
1072
+ inputs: [
1073
+ { internalType: 'BookId', name: 'bookId', type: 'uint192' },
1074
+ { internalType: 'uint64', name: 'minUnit', type: 'uint64' },
1075
+ { internalType: 'uint64', name: 'maxUnit', type: 'uint64' },
1076
+ ],
1077
+ name: 'setBookUnitLimits',
1078
+ outputs: [],
1079
+ stateMutability: 'nonpayable',
1080
+ type: 'function',
1081
+ },
1082
+ {
1083
+ inputs: [
1084
+ { internalType: 'address', name: 'newDefaultReferrer', type: 'address' },
1085
+ ],
1086
+ name: 'setDefaultReferrer',
1087
+ outputs: [],
1088
+ stateMutability: 'nonpayable',
1089
+ type: 'function',
1090
+ },
1091
+ {
1092
+ inputs: [
1093
+ { internalType: 'address', name: 'operator', type: 'address' },
1094
+ { internalType: 'bool', name: 'approved', type: 'bool' },
1095
+ ],
1096
+ name: 'setOrderOperator',
1097
+ outputs: [],
1098
+ stateMutability: 'nonpayable',
1099
+ type: 'function',
1100
+ },
1101
+ {
1102
+ inputs: [
1103
+ { internalType: 'address', name: 'provider', type: 'address' },
1104
+ { internalType: 'uint256', name: 'referrerFeeRate', type: 'uint256' },
1105
+ ],
1106
+ name: 'setReferrerFeeRate',
1107
+ outputs: [],
1108
+ stateMutability: 'nonpayable',
1109
+ type: 'function',
1110
+ },
1111
+ {
1112
+ inputs: [
1113
+ { internalType: 'Currency', name: 'currency', type: 'address' },
1114
+ { internalType: 'contract IDEXVault', name: 'vault', type: 'address' },
1115
+ ],
1116
+ name: 'setVault',
1117
+ outputs: [],
1118
+ stateMutability: 'nonpayable',
1119
+ type: 'function',
1120
+ },
1121
+ {
1122
+ inputs: [{ internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }],
1123
+ name: 'supportsInterface',
1124
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1125
+ stateMutability: 'view',
1126
+ type: 'function',
1127
+ },
1128
+ {
1129
+ inputs: [
1130
+ {
1131
+ components: [
1132
+ {
1133
+ components: [
1134
+ { internalType: 'Currency', name: 'base', type: 'address' },
1135
+ { internalType: 'uint64', name: 'unitSize', type: 'uint64' },
1136
+ { internalType: 'Currency', name: 'quote', type: 'address' },
1137
+ {
1138
+ internalType: 'FeePolicy',
1139
+ name: 'makerPolicy',
1140
+ type: 'uint24',
1141
+ },
1142
+ {
1143
+ internalType: 'FeePolicy',
1144
+ name: 'takerPolicy',
1145
+ type: 'uint24',
1146
+ },
1147
+ ],
1148
+ internalType: 'struct IBookManager.BookKey',
1149
+ name: 'key',
1150
+ type: 'tuple',
1151
+ },
1152
+ { internalType: 'Tick', name: 'tick', type: 'int24' },
1153
+ { internalType: 'uint64', name: 'maxUnit', type: 'uint64' },
1154
+ { internalType: 'address', name: 'owner', type: 'address' },
1155
+ { internalType: 'address', name: 'provider', type: 'address' },
1156
+ { internalType: 'address', name: 'referrer', type: 'address' },
1157
+ ],
1158
+ internalType: 'struct IBookManager.TakeParams',
1159
+ name: 'params',
1160
+ type: 'tuple',
1161
+ },
1162
+ ],
1163
+ name: 'take',
1164
+ outputs: [
1165
+ { internalType: 'uint256', name: 'quoteAmount', type: 'uint256' },
1166
+ { internalType: 'uint256', name: 'baseAmount', type: 'uint256' },
1167
+ ],
1168
+ stateMutability: 'nonpayable',
1169
+ type: 'function',
1170
+ },
1171
+ {
1172
+ inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
1173
+ name: 'transferOwnership',
1174
+ outputs: [],
1175
+ stateMutability: 'nonpayable',
1176
+ type: 'function',
1177
+ },
1178
+ {
1179
+ inputs: [{ internalType: 'BookId', name: 'bookId', type: 'uint192' }],
1180
+ name: 'unpauseBook',
1181
+ outputs: [],
1182
+ stateMutability: 'nonpayable',
1183
+ type: 'function',
1184
+ },
1185
+ {
1186
+ inputs: [{ internalType: 'Currency', name: 'currency', type: 'address' }],
1187
+ name: 'unpauseCurrency',
1188
+ outputs: [],
1189
+ stateMutability: 'nonpayable',
1190
+ type: 'function',
1191
+ },
1192
+ {
1193
+ inputs: [
1194
+ { internalType: 'BookId', name: 'bookId', type: 'uint192' },
1195
+ { internalType: 'address', name: 'user', type: 'address' },
1196
+ ],
1197
+ name: 'userHasOrdersInBook',
1198
+ outputs: [{ internalType: 'bool', name: 'hasOrders', type: 'bool' }],
1199
+ stateMutability: 'view',
1200
+ type: 'function',
1201
+ },
1202
+ {
1203
+ inputs: [{ internalType: 'address', name: 'provider', type: 'address' }],
1204
+ name: 'whitelist',
1205
+ outputs: [],
1206
+ stateMutability: 'nonpayable',
1207
+ type: 'function',
1208
+ },
1209
+ { stateMutability: 'payable', type: 'receive' },
1210
+ ];
1211
+ //# sourceMappingURL=book-manager-abi.js.map