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