@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,924 +5,924 @@
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": "oraclePartnerId",
18
- "type": "uint256"
16
+ indexed: false,
17
+ name: 'oraclePartnerId',
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": "NewOraclePartnerRegistered",
27
- "type": "event"
26
+ name: 'NewOraclePartnerRegistered',
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": "prevAddr",
40
- "type": "address"
38
+ indexed: true,
39
+ name: 'prevAddr',
40
+ type: 'address',
41
41
  },
42
42
  {
43
- "indexed": false,
44
- "name": "oraclePartnerId",
45
- "type": "uint256"
43
+ indexed: false,
44
+ name: 'oraclePartnerId',
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": "OraclePartnerAddrUpdated",
59
- "type": "event"
58
+ name: 'OraclePartnerAddrUpdated',
59
+ type: 'event',
60
60
  },
61
61
  {
62
- "anonymous": false,
63
- "inputs": [
62
+ anonymous: false,
63
+ inputs: [
64
64
  {
65
- "indexed": true,
66
- "name": "prevAddr",
67
- "type": "address"
65
+ indexed: true,
66
+ name: 'prevAddr',
67
+ type: 'address',
68
68
  },
69
69
  {
70
- "indexed": false,
71
- "name": "oraclePartnerId",
72
- "type": "uint256"
70
+ indexed: false,
71
+ name: 'oraclePartnerId',
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": "OraclePartnerAddrDisabled",
86
- "type": "event"
85
+ name: 'OraclePartnerAddrDisabled',
86
+ type: 'event',
87
87
  },
88
88
  {
89
- "anonymous": false,
90
- "inputs": [
89
+ anonymous: false,
90
+ inputs: [
91
91
  {
92
- "indexed": false,
93
- "name": "numIds",
94
- "type": "uint256"
95
- }
92
+ indexed: false,
93
+ name: 'numIds',
94
+ type: 'uint256',
95
+ },
96
96
  ],
97
- "name": "PriorityOraclePartnerIdsModified",
98
- "type": "event"
97
+ name: 'PriorityOraclePartnerIdsModified',
98
+ type: 'event',
99
99
  },
100
100
  {
101
- "anonymous": false,
102
- "inputs": [
101
+ anonymous: false,
102
+ inputs: [
103
103
  {
104
- "indexed": false,
105
- "name": "staleTime",
106
- "type": "uint256"
107
- }
104
+ indexed: false,
105
+ name: 'staleTime',
106
+ type: 'uint256',
107
+ },
108
108
  ],
109
- "name": "StaleTimeSet",
110
- "type": "event"
109
+ name: 'StaleTimeSet',
110
+ type: 'event',
111
111
  },
112
112
  {
113
- "anonymous": false,
114
- "inputs": [
113
+ anonymous: false,
114
+ inputs: [
115
115
  {
116
- "indexed": true,
117
- "name": "addr",
118
- "type": "address"
119
- }
116
+ indexed: true,
117
+ name: 'addr',
118
+ type: 'address',
119
+ },
120
120
  ],
121
- "name": "LocalGovernorSet",
122
- "type": "event"
121
+ name: 'LocalGovernorSet',
122
+ type: 'event',
123
123
  },
124
124
  {
125
- "inputs": [
125
+ inputs: [
126
126
  {
127
- "name": "_address",
128
- "type": "address"
129
- }
127
+ name: '_address',
128
+ type: 'address',
129
+ },
130
130
  ],
131
- "name": "isGovernor",
132
- "outputs": [
131
+ name: 'isGovernor',
132
+ outputs: [
133
133
  {
134
- "name": "",
135
- "type": "bool"
136
- }
134
+ name: '',
135
+ type: 'bool',
136
+ },
137
137
  ],
138
- "stateMutability": "view",
139
- "type": "function"
138
+ stateMutability: 'view',
139
+ type: 'function',
140
140
  },
141
141
  {
142
- "inputs": [
142
+ inputs: [
143
143
  {
144
- "name": "_newGovernor",
145
- "type": "address"
146
- }
144
+ name: '_newGovernor',
145
+ type: 'address',
146
+ },
147
147
  ],
148
- "name": "isValidLocalGovernor",
149
- "outputs": [
148
+ name: 'isValidLocalGovernor',
149
+ outputs: [
150
150
  {
151
- "name": "",
152
- "type": "bool"
153
- }
151
+ name: '',
152
+ type: 'bool',
153
+ },
154
154
  ],
155
- "stateMutability": "view",
156
- "type": "function"
155
+ stateMutability: 'view',
156
+ type: 'function',
157
157
  },
158
158
  {
159
- "inputs": [
159
+ inputs: [
160
160
  {
161
- "name": "_newGovernor",
162
- "type": "address"
163
- }
161
+ name: '_newGovernor',
162
+ type: 'address',
163
+ },
164
164
  ],
165
- "name": "setLocalGovernor",
166
- "outputs": [
165
+ name: 'setLocalGovernor',
166
+ outputs: [
167
167
  {
168
- "name": "",
169
- "type": "bool"
170
- }
168
+ name: '',
169
+ type: 'bool',
170
+ },
171
171
  ],
172
- "stateMutability": "nonpayable",
173
- "type": "function"
172
+ stateMutability: 'nonpayable',
173
+ type: 'function',
174
174
  },
175
175
  {
176
- "inputs": [],
177
- "name": "localGovernor",
178
- "outputs": [
176
+ inputs: [],
177
+ name: 'localGovernor',
178
+ outputs: [
179
179
  {
180
- "name": "",
181
- "type": "address"
182
- }
180
+ name: '',
181
+ type: 'address',
182
+ },
183
183
  ],
184
- "stateMutability": "view",
185
- "type": "function"
184
+ stateMutability: 'view',
185
+ type: 'function',
186
186
  },
187
187
  {
188
- "inputs": [
188
+ inputs: [
189
189
  {
190
- "name": "_asset",
191
- "type": "address"
192
- }
190
+ name: '_asset',
191
+ type: 'address',
192
+ },
193
193
  ],
194
- "name": "getPrice",
195
- "outputs": [
194
+ name: 'getPrice',
195
+ outputs: [
196
196
  {
197
- "name": "",
198
- "type": "uint256"
199
- }
197
+ name: '',
198
+ type: 'uint256',
199
+ },
200
200
  ],
201
- "stateMutability": "view",
202
- "type": "function"
201
+ stateMutability: 'view',
202
+ type: 'function',
203
203
  },
204
204
  {
205
- "inputs": [
205
+ inputs: [
206
206
  {
207
- "name": "_asset",
208
- "type": "address"
207
+ name: '_asset',
208
+ type: 'address',
209
209
  },
210
210
  {
211
- "name": "_shouldRaise",
212
- "type": "bool"
213
- }
211
+ name: '_shouldRaise',
212
+ type: 'bool',
213
+ },
214
214
  ],
215
- "name": "getPrice",
216
- "outputs": [
215
+ name: 'getPrice',
216
+ outputs: [
217
217
  {
218
- "name": "",
219
- "type": "uint256"
220
- }
218
+ name: '',
219
+ type: 'uint256',
220
+ },
221
221
  ],
222
- "stateMutability": "view",
223
- "type": "function"
222
+ stateMutability: 'view',
223
+ type: 'function',
224
224
  },
225
225
  {
226
- "inputs": [
226
+ inputs: [
227
227
  {
228
- "name": "_asset",
229
- "type": "address"
228
+ name: '_asset',
229
+ type: 'address',
230
230
  },
231
231
  {
232
- "name": "_amount",
233
- "type": "uint256"
234
- }
232
+ name: '_amount',
233
+ type: 'uint256',
234
+ },
235
235
  ],
236
- "name": "getUsdValue",
237
- "outputs": [
236
+ name: 'getUsdValue',
237
+ outputs: [
238
238
  {
239
- "name": "",
240
- "type": "uint256"
241
- }
239
+ name: '',
240
+ type: 'uint256',
241
+ },
242
242
  ],
243
- "stateMutability": "view",
244
- "type": "function"
243
+ stateMutability: 'view',
244
+ type: 'function',
245
245
  },
246
246
  {
247
- "inputs": [
247
+ inputs: [
248
248
  {
249
- "name": "_asset",
250
- "type": "address"
249
+ name: '_asset',
250
+ type: 'address',
251
251
  },
252
252
  {
253
- "name": "_amount",
254
- "type": "uint256"
253
+ name: '_amount',
254
+ type: 'uint256',
255
255
  },
256
256
  {
257
- "name": "_shouldRaise",
258
- "type": "bool"
259
- }
257
+ name: '_shouldRaise',
258
+ type: 'bool',
259
+ },
260
260
  ],
261
- "name": "getUsdValue",
262
- "outputs": [
261
+ name: 'getUsdValue',
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": "_asset",
275
- "type": "address"
274
+ name: '_asset',
275
+ type: 'address',
276
276
  },
277
277
  {
278
- "name": "_usdValue",
279
- "type": "uint256"
280
- }
278
+ name: '_usdValue',
279
+ type: 'uint256',
280
+ },
281
281
  ],
282
- "name": "getAssetAmount",
283
- "outputs": [
282
+ name: 'getAssetAmount',
283
+ outputs: [
284
284
  {
285
- "name": "",
286
- "type": "uint256"
287
- }
285
+ name: '',
286
+ type: 'uint256',
287
+ },
288
288
  ],
289
- "stateMutability": "view",
290
- "type": "function"
289
+ stateMutability: 'view',
290
+ type: 'function',
291
291
  },
292
292
  {
293
- "inputs": [
293
+ inputs: [
294
294
  {
295
- "name": "_asset",
296
- "type": "address"
295
+ name: '_asset',
296
+ type: 'address',
297
297
  },
298
298
  {
299
- "name": "_usdValue",
300
- "type": "uint256"
299
+ name: '_usdValue',
300
+ type: 'uint256',
301
301
  },
302
302
  {
303
- "name": "_shouldRaise",
304
- "type": "bool"
305
- }
303
+ name: '_shouldRaise',
304
+ type: 'bool',
305
+ },
306
306
  ],
307
- "name": "getAssetAmount",
308
- "outputs": [
307
+ name: 'getAssetAmount',
308
+ outputs: [
309
309
  {
310
- "name": "",
311
- "type": "uint256"
312
- }
310
+ name: '',
311
+ type: 'uint256',
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": "_asset",
321
- "type": "address"
322
- }
320
+ name: '_asset',
321
+ type: 'address',
322
+ },
323
323
  ],
324
- "name": "hasPriceFeed",
325
- "outputs": [
324
+ name: 'hasPriceFeed',
325
+ outputs: [
326
326
  {
327
- "name": "",
328
- "type": "bool"
329
- }
327
+ name: '',
328
+ type: 'bool',
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": "_amount",
338
- "type": "uint256"
339
- }
337
+ name: '_amount',
338
+ type: 'uint256',
339
+ },
340
340
  ],
