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