@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,503 +5,503 @@
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": "addr",
13
- "type": "address"
11
+ indexed: true,
12
+ name: 'addr',
13
+ type: 'address',
14
14
  },
15
15
  {
16
- "indexed": false,
17
- "name": "addyId",
18
- "type": "uint256"
16
+ indexed: false,
17
+ name: 'addyId',
18
+ type: 'uint256',
19
19
  },
20
20
  {
21
- "indexed": false,
22
- "name": "description",
23
- "type": "string"
24
- }
21
+ indexed: false,
22
+ name: 'description',
23
+ type: 'string',
24
+ },
25
25
  ],
26
- "name": "NewAddyRegistered",
27
- "type": "event"
26
+ name: 'NewAddyRegistered',
27
+ type: 'event',
28
28
  },
29
29
  {
30
- "anonymous": false,
31
- "inputs": [
30
+ anonymous: false,
31
+ inputs: [
32
32
  {
33
- "indexed": true,
34
- "name": "newAddr",
35
- "type": "address"
33
+ indexed: true,
34
+ name: 'newAddr',
35
+ type: 'address',
36
36
  },
37
37
  {
38
- "indexed": true,
39
- "name": "prevAddy",
40
- "type": "address"
38
+ indexed: true,
39
+ name: 'prevAddy',
40
+ type: 'address',
41
41
  },
42
42
  {
43
- "indexed": false,
44
- "name": "addyId",
45
- "type": "uint256"
43
+ indexed: false,
44
+ name: 'addyId',
45
+ type: 'uint256',
46
46
  },
47
47
  {
48
- "indexed": false,
49
- "name": "version",
50
- "type": "uint256"
48
+ indexed: false,
49
+ name: 'version',
50
+ type: 'uint256',
51
51
  },
52
52
  {
53
- "indexed": false,
54
- "name": "description",
55
- "type": "string"
56
- }
53
+ indexed: false,
54
+ name: 'description',
55
+ type: 'string',
56
+ },
57
57
  ],
58
- "name": "AddyIdUpdated",
59
- "type": "event"
58
+ name: 'AddyIdUpdated',
59
+ type: 'event',
60
60
  },
61
61
  {
62
- "anonymous": false,
63
- "inputs": [
62
+ anonymous: false,
63
+ inputs: [
64
64
  {
65
- "indexed": true,
66
- "name": "prevAddy",
67
- "type": "address"
65
+ indexed: true,
66
+ name: 'prevAddy',
67
+ type: 'address',
68
68
  },
69
69
  {
70
- "indexed": false,
71
- "name": "addyId",
72
- "type": "uint256"
70
+ indexed: false,
71
+ name: 'addyId',
72
+ type: 'uint256',
73
73
  },
74
74
  {
75
- "indexed": false,
76
- "name": "version",
77
- "type": "uint256"
75
+ indexed: false,
76
+ name: 'version',
77
+ type: 'uint256',
78
78
  },
79
79
  {
80
- "indexed": false,
81
- "name": "description",
82
- "type": "string"
83
- }
80
+ indexed: false,
81
+ name: 'description',
82
+ type: 'string',
83
+ },
84
84
  ],
85
- "name": "AddyIdDisabled",
86
- "type": "event"
85
+ name: 'AddyIdDisabled',
86
+ type: 'event',
87
87
  },
88
88
  {
89
- "anonymous": false,
90
- "inputs": [
89
+ anonymous: false,
90
+ inputs: [
91
91
  {
92
- "indexed": true,
93
- "name": "governor",
94
- "type": "address"
95
- }
92
+ indexed: true,
93
+ name: 'governor',
94
+ type: 'address',
95
+ },
96
96
  ],
97
- "name": "AddyRegistryGovernorSet",
98
- "type": "event"
97
+ name: 'AddyRegistryGovernorSet',
98
+ type: 'event',
99
99
  },
