@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.
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,1044 +5,1044 @@
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": "asset",
18
- "type": "address"
16
+ indexed: true,
17
+ name: 'asset',
18
+ type: 'address',
19
19
  },
20
20
  {
21
- "indexed": true,
22
- "name": "vaultToken",
23
- "type": "address"
21
+ indexed: true,
22
+ name: 'vaultToken',
23
+ type: 'address',
24
24
  },
25
25
  {
26
- "indexed": false,
27
- "name": "assetAmountDeposited",
28
- "type": "uint256"
26
+ indexed: false,
27
+ name: 'assetAmountDeposited',
28
+ type: 'uint256',
29
29
  },
30
30
  {
31
- "indexed": false,
32
- "name": "usdValue",
33
- "type": "uint256"
31
+ indexed: false,
32
+ name: 'usdValue',
33
+ type: 'uint256',
34
34
  },
35
35
  {
36
- "indexed": false,
37
- "name": "vaultTokenAmountReceived",
38
- "type": "uint256"
36
+ indexed: false,
37
+ name: 'vaultTokenAmountReceived',
38
+ type: 'uint256',
39
39
  },
40
40
  {
41
- "indexed": false,
42
- "name": "recipient",
43
- "type": "address"
44
- }
41
+ indexed: false,
42
+ name: 'recipient',
43
+ type: 'address',
44
+ },
45
45
  ],
46
- "name": "AaveV3Deposit",
47
- "type": "event"
46
+ name: 'AaveV3Deposit',
47
+ type: 'event',
48
48
  },
49
49
  {
50
- "anonymous": false,
51
- "inputs": [
50
+ anonymous: false,
51
+ inputs: [
52
52
  {
53
- "indexed": true,
54
- "name": "sender",
55
- "type": "address"
53
+ indexed: true,
54
+ name: 'sender',
55
+ type: 'address',
56
56
  },
57
57
  {
58
- "indexed": true,
59
- "name": "asset",
60
- "type": "address"
58
+ indexed: true,
59
+ name: 'asset',
60
+ type: 'address',
61
61
  },
62
62
  {
63
- "indexed": true,
64
- "name": "vaultToken",
65
- "type": "address"
63
+ indexed: true,
64
+ name: 'vaultToken',
65
+ type: 'address',
66
66
  },
67
67
  {
68
- "indexed": false,
69
- "name": "assetAmountReceived",
70
- "type": "uint256"
68
+ indexed: false,
69
+ name: 'assetAmountReceived',
70
+ type: 'uint256',
71
71
  },
72
72
  {
73
- "indexed": false,
74
- "name": "usdValue",
75
- "type": "uint256"
73
+ indexed: false,
74
+ name: 'usdValue',
75
+ type: 'uint256',
76
76
  },
77
77
  {
78
- "indexed": false,
79
- "name": "vaultTokenAmountBurned",
80
- "type": "uint256"
78
+ indexed: false,
79
+ name: 'vaultTokenAmountBurned',
80
+ type: 'uint256',
81
81
  },
82
82
  {
83
- "indexed": false,
84
- "name": "recipient",
85
- "type": "address"
86
- }
83
+ indexed: false,
84
+ name: 'recipient',
85
+ type: 'address',
86
+ },
87
87
  ],
88
- "name": "AaveV3Withdrawal",
89
- "type": "event"
88
+ name: 'AaveV3Withdrawal',
89
+ type: 'event',
90
90
  },
91
91
  {
92
- "anonymous": false,
93
- "inputs": [
92
+ anonymous: false,
93
+ inputs: [
94
94
  {
95
- "indexed": true,
96
- "name": "asset",
97
- "type": "address"
95
+ indexed: true,
96
+ name: 'asset',
97
+ type: 'address',
98
98
  },
99
99
  {
100
- "indexed": true,
101
- "name": "recipient",
102
- "type": "address"
100
+ indexed: true,
101
+ name: 'recipient',
102
+ type: 'address',
103
103
  },
104
104
  {
105
- "indexed": false,
106
- "name": "amount",
107
- "type": "uint256"
108
- }
105
+ indexed: false,
106
+ name: 'amount',
107
+ type: 'uint256',
108
+ },
109
109
  ],
110
- "name": "AaveV3FundsRecovered",
111
- "type": "event"
110
+ name: 'AaveV3FundsRecovered',
111
+ type: 'event',
112
112
  },
113
113
  {
114
- "anonymous": false,
115
- "inputs": [
114
+ anonymous: false,
115
+ inputs: [
116
116
  {
117
- "indexed": false,
118
- "name": "legoId",
119
- "type": "uint256"
120
- }
117
+ indexed: false,
118
+ name: 'legoId',
119
+ type: 'uint256',
120
+ },
121
121
  ],
122
- "name": "AaveV3LegoIdSet",
123
- "type": "event"
122
+ name: 'AaveV3LegoIdSet',
123
+ type: 'event',
124
124
  },
125
125
  {
126
- "anonymous": false,
127
- "inputs": [
126
+ anonymous: false,
127
+ inputs: [
128
128
  {
129
- "indexed": false,
130
- "name": "isActivated",
131
- "type": "bool"
132
- }
129
+ indexed: false,
130
+ name: 'isActivated',
131
+ type: 'bool',
132
+ },
133
133
  ],
134
- "name": "AaveV3Activated",
135
- "type": "event"
134
+ name: 'AaveV3Activated',
135
+ type: 'event',
136
136
  },
