@paraswap/dex-lib 2.37.1 → 2.37.2-current-fee-ramses-v2.2

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 (200) hide show
  1. package/.idea/aws.xml +17 -0
  2. package/.idea/codeStyles/Project.xml +19 -0
  3. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  4. package/.idea/misc.xml +6 -0
  5. package/.idea/modules.xml +8 -0
  6. package/.idea/paraswap-dex-lib.iml +9 -0
  7. package/.idea/vcs.xml +6 -0
  8. package/build/abi/algebra/AlgebraPool.abi.json +727 -0
  9. package/build/abi/curve-v1/StableSwapFRXETH.json +889 -0
  10. package/build/abi/curve-v1/StableSwapWBETH.json +1223 -0
  11. package/build/abi/dexalot/DexalotMainnetRFQ.json +887 -0
  12. package/build/abi/ramses-v2/RamsesV2Pool.abi.json +1580 -0
  13. package/build/abi/sushiswap-v3/QuoterV2.json +267 -0
  14. package/build/abi/sushiswap-v3/RouterProcessor3.json +289 -0
  15. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +193 -0
  16. package/build/abi/uniswap-v3/pancakeswap-v3/PancakeswapV3QuoterV2.abi.json +285 -0
  17. package/build/abi/uniswap-v3/pancakeswap-v3/PancakeswapV3Router.abi.json +583 -0
  18. package/build/abi/wBETH.json +1527 -0
  19. package/build/abi/woo-fi/WooFeeManager.abi.json +318 -0
  20. package/build/abi/woo-fi/WooPP.abi.json +548 -0
  21. package/build/abi/woo-fi/Wooracle.abi.json +260 -0
  22. package/build/dex/aave-v3/tokens/arbitrum.json +50 -0
  23. package/build/dex/aave-v3/tokens/avalanche.json +74 -0
  24. package/build/dex/aave-v3/tokens/fantom.json +62 -0
  25. package/build/dex/aave-v3/tokens/optimism.json +50 -0
  26. package/build/dex/aave-v3/tokens/polygon.json +116 -0
  27. package/build/dex/algebra/algebra-pool.d.ts +46 -0
  28. package/build/dex/algebra/algebra-pool.js +336 -0
  29. package/build/dex/algebra/algebra-pool.js.map +1 -0
  30. package/build/dex/balancer-v2/LinearMath.d.ts +19 -0
  31. package/build/dex/balancer-v2/LinearMath.js +179 -0
  32. package/build/dex/balancer-v2/LinearMath.js.map +1 -0
  33. package/build/dex/balancer-v2/LinearPool.d.ts +47 -0
  34. package/build/dex/balancer-v2/LinearPool.js +324 -0
  35. package/build/dex/balancer-v2/LinearPool.js.map +1 -0
  36. package/build/dex/balancer-v2/PhantomStablePool.d.ts +47 -0
  37. package/build/dex/balancer-v2/PhantomStablePool.js +294 -0
  38. package/build/dex/balancer-v2/PhantomStablePool.js.map +1 -0
  39. package/build/dex/balancer-v2/StableMath.d.ts +9 -0
  40. package/build/dex/balancer-v2/StableMath.js +272 -0
  41. package/build/dex/balancer-v2/StableMath.js.map +1 -0
  42. package/build/dex/balancer-v2/balancer-v2-pool.d.ts +75 -0
  43. package/build/dex/balancer-v2/balancer-v2-pool.js +417 -0
  44. package/build/dex/balancer-v2/balancer-v2-pool.js.map +1 -0
  45. package/build/dex/curve-v1/pools/frxETHpool.d.ts +7 -0
  46. package/build/dex/curve-v1/pools/frxETHpool.js +27 -0
  47. package/build/dex/curve-v1/pools/frxETHpool.js.map +1 -0
  48. package/build/dex/curve-v1/pools/wbETHpool.d.ts +29 -0
  49. package/build/dex/curve-v1/pools/wbETHpool.js +408 -0
  50. package/build/dex/curve-v1/pools/wbETHpool.js.map +1 -0
  51. package/build/dex/dexalot/config.d.ts +4 -0
  52. package/build/dex/dexalot/config.js +18 -0
  53. package/build/dex/dexalot/config.js.map +1 -0
  54. package/build/dex/dexalot/constants.d.ts +15 -0
  55. package/build/dex/dexalot/constants.js +22 -0
  56. package/build/dex/dexalot/constants.js.map +1 -0
  57. package/build/dex/dexalot/dexalot.d.ts +69 -0
  58. package/build/dex/dexalot/dexalot.js +646 -0
  59. package/build/dex/dexalot/dexalot.js.map +1 -0
  60. package/build/dex/dexalot/rate-fetcher.d.ts +28 -0
  61. package/build/dex/dexalot/rate-fetcher.js +100 -0
  62. package/build/dex/dexalot/rate-fetcher.js.map +1 -0
  63. package/build/dex/dexalot/types.d.ts +114 -0
  64. package/build/dex/dexalot/types.js +12 -0
  65. package/build/dex/dexalot/types.js.map +1 -0
  66. package/build/dex/dexalot/validators.d.ts +5 -0
  67. package/build/dex/dexalot/validators.js +45 -0
  68. package/build/dex/dexalot/validators.js.map +1 -0
  69. package/build/dex/pancakeswap-v3/types.d.ts +14 -0
  70. package/build/dex/pancakeswap-v3/types.js +3 -0
  71. package/build/dex/pancakeswap-v3/types.js.map +1 -0
  72. package/build/dex/quickswap/camelot-v3.d.ts +6 -0
  73. package/build/dex/quickswap/camelot-v3.js +19 -0
  74. package/build/dex/quickswap/camelot-v3.js.map +1 -0
  75. package/build/dex/quickswap/zyberswap-v3.d.ts +6 -0
  76. package/build/dex/quickswap/zyberswap-v3.js +19 -0
  77. package/build/dex/quickswap/zyberswap-v3.js.map +1 -0
  78. package/build/dex/quickswap-v3.d.ts +21 -0
  79. package/build/dex/quickswap-v3.js +40 -0
  80. package/build/dex/quickswap-v3.js.map +1 -0
  81. package/build/dex/ramses-v2/config.d.ts +4 -0
  82. package/build/dex/ramses-v2/config.js +28 -0
  83. package/build/dex/ramses-v2/config.js.map +1 -0
  84. package/build/dex/ramses-v2/constants.d.ts +28 -0
  85. package/build/dex/ramses-v2/constants.js +35 -0
  86. package/build/dex/ramses-v2/constants.js.map +1 -0
  87. package/build/dex/ramses-v2/contract-math/BitMath.d.ts +4 -0
  88. package/build/dex/ramses-v2/contract-math/BitMath.js +93 -0
  89. package/build/dex/ramses-v2/contract-math/BitMath.js.map +1 -0
  90. package/build/dex/ramses-v2/contract-math/FixedPoint128.d.ts +3 -0
  91. package/build/dex/ramses-v2/contract-math/FixedPoint128.js +8 -0
  92. package/build/dex/ramses-v2/contract-math/FixedPoint128.js.map +1 -0
  93. package/build/dex/ramses-v2/contract-math/FixedPoint96.d.ts +4 -0
  94. package/build/dex/ramses-v2/contract-math/FixedPoint96.js +9 -0
  95. package/build/dex/ramses-v2/contract-math/FixedPoint96.js.map +1 -0
  96. package/build/dex/ramses-v2/contract-math/FullMath.d.ts +4 -0
  97. package/build/dex/ramses-v2/contract-math/FullMath.js +19 -0
  98. package/build/dex/ramses-v2/contract-math/FullMath.js.map +1 -0
  99. package/build/dex/ramses-v2/contract-math/LiquidityMath.d.ts +3 -0
  100. package/build/dex/ramses-v2/contract-math/LiquidityMath.js +22 -0
  101. package/build/dex/ramses-v2/contract-math/LiquidityMath.js.map +1 -0
  102. package/build/dex/ramses-v2/contract-math/Oracle.d.ts +10 -0
  103. package/build/dex/ramses-v2/contract-math/Oracle.js +133 -0
  104. package/build/dex/ramses-v2/contract-math/Oracle.js.map +1 -0
  105. package/build/dex/ramses-v2/contract-math/SqrtPriceMath.d.ts +10 -0
  106. package/build/dex/ramses-v2/contract-math/SqrtPriceMath.js +91 -0
  107. package/build/dex/ramses-v2/contract-math/SqrtPriceMath.js.map +1 -0
  108. package/build/dex/ramses-v2/contract-math/SwapMath.d.ts +8 -0
  109. package/build/dex/ramses-v2/contract-math/SwapMath.js +70 -0
  110. package/build/dex/ramses-v2/contract-math/SwapMath.js.map +1 -0
  111. package/build/dex/ramses-v2/contract-math/Tick.d.ts +7 -0
  112. package/build/dex/ramses-v2/contract-math/Tick.js +45 -0
  113. package/build/dex/ramses-v2/contract-math/Tick.js.map +1 -0
  114. package/build/dex/ramses-v2/contract-math/TickBitMap.d.ts +8 -0
  115. package/build/dex/ramses-v2/contract-math/TickBitMap.js +87 -0
  116. package/build/dex/ramses-v2/contract-math/TickBitMap.js.map +1 -0
  117. package/build/dex/ramses-v2/contract-math/TickMath.d.ts +8 -0
  118. package/build/dex/ramses-v2/contract-math/TickMath.js +162 -0
  119. package/build/dex/ramses-v2/contract-math/TickMath.js.map +1 -0
  120. package/build/dex/ramses-v2/contract-math/UnsafeMath.d.ts +3 -0
  121. package/build/dex/ramses-v2/contract-math/UnsafeMath.js +10 -0
  122. package/build/dex/ramses-v2/contract-math/UnsafeMath.js.map +1 -0
  123. package/build/dex/ramses-v2/contract-math/uniswap-v3-math.d.ts +18 -0
  124. package/build/dex/ramses-v2/contract-math/uniswap-v3-math.js +392 -0
  125. package/build/dex/ramses-v2/contract-math/uniswap-v3-math.js.map +1 -0
  126. package/build/dex/ramses-v2/contract-math/utils.d.ts +3 -0
  127. package/build/dex/ramses-v2/contract-math/utils.js +16 -0
  128. package/build/dex/ramses-v2/contract-math/utils.js.map +1 -0
  129. package/build/dex/ramses-v2/ramses-v2-pool.d.ts +42 -0
  130. package/build/dex/ramses-v2/ramses-v2-pool.js +307 -0
  131. package/build/dex/ramses-v2/ramses-v2-pool.js.map +1 -0
  132. package/build/dex/ramses-v2/ramses-v2.d.ts +61 -0
  133. package/build/dex/ramses-v2/ramses-v2.js +690 -0
  134. package/build/dex/ramses-v2/ramses-v2.js.map +1 -0
  135. package/build/dex/ramses-v2/types.d.ts +154 -0
  136. package/build/dex/ramses-v2/types.js +9 -0
  137. package/build/dex/ramses-v2/types.js.map +1 -0
  138. package/build/dex/ramses-v2/utils.d.ts +6 -0
  139. package/build/dex/ramses-v2/utils.js +71 -0
  140. package/build/dex/ramses-v2/utils.js.map +1 -0
  141. package/build/dex/sushiswap-v3/config.d.ts +4 -0
  142. package/build/dex/sushiswap-v3/config.js +132 -0
  143. package/build/dex/sushiswap-v3/config.js.map +1 -0
  144. package/build/dex/sushiswap-v3/constants.d.ts +4 -0
  145. package/build/dex/sushiswap-v3/constants.js +32 -0
  146. package/build/dex/sushiswap-v3/constants.js.map +1 -0
  147. package/build/dex/sushiswap-v3/sushiswap-v3-original.d.ts +56 -0
  148. package/build/dex/sushiswap-v3/sushiswap-v3-original.js +598 -0
  149. package/build/dex/sushiswap-v3/sushiswap-v3-original.js.map +1 -0
  150. package/build/dex/sushiswap-v3/sushiswap-v3-pool.d.ts +1 -0
  151. package/build/dex/sushiswap-v3/sushiswap-v3-pool.js +6 -0
  152. package/build/dex/sushiswap-v3/sushiswap-v3-pool.js.map +1 -0
  153. package/build/dex/sushiswap-v3/sushiswap-v3.d.ts +21 -0
  154. package/build/dex/sushiswap-v3/sushiswap-v3.js +58 -0
  155. package/build/dex/sushiswap-v3/sushiswap-v3.js.map +1 -0
  156. package/build/dex/sushiswap-v3/token.d.ts +6 -0
  157. package/build/dex/sushiswap-v3/token.js +23 -0
  158. package/build/dex/sushiswap-v3/token.js.map +1 -0
  159. package/build/dex/sushiswap-v3/types.d.ts +15 -0
  160. package/build/dex/sushiswap-v3/types.js +18 -0
  161. package/build/dex/sushiswap-v3/types.js.map +1 -0
  162. package/build/dex/uniswap-v3/config.js +2 -0
  163. package/build/dex/uniswap-v3/config.js.map +1 -1
  164. package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.d.ts +12 -0
  165. package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.js +23 -0
  166. package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.js.map +1 -0
  167. package/build/dex/uniswap-v3/forks/ramses-v2/ramses-v2-pool.d.ts +7 -0
  168. package/build/dex/uniswap-v3/forks/ramses-v2/ramses-v2-pool.js +87 -0
  169. package/build/dex/uniswap-v3/forks/ramses-v2/ramses-v2-pool.js.map +1 -0
  170. package/build/dex/uniswap-v3/types.d.ts +2 -0
  171. package/build/dex/uniswap-v3/types.js.map +1 -1
  172. package/build/dex/uniswap-v3/uniswap-v3-pool.d.ts +5 -4
  173. package/build/dex/uniswap-v3/uniswap-v3-pool.js.map +1 -1
  174. package/build/dex/uniswap-v3/uniswap-v3.js +5 -1
  175. package/build/dex/uniswap-v3/uniswap-v3.js.map +1 -1
  176. package/build/dex/woo-fi/config.d.ts +4 -0
  177. package/build/dex/woo-fi/config.js +141 -0
  178. package/build/dex/woo-fi/config.js.map +1 -0
  179. package/build/dex/woo-fi/constants.d.ts +5 -0
  180. package/build/dex/woo-fi/constants.js +20 -0
  181. package/build/dex/woo-fi/constants.js.map +1 -0
  182. package/build/dex/woo-fi/types.d.ts +48 -0
  183. package/build/dex/woo-fi/types.js +3 -0
  184. package/build/dex/woo-fi/types.js.map +1 -0
  185. package/build/dex/woo-fi/woo-fi-decimal-math.d.ts +14 -0
  186. package/build/dex/woo-fi/woo-fi-decimal-math.js +42 -0
  187. package/build/dex/woo-fi/woo-fi-decimal-math.js.map +1 -0
  188. package/build/dex/woo-fi/woo-fi-math.d.ts +31 -0
  189. package/build/dex/woo-fi/woo-fi-math.js +300 -0
  190. package/build/dex/woo-fi/woo-fi-math.js.map +1 -0
  191. package/build/dex/woo-fi/woo-fi.d.ts +65 -0
  192. package/build/dex/woo-fi/woo-fi.js +480 -0
  193. package/build/dex/woo-fi/woo-fi.js.map +1 -0
  194. package/package.json +1 -1
  195. package/src/abi/ramses-v2/RamsesV2Pool.abi.json +1580 -0
  196. package/src/dex/uniswap-v3/config.ts +2 -0
  197. package/src/dex/uniswap-v3/forks/ramses-v2/ramses-v2-pool.ts +105 -0
  198. package/src/dex/uniswap-v3/types.ts +2 -0
  199. package/src/dex/uniswap-v3/uniswap-v3-pool.ts +3 -3
  200. package/src/dex/uniswap-v3/uniswap-v3.ts +23 -18
