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