@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
@@ -4,66 +4,208 @@ exports.CONTROLLER_ABI = void 0;
4
4
  exports.CONTROLLER_ABI = [
5
5
  {
6
6
  inputs: [
7
- { internalType: 'address', name: 'bookManager_', type: 'address' },
7
+ {
8
+ internalType: 'address',
9
+ name: 'bookManager_',
10
+ type: 'address',
11
+ },
8
12
  ],
9
13
  stateMutability: 'nonpayable',
10
14
  type: 'constructor',
11
15
  },
12
- { inputs: [], name: 'AccessControlBadConfirmation', type: 'error' },
16
+ {
17
+ inputs: [],
18
+ name: 'AccessControlBadConfirmation',
19
+ type: 'error',
20
+ },
13
21
  {
14
22
  inputs: [
15
- { internalType: 'address', name: 'account', type: 'address' },
16
- { internalType: 'bytes32', name: 'neededRole', type: 'bytes32' },
23
+ {
24
+ internalType: 'address',
25
+ name: 'account',
26
+ type: 'address',
27
+ },
28
+ {
29
+ internalType: 'bytes32',
30
+ name: 'neededRole',
31
+ type: 'bytes32',
32
+ },
17
33
  ],
18
34
  name: 'AccessControlUnauthorizedAccount',
19
35
  type: 'error',
20
36
  },
21
- { inputs: [], name: 'ControllerSlippage', type: 'error' },
22
- { inputs: [], name: 'Deadline', type: 'error' },
23
- { inputs: [], name: 'ExpiredPermitSignature', type: 'error' },
37
+ {
38
+ inputs: [],
39
+ name: 'ControllerSlippage',
40
+ type: 'error',
41
+ },
42
+ {
43
+ inputs: [],
44
+ name: 'Deadline',
45
+ type: 'error',
46
+ },
47
+ {
48
+ inputs: [],
49
+ name: 'ExpiredPermitSignature',
50
+ type: 'error',
51
+ },
24
52
  {
25
53
  inputs: [
26
- { internalType: 'address', name: 'user', type: 'address' },
27
- { internalType: 'Currency', name: 'currency', type: 'address' },
28
- { internalType: 'uint256', name: 'shortfall', type: 'uint256' },
54
+ {
55
+ internalType: 'address',
56
+ name: 'user',
57
+ type: 'address',
58
+ },
59
+ {
60
+ internalType: 'Currency',
61
+ name: 'currency',
62
+ type: 'address',
63
+ },
64
+ {
65
+ internalType: 'uint256',
66
+ name: 'shortfall',
67
+ type: 'uint256',
68
+ },
29
69
  ],
30
70
  name: 'InsufficientBalance',
31
71
  type: 'error',
32
72
  },
33
- { inputs: [], name: 'InsufficientPermitAmount', type: 'error' },
34
- { inputs: [], name: 'InvalidAccess', type: 'error' },
35
- { inputs: [], name: 'InvalidAction', type: 'error' },
36
- { inputs: [], name: 'InvalidDepositAmount', type: 'error' },
37
- { inputs: [], name: 'InvalidLength', type: 'error' },
38
- { inputs: [], name: 'InvalidPrice', type: 'error' },
39
- { inputs: [], name: 'InvalidTick', type: 'error' },
40
73
  {
41
- inputs: [{ internalType: 'address', name: 'owner', type: 'address' }],
74
+ inputs: [],
75
+ name: 'InsufficientPermitAmount',
76
+ type: 'error',
77
+ },
78
+ {
79
+ inputs: [],
80
+ name: 'InvalidAccess',
81
+ type: 'error',
82
+ },
83
+ {
84
+ inputs: [],
85
+ name: 'InvalidAction',
86
+ type: 'error',
87
+ },
88
+ {
89
+ inputs: [],
90
+ name: 'InvalidDepositAmount',
91
+ type: 'error',
92
+ },
93
+ {
94
+ inputs: [],
95
+ name: 'InvalidLength',
96
+ type: 'error',
97
+ },
98
+ {
99
+ inputs: [],
100
+ name: 'InvalidPrice',
101
+ type: 'error',
102
+ },
103
+ {
104
+ inputs: [],
105
+ name: 'InvalidTick',
106
+ type: 'error',
107
+ },
108
+ {
109
+ inputs: [
110
+ {
111
+ internalType: 'address',
112
+ name: 'owner',
113
+ type: 'address',
114
+ },
115
+ ],
42
116
  name: 'OwnableInvalidOwner',
43
117
  type: 'error',
44
118
  },
45
119
  {
46
- inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
120
+ inputs: [
121
+ {
122
+ internalType: 'address',
123
+ name: 'account',
124
+ type: 'address',
125
+ },
126
+ ],
47
127
  name: 'OwnableUnauthorizedAccount',
48
128
  type: 'error',
49
129
  },
50
- { inputs: [], name: 'PermitTokenMismatch', type: 'error' },
51
- { inputs: [], name: 'ReentrancyGuardReentrantCall', type: 'error' },
130
+ {
131
+ inputs: [],
132
+ name: 'PermitTokenMismatch',
133
+ type: 'error',
134
+ },
135
+ {
136
+ inputs: [],
137
+ name: 'ReentrancyGuardReentrantCall',
138
+ type: 'error',
139
+ },
52
140
  {
53
141
  inputs: [
54
- { internalType: 'uint8', name: 'bits', type: 'uint8' },
55
- { internalType: 'uint256', name: 'value', type: 'uint256' },
142
+ {
143
+ internalType: 'uint8',
144
+ name: 'bits',
145
+ type: 'uint8',
146
+ },
147
+ {
148
+ internalType: 'uint256',
149
+ name: 'value',
150
+ type: 'uint256',
151
+ },
56
152
  ],
57
153
  name: 'SafeCastOverflowedUintDowncast',
58
154
  type: 'error',
59
155
  },
60
156
  {
61
- inputs: [{ internalType: 'address', name: 'token', type: 'address' }],
157
+ inputs: [
158
+ {
159
+ internalType: 'address',
160
+ name: 'token',
161
+ type: 'address',
162
+ },
163
+ ],
62
164
  name: 'SafeERC20FailedOperation',
63
165
  type: 'error',
64
166
  },
65
- { inputs: [], name: 'UnauthorizedBookOpening', type: 'error' },
66
- { inputs: [], name: 'VaultNotFound', type: 'error' },
167
+ {
168
+ inputs: [],
169
+ name: 'UnauthorizedBookOpening',
170
+ type: 'error',
171
+ },
172
+ {
173
+ inputs: [
174
+ {
175
+ internalType: 'uint64',
176
+ name: 'unit',
177
+ type: 'uint64',
178
+ },
179
+ {
180
+ internalType: 'uint64',
181
+ name: 'maxUnit',
182
+ type: 'uint64',
183
+ },
184
+ ],
185
+ name: 'UnitAboveMaximum',
186
+ type: 'error',
187
+ },
188
+ {
189
+ inputs: [
190
+ {
191
+ internalType: 'uint64',
192
+ name: 'unit',
193
+ type: 'uint64',
194
+ },
195
+ {
196
+ internalType: 'uint64',
197
+ name: 'minUnit',
198
+ type: 'uint64',
199
+ },
200
+ ],
201
+ name: 'UnitBelowMinimum',
202
+ type: 'error',
203
+ },
204
+ {
205
+ inputs: [],
206
+ name: 'VaultNotFound',
207
+ type: 'error',
208
+ },
67
209
  {
68
210
  anonymous: false,
69
211
  inputs: [
@@ -105,7 +247,12 @@ exports.CONTROLLER_ABI = [
105
247
  {
106
248
  anonymous: false,
107
249
  inputs: [
108
- { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' },
250
+ {
251
+ indexed: true,
252
+ internalType: 'bytes32',
253
+ name: 'role',
254
+ type: 'bytes32',
255
+ },
109
256
  {
110
257
  indexed: true,
111
258
  internalType: 'bytes32',
@@ -125,7 +272,12 @@ exports.CONTROLLER_ABI = [
125
272
  {
126
273
  anonymous: false,
127
274
  inputs: [
128
- { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' },
275
+ {
276
+ indexed: true,
277
+ internalType: 'bytes32',
278
+ name: 'role',
279
+ type: 'bytes32',
280
+ },
129
281
  {
130
282
  indexed: true,
131
283
  internalType: 'address',
@@ -145,7 +297,12 @@ exports.CONTROLLER_ABI = [
145
297
  {
146
298
  anonymous: false,
147
299
  inputs: [
148
- { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' },
300
+ {
301
+ indexed: true,
302
+ internalType: 'bytes32',
303
+ name: 'role',
304
+ type: 'bytes32',
305
+ },
149
306
  {
150
307
  indexed: true,
151
308
  internalType: 'address',
@@ -165,14 +322,26 @@ exports.CONTROLLER_ABI = [
165
322
  {
166
323
  inputs: [],
167
324
  name: 'ADMIN_ROLE',
168
- outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
325
+ outputs: [
326
+ {
327
+ internalType: 'bytes32',
328
+ name: '',
329
+ type: 'bytes32',
330
+ },
331
+ ],
169
332
  stateMutability: 'view',
170
333
  type: 'function',
171
334
  },
172
335
  {
173
336
  inputs: [],
174
337
  name: 'DEFAULT_ADMIN_ROLE',
175
- outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
338
+ outputs: [
339
+ {
340
+ internalType: 'bytes32',
341
+ name: '',
342
+ type: 'bytes32',
343
+ },
344
+ ],
176
345
  stateMutability: 'view',
177
346
  type: 'function',
178
347
  },
@@ -187,7 +356,11 @@ exports.CONTROLLER_ABI = [
187
356
  inputs: [],
188
357
  name: 'bookManager',
189
358
  outputs: [
190
- { internalType: 'contract IBookManager', name: '', type: 'address' },
359
+ {
360
+ internalType: 'contract IBookManager',
361
+ name: '',
362
+ type: 'address',
363
+ },
191
364
  ],
192
365
  stateMutability: 'view',
193
366
  type: 'function',
@@ -196,14 +369,26 @@ exports.CONTROLLER_ABI = [
196
369
  inputs: [
197
370
  {
198
371
  components: [
199
- { internalType: 'OrderId', name: 'id', type: 'uint256' },
200
- { internalType: 'uint256', name: 'leftQuoteAmount', type: 'uint256' },
372
+ {
373
+ internalType: 'OrderId',
374
+ name: 'id',
375
+ type: 'uint256',
376
+ },
377
+ {
378
+ internalType: 'uint256',
379
+ name: 'leftQuoteAmount',
380
+ type: 'uint256',
381
+ },
201
382
  ],
202
383
  internalType: 'struct IController.CancelOrderParams[]',
203
384
  name: 'orderParamsList',
204
385
  type: 'tuple[]',
205
386
  },
206
- { internalType: 'uint64', name: 'deadline', type: 'uint64' },
387
+ {
388
+ internalType: 'uint64',
389
+ name: 'deadline',
390
+ type: 'uint64',
391
+ },
207
392
  ],
208
393
  name: 'cancel',
209
394
  outputs: [],
@@ -213,12 +398,22 @@ exports.CONTROLLER_ABI = [
213
398
  {
214
399
  inputs: [
215
400
  {
216
- components: [{ internalType: 'OrderId', name: 'id', type: 'uint256' }],
401
+ components: [
402
+ {
403
+ internalType: 'OrderId',
404
+ name: 'id',
405
+ type: 'uint256',
406
+ },
407
+ ],
217
408
  internalType: 'struct IController.ClaimOrderParams[]',
218
409
  name: 'orderParamsList',
219
410
  type: 'tuple[]',
220
411
  },
221
- { internalType: 'uint64', name: 'deadline', type: 'uint64' },
412
+ {
413
+ internalType: 'uint64',
414
+ name: 'deadline',
415
+ type: 'uint64',
416
+ },
222
417
  ],
223
418
  name: 'claim',
224
419
  outputs: [],
@@ -227,8 +422,16 @@ exports.CONTROLLER_ABI = [
227
422
  },
228
423
  {
229
424
  inputs: [
230
- { internalType: 'Currency', name: 'currency', type: 'address' },
231
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
425
+ {
426
+ internalType: 'Currency',
427
+ name: 'currency',
428
+ type: 'address',
429
+ },
430
+ {
431
+ internalType: 'uint256',
432
+ name: 'amount',
433
+ type: 'uint256',
434
+ },
232
435
  ],
233
436
  name: 'depositToVault',
234
437
  outputs: [],
@@ -237,18 +440,50 @@ exports.CONTROLLER_ABI = [
237
440
  },
238
441
  {
239
442
  inputs: [
240
- { internalType: 'Currency', name: 'currency', type: 'address' },
241
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
443
+ {
444
+ internalType: 'Currency',
445
+ name: 'currency',
446
+ type: 'address',
447
+ },
448
+ {
449
+ internalType: 'uint256',
450
+ name: 'amount',
451
+ type: 'uint256',
452
+ },
242
453
  {
243
454
  components: [
244
- { internalType: 'address', name: 'token', type: 'address' },
245
- { internalType: 'uint256', name: 'permitAmount', type: 'uint256' },
455
+ {
456
+ internalType: 'address',
457
+ name: 'token',
458
+ type: 'address',
459
+ },
460
+ {
461
+ internalType: 'uint256',
462
+ name: 'permitAmount',
463
+ type: 'uint256',
464
+ },
246
465
  {
247
466
  components: [
248
- { internalType: 'uint256', name: 'deadline', type: 'uint256' },
249
- { internalType: 'uint8', name: 'v', type: 'uint8' },
250
- { internalType: 'bytes32', name: 'r', type: 'bytes32' },
251
- { internalType: 'bytes32', name: 's', type: 'bytes32' },
467
+ {
468
+ internalType: 'uint256',
469
+ name: 'deadline',
470
+ type: 'uint256',
471
+ },
472
+ {
473
+ internalType: 'uint8',
474
+ name: 'v',
475
+ type: 'uint8',
476
+ },
477
+ {
478
+ internalType: 'bytes32',
479
+ name: 'r',
480
+ type: 'bytes32',
481
+ },
482
+ {
483
+ internalType: 'bytes32',
484
+ name: 's',
485
+ type: 'bytes32',
486
+ },
252
487
  ],
253
488
  internalType: 'struct IController.PermitSignature',
254
489
  name: 'signature',
@@ -272,60 +507,156 @@ exports.CONTROLLER_ABI = [
272
507
  name: 'actionList',
273
508
  type: 'uint8[]',
274
509
  },
275
- { internalType: 'bytes[]', name: 'paramsDataList', type: 'bytes[]' },
276
- { internalType: 'uint64', name: 'deadline', type: 'uint64' },
510
+ {
511
+ internalType: 'bytes[]',
512
+ name: 'paramsDataList',
513
+ type: 'bytes[]',
514
+ },
515
+ {
516
+ internalType: 'uint64',
517
+ name: 'deadline',
518
+ type: 'uint64',
519
+ },
277
520
  ],
278
521
  name: 'execute',
279
- outputs: [{ internalType: 'OrderId[]', name: 'ids', type: 'uint256[]' }],
522
+ outputs: [
523
+ {
524
+ internalType: 'OrderId[]',
525
+ name: 'ids',
526
+ type: 'uint256[]',
527
+ },
528
+ ],
280
529
  stateMutability: 'nonpayable',
281
530
  type: 'function',
282
531
  },
283
532
  {
284
- inputs: [{ internalType: 'uint256', name: 'price', type: 'uint256' }],
533
+ inputs: [
534
+ {
535
+ internalType: 'uint256',
536
+ name: 'price',
537
+ type: 'uint256',
538
+ },
539
+ ],
285
540
  name: 'fromPrice',
286
- outputs: [{ internalType: 'Tick', name: '', type: 'int24' }],
541
+ outputs: [
542
+ {
543
+ internalType: 'Tick',
544
+ name: '',
545
+ type: 'int24',
546
+ },
547
+ ],
287
548
  stateMutability: 'pure',
288
549
  type: 'function',
289
550
  },
290
551
  {
291
552
  inputs: [
292
- { internalType: 'BookId', name: 'id', type: 'uint192' },
293
- { internalType: 'Tick', name: 'tick', type: 'int24' },
553
+ {
554
+ internalType: 'BookId',
555
+ name: 'id',
556
+ type: 'uint192',
557
+ },
558
+ {
559
+ internalType: 'Tick',
560
+ name: 'tick',
561
+ type: 'int24',
562
+ },
294
563
  ],
295
564
  name: 'getDepth',
296
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
565
+ outputs: [
566
+ {
567
+ internalType: 'uint256',
568
+ name: '',
569
+ type: 'uint256',
570
+ },
571
+ ],
297
572
  stateMutability: 'view',
298
573
  type: 'function',
299
574
  },
300
575
  {
301
- inputs: [{ internalType: 'BookId', name: 'id', type: 'uint192' }],
576
+ inputs: [
577
+ {
578
+ internalType: 'BookId',
579
+ name: 'id',
580
+ type: 'uint192',
581
+ },
582
+ ],
302
583
  name: 'getHighestPrice',
303
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
584
+ outputs: [
585
+ {
586
+ internalType: 'uint256',
587
+ name: '',
588
+ type: 'uint256',
589
+ },
590
+ ],
304
591
  stateMutability: 'view',
305
592
  type: 'function',
306
593
  },
307
594
  {
308
- inputs: [{ internalType: 'OrderId', name: 'orderId', type: 'uint256' }],
595
+ inputs: [
596
+ {
597
+ internalType: 'OrderId',
598
+ name: 'orderId',
599
+ type: 'uint256',
600
+ },
601
+ ],
309
602
  name: 'getOrder',
310
603
  outputs: [
311
- { internalType: 'address', name: '', type: 'address' },
312
- { internalType: 'address', name: '', type: 'address' },
313
- { internalType: 'uint256', name: '', type: 'uint256' },
314
- { internalType: 'uint256', name: '', type: 'uint256' },
315
- { internalType: 'uint256', name: '', type: 'uint256' },
604
+ {
605
+ internalType: 'address',
606
+ name: '',
607
+ type: 'address',
608
+ },
609
+ {
610
+ internalType: 'address',
611
+ name: '',
612
+ type: 'address',
613
+ },
614
+ {
615
+ internalType: 'uint256',
616
+ name: '',
617
+ type: 'uint256',
618
+ },
619
+ {
620
+ internalType: 'uint256',
621
+ name: '',
622
+ type: 'uint256',
623
+ },
624
+ {
625
+ internalType: 'uint256',
626
+ name: '',
627
+ type: 'uint256',
628
+ },
316
629
  ],
317
630
  stateMutability: 'view',
318
631
  type: 'function',
319
632
  },
320
633
  {
321
- inputs: [{ internalType: 'bytes32', name: 'role', type: 'bytes32' }],
634
+ inputs: [
635
+ {
636
+ internalType: 'bytes32',
637
+ name: 'role',
638
+ type: 'bytes32',
639
+ },
640
+ ],
322
641
  name: 'getRoleAdmin',
323
- outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
642
+ outputs: [
643
+ {
644
+ internalType: 'bytes32',
645
+ name: '',
646
+ type: 'bytes32',
647
+ },
648
+ ],
324
649
  stateMutability: 'view',
325
650
  type: 'function',
326
651
  },
327
652
  {
328
- inputs: [{ internalType: 'address', name: 'admin', type: 'address' }],
653
+ inputs: [
654
+ {
655
+ internalType: 'address',
656
+ name: 'admin',
657
+ type: 'address',
658
+ },
659
+ ],
329
660
  name: 'grantAdminRole',
330
661
  outputs: [],
331
662
  stateMutability: 'nonpayable',
@@ -333,8 +664,16 @@ exports.CONTROLLER_ABI = [
333
664
  },
334
665
  {
335
666
  inputs: [
336
- { internalType: 'bytes32', name: 'role', type: 'bytes32' },
337
- { internalType: 'address', name: 'account', type: 'address' },
667
+ {
668
+ internalType: 'bytes32',
669
+ name: 'role',
670
+ type: 'bytes32',
671
+ },
672
+ {
673
+ internalType: 'address',
674
+ name: 'account',
675
+ type: 'address',
676
+ },
338
677
  ],
339
678
  name: 'grantRole',
340
679
  outputs: [],
@@ -343,11 +682,25 @@ exports.CONTROLLER_ABI = [
343
682
  },
344
683
  {
345
684
  inputs: [
346
- { internalType: 'bytes32', name: 'role', type: 'bytes32' },
347
- { internalType: 'address', name: 'account', type: 'address' },
685
+ {
686
+ internalType: 'bytes32',
687
+ name: 'role',
688
+ type: 'bytes32',
689
+ },
690
+ {
691
+ internalType: 'address',
692
+ name: 'account',
693
+ type: 'address',
694
+ },
348
695
  ],
349
696
  name: 'hasRole',
350
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
697
+ outputs: [
698
+ {
699
+ internalType: 'bool',
700
+ name: '',
701
+ type: 'bool',
702
+ },
703
+ ],
351
704
  stateMutability: 'view',
352
705
  type: 'function',
353
706
  },
@@ -355,34 +708,79 @@ exports.CONTROLLER_ABI = [
355
708
  inputs: [
356
709
  {
357
710
  components: [
358
- { internalType: 'BookId', name: 'takeBookId', type: 'uint192' },
359
- { internalType: 'BookId', name: 'makeBookId', type: 'uint192' },
360
- { internalType: 'uint256', name: 'limitPrice', type: 'uint256' },
361
- { internalType: 'Tick', name: 'tick', type: 'int24' },
362
- { internalType: 'uint256', name: 'quoteAmount', type: 'uint256' },
363
- { internalType: 'address', name: 'makeProvider', type: 'address' },
364
- { internalType: 'address', name: 'makeReferrer', type: 'address' },
365
- { internalType: 'address', name: 'takeProvider', type: 'address' },
366
- { internalType: 'address', name: 'takeReferrer', type: 'address' },
711
+ {
712
+ internalType: 'BookId',
713
+ name: 'takeBookId',
714
+ type: 'uint192',
715
+ },
716
+ {
717
+ internalType: 'BookId',
718
+ name: 'makeBookId',
719
+ type: 'uint192',
720
+ },
721
+ {
722
+ internalType: 'uint256',
723
+ name: 'limitPrice',
724
+ type: 'uint256',
725
+ },
726
+ {
727
+ internalType: 'Tick',
728
+ name: 'tick',
729
+ type: 'int24',
730
+ },
731
+ {
732
+ internalType: 'uint256',
733
+ name: 'quoteAmount',
734
+ type: 'uint256',
735
+ },
736
+ {
737
+ internalType: 'address',
738
+ name: 'referrer',
739
+ type: 'address',
740
+ },
367
741
  ],
368
742
  internalType: 'struct IController.LimitOrderParams[]',
369
743
  name: 'orderParamsList',
370
744
  type: 'tuple[]',
371
745
  },
372
- { internalType: 'uint64', name: 'deadline', type: 'uint64' },
746
+ {
747
+ internalType: 'uint64',
748
+ name: 'deadline',
749
+ type: 'uint64',
750
+ },
373
751
  ],
374
752
  name: 'limit',
375
- outputs: [{ internalType: 'OrderId[]', name: 'ids', type: 'uint256[]' }],
753
+ outputs: [
754
+ {
755
+ internalType: 'OrderId[]',
756
+ name: 'ids',
757
+ type: 'uint256[]',
758
+ },
759
+ ],
376
760
  stateMutability: 'nonpayable',
377
761
  type: 'function',
378
762
  },
379
763
  {
380
764
  inputs: [
381
- { internalType: 'address', name: 'sender', type: 'address' },
382
- { internalType: 'bytes', name: 'data', type: 'bytes' },
765
+ {
766
+ internalType: 'address',
767
+ name: 'sender',
768
+ type: 'address',
769
+ },
770
+ {
771
+ internalType: 'bytes',
772
+ name: 'data',
773
+ type: 'bytes',
774
+ },
383
775
  ],
384
776
  name: 'lockAcquired',
385
- outputs: [{ internalType: 'bytes', name: 'returnData', type: 'bytes' }],
777
+ outputs: [
778
+ {
779
+ internalType: 'bytes',
780
+ name: 'returnData',
781
+ type: 'bytes',
782
+ },
783
+ ],
386
784
  stateMutability: 'nonpayable',
387
785
  type: 'function',
388
786
  },
@@ -390,20 +788,45 @@ exports.CONTROLLER_ABI = [
390
788
  inputs: [
391
789
  {
392
790
  components: [
393
- { internalType: 'BookId', name: 'id', type: 'uint192' },
394
- { internalType: 'Tick', name: 'tick', type: 'int24' },
395
- { internalType: 'uint256', name: 'quoteAmount', type: 'uint256' },
396
- { internalType: 'address', name: 'provider', type: 'address' },
397
- { internalType: 'address', name: 'referrer', type: 'address' },
791
+ {
792
+ internalType: 'BookId',
793
+ name: 'id',
794
+ type: 'uint192',
795
+ },
796
+ {
797
+ internalType: 'Tick',
798
+ name: 'tick',
799
+ type: 'int24',
800
+ },
801
+ {
802
+ internalType: 'uint256',
803
+ name: 'quoteAmount',
804
+ type: 'uint256',
805
+ },
806
+ {
807
+ internalType: 'address',
808
+ name: 'referrer',
809
+ type: 'address',
810
+ },
398
811
  ],
399
812
  internalType: 'struct IController.MakeOrderParams[]',
400
813
  name: 'orderParamsList',
401
814
  type: 'tuple[]',
402
815
  },
403
- { internalType: 'uint64', name: 'deadline', type: 'uint64' },
816
+ {
817
+ internalType: 'uint64',
818
+ name: 'deadline',
819
+ type: 'uint64',
820
+ },
404
821
  ],
405
822
  name: 'make',
406
- outputs: [{ internalType: 'OrderId[]', name: 'ids', type: 'uint256[]' }],
823
+ outputs: [
824
+ {
825
+ internalType: 'OrderId[]',
826
+ name: 'ids',
827
+ type: 'uint256[]',
828
+ },
829
+ ],
407
830
  stateMutability: 'nonpayable',
408
831
  type: 'function',
409
832
  },
@@ -413,9 +836,21 @@ exports.CONTROLLER_ABI = [
413
836
  components: [
414
837
  {
415
838
  components: [
416
- { internalType: 'Currency', name: 'base', type: 'address' },
417
- { internalType: 'uint64', name: 'unitSize', type: 'uint64' },
418
- { internalType: 'Currency', name: 'quote', type: 'address' },
839
+ {
840
+ internalType: 'Currency',
841
+ name: 'base',
842
+ type: 'address',
843
+ },
844
+ {
845
+ internalType: 'uint64',
846
+ name: 'unitSize',
847
+ type: 'uint64',
848
+ },
849
+ {
850
+ internalType: 'Currency',
851
+ name: 'quote',
852
+ type: 'address',
853
+ },
419
854
  {
420
855
  internalType: 'FeePolicy',
421
856
  name: 'makerPolicy',
@@ -431,14 +866,26 @@ exports.CONTROLLER_ABI = [
431
866
  name: 'key',
432
867
  type: 'tuple',
433
868
  },
434
- { internalType: 'uint64', name: 'minUnit', type: 'uint64' },
435
- { internalType: 'uint64', name: 'maxUnit', type: 'uint64' },
869
+ {
870
+ internalType: 'uint64',
871
+ name: 'minUnit',
872
+ type: 'uint64',
873
+ },
874
+ {
875
+ internalType: 'uint64',
876
+ name: 'maxUnit',
877
+ type: 'uint64',
878
+ },
436
879
  ],
437
880
  internalType: 'struct IController.OpenBookParams[]',
438
881
  name: 'openBookParamsList',
439
882
  type: 'tuple[]',
440
883
  },
441
- { internalType: 'uint64', name: 'deadline', type: 'uint64' },
884
+ {
885
+ internalType: 'uint64',
886
+ name: 'deadline',
887
+ type: 'uint64',
888
+ },
442
889
  ],
443
890
  name: 'open',
444
891
  outputs: [],
@@ -448,14 +895,26 @@ exports.CONTROLLER_ABI = [
448
895
  {
449
896
  inputs: [],
450
897
  name: 'owner',
451
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
898
+ outputs: [
899
+ {
900
+ internalType: 'address',
901
+ name: '',
902
+ type: 'address',
903
+ },
904
+ ],
452
905
  stateMutability: 'view',
453
906
  type: 'function',
454
907
  },
455
908
  {
456
909
  inputs: [],
457
910
  name: 'pendingOwner',
458
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
911
+ outputs: [
912
+ {
913
+ internalType: 'address',
914
+ name: '',
915
+ type: 'address',
916
+ },
917
+ ],
459
918
  stateMutability: 'view',
460
919
  type: 'function',
461
920
  },
@@ -468,8 +927,16 @@ exports.CONTROLLER_ABI = [
468
927
  },
469
928
  {
470
929
  inputs: [
471
- { internalType: 'bytes32', name: 'role', type: 'bytes32' },
472
- { internalType: 'address', name: 'callerConfirmation', type: 'address' },
930
+ {
931
+ internalType: 'bytes32',
932
+ name: 'role',
933
+ type: 'bytes32',
934
+ },
935
+ {
936
+ internalType: 'address',
937
+ name: 'callerConfirmation',
938
+ type: 'address',
939
+ },
473
940
  ],
474
941
  name: 'renounceRole',
475
942
  outputs: [],
@@ -477,7 +944,13 @@ exports.CONTROLLER_ABI = [
477
944
  type: 'function',
478
945
  },
479
946
  {
480
- inputs: [{ internalType: 'address', name: 'admin', type: 'address' }],
947
+ inputs: [
948
+ {
949
+ internalType: 'address',
950
+ name: 'admin',
951
+ type: 'address',
952
+ },
953
+ ],
481
954
  name: 'revokeAdminRole',
482
955
  outputs: [],
483
956
  stateMutability: 'nonpayable',
@@ -485,8 +958,16 @@ exports.CONTROLLER_ABI = [
485
958
  },
486
959
  {
487
960
  inputs: [
488
- { internalType: 'bytes32', name: 'role', type: 'bytes32' },
489
- { internalType: 'address', name: 'account', type: 'address' },
961
+ {
962
+ internalType: 'bytes32',
963
+ name: 'role',
964
+ type: 'bytes32',
965
+ },
966
+ {
967
+ internalType: 'address',
968
+ name: 'account',
969
+ type: 'address',
970
+ },
490
971
  ],
491
972
  name: 'revokeRole',
492
973
  outputs: [],
@@ -497,18 +978,41 @@ exports.CONTROLLER_ABI = [
497
978
  inputs: [
498
979
  {
499
980
  components: [
500
- { internalType: 'BookId', name: 'id', type: 'uint192' },
501
- { internalType: 'uint256', name: 'limitPrice', type: 'uint256' },
502
- { internalType: 'uint256', name: 'baseAmount', type: 'uint256' },
503
- { internalType: 'uint256', name: 'minQuoteAmount', type: 'uint256' },
504
- { internalType: 'address', name: 'provider', type: 'address' },
505
- { internalType: 'address', name: 'referrer', type: 'address' },
981
+ {
982
+ internalType: 'BookId',
983
+ name: 'id',
984
+ type: 'uint192',
985
+ },
986
+ {
987
+ internalType: 'uint256',
988
+ name: 'limitPrice',
989
+ type: 'uint256',
990
+ },
991
+ {
992
+ internalType: 'uint256',
993
+ name: 'baseAmount',
994
+ type: 'uint256',
995
+ },
996
+ {
997
+ internalType: 'uint256',
998
+ name: 'minQuoteAmount',
999
+ type: 'uint256',
1000
+ },
1001
+ {
1002
+ internalType: 'address',
1003
+ name: 'referrer',
1004
+ type: 'address',
1005
+ },
506
1006
  ],
507
1007
  internalType: 'struct IController.SpendOrderParams[]',
508
1008
  name: 'orderParamsList',
509
1009
  type: 'tuple[]',
510
1010
  },
511
- { internalType: 'uint64', name: 'deadline', type: 'uint64' },
1011
+ {
1012
+ internalType: 'uint64',
1013
+ name: 'deadline',
1014
+ type: 'uint64',
1015
+ },
512
1016
  ],
513
1017
  name: 'spend',
514
1018
  outputs: [],
@@ -516,9 +1020,21 @@ exports.CONTROLLER_ABI = [
516
1020
  type: 'function',
517
1021
  },
518
1022
  {
519
- inputs: [{ internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }],
1023
+ inputs: [
1024
+ {
1025
+ internalType: 'bytes4',
1026
+ name: 'interfaceId',
1027
+ type: 'bytes4',
1028
+ },
1029
+ ],
520
1030
  name: 'supportsInterface',
521
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1031
+ outputs: [
1032
+ {
1033
+ internalType: 'bool',
1034
+ name: '',
1035
+ type: 'bool',
1036
+ },
1037
+ ],
522
1038
  stateMutability: 'view',
523
1039
  type: 'function',
524
1040
  },
@@ -526,18 +1042,41 @@ exports.CONTROLLER_ABI = [
526
1042
  inputs: [
527
1043
  {
528
1044
  components: [
529
- { internalType: 'BookId', name: 'id', type: 'uint192' },
530
- { internalType: 'uint256', name: 'limitPrice', type: 'uint256' },
531
- { internalType: 'uint256', name: 'quoteAmount', type: 'uint256' },
532
- { internalType: 'uint256', name: 'maxBaseAmount', type: 'uint256' },
533
- { internalType: 'address', name: 'provider', type: 'address' },
534
- { internalType: 'address', name: 'referrer', type: 'address' },
1045
+ {
1046
+ internalType: 'BookId',
1047
+ name: 'id',
1048
+ type: 'uint192',
1049
+ },
1050
+ {
1051
+ internalType: 'uint256',
1052
+ name: 'limitPrice',
1053
+ type: 'uint256',
1054
+ },
1055
+ {
1056
+ internalType: 'uint256',
1057
+ name: 'quoteAmount',
1058
+ type: 'uint256',
1059
+ },
1060
+ {
1061
+ internalType: 'uint256',
1062
+ name: 'maxBaseAmount',
1063
+ type: 'uint256',
1064
+ },
1065
+ {
1066
+ internalType: 'address',
1067
+ name: 'referrer',
1068
+ type: 'address',
1069
+ },
535
1070
  ],
536
1071
  internalType: 'struct IController.TakeOrderParams[]',
537
1072
  name: 'orderParamsList',
538
1073
  type: 'tuple[]',
539
1074
  },
540
- { internalType: 'uint64', name: 'deadline', type: 'uint64' },
1075
+ {
1076
+ internalType: 'uint64',
1077
+ name: 'deadline',
1078
+ type: 'uint64',
1079
+ },
541
1080
  ],
542
1081
  name: 'take',
543
1082
  outputs: [],
@@ -545,14 +1084,32 @@ exports.CONTROLLER_ABI = [
545
1084
  type: 'function',
546
1085
  },
547
1086
  {
548
- inputs: [{ internalType: 'Tick', name: 'tick', type: 'int24' }],
1087
+ inputs: [
1088
+ {
1089
+ internalType: 'Tick',
1090
+ name: 'tick',
1091
+ type: 'int24',
1092
+ },
1093
+ ],
549
1094
  name: 'toPrice',
550
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1095
+ outputs: [
1096
+ {
1097
+ internalType: 'uint256',
1098
+ name: '',
1099
+ type: 'uint256',
1100
+ },
1101
+ ],
551
1102
  stateMutability: 'pure',
552
1103
  type: 'function',
553
1104
  },
554
1105
  {
555
- inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
1106
+ inputs: [
1107
+ {
1108
+ internalType: 'address',
1109
+ name: 'newOwner',
1110
+ type: 'address',
1111
+ },
1112
+ ],
556
1113
  name: 'transferOwnership',
557
1114
  outputs: [],
558
1115
  stateMutability: 'nonpayable',
@@ -560,8 +1117,16 @@ exports.CONTROLLER_ABI = [
560
1117
  },
561
1118
  {
562
1119
  inputs: [
563
- { internalType: 'Currency', name: 'currency', type: 'address' },
564
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
1120
+ {
1121
+ internalType: 'Currency',
1122
+ name: 'currency',
1123
+ type: 'address',
1124
+ },
1125
+ {
1126
+ internalType: 'uint256',
1127
+ name: 'amount',
1128
+ type: 'uint256',
1129
+ },
565
1130
  ],
566
1131
  name: 'withdrawFromVault',
567
1132
  outputs: [],
@@ -570,18 +1135,50 @@ exports.CONTROLLER_ABI = [
570
1135
  },
571
1136
  {
572
1137
  inputs: [
573
- { internalType: 'Currency', name: 'currency', type: 'address' },
574
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
1138
+ {
1139
+ internalType: 'Currency',
1140
+ name: 'currency',
1141
+ type: 'address',
1142
+ },
1143
+ {
1144
+ internalType: 'uint256',
1145
+ name: 'amount',
1146
+ type: 'uint256',
1147
+ },
575
1148
  {
576
1149
  components: [
577
- { internalType: 'address', name: 'token', type: 'address' },
578
- { internalType: 'uint256', name: 'permitAmount', type: 'uint256' },
1150
+ {
1151
+ internalType: 'address',
1152
+ name: 'token',
1153
+ type: 'address',
1154
+ },
1155
+ {
1156
+ internalType: 'uint256',
1157
+ name: 'permitAmount',
1158
+ type: 'uint256',
1159
+ },
579
1160
  {
580
1161
  components: [
581
- { internalType: 'uint256', name: 'deadline', type: 'uint256' },
582
- { internalType: 'uint8', name: 'v', type: 'uint8' },
583
- { internalType: 'bytes32', name: 'r', type: 'bytes32' },
584
- { internalType: 'bytes32', name: 's', type: 'bytes32' },
1162
+ {
1163
+ internalType: 'uint256',
1164
+ name: 'deadline',
1165
+ type: 'uint256',
1166
+ },
1167
+ {
1168
+ internalType: 'uint8',
1169
+ name: 'v',
1170
+ type: 'uint8',
1171
+ },
1172
+ {
1173
+ internalType: 'bytes32',
1174
+ name: 'r',
1175
+ type: 'bytes32',
1176
+ },
1177
+ {
1178
+ internalType: 'bytes32',
1179
+ name: 's',
1180
+ type: 'bytes32',
1181
+ },
585
1182
  ],
586
1183
  internalType: 'struct IController.PermitSignature',
587
1184
  name: 'signature',