341
- "name": "getEthUsdValue",
342
- "outputs": [
341
+ name: 'getEthUsdValue',
342
+ outputs: [
343
343
  {
344
- "name": "",
345
- "type": "uint256"
346
- }
344
+ name: '',
345
+ type: 'uint256',
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": "_amount",
355
- "type": "uint256"
354
+ name: '_amount',
355
+ type: 'uint256',
356
356
  },
357
357
  {
358
- "name": "_shouldRaise",
359
- "type": "bool"
360
- }
358
+ name: '_shouldRaise',
359
+ type: 'bool',
360
+ },
361
361
  ],
362
- "name": "getEthUsdValue",
363
- "outputs": [
362
+ name: 'getEthUsdValue',
363
+ outputs: [
364
364
  {
365
- "name": "",
366
- "type": "uint256"
367
- }
365
+ name: '',
366
+ type: 'uint256',
367
+ },
368
368
  ],
369
- "stateMutability": "view",
370
- "type": "function"
369
+ stateMutability: 'view',
370
+ type: 'function',
371
371
  },
372
372
  {
373
- "inputs": [
373
+ inputs: [
374
374
  {
375
- "name": "_usdValue",
376
- "type": "uint256"
377
- }
375
+ name: '_usdValue',
376
+ type: 'uint256',
377
+ },
378
378
  ],
379
- "name": "getEthAmount",
380
- "outputs": [
379
+ name: 'getEthAmount',
380
+ outputs: [
381
381
  {
382
- "name": "",
383
- "type": "uint256"
384
- }
382
+ name: '',
383
+ type: 'uint256',
384
+ },
385
385
  ],
386
- "stateMutability": "view",
387
- "type": "function"
386
+ stateMutability: 'view',
387
+ type: 'function',
388
388
  },