137
137
  {
138
- "anonymous": false,
139
- "inputs": [
138
+ anonymous: false,
139
+ inputs: [
140
140
  {
141
- "indexed": true,
142
- "name": "addr",
143
- "type": "address"
144
- }
141
+ indexed: true,
142
+ name: 'addr',
143
+ type: 'address',
144
+ },
145
145
  ],
146
- "name": "LocalGovernorSet",
147
- "type": "event"
146
+ name: 'LocalGovernorSet',
147
+ type: 'event',
148
148
  },
149
149
  {
150
- "anonymous": false,
151
- "inputs": [
150
+ anonymous: false,
151
+ inputs: [
152
152
  {
153
- "indexed": true,
154
- "name": "asset",
155
- "type": "address"
153
+ indexed: true,
154
+ name: 'asset',
155
+ type: 'address',
156
156
  },
157
157
  {
158
- "indexed": true,
159
- "name": "vaultToken",
160
- "type": "address"
161
- }
158
+ indexed: true,
159
+ name: 'vaultToken',
160
+ type: 'address',
161
+ },
162
162
  ],
163
- "name": "AssetOpportunityAdded",
164
- "type": "event"
163
+ name: 'AssetOpportunityAdded',
164
+ type: 'event',
165
165
  },
166
166
  {
167
- "anonymous": false,
168
- "inputs": [
167
+ anonymous: false,
168
+ inputs: [
169
169
  {
170
- "indexed": true,
171
- "name": "asset",
172
- "type": "address"
170
+ indexed: true,
171
+ name: 'asset',
172
+ type: 'address',
173
173
  },
174
174
  {
175
- "indexed": true,
176
- "name": "vaultToken",
177
- "type": "address"
178
- }
175
+ indexed: true,
176
+ name: 'vaultToken',
177
+ type: 'address',
178
+ },
179
179
  ],
180
- "name": "AssetOpportunityRemoved",
181
- "type": "event"
180
+ name: 'AssetOpportunityRemoved',
181
+ type: 'event',
182
182
  },
183
183
  {
184
- "inputs": [
184
+ inputs: [
185
185
  {
186
- "name": "_asset",
187
- "type": "address"
188
- }
186
+ name: '_asset',
187
+ type: 'address',
188
+ },
189
189
  ],
190
- "name": "getAssetOpportunities",
191
- "outputs": [
190
+ name: 'getAssetOpportunities',
191
+ outputs: [
192
192
  {
193
- "name": "",
194
- "type": "address[]"
195
- }
193
+ name: '',
194
+ type: 'address[]',
195
+ },
196
196
  ],
197
- "stateMutability": "view",
198
- "type": "function"
197
+ stateMutability: 'view',
198
+ type: 'function',
199
199
  },
200
200
  {
201
- "inputs": [],
202
- "name": "getAssets",
203
- "outputs": [
201
+ inputs: [],
202
+ name: 'getAssets',
203
+ outputs: [
204
204
  {
205
- "name": "",
206
- "type": "address[]"
207
- }
205
+ name: '',
206
+ type: 'address[]',
207
+ },
208
208
  ],
209
- "stateMutability": "view",
210
- "type": "function"
209
+ stateMutability: 'view',
210
+ type: 'function',
211
211
  },
212
212
  {
213
- "inputs": [
213
+ inputs: [
214
214
  {
215
- "name": "arg0",
216
- "type": "address"
215
+ name: 'arg0',
216
+ type: 'address',
217
217
  },
218
218
  {
219
- "name": "arg1",
220
- "type": "uint256"
221
- }
219
+ name: 'arg1',
220
+ type: 'uint256',
221
+ },
222
222
  ],
223
- "name": "assetOpportunities",
224
- "outputs": [
223
+ name: 'assetOpportunities',
224
+ outputs: [
225
225
  {
226
- "name": "",
227
- "type": "address"
228
- }
226
+ name: '',
227
+ type: 'address',
228
+ },
229
229
  ],
230
- "stateMutability": "view",
231
- "type": "function"
230
+ stateMutability: 'view',
231
+ type: 'function',
232
232
  },
233
233
  {
234
- "inputs": [
234
+ inputs: [
235
235
  {
236
- "name": "arg0",
237
- "type": "address"
236
+ name: 'arg0',
237
+ type: 'address',
238
238
  },
239
239
  {
240
- "name": "arg1",
241
- "type": "address"
242
- }
240
+ name: 'arg1',
241
+ type: 'address',
242
+ },
243
243
  ],
244
- "name": "indexOfAssetOpportunity",
245
- "outputs": [
244
+ name: 'indexOfAssetOpportunity',
245
+ outputs: [
246
246
  {
247
- "name": "",
248
- "type": "uint256"
249
- }
247
+ name: '',
248
+ type: 'uint256',
249
+ },
250
250
  ],
251
- "stateMutability": "view",
252
- "type": "function"
251
+ stateMutability: 'view',
252
+ type: 'function',
253
253
  },
254
254
  {
255
- "inputs": [
255
+ inputs: [
256
256
  {
257
- "name": "arg0",
258
- "type": "address"
259
- }
257
+ name: 'arg0',
258
+ type: 'address',
259
+ },
260
260
  ],
261
- "name": "numAssetOpportunities",
262
- "outputs": [
261
+ name: 'numAssetOpportunities',
262
+ outputs: [
263
263
  {
264
- "name": "",
265
- "type": "uint256"
266
- }
264
+ name: '',
265
+ type: 'uint256',
266
+ },
267
267
  ],
268
- "stateMutability": "view",
269
- "type": "function"
268
+ stateMutability: 'view',
269
+ type: 'function',
270
270
  },
