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