389
389
  {
390
- "inputs": [
390
+ inputs: [
391
391
  {
392
- "name": "_usdValue",
393
- "type": "uint256"
392
+ name: '_usdValue',
393
+ type: 'uint256',
394
394
  },
395
395
  {
396
- "name": "_shouldRaise",
397
- "type": "bool"
398
- }
396
+ name: '_shouldRaise',
397
+ type: 'bool',
398
+ },
399
399
  ],
400
- "name": "getEthAmount",
401
- "outputs": [
400
+ name: 'getEthAmount',
401
+ outputs: [
402
402
  {
403
- "name": "",
404
- "type": "uint256"
405
- }
403
+ name: '',
404
+ type: 'uint256',
405
+ },
406
406
  ],
407
- "stateMutability": "view",
408
- "type": "function"
407
+ stateMutability: 'view',
408
+ type: 'function',
409
409
  },
410
410
  {
411
- "inputs": [
411
+ inputs: [
412
412
  {
413
- "name": "_addr",
414
- "type": "address"
415
- }
413
+ name: '_addr',
414
+ type: 'address',
415
+ },
416
416
  ],
417
- "name": "isValidNewOraclePartnerAddr",
418
- "outputs": [
417
+ name: 'isValidNewOraclePartnerAddr',
418
+ outputs: [
419
419
  {
420
- "name": "",
421
- "type": "bool"
422
- }
420
+ name: '',
421
+ type: 'bool',
422
+ },
423
423
  ],
424
- "stateMutability": "view",
425
- "type": "function"
424
+ stateMutability: 'view',
425
+ type: 'function',
426
426
  },