271
271
  {
272
- "inputs": [
272
+ inputs: [
273
273
  {
274
- "name": "arg0",
275
- "type": "address"
276
- }
274
+ name: 'arg0',
275
+ type: 'address',
276
+ },
277
277
  ],
278
- "name": "vaultToAsset",
279
- "outputs": [
278
+ name: 'vaultToAsset',
279
+ outputs: [
280
280
  {
281
- "name": "",
282
- "type": "address"
283
- }
281
+ name: '',
282
+ type: 'address',
283
+ },
284
284
  ],
285
- "stateMutability": "view",
286
- "type": "function"
285
+ stateMutability: 'view',
286
+ type: 'function',
287
287
  },
288
288
  {
289
- "inputs": [
289
+ inputs: [
290
290
  {
291
- "name": "arg0",
292
- "type": "uint256"
293
- }
291
+ name: 'arg0',
292
+ type: 'uint256',
293
+ },
294
294
  ],
295
- "name": "assets",
296
- "outputs": [
295
+ name: 'assets',
296
+ outputs: [
297
297
  {
298
- "name": "",
299
- "type": "address"
300
- }
298
+ name: '',
299
+ type: 'address',
300
+ },
301
301
  ],
302
- "stateMutability": "view",
303
- "type": "function"
302
+ stateMutability: 'view',
303
+ type: 'function',
304
304
  },
305
305
  {
306
- "inputs": [
306
+ inputs: [
307
307
  {
308
- "name": "arg0",
309
- "type": "address"
310
- }
308
+ name: 'arg0',
309
+ type: 'address',
310
+ },
311
311
  ],
312
- "name": "indexOfAsset",
313
- "outputs": [
312
+ name: 'indexOfAsset',
313
+ outputs: [
314
314
  {
315
- "name": "",
316
- "type": "uint256"
317
- }
315
+ name: '',
316
+ type: 'uint256',
317
+ },
318
318
  ],
319
- "stateMutability": "view",
320
- "type": "function"
319
+ stateMutability: 'view',
320
+ type: 'function',
321
321
  },
322
322
  {
323
- "inputs": [],
324
- "name": "numAssets",
325
- "outputs": [
323
+ inputs: [],
324
+ name: 'numAssets',
325
+ outputs: [
326
326
  {
327
- "name": "",
328
- "type": "uint256"
329
- }
327
+ name: '',
328
+ type: 'uint256',
329
+ },
330
330
  ],
331
- "stateMutability": "view",
332
- "type": "function"
331
+ stateMutability: 'view',
332
+ type: 'function',
333
333
  },
334
334
  {
335
- "inputs": [
335
+ inputs: [
336
336
  {
337
- "name": "_address",
338
- "type": "address"
339
- }
337
+ name: '_address',
338
+ type: 'address',
339
+ },
340
340
  ],
341
- "name": "isGovernor",
342
- "outputs": [
341
+ name: 'isGovernor',
342
+ outputs: [
343
343
  {
344
- "name": "",
345
- "type": "bool"
346
- }
344
+ name: '',
345
+ type: 'bool',
346
+ },
347
347
  ],
348
- "stateMutability": "view",
349
- "type": "function"
348
+ stateMutability: 'view',
349
+ type: 'function',
350
350
  },
351
351
  {
352
- "inputs": [
352
+ inputs: [
353
353
  {
354
- "name": "_newGovernor",
355
- "type": "address"
356
- }
354
+ name: '_newGovernor',
355
+ type: 'address',
356
+ },
357
357
  ],
358
- "name": "isValidLocalGovernor",
359
- "outputs": [
358
+ name: 'isValidLocalGovernor',
359
+ outputs: [
360
360
  {
361
- "name": "",
362
- "type": "bool"
363
- }
361
+ name: '',
362
+ type: 'bool',
363
+ },
364
364
  ],
365
- "stateMutability": "view",
366
- "type": "function"
365
+ stateMutability: 'view',
366
+ type: 'function',
367
367
  },
368
368
  {
369
- "inputs": [
369
+ inputs: [
370
370
  {
371
- "name": "_newGovernor",
372
- "type": "address"
373
- }
371
+ name: '_newGovernor',
372
+ type: 'address',
373
+ },
374
374
  ],
375
- "name": "setLocalGovernor",
376
- "outputs": [
375
+ name: 'setLocalGovernor',
376
+ outputs: [
377
377
  {
378
- "name": "",
379
- "type": "bool"
380
- }
378
+ name: '',
379
+ type: 'bool',
380
+ },
381
381
  ],
382
- "stateMutability": "nonpayable",
383
- "type": "function"
382
+ stateMutability: 'nonpayable',
383
+ type: 'function',
384
384
  },
385
385
  {
386
- "inputs": [],
387
- "name": "localGovernor",
388
- "outputs": [
386
+ inputs: [],
387
+ name: 'localGovernor',
388
+ outputs: [
389
389
  {
390
- "name": "",
391
- "type": "address"
392
- }
390
+ name: '',
391
+ type: 'address',
392
+ },
393
393
  ],
394
- "stateMutability": "view",
395
- "type": "function"
394
+ stateMutability: 'view',
395
+ type: 'function',
396
396
  },
