@underscore-finance/sdk 0.0.3 → 0.0.4
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.
- package/dist/contracts/AddyRegistry.d.ts.map +1 -1
- package/dist/contracts/AddyRegistry.js +318 -318
- package/dist/contracts/AgentFactory.d.ts.map +1 -1
- package/dist/contracts/AgentFactory.js +699 -699
- package/dist/contracts/AgentTemplate.d.ts.map +1 -1
- package/dist/contracts/AgentTemplate.js +1 -1
- package/dist/contracts/ChainlinkFeeds.d.ts.map +1 -1
- package/dist/contracts/ChainlinkFeeds.js +399 -399
- package/dist/contracts/LegoAaveV3.d.ts.map +1 -1
- package/dist/contracts/LegoAaveV3.js +643 -643
- package/dist/contracts/LegoAeroClassic.d.ts.map +1 -1
- package/dist/contracts/LegoAeroClassic.js +749 -749
- package/dist/contracts/LegoAeroSlipstream.d.ts.map +1 -1
- package/dist/contracts/LegoAeroSlipstream.js +820 -820
- package/dist/contracts/LegoCompoundV3.d.ts.map +1 -1
- package/dist/contracts/LegoCompoundV3.js +664 -664
- package/dist/contracts/LegoCurve.d.ts.map +1 -1
- package/dist/contracts/LegoCurve.js +732 -732
- package/dist/contracts/LegoEuler.d.ts.map +1 -1
- package/dist/contracts/LegoEuler.js +674 -674
- package/dist/contracts/LegoFluid.d.ts.map +1 -1
- package/dist/contracts/LegoFluid.js +629 -629
- package/dist/contracts/LegoHelper.d.ts +22 -16
- package/dist/contracts/LegoHelper.d.ts.map +1 -1
- package/dist/contracts/LegoHelper.js +1057 -1057
- package/dist/contracts/LegoMoonwell.d.ts.map +1 -1
- package/dist/contracts/LegoMoonwell.js +649 -649
- package/dist/contracts/LegoMorpho.d.ts.map +1 -1
- package/dist/contracts/LegoMorpho.js +674 -674
- package/dist/contracts/LegoRegistry.d.ts.map +1 -1
- package/dist/contracts/LegoRegistry.js +406 -406
- package/dist/contracts/LegoSky.d.ts.map +1 -1
- package/dist/contracts/LegoSky.js +557 -557
- package/dist/contracts/LegoUniswapV2.d.ts.map +1 -1
- package/dist/contracts/LegoUniswapV2.js +749 -749
- package/dist/contracts/LegoUniswapV3.d.ts.map +1 -1
- package/dist/contracts/LegoUniswapV3.js +849 -849
- package/dist/contracts/OracleRegistry.d.ts.map +1 -1
- package/dist/contracts/OracleRegistry.js +585 -585
- package/dist/contracts/PriceSheets.d.ts +18 -15
- package/dist/contracts/PriceSheets.d.ts.map +1 -1
- package/dist/contracts/PriceSheets.js +718 -718
- package/dist/contracts/PythFeeds.d.ts.map +1 -1
- package/dist/contracts/PythFeeds.js +352 -352
- package/dist/contracts/StorkFeeds.d.ts.map +1 -1
- package/dist/contracts/StorkFeeds.js +352 -352
- package/dist/contracts/WalletConfig.d.ts +1 -1
- package/dist/contracts/WalletConfig.d.ts.map +1 -1
- package/dist/contracts/WalletConfig.js +1 -1
- package/dist/contracts/WalletFunds.d.ts.map +1 -1
- package/dist/contracts/WalletFunds.js +1 -1
- package/dist/contracts/sdk.d.ts +1 -1
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/package.json +1 -1
|
@@ -5,1270 +5,1270 @@
|
|
|
5
5
|
import { singleQuery, mutate } from '@dappql/async';
|
|
6
6
|
export const abi = [
|
|
7
7
|
{
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
anonymous: false,
|
|
9
|
+
inputs: [
|
|
10
10
|
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
indexed: true,
|
|
12
|
+
name: 'sender',
|
|
13
|
+
type: 'address',
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
indexed: true,
|
|
17
|
+
name: 'tokenA',
|
|
18
|
+
type: 'address',
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
indexed: true,
|
|
22
|
+
name: 'tokenB',
|
|
23
|
+
type: 'address',
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
indexed: false,
|
|
27
|
+
name: 'amountA',
|
|
28
|
+
type: 'uint256',
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
indexed: false,
|
|
32
|
+
name: 'amountB',
|
|
33
|
+
type: 'uint256',
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
indexed: false,
|
|
37
|
+
name: 'lpAmountReceived',
|
|
38
|
+
type: 'uint256',
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
indexed: false,
|
|
42
|
+
name: 'usdValue',
|
|
43
|
+
type: 'uint256',
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
46
|
+
indexed: false,
|
|
47
|
+
name: 'recipient',
|
|
48
|
+
type: 'address',
|
|
49
|
+
},
|
|
50
50
|
],
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
name: 'UniswapV2LiquidityAdded',
|
|
52
|
+
type: 'event',
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
anonymous: false,
|
|
56
|
+
inputs: [
|
|
57
57
|
{
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
indexed: false,
|
|
59
|
+
name: 'sender',
|
|
60
|
+
type: 'address',
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
indexed: true,
|
|
64
|
+
name: 'pool',
|
|
65
|
+
type: 'address',
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
indexed: true,
|
|
69
|
+
name: 'tokenA',
|
|
70
|
+
type: 'address',
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
indexed: true,
|
|
74
|
+
name: 'tokenB',
|
|
75
|
+
type: 'address',
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
indexed: false,
|
|
79
|
+
name: 'amountA',
|
|
80
|
+
type: 'uint256',
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
indexed: false,
|
|
84
|
+
name: 'amountB',
|
|
85
|
+
type: 'uint256',
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
indexed: false,
|
|
89
|
+
name: 'lpToken',
|
|
90
|
+
type: 'address',
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
indexed: false,
|
|
94
|
+
name: 'lpAmountBurned',
|
|
95
|
+
type: 'uint256',
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
indexed: false,
|
|
99
|
+
name: 'usdValue',
|
|
100
|
+
type: 'uint256',
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
103
|
+
indexed: false,
|
|
104
|
+
name: 'recipient',
|
|
105
|
+
type: 'address',
|
|
106
|
+
},
|
|
107
107
|
],
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
name: 'UniswapV2LiquidityRemoved',
|
|
109
|
+
type: 'event',
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
anonymous: false,
|
|
113
|
+
inputs: [
|
|
114
114
|
{
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
indexed: true,
|
|
116
|
+
name: 'sender',
|
|
117
|
+
type: 'address',
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
indexed: true,
|
|
121
|
+
name: 'tokenIn',
|
|
122
|
+
type: 'address',
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
indexed: true,
|
|
126
|
+
name: 'tokenOut',
|
|
127
|
+
type: 'address',
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
indexed: false,
|
|
131
|
+
name: 'amountIn',
|
|
132
|
+
type: 'uint256',
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
indexed: false,
|
|
136
|
+
name: 'amountOut',
|
|
137
|
+
type: 'uint256',
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
indexed: false,
|
|
141
|
+
name: 'usdValue',
|
|
142
|
+
type: 'uint256',
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
indexed: false,
|
|
146
|
+
name: 'numTokens',
|
|
147
|
+
type: 'uint256',
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
150
|
+
indexed: false,
|
|
151
|
+
name: 'recipient',
|
|
152
|
+
type: 'address',
|
|
153
|
+
},
|
|
154
154
|
],
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
name: 'UniswapV2Swap',
|
|
156
|
+
type: 'event',
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
anonymous: false,
|
|
160
|
+
inputs: [
|
|
161
161
|
{
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}
|
|
162
|
+
indexed: true,
|
|
163
|
+
name: 'pool',
|
|
164
|
+
type: 'address',
|
|
165
|
+
},
|
|
166
166
|
],
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
name: 'UniV2WethCoreRouterPoolSet',
|
|
168
|
+
type: 'event',
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
anonymous: false,
|
|
172
|
+
inputs: [
|
|
173
173
|
{
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
indexed: true,
|
|
175
|
+
name: 'asset',
|
|
176
|
+
type: 'address',
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
indexed: true,
|
|
180
|
+
name: 'recipient',
|
|
181
|
+
type: 'address',
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
184
|
+
indexed: false,
|
|
185
|
+
name: 'amount',
|
|
186
|
+
type: 'uint256',
|
|
187
|
+
},
|
|
188
188
|
],
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
name: 'UniV2FundsRecovered',
|
|
190
|
+
type: 'event',
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
anonymous: false,
|
|
194
|
+
inputs: [
|
|
195
195
|
{
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
196
|
+
indexed: false,
|
|
197
|
+
name: 'legoId',
|
|
198
|
+
type: 'uint256',
|
|
199
|
+
},
|
|
200
200
|
],
|
|
201
|
-
|
|
202
|
-
|
|
201
|
+
name: 'UniswapV2LegoIdSet',
|
|
202
|
+
type: 'event',
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
anonymous: false,
|
|
206
|
+
inputs: [
|
|
207
207
|
{
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}
|
|
208
|
+
indexed: false,
|
|
209
|
+
name: 'isActivated',
|
|
210
|
+
type: 'bool',
|
|
211
|
+
},
|
|
212
212
|
],
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
name: 'UniswapV2Activated',
|
|
214
|
+
type: 'event',
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
anonymous: false,
|
|
218
|
+
inputs: [
|
|
219
219
|
{
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}
|
|
220
|
+
indexed: true,
|
|
221
|
+
name: 'addr',
|
|
222
|
+
type: 'address',
|
|
223
|
+
},
|
|
224
224
|
],
|
|
225
|
-
|
|
226
|
-
|
|
225
|
+
name: 'LocalGovernorSet',
|
|
226
|
+
type: 'event',
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
|
-
|
|
229
|
+
inputs: [
|
|
230
230
|
{
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}
|
|
231
|
+
name: '_address',
|
|
232
|
+
type: 'address',
|
|
233
|
+
},
|
|
234
234
|
],
|
|
235
|
-
|
|
236
|
-
|
|
235
|
+
name: 'isGovernor',
|
|
236
|
+
outputs: [
|
|
237
237
|
{
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
}
|
|
238
|
+
name: '',
|
|
239
|
+
type: 'bool',
|
|
240
|
+
},
|
|
241
241
|
],
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
stateMutability: 'view',
|
|
243
|
+
type: 'function',
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
|
-
|
|
246
|
+
inputs: [
|
|
247
247
|
{
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}
|
|
248
|
+
name: '_newGovernor',
|
|
249
|
+
type: 'address',
|
|
250
|
+
},
|
|
251
251
|
],
|
|
252
|
-
|
|
253
|
-
|
|
252
|
+
name: 'isValidLocalGovernor',
|
|
253
|
+
outputs: [
|
|
254
254
|
{
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
}
|
|
255
|
+
name: '',
|
|
256
|
+
type: 'bool',
|
|
257
|
+
},
|
|
258
258
|
],
|
|
259
|
-
|
|
260
|
-
|
|
259
|
+
stateMutability: 'view',
|
|
260
|
+
type: 'function',
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
|
-
|
|
263
|
+
inputs: [
|
|
264
264
|
{
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
}
|
|
265
|
+
name: '_newGovernor',
|
|
266
|
+
type: 'address',
|
|
267
|
+
},
|
|
268
268
|
],
|
|
269
|
-
|
|
270
|
-
|
|
269
|
+
name: 'setLocalGovernor',
|
|
270
|
+
outputs: [
|
|
271
271
|
{
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}
|
|
272
|
+
name: '',
|
|
273
|
+
type: 'bool',
|
|
274
|
+
},
|
|
275
275
|
],
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
stateMutability: 'nonpayable',
|
|
277
|
+
type: 'function',
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
280
|
+
inputs: [],
|
|
281
|
+
name: 'localGovernor',
|
|
282
|
+
outputs: [
|
|
283
283
|
{
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
}
|
|
284
|
+
name: '',
|
|
285
|
+
type: 'address',
|
|
286
|
+
},
|
|
287
287
|
],
|
|
288
|
-
|
|
289
|
-
|
|
288
|
+
stateMutability: 'view',
|
|
289
|
+
type: 'function',
|
|
290
290
|
},
|
|
291
291
|
{
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
292
|
+
inputs: [],
|
|
293
|
+
name: 'getRegistries',
|
|
294
|
+
outputs: [
|
|
295
295
|
{
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
}
|
|
296
|
+
name: '',
|
|
297
|
+
type: 'address[]',
|
|
298
|
+
},
|
|
299
299
|
],
|
|
300
|
-
|
|
301
|
-
|
|
300
|
+
stateMutability: 'view',
|
|
301
|
+
type: 'function',
|
|
302
302
|
},
|
|
303
303
|
{
|
|
304
|
-
|
|
304
|
+
inputs: [
|
|
305
305
|
{
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
}
|
|
306
|
+
name: '_user',
|
|
307
|
+
type: 'address',
|
|
308
|
+
},
|
|
309
309
|
],
|
|
310
|
-
|
|
311
|
-
|
|
310
|
+
name: 'getAccessForLego',
|
|
311
|
+
outputs: [
|
|
312
312
|
{
|
|
313
|
-
|
|
314
|
-
|
|
313
|
+
name: '',
|
|
314
|
+
type: 'address',
|
|
315
315
|
},
|
|
316
316
|
{
|
|
317
|
-
|
|
318
|
-
|
|
317
|
+
name: '',
|
|
318
|
+
type: 'string',
|
|
319
319
|
},
|
|
320
320
|
{
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
}
|
|
321
|
+
name: '',
|
|
322
|
+
type: 'uint256',
|
|
323
|
+
},
|
|
324
324
|
],
|
|
325
|
-
|
|
326
|
-
|
|
325
|
+
stateMutability: 'view',
|
|
326
|
+
type: 'function',
|
|
327
327
|
},
|
|
328
328
|
{
|
|
329
|
-
|
|
329
|
+
inputs: [
|
|
330
330
|
{
|
|
331
|
-
|
|
332
|
-
|
|
331
|
+
name: '_amountIn',
|
|
332
|
+
type: 'uint256',
|
|
333
333
|
},
|
|
334
334
|
{
|
|
335
|
-
|
|
336
|
-
|
|
335
|
+
name: '_minAmountOut',
|
|
336
|
+
type: 'uint256',
|
|
337
337
|
},
|
|
338
338
|
{
|
|
339
|
-
|
|
340
|
-
|
|
339
|
+
name: '_tokenPath',
|
|
340
|
+
type: 'address[]',
|
|
341
341
|
},
|
|
342
342
|
{
|
|
343
|
-
|
|
344
|
-
|
|
343
|
+
name: '_poolPath',
|
|
344
|
+
type: 'address[]',
|
|
345
345
|
},
|
|
346
346
|
{
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
}
|
|
347
|
+
name: '_recipient',
|
|
348
|
+
type: 'address',
|
|
349
|
+
},
|
|
350
350
|
],
|
|
351
|
-
|
|
352
|
-
|
|
351
|
+
name: 'swapTokens',
|
|
352
|
+
outputs: [
|
|
353
353
|
{
|
|
354
|
-
|
|
355
|
-
|
|
354
|
+
name: '',
|
|
355
|
+
type: 'uint256',
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
|
-
|
|
359
|
-
|
|
358
|
+
name: '',
|
|
359
|
+
type: 'uint256',
|
|
360
360
|
},
|
|
361
361
|
{
|
|
362
|
-
|
|
363
|
-
|
|
362
|
+
name: '',
|
|
363
|
+
type: 'uint256',
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
}
|
|
366
|
+
name: '',
|
|
367
|
+
type: 'uint256',
|
|
368
|
+
},
|
|
369
369
|
],
|
|
370
|
-
|
|
371
|
-
|
|
370
|
+
stateMutability: 'nonpayable',
|
|
371
|
+
type: 'function',
|
|
372
372
|
},
|
|
373
373
|
{
|
|
374
|
-
|
|
374
|
+
inputs: [
|
|
375
375
|
{
|
|
376
|
-
|
|
377
|
-
|
|
376
|
+
name: '_amountIn',
|
|
377
|
+
type: 'uint256',
|
|
378
378
|
},
|
|
379
379
|
{
|
|
380
|
-
|
|
381
|
-
|
|
380
|
+
name: '_minAmountOut',
|
|
381
|
+
type: 'uint256',
|
|
382
382
|
},
|
|
383
383
|
{
|
|
384
|
-
|
|
385
|
-
|
|
384
|
+
name: '_tokenPath',
|
|
385
|
+
type: 'address[]',
|
|
386
386
|
},
|
|
387
387
|
{
|
|
388
|
-
|
|
389
|
-
|
|
388
|
+
name: '_poolPath',
|
|
389
|
+
type: 'address[]',
|
|
390
390
|
},
|
|
391
391
|
{
|
|
392
|
-
|
|
393
|
-
|
|
392
|
+
name: '_recipient',
|
|
393
|
+
type: 'address',
|
|
394
394
|
},
|
|
395
395
|
{
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
}
|
|
396
|
+
name: '_oracleRegistry',
|
|
397
|
+
type: 'address',
|
|
398
|
+
},
|
|
399
399
|
],
|
|
400
|
-
|
|
401
|
-
|
|
400
|
+
name: 'swapTokens',
|
|
401
|
+
outputs: [
|
|
402
402
|
{
|
|
403
|
-
|
|
404
|
-
|
|
403
|
+
name: '',
|
|
404
|
+
type: 'uint256',
|
|
405
405
|
},
|
|
406
406
|
{
|
|
407
|
-
|
|
408
|
-
|
|
407
|
+
name: '',
|
|
408
|
+
type: 'uint256',
|
|
409
409
|
},
|
|
410
410
|
{
|
|
411
|
-
|
|
412
|
-
|
|
411
|
+
name: '',
|
|
412
|
+
type: 'uint256',
|
|
413
413
|
},
|
|
414
414
|
{
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
}
|
|
415
|
+
name: '',
|
|
416
|
+
type: 'uint256',
|
|
417
|
+
},
|
|
418
418
|
],
|
|
419
|
-
|
|
420
|
-
|
|
419
|
+
stateMutability: 'nonpayable',
|
|
420
|
+
type: 'function',
|
|
421
421
|
},
|
|
422
422
|
{
|
|
423
|
-
|
|
423
|
+
inputs: [
|
|
424
424
|
{
|
|
425
|
-
|
|
426
|
-
|
|
425
|
+
name: '_nftTokenId',
|
|
426
|
+
type: 'uint256',
|
|
427
427
|
},
|
|
428
428
|
{
|
|
429
|
-
|
|
430
|
-
|
|
429
|
+
name: '_pool',
|
|
430
|
+
type: 'address',
|
|
431
431
|
},
|
|
432
432
|
{
|
|
433
|
-
|
|
434
|
-
|
|
433
|
+
name: '_tokenA',
|
|
434
|
+
type: 'address',
|
|
435
435
|
},
|
|
436
436
|
{
|
|
437
|
-
|
|
438
|
-
|
|
437
|
+
name: '_tokenB',
|
|
438
|
+
type: 'address',
|
|
439
439
|
},
|
|
440
440
|
{
|
|
441
|
-
|
|
442
|
-
|
|
441
|
+
name: '_tickLower',
|
|
442
|
+
type: 'int24',
|
|
443
443
|
},
|
|
444
444
|
{
|
|
445
|
-
|
|
446
|
-
|
|
445
|
+
name: '_tickUpper',
|
|
446
|
+
type: 'int24',
|
|
447
447
|
},
|
|
448
448
|
{
|
|
449
|
-
|
|
450
|
-
|
|
449
|
+
name: '_amountA',
|
|
450
|
+
type: 'uint256',
|
|
451
451
|
},
|
|
452
452
|
{
|
|
453
|
-
|
|
454
|
-
|
|
453
|
+
name: '_amountB',
|
|
454
|
+
type: 'uint256',
|
|
455
455
|
},
|
|
456
456
|
{
|
|
457
|
-
|
|
458
|
-
|
|
457
|
+
name: '_minAmountA',
|
|
458
|
+
type: 'uint256',
|
|
459
459
|
},
|
|
460
460
|
{
|
|
461
|
-
|
|
462
|
-
|
|
461
|
+
name: '_minAmountB',
|
|
462
|
+
type: 'uint256',
|
|
463
463
|
},
|
|
464
464
|
{
|
|
465
|
-
|
|
466
|
-
|
|
465
|
+
name: '_minLpAmount',
|
|
466
|
+
type: 'uint256',
|
|
467
467
|
},
|
|
468
468
|
{
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
}
|
|
469
|
+
name: '_recipient',
|
|
470
|
+
type: 'address',
|
|
471
|
+
},
|
|
472
472
|
],
|
|
473
|
-
|
|
474
|
-
|
|
473
|
+
name: 'addLiquidity',
|
|
474
|
+
outputs: [
|
|
475
475
|
{
|
|
476
|
-
|
|
477
|
-
|
|
476
|
+
name: '',
|
|
477
|
+
type: 'uint256',
|
|
478
478
|
},
|
|
479
479
|
{
|
|
480
|
-
|
|
481
|
-
|
|
480
|
+
name: '',
|
|
481
|
+
type: 'uint256',
|
|
482
482
|
},
|
|
483
483
|
{
|
|
484
|
-
|
|
485
|
-
|
|
484
|
+
name: '',
|
|
485
|
+
type: 'uint256',
|
|
486
486
|
},
|
|
487
487
|
{
|
|
488
|
-
|
|
489
|
-
|
|
488
|
+
name: '',
|
|
489
|
+
type: 'uint256',
|
|
490
490
|
},
|
|
491
491
|
{
|
|
492
|
-
|
|
493
|
-
|
|
492
|
+
name: '',
|
|
493
|
+
type: 'uint256',
|
|
494
494
|
},
|
|
495
495
|
{
|
|
496
|
-
|
|
497
|
-
|
|
496
|
+
name: '',
|
|
497
|
+
type: 'uint256',
|
|
498
498
|
},
|
|
499
499
|
{
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
}
|
|
500
|
+
name: '',
|
|
501
|
+
type: 'uint256',
|
|
502
|
+
},
|
|
503
503
|
],
|
|
504
|
-
|
|
505
|
-
|
|
504
|
+
stateMutability: 'nonpayable',
|
|
505
|
+
type: 'function',
|
|
506
506
|
},
|
|
507
507
|
{
|
|
508
|
-
|
|
508
|
+
inputs: [
|
|
509
509
|
{
|
|
510
|
-
|
|
511
|
-
|
|
510
|
+
name: '_nftTokenId',
|
|
511
|
+
type: 'uint256',
|
|
512
512
|
},
|
|
513
513
|
{
|
|
514
|
-
|
|
515
|
-
|
|
514
|
+
name: '_pool',
|
|
515
|
+
type: 'address',
|
|
516
516
|
},
|
|
517
517
|
{
|
|
518
|
-
|
|
519
|
-
|
|
518
|
+
name: '_tokenA',
|
|
519
|
+
type: 'address',
|
|
520
520
|
},
|
|
521
521
|
{
|
|
522
|
-
|
|
523
|
-
|
|
522
|
+
name: '_tokenB',
|
|
523
|
+
type: 'address',
|
|
524
524
|
},
|
|
525
525
|
{
|
|
526
|
-
|
|
527
|
-
|
|
526
|
+
name: '_tickLower',
|
|
527
|
+
type: 'int24',
|
|
528
528
|
},
|
|
529
529
|
{
|
|
530
|
-
|
|
531
|
-
|
|
530
|
+
name: '_tickUpper',
|
|
531
|
+
type: 'int24',
|
|
532
532
|
},
|
|
533
533
|
{
|
|
534
|
-
|
|
535
|
-
|
|
534
|
+
name: '_amountA',
|
|
535
|
+
type: 'uint256',
|
|
536
536
|
},
|
|
537
537
|
{
|
|
538
|
-
|
|
539
|
-
|
|
538
|
+
name: '_amountB',
|
|
539
|
+
type: 'uint256',
|
|
540
540
|
},
|
|
541
541
|
{
|
|
542
|
-
|
|
543
|
-
|
|
542
|
+
name: '_minAmountA',
|
|
543
|
+
type: 'uint256',
|
|
544
544
|
},
|
|
545
545
|
{
|
|
546
|
-
|
|
547
|
-
|
|
546
|
+
name: '_minAmountB',
|
|
547
|
+
type: 'uint256',
|
|
548
548
|
},
|
|
549
549
|
{
|
|
550
|
-
|
|
551
|
-
|
|
550
|
+
name: '_minLpAmount',
|
|
551
|
+
type: 'uint256',
|
|
552
552
|
},
|
|
553
553
|
{
|
|
554
|
-
|
|
555
|
-
|
|
554
|
+
name: '_recipient',
|
|
555
|
+
type: 'address',
|
|
556
556
|
},
|
|
557
557
|
{
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
}
|
|
558
|
+
name: '_oracleRegistry',
|
|
559
|
+
type: 'address',
|
|
560
|
+
},
|
|
561
561
|
],
|
|
562
|
-
|
|
563
|
-
|
|
562
|
+
name: 'addLiquidity',
|
|
563
|
+
outputs: [
|
|
564
564
|
{
|
|
565
|
-
|
|
566
|
-
|
|
565
|
+
name: '',
|
|
566
|
+
type: 'uint256',
|
|
567
567
|
},
|
|
568
568
|
{
|
|
569
|
-
|
|
570
|
-
|
|
569
|
+
name: '',
|
|
570
|
+
type: 'uint256',
|
|
571
571
|
},
|
|
572
572
|
{
|
|
573
|
-
|
|
574
|
-
|
|
573
|
+
name: '',
|
|
574
|
+
type: 'uint256',
|
|
575
575
|
},
|
|
576
576
|
{
|
|
577
|
-
|
|
578
|
-
|
|
577
|
+
name: '',
|
|
578
|
+
type: 'uint256',
|
|
579
579
|
},
|
|
580
580
|
{
|
|
581
|
-
|
|
582
|
-
|
|
581
|
+
name: '',
|
|
582
|
+
type: 'uint256',
|
|
583
583
|
},
|
|
584
584
|
{
|
|
585
|
-
|
|
586
|
-
|
|
585
|
+
name: '',
|
|
586
|
+
type: 'uint256',
|
|
587
587
|
},
|
|
588
588
|
{
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
}
|
|
589
|
+
name: '',
|
|
590
|
+
type: 'uint256',
|
|
591
|
+
},
|
|
592
592
|
],
|
|
593
|
-
|
|
594
|
-
|
|
593
|
+
stateMutability: 'nonpayable',
|
|
594
|
+
type: 'function',
|
|
595
595
|
},
|
|
596
596
|
{
|
|
597
|
-
|
|
597
|
+
inputs: [
|
|
598
598
|
{
|
|
599
|
-
|
|
600
|
-
|
|
599
|
+
name: '_nftTokenId',
|
|
600
|
+
type: 'uint256',
|
|
601
601
|
},
|
|
602
602
|
{
|
|
603
|
-
|
|
604
|
-
|
|
603
|
+
name: '_pool',
|
|
604
|
+
type: 'address',
|
|
605
605
|
},
|
|
606
606
|
{
|
|
607
|
-
|
|
608
|
-
|
|
607
|
+
name: '_tokenA',
|
|
608
|
+
type: 'address',
|
|
609
609
|
},
|
|
610
610
|
{
|
|
611
|
-
|
|
612
|
-
|
|
611
|
+
name: '_tokenB',
|
|
612
|
+
type: 'address',
|
|
613
613
|
},
|
|
614
614
|
{
|
|
615
|
-
|
|
616
|
-
|
|
615
|
+
name: '_lpToken',
|
|
616
|
+
type: 'address',
|
|
617
617
|
},
|
|
618
618
|
{
|
|
619
|
-
|
|
620
|
-
|
|
619
|
+
name: '_liqToRemove',
|
|
620
|
+
type: 'uint256',
|
|
621
621
|
},
|
|
622
622
|
{
|
|
623
|
-
|
|
624
|
-
|
|
623
|
+
name: '_minAmountA',
|
|
624
|
+
type: 'uint256',
|
|
625
625
|
},
|
|
626
626
|
{
|
|
627
|
-
|
|
628
|
-
|
|
627
|
+
name: '_minAmountB',
|
|
628
|
+
type: 'uint256',
|
|
629
629
|
},
|
|
630
630
|
{
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
}
|
|
631
|
+
name: '_recipient',
|
|
632
|
+
type: 'address',
|
|
633
|
+
},
|
|
634
634
|
],
|
|
635
|
-
|
|
636
|
-
|
|
635
|
+
name: 'removeLiquidity',
|
|
636
|
+
outputs: [
|
|
637
637
|
{
|
|
638
|
-
|
|
639
|
-
|
|
638
|
+
name: '',
|
|
639
|
+
type: 'uint256',
|
|
640
640
|
},
|
|
641
641
|
{
|
|
642
|
-
|
|
643
|
-
|
|
642
|
+
name: '',
|
|
643
|
+
type: 'uint256',
|
|
644
644
|
},
|
|
645
645
|
{
|
|
646
|
-
|
|
647
|
-
|
|
646
|
+
name: '',
|
|
647
|
+
type: 'uint256',
|
|
648
648
|
},
|
|
649
649
|
{
|
|
650
|
-
|
|
651
|
-
|
|
650
|
+
name: '',
|
|
651
|
+
type: 'uint256',
|
|
652
652
|
},
|
|
653
653
|
{
|
|
654
|
-
|
|
655
|
-
|
|
654
|
+
name: '',
|
|
655
|
+
type: 'uint256',
|
|
656
656
|
},
|
|
657
657
|
{
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
}
|
|
658
|
+
name: '',
|
|
659
|
+
type: 'bool',
|
|
660
|
+
},
|
|
661
661
|
],
|
|
662
|
-
|
|
663
|
-
|
|
662
|
+
stateMutability: 'nonpayable',
|
|
663
|
+
type: 'function',
|
|
664
664
|
},
|
|
665
665
|
{
|
|
666
|
-
|
|
666
|
+
inputs: [
|
|
667
667
|
{
|
|
668
|
-
|
|
669
|
-
|
|
668
|
+
name: '_nftTokenId',
|
|
669
|
+
type: 'uint256',
|
|
670
670
|
},
|
|
671
671
|
{
|
|
672
|
-
|
|
673
|
-
|
|
672
|
+
name: '_pool',
|
|
673
|
+
type: 'address',
|
|
674
674
|
},
|
|
675
675
|
{
|
|
676
|
-
|
|
677
|
-
|
|
676
|
+
name: '_tokenA',
|
|
677
|
+
type: 'address',
|
|
678
678
|
},
|
|
679
679
|
{
|
|
680
|
-
|
|
681
|
-
|
|
680
|
+
name: '_tokenB',
|
|
681
|
+
type: 'address',
|
|
682
682
|
},
|
|
683
683
|
{
|
|
684
|
-
|
|
685
|
-
|
|
684
|
+
name: '_lpToken',
|
|
685
|
+
type: 'address',
|
|
686
686
|
},
|
|
687
687
|
{
|
|
688
|
-
|
|
689
|
-
|
|
688
|
+
name: '_liqToRemove',
|
|
689
|
+
type: 'uint256',
|
|
690
690
|
},
|
|
691
691
|
{
|
|
692
|
-
|
|
693
|
-
|
|
692
|
+
name: '_minAmountA',
|
|
693
|
+
type: 'uint256',
|
|
694
694
|
},
|
|
695
695
|
{
|
|
696
|
-
|
|
697
|
-
|
|
696
|
+
name: '_minAmountB',
|
|
697
|
+
type: 'uint256',
|
|
698
698
|
},
|
|
699
699
|
{
|
|
700
|
-
|
|
701
|
-
|
|
700
|
+
name: '_recipient',
|
|
701
|
+
type: 'address',
|
|
702
702
|
},
|
|
703
703
|
{
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
}
|
|
704
|
+
name: '_oracleRegistry',
|
|
705
|
+
type: 'address',
|
|
706
|
+
},
|
|
707
707
|
],
|
|
708
|
-
|
|
709
|
-
|
|
708
|
+
name: 'removeLiquidity',
|
|
709
|
+
outputs: [
|
|
710
710
|
{
|
|
711
|
-
|
|
712
|
-
|
|
711
|
+
name: '',
|
|
712
|
+
type: 'uint256',
|
|
713
713
|
},
|
|
714
714
|
{
|
|
715
|
-
|
|
716
|
-
|
|
715
|
+
name: '',
|
|
716
|
+
type: 'uint256',
|
|
717
717
|
},
|
|
718
718
|
{
|
|
719
|
-
|
|
720
|
-
|
|
719
|
+
name: '',
|
|
720
|
+
type: 'uint256',
|
|
721
721
|
},
|
|
722
722
|
{
|
|
723
|
-
|
|
724
|
-
|
|
723
|
+
name: '',
|
|
724
|
+
type: 'uint256',
|
|
725
725
|
},
|
|
726
726
|
{
|
|
727
|
-
|
|
728
|
-
|
|
727
|
+
name: '',
|
|
728
|
+
type: 'uint256',
|
|
729
729
|
},
|
|
730
730
|
{
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
}
|
|
731
|
+
name: '',
|
|
732
|
+
type: 'bool',
|
|
733
|
+
},
|
|
734
734
|
],
|
|
735
|
-
|
|
736
|
-
|
|
735
|
+
stateMutability: 'nonpayable',
|
|
736
|
+
type: 'function',
|
|
737
737
|
},
|
|
738
738
|
{
|
|
739
|
-
|
|
739
|
+
inputs: [
|
|
740
740
|
{
|
|
741
|
-
|
|
742
|
-
|
|
741
|
+
name: '_user',
|
|
742
|
+
type: 'address',
|
|
743
743
|
},
|
|
744
744
|
{
|
|
745
|
-
|
|
746
|
-
|
|
745
|
+
name: '_market',
|
|
746
|
+
type: 'address',
|
|
747
747
|
},
|
|
748
748
|
{
|
|
749
|
-
|
|
750
|
-
|
|
749
|
+
name: '_rewardToken',
|
|
750
|
+
type: 'address',
|
|
751
751
|
},
|
|
752
752
|
{
|
|
753
|
-
|
|
754
|
-
|
|
753
|
+
name: '_rewardAmount',
|
|
754
|
+
type: 'uint256',
|
|
755
755
|
},
|
|
756
756
|
{
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
}
|
|
757
|
+
name: '_proof',
|
|
758
|
+
type: 'bytes32',
|
|
759
|
+
},
|
|
760
760
|
],
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
761
|
+
name: 'claimRewards',
|
|
762
|
+
outputs: [],
|
|
763
|
+
stateMutability: 'nonpayable',
|
|
764
|
+
type: 'function',
|
|
765
765
|
},
|
|
766
766
|
{
|
|
767
|
-
|
|
767
|
+
inputs: [
|
|
768
768
|
{
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
}
|
|
769
|
+
name: '_user',
|
|
770
|
+
type: 'address',
|
|
771
|
+
},
|
|
772
772
|
],
|
|
773
|
-
|
|
774
|
-
|
|
773
|
+
name: 'hasClaimableRewards',
|
|
774
|
+
outputs: [
|
|
775
775
|
{
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
}
|
|
776
|
+
name: '',
|
|
777
|
+
type: 'bool',
|
|
778
|
+
},
|
|
779
779
|
],
|
|
780
|
-
|
|
781
|
-
|
|
780
|
+
stateMutability: 'view',
|
|
781
|
+
type: 'function',
|
|
782
782
|
},
|
|
783
783
|
{
|
|
784
|
-
|
|
784
|
+
inputs: [
|
|
785
785
|
{
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
}
|
|
786
|
+
name: '_pool',
|
|
787
|
+
type: 'address',
|
|
788
|
+
},
|
|
789
789
|
],
|
|
790
|
-
|
|
791
|
-
|
|
790
|
+
name: 'getLpToken',
|
|
791
|
+
outputs: [
|
|
792
792
|
{
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
}
|
|
793
|
+
name: '',
|
|
794
|
+
type: 'address',
|
|
795
|
+
},
|
|
796
796
|
],
|
|
797
|
-
|
|
798
|
-
|
|
797
|
+
stateMutability: 'view',
|
|
798
|
+
type: 'function',
|
|
799
799
|
},
|
|
800
800
|
{
|
|
801
|
-
|
|
801
|
+
inputs: [
|
|
802
802
|
{
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
}
|
|
803
|
+
name: '_lpToken',
|
|
804
|
+
type: 'address',
|
|
805
|
+
},
|
|
806
806
|
],
|
|
807
|
-
|
|
808
|
-
|
|
807
|
+
name: 'getPoolForLpToken',
|
|
808
|
+
outputs: [
|
|
809
809
|
{
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
}
|
|
810
|
+
name: '',
|
|
811
|
+
type: 'address',
|
|
812
|
+
},
|
|
813
813
|
],
|
|
814
|
-
|
|
815
|
-
|
|
814
|
+
stateMutability: 'view',
|
|
815
|
+
type: 'function',
|
|
816
816
|
},
|
|
817
817
|
{
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
818
|
+
inputs: [],
|
|
819
|
+
name: 'getCoreRouterPool',
|
|
820
|
+
outputs: [
|
|
821
821
|
{
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
}
|
|
822
|
+
name: '',
|
|
823
|
+
type: 'address',
|
|
824
|
+
},
|
|
825
825
|
],
|
|
826
|
-
|
|
827
|
-
|
|
826
|
+
stateMutability: 'view',
|
|
827
|
+
type: 'function',
|
|
828
828
|
},
|
|
829
829
|
{
|
|
830
|
-
|
|
830
|
+
inputs: [
|
|
831
831
|
{
|
|
832
|
-
|
|
833
|
-
|
|
832
|
+
name: '_tokenA',
|
|
833
|
+
type: 'address',
|
|
834
834
|
},
|
|
835
835
|
{
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
}
|
|
836
|
+
name: '_tokenB',
|
|
837
|
+
type: 'address',
|
|
838
|
+
},
|
|
839
839
|
],
|
|
840
|
-
|
|
841
|
-
|
|
840
|
+
name: 'getDeepestLiqPool',
|
|
841
|
+
outputs: [
|
|
842
842
|
{
|
|
843
|
-
|
|
843
|
+
components: [
|
|
844
844
|
{
|
|
845
|
-
|
|
846
|
-
|
|
845
|
+
name: 'pool',
|
|
846
|
+
type: 'address',
|
|
847
847
|
},
|
|
848
848
|
{
|
|
849
|
-
|
|
850
|
-
|
|
849
|
+
name: 'fee',
|
|
850
|
+
type: 'uint256',
|
|
851
851
|
},
|
|
852
852
|
{
|
|
853
|
-
|
|
854
|
-
|
|
853
|
+
name: 'liquidity',
|
|
854
|
+
type: 'uint256',
|
|
855
855
|
},
|
|
856
856
|
{
|
|
857
|
-
|
|
858
|
-
|
|
857
|
+
name: 'numCoins',
|
|
858
|
+
type: 'uint256',
|
|
859
859
|
},
|
|
860
860
|
{
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
}
|
|
861
|
+
name: 'legoId',
|
|
862
|
+
type: 'uint256',
|
|
863
|
+
},
|
|
864
864
|
],
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
}
|
|
865
|
+
name: '',
|
|
866
|
+
type: 'tuple',
|
|
867
|
+
},
|
|
868
868
|
],
|
|
869
|
-
|
|
870
|
-
|
|
869
|
+
stateMutability: 'view',
|
|
870
|
+
type: 'function',
|
|
871
871
|
},
|
|
872
872
|
{
|
|
873
|
-
|
|
873
|
+
inputs: [
|
|
874
874
|
{
|
|
875
|
-
|
|
876
|
-
|
|
875
|
+
name: '_tokenIn',
|
|
876
|
+
type: 'address',
|
|
877
877
|
},
|
|
878
878
|
{
|
|
879
|
-
|
|
880
|
-
|
|
879
|
+
name: '_tokenOut',
|
|
880
|
+
type: 'address',
|
|
881
881
|
},
|
|
882
882
|
{
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
}
|
|
883
|
+
name: '_amountIn',
|
|
884
|
+
type: 'uint256',
|
|
885
|
+
},
|
|
886
886
|
],
|
|
887
|
-
|
|
888
|
-
|
|
887
|
+
name: 'getBestSwapAmountOut',
|
|
888
|
+
outputs: [
|
|
889
889
|
{
|
|
890
|
-
|
|
891
|
-
|
|
890
|
+
name: '',
|
|
891
|
+
type: 'address',
|
|
892
892
|
},
|
|
893
893
|
{
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
}
|
|
894
|
+
name: '',
|
|
895
|
+
type: 'uint256',
|
|
896
|
+
},
|
|
897
897
|
],
|
|
898
|
-
|
|
899
|
-
|
|
898
|
+
stateMutability: 'view',
|
|
899
|
+
type: 'function',
|
|
900
900
|
},
|
|
901
901
|
{
|
|
902
|
-
|
|
902
|
+
inputs: [
|
|
903
903
|
{
|
|
904
|
-
|
|
905
|
-
|
|
904
|
+
name: '_pool',
|
|
905
|
+
type: 'address',
|
|
906
906
|
},
|
|
907
907
|
{
|
|
908
|
-
|
|
909
|
-
|
|
908
|
+
name: '_tokenIn',
|
|
909
|
+
type: 'address',
|
|
910
910
|
},
|
|
911
911
|
{
|
|
912
|
-
|
|
913
|
-
|
|
912
|
+
name: '_tokenOut',
|
|
913
|
+
type: 'address',
|
|
914
914
|
},
|
|
915
915
|
{
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
}
|
|
916
|
+
name: '_amountIn',
|
|
917
|
+
type: 'uint256',
|
|
918
|
+
},
|
|
919
919
|
],
|
|
920
|
-
|
|
921
|
-
|
|
920
|
+
name: 'getSwapAmountOut',
|
|
921
|
+
outputs: [
|
|
922
922
|
{
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
}
|
|
923
|
+
name: '',
|
|
924
|
+
type: 'uint256',
|
|
925
|
+
},
|
|
926
926
|
],
|
|
927
|
-
|
|
928
|
-
|
|
927
|
+
stateMutability: 'view',
|
|
928
|
+
type: 'function',
|
|
929
929
|
},
|
|
930
930
|
{
|
|
931
|
-
|
|
931
|
+
inputs: [
|
|
932
932
|
{
|
|
933
|
-
|
|
934
|
-
|
|
933
|
+
name: '_tokenIn',
|
|
934
|
+
type: 'address',
|
|
935
935
|
},
|
|
936
936
|
{
|
|
937
|
-
|
|
938
|
-
|
|
937
|
+
name: '_tokenOut',
|
|
938
|
+
type: 'address',
|
|
939
939
|
},
|
|
940
940
|
{
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
}
|
|
941
|
+
name: '_amountOut',
|
|
942
|
+
type: 'uint256',
|
|
943
|
+
},
|
|
944
944
|
],
|
|
945
|
-
|
|
946
|
-
|
|
945
|
+
name: 'getBestSwapAmountIn',
|
|
946
|
+
outputs: [
|
|
947
947
|
{
|
|
948
|
-
|
|
949
|
-
|
|
948
|
+
name: '',
|
|
949
|
+
type: 'address',
|
|
950
950
|
},
|
|
951
951
|
{
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
}
|
|
952
|
+
name: '',
|
|
953
|
+
type: 'uint256',
|
|
954
|
+
},
|
|
955
955
|
],
|
|
956
|
-
|
|
957
|
-
|
|
956
|
+
stateMutability: 'view',
|
|
957
|
+
type: 'function',
|
|
958
958
|
},
|
|
959
959
|
{
|
|
960
|
-
|
|
960
|
+
inputs: [
|
|
961
961
|
{
|
|
962
|
-
|
|
963
|
-
|
|
962
|
+
name: '_pool',
|
|
963
|
+
type: 'address',
|
|
964
964
|
},
|
|
965
965
|
{
|
|
966
|
-
|
|
967
|
-
|
|
966
|
+
name: '_tokenIn',
|
|
967
|
+
type: 'address',
|
|
968
968
|
},
|
|
969
969
|
{
|
|
970
|
-
|
|
971
|
-
|
|
970
|
+
name: '_tokenOut',
|
|
971
|
+
type: 'address',
|
|
972
972
|
},
|
|
973
973
|
{
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
}
|
|
974
|
+
name: '_amountOut',
|
|
975
|
+
type: 'uint256',
|
|
976
|
+
},
|
|
977
977
|
],
|
|
978
|
-
|
|
979
|
-
|
|
978
|
+
name: 'getSwapAmountIn',
|
|
979
|
+
outputs: [
|
|
980
980
|
{
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
}
|
|
981
|
+
name: '',
|
|
982
|
+
type: 'uint256',
|
|
983
|
+
},
|
|
984
984
|
],
|
|
985
|
-
|
|
986
|
-
|
|
985
|
+
stateMutability: 'view',
|
|
986
|
+
type: 'function',
|
|
987
987
|
},
|
|
988
988
|
{
|
|
989
|
-
|
|
989
|
+
inputs: [
|
|
990
990
|
{
|
|
991
|
-
|
|
992
|
-
|
|
991
|
+
name: '_pool',
|
|
992
|
+
type: 'address',
|
|
993
993
|
},
|
|
994
994
|
{
|
|
995
|
-
|
|
996
|
-
|
|
995
|
+
name: '_tokenA',
|
|
996
|
+
type: 'address',
|
|
997
997
|
},
|
|
998
998
|
{
|
|
999
|
-
|
|
1000
|
-
|
|
999
|
+
name: '_tokenB',
|
|
1000
|
+
type: 'address',
|
|
1001
1001
|
},
|
|
1002
1002
|
{
|
|
1003
|
-
|
|
1004
|
-
|
|
1003
|
+
name: '_availAmountA',
|
|
1004
|
+
type: 'uint256',
|
|
1005
1005
|
},
|
|
1006
1006
|
{
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
}
|
|
1007
|
+
name: '_availAmountB',
|
|
1008
|
+
type: 'uint256',
|
|
1009
|
+
},
|
|
1010
1010
|
],
|
|
1011
|
-
|
|
1012
|
-
|
|
1011
|
+
name: 'getAddLiqAmountsIn',
|
|
1012
|
+
outputs: [
|
|
1013
1013
|
{
|
|
1014
|
-
|
|
1015
|
-
|
|
1014
|
+
name: '',
|
|
1015
|
+
type: 'uint256',
|
|
1016
1016
|
},
|
|
1017
1017
|
{
|
|
1018
|
-
|
|
1019
|
-
|
|
1018
|
+
name: '',
|
|
1019
|
+
type: 'uint256',
|
|
1020
1020
|
},
|
|
1021
1021
|
{
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
}
|
|
1022
|
+
name: '',
|
|
1023
|
+
type: 'uint256',
|
|
1024
|
+
},
|
|
1025
1025
|
],
|
|
1026
|
-
|
|
1027
|
-
|
|
1026
|
+
stateMutability: 'view',
|
|
1027
|
+
type: 'function',
|
|
1028
1028
|
},
|
|
1029
1029
|
{
|
|
1030
|
-
|
|
1030
|
+
inputs: [
|
|
1031
1031
|
{
|
|
1032
|
-
|
|
1033
|
-
|
|
1032
|
+
name: '_pool',
|
|
1033
|
+
type: 'address',
|
|
1034
1034
|
},
|
|
1035
1035
|
{
|
|
1036
|
-
|
|
1037
|
-
|
|
1036
|
+
name: '_tokenA',
|
|
1037
|
+
type: 'address',
|
|
1038
1038
|
},
|
|
1039
1039
|
{
|
|
1040
|
-
|
|
1041
|
-
|
|
1040
|
+
name: '_tokenB',
|
|
1041
|
+
type: 'address',
|
|
1042
1042
|
},
|
|
1043
1043
|
{
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
}
|
|
1044
|
+
name: '_lpAmount',
|
|
1045
|
+
type: 'uint256',
|
|
1046
|
+
},
|
|
1047
1047
|
],
|
|
1048
|
-
|
|
1049
|
-
|
|
1048
|
+
name: 'getRemoveLiqAmountsOut',
|
|
1049
|
+
outputs: [
|
|
1050
1050
|
{
|
|
1051
|
-
|
|
1052
|
-
|
|
1051
|
+
name: '',
|
|
1052
|
+
type: 'uint256',
|
|
1053
1053
|
},
|
|
1054
1054
|
{
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
}
|
|
1055
|
+
name: '',
|
|
1056
|
+
type: 'uint256',
|
|
1057
|
+
},
|
|
1058
1058
|
],
|
|
1059
|
-
|
|
1060
|
-
|
|
1059
|
+
stateMutability: 'view',
|
|
1060
|
+
type: 'function',
|
|
1061
1061
|
},
|
|
1062
1062
|
{
|
|
1063
|
-
|
|
1063
|
+
inputs: [
|
|
1064
1064
|
{
|
|
1065
|
-
|
|
1066
|
-
|
|
1065
|
+
name: '_pool',
|
|
1066
|
+
type: 'address',
|
|
1067
1067
|
},
|
|
1068
1068
|
{
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
}
|
|
1069
|
+
name: '_targetToken',
|
|
1070
|
+
type: 'address',
|
|
1071
|
+
},
|
|
1072
1072
|
],
|
|
1073
|
-
|
|
1074
|
-
|
|
1073
|
+
name: 'getPriceUnsafe',
|
|
1074
|
+
outputs: [
|
|
1075
1075
|
{
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
}
|
|
1076
|
+
name: '',
|
|
1077
|
+
type: 'uint256',
|
|
1078
|
+
},
|
|
1079
1079
|
],
|
|
1080
|
-
|
|
1081
|
-
|
|
1080
|
+
stateMutability: 'view',
|
|
1081
|
+
type: 'function',
|
|
1082
1082
|
},
|
|
1083
1083
|
{
|
|
1084
|
-
|
|
1084
|
+
inputs: [
|
|
1085
1085
|
{
|
|
1086
|
-
|
|
1087
|
-
|
|
1086
|
+
name: '_pool',
|
|
1087
|
+
type: 'address',
|
|
1088
1088
|
},
|
|
1089
1089
|
{
|
|
1090
|
-
|
|
1091
|
-
|
|
1090
|
+
name: '_targetToken',
|
|
1091
|
+
type: 'address',
|
|
1092
1092
|
},
|
|
1093
1093
|
{
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
}
|
|
1094
|
+
name: '_oracleRegistry',
|
|
1095
|
+
type: 'address',
|
|
1096
|
+
},
|
|
1097
1097
|
],
|
|
1098
|
-
|
|
1099
|
-
|
|
1098
|
+
name: 'getPriceUnsafe',
|
|
1099
|
+
outputs: [
|
|
1100
1100
|
{
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
}
|
|
1101
|
+
name: '',
|
|
1102
|
+
type: 'uint256',
|
|
1103
|
+
},
|
|
1104
1104
|
],
|
|
1105
|
-
|
|
1106
|
-
|
|
1105
|
+
stateMutability: 'view',
|
|
1106
|
+
type: 'function',
|
|
1107
1107
|
},
|
|
1108
1108
|
{
|
|
1109
|
-
|
|
1109
|
+
inputs: [
|
|
1110
1110
|
{
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
}
|
|
1111
|
+
name: '_addr',
|
|
1112
|
+
type: 'address',
|
|
1113
|
+
},
|
|
1114
1114
|
],
|
|
1115
|
-
|
|
1116
|
-
|
|
1115
|
+
name: 'setCoreRouterPool',
|
|
1116
|
+
outputs: [
|
|
1117
1117
|
{
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
}
|
|
1118
|
+
name: '',
|
|
1119
|
+
type: 'bool',
|
|
1120
|
+
},
|
|
1121
1121
|
],
|
|
1122
|
-
|
|
1123
|
-
|
|
1122
|
+
stateMutability: 'nonpayable',
|
|
1123
|
+
type: 'function',
|
|
1124
1124
|
},
|
|
1125
1125
|
{
|
|
1126
|
-
|
|
1126
|
+
inputs: [
|
|
1127
1127
|
{
|
|
1128
|
-
|
|
1129
|
-
|
|
1128
|
+
name: '_asset',
|
|
1129
|
+
type: 'address',
|
|
1130
1130
|
},
|
|
1131
1131
|
{
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
}
|
|
1132
|
+
name: '_recipient',
|
|
1133
|
+
type: 'address',
|
|
1134
|
+
},
|
|
1135
1135
|
],
|
|
1136
|
-
|
|
1137
|
-
|
|
1136
|
+
name: 'recoverFunds',
|
|
1137
|
+
outputs: [
|
|
1138
1138
|
{
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
}
|
|
1139
|
+
name: '',
|
|
1140
|
+
type: 'bool',
|
|
1141
|
+
},
|
|
1142
1142
|
],
|
|
1143
|
-
|
|
1144
|
-
|
|
1143
|
+
stateMutability: 'nonpayable',
|
|
1144
|
+
type: 'function',
|
|
1145
1145
|
},
|
|
1146
1146
|
{
|
|
1147
|
-
|
|
1147
|
+
inputs: [
|
|
1148
1148
|
{
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
}
|
|
1149
|
+
name: '_legoId',
|
|
1150
|
+
type: 'uint256',
|
|
1151
|
+
},
|
|
1152
1152
|
],
|
|
1153
|
-
|
|
1154
|
-
|
|
1153
|
+
name: 'setLegoId',
|
|
1154
|
+
outputs: [
|
|
1155
1155
|
{
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
}
|
|
1156
|
+
name: '',
|
|
1157
|
+
type: 'bool',
|
|
1158
|
+
},
|
|
1159
1159
|
],
|
|
1160
|
-
|
|
1161
|
-
|
|
1160
|
+
stateMutability: 'nonpayable',
|
|
1161
|
+
type: 'function',
|
|
1162
1162
|
},
|
|
1163
1163
|
{
|
|
1164
|
-
|
|
1164
|
+
inputs: [
|
|
1165
1165
|
{
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
}
|
|
1166
|
+
name: '_shouldActivate',
|
|
1167
|
+
type: 'bool',
|
|
1168
|
+
},
|
|
1169
1169
|
],
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1170
|
+
name: 'activate',
|
|
1171
|
+
outputs: [],
|
|
1172
|
+
stateMutability: 'nonpayable',
|
|
1173
|
+
type: 'function',
|
|
1174
1174
|
},
|
|
1175
1175
|
{
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1176
|
+
inputs: [],
|
|
1177
|
+
name: 'coreRouterPool',
|
|
1178
|
+
outputs: [
|
|
1179
1179
|
{
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
}
|
|
1180
|
+
name: '',
|
|
1181
|
+
type: 'address',
|
|
1182
|
+
},
|
|
1183
1183
|
],
|
|
1184
|
-
|
|
1185
|
-
|
|
1184
|
+
stateMutability: 'view',
|
|
1185
|
+
type: 'function',
|
|
1186
1186
|
},
|
|
1187
1187
|
{
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1188
|
+
inputs: [],
|
|
1189
|
+
name: 'UNISWAP_V2_FACTORY',
|
|
1190
|
+
outputs: [
|
|
1191
1191
|
{
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
}
|
|
1192
|
+
name: '',
|
|
1193
|
+
type: 'address',
|
|
1194
|
+
},
|
|
1195
1195
|
],
|
|
1196
|
-
|
|
1197
|
-
|
|
1196
|
+
stateMutability: 'view',
|
|
1197
|
+
type: 'function',
|
|
1198
1198
|
},
|
|
1199
1199
|
{
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1200
|
+
inputs: [],
|
|
1201
|
+
name: 'UNISWAP_V2_ROUTER',
|
|
1202
|
+
outputs: [
|
|
1203
1203
|
{
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
}
|
|
1204
|
+
name: '',
|
|
1205
|
+
type: 'address',
|
|
1206
|
+
},
|
|
1207
1207
|
],
|
|
1208
|
-
|
|
1209
|
-
|
|
1208
|
+
stateMutability: 'view',
|
|
1209
|
+
type: 'function',
|
|
1210
1210
|
},
|
|
1211
1211
|
{
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1212
|
+
inputs: [],
|
|
1213
|
+
name: 'legoId',
|
|
1214
|
+
outputs: [
|
|
1215
1215
|
{
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
}
|
|
1216
|
+
name: '',
|
|
1217
|
+
type: 'uint256',
|
|
1218
|
+
},
|
|
1219
1219
|
],
|
|
1220
|
-
|
|
1221
|
-
|
|
1220
|
+
stateMutability: 'view',
|
|
1221
|
+
type: 'function',
|
|
1222
1222
|
},
|
|
1223
1223
|
{
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1224
|
+
inputs: [],
|
|
1225
|
+
name: 'isActivated',
|
|
1226
|
+
outputs: [
|
|
1227
1227
|
{
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
}
|
|
1228
|
+
name: '',
|
|
1229
|
+
type: 'bool',
|
|
1230
|
+
},
|
|
1231
1231
|
],
|
|
1232
|
-
|
|
1233
|
-
|
|
1232
|
+
stateMutability: 'view',
|
|
1233
|
+
type: 'function',
|
|
1234
1234
|
},
|
|
1235
1235
|
{
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1236
|
+
inputs: [],
|
|
1237
|
+
name: 'ADDY_REGISTRY',
|
|
1238
|
+
outputs: [
|
|
1239
1239
|
{
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
}
|
|
1240
|
+
name: '',
|
|
1241
|
+
type: 'address',
|
|
1242
|
+
},
|
|
1243
1243
|
],
|
|
1244
|
-
|
|
1245
|
-
|
|
1244
|
+
stateMutability: 'view',
|
|
1245
|
+
type: 'function',
|
|
1246
1246
|
},
|
|
1247
1247
|
{
|
|
1248
|
-
|
|
1248
|
+
inputs: [
|
|
1249
1249
|
{
|
|
1250
|
-
|
|
1251
|
-
|
|
1250
|
+
name: '_uniswapV2Factory',
|
|
1251
|
+
type: 'address',
|
|
1252
1252
|
},
|
|
1253
1253
|
{
|
|
1254
|
-
|
|
1255
|
-
|
|
1254
|
+
name: '_uniswapV2Router',
|
|
1255
|
+
type: 'address',
|
|
1256
1256
|
},
|
|
1257
1257
|
{
|
|
1258
|
-
|
|
1259
|
-
|
|
1258
|
+
name: '_addyRegistry',
|
|
1259
|
+
type: 'address',
|
|
1260
1260
|
},
|
|
1261
1261
|
{
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
}
|
|
1262
|
+
name: '_coreRouterPool',
|
|
1263
|
+
type: 'address',
|
|
1264
|
+
},
|
|
1265
1265
|
],
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
}
|
|
1266
|
+
outputs: [],
|
|
1267
|
+
stateMutability: 'nonpayable',
|
|
1268
|
+
type: 'constructor',
|
|
1269
|
+
},
|
|
1270
1270
|
];
|
|
1271
|
-
export const deployAddress =
|
|
1271
|
+
export const deployAddress = '0xFA56408A68ba9bF5Df0F1CF4187B7260fDf38fC4';
|
|
1272
1272
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
1273
1273
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
1274
1274
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|