427
427
  {
428
- "inputs": [
428
+ inputs: [
429
429
  {
430
- "name": "_addr",
431
- "type": "address"
430
+ name: '_addr',
431
+ type: 'address',
432
432
  },
433
433
  {
434
- "name": "_description",
435
- "type": "string"
436
- }
434
+ name: '_description',
435
+ type: 'string',
436
+ },
437
437
  ],
438
- "name": "registerNewOraclePartner",
439
- "outputs": [
438
+ name: 'registerNewOraclePartner',
439
+ outputs: [
440
440
  {
441
- "name": "",
442
- "type": "uint256"
443
- }
441
+ name: '',
442
+ type: 'uint256',
443
+ },
444
444
  ],
445
- "stateMutability": "nonpayable",
446
- "type": "function"
445
+ stateMutability: 'nonpayable',
446
+ type: 'function',
447
447
  },
448
448
  {
449
- "inputs": [
449
+ inputs: [
450
450
  {
451
- "name": "_oracleId",
452
- "type": "uint256"
451
+ name: '_oracleId',
452
+ type: 'uint256',
453
453
  },
454
454
  {
455
- "name": "_newAddr",
456
- "type": "address"
457
- }
455
+ name: '_newAddr',
456
+ type: 'address',
457
+ },
458
458
  ],
459
- "name": "isValidOraclePartnerUpdate",
460
- "outputs": [
459
+ name: 'isValidOraclePartnerUpdate',
460
+ outputs: [
461
461
  {
462
- "name": "",
463
- "type": "bool"
464
- }
462
+ name: '',
463
+ type: 'bool',
464
+ },
465
465
  ],
466
- "stateMutability": "view",
467
- "type": "function"
466
+ stateMutability: 'view',
467
+ type: 'function',
468
468
  },
469
469
  {
470
- "inputs": [
470
+ inputs: [
471
471
  {
472
- "name": "_oracleId",
473
- "type": "uint256"
472
+ name: '_oracleId',
473
+ type: 'uint256',
474
474
  },
475
475
  {
476
- "name": "_newAddr",
477
- "type": "address"
478
- }
476
+ name: '_newAddr',
477
+ type: 'address',
478
+ },
479
479
  ],
480
- "name": "updateOraclePartnerAddr",
481
- "outputs": [
480
+ name: 'updateOraclePartnerAddr',
481
+ outputs: [
482
482
  {
483
- "name": "",
484
- "type": "bool"
485
- }
483
+ name: '',
484
+ type: 'bool',
485
+ },
486
486
  ],
487
- "stateMutability": "nonpayable",
488
- "type": "function"
487
+ stateMutability: 'nonpayable',
488
+ type: 'function',
489
489
  },
490
490
  {
491
- "inputs": [
491
+ inputs: [
492
492
  {
493
- "name": "_oracleId",
494
- "type": "uint256"
495
- }
493
+ name: '_oracleId',
494
+ type: 'uint256',
495
+ },
496
496
  ],
497
- "name": "isValidOraclePartnerDisable",
498
- "outputs": [
497
+ name: 'isValidOraclePartnerDisable',
498
+ outputs: [
499
499
  {
500
- "name": "",
501
- "type": "bool"
502
- }
500
+ name: '',
501
+ type: 'bool',
502
+ },
503
503
  ],
504
- "stateMutability": "view",
505
- "type": "function"
504
+ stateMutability: 'view',
505
+ type: 'function',
506
506
  },