397
397
  {
398
- "inputs": [],
399
- "name": "getRegistries",
400
- "outputs": [
398
+ inputs: [],
399
+ name: 'getRegistries',
400
+ outputs: [
401
401
  {
402
- "name": "",
403
- "type": "address[]"
404
- }
402
+ name: '',
403
+ type: 'address[]',
404
+ },
405
405
  ],
406
- "stateMutability": "view",
407
- "type": "function"
406
+ stateMutability: 'view',
407
+ type: 'function',
408
408
  },
409
409
  {
410
- "inputs": [
410
+ inputs: [
411
411
  {
412
- "name": "_user",
413
- "type": "address"
414
- }
412
+ name: '_user',
413
+ type: 'address',
414
+ },
415
415
  ],
416
- "name": "getAccessForLego",
417
- "outputs": [
416
+ name: 'getAccessForLego',
417
+ outputs: [
418
418
  {
419
- "name": "",
420
- "type": "address"
419
+ name: '',
420
+ type: 'address',
421
421
  },
422
422
  {
423
- "name": "",
424
- "type": "string"
423
+ name: '',
424
+ type: 'string',
425
425
  },
426
426
  {
427
- "name": "",
428
- "type": "uint256"
429
- }
427
+ name: '',
428
+ type: 'uint256',
429
+ },
430
430
  ],
431
- "stateMutability": "view",
432
- "type": "function"
431
+ stateMutability: 'view',
432
+ type: 'function',
433
433
  },
434
434
  {
435
- "inputs": [
435
+ inputs: [
436
436
  {
437
- "name": "_vaultToken",
438
- "type": "address"
439
- }
437
+ name: '_vaultToken',
438
+ type: 'address',
439
+ },
440
440
  ],
441
- "name": "isVaultToken",
442
- "outputs": [
441
+ name: 'isVaultToken',
442
+ outputs: [
443
443
  {
444
- "name": "",
445
- "type": "bool"
446
- }
444
+ name: '',
445
+ type: 'bool',
446
+ },
447
447
  ],
448
- "stateMutability": "view",
449
- "type": "function"
448
+ stateMutability: 'view',
449
+ type: 'function',
450
450
  },
451
451
  {
452
- "inputs": [
452
+ inputs: [
453
453
  {
454
- "name": "_vaultToken",
455
- "type": "address"
456
- }
454
+ name: '_vaultToken',
455
+ type: 'address',
456
+ },
457
457
  ],
458
- "name": "getUnderlyingAsset",
459
- "outputs": [
458
+ name: 'getUnderlyingAsset',
459
+ outputs: [
460
460
  {
461
- "name": "",
462
- "type": "address"
463
- }
461
+ name: '',
462
+ type: 'address',
463
+ },
464
464
  ],
465
- "stateMutability": "view",
466
- "type": "function"
465
+ stateMutability: 'view',
466
+ type: 'function',
467
467
  },
468
468
  {
469
- "inputs": [
469
+ inputs: [
470
470
  {
471
- "name": "_vaultToken",
472
- "type": "address"
471
+ name: '_vaultToken',
472
+ type: 'address',
473
473
  },
474
474
  {
475
- "name": "_vaultTokenAmount",
476
- "type": "uint256"
477
- }
475
+ name: '_vaultTokenAmount',
476
+ type: 'uint256',
477
+ },
478
478
  ],
479
- "name": "getUnderlyingAmount",
480
- "outputs": [
479
+ name: 'getUnderlyingAmount',
480
+ outputs: [
481
481
  {
482
- "name": "",
483
- "type": "uint256"
484
- }
482
+ name: '',
483
+ type: 'uint256',
484
+ },
485
485
  ],
486
- "stateMutability": "view",
487
- "type": "function"
486
+ stateMutability: 'view',
487
+ type: 'function',
488
488
  },
489
489
  {
490
- "inputs": [
490
+ inputs: [
491
491
  {
492
- "name": "_asset",
493
- "type": "address"
492
+ name: '_asset',
493
+ type: 'address',
494
494
  },
495
495
  {
496
- "name": "_assetAmount",
497
- "type": "uint256"
496
+ name: '_assetAmount',
497
+ type: 'uint256',
498
498
  },
499
499
  {
500
- "name": "_vaultToken",
501
- "type": "address"
502
- }
500
+ name: '_vaultToken',
501
+ type: 'address',
502
+ },
503
503
  ],
504
- "name": "getVaultTokenAmount",
505
- "outputs": [
504
+ name: 'getVaultTokenAmount',
505
+ outputs: [
506
506
  {
507
- "name": "",
508
- "type": "uint256"
509
- }
507
+ name: '',
508
+ type: 'uint256',
509
+ },
510
510
  ],
511
- "stateMutability": "view",
512
- "type": "function"
511
+ stateMutability: 'view',
512
+ type: 'function',
513
513
  },
514
514
  {
515
- "inputs": [
515
+ inputs: [
516
516
  {
517
- "name": "_vaultToken",
518
- "type": "address"
517
+ name: '_vaultToken',
518
+ type: 'address',
519
519
  },
520
520
  {
521
- "name": "_vaultTokenAmount",
522
- "type": "uint256"
523
- }
521
+ name: '_vaultTokenAmount',
522
+ type: 'uint256',
523
+ },
524
524
  ],
525
- "name": "getUsdValueOfVaultToken",
526
- "outputs": [
525
+ name: 'getUsdValueOfVaultToken',
526
+ outputs: [
527
527
  {
528
- "name": "",
529
- "type": "uint256"
530
- }
528
+ name: '',
529
+ type: 'uint256',
530
+ },
531
531
  ],
532
- "stateMutability": "view",
533
- "type": "function"
532
+ stateMutability: 'view',
533
+ type: 'function',
534
534
  },