100
100
  {
101
- "anonymous": false,
102
- "inputs": [
101
+ anonymous: false,
102
+ inputs: [
103
103
  {
104
- "indexed": false,
105
- "name": "isActivated",
106
- "type": "bool"
107
- }
104
+ indexed: false,
105
+ name: 'isActivated',
106
+ type: 'bool',
107
+ },
108
108
  ],
109
- "name": "AddyRegistryActivated",
110
- "type": "event"
109
+ name: 'AddyRegistryActivated',
110
+ type: 'event',
111
111
  },
112
112
  {
113
- "inputs": [
113
+ inputs: [
114
114
  {
115
- "name": "_addy",
116
- "type": "address"
117
- }
115
+ name: '_addy',
116
+ type: 'address',
117
+ },
118
118
  ],
119
- "name": "isValidNewAddy",
120
- "outputs": [
119
+ name: 'isValidNewAddy',
120
+ outputs: [
121
121
  {
122
- "name": "",
123
- "type": "bool"
124
- }
122
+ name: '',
123
+ type: 'bool',
124
+ },
125
125
  ],
126
- "stateMutability": "view",
127
- "type": "function"
126
+ stateMutability: 'view',
127
+ type: 'function',
128
128
  },
129
129
  {
130
- "inputs": [
130
+ inputs: [
131
131
  {
132
- "name": "_addy",
133
- "type": "address"
132
+ name: '_addy',
133
+ type: 'address',
134
134
  },
135
135
  {
136
- "name": "_description",
137
- "type": "string"
138
- }
136
+ name: '_description',
137
+ type: 'string',
138
+ },
139
139
  ],
140
- "name": "registerNewAddy",
141
- "outputs": [
140
+ name: 'registerNewAddy',
141
+ outputs: [
142
142
  {
143
- "name": "",
144
- "type": "uint256"
145
- }
143
+ name: '',
144
+ type: 'uint256',
145
+ },
146
146
  ],
147
- "stateMutability": "nonpayable",
148
- "type": "function"
147
+ stateMutability: 'nonpayable',
148
+ type: 'function',
149
149
  },
150
150
  {
151
- "inputs": [
151
+ inputs: [
152
152
  {
153
- "name": "_addyId",
154
- "type": "uint256"
153
+ name: '_addyId',
154
+ type: 'uint256',
155
155
  },
156
156
  {
157
- "name": "_newAddy",
158
- "type": "address"
159
- }
157
+ name: '_newAddy',
158
+ type: 'address',
159
+ },
160
160
  ],
161
- "name": "isValidAddyUpdate",
162
- "outputs": [
161
+ name: 'isValidAddyUpdate',
162
+ outputs: [
163
163
  {
164
- "name": "",
165
- "type": "bool"
166
- }
164
+ name: '',
165
+ type: 'bool',
166
+ },
167
167
  ],
168
- "stateMutability": "view",
169
- "type": "function"
168
+ stateMutability: 'view',
169
+ type: 'function',
170
170
  },
171
171
  {
172
- "inputs": [
172
+ inputs: [
173
173
  {
174
- "name": "_addyId",
175
- "type": "uint256"
174
+ name: '_addyId',
175
+ type: 'uint256',
176
176
  },
177
177
  {
178
- "name": "_newAddy",
179
- "type": "address"
180
- }
178
+ name: '_newAddy',
179
+ type: 'address',
180
+ },
181
181
  ],
182
- "name": "updateAddy",
183
- "outputs": [
182
+ name: 'updateAddy',
183
+ outputs: [
184
184
  {
185
- "name": "",
186
- "type": "bool"
187
- }
185
+ name: '',
186
+ type: 'bool',
187
+ },
188
188
  ],
189
- "stateMutability": "nonpayable",
190
- "type": "function"
189
+ stateMutability: 'nonpayable',
190
+ type: 'function',
191
191
  },
192
192
  {
193
- "inputs": [
193
+ inputs: [
194
194
  {
195
- "name": "_addyId",
196
- "type": "uint256"
197
- }
195
+ name: '_addyId',
196
+ type: 'uint256',
197
+ },
198
198
  ],
199
- "name": "isValidAddyDisable",
200
- "outputs": [
199
+ name: 'isValidAddyDisable',
200
+ outputs: [
201
201
  {
202
- "name": "",
203
- "type": "bool"
204
- }
202
+ name: '',
203
+ type: 'bool',
204
+ },
205
205
  ],
206
- "stateMutability": "view",
207
- "type": "function"
206
+ stateMutability: 'view',
207
+ type: 'function',
208
208
  },