@@ -0,0 +1,887 @@
1
+ [
2
+ {
3
+ "name": "AddressSet",
4
+ "type": "event",
5
+ "inputs": [
6
+ {
7
+ "name": "name",
8
+ "type": "string",
9
+ "indexed": true,
10
+ "internalType": "string"
11
+ },
12
+ {
13
+ "name": "actionName",
14
+ "type": "string",
15
+ "indexed": false,
16
+ "internalType": "string"
17
+ },
18
+ {
19
+ "name": "newAddress",
20
+ "type": "address",
21
+ "indexed": false,
22
+ "internalType": "address"
23
+ }
24
+ ],
25
+ "anonymous": false
26
+ },
27
+ {
28
+ "name": "ExpiryUpdated",
29
+ "type": "event",
30
+ "inputs": [
31
+ {
32
+ "name": "nonceAndMeta",
33
+ "type": "uint256",
34
+ "indexed": false,
35
+ "internalType": "uint256"
36
+ },
37
+ {
38
+ "name": "newExpiry",
39
+ "type": "uint256",
40
+ "indexed": false,
41
+ "internalType": "uint256"
42
+ }
43
+ ],
44
+ "anonymous": false
45
+ },
46
+ {
47
+ "name": "Initialized",
48
+ "type": "event",
49
+ "inputs": [
50
+ {
51
+ "name": "version",
52
+ "type": "uint8",
53
+ "indexed": false,
54
+ "internalType": "uint8"
55
+ }
56
+ ],
57
+ "anonymous": false
58
+ },
59
+ {
60
+ "name": "Paused",
61
+ "type": "event",
62
+ "inputs": [
63
+ {
64
+ "name": "account",
65
+ "type": "address",
66
+ "indexed": false,
67
+ "internalType": "address"
68
+ }
69
+ ],
70
+ "anonymous": false
71
+ },
72
+ {
73
+ "name": "RebalancerWithdraw",
74
+ "type": "event",
75
+ "inputs": [
76
+ {
77
+ "name": "asset",
78
+ "type": "address",
79
+ "indexed": false,
80
+ "internalType": "address"
81
+ },
82
+ {
83
+ "name": "amount",
84
+ "type": "uint256",
85
+ "indexed": false,
86
+ "internalType": "uint256"
87
+ }
88
+ ],
89
+ "anonymous": false
90
+ },
91
+ {
92
+ "name": "RoleAdminChanged",
93
+ "type": "event",
94
+ "inputs": [
95
+ {
96
+ "name": "role",
97
+ "type": "bytes32",
98
+ "indexed": true,
99
+ "internalType": "bytes32"
100
+ },
101
+ {
102
+ "name": "previousAdminRole",
103
+ "type": "bytes32",
104
+ "indexed": true,
105
+ "internalType": "bytes32"
106
+ },
107
+ {
108
+ "name": "newAdminRole",
109
+ "type": "bytes32",
110
+ "indexed": true,
111
+ "internalType": "bytes32"
112
+ }
113
+ ],
114
+ "anonymous": false
115
+ },
116
+ {
117
+ "name": "RoleGranted",
118
+ "type": "event",
119
+ "inputs": [
120
+ {
121
+ "name": "role",
122
+ "type": "bytes32",
123
+ "indexed": true,
124
+ "internalType": "bytes32"
125
+ },
126
+ {
127
+ "name": "account",
128
+ "type": "address",
129
+ "indexed": true,
130
+ "internalType": "address"
131
+ },
132
+ {
133
+ "name": "sender",
134
+ "type": "address",
135
+ "indexed": true,
136
+ "internalType": "address"
137
+ }
138
+ ],
139
+ "anonymous": false
140
+ },
141
+ {
142
+ "name": "RoleRevoked",
143
+ "type": "event",
144
+ "inputs": [
145
+ {
146
+ "name": "role",
147
+ "type": "bytes32",
148
+ "indexed": true,
149
+ "internalType": "bytes32"
150
+ },
151
+ {
152
+ "name": "account",
153
+ "type": "address",
154
+ "indexed": true,
155
+ "internalType": "address"
156
+ },
157
+ {
158
+ "name": "sender",
159
+ "type": "address",
160
+ "indexed": true,
161
+ "internalType": "address"
162
+ }
163
+ ],
164
+ "anonymous": false
165
+ },
166
+ {
167
+ "name": "RoleUpdated",
168
+ "type": "event",
169
+ "inputs": [
170
+ {
171
+ "name": "name",
172
+ "type": "string",
173
+ "indexed": true,
174
+ "internalType": "string"
175
+ },
176
+ {
177
+ "name": "actionName",
178
+ "type": "string",
179
+ "indexed": false,
180
+ "internalType": "string"
181
+ },
182
+ {
183
+ "name": "updatedRole",
184
+ "type": "bytes32",
185
+ "indexed": false,
186
+ "internalType": "bytes32"
187
+ },
188
+ {
189
+ "name": "updatedAddress",
190
+ "type": "address",
191
+ "indexed": false,
192
+ "internalType": "address"
193
+ }
194
+ ],
195
+ "anonymous": false
196
+ },
197
+ {
198
+ "name": "SlippageApplied",
199
+ "type": "event",
200
+ "inputs": [
201
+ {
202
+ "name": "nonceAndMeta",
203
+ "type": "uint256",
204
+ "indexed": false,
205
+ "internalType": "uint256"
206
+ },
207
+ {
208
+ "name": "newMakerAmount",
209
+ "type": "uint256",
210
+ "indexed": false,
211
+ "internalType": "uint256"
212
+ }
213
+ ],
214
+ "anonymous": false
215
+ },
216
+ {
217
+ "name": "SlippageToleranceUpdated",
218
+ "type": "event",
219
+ "inputs": [
220
+ {
221
+ "name": "newSlippageTolerance",
222
+ "type": "uint256",
223
+ "indexed": false,
224
+ "internalType": "uint256"
225
+ }
226
+ ],
227
+ "anonymous": false
228
+ },
229
+ {
230
+ "name": "SwapExecuted",
231
+ "type": "event",
232
+ "inputs": [
233
+ {
234
+ "name": "nonceAndMeta",
235
+ "type": "uint256",
236
+ "indexed": false,
237
+ "internalType": "uint256"
238
+ },
239
+ {
240
+ "name": "maker",
241
+ "type": "address",
242
+ "indexed": false,
243
+ "internalType": "address"
244
+ },
245
+ {
246
+ "name": "taker",
247
+ "type": "address",
248
+ "indexed": false,
249
+ "internalType": "address"
250
+ },
251
+ {
252
+ "name": "makerAsset",
253
+ "type": "address",
254
+ "indexed": false,
255
+ "internalType": "address"
256
+ },
257
+ {
258
+ "name": "takerAsset",
259
+ "type": "address",
260
+ "indexed": false,
261
+ "internalType": "address"
262
+ },
263
+ {
264
+ "name": "makerAmountReceived",
265
+ "type": "uint256",
266
+ "indexed": false,
267
+ "internalType": "uint256"
268
+ },
269
+ {
270
+ "name": "takerAmountReceived",
271
+ "type": "uint256",
272
+ "indexed": false,
273
+ "internalType": "uint256"
274
+ }
275
+ ],
276
+ "anonymous": false
277
+ },
278
+ {
279
+ "name": "SwapSignerUpdated",
280
+ "type": "event",
281
+ "inputs": [
282
+ {
283
+ "name": "newSwapSigner",
284
+ "type": "address",
285
+ "indexed": false,
286
+ "internalType": "address"
287
+ }
288
+ ],
289
+ "anonymous": false
290
+ },
291
+ {
292
+ "name": "Unpaused",
293
+ "type": "event",
294
+ "inputs": [
295
+ {
296
+ "name": "account",
297
+ "type": "address",
298
+ "indexed": false,
299
+ "internalType": "address"
300
+ }
301
+ ],
302
+ "anonymous": false
303
+ },
304
+ {
305
+ "name": "DEFAULT_ADMIN_ROLE",
306
+ "type": "function",
307
+ "inputs": [],
308
+ "outputs": [
309
+ {
310
+ "name": "",
311
+ "type": "bytes32",
312
+ "internalType": "bytes32"
313
+ }
314
+ ],
315
+ "stateMutability": "view"
316
+ },
317
+ {
318
+ "name": "REBALANCER_ADMIN_ROLE",
319
+ "type": "function",
320
+ "inputs": [],
321
+ "outputs": [
322
+ {
323
+ "name": "",
324
+ "type": "bytes32",
325
+ "internalType": "bytes32"
326
+ }
327
+ ],
328
+ "stateMutability": "view"
329
+ },
330
+ {
331
+ "name": "VERSION",
332
+ "type": "function",
333
+ "inputs": [],
334
+ "outputs": [
335
+ {
336
+ "name": "",
337
+ "type": "bytes32",
338
+ "internalType": "bytes32"
339
+ }
340
+ ],
341
+ "stateMutability": "view"
342
+ },
343
+ {
344
+ "name": "addAdmin",
345
+ "type": "function",
346
+ "inputs": [
347
+ {
348
+ "name": "_address",
349
+ "type": "address",
350
+ "internalType": "address"
351
+ }
352
+ ],
353
+ "outputs": [],
354
+ "stateMutability": "nonpayable"
355
+ },
356
+ {
357
+ "name": "addRebalancer",
358
+ "type": "function",
359
+ "inputs": [
360
+ {
361
+ "name": "_address",
362
+ "type": "address",
363
+ "internalType": "address"
364
+ }
365
+ ],
366
+ "outputs": [],
367
+ "stateMutability": "nonpayable"
368
+ },
369
+ {
370
+ "name": "batchClaimBalance",
371
+ "type": "function",
372
+ "inputs": [
373
+ {
374
+ "name": "_assets",
375
+ "type": "address[]",
376
+ "internalType": "address[]"
377
+ },
378
+ {
379
+ "name": "_amounts",
380
+ "type": "uint256[]",
381
+ "internalType": "uint256[]"
382
+ }
383
+ ],
384
+ "outputs": [],
385
+ "stateMutability": "nonpayable"
386
+ },
387
+ {
388
+ "name": "claimBalance",
389
+ "type": "function",
390
+ "inputs": [
391
+ {
392
+ "name": "_asset",
393
+ "type": "address",
394
+ "internalType": "address"
395
+ },
396
+ {
397
+ "name": "_amount",
398
+ "type": "uint256",
399
+ "internalType": "uint256"
400
+ }
401
+ ],
402
+ "outputs": [],
403
+ "stateMutability": "nonpayable"
404
+ },
405
+ {
406
+ "name": "getRoleAdmin",
407
+ "type": "function",
408
+ "inputs": [
409
+ {
410
+ "name": "role",
411
+ "type": "bytes32",
412
+ "internalType": "bytes32"
413
+ }
414
+ ],
415
+ "outputs": [
416
+ {
417
+ "name": "",
418
+ "type": "bytes32",
419
+ "internalType": "bytes32"
420
+ }
421
+ ],
422
+ "stateMutability": "view"
423
+ },
424
+ {
425
+ "name": "getRoleMember",
426
+ "type": "function",
427
+ "inputs": [
428
+ {
429
+ "name": "role",
430
+ "type": "bytes32",
431
+ "internalType": "bytes32"
432
+ },
433
+ {
434
+ "name": "index",
435
+ "type": "uint256",
436
+ "internalType": "uint256"
437
+ }
438
+ ],
439
+ "outputs": [
440
+ {
441
+ "name": "",
442
+ "type": "address",
443
+ "internalType": "address"
444
+ }
445
+ ],
446
+ "stateMutability": "view"
447
+ },
448
+ {
449
+ "name": "getRoleMemberCount",
450
+ "type": "function",
451
+ "inputs": [
452
+ {
453
+ "name": "role",
454
+ "type": "bytes32",
455
+ "internalType": "bytes32"
456
+ }
457
+ ],
458
+ "outputs": [
459
+ {
460
+ "name": "",
461
+ "type": "uint256",
462
+ "internalType": "uint256"
463
+ }
464
+ ],
465
+ "stateMutability": "view"
466
+ },
467
+ {
468
+ "name": "grantRole",
469
+ "type": "function",
470
+ "inputs": [
471
+ {
472
+ "name": "role",
473
+ "type": "bytes32",
474
+ "internalType": "bytes32"
475
+ },
476
+ {
477
+ "name": "account",
478
+ "type": "address",
479
+ "internalType": "address"
480
+ }
481
+ ],
482
+ "outputs": [],
483
+ "stateMutability": "nonpayable"
484
+ },
485
+ {
486
+ "name": "hasRole",
487
+ "type": "function",
488
+ "inputs": [
489
+ {
490
+ "name": "role",
491
+ "type": "bytes32",
492
+ "internalType": "bytes32"
493
+ },
494
+ {
495
+ "name": "account",
496
+ "type": "address",
497
+ "internalType": "address"
498
+ }
499
+ ],
500
+ "outputs": [
501
+ {
502
+ "name": "",
503
+ "type": "bool",
504
+ "internalType": "bool"
505
+ }
506
+ ],
507
+ "stateMutability": "view"
508
+ },
509
+ {
510
+ "name": "initialize",
511
+ "type": "function",
512
+ "inputs": [
513
+ {
514
+ "name": "_swapSigner",
515
+ "type": "address",
516
+ "internalType": "address"
517
+ }
518
+ ],
519
+ "outputs": [],
520
+ "stateMutability": "nonpayable"
521
+ },
522
+ {
523
+ "name": "isAdmin",
524
+ "type": "function",
525
+ "inputs": [
526
+ {
527
+ "name": "_address",
528
+ "type": "address",
529
+ "internalType": "address"
530
+ }
531
+ ],
532
+ "outputs": [
533
+ {
534
+ "name": "",
535
+ "type": "bool",
536
+ "internalType": "bool"
537
+ }
538
+ ],
539
+ "stateMutability": "view"
540
+ },
541
+ {
542
+ "name": "isRebalancer",
543
+ "type": "function",
544
+ "inputs": [
545
+ {
546
+ "name": "_address",
547
+ "type": "address",
548
+ "internalType": "address"
549
+ }
550
+ ],
551
+ "outputs": [
552
+ {
553
+ "name": "",
554
+ "type": "bool",
555
+ "internalType": "bool"
556
+ }
557
+ ],
558
+ "stateMutability": "view"
559
+ },
560
+ {
561
+ "name": "isValidSignature",
562
+ "type": "function",
563
+ "inputs": [
564
+ {
565
+ "name": "_hash",
566
+ "type": "bytes32",
567
+ "internalType": "bytes32"
568
+ },
569
+ {
570
+ "name": "_signature",
571
+ "type": "bytes",
572
+ "internalType": "bytes"
573
+ }
574
+ ],
575
+ "outputs": [
576
+ {
577
+ "name": "",
578
+ "type": "bytes4",
579
+ "internalType": "bytes4"
580
+ }
581
+ ],
582
+ "stateMutability": "view"
583
+ },
584
+ {
585
+ "name": "orderExpiryUpdated",
586
+ "type": "function",
587
+ "inputs": [
588
+ {
589
+ "name": "",
590
+ "type": "uint256",
591
+ "internalType": "uint256"
592
+ }
593
+ ],
594
+ "outputs": [
595
+ {
596
+ "name": "",
597
+ "type": "uint256",
598
+ "internalType": "uint256"
599
+ }
600
+ ],
601
+ "stateMutability": "view"
602
+ },
603
+ {
604
+ "name": "orderMakerAmountUpdated",
605
+ "type": "function",
606
+ "inputs": [
607
+ {
608
+ "name": "",
609
+ "type": "uint256",
610
+ "internalType": "uint256"
611
+ }
612
+ ],
613
+ "outputs": [
614
+ {
615
+ "name": "",
616
+ "type": "uint256",
617
+ "internalType": "uint256"
618
+ }
619
+ ],
620
+ "stateMutability": "view"
621
+ },
622
+ {
623
+ "name": "pause",
624
+ "type": "function",
625
+ "inputs": [],
626
+ "outputs": [],
627
+ "stateMutability": "nonpayable"
628
+ },
629
+ {
630
+ "name": "paused",
631
+ "type": "function",
632
+ "inputs": [],
633
+ "outputs": [
634
+ {
635
+ "name": "",
636
+ "type": "bool",
637
+ "internalType": "bool"
638
+ }
639
+ ],
640
+ "stateMutability": "view"
641
+ },
642
+ {
643
+ "name": "removeAdmin",
644
+ "type": "function",
645
+ "inputs": [
646
+ {
647
+ "name": "_address",
648
+ "type": "address",
649
+ "internalType": "address"
650
+ }
651
+ ],
652
+ "outputs": [],
653
+ "stateMutability": "nonpayable"
654
+ },
655
+ {
656
+ "name": "removeRebalancer",
657
+ "type": "function",
658
+ "inputs": [
659
+ {
660
+ "name": "_address",
661
+ "type": "address",
662
+ "internalType": "address"
663
+ }
664
+ ],
665
+ "outputs": [],
666
+ "stateMutability": "nonpayable"
667
+ },
668
+ {
669
+ "name": "renounceRole",
670
+ "type": "function",
671
+ "inputs": [
672
+ {
673
+ "name": "role",
674
+ "type": "bytes32",
675
+ "internalType": "bytes32"
676
+ },
677
+ {
678
+ "name": "account",
679
+ "type": "address",
680
+ "internalType": "address"
681
+ }
682
+ ],
683
+ "outputs": [],
684
+ "stateMutability": "nonpayable"
685
+ },
686
+ {
687
+ "name": "revokeRole",
688
+ "type": "function",
689
+ "inputs": [
690
+ {
691
+ "name": "role",
692
+ "type": "bytes32",
693
+ "internalType": "bytes32"
694
+ },
695
+ {
696
+ "name": "account",
697
+ "type": "address",
698
+ "internalType": "address"
699
+ }
700
+ ],
701
+ "outputs": [],
702
+ "stateMutability": "nonpayable"
703
+ },
704
+ {
705
+ "name": "setSlippageTolerance",
706
+ "type": "function",
707
+ "inputs": [
708
+ {
709
+ "name": "_newSlippageTolerance",
710
+ "type": "uint256",
711
+ "internalType": "uint256"
712
+ }
713
+ ],
714
+ "outputs": [],
715
+ "stateMutability": "nonpayable"
716
+ },
717
+ {
718
+ "name": "setSwapSigner",
719
+ "type": "function",
720
+ "inputs": [
721
+ {
722
+ "name": "_swapSigner",
723
+ "type": "address",
724
+ "internalType": "address"
725
+ }
726
+ ],
727
+ "outputs": [],
728
+ "stateMutability": "nonpayable"
729
+ },
730
+ {
731
+ "name": "simpleSwap",
732
+ "type": "function",
733
+ "inputs": [
734
+ {
735
+ "name": "_order",
736
+ "type": "tuple",
737
+ "components": [
738
+ {
739
+ "name": "nonceAndMeta",
740
+ "type": "uint256",
741
+ "internalType": "uint256"
742
+ },
743
+ {
744
+ "name": "expiry",
745
+ "type": "uint128",
746
+ "internalType": "uint128"
747
+ },
748
+ {
749
+ "name": "makerAsset",
750
+ "type": "address",
751
+ "internalType": "address"
752
+ },
753
+ {
754
+ "name": "takerAsset",
755
+ "type": "address",
756
+ "internalType": "address"
757
+ },
758
+ {
759
+ "name": "maker",
760
+ "type": "address",
761
+ "internalType": "address"
762
+ },
763
+ {
764
+ "name": "taker",
765
+ "type": "address",
766
+ "internalType": "address"
767
+ },
768
+ {
769
+ "name": "makerAmount",
770
+ "type": "uint256",
771
+ "internalType": "uint256"
772
+ },
773
+ {
774
+ "name": "takerAmount",
775
+ "type": "uint256",
776
+ "internalType": "uint256"
777
+ }
778
+ ],
779
+ "internalType": "struct MainnetRFQ.Order"
780
+ },
781
+ {
782
+ "name": "_signature",
783
+ "type": "bytes",
784
+ "internalType": "bytes"
785
+ }
786
+ ],
787
+ "outputs": [],
788
+ "stateMutability": "payable"
789
+ },
790
+ {
791
+ "name": "slippageTolerance",
792
+ "type": "function",
793
+ "inputs": [],
794
+ "outputs": [
795
+ {
796
+ "name": "",
797
+ "type": "uint256",
798
+ "internalType": "uint256"
799
+ }
800
+ ],
801
+ "stateMutability": "view"
802
+ },
803
+ {
804
+ "name": "supportsInterface",
805
+ "type": "function",
806
+ "inputs": [
807
+ {
808
+ "name": "interfaceId",
809
+ "type": "bytes4",
810
+ "internalType": "bytes4"
811
+ }
812
+ ],
813
+ "outputs": [
814
+ {
815
+ "name": "",
816
+ "type": "bool",
817
+ "internalType": "bool"
818
+ }
819
+ ],
820
+ "stateMutability": "view"
821
+ },
822
+ {
823
+ "name": "swapSigner",
824
+ "type": "function",
825
+ "inputs": [],
826
+ "outputs": [
827
+ {
828
+ "name": "",
829
+ "type": "address",
830
+ "internalType": "address"
831
+ }
832
+ ],
833
+ "stateMutability": "view"
834
+ },
835
+ {
836
+ "name": "unpause",
837
+ "type": "function",
838
+ "inputs": [],
839
+ "outputs": [],
840
+ "stateMutability": "nonpayable"
841
+ },
842
+ {
843
+ "name": "updateOrderExpiry",
844
+ "type": "function",
845
+ "inputs": [
846
+ {
847
+ "name": "_nonceAndMeta",
848
+ "type": "uint256",
849
+ "internalType": "uint256"
850
+ },
851
+ {
852
+ "name": "_newExpiry",
853
+ "type": "uint256",
854
+ "internalType": "uint256"
855
+ }
856
+ ],
857
+ "outputs": [],
858
+ "stateMutability": "nonpayable"
859
+ },
860
+ {
861
+ "name": "updateOrderMakerAmount",
862
+ "type": "function",
863
+ "inputs": [
864
+ {
865
+ "name": "_nonceAndMeta",
866
+ "type": "uint256",
867
+ "internalType": "uint256"
868
+ },
869
+ {
870
+ "name": "_newMakerAmount",
871
+ "type": "uint256",
872
+ "internalType": "uint256"
873
+ },
874
+ {
875
+ "name": "_oldMakerAmount",
876
+ "type": "uint256",
877
+ "internalType": "uint256"
878
+ }
879
+ ],
880
+ "outputs": [],
881
+ "stateMutability": "nonpayable"
882
+ },
883
+ {
884
+ "type": "receive",
885
+ "stateMutability": "payable"
886
+ }
887
+ ]