535
535
  {
536
- "inputs": [
536
+ inputs: [
537
537
  {
538
- "name": "_vaultToken",
539
- "type": "address"
538
+ name: '_vaultToken',
539
+ type: 'address',
540
540
  },
541
541
  {
542
- "name": "_vaultTokenAmount",
543
- "type": "uint256"
542
+ name: '_vaultTokenAmount',
543
+ type: 'uint256',
544
544
  },
545
545
  {
546
- "name": "_oracleRegistry",
547
- "type": "address"
548
- }
546
+ name: '_oracleRegistry',
547
+ type: 'address',
548
+ },
549
549
  ],
550
- "name": "getUsdValueOfVaultToken",
551
- "outputs": [
550
+ name: 'getUsdValueOfVaultToken',
551
+ outputs: [
552
552
  {
553
- "name": "",
554
- "type": "uint256"
555
- }
553
+ name: '',
554
+ type: 'uint256',
555
+ },
556
556
  ],
557
- "stateMutability": "view",
558
- "type": "function"
557
+ stateMutability: 'view',
558
+ type: 'function',
559
559
  },
560
560
  {
561
- "inputs": [
561
+ inputs: [
562
562
  {
563
- "name": "_vaultToken",
564
- "type": "address"
563
+ name: '_vaultToken',
564
+ type: 'address',
565
565
  },
566
566
  {
567
- "name": "_vaultTokenAmount",
568
- "type": "uint256"
569
- }
567
+ name: '_vaultTokenAmount',
568
+ type: 'uint256',
569
+ },
570
570
  ],
571
- "name": "getUnderlyingData",
572
- "outputs": [
571
+ name: 'getUnderlyingData',
572
+ outputs: [
573
573
  {
574
- "name": "",
575
- "type": "address"
574
+ name: '',
575
+ type: 'address',
576
576
  },
577
577
  {
578
- "name": "",
579
- "type": "uint256"
578
+ name: '',
579
+ type: 'uint256',
580
580
  },
581
581
  {
582
- "name": "",
583
- "type": "uint256"
584
- }
582
+ name: '',
583
+ type: 'uint256',
584
+ },
585
585
  ],
586
- "stateMutability": "view",
587
- "type": "function"
586
+ stateMutability: 'view',
587
+ type: 'function',
588
588
  },
589
589
  {
590
- "inputs": [
590
+ inputs: [
591
591
  {
592
- "name": "_vaultToken",
593
- "type": "address"
592
+ name: '_vaultToken',
593
+ type: 'address',
594
594
  },
595
595
  {
596
- "name": "_vaultTokenAmount",
597
- "type": "uint256"
596
+ name: '_vaultTokenAmount',
597
+ type: 'uint256',
598
598
  },
599
599
  {
600
- "name": "_oracleRegistry",
601
- "type": "address"
602
- }
600
+ name: '_oracleRegistry',
601
+ type: 'address',
602
+ },
603
603
  ],
604
- "name": "getUnderlyingData",
605
- "outputs": [
604
+ name: 'getUnderlyingData',
605
+ outputs: [
606
606
  {
607
- "name": "",
608
- "type": "address"
607
+ name: '',
608
+ type: 'address',
609
609
  },
610
610
  {
611
- "name": "",
612
- "type": "uint256"
611
+ name: '',
612
+ type: 'uint256',
613
613
  },
614
614
  {
615
- "name": "",
616
- "type": "uint256"
617
- }
615
+ name: '',
616
+ type: 'uint256',
617
+ },
618
618
  ],
619
- "stateMutability": "view",
620
- "type": "function"
619
+ stateMutability: 'view',
620
+ type: 'function',
621
621
  },
622
622
  {
623
- "inputs": [
623
+ inputs: [
624
624
  {
625
- "name": "_vaultToken",
626
- "type": "address"
627
- }
625
+ name: '_vaultToken',
626
+ type: 'address',
627
+ },
628
628
  ],
629
- "name": "totalAssets",
630
- "outputs": [
629
+ name: 'totalAssets',
630
+ outputs: [
631
631
  {
632
- "name": "",
633
- "type": "uint256"
634
- }
632
+ name: '',
633
+ type: 'uint256',
634
+ },
635
635
  ],
636
- "stateMutability": "view",
637
- "type": "function"
636
+ stateMutability: 'view',
637
+ type: 'function',
638
638
  },
639
639
  {
640
- "inputs": [
640
+ inputs: [
641
641
  {
642
- "name": "_vaultToken",
643
- "type": "address"
644
- }
642
+ name: '_vaultToken',
643
+ type: 'address',
644
+ },
645
645
  ],
646
- "name": "totalBorrows",
647
- "outputs": [
646
+ name: 'totalBorrows',
647
+ outputs: [
648
648
  {
649
- "name": "",
650
- "type": "uint256"
651
- }
649
+ name: '',
650
+ type: 'uint256',
651
+ },
652
652
  ],
653
- "stateMutability": "view",
654
- "type": "function"
653
+ stateMutability: 'view',
654
+ type: 'function',
655
655
  },
