@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.
- 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,557 +5,557 @@
|
|
|
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
|
-
|
|
19
|
-
}
|
|
16
|
+
indexed: true,
|
|
17
|
+
name: 'feedId',
|
|
18
|
+
type: 'bytes32',
|
|
19
|
+
},
|
|
20
20
|
],
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
name: 'PythFeedAdded',
|
|
22
|
+
type: 'event',
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
anonymous: false,
|
|
26
|
+
inputs: [
|
|
27
27
|
{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
28
|
+
indexed: true,
|
|
29
|
+
name: 'asset',
|
|
30
|
+
type: 'address',
|
|
31
|
+
},
|
|
32
32
|
],
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
name: 'PythFeedDisabled',
|
|
34
|
+
type: 'event',
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
anonymous: false,
|
|
38
|
+
inputs: [
|
|
39
39
|
{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
indexed: false,
|
|
41
|
+
name: 'payload',
|
|
42
|
+
type: 'bytes',
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
indexed: false,
|
|
46
|
+
name: 'feeAmount',
|
|
47
|
+
type: 'uint256',
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
50
|
+
indexed: true,
|
|
51
|
+
name: 'caller',
|
|
52
|
+
type: 'address',
|
|
53
|
+
},
|
|
54
54
|
],
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
name: 'PythPriceUpdated',
|
|
56
|
+
type: 'event',
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
anonymous: false,
|
|
60
|
+
inputs: [
|
|
61
61
|
{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
indexed: true,
|
|
63
|
+
name: 'recipient',
|
|
64
|
+
type: 'address',
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
67
|
+
indexed: false,
|
|
68
|
+
name: 'amount',
|
|
69
|
+
type: 'uint256',
|
|
70
|
+
},
|
|
71
71
|
],
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
name: 'EthRecoveredFromPyth',
|
|
73
|
+
type: 'event',
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
anonymous: false,
|
|
77
|
+
inputs: [
|
|
78
78
|
{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
79
|
+
indexed: true,
|
|
80
|
+
name: 'addr',
|
|
81
|
+
type: 'address',
|
|
82
|
+
},
|
|
83
83
|
],
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
name: 'LocalGovernorSet',
|
|
85
|
+
type: 'event',
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
|
-
|
|
88
|
+
inputs: [
|
|
89
89
|
{
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
90
|
+
name: '_address',
|
|
91
|
+
type: 'address',
|
|
92
|
+
},
|
|
93
93
|
],
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
name: 'isGovernor',
|
|
95
|
+
outputs: [
|
|
96
96
|
{
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
97
|
+
name: '',
|
|
98
|
+
type: 'bool',
|
|
99
|
+
},
|
|
100
100
|
],
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
stateMutability: 'view',
|
|
102
|
+
type: 'function',
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
|
-
|
|
105
|
+
inputs: [
|
|
106
106
|
{
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
107
|
+
name: '_newGovernor',
|
|
108
|
+
type: 'address',
|
|
109
|
+
},
|
|
110
110
|
],
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
name: 'isValidLocalGovernor',
|
|
112
|
+
outputs: [
|
|
113
113
|
{
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
114
|
+
name: '',
|
|
115
|
+
type: 'bool',
|
|
116
|
+
},
|
|
117
117
|
],
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
stateMutability: 'view',
|
|
119
|
+
type: 'function',
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
|
-
|
|
122
|
+
inputs: [
|
|
123
123
|
{
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
124
|
+
name: '_newGovernor',
|
|
125
|
+
type: 'address',
|
|
126
|
+
},
|
|
127
127
|
],
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
name: 'setLocalGovernor',
|
|
129
|
+
outputs: [
|
|
130
130
|
{
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
131
|
+
name: '',
|
|
132
|
+
type: 'bool',
|
|
133
|
+
},
|
|
134
134
|
],
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
stateMutability: 'nonpayable',
|
|
136
|
+
type: 'function',
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
inputs: [],
|
|
140
|
+
name: 'localGovernor',
|
|
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
|
-
|
|
152
|
-
|
|
153
|
-
|
|
151
|
+
inputs: [],
|
|
152
|
+
name: 'getConfiguredAssets',
|
|
153
|
+
outputs: [
|
|
154
154
|
{
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
155
|
+
name: '',
|
|
156
|
+
type: 'address[]',
|
|
157
|
+
},
|
|
158
158
|
],
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
stateMutability: 'view',
|
|
160
|
+
type: 'function',
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
|
-
|
|
163
|
+
inputs: [
|
|
164
164
|
{
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
}
|
|
165
|
+
name: 'arg0',
|
|
166
|
+
type: 'uint256',
|
|
167
|
+
},
|
|
168
168
|
],
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
name: 'assets',
|
|
170
|
+
outputs: [
|
|
171
171
|
{
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}
|
|
172
|
+
name: '',
|
|
173
|
+
type: 'address',
|
|
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: 'arg0',
|
|
183
|
+
type: 'address',
|
|
184
|
+
},
|
|
185
185
|
],
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
name: 'indexOfAsset',
|
|
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
|
-
|
|
198
|
-
|
|
199
|
-
|
|
197
|
+
inputs: [],
|
|
198
|
+
name: 'numAssets',
|
|
199
|
+
outputs: [
|
|
200
200
|
{
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
}
|
|
201
|
+
name: '',
|
|
202
|
+
type: 'uint256',
|
|
203
|
+
},
|
|
204
204
|
],
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
stateMutability: 'view',
|
|
206
|
+
type: 'function',
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
stateMutability: 'payable',
|
|
210
|
+
type: 'fallback',
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
|
-
|
|
213
|
+
inputs: [
|
|
214
214
|
{
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
215
|
+
name: '_asset',
|
|
216
|
+
type: 'address',
|
|
217
|
+
},
|
|
218
218
|
],
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
name: 'getPrice',
|
|
220
|
+
outputs: [
|
|
221
221
|
{
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}
|
|
222
|
+
name: '',
|
|
223
|
+
type: 'uint256',
|
|
224
|
+
},
|
|
225
225
|
],
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
stateMutability: 'view',
|
|
227
|
+
type: 'function',
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
|
-
|
|
230
|
+
inputs: [
|
|
231
231
|
{
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
name: '_asset',
|
|
233
|
+
type: 'address',
|
|
234
234
|
},
|
|
235
235
|
{
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
}
|
|
236
|
+
name: '_staleTime',
|
|
237
|
+
type: 'uint256',
|
|
238
|
+
},
|
|
239
239
|
],
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
name: 'getPrice',
|
|
241
|
+
outputs: [
|
|
242
242
|
{
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}
|
|
243
|
+
name: '',
|
|
244
|
+
type: 'uint256',
|
|
245
|
+
},
|
|
246
246
|
],
|
|
247
|
-
|
|
248
|
-
|
|
247
|
+
stateMutability: 'view',
|
|
248
|
+
type: 'function',
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
|
-
|
|
251
|
+
inputs: [
|
|
252
252
|
{
|
|
253
|
-
|
|
254
|
-
|
|
253
|
+
name: '_asset',
|
|
254
|
+
type: 'address',
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
name: '_staleTime',
|
|
258
|
+
type: 'uint256',
|
|
259
259
|
},
|
|
260
260
|
{
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
}
|
|
261
|
+
name: '_oracleRegistry',
|
|
262
|
+
type: 'address',
|
|
263
|
+
},
|
|
264
264
|
],
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
name: 'getPrice',
|
|
266
|
+
outputs: [
|
|
267
267
|
{
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}
|
|
268
|
+
name: '',
|
|
269
|
+
type: 'uint256',
|
|
270
|
+
},
|
|
271
271
|
],
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
stateMutability: 'view',
|
|
273
|
+
type: 'function',
|
|
274
274
|
},
|
|
275
275
|
{
|
|
276
|
-
|
|
276
|
+
inputs: [
|
|
277
277
|
{
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
}
|
|
278
|
+
name: '_asset',
|
|
279
|
+
type: 'address',
|
|
280
|
+
},
|
|
281
281
|
],
|
|
282
|
-
|
|
283
|
-
|
|
282
|
+
name: 'getPriceAndHasFeed',
|
|
283
|
+
outputs: [
|
|
284
284
|
{
|
|
285
|
-
|
|
286
|
-
|
|
285
|
+
name: '',
|
|
286
|
+
type: 'uint256',
|
|
287
287
|
},
|
|
288
288
|
{
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
289
|
+
name: '',
|
|
290
|
+
type: 'bool',
|
|
291
|
+
},
|
|
292
292
|
],
|
|
293
|
-
|
|
294
|
-
|
|
293
|
+
stateMutability: 'view',
|
|
294
|
+
type: 'function',
|
|
295
295
|
},
|
|
296
296
|
{
|
|
297
|
-
|
|
297
|
+
inputs: [
|
|
298
298
|
{
|
|
299
|
-
|
|
300
|
-
|
|
299
|
+
name: '_asset',
|
|
300
|
+
type: 'address',
|
|
301
301
|
},
|
|
302
302
|
{
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
}
|
|
303
|
+
name: '_staleTime',
|
|
304
|
+
type: 'uint256',
|
|
305
|
+
},
|
|
306
306
|
],
|
|
307
|
-
|
|
308
|
-
|
|
307
|
+
name: 'getPriceAndHasFeed',
|
|
308
|
+
outputs: [
|
|
309
309
|
{
|
|
310
|
-
|
|
311
|
-
|
|
310
|
+
name: '',
|
|
311
|
+
type: 'uint256',
|
|
312
312
|
},
|
|
313
313
|
{
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
}
|
|
314
|
+
name: '',
|
|
315
|
+
type: 'bool',
|
|
316
|
+
},
|
|
317
317
|
],
|
|
318
|
-
|
|
319
|
-
|
|
318
|
+
stateMutability: 'view',
|
|
319
|
+
type: 'function',
|
|
320
320
|
},
|
|
321
321
|
{
|
|
322
|
-
|
|
322
|
+
inputs: [
|
|
323
323
|
{
|
|
324
|
-
|
|
325
|
-
|
|
324
|
+
name: '_asset',
|
|
325
|
+
type: 'address',
|
|
326
326
|
},
|
|
327
327
|
{
|
|
328
|
-
|
|
329
|
-
|
|
328
|
+
name: '_staleTime',
|
|
329
|
+
type: 'uint256',
|
|
330
330
|
},
|
|
331
331
|
{
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
}
|
|
332
|
+
name: '_oracleRegistry',
|
|
333
|
+
type: 'address',
|
|
334
|
+
},
|
|
335
335
|
],
|
|
336
|
-
|
|
337
|
-
|
|
336
|
+
name: 'getPriceAndHasFeed',
|
|
337
|
+
outputs: [
|
|
338
338
|
{
|
|
339
|
-
|
|
340
|
-
|
|
339
|
+
name: '',
|
|
340
|
+
type: 'uint256',
|
|
341
341
|
},
|
|
342
342
|
{
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
}
|
|
343
|
+
name: '',
|
|
344
|
+
type: 'bool',
|
|
345
|
+
},
|
|
346
346
|
],
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
stateMutability: 'view',
|
|
348
|
+
type: 'function',
|
|
349
349
|
},
|
|
350
350
|
{
|
|
351
|
-
|
|
351
|
+
inputs: [
|
|
352
352
|
{
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
}
|
|
353
|
+
name: '_asset',
|
|
354
|
+
type: 'address',
|
|
355
|
+
},
|
|
356
356
|
],
|
|
357
|
-
|
|
358
|
-
|
|
357
|
+
name: 'hasPriceFeed',
|
|
358
|
+
outputs: [
|
|
359
359
|
{
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
}
|
|
360
|
+
name: '',
|
|
361
|
+
type: 'bool',
|
|
362
|
+
},
|
|
363
363
|
],
|
|
364
|
-
|
|
365
|
-
|
|
364
|
+
stateMutability: 'view',
|
|
365
|
+
type: 'function',
|
|
366
366
|
},
|
|
367
367
|
{
|
|
368
|
-
|
|
368
|
+
inputs: [
|
|
369
369
|
{
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
}
|
|
370
|
+
name: '_payloads',
|
|
371
|
+
type: 'bytes[]',
|
|
372
|
+
},
|
|
373
373
|
],
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
374
|
+
name: 'updatePythPrices',
|
|
375
|
+
outputs: [],
|
|
376
|
+
stateMutability: 'nonpayable',
|
|
377
|
+
type: 'function',
|
|
378
378
|
},
|
|
379
379
|
{
|
|
380
|
-
|
|
380
|
+
inputs: [
|
|
381
381
|
{
|
|
382
|
-
|
|
383
|
-
|
|
382
|
+
name: '_asset',
|
|
383
|
+
type: 'address',
|
|
384
384
|
},
|
|
385
385
|
{
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
}
|
|
386
|
+
name: '_feedId',
|
|
387
|
+
type: 'bytes32',
|
|
388
|
+
},
|
|
389
389
|
],
|
|
390
|
-
|
|
391
|
-
|
|
390
|
+
name: 'isValidPythFeed',
|
|
391
|
+
outputs: [
|
|
392
392
|
{
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
}
|
|
393
|
+
name: '',
|
|
394
|
+
type: 'bool',
|
|
395
|
+
},
|
|
396
396
|
],
|
|
397
|
-
|
|
398
|
-
|
|
397
|
+
stateMutability: 'view',
|
|
398
|
+
type: 'function',
|
|
399
399
|
},
|
|
400
400
|
{
|
|
401
|
-
|
|
401
|
+
inputs: [
|
|
402
402
|
{
|
|
403
|
-
|
|
404
|
-
|
|
403
|
+
name: '_asset',
|
|
404
|
+
type: 'address',
|
|
405
405
|
},
|
|
406
406
|
{
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
}
|
|
407
|
+
name: '_feedId',
|
|
408
|
+
type: 'bytes32',
|
|
409
|
+
},
|
|
410
410
|
],
|
|
411
|
-
|
|
412
|
-
|
|
411
|
+
name: 'setPythFeed',
|
|
412
|
+
outputs: [
|
|
413
413
|
{
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
}
|
|
414
|
+
name: '',
|
|
415
|
+
type: 'bool',
|
|
416
|
+
},
|
|
417
417
|
],
|
|
418
|
-
|
|
419
|
-
|
|
418
|
+
stateMutability: 'nonpayable',
|
|
419
|
+
type: 'function',
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
|
-
|
|
422
|
+
inputs: [
|
|
423
423
|
{
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
}
|
|
424
|
+
name: '_asset',
|
|
425
|
+
type: 'address',
|
|
426
|
+
},
|
|
427
427
|
],
|
|
428
|
-
|
|
429
|
-
|
|
428
|
+
name: 'disablePythPriceFeed',
|
|
429
|
+
outputs: [
|
|
430
430
|
{
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
}
|
|
431
|
+
name: '',
|
|
432
|
+
type: 'bool',
|
|
433
|
+
},
|
|
434
434
|
],
|
|
435
|
-
|
|
436
|
-
|
|
435
|
+
stateMutability: 'nonpayable',
|
|
436
|
+
type: 'function',
|
|
437
437
|
},
|
|
438
438
|
{
|
|
439
|
-
|
|
439
|
+
inputs: [
|
|
440
440
|
{
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
}
|
|
441
|
+
name: '_recipient',
|
|
442
|
+
type: 'address',
|
|
443
|
+
},
|
|
444
444
|
],
|
|
445
|
-
|
|
446
|
-
|
|
445
|
+
name: 'isValidEthRecovery',
|
|
446
|
+
outputs: [
|
|
447
447
|
{
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
}
|
|
448
|
+
name: '',
|
|
449
|
+
type: 'bool',
|
|
450
|
+
},
|
|
451
451
|
],
|
|
452
|
-
|
|
453
|
-
|
|
452
|
+
stateMutability: 'view',
|
|
453
|
+
type: 'function',
|
|
454
454
|
},
|
|
455
455
|
{
|
|
456
|
-
|
|
456
|
+
inputs: [
|
|
457
457
|
{
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
}
|
|
458
|
+
name: '_recipient',
|
|
459
|
+
type: 'address',
|
|
460
|
+
},
|
|
461
461
|
],
|
|
462
|
-
|
|
463
|
-
|
|
462
|
+
name: 'recoverEthBalance',
|
|
463
|
+
outputs: [
|
|
464
464
|
{
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
}
|
|
465
|
+
name: '',
|
|
466
|
+
type: 'bool',
|
|
467
|
+
},
|
|
468
468
|
],
|
|
469
|
-
|
|
470
|
-
|
|
469
|
+
stateMutability: 'nonpayable',
|
|
470
|
+
type: 'function',
|
|
471
471
|
},
|
|
472
472
|
{
|
|
473
|
-
|
|
473
|
+
inputs: [
|
|
474
474
|
{
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
}
|
|
475
|
+
name: '_oracleId',
|
|
476
|
+
type: 'uint256',
|
|
477
|
+
},
|
|
478
478
|
],
|
|
479
|
-
|
|
480
|
-
|
|
479
|
+
name: 'setOraclePartnerId',
|
|
480
|
+
outputs: [
|
|
481
481
|
{
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
}
|
|
482
|
+
name: '',
|
|
483
|
+
type: 'bool',
|
|
484
|
+
},
|
|
485
485
|
],
|
|
486
|
-
|
|
487
|
-
|
|
486
|
+
stateMutability: 'nonpayable',
|
|
487
|
+
type: 'function',
|
|
488
488
|
},
|
|
489
489
|
{
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
490
|
+
inputs: [],
|
|
491
|
+
name: 'PYTH',
|
|
492
|
+
outputs: [
|
|
493
493
|
{
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
}
|
|
494
|
+
name: '',
|
|
495
|
+
type: 'address',
|
|
496
|
+
},
|
|
497
497
|
],
|
|
498
|
-
|
|
499
|
-
|
|
498
|
+
stateMutability: 'view',
|
|
499
|
+
type: 'function',
|
|
500
500
|
},
|
|
501
501
|
{
|
|
502
|
-
|
|
502
|
+
inputs: [
|
|
503
503
|
{
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
}
|
|
504
|
+
name: 'arg0',
|
|
505
|
+
type: 'address',
|
|
506
|
+
},
|
|
507
507
|
],
|
|
508
|
-
|
|
509
|
-
|
|
508
|
+
name: 'feedConfig',
|
|
509
|
+
outputs: [
|
|
510
510
|
{
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
}
|
|
511
|
+
name: '',
|
|
512
|
+
type: 'bytes32',
|
|
513
|
+
},
|
|
514
514
|
],
|
|
515
|
-
|
|
516
|
-
|
|
515
|
+
stateMutability: 'view',
|
|
516
|
+
type: 'function',
|
|
517
517
|
},
|
|
518
518
|
{
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
519
|
+
inputs: [],
|
|
520
|
+
name: 'oraclePartnerId',
|
|
521
|
+
outputs: [
|
|
522
522
|
{
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
}
|
|
523
|
+
name: '',
|
|
524
|
+
type: 'uint256',
|
|
525
|
+
},
|
|
526
526
|
],
|
|
527
|
-
|
|
528
|
-
|
|
527
|
+
stateMutability: 'view',
|
|
528
|
+
type: 'function',
|
|
529
529
|
},
|
|
530
530
|
{
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
531
|
+
inputs: [],
|
|
532
|
+
name: 'ADDY_REGISTRY',
|
|
533
|
+
outputs: [
|
|
534
534
|
{
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
}
|
|
535
|
+
name: '',
|
|
536
|
+
type: 'address',
|
|
537
|
+
},
|
|
538
538
|
],
|
|
539
|
-
|
|
540
|
-
|
|
539
|
+
stateMutability: 'view',
|
|
540
|
+
type: 'function',
|
|
541
541
|
},
|
|
542
542
|
{
|
|
543
|
-
|
|
543
|
+
inputs: [
|
|
544
544
|
{
|
|
545
|
-
|
|
546
|
-
|
|
545
|
+
name: '_pyth',
|
|
546
|
+
type: 'address',
|
|
547
547
|
},
|
|
548
548
|
{
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
}
|
|
549
|
+
name: '_addyRegistry',
|
|
550
|
+
type: 'address',
|
|
551
|
+
},
|
|
552
552
|
],
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
}
|
|
553
|
+
outputs: [],
|
|
554
|
+
stateMutability: 'nonpayable',
|
|
555
|
+
type: 'constructor',
|
|
556
|
+
},
|
|
557
557
|
];
|
|
558
|
-
export const deployAddress =
|
|
558
|
+
export const deployAddress = '0xB8090783aBF7B6336121FAfd6c4aCa3C4516792D';
|
|
559
559
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
560
560
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
561
561
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|