507
507
  {
508
- "inputs": [
508
+ inputs: [
509
509
  {
510
- "name": "_oracleId",
511
- "type": "uint256"
512
- }
510
+ name: '_oracleId',
511
+ type: 'uint256',
512
+ },
513
513
  ],
514
- "name": "disableOraclePartnerAddr",
515
- "outputs": [
514
+ name: 'disableOraclePartnerAddr',
515
+ outputs: [
516
516
  {
517
- "name": "",
518
- "type": "bool"
519
- }
517
+ name: '',
518
+ type: 'bool',
519
+ },
520
520
  ],
521
- "stateMutability": "nonpayable",
522
- "type": "function"
521
+ stateMutability: 'nonpayable',
522
+ type: 'function',
523
523
  },
524
524
  {
525
- "inputs": [],
526
- "name": "getPriorityOraclePartnerIds",
527
- "outputs": [
525
+ inputs: [],
526
+ name: 'getPriorityOraclePartnerIds',
527
+ outputs: [
528
528
  {
529
- "name": "",
530
- "type": "uint256[]"
531
- }
529
+ name: '',
530
+ type: 'uint256[]',
531
+ },
532
532
  ],
533
- "stateMutability": "view",
534
- "type": "function"
533
+ stateMutability: 'view',
534
+ type: 'function',
535
535
  },
536
536
  {
537
- "inputs": [
537
+ inputs: [
538
538
  {
539
- "name": "_priorityIds",
540
- "type": "uint256[]"
541
- }
539
+ name: '_priorityIds',
540
+ type: 'uint256[]',
541
+ },
542
542
  ],
543
- "name": "areValidPriorityOraclePartnerIds",
544
- "outputs": [
543
+ name: 'areValidPriorityOraclePartnerIds',
544
+ outputs: [
545
545
  {
546
- "name": "",
547
- "type": "bool"
548
- }
546
+ name: '',
547
+ type: 'bool',
548
+ },
549
549
  ],
550
- "stateMutability": "view",
551
- "type": "function"
550
+ stateMutability: 'view',
551
+ type: 'function',
552
552
  },
553
553
  {
554
- "inputs": [
554
+ inputs: [
555
555
  {
556
- "name": "_priorityIds",
557
- "type": "uint256[]"
558
- }
556
+ name: '_priorityIds',
557
+ type: 'uint256[]',
558
+ },
559
559
  ],
560
- "name": "setPriorityOraclePartnerIds",
561
- "outputs": [
560
+ name: 'setPriorityOraclePartnerIds',
561
+ outputs: [
562
562
  {
563
- "name": "",
564
- "type": "bool"
565
- }
563
+ name: '',
564
+ type: 'bool',
565
+ },
566
566
  ],
567
- "stateMutability": "nonpayable",
568
- "type": "function"
567
+ stateMutability: 'nonpayable',
568
+ type: 'function',
569
569
  },
570
570
  {
571
- "inputs": [
571
+ inputs: [
572
572
  {
573
- "name": "_staleTime",
574
- "type": "uint256"
575
- }
573
+ name: '_staleTime',
574
+ type: 'uint256',
575
+ },
576
576
  ],
577
- "name": "isValidStaleTime",
578
- "outputs": [
577
+ name: 'isValidStaleTime',
578
+ outputs: [
579
579
  {
580
- "name": "",
581
- "type": "bool"
582
- }
580
+ name: '',
581
+ type: 'bool',
582
+ },
583
583
  ],
584
- "stateMutability": "view",
585
- "type": "function"
584
+ stateMutability: 'view',
585
+ type: 'function',
586
586
  },
587
587
  {
588
- "inputs": [
588
+ inputs: [
589
589
  {
590
- "name": "_staleTime",
591
- "type": "uint256"
592
- }
590
+ name: '_staleTime',
591
+ type: 'uint256',
592
+ },
593
593
  ],
594
- "name": "setStaleTime",
595
- "outputs": [
594
+ name: 'setStaleTime',
595
+ outputs: [
596
596
  {
597
- "name": "",
598
- "type": "bool"
599
- }
597
+ name: '',
598
+ type: 'bool',
599
+ },
600
600
  ],
601
- "stateMutability": "nonpayable",
602
- "type": "function"
601
+ stateMutability: 'nonpayable',
602
+ type: 'function',
603
603
  },
604
604
  {
605
- "inputs": [
605
+ inputs: [
606
606
  {
607
- "name": "_addr",
608
- "type": "address"
609
- }
607
+ name: '_addr',
608
+ type: 'address',
609
+ },
610
610
  ],
611
- "name": "isValidOraclePartnerAddr",
612
- "outputs": [
611
+ name: 'isValidOraclePartnerAddr',
612
+ outputs: [
613
613
  {
614
- "name": "",
615
- "type": "bool"
616
- }
614
+ name: '',
615
+ type: 'bool',
616
+ },
617
617
  ],
618
- "stateMutability": "view",
619
- "type": "function"
618
+ stateMutability: 'view',
619
+ type: 'function',
620
620
  },