656
656
  {
657
- "inputs": [
657
+ inputs: [
658
658
  {
659
- "name": "_asset",
660
- "type": "address"
659
+ name: '_asset',
660
+ type: 'address',
661
661
  },
662
662
  {
663
- "name": "_amount",
664
- "type": "uint256"
663
+ name: '_amount',
664
+ type: 'uint256',
665
665
  },
666
666
  {
667
- "name": "_vault",
668
- "type": "address"
667
+ name: '_vault',
668
+ type: 'address',
669
669
  },
670
670
  {
671
- "name": "_recipient",
672
- "type": "address"
673
- }
671
+ name: '_recipient',
672
+ type: 'address',
673
+ },
674
674
  ],
675
- "name": "depositTokens",
676
- "outputs": [
675
+ name: 'depositTokens',
676
+ outputs: [
677
677
  {
678
- "name": "",
679
- "type": "uint256"
678
+ name: '',
679
+ type: 'uint256',
680
680
  },
681
681
  {
682
- "name": "",
683
- "type": "address"
682
+ name: '',
683
+ type: 'address',
684
684
  },
685
685
  {
686
- "name": "",
687
- "type": "uint256"
686
+ name: '',
687
+ type: 'uint256',
688
688
  },
689
689
  {
690
- "name": "",
691
- "type": "uint256"
690
+ name: '',
691
+ type: 'uint256',
692
692
  },
693
693
  {
694
- "name": "",
695
- "type": "uint256"
696
- }
694
+ name: '',
695
+ type: 'uint256',
696
+ },
697
697
  ],
698
- "stateMutability": "nonpayable",
699
- "type": "function"
698
+ stateMutability: 'nonpayable',
699
+ type: 'function',
700
700
  },
701
701
  {
702
- "inputs": [
702
+ inputs: [
703
703
  {
704
- "name": "_asset",
705
- "type": "address"
704
+ name: '_asset',
705
+ type: 'address',
706
706
  },
707
707
  {
708
- "name": "_amount",
709
- "type": "uint256"
708
+ name: '_amount',
709
+ type: 'uint256',
710
710
  },
711
711
  {
712
- "name": "_vault",
713
- "type": "address"
712
+ name: '_vault',
713
+ type: 'address',
714
714
  },
715
715
  {
716
- "name": "_recipient",
717
- "type": "address"
716
+ name: '_recipient',
717
+ type: 'address',
718
718
  },
719
719
  {
720
- "name": "_oracleRegistry",
721
- "type": "address"
722
- }
720
+ name: '_oracleRegistry',
721
+ type: 'address',
722
+ },
723
723
  ],
724
- "name": "depositTokens",
725
- "outputs": [
724
+ name: 'depositTokens',
725
+ outputs: [
726
726
  {
727
- "name": "",
728
- "type": "uint256"
727
+ name: '',
728
+ type: 'uint256',
729
729
  },
730
730
  {
731
- "name": "",
732
- "type": "address"
731
+ name: '',
732
+ type: 'address',
733
733
  },
734
734
  {
735
- "name": "",
736
- "type": "uint256"
735
+ name: '',
736
+ type: 'uint256',
737
737
  },
738
738
  {
739
- "name": "",
740
- "type": "uint256"
739
+ name: '',
740
+ type: 'uint256',
741
741
  },
742
742
  {
743
- "name": "",
744
- "type": "uint256"
745
- }
743
+ name: '',
744
+ type: 'uint256',
745
+ },
746
746
  ],
747
- "stateMutability": "nonpayable",
748
- "type": "function"
747
+ stateMutability: 'nonpayable',
748
+ type: 'function',
749
749
  },
750
750
  {
751
- "inputs": [
751
+ inputs: [
752
752
  {
753
- "name": "_asset",
754
- "type": "address"
753
+ name: '_asset',
754
+ type: 'address',
755
755
  },
756
756
  {
757
- "name": "_amount",
758
- "type": "uint256"
757
+ name: '_amount',
758
+ type: 'uint256',
759
759
  },
760
760
  {
761
- "name": "_vaultToken",
762
- "type": "address"
761
+ name: '_vaultToken',
762
+ type: 'address',
763
763
  },
764
764
  {
765
- "name": "_recipient",
766
- "type": "address"
767
- }
765
+ name: '_recipient',
766
+ type: 'address',
767
+ },
768
768
  ],
769
- "name": "withdrawTokens",
770
- "outputs": [
769
+ name: 'withdrawTokens',
770
+ outputs: [
771
771
  {
772
- "name": "",
773
- "type": "uint256"
772
+ name: '',
773
+ type: 'uint256',
774
774
  },
775
775
  {
776
- "name": "",
777
- "type": "uint256"
776
+ name: '',
777
+ type: 'uint256',
778
778
  },
779
779
  {
780
- "name": "",
781
- "type": "uint256"
780
+ name: '',
781
+ type: 'uint256',
782
782
  },
783
783
  {
784
- "name": "",
785
- "type": "uint256"
786
- }
784
+ name: '',
785
+ type: 'uint256',
786
+ },
787
787
  ],
788
- "stateMutability": "nonpayable",
789
- "type": "function"
788
+ stateMutability: 'nonpayable',
789
+ type: 'function',
790
790
  },
