@underscore-finance/sdk 0.0.7 → 0.2.1
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 +659 -82
- package/dist/contracts/AddyRegistry.d.ts.map +1 -1
- package/dist/contracts/AddyRegistry.js +903 -184
- package/dist/contracts/Agent.d.ts +223 -145
- package/dist/contracts/Agent.d.ts.map +1 -1
- package/dist/contracts/Agent.js +248 -162
- package/dist/contracts/AgentFactory.d.ts +335 -42
- package/dist/contracts/AgentFactory.d.ts.map +1 -1
- package/dist/contracts/AgentFactory.js +403 -42
- package/dist/contracts/ChainlinkFeeds.d.ts +160 -23
- package/dist/contracts/ChainlinkFeeds.d.ts.map +1 -1
- package/dist/contracts/ChainlinkFeeds.js +186 -23
- package/dist/contracts/LegoAaveV3.d.ts +160 -23
- package/dist/contracts/LegoAaveV3.d.ts.map +1 -1
- package/dist/contracts/LegoAaveV3.js +186 -23
- package/dist/contracts/LegoAeroClassic.d.ts +160 -23
- package/dist/contracts/LegoAeroClassic.d.ts.map +1 -1
- package/dist/contracts/LegoAeroClassic.js +186 -23
- package/dist/contracts/LegoAeroSlipstream.d.ts +160 -23
- package/dist/contracts/LegoAeroSlipstream.d.ts.map +1 -1
- package/dist/contracts/LegoAeroSlipstream.js +186 -23
- package/dist/contracts/LegoCompoundV3.d.ts +160 -23
- package/dist/contracts/LegoCompoundV3.d.ts.map +1 -1
- package/dist/contracts/LegoCompoundV3.js +186 -23
- package/dist/contracts/LegoCurve.d.ts +160 -23
- package/dist/contracts/LegoCurve.d.ts.map +1 -1
- package/dist/contracts/LegoCurve.js +186 -23
- package/dist/contracts/LegoEuler.d.ts +160 -23
- package/dist/contracts/LegoEuler.d.ts.map +1 -1
- package/dist/contracts/LegoEuler.js +186 -23
- package/dist/contracts/LegoFluid.d.ts +171 -23
- package/dist/contracts/LegoFluid.d.ts.map +1 -1
- package/dist/contracts/LegoFluid.js +200 -23
- package/dist/contracts/LegoHelper.js +1 -1
- package/dist/contracts/LegoMoonwell.d.ts +160 -23
- package/dist/contracts/LegoMoonwell.d.ts.map +1 -1
- package/dist/contracts/LegoMoonwell.js +186 -23
- package/dist/contracts/LegoMorpho.d.ts +160 -23
- package/dist/contracts/LegoMorpho.d.ts.map +1 -1
- package/dist/contracts/LegoMorpho.js +186 -23
- package/dist/contracts/LegoRegistry.d.ts +501 -96
- package/dist/contracts/LegoRegistry.d.ts.map +1 -1
- package/dist/contracts/LegoRegistry.js +686 -174
- package/dist/contracts/LegoSky.d.ts +160 -23
- package/dist/contracts/LegoSky.d.ts.map +1 -1
- package/dist/contracts/LegoSky.js +186 -23
- package/dist/contracts/LegoUniswapV2.d.ts +160 -23
- package/dist/contracts/LegoUniswapV2.d.ts.map +1 -1
- package/dist/contracts/LegoUniswapV2.js +186 -23
- package/dist/contracts/LegoUniswapV3.d.ts +160 -23
- package/dist/contracts/LegoUniswapV3.d.ts.map +1 -1
- package/dist/contracts/LegoUniswapV3.js +186 -23
- package/dist/contracts/OracleRegistry.d.ts +506 -109
- package/dist/contracts/OracleRegistry.d.ts.map +1 -1
- package/dist/contracts/OracleRegistry.js +628 -131
- package/dist/contracts/PriceSheets.d.ts +160 -23
- package/dist/contracts/PriceSheets.d.ts.map +1 -1
- package/dist/contracts/PriceSheets.js +186 -23
- package/dist/contracts/PythFeeds.d.ts +160 -23
- package/dist/contracts/PythFeeds.d.ts.map +1 -1
- package/dist/contracts/PythFeeds.js +186 -23
- package/dist/contracts/StorkFeeds.d.ts +160 -23
- package/dist/contracts/StorkFeeds.d.ts.map +1 -1
- package/dist/contracts/StorkFeeds.js +186 -23
- package/dist/contracts/UserWallet.d.ts +1956 -0
- package/dist/contracts/UserWallet.d.ts.map +1 -0
- package/dist/contracts/UserWallet.js +2551 -0
- package/dist/contracts/UserWalletConfig.d.ts +1466 -0
- package/dist/contracts/UserWalletConfig.d.ts.map +1 -0
- package/dist/contracts/UserWalletConfig.js +1762 -0
- package/dist/contracts/index.d.ts +2 -2
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +2 -2
- package/dist/contracts/sdk.d.ts +4 -4
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +3 -3
|
@@ -2,6 +2,88 @@ import { PublicClient, WalletClient } from 'viem';
|
|
|
2
2
|
type ExtractArgs<T> = T extends (...args: infer P) => any ? P : never;
|
|
3
3
|
type Address = `0x${string}`;
|
|
4
4
|
export declare const abi: readonly [{
|
|
5
|
+
readonly anonymous: false;
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly indexed: false;
|
|
8
|
+
readonly name: "numIds";
|
|
9
|
+
readonly type: "uint256";
|
|
10
|
+
}];
|
|
11
|
+
readonly name: "PriorityOraclePartnerIdsModified";
|
|
12
|
+
readonly type: "event";
|
|
13
|
+
}, {
|
|
14
|
+
readonly anonymous: false;
|
|
15
|
+
readonly inputs: readonly [{
|
|
16
|
+
readonly indexed: false;
|
|
17
|
+
readonly name: "staleTime";
|
|
18
|
+
readonly type: "uint256";
|
|
19
|
+
}];
|
|
20
|
+
readonly name: "StaleTimeSet";
|
|
21
|
+
readonly type: "event";
|
|
22
|
+
}, {
|
|
23
|
+
readonly anonymous: false;
|
|
24
|
+
readonly inputs: readonly [{
|
|
25
|
+
readonly indexed: true;
|
|
26
|
+
readonly name: "prevGov";
|
|
27
|
+
readonly type: "address";
|
|
28
|
+
}, {
|
|
29
|
+
readonly indexed: true;
|
|
30
|
+
readonly name: "newGov";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
}, {
|
|
33
|
+
readonly indexed: false;
|
|
34
|
+
readonly name: "confirmBlock";
|
|
35
|
+
readonly type: "uint256";
|
|
36
|
+
}];
|
|
37
|
+
readonly name: "GovChangeInitiated";
|
|
38
|
+
readonly type: "event";
|
|
39
|
+
}, {
|
|
40
|
+
readonly anonymous: false;
|
|
41
|
+
readonly inputs: readonly [{
|
|
42
|
+
readonly indexed: true;
|
|
43
|
+
readonly name: "prevGov";
|
|
44
|
+
readonly type: "address";
|
|
45
|
+
}, {
|
|
46
|
+
readonly indexed: true;
|
|
47
|
+
readonly name: "newGov";
|
|
48
|
+
readonly type: "address";
|
|
49
|
+
}, {
|
|
50
|
+
readonly indexed: false;
|
|
51
|
+
readonly name: "initiatedBlock";
|
|
52
|
+
readonly type: "uint256";
|
|
53
|
+
}, {
|
|
54
|
+
readonly indexed: false;
|
|
55
|
+
readonly name: "confirmBlock";
|
|
56
|
+
readonly type: "uint256";
|
|
57
|
+
}];
|
|
58
|
+
readonly name: "GovChangeConfirmed";
|
|
59
|
+
readonly type: "event";
|
|
60
|
+
}, {
|
|
61
|
+
readonly anonymous: false;
|
|
62
|
+
readonly inputs: readonly [{
|
|
63
|
+
readonly indexed: true;
|
|
64
|
+
readonly name: "cancelledGov";
|
|
65
|
+
readonly type: "address";
|
|
66
|
+
}, {
|
|
67
|
+
readonly indexed: false;
|
|
68
|
+
readonly name: "initiatedBlock";
|
|
69
|
+
readonly type: "uint256";
|
|
70
|
+
}, {
|
|
71
|
+
readonly indexed: false;
|
|
72
|
+
readonly name: "confirmBlock";
|
|
73
|
+
readonly type: "uint256";
|
|
74
|
+
}];
|
|
75
|
+
readonly name: "GovChangeCancelled";
|
|
76
|
+
readonly type: "event";
|
|
77
|
+
}, {
|
|
78
|
+
readonly anonymous: false;
|
|
79
|
+
readonly inputs: readonly [{
|
|
80
|
+
readonly indexed: false;
|
|
81
|
+
readonly name: "delayBlocks";
|
|
82
|
+
readonly type: "uint256";
|
|
83
|
+
}];
|
|
84
|
+
readonly name: "GovChangeDelaySet";
|
|
85
|
+
readonly type: "event";
|
|
86
|
+
}, {
|
|
5
87
|
readonly anonymous: false;
|
|
6
88
|
readonly inputs: readonly [{
|
|
7
89
|
readonly indexed: true;
|
|
@@ -9,18 +91,76 @@ export declare const abi: readonly [{
|
|
|
9
91
|
readonly type: "address";
|
|
10
92
|
}, {
|
|
11
93
|
readonly indexed: false;
|
|
12
|
-
readonly name: "
|
|
94
|
+
readonly name: "description";
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
}, {
|
|
97
|
+
readonly indexed: false;
|
|
98
|
+
readonly name: "confirmBlock";
|
|
99
|
+
readonly type: "uint256";
|
|
100
|
+
}, {
|
|
101
|
+
readonly indexed: false;
|
|
102
|
+
readonly name: "registry";
|
|
103
|
+
readonly type: "string";
|
|
104
|
+
}];
|
|
105
|
+
readonly name: "NewAddyPending";
|
|
106
|
+
readonly type: "event";
|
|
107
|
+
}, {
|
|
108
|
+
readonly anonymous: false;
|
|
109
|
+
readonly inputs: readonly [{
|
|
110
|
+
readonly indexed: true;
|
|
111
|
+
readonly name: "addr";
|
|
112
|
+
readonly type: "address";
|
|
113
|
+
}, {
|
|
114
|
+
readonly indexed: false;
|
|
115
|
+
readonly name: "addyId";
|
|
13
116
|
readonly type: "uint256";
|
|
14
117
|
}, {
|
|
15
118
|
readonly indexed: false;
|
|
16
119
|
readonly name: "description";
|
|
17
120
|
readonly type: "string";
|
|
121
|
+
}, {
|
|
122
|
+
readonly indexed: false;
|
|
123
|
+
readonly name: "registry";
|
|
124
|
+
readonly type: "string";
|
|
18
125
|
}];
|
|
19
|
-
readonly name: "
|
|
126
|
+
readonly name: "NewAddyConfirmed";
|
|
20
127
|
readonly type: "event";
|
|
21
128
|
}, {
|
|
22
129
|
readonly anonymous: false;
|
|
23
130
|
readonly inputs: readonly [{
|
|
131
|
+
readonly indexed: false;
|
|
132
|
+
readonly name: "description";
|
|
133
|
+
readonly type: "string";
|
|
134
|
+
}, {
|
|
135
|
+
readonly indexed: true;
|
|
136
|
+
readonly name: "addr";
|
|
137
|
+
readonly type: "address";
|
|
138
|
+
}, {
|
|
139
|
+
readonly indexed: false;
|
|
140
|
+
readonly name: "initiatedBlock";
|
|
141
|
+
readonly type: "uint256";
|
|
142
|
+
}, {
|
|
143
|
+
readonly indexed: false;
|
|
144
|
+
readonly name: "confirmBlock";
|
|
145
|
+
readonly type: "uint256";
|
|
146
|
+
}, {
|
|
147
|
+
readonly indexed: false;
|
|
148
|
+
readonly name: "registry";
|
|
149
|
+
readonly type: "string";
|
|
150
|
+
}];
|
|
151
|
+
readonly name: "NewPendingAddyCancelled";
|
|
152
|
+
readonly type: "event";
|
|
153
|
+
}, {
|
|
154
|
+
readonly anonymous: false;
|
|
155
|
+
readonly inputs: readonly [{
|
|
156
|
+
readonly indexed: false;
|
|
157
|
+
readonly name: "addyId";
|
|
158
|
+
readonly type: "uint256";
|
|
159
|
+
}, {
|
|
160
|
+
readonly indexed: false;
|
|
161
|
+
readonly name: "description";
|
|
162
|
+
readonly type: "string";
|
|
163
|
+
}, {
|
|
24
164
|
readonly indexed: true;
|
|
25
165
|
readonly name: "newAddr";
|
|
26
166
|
readonly type: "address";
|
|
@@ -30,73 +170,183 @@ export declare const abi: readonly [{
|
|
|
30
170
|
readonly type: "address";
|
|
31
171
|
}, {
|
|
32
172
|
readonly indexed: false;
|
|
33
|
-
readonly name: "
|
|
173
|
+
readonly name: "version";
|
|
34
174
|
readonly type: "uint256";
|
|
35
175
|
}, {
|
|
36
176
|
readonly indexed: false;
|
|
37
|
-
readonly name: "
|
|
177
|
+
readonly name: "confirmBlock";
|
|
38
178
|
readonly type: "uint256";
|
|
39
179
|
}, {
|
|
40
180
|
readonly indexed: false;
|
|
41
|
-
readonly name: "
|
|
181
|
+
readonly name: "registry";
|
|
42
182
|
readonly type: "string";
|
|
43
183
|
}];
|
|
44
|
-
readonly name: "
|
|
184
|
+
readonly name: "AddyUpdatePending";
|
|
45
185
|
readonly type: "event";
|
|
46
186
|
}, {
|
|
47
187
|
readonly anonymous: false;
|
|
48
188
|
readonly inputs: readonly [{
|
|
189
|
+
readonly indexed: false;
|
|
190
|
+
readonly name: "addyId";
|
|
191
|
+
readonly type: "uint256";
|
|
192
|
+
}, {
|
|
193
|
+
readonly indexed: false;
|
|
194
|
+
readonly name: "description";
|
|
195
|
+
readonly type: "string";
|
|
196
|
+
}, {
|
|
197
|
+
readonly indexed: true;
|
|
198
|
+
readonly name: "newAddr";
|
|
199
|
+
readonly type: "address";
|
|
200
|
+
}, {
|
|
49
201
|
readonly indexed: true;
|
|
50
202
|
readonly name: "prevAddr";
|
|
51
203
|
readonly type: "address";
|
|
52
204
|
}, {
|
|
53
205
|
readonly indexed: false;
|
|
54
|
-
readonly name: "
|
|
206
|
+
readonly name: "version";
|
|
55
207
|
readonly type: "uint256";
|
|
56
208
|
}, {
|
|
57
209
|
readonly indexed: false;
|
|
58
|
-
readonly name: "
|
|
210
|
+
readonly name: "registry";
|
|
211
|
+
readonly type: "string";
|
|
212
|
+
}];
|
|
213
|
+
readonly name: "AddyUpdateConfirmed";
|
|
214
|
+
readonly type: "event";
|
|
215
|
+
}, {
|
|
216
|
+
readonly anonymous: false;
|
|
217
|
+
readonly inputs: readonly [{
|
|
218
|
+
readonly indexed: false;
|
|
219
|
+
readonly name: "addyId";
|
|
59
220
|
readonly type: "uint256";
|
|
60
221
|
}, {
|
|
61
222
|
readonly indexed: false;
|
|
62
223
|
readonly name: "description";
|
|
63
224
|
readonly type: "string";
|
|
225
|
+
}, {
|
|
226
|
+
readonly indexed: true;
|
|
227
|
+
readonly name: "newAddr";
|
|
228
|
+
readonly type: "address";
|
|
229
|
+
}, {
|
|
230
|
+
readonly indexed: true;
|
|
231
|
+
readonly name: "prevAddr";
|
|
232
|
+
readonly type: "address";
|
|
233
|
+
}, {
|
|
234
|
+
readonly indexed: false;
|
|
235
|
+
readonly name: "initiatedBlock";
|
|
236
|
+
readonly type: "uint256";
|
|
237
|
+
}, {
|
|
238
|
+
readonly indexed: false;
|
|
239
|
+
readonly name: "confirmBlock";
|
|
240
|
+
readonly type: "uint256";
|
|
241
|
+
}, {
|
|
242
|
+
readonly indexed: false;
|
|
243
|
+
readonly name: "registry";
|
|
244
|
+
readonly type: "string";
|
|
64
245
|
}];
|
|
65
|
-
readonly name: "
|
|
246
|
+
readonly name: "AddyUpdateCancelled";
|
|
66
247
|
readonly type: "event";
|
|
67
248
|
}, {
|
|
68
249
|
readonly anonymous: false;
|
|
69
250
|
readonly inputs: readonly [{
|
|
70
251
|
readonly indexed: false;
|
|
71
|
-
readonly name: "
|
|
252
|
+
readonly name: "addyId";
|
|
253
|
+
readonly type: "uint256";
|
|
254
|
+
}, {
|
|
255
|
+
readonly indexed: false;
|
|
256
|
+
readonly name: "description";
|
|
257
|
+
readonly type: "string";
|
|
258
|
+
}, {
|
|
259
|
+
readonly indexed: true;
|
|
260
|
+
readonly name: "addr";
|
|
261
|
+
readonly type: "address";
|
|
262
|
+
}, {
|
|
263
|
+
readonly indexed: false;
|
|
264
|
+
readonly name: "version";
|
|
265
|
+
readonly type: "uint256";
|
|
266
|
+
}, {
|
|
267
|
+
readonly indexed: false;
|
|
268
|
+
readonly name: "confirmBlock";
|
|
72
269
|
readonly type: "uint256";
|
|
270
|
+
}, {
|
|
271
|
+
readonly indexed: false;
|
|
272
|
+
readonly name: "registry";
|
|
273
|
+
readonly type: "string";
|
|
73
274
|
}];
|
|
74
|
-
readonly name: "
|
|
275
|
+
readonly name: "AddyDisablePending";
|
|
75
276
|
readonly type: "event";
|
|
76
277
|
}, {
|
|
77
278
|
readonly anonymous: false;
|
|
78
279
|
readonly inputs: readonly [{
|
|
79
280
|
readonly indexed: false;
|
|
80
|
-
readonly name: "
|
|
281
|
+
readonly name: "addyId";
|
|
282
|
+
readonly type: "uint256";
|
|
283
|
+
}, {
|
|
284
|
+
readonly indexed: false;
|
|
285
|
+
readonly name: "description";
|
|
286
|
+
readonly type: "string";
|
|
287
|
+
}, {
|
|
288
|
+
readonly indexed: true;
|
|
289
|
+
readonly name: "addr";
|
|
290
|
+
readonly type: "address";
|
|
291
|
+
}, {
|
|
292
|
+
readonly indexed: false;
|
|
293
|
+
readonly name: "version";
|
|
81
294
|
readonly type: "uint256";
|
|
295
|
+
}, {
|
|
296
|
+
readonly indexed: false;
|
|
297
|
+
readonly name: "registry";
|
|
298
|
+
readonly type: "string";
|
|
82
299
|
}];
|
|
83
|
-
readonly name: "
|
|
300
|
+
readonly name: "AddyDisableConfirmed";
|
|
84
301
|
readonly type: "event";
|
|
85
302
|
}, {
|
|
86
303
|
readonly anonymous: false;
|
|
87
304
|
readonly inputs: readonly [{
|
|
305
|
+
readonly indexed: false;
|
|
306
|
+
readonly name: "addyId";
|
|
307
|
+
readonly type: "uint256";
|
|
308
|
+
}, {
|
|
309
|
+
readonly indexed: false;
|
|
310
|
+
readonly name: "description";
|
|
311
|
+
readonly type: "string";
|
|
312
|
+
}, {
|
|
88
313
|
readonly indexed: true;
|
|
89
314
|
readonly name: "addr";
|
|
90
315
|
readonly type: "address";
|
|
316
|
+
}, {
|
|
317
|
+
readonly indexed: false;
|
|
318
|
+
readonly name: "initiatedBlock";
|
|
319
|
+
readonly type: "uint256";
|
|
320
|
+
}, {
|
|
321
|
+
readonly indexed: false;
|
|
322
|
+
readonly name: "confirmBlock";
|
|
323
|
+
readonly type: "uint256";
|
|
324
|
+
}, {
|
|
325
|
+
readonly indexed: false;
|
|
326
|
+
readonly name: "registry";
|
|
327
|
+
readonly type: "string";
|
|
91
328
|
}];
|
|
92
|
-
readonly name: "
|
|
329
|
+
readonly name: "AddyDisableCancelled";
|
|
330
|
+
readonly type: "event";
|
|
331
|
+
}, {
|
|
332
|
+
readonly anonymous: false;
|
|
333
|
+
readonly inputs: readonly [{
|
|
334
|
+
readonly indexed: false;
|
|
335
|
+
readonly name: "delayBlocks";
|
|
336
|
+
readonly type: "uint256";
|
|
337
|
+
}, {
|
|
338
|
+
readonly indexed: false;
|
|
339
|
+
readonly name: "registry";
|
|
340
|
+
readonly type: "string";
|
|
341
|
+
}];
|
|
342
|
+
readonly name: "AddyChangeDelaySet";
|
|
93
343
|
readonly type: "event";
|
|
94
344
|
}, {
|
|
95
345
|
readonly inputs: readonly [{
|
|
96
346
|
readonly name: "_address";
|
|
97
347
|
readonly type: "address";
|
|
98
348
|
}];
|
|
99
|
-
readonly name: "
|
|
349
|
+
readonly name: "canGovern";
|
|
100
350
|
readonly outputs: readonly [{
|
|
101
351
|
readonly name: "";
|
|
102
352
|
readonly type: "bool";
|
|
@@ -104,11 +354,8 @@ export declare const abi: readonly [{
|
|
|
104
354
|
readonly stateMutability: "view";
|
|
105
355
|
readonly type: "function";
|
|
106
356
|
}, {
|
|
107
|
-
readonly inputs: readonly [
|
|
108
|
-
|
|
109
|
-
readonly type: "address";
|
|
110
|
-
}];
|
|
111
|
-
readonly name: "isValidLocalGovernor";
|
|
357
|
+
readonly inputs: readonly [];
|
|
358
|
+
readonly name: "hasPendingGovChange";
|
|
112
359
|
readonly outputs: readonly [{
|
|
113
360
|
readonly name: "";
|
|
114
361
|
readonly type: "bool";
|
|
@@ -117,25 +364,89 @@ export declare const abi: readonly [{
|
|
|
117
364
|
readonly type: "function";
|
|
118
365
|
}, {
|
|
119
366
|
readonly inputs: readonly [{
|
|
120
|
-
readonly name: "
|
|
367
|
+
readonly name: "_newGov";
|
|
121
368
|
readonly type: "address";
|
|
122
369
|
}];
|
|
123
|
-
readonly name: "
|
|
124
|
-
readonly outputs: readonly [
|
|
125
|
-
|
|
126
|
-
|
|
370
|
+
readonly name: "changeGovernance";
|
|
371
|
+
readonly outputs: readonly [];
|
|
372
|
+
readonly stateMutability: "nonpayable";
|
|
373
|
+
readonly type: "function";
|
|
374
|
+
}, {
|
|
375
|
+
readonly inputs: readonly [];
|
|
376
|
+
readonly name: "confirmGovernanceChange";
|
|
377
|
+
readonly outputs: readonly [];
|
|
378
|
+
readonly stateMutability: "nonpayable";
|
|
379
|
+
readonly type: "function";
|
|
380
|
+
}, {
|
|
381
|
+
readonly inputs: readonly [];
|
|
382
|
+
readonly name: "cancelGovernanceChange";
|
|
383
|
+
readonly outputs: readonly [];
|
|
384
|
+
readonly stateMutability: "nonpayable";
|
|
385
|
+
readonly type: "function";
|
|
386
|
+
}, {
|
|
387
|
+
readonly inputs: readonly [{
|
|
388
|
+
readonly name: "_numBlocks";
|
|
389
|
+
readonly type: "uint256";
|
|
127
390
|
}];
|
|
391
|
+
readonly name: "setGovernanceChangeDelay";
|
|
392
|
+
readonly outputs: readonly [];
|
|
128
393
|
readonly stateMutability: "nonpayable";
|
|
129
394
|
readonly type: "function";
|
|
130
395
|
}, {
|
|
131
396
|
readonly inputs: readonly [];
|
|
132
|
-
readonly name: "
|
|
397
|
+
readonly name: "governance";
|
|
133
398
|
readonly outputs: readonly [{
|
|
134
399
|
readonly name: "";
|
|
135
400
|
readonly type: "address";
|
|
136
401
|
}];
|
|
137
402
|
readonly stateMutability: "view";
|
|
138
403
|
readonly type: "function";
|
|
404
|
+
}, {
|
|
405
|
+
readonly inputs: readonly [];
|
|
406
|
+
readonly name: "pendingGov";
|
|
407
|
+
readonly outputs: readonly [{
|
|
408
|
+
readonly components: readonly [{
|
|
409
|
+
readonly name: "newGov";
|
|
410
|
+
readonly type: "address";
|
|
411
|
+
}, {
|
|
412
|
+
readonly name: "initiatedBlock";
|
|
413
|
+
readonly type: "uint256";
|
|
414
|
+
}, {
|
|
415
|
+
readonly name: "confirmBlock";
|
|
416
|
+
readonly type: "uint256";
|
|
417
|
+
}];
|
|
418
|
+
readonly name: "";
|
|
419
|
+
readonly type: "tuple";
|
|
420
|
+
}];
|
|
421
|
+
readonly stateMutability: "view";
|
|
422
|
+
readonly type: "function";
|
|
423
|
+
}, {
|
|
424
|
+
readonly inputs: readonly [];
|
|
425
|
+
readonly name: "govChangeDelay";
|
|
426
|
+
readonly outputs: readonly [{
|
|
427
|
+
readonly name: "";
|
|
428
|
+
readonly type: "uint256";
|
|
429
|
+
}];
|
|
430
|
+
readonly stateMutability: "view";
|
|
431
|
+
readonly type: "function";
|
|
432
|
+
}, {
|
|
433
|
+
readonly inputs: readonly [];
|
|
434
|
+
readonly name: "MIN_GOV_CHANGE_DELAY";
|
|
435
|
+
readonly outputs: readonly [{
|
|
436
|
+
readonly name: "";
|
|
437
|
+
readonly type: "uint256";
|
|
438
|
+
}];
|
|
439
|
+
readonly stateMutability: "view";
|
|
440
|
+
readonly type: "function";
|
|
441
|
+
}, {
|
|
442
|
+
readonly inputs: readonly [];
|
|
443
|
+
readonly name: "MAX_GOV_CHANGE_DELAY";
|
|
444
|
+
readonly outputs: readonly [{
|
|
445
|
+
readonly name: "";
|
|
446
|
+
readonly type: "uint256";
|
|
447
|
+
}];
|
|
448
|
+
readonly stateMutability: "view";
|
|
449
|
+
readonly type: "function";
|
|
139
450
|
}, {
|
|
140
451
|
readonly inputs: readonly [{
|
|
141
452
|
readonly name: "_asset";
|
|
@@ -316,12 +627,36 @@ export declare const abi: readonly [{
|
|
|
316
627
|
readonly type: "string";
|
|
317
628
|
}];
|
|
318
629
|
readonly name: "registerNewOraclePartner";
|
|
630
|
+
readonly outputs: readonly [{
|
|
631
|
+
readonly name: "";
|
|
632
|
+
readonly type: "bool";
|
|
633
|
+
}];
|
|
634
|
+
readonly stateMutability: "nonpayable";
|
|
635
|
+
readonly type: "function";
|
|
636
|
+
}, {
|
|
637
|
+
readonly inputs: readonly [{
|
|
638
|
+
readonly name: "_addr";
|
|
639
|
+
readonly type: "address";
|
|
640
|
+
}];
|
|
641
|
+
readonly name: "confirmNewOraclePartnerRegistration";
|
|
319
642
|
readonly outputs: readonly [{
|
|
320
643
|
readonly name: "";
|
|
321
644
|
readonly type: "uint256";
|
|
322
645
|
}];
|
|
323
646
|
readonly stateMutability: "nonpayable";
|
|
324
647
|
readonly type: "function";
|
|
648
|
+
}, {
|
|
649
|
+
readonly inputs: readonly [{
|
|
650
|
+
readonly name: "_addr";
|
|
651
|
+
readonly type: "address";
|
|
652
|
+
}];
|
|
653
|
+
readonly name: "cancelPendingNewOraclePartner";
|
|
654
|
+
readonly outputs: readonly [{
|
|
655
|
+
readonly name: "";
|
|
656
|
+
readonly type: "bool";
|
|
657
|
+
}];
|
|
658
|
+
readonly stateMutability: "nonpayable";
|
|
659
|
+
readonly type: "function";
|
|
325
660
|
}, {
|
|
326
661
|
readonly inputs: readonly [{
|
|
327
662
|
readonly name: "_oracleId";
|
|
@@ -352,6 +687,30 @@ export declare const abi: readonly [{
|
|
|
352
687
|
}];
|
|
353
688
|
readonly stateMutability: "nonpayable";
|
|
354
689
|
readonly type: "function";
|
|
690
|
+
}, {
|
|
691
|
+
readonly inputs: readonly [{
|
|
692
|
+
readonly name: "_oracleId";
|
|
693
|
+
readonly type: "uint256";
|
|
694
|
+
}];
|
|
695
|
+
readonly name: "confirmOraclePartnerUpdate";
|
|
696
|
+
readonly outputs: readonly [{
|
|
697
|
+
readonly name: "";
|
|
698
|
+
readonly type: "bool";
|
|
699
|
+
}];
|
|
700
|
+
readonly stateMutability: "nonpayable";
|
|
701
|
+
readonly type: "function";
|
|
702
|
+
}, {
|
|
703
|
+
readonly inputs: readonly [{
|
|
704
|
+
readonly name: "_oracleId";
|
|
705
|
+
readonly type: "uint256";
|
|
706
|
+
}];
|
|
707
|
+
readonly name: "cancelPendingOraclePartnerUpdate";
|
|
708
|
+
readonly outputs: readonly [{
|
|
709
|
+
readonly name: "";
|
|
710
|
+
readonly type: "bool";
|
|
711
|
+
}];
|
|
712
|
+
readonly stateMutability: "nonpayable";
|
|
713
|
+
readonly type: "function";
|
|
355
714
|
}, {
|
|
356
715
|
readonly inputs: readonly [{
|
|
357
716
|
readonly name: "_oracleId";
|
|
@@ -376,6 +735,51 @@ export declare const abi: readonly [{
|
|
|
376
735
|
}];
|
|
377
736
|
readonly stateMutability: "nonpayable";
|
|
378
737
|
readonly type: "function";
|
|
738
|
+
}, {
|
|
739
|
+
readonly inputs: readonly [{
|
|
740
|
+
readonly name: "_oracleId";
|
|
741
|
+
readonly type: "uint256";
|
|
742
|
+
}];
|
|
743
|
+
readonly name: "confirmOraclePartnerDisable";
|
|
744
|
+
readonly outputs: readonly [{
|
|
745
|
+
readonly name: "";
|
|
746
|
+
readonly type: "bool";
|
|
747
|
+
}];
|
|
748
|
+
readonly stateMutability: "nonpayable";
|
|
749
|
+
readonly type: "function";
|
|
750
|
+
}, {
|
|
751
|
+
readonly inputs: readonly [{
|
|
752
|
+
readonly name: "_oracleId";
|
|
753
|
+
readonly type: "uint256";
|
|
754
|
+
}];
|
|
755
|
+
readonly name: "cancelPendingOraclePartnerDisable";
|
|
756
|
+
readonly outputs: readonly [{
|
|
757
|
+
readonly name: "";
|
|
758
|
+
readonly type: "bool";
|
|
759
|
+
}];
|
|
760
|
+
readonly stateMutability: "nonpayable";
|
|
761
|
+
readonly type: "function";
|
|
762
|
+
}, {
|
|
763
|
+
readonly inputs: readonly [{
|
|
764
|
+
readonly name: "_numBlocks";
|
|
765
|
+
readonly type: "uint256";
|
|
766
|
+
}];
|
|
767
|
+
readonly name: "setOraclePartnerChangeDelay";
|
|
768
|
+
readonly outputs: readonly [{
|
|
769
|
+
readonly name: "";
|
|
770
|
+
readonly type: "bool";
|
|
771
|
+
}];
|
|
772
|
+
readonly stateMutability: "nonpayable";
|
|
773
|
+
readonly type: "function";
|
|
774
|
+
}, {
|
|
775
|
+
readonly inputs: readonly [];
|
|
776
|
+
readonly name: "oracleChangeDelay";
|
|
777
|
+
readonly outputs: readonly [{
|
|
778
|
+
readonly name: "";
|
|
779
|
+
readonly type: "uint256";
|
|
780
|
+
}];
|
|
781
|
+
readonly stateMutability: "view";
|
|
782
|
+
readonly type: "function";
|
|
379
783
|
}, {
|
|
380
784
|
readonly inputs: readonly [];
|
|
381
785
|
readonly name: "getPriorityOraclePartnerIds";
|
|
@@ -433,6 +837,15 @@ export declare const abi: readonly [{
|
|
|
433
837
|
}];
|
|
434
838
|
readonly stateMutability: "nonpayable";
|
|
435
839
|
readonly type: "function";
|
|
840
|
+
}, {
|
|
841
|
+
readonly inputs: readonly [];
|
|
842
|
+
readonly name: "numOraclePartnersRaw";
|
|
843
|
+
readonly outputs: readonly [{
|
|
844
|
+
readonly name: "";
|
|
845
|
+
readonly type: "uint256";
|
|
846
|
+
}];
|
|
847
|
+
readonly stateMutability: "view";
|
|
848
|
+
readonly type: "function";
|
|
436
849
|
}, {
|
|
437
850
|
readonly inputs: readonly [{
|
|
438
851
|
readonly name: "_addr";
|
|
@@ -545,52 +958,6 @@ export declare const abi: readonly [{
|
|
|
545
958
|
}];
|
|
546
959
|
readonly stateMutability: "view";
|
|
547
960
|
readonly type: "function";
|
|
548
|
-
}, {
|
|
549
|
-
readonly inputs: readonly [{
|
|
550
|
-
readonly name: "arg0";
|
|
551
|
-
readonly type: "uint256";
|
|
552
|
-
}];
|
|
553
|
-
readonly name: "oraclePartnerInfo";
|
|
554
|
-
readonly outputs: readonly [{
|
|
555
|
-
readonly components: readonly [{
|
|
556
|
-
readonly name: "addr";
|
|
557
|
-
readonly type: "address";
|
|
558
|
-
}, {
|
|
559
|
-
readonly name: "version";
|
|
560
|
-
readonly type: "uint256";
|
|
561
|
-
}, {
|
|
562
|
-
readonly name: "lastModified";
|
|
563
|
-
readonly type: "uint256";
|
|
564
|
-
}, {
|
|
565
|
-
readonly name: "description";
|
|
566
|
-
readonly type: "string";
|
|
567
|
-
}];
|
|
568
|
-
readonly name: "";
|
|
569
|
-
readonly type: "tuple";
|
|
570
|
-
}];
|
|
571
|
-
readonly stateMutability: "view";
|
|
572
|
-
readonly type: "function";
|
|
573
|
-
}, {
|
|
574
|
-
readonly inputs: readonly [{
|
|
575
|
-
readonly name: "arg0";
|
|
576
|
-
readonly type: "address";
|
|
577
|
-
}];
|
|
578
|
-
readonly name: "oraclePartnerAddrToId";
|
|
579
|
-
readonly outputs: readonly [{
|
|
580
|
-
readonly name: "";
|
|
581
|
-
readonly type: "uint256";
|
|
582
|
-
}];
|
|
583
|
-
readonly stateMutability: "view";
|
|
584
|
-
readonly type: "function";
|
|
585
|
-
}, {
|
|
586
|
-
readonly inputs: readonly [];
|
|
587
|
-
readonly name: "numOraclePartners";
|
|
588
|
-
readonly outputs: readonly [{
|
|
589
|
-
readonly name: "";
|
|
590
|
-
readonly type: "uint256";
|
|
591
|
-
}];
|
|
592
|
-
readonly stateMutability: "view";
|
|
593
|
-
readonly type: "function";
|
|
594
961
|
}, {
|
|
595
962
|
readonly inputs: readonly [{
|
|
596
963
|
readonly name: "arg0";
|
|
@@ -612,15 +979,6 @@ export declare const abi: readonly [{
|
|
|
612
979
|
}];
|
|
613
980
|
readonly stateMutability: "view";
|
|
614
981
|
readonly type: "function";
|
|
615
|
-
}, {
|
|
616
|
-
readonly inputs: readonly [];
|
|
617
|
-
readonly name: "ADDY_REGISTRY";
|
|
618
|
-
readonly outputs: readonly [{
|
|
619
|
-
readonly name: "";
|
|
620
|
-
readonly type: "address";
|
|
621
|
-
}];
|
|
622
|
-
readonly stateMutability: "view";
|
|
623
|
-
readonly type: "function";
|
|
624
982
|
}, {
|
|
625
983
|
readonly inputs: readonly [];
|
|
626
984
|
readonly name: "ETH";
|
|
@@ -650,6 +1008,9 @@ export declare const abi: readonly [{
|
|
|
650
1008
|
readonly type: "function";
|
|
651
1009
|
}, {
|
|
652
1010
|
readonly inputs: readonly [{
|
|
1011
|
+
readonly name: "_addyRegistry";
|
|
1012
|
+
readonly type: "address";
|
|
1013
|
+
}, {
|
|
653
1014
|
readonly name: "_ethAddr";
|
|
654
1015
|
readonly type: "address";
|
|
655
1016
|
}, {
|
|
@@ -659,8 +1020,11 @@ export declare const abi: readonly [{
|
|
|
659
1020
|
readonly name: "_maxStaleTime";
|
|
660
1021
|
readonly type: "uint256";
|
|
661
1022
|
}, {
|
|
662
|
-
readonly name: "
|
|
663
|
-
readonly type: "
|
|
1023
|
+
readonly name: "_minOracleChangeDelay";
|
|
1024
|
+
readonly type: "uint256";
|
|
1025
|
+
}, {
|
|
1026
|
+
readonly name: "_maxOracleChangeDelay";
|
|
1027
|
+
readonly type: "uint256";
|
|
664
1028
|
}];
|
|
665
1029
|
readonly outputs: readonly [];
|
|
666
1030
|
readonly stateMutability: "nonpayable";
|
|
@@ -669,9 +1033,17 @@ export declare const abi: readonly [{
|
|
|
669
1033
|
export declare const deployAddress: Address | undefined;
|
|
670
1034
|
export type Contract = {
|
|
671
1035
|
calls: {
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
1036
|
+
canGovern: (address: `0x${string}`) => Promise<boolean>;
|
|
1037
|
+
hasPendingGovChange: () => Promise<boolean>;
|
|
1038
|
+
governance: () => Promise<`0x${string}`>;
|
|
1039
|
+
pendingGov: () => Promise<{
|
|
1040
|
+
newGov: `0x${string}`;
|
|
1041
|
+
initiatedBlock: bigint;
|
|
1042
|
+
confirmBlock: bigint;
|
|
1043
|
+
}>;
|
|
1044
|
+
govChangeDelay: () => Promise<bigint>;
|
|
1045
|
+
MIN_GOV_CHANGE_DELAY: () => Promise<bigint>;
|
|
1046
|
+
MAX_GOV_CHANGE_DELAY: () => Promise<bigint>;
|
|
675
1047
|
getPrice: (asset: `0x${string}`, shouldRaise?: boolean) => Promise<bigint>;
|
|
676
1048
|
getUsdValue: (asset: `0x${string}`, amount: bigint, shouldRaise?: boolean) => Promise<bigint>;
|
|
677
1049
|
getAssetAmount: (asset: `0x${string}`, usdValue: bigint, shouldRaise?: boolean) => Promise<bigint>;
|
|
@@ -681,9 +1053,11 @@ export type Contract = {
|
|
|
681
1053
|
isValidNewOraclePartnerAddr: (addr: `0x${string}`) => Promise<boolean>;
|
|
682
1054
|
isValidOraclePartnerUpdate: (oracleId: bigint, newAddr: `0x${string}`) => Promise<boolean>;
|
|
683
1055
|
isValidOraclePartnerDisable: (oracleId: bigint) => Promise<boolean>;
|
|
1056
|
+
oracleChangeDelay: () => Promise<bigint>;
|
|
684
1057
|
getPriorityOraclePartnerIds: () => Promise<bigint[]>;
|
|
685
1058
|
areValidPriorityOraclePartnerIds: (priorityIds: bigint[]) => Promise<boolean>;
|
|
686
1059
|
isValidStaleTime: (staleTime: bigint) => Promise<boolean>;
|
|
1060
|
+
numOraclePartnersRaw: () => Promise<bigint>;
|
|
687
1061
|
isValidOraclePartnerAddr: (addr: `0x${string}`) => Promise<boolean>;
|
|
688
1062
|
isValidOraclePartnerId: (oracleId: bigint) => Promise<boolean>;
|
|
689
1063
|
getOraclePartnerId: (addr: `0x${string}`) => Promise<bigint>;
|
|
@@ -698,36 +1072,47 @@ export type Contract = {
|
|
|
698
1072
|
getNumOraclePartners: () => Promise<bigint>;
|
|
699
1073
|
getLastOraclePartnerAddr: () => Promise<`0x${string}`>;
|
|
700
1074
|
getLastOraclePartnerId: () => Promise<bigint>;
|
|
701
|
-
oraclePartnerInfo: (arg0: bigint) => Promise<{
|
|
702
|
-
addr: `0x${string}`;
|
|
703
|
-
version: bigint;
|
|
704
|
-
lastModified: bigint;
|
|
705
|
-
description: string;
|
|
706
|
-
}>;
|
|
707
|
-
oraclePartnerAddrToId: (arg0: `0x${string}`) => Promise<bigint>;
|
|
708
|
-
numOraclePartners: () => Promise<bigint>;
|
|
709
1075
|
priorityOraclePartnerIds: (arg0: bigint) => Promise<bigint>;
|
|
710
1076
|
staleTime: () => Promise<bigint>;
|
|
711
|
-
ADDY_REGISTRY: () => Promise<`0x${string}`>;
|
|
712
1077
|
ETH: () => Promise<`0x${string}`>;
|
|
713
1078
|
MIN_STALE_TIME: () => Promise<bigint>;
|
|
714
1079
|
MAX_STALE_TIME: () => Promise<bigint>;
|
|
715
1080
|
};
|
|
716
1081
|
mutations: {
|
|
717
|
-
|
|
718
|
-
|
|
1082
|
+
changeGovernance: (newGov: `0x${string}`) => Promise<void>;
|
|
1083
|
+
confirmGovernanceChange: () => Promise<void>;
|
|
1084
|
+
cancelGovernanceChange: () => Promise<void>;
|
|
1085
|
+
setGovernanceChangeDelay: (numBlocks: bigint) => Promise<void>;
|
|
1086
|
+
registerNewOraclePartner: (addr: `0x${string}`, description: string) => Promise<boolean>;
|
|
1087
|
+
confirmNewOraclePartnerRegistration: (addr: `0x${string}`) => Promise<bigint>;
|
|
1088
|
+
cancelPendingNewOraclePartner: (addr: `0x${string}`) => Promise<boolean>;
|
|
719
1089
|
updateOraclePartnerAddr: (oracleId: bigint, newAddr: `0x${string}`) => Promise<boolean>;
|
|
1090
|
+
confirmOraclePartnerUpdate: (oracleId: bigint) => Promise<boolean>;
|
|
1091
|
+
cancelPendingOraclePartnerUpdate: (oracleId: bigint) => Promise<boolean>;
|
|
720
1092
|
disableOraclePartnerAddr: (oracleId: bigint) => Promise<boolean>;
|
|
1093
|
+
confirmOraclePartnerDisable: (oracleId: bigint) => Promise<boolean>;
|
|
1094
|
+
cancelPendingOraclePartnerDisable: (oracleId: bigint) => Promise<boolean>;
|
|
1095
|
+
setOraclePartnerChangeDelay: (numBlocks: bigint) => Promise<boolean>;
|
|
721
1096
|
setPriorityOraclePartnerIds: (priorityIds: bigint[]) => Promise<boolean>;
|
|
722
1097
|
setStaleTime: (staleTime: bigint) => Promise<boolean>;
|
|
723
1098
|
};
|
|
724
1099
|
events: {
|
|
725
|
-
NewOraclePartnerRegistered: (addr: `0x${string}`, oraclePartnerId: bigint, description: string) => Promise<void>;
|
|
726
|
-
OraclePartnerAddrUpdated: (newAddr: `0x${string}`, prevAddr: `0x${string}`, oraclePartnerId: bigint, version: bigint, description: string) => Promise<void>;
|
|
727
|
-
OraclePartnerAddrDisabled: (prevAddr: `0x${string}`, oraclePartnerId: bigint, version: bigint, description: string) => Promise<void>;
|
|
728
1100
|
PriorityOraclePartnerIdsModified: (numIds: bigint) => Promise<void>;
|
|
729
1101
|
StaleTimeSet: (staleTime: bigint) => Promise<void>;
|
|
730
|
-
|
|
1102
|
+
GovChangeInitiated: (prevGov: `0x${string}`, newGov: `0x${string}`, confirmBlock: bigint) => Promise<void>;
|
|
1103
|
+
GovChangeConfirmed: (prevGov: `0x${string}`, newGov: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
|
|
1104
|
+
GovChangeCancelled: (cancelledGov: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
|
|
1105
|
+
GovChangeDelaySet: (delayBlocks: bigint) => Promise<void>;
|
|
1106
|
+
NewAddyPending: (addr: `0x${string}`, description: string, confirmBlock: bigint, registry: string) => Promise<void>;
|
|
1107
|
+
NewAddyConfirmed: (addr: `0x${string}`, addyId: bigint, description: string, registry: string) => Promise<void>;
|
|
1108
|
+
NewPendingAddyCancelled: (description: string, addr: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint, registry: string) => Promise<void>;
|
|
1109
|
+
AddyUpdatePending: (addyId: bigint, description: string, newAddr: `0x${string}`, prevAddr: `0x${string}`, version: bigint, confirmBlock: bigint, registry: string) => Promise<void>;
|
|
1110
|
+
AddyUpdateConfirmed: (addyId: bigint, description: string, newAddr: `0x${string}`, prevAddr: `0x${string}`, version: bigint, registry: string) => Promise<void>;
|
|
1111
|
+
AddyUpdateCancelled: (addyId: bigint, description: string, newAddr: `0x${string}`, prevAddr: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint, registry: string) => Promise<void>;
|
|
1112
|
+
AddyDisablePending: (addyId: bigint, description: string, addr: `0x${string}`, version: bigint, confirmBlock: bigint, registry: string) => Promise<void>;
|
|
1113
|
+
AddyDisableConfirmed: (addyId: bigint, description: string, addr: `0x${string}`, version: bigint, registry: string) => Promise<void>;
|
|
1114
|
+
AddyDisableCancelled: (addyId: bigint, description: string, addr: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint, registry: string) => Promise<void>;
|
|
1115
|
+
AddyChangeDelaySet: (delayBlocks: bigint, registry: string) => Promise<void>;
|
|
731
1116
|
};
|
|
732
1117
|
};
|
|
733
1118
|
export type Calls = keyof Contract['calls'];
|
|
@@ -766,9 +1151,13 @@ export declare const mutation: {
|
|
|
766
1151
|
};
|
|
767
1152
|
};
|
|
768
1153
|
export type SDK = {
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
1154
|
+
canGovern: (...args: ExtractArgs<Contract['calls']['canGovern']>) => Promise<CallReturn<'canGovern'>>;
|
|
1155
|
+
hasPendingGovChange: (...args: ExtractArgs<Contract['calls']['hasPendingGovChange']>) => Promise<CallReturn<'hasPendingGovChange'>>;
|
|
1156
|
+
governance: (...args: ExtractArgs<Contract['calls']['governance']>) => Promise<CallReturn<'governance'>>;
|
|
1157
|
+
pendingGov: (...args: ExtractArgs<Contract['calls']['pendingGov']>) => Promise<CallReturn<'pendingGov'>>;
|
|
1158
|
+
govChangeDelay: (...args: ExtractArgs<Contract['calls']['govChangeDelay']>) => Promise<CallReturn<'govChangeDelay'>>;
|
|
1159
|
+
MIN_GOV_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MIN_GOV_CHANGE_DELAY']>) => Promise<CallReturn<'MIN_GOV_CHANGE_DELAY'>>;
|
|
1160
|
+
MAX_GOV_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MAX_GOV_CHANGE_DELAY']>) => Promise<CallReturn<'MAX_GOV_CHANGE_DELAY'>>;
|
|
772
1161
|
getPrice: (...args: ExtractArgs<Contract['calls']['getPrice']>) => Promise<CallReturn<'getPrice'>>;
|
|
773
1162
|
getUsdValue: (...args: ExtractArgs<Contract['calls']['getUsdValue']>) => Promise<CallReturn<'getUsdValue'>>;
|
|
774
1163
|
getAssetAmount: (...args: ExtractArgs<Contract['calls']['getAssetAmount']>) => Promise<CallReturn<'getAssetAmount'>>;
|
|
@@ -778,9 +1167,11 @@ export type SDK = {
|
|
|
778
1167
|
isValidNewOraclePartnerAddr: (...args: ExtractArgs<Contract['calls']['isValidNewOraclePartnerAddr']>) => Promise<CallReturn<'isValidNewOraclePartnerAddr'>>;
|
|
779
1168
|
isValidOraclePartnerUpdate: (...args: ExtractArgs<Contract['calls']['isValidOraclePartnerUpdate']>) => Promise<CallReturn<'isValidOraclePartnerUpdate'>>;
|
|
780
1169
|
isValidOraclePartnerDisable: (...args: ExtractArgs<Contract['calls']['isValidOraclePartnerDisable']>) => Promise<CallReturn<'isValidOraclePartnerDisable'>>;
|
|
1170
|
+
oracleChangeDelay: (...args: ExtractArgs<Contract['calls']['oracleChangeDelay']>) => Promise<CallReturn<'oracleChangeDelay'>>;
|
|
781
1171
|
getPriorityOraclePartnerIds: (...args: ExtractArgs<Contract['calls']['getPriorityOraclePartnerIds']>) => Promise<CallReturn<'getPriorityOraclePartnerIds'>>;
|
|
782
1172
|
areValidPriorityOraclePartnerIds: (...args: ExtractArgs<Contract['calls']['areValidPriorityOraclePartnerIds']>) => Promise<CallReturn<'areValidPriorityOraclePartnerIds'>>;
|
|
783
1173
|
isValidStaleTime: (...args: ExtractArgs<Contract['calls']['isValidStaleTime']>) => Promise<CallReturn<'isValidStaleTime'>>;
|
|
1174
|
+
numOraclePartnersRaw: (...args: ExtractArgs<Contract['calls']['numOraclePartnersRaw']>) => Promise<CallReturn<'numOraclePartnersRaw'>>;
|
|
784
1175
|
isValidOraclePartnerAddr: (...args: ExtractArgs<Contract['calls']['isValidOraclePartnerAddr']>) => Promise<CallReturn<'isValidOraclePartnerAddr'>>;
|
|
785
1176
|
isValidOraclePartnerId: (...args: ExtractArgs<Contract['calls']['isValidOraclePartnerId']>) => Promise<CallReturn<'isValidOraclePartnerId'>>;
|
|
786
1177
|
getOraclePartnerId: (...args: ExtractArgs<Contract['calls']['getOraclePartnerId']>) => Promise<CallReturn<'getOraclePartnerId'>>;
|
|
@@ -790,19 +1181,25 @@ export type SDK = {
|
|
|
790
1181
|
getNumOraclePartners: (...args: ExtractArgs<Contract['calls']['getNumOraclePartners']>) => Promise<CallReturn<'getNumOraclePartners'>>;
|
|
791
1182
|
getLastOraclePartnerAddr: (...args: ExtractArgs<Contract['calls']['getLastOraclePartnerAddr']>) => Promise<CallReturn<'getLastOraclePartnerAddr'>>;
|
|
792
1183
|
getLastOraclePartnerId: (...args: ExtractArgs<Contract['calls']['getLastOraclePartnerId']>) => Promise<CallReturn<'getLastOraclePartnerId'>>;
|
|
793
|
-
oraclePartnerInfo: (...args: ExtractArgs<Contract['calls']['oraclePartnerInfo']>) => Promise<CallReturn<'oraclePartnerInfo'>>;
|
|
794
|
-
oraclePartnerAddrToId: (...args: ExtractArgs<Contract['calls']['oraclePartnerAddrToId']>) => Promise<CallReturn<'oraclePartnerAddrToId'>>;
|
|
795
|
-
numOraclePartners: (...args: ExtractArgs<Contract['calls']['numOraclePartners']>) => Promise<CallReturn<'numOraclePartners'>>;
|
|
796
1184
|
priorityOraclePartnerIds: (...args: ExtractArgs<Contract['calls']['priorityOraclePartnerIds']>) => Promise<CallReturn<'priorityOraclePartnerIds'>>;
|
|
797
1185
|
staleTime: (...args: ExtractArgs<Contract['calls']['staleTime']>) => Promise<CallReturn<'staleTime'>>;
|
|
798
|
-
ADDY_REGISTRY: (...args: ExtractArgs<Contract['calls']['ADDY_REGISTRY']>) => Promise<CallReturn<'ADDY_REGISTRY'>>;
|
|
799
1186
|
ETH: (...args: ExtractArgs<Contract['calls']['ETH']>) => Promise<CallReturn<'ETH'>>;
|
|
800
1187
|
MIN_STALE_TIME: (...args: ExtractArgs<Contract['calls']['MIN_STALE_TIME']>) => Promise<CallReturn<'MIN_STALE_TIME'>>;
|
|
801
1188
|
MAX_STALE_TIME: (...args: ExtractArgs<Contract['calls']['MAX_STALE_TIME']>) => Promise<CallReturn<'MAX_STALE_TIME'>>;
|
|
802
|
-
|
|
1189
|
+
changeGovernance: (...args: ExtractArgs<Contract['mutations']['changeGovernance']>) => Promise<Address>;
|
|
1190
|
+
confirmGovernanceChange: (...args: ExtractArgs<Contract['mutations']['confirmGovernanceChange']>) => Promise<Address>;
|
|
1191
|
+
cancelGovernanceChange: (...args: ExtractArgs<Contract['mutations']['cancelGovernanceChange']>) => Promise<Address>;
|
|
1192
|
+
setGovernanceChangeDelay: (...args: ExtractArgs<Contract['mutations']['setGovernanceChangeDelay']>) => Promise<Address>;
|
|
803
1193
|
registerNewOraclePartner: (...args: ExtractArgs<Contract['mutations']['registerNewOraclePartner']>) => Promise<Address>;
|
|
1194
|
+
confirmNewOraclePartnerRegistration: (...args: ExtractArgs<Contract['mutations']['confirmNewOraclePartnerRegistration']>) => Promise<Address>;
|
|
1195
|
+
cancelPendingNewOraclePartner: (...args: ExtractArgs<Contract['mutations']['cancelPendingNewOraclePartner']>) => Promise<Address>;
|
|
804
1196
|
updateOraclePartnerAddr: (...args: ExtractArgs<Contract['mutations']['updateOraclePartnerAddr']>) => Promise<Address>;
|
|
1197
|
+
confirmOraclePartnerUpdate: (...args: ExtractArgs<Contract['mutations']['confirmOraclePartnerUpdate']>) => Promise<Address>;
|
|
1198
|
+
cancelPendingOraclePartnerUpdate: (...args: ExtractArgs<Contract['mutations']['cancelPendingOraclePartnerUpdate']>) => Promise<Address>;
|
|
805
1199
|
disableOraclePartnerAddr: (...args: ExtractArgs<Contract['mutations']['disableOraclePartnerAddr']>) => Promise<Address>;
|
|
1200
|
+
confirmOraclePartnerDisable: (...args: ExtractArgs<Contract['mutations']['confirmOraclePartnerDisable']>) => Promise<Address>;
|
|
1201
|
+
cancelPendingOraclePartnerDisable: (...args: ExtractArgs<Contract['mutations']['cancelPendingOraclePartnerDisable']>) => Promise<Address>;
|
|
1202
|
+
setOraclePartnerChangeDelay: (...args: ExtractArgs<Contract['mutations']['setOraclePartnerChangeDelay']>) => Promise<Address>;
|
|
806
1203
|
setPriorityOraclePartnerIds: (...args: ExtractArgs<Contract['mutations']['setPriorityOraclePartnerIds']>) => Promise<Address>;
|
|
807
1204
|
setStaleTime: (...args: ExtractArgs<Contract['mutations']['setStaleTime']>) => Promise<Address>;
|
|
808
1205
|
};
|