@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.
- package/dist/contracts/AddyRegistry.d.ts.map +1 -1
- package/dist/contracts/AddyRegistry.js +318 -318
- package/dist/contracts/AgentFactory.d.ts.map +1 -1
- package/dist/contracts/AgentFactory.js +699 -699
- package/dist/contracts/AgentTemplate.d.ts.map +1 -1
- package/dist/contracts/AgentTemplate.js +1 -1
- package/dist/contracts/ChainlinkFeeds.d.ts.map +1 -1
- package/dist/contracts/ChainlinkFeeds.js +399 -399
- package/dist/contracts/LegoAaveV3.d.ts.map +1 -1
- package/dist/contracts/LegoAaveV3.js +643 -643
- package/dist/contracts/LegoAeroClassic.d.ts.map +1 -1
- package/dist/contracts/LegoAeroClassic.js +749 -749
- package/dist/contracts/LegoAeroSlipstream.d.ts.map +1 -1
- package/dist/contracts/LegoAeroSlipstream.js +820 -820
- package/dist/contracts/LegoCompoundV3.d.ts.map +1 -1
- package/dist/contracts/LegoCompoundV3.js +664 -664
- package/dist/contracts/LegoCurve.d.ts.map +1 -1
- package/dist/contracts/LegoCurve.js +732 -732
- package/dist/contracts/LegoEuler.d.ts.map +1 -1
- package/dist/contracts/LegoEuler.js +674 -674
- package/dist/contracts/LegoFluid.d.ts.map +1 -1
- package/dist/contracts/LegoFluid.js +629 -629
- package/dist/contracts/LegoHelper.d.ts +22 -16
- package/dist/contracts/LegoHelper.d.ts.map +1 -1
- package/dist/contracts/LegoHelper.js +1057 -1057
- package/dist/contracts/LegoMoonwell.d.ts.map +1 -1
- package/dist/contracts/LegoMoonwell.js +649 -649
- package/dist/contracts/LegoMorpho.d.ts.map +1 -1
- package/dist/contracts/LegoMorpho.js +674 -674
- package/dist/contracts/LegoRegistry.d.ts.map +1 -1
- package/dist/contracts/LegoRegistry.js +406 -406
- package/dist/contracts/LegoSky.d.ts.map +1 -1
- package/dist/contracts/LegoSky.js +557 -557
- package/dist/contracts/LegoUniswapV2.d.ts.map +1 -1
- package/dist/contracts/LegoUniswapV2.js +749 -749
- package/dist/contracts/LegoUniswapV3.d.ts.map +1 -1
- package/dist/contracts/LegoUniswapV3.js +849 -849
- package/dist/contracts/OracleRegistry.d.ts.map +1 -1
- package/dist/contracts/OracleRegistry.js +585 -585
- package/dist/contracts/PriceSheets.d.ts +18 -15
- package/dist/contracts/PriceSheets.d.ts.map +1 -1
- package/dist/contracts/PriceSheets.js +718 -718
- package/dist/contracts/PythFeeds.d.ts.map +1 -1
- package/dist/contracts/PythFeeds.js +352 -352
- package/dist/contracts/StorkFeeds.d.ts.map +1 -1
- package/dist/contracts/StorkFeeds.js +352 -352
- package/dist/contracts/WalletConfig.d.ts +1 -1
- package/dist/contracts/WalletConfig.d.ts.map +1 -1
- package/dist/contracts/WalletConfig.js +1 -1
- package/dist/contracts/WalletFunds.d.ts.map +1 -1
- package/dist/contracts/WalletFunds.js +1 -1
- package/dist/contracts/sdk.d.ts +1 -1
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/package.json +1 -1
|
@@ -5,644 +5,644 @@
|
|
|
5
5
|
import { singleQuery, mutate } from '@dappql/async';
|
|
6
6
|
export const abi = [
|
|
7
7
|
{
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
anonymous: false,
|
|
9
|
+
inputs: [
|
|
10
10
|
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
indexed: true,
|
|
12
|
+
name: 'asset',
|
|
13
|
+
type: 'address',
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
indexed: true,
|
|
17
|
+
name: 'chainlinkFeed',
|
|
18
|
+
type: 'address',
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
indexed: false,
|
|
22
|
+
name: 'needsEthToUsd',
|
|
23
|
+
type: 'bool',
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
26
|
+
indexed: false,
|
|
27
|
+
name: 'needsBtcToUsd',
|
|
28
|
+
type: 'bool',
|
|
29
|
+
},
|
|
30
30
|
],
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
name: 'ChainlinkFeedAdded',
|
|
32
|
+
type: 'event',
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
anonymous: false,
|
|
36
|
+
inputs: [
|
|
37
37
|
{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
38
|
+
indexed: true,
|
|
39
|
+
name: 'asset',
|
|
40
|
+
type: 'address',
|
|
41
|
+
},
|
|
42
42
|
],
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
name: 'ChainlinkFeedDisabled',
|
|
44
|
+
type: 'event',
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
anonymous: false,
|
|
48
|
+
inputs: [
|
|
49
49
|
{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
50
|
+
indexed: true,
|
|
51
|
+
name: 'addr',
|
|
52
|
+
type: 'address',
|
|
53
|
+
},
|
|
54
54
|
],
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
name: 'LocalGovernorSet',
|
|
56
|
+
type: 'event',
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
|
-
|
|
59
|
+
inputs: [
|
|
60
60
|
{
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
61
|
+
name: '_address',
|
|
62
|
+
type: 'address',
|
|
63
|
+
},
|
|
64
64
|
],
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
name: 'isGovernor',
|
|
66
|
+
outputs: [
|
|
67
67
|
{
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
68
|
+
name: '',
|
|
69
|
+
type: 'bool',
|
|
70
|
+
},
|
|
71
71
|
],
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
stateMutability: 'view',
|
|
73
|
+
type: 'function',
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
|
-
|
|
76
|
+
inputs: [
|
|
77
77
|
{
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
78
|
+
name: '_newGovernor',
|
|
79
|
+
type: 'address',
|
|
80
|
+
},
|
|
81
81
|
],
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
name: 'isValidLocalGovernor',
|
|
83
|
+
outputs: [
|
|
84
84
|
{
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
85
|
+
name: '',
|
|
86
|
+
type: 'bool',
|
|
87
|
+
},
|
|
88
88
|
],
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
stateMutability: 'view',
|
|
90
|
+
type: 'function',
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
|
-
|
|
93
|
+
inputs: [
|
|
94
94
|
{
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
95
|
+
name: '_newGovernor',
|
|
96
|
+
type: 'address',
|
|
97
|
+
},
|
|
98
98
|
],
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
name: 'setLocalGovernor',
|
|
100
|
+
outputs: [
|
|
101
101
|
{
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
102
|
+
name: '',
|
|
103
|
+
type: 'bool',
|
|
104
|
+
},
|
|
105
105
|
],
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
stateMutability: 'nonpayable',
|
|
107
|
+
type: 'function',
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
inputs: [],
|
|
111
|
+
name: 'localGovernor',
|
|
112
|
+
outputs: [
|
|
113
113
|
{
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
114
|
+
name: '',
|
|
115
|
+
type: 'address',
|
|
116
|
+
},
|
|
117
117
|
],
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
stateMutability: 'view',
|
|
119
|
+
type: 'function',
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
inputs: [],
|
|
123
|
+
name: 'getConfiguredAssets',
|
|
124
|
+
outputs: [
|
|
125
125
|
{
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
126
|
+
name: '',
|
|
127
|
+
type: 'address[]',
|
|
128
|
+
},
|
|
129
129
|
],
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
stateMutability: 'view',
|
|
131
|
+
type: 'function',
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
|
-
|
|
134
|
+
inputs: [
|
|
135
135
|
{
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
136
|
+
name: 'arg0',
|
|
137
|
+
type: 'uint256',
|
|
138
|
+
},
|
|
139
139
|
],
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
name: 'assets',
|
|
141
|
+
outputs: [
|
|
142
142
|
{
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
143
|
+
name: '',
|
|
144
|
+
type: 'address',
|
|
145
|
+
},
|
|
146
146
|
],
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
stateMutability: 'view',
|
|
148
|
+
type: 'function',
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
|
-
|
|
151
|
+
inputs: [
|
|
152
152
|
{
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
}
|
|
153
|
+
name: 'arg0',
|
|
154
|
+
type: 'address',
|
|
155
|
+
},
|
|
156
156
|
],
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
name: 'indexOfAsset',
|
|
158
|
+
outputs: [
|
|
159
159
|
{
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}
|
|
160
|
+
name: '',
|
|
161
|
+
type: 'uint256',
|
|
162
|
+
},
|
|
163
163
|
],
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
stateMutability: 'view',
|
|
165
|
+
type: 'function',
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
168
|
+
inputs: [],
|
|
169
|
+
name: 'numAssets',
|
|
170
|
+
outputs: [
|
|
171
171
|
{
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}
|
|
172
|
+
name: '',
|
|
173
|
+
type: 'uint256',
|
|
174
|
+
},
|
|
175
175
|
],
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
stateMutability: 'view',
|
|
177
|
+
type: 'function',
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
|
-
|
|
180
|
+
inputs: [
|
|
181
181
|
{
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
182
|
+
name: '_asset',
|
|
183
|
+
type: 'address',
|
|
184
|
+
},
|
|
185
185
|
],
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
name: 'getPrice',
|
|
187
|
+
outputs: [
|
|
188
188
|
{
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
189
|
+
name: '',
|
|
190
|
+
type: 'uint256',
|
|
191
|
+
},
|
|
192
192
|
],
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
stateMutability: 'view',
|
|
194
|
+
type: 'function',
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
|
-
|
|
197
|
+
inputs: [
|
|
198
198
|
{
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
name: '_asset',
|
|
200
|
+
type: 'address',
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}
|
|
203
|
+
name: '_staleTime',
|
|
204
|
+
type: 'uint256',
|
|
205
|
+
},
|
|
206
206
|
],
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
name: 'getPrice',
|
|
208
|
+
outputs: [
|
|
209
209
|
{
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}
|
|
210
|
+
name: '',
|
|
211
|
+
type: 'uint256',
|
|
212
|
+
},
|
|
213
213
|
],
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
stateMutability: 'view',
|
|
215
|
+
type: 'function',
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
|
-
|
|
218
|
+
inputs: [
|
|
219
219
|
{
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
name: '_asset',
|
|
221
|
+
type: 'address',
|
|
222
222
|
},
|
|
223
223
|
{
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
name: '_staleTime',
|
|
225
|
+
type: 'uint256',
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
}
|
|
228
|
+
name: '_oracleRegistry',
|
|
229
|
+
type: 'address',
|
|
230
|
+
},
|
|
231
231
|
],
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
name: 'getPrice',
|
|
233
|
+
outputs: [
|
|
234
234
|
{
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}
|
|
235
|
+
name: '',
|
|
236
|
+
type: 'uint256',
|
|
237
|
+
},
|
|
238
238
|
],
|
|
239
|
-
|
|
240
|
-
|
|
239
|
+
stateMutability: 'view',
|
|
240
|
+
type: 'function',
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
|
-
|
|
243
|
+
inputs: [
|
|
244
244
|
{
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}
|
|
245
|
+
name: '_asset',
|
|
246
|
+
type: 'address',
|
|
247
|
+
},
|
|
248
248
|
],
|
|
249
|
-
|
|
250
|
-
|
|
249
|
+
name: 'getPriceAndHasFeed',
|
|
250
|
+
outputs: [
|
|
251
251
|
{
|
|
252
|
-
|
|
253
|
-
|
|
252
|
+
name: '',
|
|
253
|
+
type: 'uint256',
|
|
254
254
|
},
|
|
255
255
|
{
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}
|
|
256
|
+
name: '',
|
|
257
|
+
type: 'bool',
|
|
258
|
+
},
|
|
259
259
|
],
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
stateMutability: 'view',
|
|
261
|
+
type: 'function',
|
|
262
262
|
},
|
|
263
263
|
{
|
|
264
|
-
|
|
264
|
+
inputs: [
|
|
265
265
|
{
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
name: '_asset',
|
|
267
|
+
type: 'address',
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}
|
|
270
|
+
name: '_staleTime',
|
|
271
|
+
type: 'uint256',
|
|
272
|
+
},
|
|
273
273
|
],
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
name: 'getPriceAndHasFeed',
|
|
275
|
+
outputs: [
|
|
276
276
|
{
|
|
277
|
-
|
|
278
|
-
|
|
277
|
+
name: '',
|
|
278
|
+
type: 'uint256',
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}
|
|
281
|
+
name: '',
|
|
282
|
+
type: 'bool',
|
|
283
|
+
},
|
|
284
284
|
],
|
|
285
|
-
|
|
286
|
-
|
|
285
|
+
stateMutability: 'view',
|
|
286
|
+
type: 'function',
|
|
287
287
|
},
|
|
288
288
|
{
|
|
289
|
-
|
|
289
|
+
inputs: [
|
|
290
290
|
{
|
|
291
|
-
|
|
292
|
-
|
|
291
|
+
name: '_asset',
|
|
292
|
+
type: 'address',
|
|
293
293
|
},
|
|
294
294
|
{
|
|
295
|
-
|
|
296
|
-
|
|
295
|
+
name: '_staleTime',
|
|
296
|
+
type: 'uint256',
|
|
297
297
|
},
|
|
298
298
|
{
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
}
|
|
299
|
+
name: '_oracleRegistry',
|
|
300
|
+
type: 'address',
|
|
301
|
+
},
|
|
302
302
|
],
|
|
303
|
-
|
|
304
|
-
|
|
303
|
+
name: 'getPriceAndHasFeed',
|
|
304
|
+
outputs: [
|
|
305
305
|
{
|
|
306
|
-
|
|
307
|
-
|
|
306
|
+
name: '',
|
|
307
|
+
type: 'uint256',
|
|
308
308
|
},
|
|
309
309
|
{
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
}
|
|
310
|
+
name: '',
|
|
311
|
+
type: 'bool',
|
|
312
|
+
},
|
|
313
313
|
],
|
|
314
|
-
|
|
315
|
-
|
|
314
|
+
stateMutability: 'view',
|
|
315
|
+
type: 'function',
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
|
-
|
|
318
|
+
inputs: [
|
|
319
319
|
{
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
name: '_feed',
|
|
321
|
+
type: 'address',
|
|
322
322
|
},
|
|
323
323
|
{
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
}
|
|
324
|
+
name: '_decimals',
|
|
325
|
+
type: 'uint256',
|
|
326
|
+
},
|
|
327
327
|
],
|
|
328
|
-
|
|
329
|
-
|
|
328
|
+
name: 'getChainlinkData',
|
|
329
|
+
outputs: [
|
|
330
330
|
{
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
}
|
|
331
|
+
name: '',
|
|
332
|
+
type: 'uint256',
|
|
333
|
+
},
|
|
334
334
|
],
|
|
335
|
-
|
|
336
|
-
|
|
335
|
+
stateMutability: 'view',
|
|
336
|
+
type: 'function',
|
|
337
337
|
},
|
|
338
338
|
{
|
|
339
|
-
|
|
339
|
+
inputs: [
|
|
340
340
|
{
|
|
341
|
-
|
|
342
|
-
|
|
341
|
+
name: '_feed',
|
|
342
|
+
type: 'address',
|
|
343
343
|
},
|
|
344
344
|
{
|
|
345
|
-
|
|
346
|
-
|
|
345
|
+
name: '_decimals',
|
|
346
|
+
type: 'uint256',
|
|
347
347
|
},
|
|
348
348
|
{
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
}
|
|
349
|
+
name: '_staleTime',
|
|
350
|
+
type: 'uint256',
|
|
351
|
+
},
|
|
352
352
|
],
|
|
353
|
-
|
|
354
|
-
|
|
353
|
+
name: 'getChainlinkData',
|
|
354
|
+
outputs: [
|
|
355
355
|
{
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
}
|
|
356
|
+
name: '',
|
|
357
|
+
type: 'uint256',
|
|
358
|
+
},
|
|
359
359
|
],
|
|
360
|
-
|
|
361
|
-
|
|
360
|
+
stateMutability: 'view',
|
|
361
|
+
type: 'function',
|
|
362
362
|
},
|
|
363
363
|
{
|
|
364
|
-
|
|
364
|
+
inputs: [
|
|
365
365
|
{
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
}
|
|
366
|
+
name: '_asset',
|
|
367
|
+
type: 'address',
|
|
368
|
+
},
|
|
369
369
|
],
|
|
370
|
-
|
|
371
|
-
|
|
370
|
+
name: 'hasPriceFeed',
|
|
371
|
+
outputs: [
|
|
372
372
|
{
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
}
|
|
373
|
+
name: '',
|
|
374
|
+
type: 'bool',
|
|
375
|
+
},
|
|
376
376
|
],
|
|
377
|
-
|
|
378
|
-
|
|
377
|
+
stateMutability: 'view',
|
|
378
|
+
type: 'function',
|
|
379
379
|
},
|
|
380
380
|
{
|
|
381
|
-
|
|
381
|
+
inputs: [
|
|
382
382
|
{
|
|
383
|
-
|
|
384
|
-
|
|
383
|
+
name: '_asset',
|
|
384
|
+
type: 'address',
|
|
385
385
|
},
|
|
386
386
|
{
|
|
387
|
-
|
|
388
|
-
|
|
387
|
+
name: '_feed',
|
|
388
|
+
type: 'address',
|
|
389
389
|
},
|
|
390
390
|
{
|
|
391
|
-
|
|
392
|
-
|
|
391
|
+
name: '_needsEthToUsd',
|
|
392
|
+
type: 'bool',
|
|
393
393
|
},
|
|
394
394
|
{
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
}
|
|
395
|
+
name: '_needsBtcToUsd',
|
|
396
|
+
type: 'bool',
|
|
397
|
+
},
|
|
398
398
|
],
|
|
399
|
-
|
|
400
|
-
|
|
399
|
+
name: 'isValidChainlinkFeed',
|
|
400
|
+
outputs: [
|
|
401
401
|
{
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
}
|
|
402
|
+
name: '',
|
|
403
|
+
type: 'bool',
|
|
404
|
+
},
|
|
405
405
|
],
|
|
406
|
-
|
|
407
|
-
|
|
406
|
+
stateMutability: 'view',
|
|
407
|
+
type: 'function',
|
|
408
408
|
},
|
|
409
409
|
{
|
|
410
|
-
|
|
410
|
+
inputs: [
|
|
411
411
|
{
|
|
412
|
-
|
|
413
|
-
|
|
412
|
+
name: '_asset',
|
|
413
|
+
type: 'address',
|
|
414
414
|
},
|
|
415
415
|
{
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
}
|
|
416
|
+
name: '_feed',
|
|
417
|
+
type: 'address',
|
|
418
|
+
},
|
|
419
419
|
],
|
|
420
|
-
|
|
421
|
-
|
|
420
|
+
name: 'setChainlinkFeed',
|
|
421
|
+
outputs: [
|
|
422
422
|
{
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
}
|
|
423
|
+
name: '',
|
|
424
|
+
type: 'bool',
|
|
425
|
+
},
|
|
426
426
|
],
|
|
427
|
-
|
|
428
|
-
|
|
427
|
+
stateMutability: 'nonpayable',
|
|
428
|
+
type: 'function',
|
|
429
429
|
},
|
|
430
430
|
{
|
|
431
|
-
|
|
431
|
+
inputs: [
|
|
432
432
|
{
|
|
433
|
-
|
|
434
|
-
|
|
433
|
+
name: '_asset',
|
|
434
|
+
type: 'address',
|
|
435
435
|
},
|
|
436
436
|
{
|
|
437
|
-
|
|
438
|
-
|
|
437
|
+
name: '_feed',
|
|
438
|
+
type: 'address',
|
|
439
439
|
},
|
|
440
440
|
{
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
}
|
|
441
|
+
name: '_needsEthToUsd',
|
|
442
|
+
type: 'bool',
|
|
443
|
+
},
|
|
444
444
|
],
|
|
445
|
-
|
|
446
|
-
|
|
445
|
+
name: 'setChainlinkFeed',
|
|
446
|
+
outputs: [
|
|
447
447
|
{
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
}
|
|
448
|
+
name: '',
|
|
449
|
+
type: 'bool',
|
|
450
|
+
},
|
|
451
451
|
],
|
|
452
|
-
|
|
453
|
-
|
|
452
|
+
stateMutability: 'nonpayable',
|
|
453
|
+
type: 'function',
|
|
454
454
|
},
|
|
455
455
|
{
|
|
456
|
-
|
|
456
|
+
inputs: [
|
|
457
457
|
{
|
|
458
|
-
|
|
459
|
-
|
|
458
|
+
name: '_asset',
|
|
459
|
+
type: 'address',
|
|
460
460
|
},
|
|
461
461
|
{
|
|
462
|
-
|
|
463
|
-
|
|
462
|
+
name: '_feed',
|
|
463
|
+
type: 'address',
|
|
464
464
|
},
|
|
465
465
|
{
|
|
466
|
-
|
|
467
|
-
|
|
466
|
+
name: '_needsEthToUsd',
|
|
467
|
+
type: 'bool',
|
|
468
468
|
},
|
|
469
469
|
{
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
}
|
|
470
|
+
name: '_needsBtcToUsd',
|
|
471
|
+
type: 'bool',
|
|
472
|
+
},
|
|
473
473
|
],
|
|
474
|
-
|
|
475
|
-
|
|
474
|
+
name: 'setChainlinkFeed',
|
|
475
|
+
outputs: [
|
|
476
476
|
{
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
}
|
|
477
|
+
name: '',
|
|
478
|
+
type: 'bool',
|
|
479
|
+
},
|
|
480
480
|
],
|
|
481
|
-
|
|
482
|
-
|
|
481
|
+
stateMutability: 'nonpayable',
|
|
482
|
+
type: 'function',
|
|
483
483
|
},
|
|
484
484
|
{
|
|
485
|
-
|
|
485
|
+
inputs: [
|
|
486
486
|
{
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
}
|
|
487
|
+
name: '_asset',
|
|
488
|
+
type: 'address',
|
|
489
|
+
},
|
|
490
490
|
],
|
|
491
|
-
|
|
492
|
-
|
|
491
|
+
name: 'disableChainlinkPriceFeed',
|
|
492
|
+
outputs: [
|
|
493
493
|
{
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
}
|
|
494
|
+
name: '',
|
|
495
|
+
type: 'bool',
|
|
496
|
+
},
|
|
497
497
|
],
|
|
498
|
-
|
|
499
|
-
|
|
498
|
+
stateMutability: 'nonpayable',
|
|
499
|
+
type: 'function',
|
|
500
500
|
},
|
|
501
501
|
{
|
|
502
|
-
|
|
502
|
+
inputs: [
|
|
503
503
|
{
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
}
|
|
504
|
+
name: '_oracleId',
|
|
505
|
+
type: 'uint256',
|
|
506
|
+
},
|
|
507
507
|
],
|
|
508
|
-
|
|
509
|
-
|
|
508
|
+
name: 'setOraclePartnerId',
|
|
509
|
+
outputs: [
|
|
510
510
|
{
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
}
|
|
511
|
+
name: '',
|
|
512
|
+
type: 'bool',
|
|
513
|
+
},
|
|
514
514
|
],
|
|
515
|
-
|
|
516
|
-
|
|
515
|
+
stateMutability: 'nonpayable',
|
|
516
|
+
type: 'function',
|
|
517
517
|
},
|
|
518
518
|
{
|
|
519
|
-
|
|
519
|
+
inputs: [
|
|
520
520
|
{
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
}
|
|
521
|
+
name: 'arg0',
|
|
522
|
+
type: 'address',
|
|
523
|
+
},
|
|
524
524
|
],
|
|
525
|
-
|
|
526
|
-
|
|
525
|
+
name: 'feedConfig',
|
|
526
|
+
outputs: [
|
|
527
527
|
{
|
|
528
|
-
|
|
528
|
+
components: [
|
|
529
529
|
{
|
|
530
|
-
|
|
531
|
-
|
|
530
|
+
name: 'feed',
|
|
531
|
+
type: 'address',
|
|
532
532
|
},
|
|
533
533
|
{
|
|
534
|
-
|
|
535
|
-
|
|
534
|
+
name: 'decimals',
|
|
535
|
+
type: 'uint256',
|
|
536
536
|
},
|
|
537
537
|
{
|
|
538
|
-
|
|
539
|
-
|
|
538
|
+
name: 'needsEthToUsd',
|
|
539
|
+
type: 'bool',
|
|
540
540
|
},
|
|
541
541
|
{
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
}
|
|
542
|
+
name: 'needsBtcToUsd',
|
|
543
|
+
type: 'bool',
|
|
544
|
+
},
|
|
545
545
|
],
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
}
|
|
546
|
+
name: '',
|
|
547
|
+
type: 'tuple',
|
|
548
|
+
},
|
|
549
549
|
],
|
|
550
|
-
|
|
551
|
-
|
|
550
|
+
stateMutability: 'view',
|
|
551
|
+
type: 'function',
|
|
552
552
|
},
|
|
553
553
|
{
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
554
|
+
inputs: [],
|
|
555
|
+
name: 'oraclePartnerId',
|
|
556
|
+
outputs: [
|
|
557
557
|
{
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
}
|
|
558
|
+
name: '',
|
|
559
|
+
type: 'uint256',
|
|
560
|
+
},
|
|
561
561
|
],
|
|
562
|
-
|
|
563
|
-
|
|
562
|
+
stateMutability: 'view',
|
|
563
|
+
type: 'function',
|
|
564
564
|
},
|
|
565
565
|
{
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
566
|
+
inputs: [],
|
|
567
|
+
name: 'ADDY_REGISTRY',
|
|
568
|
+
outputs: [
|
|
569
569
|
{
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
}
|
|
570
|
+
name: '',
|
|
571
|
+
type: 'address',
|
|
572
|
+
},
|
|
573
573
|
],
|
|
574
|
-
|
|
575
|
-
|
|
574
|
+
stateMutability: 'view',
|
|
575
|
+
type: 'function',
|
|
576
576
|
},
|
|
577
577
|
{
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
578
|
+
inputs: [],
|
|
579
|
+
name: 'WETH',
|
|
580
|
+
outputs: [
|
|
581
581
|
{
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
}
|
|
582
|
+
name: '',
|
|
583
|
+
type: 'address',
|
|
584
|
+
},
|
|
585
585
|
],
|
|
586
|
-
|
|
587
|
-
|
|
586
|
+
stateMutability: 'view',
|
|
587
|
+
type: 'function',
|
|
588
588
|
},
|
|
589
589
|
{
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
590
|
+
inputs: [],
|
|
591
|
+
name: 'ETH',
|
|
592
|
+
outputs: [
|
|
593
593
|
{
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
}
|
|
594
|
+
name: '',
|
|
595
|
+
type: 'address',
|
|
596
|
+
},
|
|
597
597
|
],
|
|
598
|
-
|
|
599
|
-
|
|
598
|
+
stateMutability: 'view',
|
|
599
|
+
type: 'function',
|
|
600
600
|
},
|
|
601
601
|
{
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
602
|
+
inputs: [],
|
|
603
|
+
name: 'BTC',
|
|
604
|
+
outputs: [
|
|
605
605
|
{
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
}
|
|
606
|
+
name: '',
|
|
607
|
+
type: 'address',
|
|
608
|
+
},
|
|
609
609
|
],
|
|
610
|
-
|
|
611
|
-
|
|
610
|
+
stateMutability: 'view',
|
|
611
|
+
type: 'function',
|
|
612
612
|
},
|
|
613
613
|
{
|
|
614
|
-
|
|
614
|
+
inputs: [
|
|
615
615
|
{
|
|
616
|
-
|
|
617
|
-
|
|
616
|
+
name: '_wethAddr',
|
|
617
|
+
type: 'address',
|
|
618
618
|
},
|
|
619
619
|
{
|
|
620
|
-
|
|
621
|
-
|
|
620
|
+
name: '_ethAddr',
|
|
621
|
+
type: 'address',
|
|
622
622
|
},
|
|
623
623
|
{
|
|
624
|
-
|
|
625
|
-
|
|
624
|
+
name: '_btcAddr',
|
|
625
|
+
type: 'address',
|
|
626
626
|
},
|
|
627
627
|
{
|
|
628
|
-
|
|
629
|
-
|
|
628
|
+
name: '_ethUsdFeed',
|
|
629
|
+
type: 'address',
|
|
630
630
|
},
|
|
631
631
|
{
|
|
632
|
-
|
|
633
|
-
|
|
632
|
+
name: '_btcUsdFeed',
|
|
633
|
+
type: 'address',
|
|
634
634
|
},
|
|
635
635
|
{
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
}
|
|
636
|
+
name: '_addyRegistry',
|
|
637
|
+
type: 'address',
|
|
638
|
+
},
|
|
639
639
|
],
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
}
|
|
640
|
+
outputs: [],
|
|
641
|
+
stateMutability: 'nonpayable',
|
|
642
|
+
type: 'constructor',
|
|
643
|
+
},
|
|
644
644
|
];
|
|
645
|
-
export const deployAddress =
|
|
645
|
+
export const deployAddress = '0x6035ff5936563132caD931a3a2F328477372fb82';
|
|
646
646
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
647
647
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
648
648
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|