791
791
  {
792
- "inputs": [
792
+ inputs: [
793
793
  {
794
- "name": "_asset",
795
- "type": "address"
794
+ name: '_asset',
795
+ type: 'address',
796
796
  },
797
797
  {
798
- "name": "_amount",
799
- "type": "uint256"
798
+ name: '_amount',
799
+ type: 'uint256',
800
800
  },
801
801
  {
802
- "name": "_vaultToken",
803
- "type": "address"
802
+ name: '_vaultToken',
803
+ type: 'address',
804
804
  },
805
805
  {
806
- "name": "_recipient",
807
- "type": "address"
806
+ name: '_recipient',
807
+ type: 'address',
808
808
  },
809
809
  {
810
- "name": "_oracleRegistry",
811
- "type": "address"
812
- }
810
+ name: '_oracleRegistry',
811
+ type: 'address',
812
+ },
813
813
  ],
814
- "name": "withdrawTokens",
815
- "outputs": [
814
+ name: 'withdrawTokens',
815
+ outputs: [
816
816
  {
817
- "name": "",
818
- "type": "uint256"
817
+ name: '',
818
+ type: 'uint256',
819
819
  },
820
820
  {
821
- "name": "",
822
- "type": "uint256"
821
+ name: '',
822
+ type: 'uint256',
823
823
  },
824
824
  {
825
- "name": "",
826
- "type": "uint256"
825
+ name: '',
826
+ type: 'uint256',
827
827
  },
828
828
  {
829
- "name": "",
830
- "type": "uint256"
831
- }
829
+ name: '',
830
+ type: 'uint256',
831
+ },
832
832
  ],
833
- "stateMutability": "nonpayable",
834
- "type": "function"
833
+ stateMutability: 'nonpayable',
834
+ type: 'function',
835
835
  },
836
836
  {
837
- "inputs": [
837
+ inputs: [
838
838
  {
839
- "name": "_user",
840
- "type": "address"
839
+ name: '_user',
840
+ type: 'address',
841
841
  },
842
842
  {
843
- "name": "_market",
844
- "type": "address"
843
+ name: '_market',
844
+ type: 'address',
845
845
  },
846
846
  {
847
- "name": "_rewardToken",
848
- "type": "address"
847
+ name: '_rewardToken',
848
+ type: 'address',
849
849
  },
850
850
  {
851
- "name": "_rewardAmount",
852
- "type": "uint256"
851
+ name: '_rewardAmount',
852
+ type: 'uint256',
853
853
  },
854
854
  {
855
- "name": "_proof",
856
- "type": "bytes32"
857
- }
855
+ name: '_proof',
856
+ type: 'bytes32',
857
+ },
858
858
  ],
859
- "name": "claimRewards",
860
- "outputs": [],
861
- "stateMutability": "nonpayable",
862
- "type": "function"
859
+ name: 'claimRewards',
860
+ outputs: [],
861
+ stateMutability: 'nonpayable',
862
+ type: 'function',
863
863
  },
864
864
  {
865
- "inputs": [
865
+ inputs: [
866
866
  {
867
- "name": "_user",
868
- "type": "address"
869
- }
867
+ name: '_user',
868
+ type: 'address',
869
+ },
870
870
  ],
871
- "name": "hasClaimableRewards",
872
- "outputs": [
871
+ name: 'hasClaimableRewards',
872
+ outputs: [
873
873
  {
874
- "name": "",
875
- "type": "bool"
876
- }
874
+ name: '',
875
+ type: 'bool',
876
+ },
877
877
  ],
878
- "stateMutability": "view",
879
- "type": "function"
878
+ stateMutability: 'view',
879
+ type: 'function',
880
880
  },
881
881
  {
882
- "inputs": [
882
+ inputs: [
883
883
  {
884
- "name": "_asset",
885
- "type": "address"
886
- }
884
+ name: '_asset',
885
+ type: 'address',
886
+ },
887
887
  ],
888
- "name": "addAssetOpportunity",
889
- "outputs": [
888
+ name: 'addAssetOpportunity',
889
+ outputs: [
890
890
  {
891
- "name": "",
892
- "type": "bool"
893
- }
891
+ name: '',
892
+ type: 'bool',
893
+ },
894
894
  ],
895
- "stateMutability": "nonpayable",
896
- "type": "function"
895
+ stateMutability: 'nonpayable',
896
+ type: 'function',
897
897
  },
898
898
  {
899
- "inputs": [
899
+ inputs: [
900
900
  {
901
- "name": "_asset",
902
- "type": "address"
903
- }
901
+ name: '_asset',
902
+ type: 'address',
903
+ },
904
904
  ],
905
- "name": "removeAssetOpportunity",
906
- "outputs": [
905
+ name: 'removeAssetOpportunity',
906
+ outputs: [
907
907
  {
908
- "name": "",
909
- "type": "bool"
910
- }
908
+ name: '',
909
+ type: 'bool',
910
+ },
911
911
  ],
912
- "stateMutability": "nonpayable",
913
- "type": "function"
912
+ stateMutability: 'nonpayable',
913
+ type: 'function',
914
914
  },
915
915
  {
916
- "inputs": [
916
+ inputs: [
917
917
  {
918
- "name": "_asset",
919
- "type": "address"
918
+ name: '_asset',
919
+ type: 'address',
920
920
  },
921
921
  {
922
- "name": "_recipient",
923
- "type": "address"
924
- }
922
+ name: '_recipient',
923
+ type: 'address',
924
+ },
925
925
  ],
926
- "name": "recoverFunds",
927
- "outputs": [
926
+ name: 'recoverFunds',
927
+ outputs: [
928
928
  {
929
- "name": "",
930
- "type": "bool"
931
- }
929
+ name: '',
930
+ type: 'bool',
931
+ },
932
932
  ],
933
- "stateMutability": "nonpayable",
934
- "type": "function"
933
+ stateMutability: 'nonpayable',
934
+ type: 'function',
935
935
  },
