@1stdex/first-sdk 1.0.41 → 1.0.57

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 (219) hide show
  1. package/README.md +26 -1
  2. package/dist/cjs/calls/batch/index.js +3 -3
  3. package/dist/cjs/calls/batch/index.js.map +1 -1
  4. package/dist/cjs/calls/batch/{prepare-order-with-setup.js → prepare-limit-order-with-setup.js} +4 -16
  5. package/dist/cjs/calls/batch/prepare-limit-order-with-setup.js.map +1 -0
  6. package/dist/cjs/calls/batch/prepare-market-order-with-setup.js +0 -12
  7. package/dist/cjs/calls/batch/prepare-market-order-with-setup.js.map +1 -1
  8. package/dist/cjs/calls/index.js +2 -5
  9. package/dist/cjs/calls/index.js.map +1 -1
  10. package/dist/cjs/calls/market/cancel.js +0 -5
  11. package/dist/cjs/calls/market/cancel.js.map +1 -1
  12. package/dist/cjs/calls/market/claim.js +1 -6
  13. package/dist/cjs/calls/market/claim.js.map +1 -1
  14. package/dist/cjs/calls/market/limit.js +5 -18
  15. package/dist/cjs/calls/market/limit.js.map +1 -1
  16. package/dist/cjs/calls/market/make.js +2 -12
  17. package/dist/cjs/calls/market/make.js.map +1 -1
  18. package/dist/cjs/calls/market/market.js +1 -3
  19. package/dist/cjs/calls/market/market.js.map +1 -1
  20. package/dist/cjs/constants/abis/core/book-manager-abi.js +1100 -273
  21. package/dist/cjs/constants/abis/core/book-manager-abi.js.map +1 -1
  22. package/dist/cjs/constants/abis/core/book-viewer-abi.js +222 -42
  23. package/dist/cjs/constants/abis/core/book-viewer-abi.js.map +1 -1
  24. package/dist/cjs/constants/abis/core/claimable-dex-vault-abi.js +2096 -0
  25. package/dist/cjs/constants/abis/core/claimable-dex-vault-abi.js.map +1 -0
  26. package/dist/cjs/constants/abis/core/controller-abi.js +731 -134
  27. package/dist/cjs/constants/abis/core/controller-abi.js.map +1 -1
  28. package/dist/cjs/constants/abis/core/dex-vault-abi.js +1346 -7
  29. package/dist/cjs/constants/abis/core/dex-vault-abi.js.map +1 -1
  30. package/dist/cjs/constants/abis/core/mirror-token-abi.js +938 -164
  31. package/dist/cjs/constants/abis/core/mirror-token-abi.js.map +1 -1
  32. package/dist/cjs/constants/abis/core/params-abi.js +0 -1
  33. package/dist/cjs/constants/abis/core/params-abi.js.map +1 -1
  34. package/dist/cjs/constants/chain-configs/addresses.js +8 -3
  35. package/dist/cjs/constants/chain-configs/addresses.js.map +1 -1
  36. package/dist/cjs/constants/chain-configs/chain.js +2 -0
  37. package/dist/cjs/constants/chain-configs/chain.js.map +1 -1
  38. package/dist/cjs/constants/chain-configs/currency.js +9 -1
  39. package/dist/cjs/constants/chain-configs/currency.js.map +1 -1
  40. package/dist/cjs/constants/chain-configs/fee.js +2 -0
  41. package/dist/cjs/constants/chain-configs/fee.js.map +1 -1
  42. package/dist/cjs/constants/chain-configs/subgraph.js +2 -1
  43. package/dist/cjs/constants/chain-configs/subgraph.js.map +1 -1
  44. package/dist/cjs/entities/analytics/apis/index.js +4 -57
  45. package/dist/cjs/entities/analytics/apis/index.js.map +1 -1
  46. package/dist/cjs/entities/open-order/apis/index.js +72 -3
  47. package/dist/cjs/entities/open-order/apis/index.js.map +1 -1
  48. package/dist/cjs/views/balance.js +4 -4
  49. package/dist/cjs/views/balance.js.map +1 -1
  50. package/dist/cjs/views/index.js +3 -2
  51. package/dist/cjs/views/index.js.map +1 -1
  52. package/dist/cjs/views/market/order-result.js +38 -22
  53. package/dist/cjs/views/market/order-result.js.map +1 -1
  54. package/dist/cjs/views/open-order.js +11 -3
  55. package/dist/cjs/views/open-order.js.map +1 -1
  56. package/dist/cjs/views/setup.js +6 -30
  57. package/dist/cjs/views/setup.js.map +1 -1
  58. package/dist/esm/calls/approval/market.js +1 -1
  59. package/dist/esm/calls/approval/open-order.js +1 -1
  60. package/dist/esm/calls/approval/token.js +1 -1
  61. package/dist/esm/calls/batch/index.js +1 -1
  62. package/dist/esm/calls/batch/index.js.map +1 -1
  63. package/dist/esm/calls/batch/{prepare-order-with-setup.js → prepare-limit-order-with-setup.js} +6 -19
  64. package/dist/esm/calls/batch/prepare-limit-order-with-setup.js.map +1 -0
  65. package/dist/esm/calls/batch/prepare-market-order-with-setup.js +3 -16
  66. package/dist/esm/calls/batch/prepare-market-order-with-setup.js.map +1 -1
  67. package/dist/esm/calls/index.js +1 -2
  68. package/dist/esm/calls/index.js.map +1 -1
  69. package/dist/esm/calls/market/cancel.js +2 -7
  70. package/dist/esm/calls/market/cancel.js.map +1 -1
  71. package/dist/esm/calls/market/claim.js +5 -10
  72. package/dist/esm/calls/market/claim.js.map +1 -1
  73. package/dist/esm/calls/market/limit.js +7 -20
  74. package/dist/esm/calls/market/limit.js.map +1 -1
  75. package/dist/esm/calls/market/make.js +2 -12
  76. package/dist/esm/calls/market/make.js.map +1 -1
  77. package/dist/esm/calls/market/market.js +2 -4
  78. package/dist/esm/calls/market/market.js.map +1 -1
  79. package/dist/esm/calls/market/open.js +1 -1
  80. package/dist/esm/calls/vault/deposit-to-vault.js +1 -1
  81. package/dist/esm/calls/vault/remove-vault.js +1 -1
  82. package/dist/esm/calls/vault/set-vault.js +1 -1
  83. package/dist/esm/calls/vault/withdraw-from-vault.js +1 -1
  84. package/dist/esm/constants/abis/core/book-manager-abi.js +1100 -273
  85. package/dist/esm/constants/abis/core/book-manager-abi.js.map +1 -1
  86. package/dist/esm/constants/abis/core/book-viewer-abi.js +222 -42
  87. package/dist/esm/constants/abis/core/book-viewer-abi.js.map +1 -1
  88. package/dist/esm/constants/abis/core/claimable-dex-vault-abi.js +2093 -0
  89. package/dist/esm/constants/abis/core/claimable-dex-vault-abi.js.map +1 -0
  90. package/dist/esm/constants/abis/core/controller-abi.js +731 -134
  91. package/dist/esm/constants/abis/core/controller-abi.js.map +1 -1
  92. package/dist/esm/constants/abis/core/dex-vault-abi.js +1346 -7
  93. package/dist/esm/constants/abis/core/dex-vault-abi.js.map +1 -1
  94. package/dist/esm/constants/abis/core/mirror-token-abi.js +938 -164
  95. package/dist/esm/constants/abis/core/mirror-token-abi.js.map +1 -1
  96. package/dist/esm/constants/abis/core/params-abi.js +0 -1
  97. package/dist/esm/constants/abis/core/params-abi.js.map +1 -1
  98. package/dist/esm/constants/chain-configs/addresses.js +8 -3
  99. package/dist/esm/constants/chain-configs/addresses.js.map +1 -1
  100. package/dist/esm/constants/chain-configs/chain.js +3 -1
  101. package/dist/esm/constants/chain-configs/chain.js.map +1 -1
  102. package/dist/esm/constants/chain-configs/currency.js +9 -1
  103. package/dist/esm/constants/chain-configs/currency.js.map +1 -1
  104. package/dist/esm/constants/chain-configs/fee.js +2 -0
  105. package/dist/esm/constants/chain-configs/fee.js.map +1 -1
  106. package/dist/esm/constants/chain-configs/subgraph.js +2 -1
  107. package/dist/esm/constants/chain-configs/subgraph.js.map +1 -1
  108. package/dist/esm/entities/analytics/apis/index.js +4 -57
  109. package/dist/esm/entities/analytics/apis/index.js.map +1 -1
  110. package/dist/esm/entities/open-order/apis/index.js +69 -2
  111. package/dist/esm/entities/open-order/apis/index.js.map +1 -1
  112. package/dist/esm/views/address.js +1 -1
  113. package/dist/esm/views/balance.js +4 -4
  114. package/dist/esm/views/balance.js.map +1 -1
  115. package/dist/esm/views/book.js +1 -1
  116. package/dist/esm/views/index.js +2 -2
  117. package/dist/esm/views/index.js.map +1 -1
  118. package/dist/esm/views/market/chart-log.js +2 -2
  119. package/dist/esm/views/market/index.js +1 -1
  120. package/dist/esm/views/market/order-result.js +52 -26
  121. package/dist/esm/views/market/order-result.js.map +1 -1
  122. package/dist/esm/views/market/quote.js +2 -2
  123. package/dist/esm/views/market/token.js +1 -1
  124. package/dist/esm/views/open-order.js +46 -5
  125. package/dist/esm/views/open-order.js.map +1 -1
  126. package/dist/esm/views/order.js +1 -1
  127. package/dist/esm/views/setup.js +10 -50
  128. package/dist/esm/views/setup.js.map +1 -1
  129. package/dist/esm/views/subgraph.js +3 -3
  130. package/dist/esm/views/vault.js +1 -1
  131. package/dist/tsconfig.build.tsbuildinfo +1 -1
  132. package/dist/types/calls/approval/market.d.ts +1 -1
  133. package/dist/types/calls/approval/open-order.d.ts +1 -1
  134. package/dist/types/calls/approval/token.d.ts +1 -1
  135. package/dist/types/calls/batch/index.d.ts +2 -2
  136. package/dist/types/calls/batch/index.d.ts.map +1 -1
  137. package/dist/types/calls/batch/{prepare-order-with-setup.d.ts → prepare-limit-order-with-setup.d.ts} +5 -8
  138. package/dist/types/calls/batch/prepare-limit-order-with-setup.d.ts.map +1 -0
  139. package/dist/types/calls/batch/prepare-market-order-with-setup.d.ts +2 -2
  140. package/dist/types/calls/batch/prepare-market-order-with-setup.d.ts.map +1 -1
  141. package/dist/types/calls/index.d.ts +1 -2
  142. package/dist/types/calls/index.d.ts.map +1 -1
  143. package/dist/types/calls/market/cancel.d.ts +2 -2
  144. package/dist/types/calls/market/cancel.d.ts.map +1 -1
  145. package/dist/types/calls/market/claim.d.ts +4 -4
  146. package/dist/types/calls/market/claim.d.ts.map +1 -1
  147. package/dist/types/calls/market/limit.d.ts +3 -6
  148. package/dist/types/calls/market/limit.d.ts.map +1 -1
  149. package/dist/types/calls/market/make.d.ts +0 -2
  150. package/dist/types/calls/market/make.d.ts.map +1 -1
  151. package/dist/types/calls/market/market.d.ts +1 -2
  152. package/dist/types/calls/market/market.d.ts.map +1 -1
  153. package/dist/types/calls/market/open.d.ts +1 -1
  154. package/dist/types/calls/vault/deposit-to-vault.d.ts +1 -1
  155. package/dist/types/calls/vault/remove-vault.d.ts +1 -1
  156. package/dist/types/calls/vault/set-vault.d.ts +1 -1
  157. package/dist/types/calls/vault/withdraw-from-vault.d.ts +1 -1
  158. package/dist/types/constants/abis/core/book-manager-abi.d.ts +67 -159
  159. package/dist/types/constants/abis/core/book-manager-abi.d.ts.map +1 -1
  160. package/dist/types/constants/abis/core/book-viewer-abi.d.ts +0 -8
  161. package/dist/types/constants/abis/core/book-viewer-abi.d.ts.map +1 -1
  162. package/dist/types/constants/abis/core/{claimable-dex-vault.d.ts → claimable-dex-vault-abi.d.ts} +74 -117
  163. package/dist/types/constants/abis/core/{claimable-dex-vault.d.ts.map → claimable-dex-vault-abi.d.ts.map} +1 -1
  164. package/dist/types/constants/abis/core/controller-abi.d.ts +25 -25
  165. package/dist/types/constants/abis/core/controller-abi.d.ts.map +1 -1
  166. package/dist/types/constants/abis/core/dex-vault-abi.d.ts +1008 -4
  167. package/dist/types/constants/abis/core/dex-vault-abi.d.ts.map +1 -1
  168. package/dist/types/constants/abis/core/mirror-token-abi.d.ts +10 -0
  169. package/dist/types/constants/abis/core/mirror-token-abi.d.ts.map +1 -1
  170. package/dist/types/constants/abis/core/params-abi.d.ts.map +1 -1
  171. package/dist/types/constants/chain-configs/addresses.d.ts.map +1 -1
  172. package/dist/types/constants/chain-configs/chain.d.ts +1 -0
  173. package/dist/types/constants/chain-configs/chain.d.ts.map +1 -1
  174. package/dist/types/constants/chain-configs/currency.d.ts.map +1 -1
  175. package/dist/types/constants/chain-configs/fee.d.ts.map +1 -1
  176. package/dist/types/constants/chain-configs/subgraph.d.ts.map +1 -1
  177. package/dist/types/entities/analytics/apis/index.d.ts.map +1 -1
  178. package/dist/types/entities/analytics/types.d.ts +1 -7
  179. package/dist/types/entities/analytics/types.d.ts.map +1 -1
  180. package/dist/types/entities/open-order/apis/index.d.ts +3 -1
  181. package/dist/types/entities/open-order/apis/index.d.ts.map +1 -1
  182. package/dist/types/views/address.d.ts +1 -1
  183. package/dist/types/views/balance.d.ts +2 -2
  184. package/dist/types/views/book.d.ts +1 -1
  185. package/dist/types/views/index.d.ts +2 -2
  186. package/dist/types/views/index.d.ts.map +1 -1
  187. package/dist/types/views/market/chart-log.d.ts +2 -2
  188. package/dist/types/views/market/index.d.ts +1 -1
  189. package/dist/types/views/market/order-result.d.ts +2 -2
  190. package/dist/types/views/market/order-result.d.ts.map +1 -1
  191. package/dist/types/views/market/quote.d.ts +2 -2
  192. package/dist/types/views/market/token.d.ts +1 -1
  193. package/dist/types/views/open-order.d.ts +49 -3
  194. package/dist/types/views/open-order.d.ts.map +1 -1
  195. package/dist/types/views/order.d.ts +1 -1
  196. package/dist/types/views/setup.d.ts +5 -32
  197. package/dist/types/views/setup.d.ts.map +1 -1
  198. package/dist/types/views/subgraph.d.ts +3 -3
  199. package/dist/types/views/vault.d.ts +1 -1
  200. package/package.json +1 -1
  201. package/dist/cjs/calls/approval/order.js +0 -44
  202. package/dist/cjs/calls/approval/order.js.map +0 -1
  203. package/dist/cjs/calls/batch/prepare-order-with-setup.js.map +0 -1
  204. package/dist/cjs/constants/abis/core/claimable-dex-vault.js +0 -1166
  205. package/dist/cjs/constants/abis/core/claimable-dex-vault.js.map +0 -1
  206. package/dist/cjs/entities/open-order/apis/operator.js +0 -15
  207. package/dist/cjs/entities/open-order/apis/operator.js.map +0 -1
  208. package/dist/esm/calls/approval/order.js +0 -80
  209. package/dist/esm/calls/approval/order.js.map +0 -1
  210. package/dist/esm/calls/batch/prepare-order-with-setup.js.map +0 -1
  211. package/dist/esm/constants/abis/core/claimable-dex-vault.js +0 -1163
  212. package/dist/esm/constants/abis/core/claimable-dex-vault.js.map +0 -1
  213. package/dist/esm/entities/open-order/apis/operator.js +0 -11
  214. package/dist/esm/entities/open-order/apis/operator.js.map +0 -1
  215. package/dist/types/calls/approval/order.d.ts +0 -56
  216. package/dist/types/calls/approval/order.d.ts.map +0 -1
  217. package/dist/types/calls/batch/prepare-order-with-setup.d.ts.map +0 -1
  218. package/dist/types/entities/open-order/apis/operator.d.ts +0 -4
  219. package/dist/types/entities/open-order/apis/operator.d.ts.map +0 -1