621
621
  {
622
- "inputs": [
622
+ inputs: [
623
623
  {
624
- "name": "_oracleId",
625
- "type": "uint256"
626
- }
624
+ name: '_oracleId',
625
+ type: 'uint256',
626
+ },
627
627
  ],
628
- "name": "isValidOraclePartnerId",
629
- "outputs": [
628
+ name: 'isValidOraclePartnerId',
629
+ outputs: [
630
630
  {
631
- "name": "",
632
- "type": "bool"
633
- }
631
+ name: '',
632
+ type: 'bool',
633
+ },
634
634
  ],
635
- "stateMutability": "view",
636
- "type": "function"
635
+ stateMutability: 'view',
636
+ type: 'function',
637
637
  },
638
638
  {
639
- "inputs": [
639
+ inputs: [
640
640
  {
641
- "name": "_addr",
642
- "type": "address"
643
- }
641
+ name: '_addr',
642
+ type: 'address',
643
+ },
644
644
  ],
645
- "name": "getOraclePartnerId",
646
- "outputs": [
645
+ name: 'getOraclePartnerId',
646
+ outputs: [
647
647
  {
648
- "name": "",
649
- "type": "uint256"
650
- }
648
+ name: '',
649
+ type: 'uint256',
650
+ },
651
651
  ],
652
- "stateMutability": "view",
653
- "type": "function"
652
+ stateMutability: 'view',
653
+ type: 'function',
654
654
  },
655
655
  {
656
- "inputs": [
656
+ inputs: [
657
657
  {
658
- "name": "_oracleId",
659
- "type": "uint256"
660
- }
658
+ name: '_oracleId',
659
+ type: 'uint256',
660
+ },
661
661
  ],
662
- "name": "getOraclePartnerAddr",
663
- "outputs": [
662
+ name: 'getOraclePartnerAddr',
663
+ outputs: [
664
664
  {
665
- "name": "",
666
- "type": "address"
667
- }
665
+ name: '',
666
+ type: 'address',
667
+ },
668
668
  ],
669
- "stateMutability": "view",
670
- "type": "function"
669
+ stateMutability: 'view',
670
+ type: 'function',
671
671
  },
672
672
  {
673
- "inputs": [
673
+ inputs: [
674
674
  {
675
- "name": "_oracleId",
676
- "type": "uint256"
677
- }
675
+ name: '_oracleId',
676
+ type: 'uint256',
677
+ },
678
678
  ],
679
- "name": "getOraclePartnerInfo",
680
- "outputs": [
679
+ name: 'getOraclePartnerInfo',
680
+ outputs: [
681
681
  {
682
- "components": [
682
+ components: [
683
683
  {
684
- "name": "addr",
685
- "type": "address"
684
+ name: 'addr',
685
+ type: 'address',
686
686
  },
687
687
  {
688
- "name": "version",
689
- "type": "uint256"
688
+ name: 'version',
689
+ type: 'uint256',
690
690
  },
691
691
  {
692
- "name": "lastModified",
693
- "type": "uint256"
692
+ name: 'lastModified',
693
+ type: 'uint256',
694
694
  },
695
695
  {
696
- "name": "description",
697
- "type": "string"
698
- }
696
+ name: 'description',
697
+ type: 'string',
698
+ },
699
699
  ],
700
- "name": "",
701
- "type": "tuple"
702
- }
700
+ name: '',
701
+ type: 'tuple',
702
+ },
703
703
  ],
704
- "stateMutability": "view",
705
- "type": "function"
704
+ stateMutability: 'view',
705
+ type: 'function',
706
706
  },
707
707
  {
708
- "inputs": [
708
+ inputs: [
709
709
  {
710
- "name": "_oracleId",
711
- "type": "uint256"
712
- }
710
+ name: '_oracleId',
711
+ type: 'uint256',
712
+ },
713
713
  ],
714
- "name": "getOraclePartnerDescription",
715
- "outputs": [
714
+ name: 'getOraclePartnerDescription',
715
+ outputs: [
716
716
  {
717
- "name": "",
718
- "type": "string"
719
- }
717
+ name: '',
718
+ type: 'string',
719
+ },
720
720
  ],
721
- "stateMutability": "view",
722
- "type": "function"
721
+ stateMutability: 'view',
722
+ type: 'function',
723
723
  },