209
209
  {
210
- "inputs": [
210
+ inputs: [
211
211
  {
212
- "name": "_addyId",
213
- "type": "uint256"
214
- }
212
+ name: '_addyId',
213
+ type: 'uint256',
214
+ },
215
215
  ],
216
- "name": "disableAddy",
217
- "outputs": [
216
+ name: 'disableAddy',
217
+ outputs: [
218
218
  {
219
- "name": "",
220
- "type": "bool"
221
- }
219
+ name: '',
220
+ type: 'bool',
221
+ },
222
222
  ],
223
- "stateMutability": "nonpayable",
224
- "type": "function"
223
+ stateMutability: 'nonpayable',
224
+ type: 'function',
225
225
  },
226
226
  {
227
- "inputs": [
227
+ inputs: [
228
228
  {
229
- "name": "_addy",
230
- "type": "address"
231
- }
229
+ name: '_addy',
230
+ type: 'address',
231
+ },
232
232
  ],
233
- "name": "isValidAddy",
234
- "outputs": [
233
+ name: 'isValidAddy',
234
+ outputs: [
235
235
  {
236
- "name": "",
237
- "type": "bool"
238
- }
236
+ name: '',
237
+ type: 'bool',
238
+ },
239
239
  ],
240
- "stateMutability": "view",
241
- "type": "function"
240
+ stateMutability: 'view',
241
+ type: 'function',
242
242
  },
243
243
  {
244
- "inputs": [
244
+ inputs: [
245
245
  {
246
- "name": "_addyId",
247
- "type": "uint256"
248
- }
246
+ name: '_addyId',
247
+ type: 'uint256',
248
+ },
249
249
  ],
250
- "name": "isValidAddyId",
251
- "outputs": [
250
+ name: 'isValidAddyId',
251
+ outputs: [
252
252
  {
253
- "name": "",
254
- "type": "bool"
255
- }
253
+ name: '',
254
+ type: 'bool',
255
+ },
256
256
  ],
257
- "stateMutability": "view",
258
- "type": "function"
257
+ stateMutability: 'view',
258
+ type: 'function',
259
259
  },
260
260
  {
261
- "inputs": [
261
+ inputs: [
262
262
  {
263
- "name": "_addy",
264
- "type": "address"
265
- }
263
+ name: '_addy',
264
+ type: 'address',
265
+ },
266
266
  ],
267
- "name": "getAddyId",
268
- "outputs": [
267
+ name: 'getAddyId',
268
+ outputs: [
269
269
  {
270
- "name": "",
271
- "type": "uint256"
272
- }
270
+ name: '',
271
+ type: 'uint256',
272
+ },
273
273
  ],
274
- "stateMutability": "view",
275
- "type": "function"
274
+ stateMutability: 'view',
275
+ type: 'function',
276
276
  },
277
277
  {
278
- "inputs": [
278
+ inputs: [
279
279
  {
280
- "name": "_addyId",
281
- "type": "uint256"
282
- }
280
+ name: '_addyId',
281
+ type: 'uint256',
282
+ },
283
283
  ],
284
- "name": "getAddy",
285
- "outputs": [
284
+ name: 'getAddy',
285
+ outputs: [
286
286
  {
287
- "name": "",
288
- "type": "address"
289
- }
287
+ name: '',
288
+ type: 'address',
289
+ },
290
290
  ],
291
- "stateMutability": "view",
292
- "type": "function"
291
+ stateMutability: 'view',
292
+ type: 'function',
293
293
  },
