@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,100 @@ 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: true;
|
|
8
|
+
readonly name: "helperAddr";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}];
|
|
11
|
+
readonly name: "LegoHelperSet";
|
|
12
|
+
readonly type: "event";
|
|
13
|
+
}, {
|
|
14
|
+
readonly anonymous: false;
|
|
15
|
+
readonly inputs: readonly [{
|
|
16
|
+
readonly indexed: true;
|
|
17
|
+
readonly name: "prevGov";
|
|
18
|
+
readonly type: "address";
|
|
19
|
+
}, {
|
|
20
|
+
readonly indexed: true;
|
|
21
|
+
readonly name: "newGov";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}, {
|
|
24
|
+
readonly indexed: false;
|
|
25
|
+
readonly name: "confirmBlock";
|
|
26
|
+
readonly type: "uint256";
|
|
27
|
+
}];
|
|
28
|
+
readonly name: "GovChangeInitiated";
|
|
29
|
+
readonly type: "event";
|
|
30
|
+
}, {
|
|
31
|
+
readonly anonymous: false;
|
|
32
|
+
readonly inputs: readonly [{
|
|
33
|
+
readonly indexed: true;
|
|
34
|
+
readonly name: "prevGov";
|
|
35
|
+
readonly type: "address";
|
|
36
|
+
}, {
|
|
37
|
+
readonly indexed: true;
|
|
38
|
+
readonly name: "newGov";
|
|
39
|
+
readonly type: "address";
|
|
40
|
+
}, {
|
|
41
|
+
readonly indexed: false;
|
|
42
|
+
readonly name: "initiatedBlock";
|
|
43
|
+
readonly type: "uint256";
|
|
44
|
+
}, {
|
|
45
|
+
readonly indexed: false;
|
|
46
|
+
readonly name: "confirmBlock";
|
|
47
|
+
readonly type: "uint256";
|
|
48
|
+
}];
|
|
49
|
+
readonly name: "GovChangeConfirmed";
|
|
50
|
+
readonly type: "event";
|
|
51
|
+
}, {
|
|
52
|
+
readonly anonymous: false;
|
|
53
|
+
readonly inputs: readonly [{
|
|
54
|
+
readonly indexed: true;
|
|
55
|
+
readonly name: "cancelledGov";
|
|
56
|
+
readonly type: "address";
|
|
57
|
+
}, {
|
|
58
|
+
readonly indexed: false;
|
|
59
|
+
readonly name: "initiatedBlock";
|
|
60
|
+
readonly type: "uint256";
|
|
61
|
+
}, {
|
|
62
|
+
readonly indexed: false;
|
|
63
|
+
readonly name: "confirmBlock";
|
|
64
|
+
readonly type: "uint256";
|
|
65
|
+
}];
|
|
66
|
+
readonly name: "GovChangeCancelled";
|
|
67
|
+
readonly type: "event";
|
|
68
|
+
}, {
|
|
69
|
+
readonly anonymous: false;
|
|
70
|
+
readonly inputs: readonly [{
|
|
71
|
+
readonly indexed: false;
|
|
72
|
+
readonly name: "delayBlocks";
|
|
73
|
+
readonly type: "uint256";
|
|
74
|
+
}];
|
|
75
|
+
readonly name: "GovChangeDelaySet";
|
|
76
|
+
readonly type: "event";
|
|
77
|
+
}, {
|
|
78
|
+
readonly anonymous: false;
|
|
79
|
+
readonly inputs: readonly [{
|
|
80
|
+
readonly indexed: true;
|
|
81
|
+
readonly name: "addr";
|
|
82
|
+
readonly type: "address";
|
|
83
|
+
}, {
|
|
84
|
+
readonly indexed: false;
|
|
85
|
+
readonly name: "description";
|
|
86
|
+
readonly type: "string";
|
|
87
|
+
}, {
|
|
88
|
+
readonly indexed: false;
|
|
89
|
+
readonly name: "confirmBlock";
|
|
90
|
+
readonly type: "uint256";
|
|
91
|
+
}, {
|
|
92
|
+
readonly indexed: false;
|
|
93
|
+
readonly name: "registry";
|
|
94
|
+
readonly type: "string";
|
|
95
|
+
}];
|
|
96
|
+
readonly name: "NewAddyPending";
|
|
97
|
+
readonly type: "event";
|
|
98
|
+
}, {
|
|
5
99
|
readonly anonymous: false;
|
|
6
100
|
readonly inputs: readonly [{
|
|
7
101
|
readonly indexed: true;
|
|
@@ -9,7 +103,7 @@ export declare const abi: readonly [{
|
|
|
9
103
|
readonly type: "address";
|
|
10
104
|
}, {
|
|
11
105
|
readonly indexed: false;
|
|
12
|
-
readonly name: "
|
|
106
|
+
readonly name: "addyId";
|
|
13
107
|
readonly type: "uint256";
|
|
14
108
|
}, {
|
|
15
109
|
readonly indexed: false;
|
|
@@ -17,14 +111,47 @@ export declare const abi: readonly [{
|
|
|
17
111
|
readonly type: "string";
|
|
18
112
|
}, {
|
|
19
113
|
readonly indexed: false;
|
|
20
|
-
readonly name: "
|
|
114
|
+
readonly name: "registry";
|
|
115
|
+
readonly type: "string";
|
|
116
|
+
}];
|
|
117
|
+
readonly name: "NewAddyConfirmed";
|
|
118
|
+
readonly type: "event";
|
|
119
|
+
}, {
|
|
120
|
+
readonly anonymous: false;
|
|
121
|
+
readonly inputs: readonly [{
|
|
122
|
+
readonly indexed: false;
|
|
123
|
+
readonly name: "description";
|
|
124
|
+
readonly type: "string";
|
|
125
|
+
}, {
|
|
126
|
+
readonly indexed: true;
|
|
127
|
+
readonly name: "addr";
|
|
128
|
+
readonly type: "address";
|
|
129
|
+
}, {
|
|
130
|
+
readonly indexed: false;
|
|
131
|
+
readonly name: "initiatedBlock";
|
|
132
|
+
readonly type: "uint256";
|
|
133
|
+
}, {
|
|
134
|
+
readonly indexed: false;
|
|
135
|
+
readonly name: "confirmBlock";
|
|
21
136
|
readonly type: "uint256";
|
|
137
|
+
}, {
|
|
138
|
+
readonly indexed: false;
|
|
139
|
+
readonly name: "registry";
|
|
140
|
+
readonly type: "string";
|
|
22
141
|
}];
|
|
23
|
-
readonly name: "
|
|
142
|
+
readonly name: "NewPendingAddyCancelled";
|
|
24
143
|
readonly type: "event";
|
|
25
144
|
}, {
|
|
26
145
|
readonly anonymous: false;
|
|
27
146
|
readonly inputs: readonly [{
|
|
147
|
+
readonly indexed: false;
|
|
148
|
+
readonly name: "addyId";
|
|
149
|
+
readonly type: "uint256";
|
|
150
|
+
}, {
|
|
151
|
+
readonly indexed: false;
|
|
152
|
+
readonly name: "description";
|
|
153
|
+
readonly type: "string";
|
|
154
|
+
}, {
|
|
28
155
|
readonly indexed: true;
|
|
29
156
|
readonly name: "newAddr";
|
|
30
157
|
readonly type: "address";
|
|
@@ -34,72 +161,183 @@ export declare const abi: readonly [{
|
|
|
34
161
|
readonly type: "address";
|
|
35
162
|
}, {
|
|
36
163
|
readonly indexed: false;
|
|
37
|
-
readonly name: "
|
|
164
|
+
readonly name: "version";
|
|
38
165
|
readonly type: "uint256";
|
|
39
166
|
}, {
|
|
40
167
|
readonly indexed: false;
|
|
41
|
-
readonly name: "
|
|
168
|
+
readonly name: "confirmBlock";
|
|
169
|
+
readonly type: "uint256";
|
|
170
|
+
}, {
|
|
171
|
+
readonly indexed: false;
|
|
172
|
+
readonly name: "registry";
|
|
173
|
+
readonly type: "string";
|
|
174
|
+
}];
|
|
175
|
+
readonly name: "AddyUpdatePending";
|
|
176
|
+
readonly type: "event";
|
|
177
|
+
}, {
|
|
178
|
+
readonly anonymous: false;
|
|
179
|
+
readonly inputs: readonly [{
|
|
180
|
+
readonly indexed: false;
|
|
181
|
+
readonly name: "addyId";
|
|
42
182
|
readonly type: "uint256";
|
|
43
183
|
}, {
|
|
44
184
|
readonly indexed: false;
|
|
45
185
|
readonly name: "description";
|
|
46
186
|
readonly type: "string";
|
|
187
|
+
}, {
|
|
188
|
+
readonly indexed: true;
|
|
189
|
+
readonly name: "newAddr";
|
|
190
|
+
readonly type: "address";
|
|
191
|
+
}, {
|
|
192
|
+
readonly indexed: true;
|
|
193
|
+
readonly name: "prevAddr";
|
|
194
|
+
readonly type: "address";
|
|
47
195
|
}, {
|
|
48
196
|
readonly indexed: false;
|
|
49
|
-
readonly name: "
|
|
197
|
+
readonly name: "version";
|
|
50
198
|
readonly type: "uint256";
|
|
199
|
+
}, {
|
|
200
|
+
readonly indexed: false;
|
|
201
|
+
readonly name: "registry";
|
|
202
|
+
readonly type: "string";
|
|
51
203
|
}];
|
|
52
|
-
readonly name: "
|
|
204
|
+
readonly name: "AddyUpdateConfirmed";
|
|
53
205
|
readonly type: "event";
|
|
54
206
|
}, {
|
|
55
207
|
readonly anonymous: false;
|
|
56
208
|
readonly inputs: readonly [{
|
|
209
|
+
readonly indexed: false;
|
|
210
|
+
readonly name: "addyId";
|
|
211
|
+
readonly type: "uint256";
|
|
212
|
+
}, {
|
|
213
|
+
readonly indexed: false;
|
|
214
|
+
readonly name: "description";
|
|
215
|
+
readonly type: "string";
|
|
216
|
+
}, {
|
|
217
|
+
readonly indexed: true;
|
|
218
|
+
readonly name: "newAddr";
|
|
219
|
+
readonly type: "address";
|
|
220
|
+
}, {
|
|
57
221
|
readonly indexed: true;
|
|
58
222
|
readonly name: "prevAddr";
|
|
59
223
|
readonly type: "address";
|
|
60
224
|
}, {
|
|
61
225
|
readonly indexed: false;
|
|
62
|
-
readonly name: "
|
|
226
|
+
readonly name: "initiatedBlock";
|
|
63
227
|
readonly type: "uint256";
|
|
64
228
|
}, {
|
|
65
229
|
readonly indexed: false;
|
|
66
|
-
readonly name: "
|
|
230
|
+
readonly name: "confirmBlock";
|
|
231
|
+
readonly type: "uint256";
|
|
232
|
+
}, {
|
|
233
|
+
readonly indexed: false;
|
|
234
|
+
readonly name: "registry";
|
|
235
|
+
readonly type: "string";
|
|
236
|
+
}];
|
|
237
|
+
readonly name: "AddyUpdateCancelled";
|
|
238
|
+
readonly type: "event";
|
|
239
|
+
}, {
|
|
240
|
+
readonly anonymous: false;
|
|
241
|
+
readonly inputs: readonly [{
|
|
242
|
+
readonly indexed: false;
|
|
243
|
+
readonly name: "addyId";
|
|
67
244
|
readonly type: "uint256";
|
|
68
245
|
}, {
|
|
69
246
|
readonly indexed: false;
|
|
70
247
|
readonly name: "description";
|
|
71
248
|
readonly type: "string";
|
|
249
|
+
}, {
|
|
250
|
+
readonly indexed: true;
|
|
251
|
+
readonly name: "addr";
|
|
252
|
+
readonly type: "address";
|
|
72
253
|
}, {
|
|
73
254
|
readonly indexed: false;
|
|
74
|
-
readonly name: "
|
|
255
|
+
readonly name: "version";
|
|
75
256
|
readonly type: "uint256";
|
|
257
|
+
}, {
|
|
258
|
+
readonly indexed: false;
|
|
259
|
+
readonly name: "confirmBlock";
|
|
260
|
+
readonly type: "uint256";
|
|
261
|
+
}, {
|
|
262
|
+
readonly indexed: false;
|
|
263
|
+
readonly name: "registry";
|
|
264
|
+
readonly type: "string";
|
|
76
265
|
}];
|
|
77
|
-
readonly name: "
|
|
266
|
+
readonly name: "AddyDisablePending";
|
|
78
267
|
readonly type: "event";
|
|
79
268
|
}, {
|
|
80
269
|
readonly anonymous: false;
|
|
81
270
|
readonly inputs: readonly [{
|
|
271
|
+
readonly indexed: false;
|
|
272
|
+
readonly name: "addyId";
|
|
273
|
+
readonly type: "uint256";
|
|
274
|
+
}, {
|
|
275
|
+
readonly indexed: false;
|
|
276
|
+
readonly name: "description";
|
|
277
|
+
readonly type: "string";
|
|
278
|
+
}, {
|
|
82
279
|
readonly indexed: true;
|
|
83
|
-
readonly name: "
|
|
280
|
+
readonly name: "addr";
|
|
84
281
|
readonly type: "address";
|
|
282
|
+
}, {
|
|
283
|
+
readonly indexed: false;
|
|
284
|
+
readonly name: "version";
|
|
285
|
+
readonly type: "uint256";
|
|
286
|
+
}, {
|
|
287
|
+
readonly indexed: false;
|
|
288
|
+
readonly name: "registry";
|
|
289
|
+
readonly type: "string";
|
|
85
290
|
}];
|
|
86
|
-
readonly name: "
|
|
291
|
+
readonly name: "AddyDisableConfirmed";
|
|
87
292
|
readonly type: "event";
|
|
88
293
|
}, {
|
|
89
294
|
readonly anonymous: false;
|
|
90
295
|
readonly inputs: readonly [{
|
|
296
|
+
readonly indexed: false;
|
|
297
|
+
readonly name: "addyId";
|
|
298
|
+
readonly type: "uint256";
|
|
299
|
+
}, {
|
|
300
|
+
readonly indexed: false;
|
|
301
|
+
readonly name: "description";
|
|
302
|
+
readonly type: "string";
|
|
303
|
+
}, {
|
|
91
304
|
readonly indexed: true;
|
|
92
305
|
readonly name: "addr";
|
|
93
306
|
readonly type: "address";
|
|
307
|
+
}, {
|
|
308
|
+
readonly indexed: false;
|
|
309
|
+
readonly name: "initiatedBlock";
|
|
310
|
+
readonly type: "uint256";
|
|
311
|
+
}, {
|
|
312
|
+
readonly indexed: false;
|
|
313
|
+
readonly name: "confirmBlock";
|
|
314
|
+
readonly type: "uint256";
|
|
315
|
+
}, {
|
|
316
|
+
readonly indexed: false;
|
|
317
|
+
readonly name: "registry";
|
|
318
|
+
readonly type: "string";
|
|
319
|
+
}];
|
|
320
|
+
readonly name: "AddyDisableCancelled";
|
|
321
|
+
readonly type: "event";
|
|
322
|
+
}, {
|
|
323
|
+
readonly anonymous: false;
|
|
324
|
+
readonly inputs: readonly [{
|
|
325
|
+
readonly indexed: false;
|
|
326
|
+
readonly name: "delayBlocks";
|
|
327
|
+
readonly type: "uint256";
|
|
328
|
+
}, {
|
|
329
|
+
readonly indexed: false;
|
|
330
|
+
readonly name: "registry";
|
|
331
|
+
readonly type: "string";
|
|
94
332
|
}];
|
|
95
|
-
readonly name: "
|
|
333
|
+
readonly name: "AddyChangeDelaySet";
|
|
96
334
|
readonly type: "event";
|
|
97
335
|
}, {
|
|
98
336
|
readonly inputs: readonly [{
|
|
99
337
|
readonly name: "_address";
|
|
100
338
|
readonly type: "address";
|
|
101
339
|
}];
|
|
102
|
-
readonly name: "
|
|
340
|
+
readonly name: "canGovern";
|
|
103
341
|
readonly outputs: readonly [{
|
|
104
342
|
readonly name: "";
|
|
105
343
|
readonly type: "bool";
|
|
@@ -107,11 +345,8 @@ export declare const abi: readonly [{
|
|
|
107
345
|
readonly stateMutability: "view";
|
|
108
346
|
readonly type: "function";
|
|
109
347
|
}, {
|
|
110
|
-
readonly inputs: readonly [
|
|
111
|
-
|
|
112
|
-
readonly type: "address";
|
|
113
|
-
}];
|
|
114
|
-
readonly name: "isValidLocalGovernor";
|
|
348
|
+
readonly inputs: readonly [];
|
|
349
|
+
readonly name: "hasPendingGovChange";
|
|
115
350
|
readonly outputs: readonly [{
|
|
116
351
|
readonly name: "";
|
|
117
352
|
readonly type: "bool";
|
|
@@ -120,25 +355,89 @@ export declare const abi: readonly [{
|
|
|
120
355
|
readonly type: "function";
|
|
121
356
|
}, {
|
|
122
357
|
readonly inputs: readonly [{
|
|
123
|
-
readonly name: "
|
|
358
|
+
readonly name: "_newGov";
|
|
124
359
|
readonly type: "address";
|
|
125
360
|
}];
|
|
126
|
-
readonly name: "
|
|
127
|
-
readonly outputs: readonly [
|
|
128
|
-
|
|
129
|
-
|
|
361
|
+
readonly name: "changeGovernance";
|
|
362
|
+
readonly outputs: readonly [];
|
|
363
|
+
readonly stateMutability: "nonpayable";
|
|
364
|
+
readonly type: "function";
|
|
365
|
+
}, {
|
|
366
|
+
readonly inputs: readonly [];
|
|
367
|
+
readonly name: "confirmGovernanceChange";
|
|
368
|
+
readonly outputs: readonly [];
|
|
369
|
+
readonly stateMutability: "nonpayable";
|
|
370
|
+
readonly type: "function";
|
|
371
|
+
}, {
|
|
372
|
+
readonly inputs: readonly [];
|
|
373
|
+
readonly name: "cancelGovernanceChange";
|
|
374
|
+
readonly outputs: readonly [];
|
|
375
|
+
readonly stateMutability: "nonpayable";
|
|
376
|
+
readonly type: "function";
|
|
377
|
+
}, {
|
|
378
|
+
readonly inputs: readonly [{
|
|
379
|
+
readonly name: "_numBlocks";
|
|
380
|
+
readonly type: "uint256";
|
|
130
381
|
}];
|
|
382
|
+
readonly name: "setGovernanceChangeDelay";
|
|
383
|
+
readonly outputs: readonly [];
|
|
131
384
|
readonly stateMutability: "nonpayable";
|
|
132
385
|
readonly type: "function";
|
|
133
386
|
}, {
|
|
134
387
|
readonly inputs: readonly [];
|
|
135
|
-
readonly name: "
|
|
388
|
+
readonly name: "governance";
|
|
136
389
|
readonly outputs: readonly [{
|
|
137
390
|
readonly name: "";
|
|
138
391
|
readonly type: "address";
|
|
139
392
|
}];
|
|
140
393
|
readonly stateMutability: "view";
|
|
141
394
|
readonly type: "function";
|
|
395
|
+
}, {
|
|
396
|
+
readonly inputs: readonly [];
|
|
397
|
+
readonly name: "pendingGov";
|
|
398
|
+
readonly outputs: readonly [{
|
|
399
|
+
readonly components: readonly [{
|
|
400
|
+
readonly name: "newGov";
|
|
401
|
+
readonly type: "address";
|
|
402
|
+
}, {
|
|
403
|
+
readonly name: "initiatedBlock";
|
|
404
|
+
readonly type: "uint256";
|
|
405
|
+
}, {
|
|
406
|
+
readonly name: "confirmBlock";
|
|
407
|
+
readonly type: "uint256";
|
|
408
|
+
}];
|
|
409
|
+
readonly name: "";
|
|
410
|
+
readonly type: "tuple";
|
|
411
|
+
}];
|
|
412
|
+
readonly stateMutability: "view";
|
|
413
|
+
readonly type: "function";
|
|
414
|
+
}, {
|
|
415
|
+
readonly inputs: readonly [];
|
|
416
|
+
readonly name: "govChangeDelay";
|
|
417
|
+
readonly outputs: readonly [{
|
|
418
|
+
readonly name: "";
|
|
419
|
+
readonly type: "uint256";
|
|
420
|
+
}];
|
|
421
|
+
readonly stateMutability: "view";
|
|
422
|
+
readonly type: "function";
|
|
423
|
+
}, {
|
|
424
|
+
readonly inputs: readonly [];
|
|
425
|
+
readonly name: "MIN_GOV_CHANGE_DELAY";
|
|
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: "MAX_GOV_CHANGE_DELAY";
|
|
435
|
+
readonly outputs: readonly [{
|
|
436
|
+
readonly name: "";
|
|
437
|
+
readonly type: "uint256";
|
|
438
|
+
}];
|
|
439
|
+
readonly stateMutability: "view";
|
|
440
|
+
readonly type: "function";
|
|
142
441
|
}, {
|
|
143
442
|
readonly inputs: readonly [{
|
|
144
443
|
readonly name: "_addr";
|
|
@@ -163,12 +462,36 @@ export declare const abi: readonly [{
|
|
|
163
462
|
readonly type: "uint256";
|
|
164
463
|
}];
|
|
165
464
|
readonly name: "registerNewLego";
|
|
465
|
+
readonly outputs: readonly [{
|
|
466
|
+
readonly name: "";
|
|
467
|
+
readonly type: "bool";
|
|
468
|
+
}];
|
|
469
|
+
readonly stateMutability: "nonpayable";
|
|
470
|
+
readonly type: "function";
|
|
471
|
+
}, {
|
|
472
|
+
readonly inputs: readonly [{
|
|
473
|
+
readonly name: "_addr";
|
|
474
|
+
readonly type: "address";
|
|
475
|
+
}];
|
|
476
|
+
readonly name: "confirmNewLegoRegistration";
|
|
166
477
|
readonly outputs: readonly [{
|
|
167
478
|
readonly name: "";
|
|
168
479
|
readonly type: "uint256";
|
|
169
480
|
}];
|
|
170
481
|
readonly stateMutability: "nonpayable";
|
|
171
482
|
readonly type: "function";
|
|
483
|
+
}, {
|
|
484
|
+
readonly inputs: readonly [{
|
|
485
|
+
readonly name: "_addr";
|
|
486
|
+
readonly type: "address";
|
|
487
|
+
}];
|
|
488
|
+
readonly name: "cancelPendingNewLego";
|
|
489
|
+
readonly outputs: readonly [{
|
|
490
|
+
readonly name: "";
|
|
491
|
+
readonly type: "bool";
|
|
492
|
+
}];
|
|
493
|
+
readonly stateMutability: "nonpayable";
|
|
494
|
+
readonly type: "function";
|
|
172
495
|
}, {
|
|
173
496
|
readonly inputs: readonly [{
|
|
174
497
|
readonly name: "_legoId";
|
|
@@ -199,6 +522,30 @@ export declare const abi: readonly [{
|
|
|
199
522
|
}];
|
|
200
523
|
readonly stateMutability: "nonpayable";
|
|
201
524
|
readonly type: "function";
|
|
525
|
+
}, {
|
|
526
|
+
readonly inputs: readonly [{
|
|
527
|
+
readonly name: "_legoId";
|
|
528
|
+
readonly type: "uint256";
|
|
529
|
+
}];
|
|
530
|
+
readonly name: "confirmLegoUpdate";
|
|
531
|
+
readonly outputs: readonly [{
|
|
532
|
+
readonly name: "";
|
|
533
|
+
readonly type: "bool";
|
|
534
|
+
}];
|
|
535
|
+
readonly stateMutability: "nonpayable";
|
|
536
|
+
readonly type: "function";
|
|
537
|
+
}, {
|
|
538
|
+
readonly inputs: readonly [{
|
|
539
|
+
readonly name: "_legoId";
|
|
540
|
+
readonly type: "uint256";
|
|
541
|
+
}];
|
|
542
|
+
readonly name: "cancelPendingLegoUpdate";
|
|
543
|
+
readonly outputs: readonly [{
|
|
544
|
+
readonly name: "";
|
|
545
|
+
readonly type: "bool";
|
|
546
|
+
}];
|
|
547
|
+
readonly stateMutability: "nonpayable";
|
|
548
|
+
readonly type: "function";
|
|
202
549
|
}, {
|
|
203
550
|
readonly inputs: readonly [{
|
|
204
551
|
readonly name: "_legoId";
|
|
@@ -223,6 +570,60 @@ export declare const abi: readonly [{
|
|
|
223
570
|
}];
|
|
224
571
|
readonly stateMutability: "nonpayable";
|
|
225
572
|
readonly type: "function";
|
|
573
|
+
}, {
|
|
574
|
+
readonly inputs: readonly [{
|
|
575
|
+
readonly name: "_legoId";
|
|
576
|
+
readonly type: "uint256";
|
|
577
|
+
}];
|
|
578
|
+
readonly name: "confirmLegoDisable";
|
|
579
|
+
readonly outputs: readonly [{
|
|
580
|
+
readonly name: "";
|
|
581
|
+
readonly type: "bool";
|
|
582
|
+
}];
|
|
583
|
+
readonly stateMutability: "nonpayable";
|
|
584
|
+
readonly type: "function";
|
|
585
|
+
}, {
|
|
586
|
+
readonly inputs: readonly [{
|
|
587
|
+
readonly name: "_legoId";
|
|
588
|
+
readonly type: "uint256";
|
|
589
|
+
}];
|
|
590
|
+
readonly name: "cancelPendingLegoDisable";
|
|
591
|
+
readonly outputs: readonly [{
|
|
592
|
+
readonly name: "";
|
|
593
|
+
readonly type: "bool";
|
|
594
|
+
}];
|
|
595
|
+
readonly stateMutability: "nonpayable";
|
|
596
|
+
readonly type: "function";
|
|
597
|
+
}, {
|
|
598
|
+
readonly inputs: readonly [{
|
|
599
|
+
readonly name: "_numBlocks";
|
|
600
|
+
readonly type: "uint256";
|
|
601
|
+
}];
|
|
602
|
+
readonly name: "setLegoChangeDelay";
|
|
603
|
+
readonly outputs: readonly [{
|
|
604
|
+
readonly name: "";
|
|
605
|
+
readonly type: "bool";
|
|
606
|
+
}];
|
|
607
|
+
readonly stateMutability: "nonpayable";
|
|
608
|
+
readonly type: "function";
|
|
609
|
+
}, {
|
|
610
|
+
readonly inputs: readonly [];
|
|
611
|
+
readonly name: "legoChangeDelay";
|
|
612
|
+
readonly outputs: readonly [{
|
|
613
|
+
readonly name: "";
|
|
614
|
+
readonly type: "uint256";
|
|
615
|
+
}];
|
|
616
|
+
readonly stateMutability: "view";
|
|
617
|
+
readonly type: "function";
|
|
618
|
+
}, {
|
|
619
|
+
readonly inputs: readonly [];
|
|
620
|
+
readonly name: "numLegosRaw";
|
|
621
|
+
readonly outputs: readonly [{
|
|
622
|
+
readonly name: "";
|
|
623
|
+
readonly type: "uint256";
|
|
624
|
+
}];
|
|
625
|
+
readonly stateMutability: "view";
|
|
626
|
+
readonly type: "function";
|
|
226
627
|
}, {
|
|
227
628
|
readonly inputs: readonly [{
|
|
228
629
|
readonly name: "_addr";
|
|
@@ -290,9 +691,6 @@ export declare const abi: readonly [{
|
|
|
290
691
|
}, {
|
|
291
692
|
readonly name: "description";
|
|
292
693
|
readonly type: "string";
|
|
293
|
-
}, {
|
|
294
|
-
readonly name: "legoType";
|
|
295
|
-
readonly type: "uint256";
|
|
296
694
|
}];
|
|
297
695
|
readonly name: "";
|
|
298
696
|
readonly type: "tuple";
|
|
@@ -389,58 +787,24 @@ export declare const abi: readonly [{
|
|
|
389
787
|
}];
|
|
390
788
|
readonly stateMutability: "nonpayable";
|
|
391
789
|
readonly type: "function";
|
|
392
|
-
}, {
|
|
393
|
-
readonly inputs: readonly [];
|
|
394
|
-
readonly name: "legoHelper";
|
|
395
|
-
readonly outputs: readonly [{
|
|
396
|
-
readonly name: "";
|
|
397
|
-
readonly type: "address";
|
|
398
|
-
}];
|
|
399
|
-
readonly stateMutability: "view";
|
|
400
|
-
readonly type: "function";
|
|
401
790
|
}, {
|
|
402
791
|
readonly inputs: readonly [{
|
|
403
792
|
readonly name: "arg0";
|
|
404
|
-
readonly type: "
|
|
793
|
+
readonly type: "address";
|
|
405
794
|
}];
|
|
406
|
-
readonly name: "
|
|
795
|
+
readonly name: "pendingLegoType";
|
|
407
796
|
readonly outputs: readonly [{
|
|
408
|
-
readonly components: readonly [{
|
|
409
|
-
readonly name: "addr";
|
|
410
|
-
readonly type: "address";
|
|
411
|
-
}, {
|
|
412
|
-
readonly name: "version";
|
|
413
|
-
readonly type: "uint256";
|
|
414
|
-
}, {
|
|
415
|
-
readonly name: "lastModified";
|
|
416
|
-
readonly type: "uint256";
|
|
417
|
-
}, {
|
|
418
|
-
readonly name: "description";
|
|
419
|
-
readonly type: "string";
|
|
420
|
-
}, {
|
|
421
|
-
readonly name: "legoType";
|
|
422
|
-
readonly type: "uint256";
|
|
423
|
-
}];
|
|
424
797
|
readonly name: "";
|
|
425
|
-
readonly type: "
|
|
798
|
+
readonly type: "uint256";
|
|
426
799
|
}];
|
|
427
800
|
readonly stateMutability: "view";
|
|
428
801
|
readonly type: "function";
|
|
429
802
|
}, {
|
|
430
803
|
readonly inputs: readonly [{
|
|
431
804
|
readonly name: "arg0";
|
|
432
|
-
readonly type: "address";
|
|
433
|
-
}];
|
|
434
|
-
readonly name: "legoAddrToId";
|
|
435
|
-
readonly outputs: readonly [{
|
|
436
|
-
readonly name: "";
|
|
437
805
|
readonly type: "uint256";
|
|
438
806
|
}];
|
|
439
|
-
readonly
|
|
440
|
-
readonly type: "function";
|
|
441
|
-
}, {
|
|
442
|
-
readonly inputs: readonly [];
|
|
443
|
-
readonly name: "numLegos";
|
|
807
|
+
readonly name: "legoIdToType";
|
|
444
808
|
readonly outputs: readonly [{
|
|
445
809
|
readonly name: "";
|
|
446
810
|
readonly type: "uint256";
|
|
@@ -449,7 +813,7 @@ export declare const abi: readonly [{
|
|
|
449
813
|
readonly type: "function";
|
|
450
814
|
}, {
|
|
451
815
|
readonly inputs: readonly [];
|
|
452
|
-
readonly name: "
|
|
816
|
+
readonly name: "legoHelper";
|
|
453
817
|
readonly outputs: readonly [{
|
|
454
818
|
readonly name: "";
|
|
455
819
|
readonly type: "address";
|
|
@@ -460,6 +824,12 @@ export declare const abi: readonly [{
|
|
|
460
824
|
readonly inputs: readonly [{
|
|
461
825
|
readonly name: "_addyRegistry";
|
|
462
826
|
readonly type: "address";
|
|
827
|
+
}, {
|
|
828
|
+
readonly name: "_minLegoChangeDelay";
|
|
829
|
+
readonly type: "uint256";
|
|
830
|
+
}, {
|
|
831
|
+
readonly name: "_maxLegoChangeDelay";
|
|
832
|
+
readonly type: "uint256";
|
|
463
833
|
}];
|
|
464
834
|
readonly outputs: readonly [];
|
|
465
835
|
readonly stateMutability: "nonpayable";
|
|
@@ -468,12 +838,22 @@ export declare const abi: readonly [{
|
|
|
468
838
|
export declare const deployAddress: Address | undefined;
|
|
469
839
|
export type Contract = {
|
|
470
840
|
calls: {
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
841
|
+
canGovern: (address: `0x${string}`) => Promise<boolean>;
|
|
842
|
+
hasPendingGovChange: () => Promise<boolean>;
|
|
843
|
+
governance: () => Promise<`0x${string}`>;
|
|
844
|
+
pendingGov: () => Promise<{
|
|
845
|
+
newGov: `0x${string}`;
|
|
846
|
+
initiatedBlock: bigint;
|
|
847
|
+
confirmBlock: bigint;
|
|
848
|
+
}>;
|
|
849
|
+
govChangeDelay: () => Promise<bigint>;
|
|
850
|
+
MIN_GOV_CHANGE_DELAY: () => Promise<bigint>;
|
|
851
|
+
MAX_GOV_CHANGE_DELAY: () => Promise<bigint>;
|
|
474
852
|
isValidNewLegoAddr: (addr: `0x${string}`) => Promise<boolean>;
|
|
475
853
|
isValidLegoUpdate: (legoId: bigint, newAddr: `0x${string}`) => Promise<boolean>;
|
|
476
854
|
isValidLegoDisable: (legoId: bigint) => Promise<boolean>;
|
|
855
|
+
legoChangeDelay: () => Promise<bigint>;
|
|
856
|
+
numLegosRaw: () => Promise<bigint>;
|
|
477
857
|
isValidLegoAddr: (addr: `0x${string}`) => Promise<boolean>;
|
|
478
858
|
isValidLegoId: (legoId: bigint) => Promise<boolean>;
|
|
479
859
|
getLegoId: (addr: `0x${string}`) => Promise<bigint>;
|
|
@@ -483,7 +863,6 @@ export type Contract = {
|
|
|
483
863
|
version: bigint;
|
|
484
864
|
lastModified: bigint;
|
|
485
865
|
description: string;
|
|
486
|
-
legoType: bigint;
|
|
487
866
|
}>;
|
|
488
867
|
getLegoDescription: (legoId: bigint) => Promise<string>;
|
|
489
868
|
getNumLegos: () => Promise<bigint>;
|
|
@@ -492,31 +871,43 @@ export type Contract = {
|
|
|
492
871
|
getUnderlyingAsset: (vaultToken: `0x${string}`) => Promise<`0x${string}`>;
|
|
493
872
|
getUnderlyingForUser: (user: `0x${string}`, asset: `0x${string}`) => Promise<bigint>;
|
|
494
873
|
isValidLegoHelper: (helperAddr: `0x${string}`) => Promise<boolean>;
|
|
874
|
+
pendingLegoType: (arg0: `0x${string}`) => Promise<bigint>;
|
|
875
|
+
legoIdToType: (arg0: bigint) => Promise<bigint>;
|
|
495
876
|
legoHelper: () => Promise<`0x${string}`>;
|
|
496
|
-
legoInfo: (arg0: bigint) => Promise<{
|
|
497
|
-
addr: `0x${string}`;
|
|
498
|
-
version: bigint;
|
|
499
|
-
lastModified: bigint;
|
|
500
|
-
description: string;
|
|
501
|
-
legoType: bigint;
|
|
502
|
-
}>;
|
|
503
|
-
legoAddrToId: (arg0: `0x${string}`) => Promise<bigint>;
|
|
504
|
-
numLegos: () => Promise<bigint>;
|
|
505
|
-
ADDY_REGISTRY: () => Promise<`0x${string}`>;
|
|
506
877
|
};
|
|
507
878
|
mutations: {
|
|
508
|
-
|
|
509
|
-
|
|
879
|
+
changeGovernance: (newGov: `0x${string}`) => Promise<void>;
|
|
880
|
+
confirmGovernanceChange: () => Promise<void>;
|
|
881
|
+
cancelGovernanceChange: () => Promise<void>;
|
|
882
|
+
setGovernanceChangeDelay: (numBlocks: bigint) => Promise<void>;
|
|
883
|
+
registerNewLego: (addr: `0x${string}`, description: string, legoType: bigint) => Promise<boolean>;
|
|
884
|
+
confirmNewLegoRegistration: (addr: `0x${string}`) => Promise<bigint>;
|
|
885
|
+
cancelPendingNewLego: (addr: `0x${string}`) => Promise<boolean>;
|
|
510
886
|
updateLegoAddr: (legoId: bigint, newAddr: `0x${string}`) => Promise<boolean>;
|
|
887
|
+
confirmLegoUpdate: (legoId: bigint) => Promise<boolean>;
|
|
888
|
+
cancelPendingLegoUpdate: (legoId: bigint) => Promise<boolean>;
|
|
511
889
|
disableLegoAddr: (legoId: bigint) => Promise<boolean>;
|
|
890
|
+
confirmLegoDisable: (legoId: bigint) => Promise<boolean>;
|
|
891
|
+
cancelPendingLegoDisable: (legoId: bigint) => Promise<boolean>;
|
|
892
|
+
setLegoChangeDelay: (numBlocks: bigint) => Promise<boolean>;
|
|
512
893
|
setLegoHelper: (helperAddr: `0x${string}`) => Promise<boolean>;
|
|
513
894
|
};
|
|
514
895
|
events: {
|
|
515
|
-
NewLegoRegistered: (addr: `0x${string}`, legoId: bigint, description: string, legoType: bigint) => Promise<void>;
|
|
516
|
-
LegoAddrUpdated: (newAddr: `0x${string}`, prevAddr: `0x${string}`, legoId: bigint, version: bigint, description: string, legoType: bigint) => Promise<void>;
|
|
517
|
-
LegoAddrDisabled: (prevAddr: `0x${string}`, legoId: bigint, version: bigint, description: string, legoType: bigint) => Promise<void>;
|
|
518
896
|
LegoHelperSet: (helperAddr: `0x${string}`) => Promise<void>;
|
|
519
|
-
|
|
897
|
+
GovChangeInitiated: (prevGov: `0x${string}`, newGov: `0x${string}`, confirmBlock: bigint) => Promise<void>;
|
|
898
|
+
GovChangeConfirmed: (prevGov: `0x${string}`, newGov: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
|
|
899
|
+
GovChangeCancelled: (cancelledGov: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
|
|
900
|
+
GovChangeDelaySet: (delayBlocks: bigint) => Promise<void>;
|
|
901
|
+
NewAddyPending: (addr: `0x${string}`, description: string, confirmBlock: bigint, registry: string) => Promise<void>;
|
|
902
|
+
NewAddyConfirmed: (addr: `0x${string}`, addyId: bigint, description: string, registry: string) => Promise<void>;
|
|
903
|
+
NewPendingAddyCancelled: (description: string, addr: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint, registry: string) => Promise<void>;
|
|
904
|
+
AddyUpdatePending: (addyId: bigint, description: string, newAddr: `0x${string}`, prevAddr: `0x${string}`, version: bigint, confirmBlock: bigint, registry: string) => Promise<void>;
|
|
905
|
+
AddyUpdateConfirmed: (addyId: bigint, description: string, newAddr: `0x${string}`, prevAddr: `0x${string}`, version: bigint, registry: string) => Promise<void>;
|
|
906
|
+
AddyUpdateCancelled: (addyId: bigint, description: string, newAddr: `0x${string}`, prevAddr: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint, registry: string) => Promise<void>;
|
|
907
|
+
AddyDisablePending: (addyId: bigint, description: string, addr: `0x${string}`, version: bigint, confirmBlock: bigint, registry: string) => Promise<void>;
|
|
908
|
+
AddyDisableConfirmed: (addyId: bigint, description: string, addr: `0x${string}`, version: bigint, registry: string) => Promise<void>;
|
|
909
|
+
AddyDisableCancelled: (addyId: bigint, description: string, addr: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint, registry: string) => Promise<void>;
|
|
910
|
+
AddyChangeDelaySet: (delayBlocks: bigint, registry: string) => Promise<void>;
|
|
520
911
|
};
|
|
521
912
|
};
|
|
522
913
|
export type Calls = keyof Contract['calls'];
|
|
@@ -555,12 +946,18 @@ export declare const mutation: {
|
|
|
555
946
|
};
|
|
556
947
|
};
|
|
557
948
|
export type SDK = {
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
949
|
+
canGovern: (...args: ExtractArgs<Contract['calls']['canGovern']>) => Promise<CallReturn<'canGovern'>>;
|
|
950
|
+
hasPendingGovChange: (...args: ExtractArgs<Contract['calls']['hasPendingGovChange']>) => Promise<CallReturn<'hasPendingGovChange'>>;
|
|
951
|
+
governance: (...args: ExtractArgs<Contract['calls']['governance']>) => Promise<CallReturn<'governance'>>;
|
|
952
|
+
pendingGov: (...args: ExtractArgs<Contract['calls']['pendingGov']>) => Promise<CallReturn<'pendingGov'>>;
|
|
953
|
+
govChangeDelay: (...args: ExtractArgs<Contract['calls']['govChangeDelay']>) => Promise<CallReturn<'govChangeDelay'>>;
|
|
954
|
+
MIN_GOV_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MIN_GOV_CHANGE_DELAY']>) => Promise<CallReturn<'MIN_GOV_CHANGE_DELAY'>>;
|
|
955
|
+
MAX_GOV_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MAX_GOV_CHANGE_DELAY']>) => Promise<CallReturn<'MAX_GOV_CHANGE_DELAY'>>;
|
|
561
956
|
isValidNewLegoAddr: (...args: ExtractArgs<Contract['calls']['isValidNewLegoAddr']>) => Promise<CallReturn<'isValidNewLegoAddr'>>;
|
|
562
957
|
isValidLegoUpdate: (...args: ExtractArgs<Contract['calls']['isValidLegoUpdate']>) => Promise<CallReturn<'isValidLegoUpdate'>>;
|
|
563
958
|
isValidLegoDisable: (...args: ExtractArgs<Contract['calls']['isValidLegoDisable']>) => Promise<CallReturn<'isValidLegoDisable'>>;
|
|
959
|
+
legoChangeDelay: (...args: ExtractArgs<Contract['calls']['legoChangeDelay']>) => Promise<CallReturn<'legoChangeDelay'>>;
|
|
960
|
+
numLegosRaw: (...args: ExtractArgs<Contract['calls']['numLegosRaw']>) => Promise<CallReturn<'numLegosRaw'>>;
|
|
564
961
|
isValidLegoAddr: (...args: ExtractArgs<Contract['calls']['isValidLegoAddr']>) => Promise<CallReturn<'isValidLegoAddr'>>;
|
|
565
962
|
isValidLegoId: (...args: ExtractArgs<Contract['calls']['isValidLegoId']>) => Promise<CallReturn<'isValidLegoId'>>;
|
|
566
963
|
getLegoId: (...args: ExtractArgs<Contract['calls']['getLegoId']>) => Promise<CallReturn<'getLegoId'>>;
|
|
@@ -573,15 +970,23 @@ export type SDK = {
|
|
|
573
970
|
getUnderlyingAsset: (...args: ExtractArgs<Contract['calls']['getUnderlyingAsset']>) => Promise<CallReturn<'getUnderlyingAsset'>>;
|
|
574
971
|
getUnderlyingForUser: (...args: ExtractArgs<Contract['calls']['getUnderlyingForUser']>) => Promise<CallReturn<'getUnderlyingForUser'>>;
|
|
575
972
|
isValidLegoHelper: (...args: ExtractArgs<Contract['calls']['isValidLegoHelper']>) => Promise<CallReturn<'isValidLegoHelper'>>;
|
|
973
|
+
pendingLegoType: (...args: ExtractArgs<Contract['calls']['pendingLegoType']>) => Promise<CallReturn<'pendingLegoType'>>;
|
|
974
|
+
legoIdToType: (...args: ExtractArgs<Contract['calls']['legoIdToType']>) => Promise<CallReturn<'legoIdToType'>>;
|
|
576
975
|
legoHelper: (...args: ExtractArgs<Contract['calls']['legoHelper']>) => Promise<CallReturn<'legoHelper'>>;
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
setLocalGovernor: (...args: ExtractArgs<Contract['mutations']['setLocalGovernor']>) => Promise<Address>;
|
|
976
|
+
changeGovernance: (...args: ExtractArgs<Contract['mutations']['changeGovernance']>) => Promise<Address>;
|
|
977
|
+
confirmGovernanceChange: (...args: ExtractArgs<Contract['mutations']['confirmGovernanceChange']>) => Promise<Address>;
|
|
978
|
+
cancelGovernanceChange: (...args: ExtractArgs<Contract['mutations']['cancelGovernanceChange']>) => Promise<Address>;
|
|
979
|
+
setGovernanceChangeDelay: (...args: ExtractArgs<Contract['mutations']['setGovernanceChangeDelay']>) => Promise<Address>;
|
|
582
980
|
registerNewLego: (...args: ExtractArgs<Contract['mutations']['registerNewLego']>) => Promise<Address>;
|
|
981
|
+
confirmNewLegoRegistration: (...args: ExtractArgs<Contract['mutations']['confirmNewLegoRegistration']>) => Promise<Address>;
|
|
982
|
+
cancelPendingNewLego: (...args: ExtractArgs<Contract['mutations']['cancelPendingNewLego']>) => Promise<Address>;
|
|
583
983
|
updateLegoAddr: (...args: ExtractArgs<Contract['mutations']['updateLegoAddr']>) => Promise<Address>;
|
|
984
|
+
confirmLegoUpdate: (...args: ExtractArgs<Contract['mutations']['confirmLegoUpdate']>) => Promise<Address>;
|
|
985
|
+
cancelPendingLegoUpdate: (...args: ExtractArgs<Contract['mutations']['cancelPendingLegoUpdate']>) => Promise<Address>;
|
|
584
986
|
disableLegoAddr: (...args: ExtractArgs<Contract['mutations']['disableLegoAddr']>) => Promise<Address>;
|
|
987
|
+
confirmLegoDisable: (...args: ExtractArgs<Contract['mutations']['confirmLegoDisable']>) => Promise<Address>;
|
|
988
|
+
cancelPendingLegoDisable: (...args: ExtractArgs<Contract['mutations']['cancelPendingLegoDisable']>) => Promise<Address>;
|
|
989
|
+
setLegoChangeDelay: (...args: ExtractArgs<Contract['mutations']['setLegoChangeDelay']>) => Promise<Address>;
|
|
585
990
|
setLegoHelper: (...args: ExtractArgs<Contract['mutations']['setLegoHelper']>) => Promise<Address>;
|
|
586
991
|
};
|
|
587
992
|
export declare function toSdk(publicClient?: PublicClient, walletClient?: WalletClient): SDK;
|