724
724
  {
725
- "inputs": [],
726
- "name": "getNumOraclePartners",
727
- "outputs": [
725
+ inputs: [],
726
+ name: 'getNumOraclePartners',
727
+ outputs: [
728
728
  {
729
- "name": "",
730
- "type": "uint256"
731
- }
729
+ name: '',
730
+ type: 'uint256',
731
+ },
732
732
  ],
733
- "stateMutability": "view",
734
- "type": "function"
733
+ stateMutability: 'view',
734
+ type: 'function',
735
735
  },
736
736
  {
737
- "inputs": [],
738
- "name": "getLastOraclePartnerAddr",
739
- "outputs": [
737
+ inputs: [],
738
+ name: 'getLastOraclePartnerAddr',
739
+ outputs: [
740
740
  {
741
- "name": "",
742
- "type": "address"
743
- }
741
+ name: '',
742
+ type: 'address',
743
+ },
744
744
  ],
745
- "stateMutability": "view",
746
- "type": "function"
745
+ stateMutability: 'view',
746
+ type: 'function',
747
747
  },
748
748
  {
749
- "inputs": [],
750
- "name": "getLastOraclePartnerId",
751
- "outputs": [
749
+ inputs: [],
750
+ name: 'getLastOraclePartnerId',
751
+ outputs: [
752
752
  {
753
- "name": "",
754
- "type": "uint256"
755
- }
753
+ name: '',
754
+ type: 'uint256',
755
+ },
756
756
  ],
757
- "stateMutability": "view",
758
- "type": "function"
757
+ stateMutability: 'view',
758
+ type: 'function',
759
759
  },
760
760
  {
761
- "inputs": [
761
+ inputs: [
762
762
  {
763
- "name": "arg0",
764
- "type": "uint256"
765
- }
763
+ name: 'arg0',
764
+ type: 'uint256',
765
+ },
766
766
  ],
767
- "name": "oraclePartnerInfo",
768
- "outputs": [
767
+ name: 'oraclePartnerInfo',
768
+ outputs: [
769
769
  {
770
- "components": [
770
+ components: [
771
771
  {
772
- "name": "addr",
773
- "type": "address"
772
+ name: 'addr',
773
+ type: 'address',
774
774
  },
775
775
  {
776
- "name": "version",
777
- "type": "uint256"
776
+ name: 'version',
777
+ type: 'uint256',
778
778
  },
779
779
  {
780
- "name": "lastModified",
781
- "type": "uint256"
780
+ name: 'lastModified',
781
+ type: 'uint256',
782
782
  },
783
783
  {
784
- "name": "description",
785
- "type": "string"
786
- }
784
+ name: 'description',
785
+ type: 'string',
786
+ },
787
787
  ],
788
- "name": "",
789
- "type": "tuple"
790
- }
788
+ name: '',
789
+ type: 'tuple',
790
+ },
791
791
  ],
792
- "stateMutability": "view",
793
- "type": "function"
792
+ stateMutability: 'view',
793
+ type: 'function',
794
794
  },
795
795
  {
796
- "inputs": [
796
+ inputs: [
797
797
  {
798
- "name": "arg0",
799
- "type": "address"
800
- }
798
+ name: 'arg0',
799
+ type: 'address',
800
+ },
801
801
  ],
802
- "name": "oraclePartnerAddrToId",
803
- "outputs": [
802
+ name: 'oraclePartnerAddrToId',
803
+ outputs: [
804
804
  {
805
- "name": "",
806
- "type": "uint256"
807
- }
805
+ name: '',
806
+ type: 'uint256',
807
+ },
808
808
  ],
809
- "stateMutability": "view",
810
- "type": "function"
809
+ stateMutability: 'view',
810
+ type: 'function',
811
811
  },
812
812
  {
813
- "inputs": [],
814
- "name": "numOraclePartners",
815
- "outputs": [
813
+ inputs: [],
814
+ name: 'numOraclePartners',
815
+ outputs: [
816
816
  {
817
- "name": "",
818
- "type": "uint256"
819
- }
817
+ name: '',
818
+ type: 'uint256',
819
+ },
820
820
  ],
821
- "stateMutability": "view",
822
- "type": "function"
821
+ stateMutability: 'view',
822
+ type: 'function',
823
823
  },