294
294
  {
295
- "inputs": [
295
+ inputs: [
296
296
  {
297
- "name": "_addyId",
298
- "type": "uint256"
299
- }
297
+ name: '_addyId',
298
+ type: 'uint256',
299
+ },
300
300
  ],
301
- "name": "getAddyInfo",
302
- "outputs": [
301
+ name: 'getAddyInfo',
302
+ outputs: [
303
303
  {
304
- "components": [
304
+ components: [
305
305
  {
306
- "name": "addr",
307
- "type": "address"
306
+ name: 'addr',
307
+ type: 'address',
308
308
  },
309
309
  {
310
- "name": "version",
311
- "type": "uint256"
310
+ name: 'version',
311
+ type: 'uint256',
312
312
  },
313
313
  {
314
- "name": "lastModified",
315
- "type": "uint256"
314
+ name: 'lastModified',
315
+ type: 'uint256',
316
316
  },
317
317
  {
318
- "name": "description",
319
- "type": "string"
320
- }
318
+ name: 'description',
319
+ type: 'string',
320
+ },
321
321
  ],
322
- "name": "",
323
- "type": "tuple"
324
- }
322
+ name: '',
323
+ type: 'tuple',
324
+ },
325
325
  ],
326
- "stateMutability": "view",
327
- "type": "function"
326
+ stateMutability: 'view',
327
+ type: 'function',
328
328
  },
329
329
  {
330
- "inputs": [
330
+ inputs: [
331
331
  {
332
- "name": "_addyId",
333
- "type": "uint256"
334
- }
332
+ name: '_addyId',
333
+ type: 'uint256',
334
+ },
335
335
  ],
336
- "name": "getAddyDescription",
337
- "outputs": [
336
+ name: 'getAddyDescription',
337
+ outputs: [
338
338
  {
339
- "name": "",
340
- "type": "string"
341
- }
339
+ name: '',
340
+ type: 'string',
341
+ },
342
342
  ],
343
- "stateMutability": "view",
344
- "type": "function"
343
+ stateMutability: 'view',
344
+ type: 'function',
345
345
  },
346
346
  {
347
- "inputs": [],
348
- "name": "getNumAddys",
349
- "outputs": [
347
+ inputs: [],
348
+ name: 'getNumAddys',
349
+ outputs: [
350
350
  {
351
- "name": "",
352
- "type": "uint256"
353
- }
351
+ name: '',
352
+ type: 'uint256',
353
+ },
354
354
  ],
355
- "stateMutability": "view",
356
- "type": "function"
355
+ stateMutability: 'view',
356
+ type: 'function',
357
357
  },
358
358
  {
359
- "inputs": [],
360
- "name": "getLastAddy",
361
- "outputs": [
359
+ inputs: [],
360
+ name: 'getLastAddy',
361
+ outputs: [
362
362
  {
363
- "name": "",
364
- "type": "address"
365
- }
363
+ name: '',
364
+ type: 'address',
365
+ },
366
366
  ],
367
- "stateMutability": "view",
368
- "type": "function"
367
+ stateMutability: 'view',
368
+ type: 'function',
369
369
  },
370
370
  {
371
- "inputs": [],
372
- "name": "getLastAddyId",
373
- "outputs": [
371
+ inputs: [],
372
+ name: 'getLastAddyId',
373
+ outputs: [
374
374
  {
375
- "name": "",
376
- "type": "uint256"
377
- }
375
+ name: '',
376
+ type: 'uint256',
377
+ },
378
378
  ],
379
- "stateMutability": "view",
380
- "type": "function"
379
+ stateMutability: 'view',
380
+ type: 'function',
381
381
  },
382
382
  {
383
- "inputs": [
383
+ inputs: [
384
384
  {
385
- "name": "_newGovernor",
386
- "type": "address"
387
- }
385
+ name: '_newGovernor',
386
+ type: 'address',
387
+ },
388
388
  ],
389
- "name": "isValidGovernor",
390
- "outputs": [
389
+ name: 'isValidGovernor',
390
+ outputs: [
391
391
  {
392
- "name": "",
393
- "type": "bool"
394
- }
392
+ name: '',
393
+ type: 'bool',
394
+ },
395
395
  ],
396
- "stateMutability": "view",
397
- "type": "function"
396
+ stateMutability: 'view',
397
+ type: 'function',
398
398
  },