936
936
  {
937
- "inputs": [
937
+ inputs: [
938
938
  {
939
- "name": "_legoId",
940
- "type": "uint256"
941
- }
939
+ name: '_legoId',
940
+ type: 'uint256',
941
+ },
942
942
  ],
943
- "name": "setLegoId",
944
- "outputs": [
943
+ name: 'setLegoId',
944
+ outputs: [
945
945
  {
946
- "name": "",
947
- "type": "bool"
948
- }
946
+ name: '',
947
+ type: 'bool',
948
+ },
949
949
  ],
950
- "stateMutability": "nonpayable",
951
- "type": "function"
950
+ stateMutability: 'nonpayable',
951
+ type: 'function',
952
952
  },
953
953
  {
954
- "inputs": [
954
+ inputs: [
955
955
  {
956
- "name": "_shouldActivate",
957
- "type": "bool"
958
- }
956
+ name: '_shouldActivate',
957
+ type: 'bool',
958
+ },
959
959
  ],
960
- "name": "activate",
961
- "outputs": [],
962
- "stateMutability": "nonpayable",
963
- "type": "function"
960
+ name: 'activate',
961
+ outputs: [],
962
+ stateMutability: 'nonpayable',
963
+ type: 'function',
964
964
  },
965
965
  {
966
- "inputs": [],
967
- "name": "AAVE_V3_POOL",
968
- "outputs": [
966
+ inputs: [],
967
+ name: 'AAVE_V3_POOL',
968
+ outputs: [
969
969
  {
970
- "name": "",
971
- "type": "address"
972
- }
970
+ name: '',
971
+ type: 'address',
972
+ },
973
973
  ],
974
- "stateMutability": "view",
975
- "type": "function"
974
+ stateMutability: 'view',
975
+ type: 'function',
976
976
  },
977
977
  {
978
- "inputs": [],
979
- "name": "AAVE_V3_ADDRESS_PROVIDER",
980
- "outputs": [
978
+ inputs: [],
979
+ name: 'AAVE_V3_ADDRESS_PROVIDER',
980
+ outputs: [
981
981
  {
982
- "name": "",
983
- "type": "address"
984
- }
982
+ name: '',
983
+ type: 'address',
984
+ },
985
985
  ],
986
- "stateMutability": "view",
987
- "type": "function"
986
+ stateMutability: 'view',
987
+ type: 'function',
988
988
  },
989
989
  {
990
- "inputs": [],
991
- "name": "legoId",
992
- "outputs": [
990
+ inputs: [],
991
+ name: 'legoId',
992
+ outputs: [
993
993
  {
994
- "name": "",
995
- "type": "uint256"
996
- }
994
+ name: '',
995
+ type: 'uint256',
996
+ },
997
997
  ],
998
- "stateMutability": "view",
999
- "type": "function"
998
+ stateMutability: 'view',
999
+ type: 'function',
1000
1000
  },
1001
1001
  {
1002
- "inputs": [],
1003
- "name": "isActivated",
1004
- "outputs": [
1002
+ inputs: [],
1003
+ name: 'isActivated',
1004
+ outputs: [
1005
1005
  {
1006
- "name": "",
1007
- "type": "bool"
1008
- }
1006
+ name: '',
1007
+ type: 'bool',
1008
+ },
1009
1009
  ],
1010
- "stateMutability": "view",
1011
- "type": "function"
1010
+ stateMutability: 'view',
1011
+ type: 'function',
1012
1012
  },
1013
1013
  {
1014
- "inputs": [],
1015
- "name": "ADDY_REGISTRY",
1016
- "outputs": [
1014
+ inputs: [],
1015
+ name: 'ADDY_REGISTRY',
1016
+ outputs: [
1017
1017
  {
1018
- "name": "",
1019
- "type": "address"
1020
- }
1018
+ name: '',
1019
+ type: 'address',
1020
+ },
1021
1021
  ],
1022
- "stateMutability": "view",
1023
- "type": "function"
1022
+ stateMutability: 'view',
1023
+ type: 'function',
1024
1024
  },
1025
1025
  {
1026
- "inputs": [
1026
+ inputs: [
1027
1027
  {
1028
- "name": "_aaveV3",
1029
- "type": "address"
1028
+ name: '_aaveV3',
1029
+ type: 'address',
1030
1030
  },
1031
1031
  {
1032
- "name": "_addressProvider",
1033
- "type": "address"
1032
+ name: '_addressProvider',
1033
+ type: 'address',
1034
1034
  },
1035
1035
  {
1036
- "name": "_addyRegistry",
1037
- "type": "address"
1038
- }
1036
+ name: '_addyRegistry',
1037
+ type: 'address',
1038
+ },
1039
1039
  ],
1040
- "outputs": [],
1041
- "stateMutability": "nonpayable",
1042
- "type": "constructor"
1043
- }
1040
+ outputs: [],
1041
+ stateMutability: 'nonpayable',
1042
+ type: 'constructor',
1043
+ },
1044
1044
  ];
1045
- export const deployAddress = undefined;
1045
+ export const deployAddress = '0x904CCd911533259C1d6B4C50d87DE8130ABeb55D';
1046
1046
  function getRequest(method, args, contractAddressOrOptions) {
1047
1047
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1048
1048
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;