824
824
  {
825
- "inputs": [
825
+ inputs: [
826
826
  {
827
- "name": "arg0",
828
- "type": "uint256"
829
- }
827
+ name: 'arg0',
828
+ type: 'uint256',
829
+ },
830
830
  ],
831
- "name": "priorityOraclePartnerIds",
832
- "outputs": [
831
+ name: 'priorityOraclePartnerIds',
832
+ outputs: [
833
833
  {
834
- "name": "",
835
- "type": "uint256"
836
- }
834
+ name: '',
835
+ type: 'uint256',
836
+ },
837
837
  ],
838
- "stateMutability": "view",
839
- "type": "function"
838
+ stateMutability: 'view',
839
+ type: 'function',
840
840
  },
841
841
  {
842
- "inputs": [],
843
- "name": "staleTime",
844
- "outputs": [
842
+ inputs: [],
843
+ name: 'staleTime',
844
+ outputs: [
845
845
  {
846
- "name": "",
847
- "type": "uint256"
848
- }
846
+ name: '',
847
+ type: 'uint256',
848
+ },
849
849
  ],
850
- "stateMutability": "view",
851
- "type": "function"
850
+ stateMutability: 'view',
851
+ type: 'function',
852
852
  },
853
853
  {
854
- "inputs": [],
855
- "name": "ADDY_REGISTRY",
856
- "outputs": [
854
+ inputs: [],
855
+ name: 'ADDY_REGISTRY',
856
+ outputs: [
857
857
  {
858
- "name": "",
859
- "type": "address"
860
- }
858
+ name: '',
859
+ type: 'address',
860
+ },
861
861
  ],
862
- "stateMutability": "view",
863
- "type": "function"
862
+ stateMutability: 'view',
863
+ type: 'function',
864
864
  },
865
865
  {
866
- "inputs": [],
867
- "name": "ETH",
868
- "outputs": [
866
+ inputs: [],
867
+ name: 'ETH',
868
+ outputs: [
869
869
  {
870
- "name": "",
871
- "type": "address"
872
- }
870
+ name: '',
871
+ type: 'address',
872
+ },
873
873
  ],
874
- "stateMutability": "view",
875
- "type": "function"
874
+ stateMutability: 'view',
875
+ type: 'function',
876
876
  },
877
877
  {
878
- "inputs": [],
879
- "name": "MIN_STALE_TIME",
880
- "outputs": [
878
+ inputs: [],
879
+ name: 'MIN_STALE_TIME',
880
+ outputs: [
881
881
  {
882
- "name": "",
883
- "type": "uint256"
884
- }
882
+ name: '',
883
+ type: 'uint256',
884
+ },
885
885
  ],
886
- "stateMutability": "view",
887
- "type": "function"
886
+ stateMutability: 'view',
887
+ type: 'function',
888
888
  },
889
889
  {
890
- "inputs": [],
891
- "name": "MAX_STALE_TIME",
892
- "outputs": [
890
+ inputs: [],
891
+ name: 'MAX_STALE_TIME',
892
+ outputs: [
893
893
  {
894
- "name": "",
895
- "type": "uint256"
896
- }
894
+ name: '',
895
+ type: 'uint256',
896
+ },
897
897
  ],
898
- "stateMutability": "view",
899
- "type": "function"
898
+ stateMutability: 'view',
899
+ type: 'function',
900
900
  },
901
901
  {
902
- "inputs": [
902
+ inputs: [
903
903
  {
904
- "name": "_ethAddr",
905
- "type": "address"
904
+ name: '_ethAddr',
905
+ type: 'address',
906
906
  },
907
907
  {
908
- "name": "_minStaleTime",
909
- "type": "uint256"
908
+ name: '_minStaleTime',
909
+ type: 'uint256',
910
910
  },
911
911
  {
912
- "name": "_maxStaleTime",
913
- "type": "uint256"
912
+ name: '_maxStaleTime',
913
+ type: 'uint256',
914
914
  },
915
915
  {
916
- "name": "_addyRegistry",
917
- "type": "address"
918
- }
916
+ name: '_addyRegistry',
917
+ type: 'address',
918
+ },
919
919
  ],
920
- "outputs": [],
921
- "stateMutability": "nonpayable",
922
- "type": "constructor"
923
- }
920
+ outputs: [],
921
+ stateMutability: 'nonpayable',
922
+ type: 'constructor',
923
+ },
924
924
  ];
925
- export const deployAddress = undefined;
925
+ export const deployAddress = '0xc56add9377Bc3a39f1B928Abc7440E43B6b10e1f';
926
926
  function getRequest(method, args, contractAddressOrOptions) {
927
927
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
928
928
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;