399
399
  {
400
- "inputs": [
400
+ inputs: [
401
401
  {
402
- "name": "_newGovernor",
403
- "type": "address"
404
- }
402
+ name: '_newGovernor',
403
+ type: 'address',
404
+ },
405
405
  ],
406
- "name": "setGovernor",
407
- "outputs": [
406
+ name: 'setGovernor',
407
+ outputs: [
408
408
  {
409
- "name": "",
410
- "type": "bool"
411
- }
409
+ name: '',
410
+ type: 'bool',
411
+ },
412
412
  ],
413
- "stateMutability": "nonpayable",
414
- "type": "function"
413
+ stateMutability: 'nonpayable',
414
+ type: 'function',
415
415
  },
416
416
  {
417
- "inputs": [
417
+ inputs: [
418
418
  {
419
- "name": "arg0",
420
- "type": "uint256"
421
- }
419
+ name: 'arg0',
420
+ type: 'uint256',
421
+ },
422
422
  ],
423
- "name": "addyInfo",
424
- "outputs": [
423
+ name: 'addyInfo',
424
+ outputs: [
425
425
  {
426
- "components": [
426
+ components: [
427
427
  {
428
- "name": "addr",
429
- "type": "address"
428
+ name: 'addr',
429
+ type: 'address',
430
430
  },
431
431
  {
432
- "name": "version",
433
- "type": "uint256"
432
+ name: 'version',
433
+ type: 'uint256',
434
434
  },
435
435
  {
436
- "name": "lastModified",
437
- "type": "uint256"
436
+ name: 'lastModified',
437
+ type: 'uint256',
438
438
  },
439
439
  {
440
- "name": "description",
441
- "type": "string"
442
- }
440
+ name: 'description',
441
+ type: 'string',
442
+ },
443
443
  ],
444
- "name": "",
445
- "type": "tuple"
446
- }
444
+ name: '',
445
+ type: 'tuple',
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": "arg0",
455
- "type": "address"
456
- }
454
+ name: 'arg0',
455
+ type: 'address',
456
+ },
457
457
  ],
458
- "name": "addyToId",
459
- "outputs": [
458
+ name: 'addyToId',
459
+ outputs: [
460
460
  {
461
- "name": "",
462
- "type": "uint256"
463
- }
461
+ name: '',
462
+ type: 'uint256',
463
+ },
464
464
  ],
465
- "stateMutability": "view",
466
- "type": "function"
465
+ stateMutability: 'view',
466
+ type: 'function',
467
467
  },
468
468
  {
469
- "inputs": [],
470
- "name": "numAddys",
471
- "outputs": [
469
+ inputs: [],
470
+ name: 'numAddys',
471
+ outputs: [
472
472
  {
473
- "name": "",
474
- "type": "uint256"
475
- }
473
+ name: '',
474
+ type: 'uint256',
475
+ },
476
476
  ],
477
- "stateMutability": "view",
478
- "type": "function"
477
+ stateMutability: 'view',
478
+ type: 'function',
479
479
  },
480
480
  {
481
- "inputs": [],
482
- "name": "governor",
483
- "outputs": [
481
+ inputs: [],
482
+ name: 'governor',
483
+ outputs: [
484
484
  {
485
- "name": "",
486
- "type": "address"
487
- }
485
+ name: '',
486
+ type: 'address',
487
+ },
488
488
  ],
489
- "stateMutability": "view",
490
- "type": "function"
489
+ stateMutability: 'view',
490
+ type: 'function',
491
491
  },
492
492
  {
493
- "inputs": [
493
+ inputs: [
494
494
  {
495
- "name": "_governor",
496
- "type": "address"
497
- }
495
+ name: '_governor',
496
+ type: 'address',
497
+ },
498
498
  ],
499
- "outputs": [],
500
- "stateMutability": "nonpayable",
501
- "type": "constructor"
502
- }
499
+ outputs: [],
500
+ stateMutability: 'nonpayable',
501
+ type: 'constructor',
502
+ },
503
503
  ];
504
- export const deployAddress = undefined;
504
+ export const deployAddress = '0x49B08551e452cA99da7dE9B3a60E39e5f10C13CD';
505
505
  function getRequest(method, args, contractAddressOrOptions) {
506
506
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
507
507
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;