@@ -1,100 +1,212 @@
1
1
  export const BOOK_MANAGER_ABI = [
2
2
  {
3
3
  inputs: [
4
- { internalType: 'address', name: '_defaultReferrer', type: 'address' },
4
+ {
5
+ internalType: 'address',
6
+ name: '_feeRecipient',
7
+ type: 'address',
8
+ },
9
+ {
10
+ internalType: 'address',
11
+ name: '_defaultReferrer',
12
+ type: 'address',
13
+ },
5
14
  ],
6
15
  stateMutability: 'nonpayable',
7
16
  type: 'constructor',
8
17
  },
9
- { inputs: [], name: 'AccessControlBadConfirmation', type: 'error' },
18
+ {
19
+ inputs: [],
20
+ name: 'AccessControlBadConfirmation',
21
+ type: 'error',
22
+ },
10
23
  {
11
24
  inputs: [
12
- { internalType: 'address', name: 'account', type: 'address' },
13
- { internalType: 'bytes32', name: 'neededRole', type: 'bytes32' },
25
+ {
26
+ internalType: 'address',
27
+ name: 'account',
28
+ type: 'address',
29
+ },
30
+ {
31
+ internalType: 'bytes32',
32
+ name: 'neededRole',
33
+ type: 'bytes32',
34
+ },
14
35
  ],
15
36
  name: 'AccessControlUnauthorizedAccount',
16
37
  type: 'error',
17
38
  },
18
- { inputs: [], name: 'AssetMismatch', type: 'error' },
19
- { inputs: [], name: 'BookClosedError', type: 'error' },
20
- { inputs: [], name: 'BookNotOpened', type: 'error' },
21
- { inputs: [], name: 'BookPausedError', type: 'error' },
22
- { inputs: [], name: 'CallerMustBeLocker', type: 'error' },
23
- { inputs: [], name: 'CurrencyNotSettled', type: 'error' },
24
- { inputs: [], name: 'CurrencyPausedError', type: 'error' },
25
- { inputs: [], name: 'EmptyError', type: 'error' },
26
- { inputs: [], name: 'InvalidFeePolicy', type: 'error' },
27
- {
28
- inputs: [{ internalType: 'address', name: 'provider', type: 'address' }],
29
- name: 'InvalidProvider',
39
+ {
40
+ inputs: [],
41
+ name: 'AssetMismatch',
42
+ type: 'error',
43
+ },
44
+ {
45
+ inputs: [],
46
+ name: 'BookClosedError',
47
+ type: 'error',
48
+ },
49
+ {
50
+ inputs: [],
51
+ name: 'BookNotOpened',
52
+ type: 'error',
53
+ },
54
+ {
55
+ inputs: [],
56
+ name: 'BookPausedError',
57
+ type: 'error',
58
+ },
59
+ {
60
+ inputs: [],
61
+ name: 'CallerMustBeLocker',
62
+ type: 'error',
63
+ },
64
+ {
65
+ inputs: [],
66
+ name: 'CurrencyNotSettled',
67
+ type: 'error',
68
+ },
69
+ {
70
+ inputs: [],
71
+ name: 'CurrencyPausedError',
72
+ type: 'error',
73
+ },
74
+ {
75
+ inputs: [],
76
+ name: 'EmptyError',
77
+ type: 'error',
78
+ },
79
+ {
80
+ inputs: [],
81
+ name: 'InvalidFeePolicy',
82
+ type: 'error',
83
+ },
84
+ {
85
+ inputs: [],
86
+ name: 'InvalidFeeRecipient',
87
+ type: 'error',
88
+ },
89
+ {
90
+ inputs: [],
91
+ name: 'InvalidReferrer',
92
+ type: 'error',
93
+ },
94
+ {
95
+ inputs: [],
96
+ name: 'InvalidReferrerFeeRate',
97
+ type: 'error',
98
+ },
99
+ {
100
+ inputs: [],
101
+ name: 'InvalidTick',
102
+ type: 'error',
103
+ },
104
+ {
105
+ inputs: [],
106
+ name: 'InvalidUnitLimits',
107
+ type: 'error',
108
+ },
109
+ {
110
+ inputs: [],
111
+ name: 'InvalidUnitSize',
30
112
  type: 'error',
31
113
  },
32
- { inputs: [], name: 'InvalidReferrerFeeRate', type: 'error' },
33
- { inputs: [], name: 'InvalidTick', type: 'error' },
34
- { inputs: [], name: 'InvalidUnitLimits', type: 'error' },
35
- { inputs: [], name: 'InvalidUnitSize', type: 'error' },
36
114
  {
37
- inputs: [{ internalType: 'address', name: 'locker', type: 'address' }],
115
+ inputs: [
116
+ {
117
+ internalType: 'address',
118
+ name: 'locker',
119
+ type: 'address',
120
+ },
121
+ ],
38
122
  name: 'LockedBy',
39
123
  type: 'error',
40
124
  },
41
- { inputs: [], name: 'LockerNotAuthorized', type: 'error' },
42
125
  {
43
- inputs: [{ internalType: 'OrderId', name: 'id', type: 'uint256' }],
44
- name: 'OrderAlreadyExists',
126
+ inputs: [],
127
+ name: 'LockerNotAuthorized',
45
128
  type: 'error',
46
129
  },
47
130
  {
48
- inputs: [{ internalType: 'OrderId', name: 'id', type: 'uint256' }],
49
- name: 'OrderDoesNotExist',
131
+ inputs: [
132
+ {
133
+ internalType: 'OrderId',
134
+ name: 'id',
135
+ type: 'uint256',
136
+ },
137
+ ],
138
+ name: 'OrderAlreadyExists',
50
139
  type: 'error',
51
140
  },
52
141
  {
53
142
  inputs: [
54
- { internalType: 'address', name: 'operator', type: 'address' },
55
- { internalType: 'OrderId', name: 'id', type: 'uint256' },
143
+ {
144
+ internalType: 'OrderId',
145
+ name: 'id',
146
+ type: 'uint256',
147
+ },
56
148
  ],
57
- name: 'OrderNotAuthorized',
149
+ name: 'OrderDoesNotExist',
150
+ type: 'error',
151
+ },
152
+ {
153
+ inputs: [],
154
+ name: 'OrderNotFoundAtIndex',
58
155
  type: 'error',
59
156
  },
60
- { inputs: [], name: 'OrderNotFoundAtIndex', type: 'error' },
61
157
  {
62
- inputs: [{ internalType: 'address', name: 'owner', type: 'address' }],
158
+ inputs: [
159
+ {
160
+ internalType: 'address',
161
+ name: 'owner',
162
+ type: 'address',
163
+ },
164
+ ],
63
165
  name: 'OwnableInvalidOwner',
64
166
  type: 'error',
65
167
  },
66
168
  {
67
- inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
169
+ inputs: [
170
+ {
171
+ internalType: 'address',
172
+ name: 'account',
173
+ type: 'address',
174
+ },
175
+ ],
68
176
  name: 'OwnableUnauthorizedAccount',
69
177
  type: 'error',
70
178
  },
71
- { inputs: [], name: 'OwnerCannotBeZero', type: 'error' },
72
- { inputs: [], name: 'ProviderAlreadyWhitelisted', type: 'error' },
73
- { inputs: [], name: 'ProviderNotWhitelisted', type: 'error' },
74
179
  {
75
- inputs: [{ internalType: 'address', name: 'token', type: 'address' }],
76
- name: 'SafeERC20FailedOperation',
180
+ inputs: [],
181
+ name: 'OwnerCannotBeZero',
77
182
  type: 'error',
78
183
  },
79
- { inputs: [], name: 'Unauthorized', type: 'error' },
80
184
  {
81
185
  inputs: [
82
- { internalType: 'uint64', name: 'unit', type: 'uint64' },
83
- { internalType: 'uint64', name: 'maxUnit', type: 'uint64' },
186
+ {
187
+ internalType: 'address',
188
+ name: 'token',
189
+ type: 'address',
190
+ },
84
191
  ],
85
- name: 'UnitAboveMaximum',
192
+ name: 'SafeERC20FailedOperation',
86
193
  type: 'error',
87
194
  },
88
195
  {
89
- inputs: [
90
- { internalType: 'uint64', name: 'unit', type: 'uint64' },
91
- { internalType: 'uint64', name: 'minUnit', type: 'uint64' },
92
- ],
93
- name: 'UnitBelowMinimum',
196
+ inputs: [],
197
+ name: 'Unauthorized',
198
+ type: 'error',
199
+ },
200
+ {
201
+ inputs: [],
202
+ name: 'VaultCannotBeZero',
203
+ type: 'error',
204
+ },
205
+ {
206
+ inputs: [],
207
+ name: 'VaultDoesNotExist',
94
208
  type: 'error',
95
209
  },
96
- { inputs: [], name: 'VaultCannotBeZero', type: 'error' },
97
- { inputs: [], name: 'VaultDoesNotExist', type: 'error' },
98
210
  {
99
211
  anonymous: false,
100
212
  inputs: [
@@ -149,7 +261,12 @@ export const BOOK_MANAGER_ABI = [
149
261
  name: 'orderId',
150
262
  type: 'uint256',
151
263
  },
152
- { indexed: false, internalType: 'uint64', name: 'unit', type: 'uint64' },
264
+ {
265
+ indexed: false,
266
+ internalType: 'uint64',
267
+ name: 'unit',
268
+ type: 'uint64',
269
+ },
153
270
  ],
154
271
  name: 'Cancel',
155
272
  type: 'event',
@@ -163,7 +280,12 @@ export const BOOK_MANAGER_ABI = [
163
280
  name: 'orderId',
164
281
  type: 'uint256',
165
282
  },
166
- { indexed: false, internalType: 'uint64', name: 'unit', type: 'uint64' },
283
+ {
284
+ indexed: false,
285
+ internalType: 'uint64',
286
+ name: 'unit',
287
+ type: 'uint64',
288
+ },
167
289
  ],
168
290
  name: 'Claim',
169
291
  type: 'event',
@@ -200,11 +322,11 @@ export const BOOK_MANAGER_ABI = [
200
322
  {
201
323
  indexed: true,
202
324
  internalType: 'address',
203
- name: 'provider',
325
+ name: 'newFeeRecipient',
204
326
  type: 'address',
205
327
  },
206
328
  ],
207
- name: 'Delist',
329
+ name: 'FeeRecipientUpdated',
208
330
  type: 'event',
209
331
  },
210
332
  {
@@ -216,19 +338,34 @@ export const BOOK_MANAGER_ABI = [
216
338
  name: 'bookId',
217
339
  type: 'uint192',
218
340
  },
219
- { indexed: true, internalType: 'address', name: 'user', type: 'address' },
220
- { indexed: false, internalType: 'Tick', name: 'tick', type: 'int24' },
341
+ {
342
+ indexed: true,
343
+ internalType: 'address',
344
+ name: 'user',
345
+ type: 'address',
346
+ },
347
+ {
348
+ indexed: false,
349
+ internalType: 'Tick',
350
+ name: 'tick',
351
+ type: 'int24',
352
+ },
221
353
  {
222
354
  indexed: false,
223
355
  internalType: 'uint256',
224
356
  name: 'orderIndex',
225
357
  type: 'uint256',
226
358
  },
227
- { indexed: false, internalType: 'uint64', name: 'unit', type: 'uint64' },
359
+ {
360
+ indexed: false,
361
+ internalType: 'uint64',
362
+ name: 'unit',
363
+ type: 'uint64',
364
+ },
228
365
  {
229
366
  indexed: false,
230
367
  internalType: 'address',
231
- name: 'provider',
368
+ name: 'referrer',
232
369
  type: 'address',
233
370
  },
234
371
  ],
@@ -238,7 +375,12 @@ export const BOOK_MANAGER_ABI = [
238
375
  {
239
376
  anonymous: false,
240
377
  inputs: [
241
- { indexed: true, internalType: 'BookId', name: 'id', type: 'uint192' },
378
+ {
379
+ indexed: true,
380
+ internalType: 'BookId',
381
+ name: 'id',
382
+ type: 'uint192',
383
+ },
242
384
  {
243
385
  indexed: true,
244
386
  internalType: 'Currency',
@@ -276,7 +418,12 @@ export const BOOK_MANAGER_ABI = [
276
418
  {
277
419
  anonymous: false,
278
420
  inputs: [
279
- { indexed: true, internalType: 'OrderId', name: 'id', type: 'uint256' },
421
+ {
422
+ indexed: true,
423
+ internalType: 'OrderId',
424
+ name: 'id',
425
+ type: 'uint256',
426
+ },
280
427
  {
281
428
  indexed: true,
282
429
  internalType: 'address',
@@ -296,7 +443,12 @@ export const BOOK_MANAGER_ABI = [
296
443
  {
297
444
  anonymous: false,
298
445
  inputs: [
299
- { indexed: true, internalType: 'OrderId', name: 'id', type: 'uint256' },
446
+ {
447
+ indexed: true,
448
+ internalType: 'OrderId',
449
+ name: 'id',
450
+ type: 'uint256',
451
+ },
300
452
  {
301
453
  indexed: true,
302
454
  internalType: 'address',
@@ -313,26 +465,6 @@ export const BOOK_MANAGER_ABI = [
313
465
  name: 'OrderDestroyed',
314
466
  type: 'event',
315
467
  },
316
- {
317
- anonymous: false,
318
- inputs: [
319
- {
320
- indexed: true,
321
- internalType: 'address',
322
- name: 'owner',
323
- type: 'address',
324
- },
325
- {
326
- indexed: true,
327
- internalType: 'address',
328
- name: 'operator',
329
- type: 'address',
330
- },
331
- { indexed: false, internalType: 'bool', name: 'approved', type: 'bool' },
332
- ],
333
- name: 'OrderOperatorSet',
334
- type: 'event',
335
- },
336
468
  {
337
469
  anonymous: false,
338
470
  inputs: [
@@ -442,7 +574,12 @@ export const BOOK_MANAGER_ABI = [
442
574
  {
443
575
  anonymous: false,
444
576
  inputs: [
445
- { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' },
577
+ {
578
+ indexed: true,
579
+ internalType: 'bytes32',
580
+ name: 'role',
581
+ type: 'bytes32',
582
+ },
446
583
  {
447
584
  indexed: true,
448
585
  internalType: 'bytes32',
@@ -462,7 +599,12 @@ export const BOOK_MANAGER_ABI = [
462
599
  {
463
600
  anonymous: false,
464
601
  inputs: [
465
- { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' },
602
+ {
603
+ indexed: true,
604
+ internalType: 'bytes32',
605
+ name: 'role',
606
+ type: 'bytes32',
607
+ },
466
608
  {
467
609
  indexed: true,
468
610
  internalType: 'address',
@@ -482,7 +624,12 @@ export const BOOK_MANAGER_ABI = [
482
624
  {
483
625
  anonymous: false,
484
626
  inputs: [
485
- { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' },
627
+ {
628
+ indexed: true,
629
+ internalType: 'bytes32',
630
+ name: 'role',
631
+ type: 'bytes32',
632
+ },
486
633
  {
487
634
  indexed: true,
488
635
  internalType: 'address',
@@ -517,8 +664,14 @@ export const BOOK_MANAGER_ABI = [
517
664
  inputs: [
518
665
  {
519
666
  indexed: true,
520
- internalType: 'address',
521
- name: 'provider',
667
+ internalType: 'BookId',
668
+ name: 'bookId',
669
+ type: 'uint192',
670
+ },
671
+ {
672
+ indexed: true,
673
+ internalType: 'Currency',
674
+ name: 'currency',
522
675
  type: 'address',
523
676
  },
524
677
  {
@@ -540,9 +693,30 @@ export const BOOK_MANAGER_ABI = [
540
693
  name: 'bookId',
541
694
  type: 'uint192',
542
695
  },
543
- { indexed: true, internalType: 'address', name: 'user', type: 'address' },
544
- { indexed: false, internalType: 'Tick', name: 'tick', type: 'int24' },
545
- { indexed: false, internalType: 'uint64', name: 'unit', type: 'uint64' },
696
+ {
697
+ indexed: true,
698
+ internalType: 'address',
699
+ name: 'user',
700
+ type: 'address',
701
+ },
702
+ {
703
+ indexed: false,
704
+ internalType: 'Tick',
705
+ name: 'tick',
706
+ type: 'int24',
707
+ },
708
+ {
709
+ indexed: false,
710
+ internalType: 'uint64',
711
+ name: 'unit',
712
+ type: 'uint64',
713
+ },
714
+ {
715
+ indexed: false,
716
+ internalType: 'address',
717
+ name: 'referrer',
718
+ type: 'address',
719
+ },
546
720
  ],
547
721
  name: 'Take',
548
722
  type: 'event',
@@ -605,36 +779,41 @@ export const BOOK_MANAGER_ABI = [
605
779
  type: 'event',
606
780
  },
607
781
  {
608
- anonymous: false,
609
- inputs: [
782
+ inputs: [],
783
+ name: 'ADMIN_ROLE',
784
+ outputs: [
610
785
  {
611
- indexed: true,
612
- internalType: 'address',
613
- name: 'provider',
614
- type: 'address',
786
+ internalType: 'bytes32',
787
+ name: '',
788
+ type: 'bytes32',
615
789
  },
616
790
  ],
617
- name: 'Whitelist',
618
- type: 'event',
619
- },
620
- {
621
- inputs: [],
622
- name: 'ADMIN_ROLE',
623
- outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
624
791
  stateMutability: 'view',
625
792
  type: 'function',
626
793
  },
627
794
  {
628
795
  inputs: [],
629
796
  name: 'AUTHORIZED_LOCKER_ROLE',
630
- outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
797
+ outputs: [
798
+ {
799
+ internalType: 'bytes32',
800
+ name: '',
801
+ type: 'bytes32',
802
+ },
803
+ ],
631
804
  stateMutability: 'view',
632
805
  type: 'function',
633
806
  },
634
807
  {
635
808
  inputs: [],
636
809
  name: 'DEFAULT_ADMIN_ROLE',
637
- outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
810
+ outputs: [
811
+ {
812
+ internalType: 'bytes32',
813
+ name: '',
814
+ type: 'bytes32',
815
+ },
816
+ ],
638
817
  stateMutability: 'view',
639
818
  type: 'function',
640
819
  },
@@ -649,8 +828,16 @@ export const BOOK_MANAGER_ABI = [
649
828
  inputs: [
650
829
  {
651
830
  components: [
652
- { internalType: 'OrderId', name: 'id', type: 'uint256' },
653
- { internalType: 'uint64', name: 'toUnit', type: 'uint64' },
831
+ {
832
+ internalType: 'OrderId',
833
+ name: 'id',
834
+ type: 'uint256',
835
+ },
836
+ {
837
+ internalType: 'uint64',
838
+ name: 'toUnit',
839
+ type: 'uint64',
840
+ },
654
841
  ],
655
842
  internalType: 'struct IBookManager.CancelParams',
656
843
  name: 'params',
@@ -659,7 +846,11 @@ export const BOOK_MANAGER_ABI = [
659
846
  ],
660
847
  name: 'cancel',
661
848
  outputs: [
662
- { internalType: 'uint256', name: 'canceledAmount', type: 'uint256' },
849
+ {
850
+ internalType: 'uint256',
851
+ name: 'canceledAmount',
852
+ type: 'uint256',
853
+ },
663
854
  ],
664
855
  stateMutability: 'nonpayable',
665
856
  type: 'function',
@@ -667,7 +858,13 @@ export const BOOK_MANAGER_ABI = [
667
858
  {
668
859
  inputs: [
669
860
  {
670
- components: [{ internalType: 'OrderId', name: 'id', type: 'uint256' }],
861
+ components: [
862
+ {
863
+ internalType: 'OrderId',
864
+ name: 'id',
865
+ type: 'uint256',
866
+ },
867
+ ],
671
868
  internalType: 'struct IBookManager.ClaimParams',
672
869
  name: 'params',
673
870
  type: 'tuple',
@@ -675,7 +872,11 @@ export const BOOK_MANAGER_ABI = [
675
872
  ],
676
873
  name: 'claim',
677
874
  outputs: [
678
- { internalType: 'uint256', name: 'claimedAmount', type: 'uint256' },
875
+ {
876
+ internalType: 'uint256',
877
+ name: 'claimedAmount',
878
+ type: 'uint256',
879
+ },
679
880
  ],
680
881
  stateMutability: 'nonpayable',
681
882
  type: 'function',
@@ -683,26 +884,45 @@ export const BOOK_MANAGER_ABI = [
683
884
  {
684
885
  inputs: [],
685
886
  name: 'defaultReferrer',
686
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
887
+ outputs: [
888
+ {
889
+ internalType: 'address',
890
+ name: '',
891
+ type: 'address',
892
+ },
893
+ ],
687
894
  stateMutability: 'view',
688
895
  type: 'function',
689
896
  },
690
- {
691
- inputs: [{ internalType: 'address', name: 'provider', type: 'address' }],
692
- name: 'delist',
693
- outputs: [],
694
- stateMutability: 'nonpayable',
695
- type: 'function',
696
- },
697
897
  {
698
898
  inputs: [
699
899
  {
700
900
  components: [
701
- { internalType: 'Currency', name: 'base', type: 'address' },
702
- { internalType: 'uint64', name: 'unitSize', type: 'uint64' },
703
- { internalType: 'Currency', name: 'quote', type: 'address' },
704
- { internalType: 'FeePolicy', name: 'makerPolicy', type: 'uint24' },
705
- { internalType: 'FeePolicy', name: 'takerPolicy', type: 'uint24' },
901
+ {
902
+ internalType: 'Currency',
903
+ name: 'base',
904
+ type: 'address',
905
+ },
906
+ {
907
+ internalType: 'uint64',
908
+ name: 'unitSize',
909
+ type: 'uint64',
910
+ },
911
+ {
912
+ internalType: 'Currency',
913
+ name: 'quote',
914
+ type: 'address',
915
+ },
916
+ {
917
+ internalType: 'FeePolicy',
918
+ name: 'makerPolicy',
919
+ type: 'uint24',
920
+ },
921
+ {
922
+ internalType: 'FeePolicy',
923
+ name: 'takerPolicy',
924
+ type: 'uint24',
925
+ },
706
926
  ],
707
927
  internalType: 'struct IBookManager.BookKey',
708
928
  name: 'key',
@@ -710,21 +930,66 @@ export const BOOK_MANAGER_ABI = [
710
930
  },
711
931
  ],
712
932
  name: 'encodeBookKey',
713
- outputs: [{ internalType: 'BookId', name: '', type: 'uint192' }],
933
+ outputs: [
934
+ {
935
+ internalType: 'BookId',
936
+ name: '',
937
+ type: 'uint192',
938
+ },
939
+ ],
714
940
  stateMutability: 'pure',
715
941
  type: 'function',
716
942
  },
717
943
  {
718
- inputs: [{ internalType: 'BookId', name: 'id', type: 'uint192' }],
944
+ inputs: [],
945
+ name: 'feeRecipient',
946
+ outputs: [
947
+ {
948
+ internalType: 'address',
949
+ name: '',
950
+ type: 'address',
951
+ },
952
+ ],
953
+ stateMutability: 'view',
954
+ type: 'function',
955
+ },
956
+ {
957
+ inputs: [
958
+ {
959
+ internalType: 'BookId',
960
+ name: 'id',
961
+ type: 'uint192',
962
+ },
963
+ ],
719
964
  name: 'getBookKey',
720
965
  outputs: [
721
966
  {
722
967
  components: [
723
- { internalType: 'Currency', name: 'base', type: 'address' },
724
- { internalType: 'uint64', name: 'unitSize', type: 'uint64' },
725
- { internalType: 'Currency', name: 'quote', type: 'address' },
726
- { internalType: 'FeePolicy', name: 'makerPolicy', type: 'uint24' },
727
- { internalType: 'FeePolicy', name: 'takerPolicy', type: 'uint24' },
968
+ {
969
+ internalType: 'Currency',
970
+ name: 'base',
971
+ type: 'address',
972
+ },
973
+ {
974
+ internalType: 'uint64',
975
+ name: 'unitSize',
976
+ type: 'uint64',
977
+ },
978
+ {
979
+ internalType: 'Currency',
980
+ name: 'quote',
981
+ type: 'address',
982
+ },
983
+ {
984
+ internalType: 'FeePolicy',
985
+ name: 'makerPolicy',
986
+ type: 'uint24',
987
+ },
988
+ {
989
+ internalType: 'FeePolicy',
990
+ name: 'takerPolicy',
991
+ type: 'uint24',
992
+ },
728
993
  ],
729
994
  internalType: 'struct IBookManager.BookKey',
730
995
  name: '',
@@ -735,59 +1000,145 @@ export const BOOK_MANAGER_ABI = [
735
1000
  type: 'function',
736
1001
  },
737
1002
  {
738
- inputs: [{ internalType: 'BookId', name: 'bookId', type: 'uint192' }],
1003
+ inputs: [
1004
+ {
1005
+ internalType: 'BookId',
1006
+ name: 'bookId',
1007
+ type: 'uint192',
1008
+ },
1009
+ ],
739
1010
  name: 'getBookUnitLimits',
740
1011
  outputs: [
741
- { internalType: 'uint64', name: 'minUnit', type: 'uint64' },
742
- { internalType: 'uint64', name: 'maxUnit', type: 'uint64' },
1012
+ {
1013
+ internalType: 'uint64',
1014
+ name: 'minUnit',
1015
+ type: 'uint64',
1016
+ },
1017
+ {
1018
+ internalType: 'uint64',
1019
+ name: 'maxUnit',
1020
+ type: 'uint64',
1021
+ },
743
1022
  ],
744
1023
  stateMutability: 'view',
745
1024
  type: 'function',
746
1025
  },
747
1026
  {
748
- inputs: [{ internalType: 'BookId', name: 'bookId', type: 'uint192' }],
1027
+ inputs: [
1028
+ {
1029
+ internalType: 'BookId',
1030
+ name: 'bookId',
1031
+ type: 'uint192',
1032
+ },
1033
+ ],
749
1034
  name: 'getBookUserCount',
750
- outputs: [{ internalType: 'uint256', name: 'count', type: 'uint256' }],
1035
+ outputs: [
1036
+ {
1037
+ internalType: 'uint256',
1038
+ name: 'count',
1039
+ type: 'uint256',
1040
+ },
1041
+ ],
751
1042
  stateMutability: 'view',
752
1043
  type: 'function',
753
1044
  },
754
1045
  {
755
1046
  inputs: [
756
- { internalType: 'BookId', name: 'bookId', type: 'uint192' },
757
- { internalType: 'uint256', name: 'offset', type: 'uint256' },
758
- { internalType: 'uint256', name: 'limit', type: 'uint256' },
1047
+ {
1048
+ internalType: 'BookId',
1049
+ name: 'bookId',
1050
+ type: 'uint192',
1051
+ },
1052
+ {
1053
+ internalType: 'uint256',
1054
+ name: 'offset',
1055
+ type: 'uint256',
1056
+ },
1057
+ {
1058
+ internalType: 'uint256',
1059
+ name: 'limit',
1060
+ type: 'uint256',
1061
+ },
759
1062
  ],
760
1063
  name: 'getBookUsers',
761
1064
  outputs: [
762
- { internalType: 'address[]', name: 'users', type: 'address[]' },
763
- { internalType: 'uint256', name: 'nextOffset', type: 'uint256' },
1065
+ {
1066
+ internalType: 'address[]',
1067
+ name: 'users',
1068
+ type: 'address[]',
1069
+ },
1070
+ {
1071
+ internalType: 'uint256',
1072
+ name: 'nextOffset',
1073
+ type: 'uint256',
1074
+ },
764
1075
  ],
765
1076
  stateMutability: 'view',
766
1077
  type: 'function',
767
1078
  },
768
1079
  {
769
1080
  inputs: [
770
- { internalType: 'BookId', name: 'id', type: 'uint192' },
771
- { internalType: 'Tick', name: 'tick', type: 'int24' },
1081
+ {
1082
+ internalType: 'BookId',
1083
+ name: 'id',
1084
+ type: 'uint192',
1085
+ },
1086
+ {
1087
+ internalType: 'Tick',
1088
+ name: 'tick',
1089
+ type: 'int24',
1090
+ },
772
1091
  ],
773
1092
  name: 'getDepth',
774
- outputs: [{ internalType: 'uint64', name: '', type: 'uint64' }],
1093
+ outputs: [
1094
+ {
1095
+ internalType: 'uint64',
1096
+ name: '',
1097
+ type: 'uint64',
1098
+ },
1099
+ ],
775
1100
  stateMutability: 'view',
776
1101
  type: 'function',
777
1102
  },
778
1103
  {
779
- inputs: [{ internalType: 'BookId', name: 'id', type: 'uint192' }],
1104
+ inputs: [
1105
+ {
1106
+ internalType: 'BookId',
1107
+ name: 'id',
1108
+ type: 'uint192',
1109
+ },
1110
+ ],
780
1111
  name: 'getHighest',
781
- outputs: [{ internalType: 'Tick', name: '', type: 'int24' }],
1112
+ outputs: [
1113
+ {
1114
+ internalType: 'Tick',
1115
+ name: '',
1116
+ type: 'int24',
1117
+ },
1118
+ ],
782
1119
  stateMutability: 'view',
783
1120
  type: 'function',
784
1121
  },
785
1122
  {
786
- inputs: [{ internalType: 'uint256', name: 'i', type: 'uint256' }],
1123
+ inputs: [
1124
+ {
1125
+ internalType: 'uint256',
1126
+ name: 'i',
1127
+ type: 'uint256',
1128
+ },
1129
+ ],
787
1130
  name: 'getLock',
788
1131
  outputs: [
789
- { internalType: 'address', name: '', type: 'address' },
790
- { internalType: 'address', name: '', type: 'address' },
1132
+ {
1133
+ internalType: 'address',
1134
+ name: '',
1135
+ type: 'address',
1136
+ },
1137
+ {
1138
+ internalType: 'address',
1139
+ name: '',
1140
+ type: 'address',
1141
+ },
791
1142
  ],
792
1143
  stateMutability: 'view',
793
1144
  type: 'function',
@@ -796,22 +1147,47 @@ export const BOOK_MANAGER_ABI = [
796
1147
  inputs: [],
797
1148
  name: 'getLockData',
798
1149
  outputs: [
799
- { internalType: 'uint128', name: '', type: 'uint128' },
800
- { internalType: 'uint128', name: '', type: 'uint128' },
1150
+ {
1151
+ internalType: 'uint128',
1152
+ name: '',
1153
+ type: 'uint128',
1154
+ },
1155
+ {
1156
+ internalType: 'uint128',
1157
+ name: '',
1158
+ type: 'uint128',
1159
+ },
801
1160
  ],
802
1161
  stateMutability: 'view',
803
1162
  type: 'function',
804
1163
  },
805
1164
  {
806
- inputs: [{ internalType: 'OrderId', name: 'id', type: 'uint256' }],
1165
+ inputs: [
1166
+ {
1167
+ internalType: 'OrderId',
1168
+ name: 'id',
1169
+ type: 'uint256',
1170
+ },
1171
+ ],
807
1172
  name: 'getOrder',
808
1173
  outputs: [
809
1174
  {
810
1175
  components: [
811
- { internalType: 'address', name: 'makerProvider', type: 'address' },
812
- { internalType: 'address', name: 'makerReferrer', type: 'address' },
813
- { internalType: 'uint64', name: 'open', type: 'uint64' },
814
- { internalType: 'uint64', name: 'claimable', type: 'uint64' },
1176
+ {
1177
+ internalType: 'address',
1178
+ name: 'makerReferrer',
1179
+ type: 'address',
1180
+ },
1181
+ {
1182
+ internalType: 'uint64',
1183
+ name: 'open',
1184
+ type: 'uint64',
1185
+ },
1186
+ {
1187
+ internalType: 'uint64',
1188
+ name: 'claimable',
1189
+ type: 'uint64',
1190
+ },
815
1191
  ],
816
1192
  internalType: 'struct IBookManager.OrderInfo',
817
1193
  name: '',
@@ -822,69 +1198,194 @@ export const BOOK_MANAGER_ABI = [
822
1198
  type: 'function',
823
1199
  },
824
1200
  {
825
- inputs: [{ internalType: 'OrderId', name: 'id', type: 'uint256' }],
1201
+ inputs: [
1202
+ {
1203
+ internalType: 'OrderId',
1204
+ name: 'id',
1205
+ type: 'uint256',
1206
+ },
1207
+ ],
826
1208
  name: 'getOrderOwner',
827
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
1209
+ outputs: [
1210
+ {
1211
+ internalType: 'address',
1212
+ name: '',
1213
+ type: 'address',
1214
+ },
1215
+ ],
828
1216
  stateMutability: 'view',
829
1217
  type: 'function',
830
1218
  },
831
1219
  {
832
- inputs: [{ internalType: 'address', name: 'provider', type: 'address' }],
1220
+ inputs: [
1221
+ {
1222
+ internalType: 'BookId',
1223
+ name: 'bookId',
1224
+ type: 'uint192',
1225
+ },
1226
+ {
1227
+ internalType: 'Currency',
1228
+ name: 'currency',
1229
+ type: 'address',
1230
+ },
1231
+ ],
833
1232
  name: 'getReferrerFeeRate',
834
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1233
+ outputs: [
1234
+ {
1235
+ internalType: 'uint256',
1236
+ name: '',
1237
+ type: 'uint256',
1238
+ },
1239
+ ],
835
1240
  stateMutability: 'view',
836
1241
  type: 'function',
837
1242
  },
838
1243
  {
839
- inputs: [{ internalType: 'bytes32', name: 'role', type: 'bytes32' }],
1244
+ inputs: [
1245
+ {
1246
+ internalType: 'bytes32',
1247
+ name: 'role',
1248
+ type: 'bytes32',
1249
+ },
1250
+ ],
840
1251
  name: 'getRoleAdmin',
841
- outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
1252
+ outputs: [
1253
+ {
1254
+ internalType: 'bytes32',
1255
+ name: '',
1256
+ type: 'bytes32',
1257
+ },
1258
+ ],
842
1259
  stateMutability: 'view',
843
1260
  type: 'function',
844
1261
  },
845
1262
  {
846
1263
  inputs: [
847
- { internalType: 'BookId', name: 'bookId', type: 'uint192' },
848
- { internalType: 'address', name: 'user', type: 'address' },
1264
+ {
1265
+ internalType: 'BookId',
1266
+ name: 'bookId',
1267
+ type: 'uint192',
1268
+ },
1269
+ {
1270
+ internalType: 'address',
1271
+ name: 'user',
1272
+ type: 'address',
1273
+ },
849
1274
  ],
850
1275
  name: 'getUserOrderCount',
851
- outputs: [{ internalType: 'uint256', name: 'count', type: 'uint256' }],
1276
+ outputs: [
1277
+ {
1278
+ internalType: 'uint256',
1279
+ name: 'count',
1280
+ type: 'uint256',
1281
+ },
1282
+ ],
852
1283
  stateMutability: 'view',
853
1284
  type: 'function',
854
1285
  },
855
1286
  {
856
1287
  inputs: [
857
- { internalType: 'BookId', name: 'bookId', type: 'uint192' },
858
- { internalType: 'address', name: 'user', type: 'address' },
859
- { internalType: 'uint256', name: 'offset', type: 'uint256' },
860
- { internalType: 'uint256', name: 'limit', type: 'uint256' },
1288
+ {
1289
+ internalType: 'BookId',
1290
+ name: 'bookId',
1291
+ type: 'uint192',
1292
+ },
1293
+ {
1294
+ internalType: 'address',
1295
+ name: 'user',
1296
+ type: 'address',
1297
+ },
1298
+ ],
1299
+ name: 'getUserOrderCountInBook',
1300
+ outputs: [
1301
+ {
1302
+ internalType: 'uint256',
1303
+ name: '',
1304
+ type: 'uint256',
1305
+ },
1306
+ ],
1307
+ stateMutability: 'view',
1308
+ type: 'function',
1309
+ },
1310
+ {
1311
+ inputs: [
1312
+ {
1313
+ internalType: 'BookId',
1314
+ name: 'bookId',
1315
+ type: 'uint192',
1316
+ },
1317
+ {
1318
+ internalType: 'address',
1319
+ name: 'user',
1320
+ type: 'address',
1321
+ },
1322
+ {
1323
+ internalType: 'uint256',
1324
+ name: 'offset',
1325
+ type: 'uint256',
1326
+ },
1327
+ {
1328
+ internalType: 'uint256',
1329
+ name: 'limit',
1330
+ type: 'uint256',
1331
+ },
861
1332
  ],
862
1333
  name: 'getUserOrdersInBook',
863
1334
  outputs: [
864
- { internalType: 'OrderId[]', name: 'orders', type: 'uint256[]' },
865
- { internalType: 'uint256', name: 'nextOffset', type: 'uint256' },
1335
+ {
1336
+ internalType: 'OrderId[]',
1337
+ name: 'orders',
1338
+ type: 'uint256[]',
1339
+ },
1340
+ {
1341
+ internalType: 'uint256',
1342
+ name: 'nextOffset',
1343
+ type: 'uint256',
1344
+ },
866
1345
  ],
867
1346
  stateMutability: 'view',
868
1347
  type: 'function',
869
1348
  },
870
1349
  {
871
- inputs: [{ internalType: 'Currency', name: 'currency', type: 'address' }],
1350
+ inputs: [
1351
+ {
1352
+ internalType: 'Currency',
1353
+ name: 'currency',
1354
+ type: 'address',
1355
+ },
1356
+ ],
872
1357
  name: 'getVault',
873
1358
  outputs: [
874
- { internalType: 'contract IDEXVault', name: 'vault', type: 'address' },
1359
+ {
1360
+ internalType: 'contract IDEXVault',
1361
+ name: 'vault',
1362
+ type: 'address',
1363
+ },
875
1364
  ],
876
1365
  stateMutability: 'view',
877
1366
  type: 'function',
878
1367
  },
879
1368
  {
880
- inputs: [{ internalType: 'address', name: 'admin', type: 'address' }],
1369
+ inputs: [
1370
+ {
1371
+ internalType: 'address',
1372
+ name: 'admin',
1373
+ type: 'address',
1374
+ },
1375
+ ],
881
1376
  name: 'grantAdminRole',
882
1377
  outputs: [],
883
1378
  stateMutability: 'nonpayable',
884
1379
  type: 'function',
885
1380
  },
886
1381
  {
887
- inputs: [{ internalType: 'address', name: 'locker', type: 'address' }],
1382
+ inputs: [
1383
+ {
1384
+ internalType: 'address',
1385
+ name: 'locker',
1386
+ type: 'address',
1387
+ },
1388
+ ],
888
1389
  name: 'grantLockerRole',
889
1390
  outputs: [],
890
1391
  stateMutability: 'nonpayable',
@@ -892,8 +1393,16 @@ export const BOOK_MANAGER_ABI = [
892
1393
  },
893
1394
  {
894
1395
  inputs: [
895
- { internalType: 'bytes32', name: 'role', type: 'bytes32' },
896
- { internalType: 'address', name: 'account', type: 'address' },
1396
+ {
1397
+ internalType: 'bytes32',
1398
+ name: 'role',
1399
+ type: 'bytes32',
1400
+ },
1401
+ {
1402
+ internalType: 'address',
1403
+ name: 'account',
1404
+ type: 'address',
1405
+ },
897
1406
  ],
898
1407
  name: 'grantRole',
899
1408
  outputs: [],
@@ -902,66 +1411,125 @@ export const BOOK_MANAGER_ABI = [
902
1411
  },
903
1412
  {
904
1413
  inputs: [
905
- { internalType: 'bytes32', name: 'role', type: 'bytes32' },
906
- { internalType: 'address', name: 'account', type: 'address' },
1414
+ {
1415
+ internalType: 'bytes32',
1416
+ name: 'role',
1417
+ type: 'bytes32',
1418
+ },
1419
+ {
1420
+ internalType: 'address',
1421
+ name: 'account',
1422
+ type: 'address',
1423
+ },
907
1424
  ],
908
1425
  name: 'hasRole',
909
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1426
+ outputs: [
1427
+ {
1428
+ internalType: 'bool',
1429
+ name: '',
1430
+ type: 'bool',
1431
+ },
1432
+ ],
910
1433
  stateMutability: 'view',
911
1434
  type: 'function',
912
1435
  },
913
1436
  {
914
- inputs: [{ internalType: 'BookId', name: 'bookId', type: 'uint192' }],
1437
+ inputs: [
1438
+ {
1439
+ internalType: 'BookId',
1440
+ name: 'bookId',
1441
+ type: 'uint192',
1442
+ },
1443
+ ],
915
1444
  name: 'isBookPaused',
916
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1445
+ outputs: [
1446
+ {
1447
+ internalType: 'bool',
1448
+ name: '',
1449
+ type: 'bool',
1450
+ },
1451
+ ],
917
1452
  stateMutability: 'view',
918
1453
  type: 'function',
919
1454
  },
920
1455
  {
921
- inputs: [{ internalType: 'Currency', name: 'currency', type: 'address' }],
1456
+ inputs: [
1457
+ {
1458
+ internalType: 'Currency',
1459
+ name: 'currency',
1460
+ type: 'address',
1461
+ },
1462
+ ],
922
1463
  name: 'isCurrencyPaused',
923
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1464
+ outputs: [
1465
+ {
1466
+ internalType: 'bool',
1467
+ name: '',
1468
+ type: 'bool',
1469
+ },
1470
+ ],
924
1471
  stateMutability: 'view',
925
1472
  type: 'function',
926
1473
  },
927
1474
  {
928
- inputs: [{ internalType: 'BookId', name: 'id', type: 'uint192' }],
1475
+ inputs: [
1476
+ {
1477
+ internalType: 'BookId',
1478
+ name: 'id',
1479
+ type: 'uint192',
1480
+ },
1481
+ ],
929
1482
  name: 'isEmpty',
930
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
931
- stateMutability: 'view',
932
- type: 'function',
933
- },
934
- {
935
- inputs: [{ internalType: 'BookId', name: 'id', type: 'uint192' }],
936
- name: 'isOpened',
937
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1483
+ outputs: [
1484
+ {
1485
+ internalType: 'bool',
1486
+ name: '',
1487
+ type: 'bool',
1488
+ },
1489
+ ],
938
1490
  stateMutability: 'view',
939
1491
  type: 'function',
940
1492
  },
941
1493
  {
942
1494
  inputs: [
943
- { internalType: 'address', name: 'owner', type: 'address' },
944
- { internalType: 'address', name: 'operator', type: 'address' },
1495
+ {
1496
+ internalType: 'BookId',
1497
+ name: 'id',
1498
+ type: 'uint192',
1499
+ },
1500
+ ],
1501
+ name: 'isOpened',
1502
+ outputs: [
1503
+ {
1504
+ internalType: 'bool',
1505
+ name: '',
1506
+ type: 'bool',
1507
+ },
945
1508
  ],
946
- name: 'isOrderOperator',
947
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
948
- stateMutability: 'view',
949
- type: 'function',
950
- },
951
- {
952
- inputs: [{ internalType: 'address', name: 'provider', type: 'address' }],
953
- name: 'isWhitelisted',
954
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
955
1509
  stateMutability: 'view',
956
1510
  type: 'function',
957
1511
  },
958
1512
  {
959
1513
  inputs: [
960
- { internalType: 'address', name: 'locker', type: 'address' },
961
- { internalType: 'bytes', name: 'data', type: 'bytes' },
1514
+ {
1515
+ internalType: 'address',
1516
+ name: 'locker',
1517
+ type: 'address',
1518
+ },
1519
+ {
1520
+ internalType: 'bytes',
1521
+ name: 'data',
1522
+ type: 'bytes',
1523
+ },
1524
+ ],
1525
+ name: 'lock',
1526
+ outputs: [
1527
+ {
1528
+ internalType: 'bytes',
1529
+ name: 'result',
1530
+ type: 'bytes',
1531
+ },
962
1532
  ],
963
- name: 'lock',
964
- outputs: [{ internalType: 'bytes', name: 'result', type: 'bytes' }],
965
1533
  stateMutability: 'nonpayable',
966
1534
  type: 'function',
967
1535
  },
@@ -971,9 +1539,21 @@ export const BOOK_MANAGER_ABI = [
971
1539
  components: [
972
1540
  {
973
1541
  components: [
974
- { internalType: 'Currency', name: 'base', type: 'address' },
975
- { internalType: 'uint64', name: 'unitSize', type: 'uint64' },
976
- { internalType: 'Currency', name: 'quote', type: 'address' },
1542
+ {
1543
+ internalType: 'Currency',
1544
+ name: 'base',
1545
+ type: 'address',
1546
+ },
1547
+ {
1548
+ internalType: 'uint64',
1549
+ name: 'unitSize',
1550
+ type: 'uint64',
1551
+ },
1552
+ {
1553
+ internalType: 'Currency',
1554
+ name: 'quote',
1555
+ type: 'address',
1556
+ },
977
1557
  {
978
1558
  internalType: 'FeePolicy',
979
1559
  name: 'makerPolicy',
@@ -989,11 +1569,26 @@ export const BOOK_MANAGER_ABI = [
989
1569
  name: 'key',
990
1570
  type: 'tuple',
991
1571
  },
992
- { internalType: 'Tick', name: 'tick', type: 'int24' },
993
- { internalType: 'uint64', name: 'unit', type: 'uint64' },
994
- { internalType: 'address', name: 'provider', type: 'address' },
995
- { internalType: 'address', name: 'owner', type: 'address' },
996
- { internalType: 'address', name: 'referrer', type: 'address' },
1572
+ {
1573
+ internalType: 'Tick',
1574
+ name: 'tick',
1575
+ type: 'int24',
1576
+ },
1577
+ {
1578
+ internalType: 'uint64',
1579
+ name: 'unit',
1580
+ type: 'uint64',
1581
+ },
1582
+ {
1583
+ internalType: 'address',
1584
+ name: 'owner',
1585
+ type: 'address',
1586
+ },
1587
+ {
1588
+ internalType: 'address',
1589
+ name: 'referrer',
1590
+ type: 'address',
1591
+ },
997
1592
  ],
998
1593
  internalType: 'struct IBookManager.MakeParams',
999
1594
  name: 'params',
@@ -1002,19 +1597,41 @@ export const BOOK_MANAGER_ABI = [
1002
1597
  ],
1003
1598
  name: 'make',
1004
1599
  outputs: [
1005
- { internalType: 'OrderId', name: 'id', type: 'uint256' },
1006
- { internalType: 'uint256', name: 'quoteAmount', type: 'uint256' },
1600
+ {
1601
+ internalType: 'OrderId',
1602
+ name: 'id',
1603
+ type: 'uint256',
1604
+ },
1605
+ {
1606
+ internalType: 'uint256',
1607
+ name: 'quoteAmount',
1608
+ type: 'uint256',
1609
+ },
1007
1610
  ],
1008
1611
  stateMutability: 'nonpayable',
1009
1612
  type: 'function',
1010
1613
  },
1011
1614
  {
1012
1615
  inputs: [
1013
- { internalType: 'BookId', name: 'id', type: 'uint192' },
1014
- { internalType: 'Tick', name: 'tick', type: 'int24' },
1616
+ {
1617
+ internalType: 'BookId',
1618
+ name: 'id',
1619
+ type: 'uint192',
1620
+ },
1621
+ {
1622
+ internalType: 'Tick',
1623
+ name: 'tick',
1624
+ type: 'int24',
1625
+ },
1015
1626
  ],
1016
1627
  name: 'maxLessThan',
1017
- outputs: [{ internalType: 'Tick', name: '', type: 'int24' }],
1628
+ outputs: [
1629
+ {
1630
+ internalType: 'Tick',
1631
+ name: '',
1632
+ type: 'int24',
1633
+ },
1634
+ ],
1018
1635
  stateMutability: 'view',
1019
1636
  type: 'function',
1020
1637
  },
@@ -1022,18 +1639,46 @@ export const BOOK_MANAGER_ABI = [
1022
1639
  inputs: [
1023
1640
  {
1024
1641
  components: [
1025
- { internalType: 'Currency', name: 'base', type: 'address' },
1026
- { internalType: 'uint64', name: 'unitSize', type: 'uint64' },
1027
- { internalType: 'Currency', name: 'quote', type: 'address' },
1028
- { internalType: 'FeePolicy', name: 'makerPolicy', type: 'uint24' },
1029
- { internalType: 'FeePolicy', name: 'takerPolicy', type: 'uint24' },
1642
+ {
1643
+ internalType: 'Currency',
1644
+ name: 'base',
1645
+ type: 'address',
1646
+ },
1647
+ {
1648
+ internalType: 'uint64',
1649
+ name: 'unitSize',
1650
+ type: 'uint64',
1651
+ },
1652
+ {
1653
+ internalType: 'Currency',
1654
+ name: 'quote',
1655
+ type: 'address',
1656
+ },
1657
+ {
1658
+ internalType: 'FeePolicy',
1659
+ name: 'makerPolicy',
1660
+ type: 'uint24',
1661
+ },
1662
+ {
1663
+ internalType: 'FeePolicy',
1664
+ name: 'takerPolicy',
1665
+ type: 'uint24',
1666
+ },
1030
1667
  ],
1031
1668
  internalType: 'struct IBookManager.BookKey',
1032
1669
  name: 'key',
1033
1670
  type: 'tuple',
1034
1671
  },
1035
- { internalType: 'uint64', name: 'minUnit', type: 'uint64' },
1036
- { internalType: 'uint64', name: 'maxUnit', type: 'uint64' },
1672
+ {
1673
+ internalType: 'uint64',
1674
+ name: 'minUnit',
1675
+ type: 'uint64',
1676
+ },
1677
+ {
1678
+ internalType: 'uint64',
1679
+ name: 'maxUnit',
1680
+ type: 'uint64',
1681
+ },
1037
1682
  ],
1038
1683
  name: 'open',
1039
1684
  outputs: [],
@@ -1041,28 +1686,58 @@ export const BOOK_MANAGER_ABI = [
1041
1686
  type: 'function',
1042
1687
  },
1043
1688
  {
1044
- inputs: [{ internalType: 'OrderId', name: 'id', type: 'uint256' }],
1689
+ inputs: [
1690
+ {
1691
+ internalType: 'OrderId',
1692
+ name: 'id',
1693
+ type: 'uint256',
1694
+ },
1695
+ ],
1045
1696
  name: 'orderExists',
1046
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1697
+ outputs: [
1698
+ {
1699
+ internalType: 'bool',
1700
+ name: '',
1701
+ type: 'bool',
1702
+ },
1703
+ ],
1047
1704
  stateMutability: 'view',
1048
1705
  type: 'function',
1049
1706
  },
1050
1707
  {
1051
1708
  inputs: [],
1052
1709
  name: 'owner',
1053
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
1710
+ outputs: [
1711
+ {
1712
+ internalType: 'address',
1713
+ name: '',
1714
+ type: 'address',
1715
+ },
1716
+ ],
1054
1717
  stateMutability: 'view',
1055
1718
  type: 'function',
1056
1719
  },
1057
1720
  {
1058
- inputs: [{ internalType: 'BookId', name: 'bookId', type: 'uint192' }],
1721
+ inputs: [
1722
+ {
1723
+ internalType: 'BookId',
1724
+ name: 'bookId',
1725
+ type: 'uint192',
1726
+ },
1727
+ ],
1059
1728
  name: 'pauseBook',
1060
1729
  outputs: [],
1061
1730
  stateMutability: 'nonpayable',
1062
1731
  type: 'function',
1063
1732
  },
1064
1733
  {
1065
- inputs: [{ internalType: 'Currency', name: 'currency', type: 'address' }],
1734
+ inputs: [
1735
+ {
1736
+ internalType: 'Currency',
1737
+ name: 'currency',
1738
+ type: 'address',
1739
+ },
1740
+ ],
1066
1741
  name: 'pauseCurrency',
1067
1742
  outputs: [],
1068
1743
  stateMutability: 'nonpayable',
@@ -1071,12 +1746,24 @@ export const BOOK_MANAGER_ABI = [
1071
1746
  {
1072
1747
  inputs: [],
1073
1748
  name: 'pendingOwner',
1074
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
1749
+ outputs: [
1750
+ {
1751
+ internalType: 'address',
1752
+ name: '',
1753
+ type: 'address',
1754
+ },
1755
+ ],
1075
1756
  stateMutability: 'view',
1076
1757
  type: 'function',
1077
1758
  },
1078
1759
  {
1079
- inputs: [{ internalType: 'Currency', name: 'currency', type: 'address' }],
1760
+ inputs: [
1761
+ {
1762
+ internalType: 'Currency',
1763
+ name: 'currency',
1764
+ type: 'address',
1765
+ },
1766
+ ],
1080
1767
  name: 'removeVault',
1081
1768
  outputs: [],
1082
1769
  stateMutability: 'nonpayable',
@@ -1091,8 +1778,16 @@ export const BOOK_MANAGER_ABI = [
1091
1778
  },
1092
1779
  {
1093
1780
  inputs: [
1094
- { internalType: 'bytes32', name: 'role', type: 'bytes32' },
1095
- { internalType: 'address', name: 'callerConfirmation', type: 'address' },
1781
+ {
1782
+ internalType: 'bytes32',
1783
+ name: 'role',
1784
+ type: 'bytes32',
1785
+ },
1786
+ {
1787
+ internalType: 'address',
1788
+ name: 'callerConfirmation',
1789
+ type: 'address',
1790
+ },
1096
1791
  ],
1097
1792
  name: 'renounceRole',
1098
1793
  outputs: [],
@@ -1100,14 +1795,26 @@ export const BOOK_MANAGER_ABI = [
1100
1795
  type: 'function',
1101
1796
  },
1102
1797
  {
1103
- inputs: [{ internalType: 'address', name: 'admin', type: 'address' }],
1798
+ inputs: [
1799
+ {
1800
+ internalType: 'address',
1801
+ name: 'admin',
1802
+ type: 'address',
1803
+ },
1804
+ ],
1104
1805
  name: 'revokeAdminRole',
1105
1806
  outputs: [],
1106
1807
  stateMutability: 'nonpayable',
1107
1808
  type: 'function',
1108
1809
  },
1109
1810
  {
1110
- inputs: [{ internalType: 'address', name: 'locker', type: 'address' }],
1811
+ inputs: [
1812
+ {
1813
+ internalType: 'address',
1814
+ name: 'locker',
1815
+ type: 'address',
1816
+ },
1817
+ ],
1111
1818
  name: 'revokeLockerRole',
1112
1819
  outputs: [],
1113
1820
  stateMutability: 'nonpayable',
@@ -1115,8 +1822,16 @@ export const BOOK_MANAGER_ABI = [
1115
1822
  },
1116
1823
  {
1117
1824
  inputs: [
1118
- { internalType: 'bytes32', name: 'role', type: 'bytes32' },
1119
- { internalType: 'address', name: 'account', type: 'address' },
1825
+ {
1826
+ internalType: 'bytes32',
1827
+ name: 'role',
1828
+ type: 'bytes32',
1829
+ },
1830
+ {
1831
+ internalType: 'address',
1832
+ name: 'account',
1833
+ type: 'address',
1834
+ },
1120
1835
  ],
1121
1836
  name: 'revokeRole',
1122
1837
  outputs: [],
@@ -1125,9 +1840,21 @@ export const BOOK_MANAGER_ABI = [
1125
1840
  },
1126
1841
  {
1127
1842
  inputs: [
1128
- { internalType: 'BookId', name: 'bookId', type: 'uint192' },
1129
- { internalType: 'uint64', name: 'minUnit', type: 'uint64' },
1130
- { internalType: 'uint64', name: 'maxUnit', type: 'uint64' },
1843
+ {
1844
+ internalType: 'BookId',
1845
+ name: 'bookId',
1846
+ type: 'uint192',
1847
+ },
1848
+ {
1849
+ internalType: 'uint64',
1850
+ name: 'minUnit',
1851
+ type: 'uint64',
1852
+ },
1853
+ {
1854
+ internalType: 'uint64',
1855
+ name: 'maxUnit',
1856
+ type: 'uint64',
1857
+ },
1131
1858
  ],
1132
1859
  name: 'setBookUnitLimits',
1133
1860
  outputs: [],
@@ -1136,7 +1863,11 @@ export const BOOK_MANAGER_ABI = [
1136
1863
  },
1137
1864
  {
1138
1865
  inputs: [
1139
- { internalType: 'address', name: 'newDefaultReferrer', type: 'address' },
1866
+ {
1867
+ internalType: 'address',
1868
+ name: 'newDefaultReferrer',
1869
+ type: 'address',
1870
+ },
1140
1871
  ],
1141
1872
  name: 'setDefaultReferrer',
1142
1873
  outputs: [],
@@ -1145,18 +1876,34 @@ export const BOOK_MANAGER_ABI = [
1145
1876
  },
1146
1877
  {
1147
1878
  inputs: [
1148
- { internalType: 'address', name: 'operator', type: 'address' },
1149
- { internalType: 'bool', name: 'approved', type: 'bool' },
1879
+ {
1880
+ internalType: 'address',
1881
+ name: 'newFeeRecipient',
1882
+ type: 'address',
1883
+ },
1150
1884
  ],
1151
- name: 'setOrderOperator',
1885
+ name: 'setFeeRecipient',
1152
1886
  outputs: [],
1153
1887
  stateMutability: 'nonpayable',
1154
1888
  type: 'function',
1155
1889
  },
1156
1890
  {
1157
1891
  inputs: [
1158
- { internalType: 'address', name: 'provider', type: 'address' },
1159
- { internalType: 'uint256', name: 'referrerFeeRate', type: 'uint256' },
1892
+ {
1893
+ internalType: 'BookId',
1894
+ name: 'bookId',
1895
+ type: 'uint192',
1896
+ },
1897
+ {
1898
+ internalType: 'Currency',
1899
+ name: 'currency',
1900
+ type: 'address',
1901
+ },
1902
+ {
1903
+ internalType: 'uint256',
1904
+ name: 'referrerFeeRate',
1905
+ type: 'uint256',
1906
+ },
1160
1907
  ],
1161
1908
  name: 'setReferrerFeeRate',
1162
1909
  outputs: [],
@@ -1165,8 +1912,16 @@ export const BOOK_MANAGER_ABI = [
1165
1912
  },
1166
1913
  {
1167
1914
  inputs: [
1168
- { internalType: 'Currency', name: 'currency', type: 'address' },
1169
- { internalType: 'contract IDEXVault', name: 'vault', type: 'address' },
1915
+ {
1916
+ internalType: 'Currency',
1917
+ name: 'currency',
1918
+ type: 'address',
1919
+ },
1920
+ {
1921
+ internalType: 'contract IDEXVault',
1922
+ name: 'vault',
1923
+ type: 'address',
1924
+ },
1170
1925
  ],
1171
1926
  name: 'setVault',
1172
1927
  outputs: [],
@@ -1174,9 +1929,21 @@ export const BOOK_MANAGER_ABI = [
1174
1929
  type: 'function',
1175
1930
  },
1176
1931
  {
1177
- inputs: [{ internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }],
1932
+ inputs: [
1933
+ {
1934
+ internalType: 'bytes4',
1935
+ name: 'interfaceId',
1936
+ type: 'bytes4',
1937
+ },
1938
+ ],
1178
1939
  name: 'supportsInterface',
1179
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1940
+ outputs: [
1941
+ {
1942
+ internalType: 'bool',
1943
+ name: '',
1944
+ type: 'bool',
1945
+ },
1946
+ ],
1180
1947
  stateMutability: 'view',
1181
1948
  type: 'function',
1182
1949
  },
@@ -1186,9 +1953,21 @@ export const BOOK_MANAGER_ABI = [
1186
1953
  components: [
1187
1954
  {
1188
1955
  components: [
1189
- { internalType: 'Currency', name: 'base', type: 'address' },
1190
- { internalType: 'uint64', name: 'unitSize', type: 'uint64' },
1191
- { internalType: 'Currency', name: 'quote', type: 'address' },
1956
+ {
1957
+ internalType: 'Currency',
1958
+ name: 'base',
1959
+ type: 'address',
1960
+ },
1961
+ {
1962
+ internalType: 'uint64',
1963
+ name: 'unitSize',
1964
+ type: 'uint64',
1965
+ },
1966
+ {
1967
+ internalType: 'Currency',
1968
+ name: 'quote',
1969
+ type: 'address',
1970
+ },
1192
1971
  {
1193
1972
  internalType: 'FeePolicy',
1194
1973
  name: 'makerPolicy',
@@ -1204,11 +1983,26 @@ export const BOOK_MANAGER_ABI = [
1204
1983
  name: 'key',
1205
1984
  type: 'tuple',
1206
1985
  },
1207
- { internalType: 'Tick', name: 'tick', type: 'int24' },
1208
- { internalType: 'uint64', name: 'maxUnit', type: 'uint64' },
1209
- { internalType: 'address', name: 'owner', type: 'address' },
1210
- { internalType: 'address', name: 'provider', type: 'address' },
1211
- { internalType: 'address', name: 'referrer', type: 'address' },
1986
+ {
1987
+ internalType: 'Tick',
1988
+ name: 'tick',
1989
+ type: 'int24',
1990
+ },
1991
+ {
1992
+ internalType: 'uint64',
1993
+ name: 'maxUnit',
1994
+ type: 'uint64',
1995
+ },
1996
+ {
1997
+ internalType: 'address',
1998
+ name: 'owner',
1999
+ type: 'address',
2000
+ },
2001
+ {
2002
+ internalType: 'address',
2003
+ name: 'referrer',
2004
+ type: 'address',
2005
+ },
1212
2006
  ],
1213
2007
  internalType: 'struct IBookManager.TakeParams',
1214
2008
  name: 'params',
@@ -1217,28 +2011,54 @@ export const BOOK_MANAGER_ABI = [
1217
2011
  ],
1218
2012
  name: 'take',
1219
2013
  outputs: [
1220
- { internalType: 'uint256', name: 'quoteAmount', type: 'uint256' },
1221
- { internalType: 'uint256', name: 'baseAmount', type: 'uint256' },
2014
+ {
2015
+ internalType: 'uint256',
2016
+ name: 'quoteAmount',
2017
+ type: 'uint256',
2018
+ },
2019
+ {
2020
+ internalType: 'uint256',
2021
+ name: 'baseAmount',
2022
+ type: 'uint256',
2023
+ },
1222
2024
  ],
1223
2025
  stateMutability: 'nonpayable',
1224
2026
  type: 'function',
1225
2027
  },
1226
2028
  {
1227
- inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
2029
+ inputs: [
2030
+ {
2031
+ internalType: 'address',
2032
+ name: 'newOwner',
2033
+ type: 'address',
2034
+ },
2035
+ ],
1228
2036
  name: 'transferOwnership',
1229
2037
  outputs: [],
1230
2038
  stateMutability: 'nonpayable',
1231
2039
  type: 'function',
1232
2040
  },
1233
2041
  {
1234
- inputs: [{ internalType: 'BookId', name: 'bookId', type: 'uint192' }],
2042
+ inputs: [
2043
+ {
2044
+ internalType: 'BookId',
2045
+ name: 'bookId',
2046
+ type: 'uint192',
2047
+ },
2048
+ ],
1235
2049
  name: 'unpauseBook',
1236
2050
  outputs: [],
1237
2051
  stateMutability: 'nonpayable',
1238
2052
  type: 'function',
1239
2053
  },
1240
2054
  {
1241
- inputs: [{ internalType: 'Currency', name: 'currency', type: 'address' }],
2055
+ inputs: [
2056
+ {
2057
+ internalType: 'Currency',
2058
+ name: 'currency',
2059
+ type: 'address',
2060
+ },
2061
+ ],
1242
2062
  name: 'unpauseCurrency',
1243
2063
  outputs: [],
1244
2064
  stateMutability: 'nonpayable',
@@ -1246,20 +2066,27 @@ export const BOOK_MANAGER_ABI = [
1246
2066
  },
1247
2067
  {
1248
2068
  inputs: [
1249
- { internalType: 'BookId', name: 'bookId', type: 'uint192' },
1250
- { internalType: 'address', name: 'user', type: 'address' },
2069
+ {
2070
+ internalType: 'BookId',
2071
+ name: 'bookId',
2072
+ type: 'uint192',
2073
+ },
2074
+ {
2075
+ internalType: 'address',
2076
+ name: 'user',
2077
+ type: 'address',
2078
+ },
1251
2079
  ],
1252
2080
  name: 'userHasOrdersInBook',
1253
- outputs: [{ internalType: 'bool', name: 'hasOrders', type: 'bool' }],
2081
+ outputs: [
2082
+ {
2083
+ internalType: 'bool',
2084
+ name: 'hasOrders',
2085
+ type: 'bool',
2086
+ },
2087
+ ],
1254
2088
  stateMutability: 'view',
1255
2089
  type: 'function',
1256
2090
  },
1257
- {
1258
- inputs: [{ internalType: 'address', name: 'provider', type: 'address' }],
1259
- name: 'whitelist',
1260
- outputs: [],
1261
- stateMutability: 'nonpayable',
1262
- type: 'function',
1263
- },
1264
2091
  ];
1265
2092
  //# sourceMappingURL=book-manager-abi.js.map