@underscore-finance/sdk 0.0.8 → 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 +1 -1
|
@@ -2,6 +2,91 @@ 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: "prevGov";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}, {
|
|
11
|
+
readonly indexed: true;
|
|
12
|
+
readonly name: "newGov";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}, {
|
|
15
|
+
readonly indexed: false;
|
|
16
|
+
readonly name: "confirmBlock";
|
|
17
|
+
readonly type: "uint256";
|
|
18
|
+
}];
|
|
19
|
+
readonly name: "GovChangeInitiated";
|
|
20
|
+
readonly type: "event";
|
|
21
|
+
}, {
|
|
22
|
+
readonly anonymous: false;
|
|
23
|
+
readonly inputs: readonly [{
|
|
24
|
+
readonly indexed: true;
|
|
25
|
+
readonly name: "prevGov";
|
|
26
|
+
readonly type: "address";
|
|
27
|
+
}, {
|
|
28
|
+
readonly indexed: true;
|
|
29
|
+
readonly name: "newGov";
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
}, {
|
|
32
|
+
readonly indexed: false;
|
|
33
|
+
readonly name: "initiatedBlock";
|
|
34
|
+
readonly type: "uint256";
|
|
35
|
+
}, {
|
|
36
|
+
readonly indexed: false;
|
|
37
|
+
readonly name: "confirmBlock";
|
|
38
|
+
readonly type: "uint256";
|
|
39
|
+
}];
|
|
40
|
+
readonly name: "GovChangeConfirmed";
|
|
41
|
+
readonly type: "event";
|
|
42
|
+
}, {
|
|
43
|
+
readonly anonymous: false;
|
|
44
|
+
readonly inputs: readonly [{
|
|
45
|
+
readonly indexed: true;
|
|
46
|
+
readonly name: "cancelledGov";
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
}, {
|
|
49
|
+
readonly indexed: false;
|
|
50
|
+
readonly name: "initiatedBlock";
|
|
51
|
+
readonly type: "uint256";
|
|
52
|
+
}, {
|
|
53
|
+
readonly indexed: false;
|
|
54
|
+
readonly name: "confirmBlock";
|
|
55
|
+
readonly type: "uint256";
|
|
56
|
+
}];
|
|
57
|
+
readonly name: "GovChangeCancelled";
|
|
58
|
+
readonly type: "event";
|
|
59
|
+
}, {
|
|
60
|
+
readonly anonymous: false;
|
|
61
|
+
readonly inputs: readonly [{
|
|
62
|
+
readonly indexed: false;
|
|
63
|
+
readonly name: "delayBlocks";
|
|
64
|
+
readonly type: "uint256";
|
|
65
|
+
}];
|
|
66
|
+
readonly name: "GovChangeDelaySet";
|
|
67
|
+
readonly type: "event";
|
|
68
|
+
}, {
|
|
69
|
+
readonly anonymous: false;
|
|
70
|
+
readonly inputs: readonly [{
|
|
71
|
+
readonly indexed: true;
|
|
72
|
+
readonly name: "addr";
|
|
73
|
+
readonly type: "address";
|
|
74
|
+
}, {
|
|
75
|
+
readonly indexed: false;
|
|
76
|
+
readonly name: "description";
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
}, {
|
|
79
|
+
readonly indexed: false;
|
|
80
|
+
readonly name: "confirmBlock";
|
|
81
|
+
readonly type: "uint256";
|
|
82
|
+
}, {
|
|
83
|
+
readonly indexed: false;
|
|
84
|
+
readonly name: "registry";
|
|
85
|
+
readonly type: "string";
|
|
86
|
+
}];
|
|
87
|
+
readonly name: "NewAddyPending";
|
|
88
|
+
readonly type: "event";
|
|
89
|
+
}, {
|
|
5
90
|
readonly anonymous: false;
|
|
6
91
|
readonly inputs: readonly [{
|
|
7
92
|
readonly indexed: true;
|
|
@@ -15,79 +100,244 @@ export declare const abi: readonly [{
|
|
|
15
100
|
readonly indexed: false;
|
|
16
101
|
readonly name: "description";
|
|
17
102
|
readonly type: "string";
|
|
103
|
+
}, {
|
|
104
|
+
readonly indexed: false;
|
|
105
|
+
readonly name: "registry";
|
|
106
|
+
readonly type: "string";
|
|
18
107
|
}];
|
|
19
|
-
readonly name: "
|
|
108
|
+
readonly name: "NewAddyConfirmed";
|
|
20
109
|
readonly type: "event";
|
|
21
110
|
}, {
|
|
22
111
|
readonly anonymous: false;
|
|
23
112
|
readonly inputs: readonly [{
|
|
113
|
+
readonly indexed: false;
|
|
114
|
+
readonly name: "description";
|
|
115
|
+
readonly type: "string";
|
|
116
|
+
}, {
|
|
117
|
+
readonly indexed: true;
|
|
118
|
+
readonly name: "addr";
|
|
119
|
+
readonly type: "address";
|
|
120
|
+
}, {
|
|
121
|
+
readonly indexed: false;
|
|
122
|
+
readonly name: "initiatedBlock";
|
|
123
|
+
readonly type: "uint256";
|
|
124
|
+
}, {
|
|
125
|
+
readonly indexed: false;
|
|
126
|
+
readonly name: "confirmBlock";
|
|
127
|
+
readonly type: "uint256";
|
|
128
|
+
}, {
|
|
129
|
+
readonly indexed: false;
|
|
130
|
+
readonly name: "registry";
|
|
131
|
+
readonly type: "string";
|
|
132
|
+
}];
|
|
133
|
+
readonly name: "NewPendingAddyCancelled";
|
|
134
|
+
readonly type: "event";
|
|
135
|
+
}, {
|
|
136
|
+
readonly anonymous: false;
|
|
137
|
+
readonly inputs: readonly [{
|
|
138
|
+
readonly indexed: false;
|
|
139
|
+
readonly name: "addyId";
|
|
140
|
+
readonly type: "uint256";
|
|
141
|
+
}, {
|
|
142
|
+
readonly indexed: false;
|
|
143
|
+
readonly name: "description";
|
|
144
|
+
readonly type: "string";
|
|
145
|
+
}, {
|
|
24
146
|
readonly indexed: true;
|
|
25
147
|
readonly name: "newAddr";
|
|
26
148
|
readonly type: "address";
|
|
27
149
|
}, {
|
|
28
150
|
readonly indexed: true;
|
|
29
|
-
readonly name: "
|
|
151
|
+
readonly name: "prevAddr";
|
|
30
152
|
readonly type: "address";
|
|
31
153
|
}, {
|
|
154
|
+
readonly indexed: false;
|
|
155
|
+
readonly name: "version";
|
|
156
|
+
readonly type: "uint256";
|
|
157
|
+
}, {
|
|
158
|
+
readonly indexed: false;
|
|
159
|
+
readonly name: "confirmBlock";
|
|
160
|
+
readonly type: "uint256";
|
|
161
|
+
}, {
|
|
162
|
+
readonly indexed: false;
|
|
163
|
+
readonly name: "registry";
|
|
164
|
+
readonly type: "string";
|
|
165
|
+
}];
|
|
166
|
+
readonly name: "AddyUpdatePending";
|
|
167
|
+
readonly type: "event";
|
|
168
|
+
}, {
|
|
169
|
+
readonly anonymous: false;
|
|
170
|
+
readonly inputs: readonly [{
|
|
32
171
|
readonly indexed: false;
|
|
33
172
|
readonly name: "addyId";
|
|
34
173
|
readonly type: "uint256";
|
|
174
|
+
}, {
|
|
175
|
+
readonly indexed: false;
|
|
176
|
+
readonly name: "description";
|
|
177
|
+
readonly type: "string";
|
|
178
|
+
}, {
|
|
179
|
+
readonly indexed: true;
|
|
180
|
+
readonly name: "newAddr";
|
|
181
|
+
readonly type: "address";
|
|
182
|
+
}, {
|
|
183
|
+
readonly indexed: true;
|
|
184
|
+
readonly name: "prevAddr";
|
|
185
|
+
readonly type: "address";
|
|
35
186
|
}, {
|
|
36
187
|
readonly indexed: false;
|
|
37
188
|
readonly name: "version";
|
|
38
189
|
readonly type: "uint256";
|
|
39
190
|
}, {
|
|
40
191
|
readonly indexed: false;
|
|
41
|
-
readonly name: "
|
|
192
|
+
readonly name: "registry";
|
|
42
193
|
readonly type: "string";
|
|
43
194
|
}];
|
|
44
|
-
readonly name: "
|
|
195
|
+
readonly name: "AddyUpdateConfirmed";
|
|
45
196
|
readonly type: "event";
|
|
46
197
|
}, {
|
|
47
198
|
readonly anonymous: false;
|
|
48
199
|
readonly inputs: readonly [{
|
|
200
|
+
readonly indexed: false;
|
|
201
|
+
readonly name: "addyId";
|
|
202
|
+
readonly type: "uint256";
|
|
203
|
+
}, {
|
|
204
|
+
readonly indexed: false;
|
|
205
|
+
readonly name: "description";
|
|
206
|
+
readonly type: "string";
|
|
207
|
+
}, {
|
|
208
|
+
readonly indexed: true;
|
|
209
|
+
readonly name: "newAddr";
|
|
210
|
+
readonly type: "address";
|
|
211
|
+
}, {
|
|
49
212
|
readonly indexed: true;
|
|
50
|
-
readonly name: "
|
|
213
|
+
readonly name: "prevAddr";
|
|
51
214
|
readonly type: "address";
|
|
52
215
|
}, {
|
|
216
|
+
readonly indexed: false;
|
|
217
|
+
readonly name: "initiatedBlock";
|
|
218
|
+
readonly type: "uint256";
|
|
219
|
+
}, {
|
|
220
|
+
readonly indexed: false;
|
|
221
|
+
readonly name: "confirmBlock";
|
|
222
|
+
readonly type: "uint256";
|
|
223
|
+
}, {
|
|
224
|
+
readonly indexed: false;
|
|
225
|
+
readonly name: "registry";
|
|
226
|
+
readonly type: "string";
|
|
227
|
+
}];
|
|
228
|
+
readonly name: "AddyUpdateCancelled";
|
|
229
|
+
readonly type: "event";
|
|
230
|
+
}, {
|
|
231
|
+
readonly anonymous: false;
|
|
232
|
+
readonly inputs: readonly [{
|
|
53
233
|
readonly indexed: false;
|
|
54
234
|
readonly name: "addyId";
|
|
55
235
|
readonly type: "uint256";
|
|
236
|
+
}, {
|
|
237
|
+
readonly indexed: false;
|
|
238
|
+
readonly name: "description";
|
|
239
|
+
readonly type: "string";
|
|
240
|
+
}, {
|
|
241
|
+
readonly indexed: true;
|
|
242
|
+
readonly name: "addr";
|
|
243
|
+
readonly type: "address";
|
|
56
244
|
}, {
|
|
57
245
|
readonly indexed: false;
|
|
58
246
|
readonly name: "version";
|
|
59
247
|
readonly type: "uint256";
|
|
248
|
+
}, {
|
|
249
|
+
readonly indexed: false;
|
|
250
|
+
readonly name: "confirmBlock";
|
|
251
|
+
readonly type: "uint256";
|
|
252
|
+
}, {
|
|
253
|
+
readonly indexed: false;
|
|
254
|
+
readonly name: "registry";
|
|
255
|
+
readonly type: "string";
|
|
256
|
+
}];
|
|
257
|
+
readonly name: "AddyDisablePending";
|
|
258
|
+
readonly type: "event";
|
|
259
|
+
}, {
|
|
260
|
+
readonly anonymous: false;
|
|
261
|
+
readonly inputs: readonly [{
|
|
262
|
+
readonly indexed: false;
|
|
263
|
+
readonly name: "addyId";
|
|
264
|
+
readonly type: "uint256";
|
|
60
265
|
}, {
|
|
61
266
|
readonly indexed: false;
|
|
62
267
|
readonly name: "description";
|
|
63
268
|
readonly type: "string";
|
|
269
|
+
}, {
|
|
270
|
+
readonly indexed: true;
|
|
271
|
+
readonly name: "addr";
|
|
272
|
+
readonly type: "address";
|
|
273
|
+
}, {
|
|
274
|
+
readonly indexed: false;
|
|
275
|
+
readonly name: "version";
|
|
276
|
+
readonly type: "uint256";
|
|
277
|
+
}, {
|
|
278
|
+
readonly indexed: false;
|
|
279
|
+
readonly name: "registry";
|
|
280
|
+
readonly type: "string";
|
|
64
281
|
}];
|
|
65
|
-
readonly name: "
|
|
282
|
+
readonly name: "AddyDisableConfirmed";
|
|
66
283
|
readonly type: "event";
|
|
67
284
|
}, {
|
|
68
285
|
readonly anonymous: false;
|
|
69
286
|
readonly inputs: readonly [{
|
|
287
|
+
readonly indexed: false;
|
|
288
|
+
readonly name: "addyId";
|
|
289
|
+
readonly type: "uint256";
|
|
290
|
+
}, {
|
|
291
|
+
readonly indexed: false;
|
|
292
|
+
readonly name: "description";
|
|
293
|
+
readonly type: "string";
|
|
294
|
+
}, {
|
|
70
295
|
readonly indexed: true;
|
|
71
|
-
readonly name: "
|
|
296
|
+
readonly name: "addr";
|
|
72
297
|
readonly type: "address";
|
|
298
|
+
}, {
|
|
299
|
+
readonly indexed: false;
|
|
300
|
+
readonly name: "initiatedBlock";
|
|
301
|
+
readonly type: "uint256";
|
|
302
|
+
}, {
|
|
303
|
+
readonly indexed: false;
|
|
304
|
+
readonly name: "confirmBlock";
|
|
305
|
+
readonly type: "uint256";
|
|
306
|
+
}, {
|
|
307
|
+
readonly indexed: false;
|
|
308
|
+
readonly name: "registry";
|
|
309
|
+
readonly type: "string";
|
|
73
310
|
}];
|
|
74
|
-
readonly name: "
|
|
311
|
+
readonly name: "AddyDisableCancelled";
|
|
75
312
|
readonly type: "event";
|
|
76
313
|
}, {
|
|
77
314
|
readonly anonymous: false;
|
|
78
315
|
readonly inputs: readonly [{
|
|
79
316
|
readonly indexed: false;
|
|
80
|
-
readonly name: "
|
|
81
|
-
readonly type: "
|
|
317
|
+
readonly name: "delayBlocks";
|
|
318
|
+
readonly type: "uint256";
|
|
319
|
+
}, {
|
|
320
|
+
readonly indexed: false;
|
|
321
|
+
readonly name: "registry";
|
|
322
|
+
readonly type: "string";
|
|
82
323
|
}];
|
|
83
|
-
readonly name: "
|
|
324
|
+
readonly name: "AddyChangeDelaySet";
|
|
84
325
|
readonly type: "event";
|
|
85
326
|
}, {
|
|
86
327
|
readonly inputs: readonly [{
|
|
87
|
-
readonly name: "
|
|
328
|
+
readonly name: "_address";
|
|
88
329
|
readonly type: "address";
|
|
89
330
|
}];
|
|
90
|
-
readonly name: "
|
|
331
|
+
readonly name: "canGovern";
|
|
332
|
+
readonly outputs: readonly [{
|
|
333
|
+
readonly name: "";
|
|
334
|
+
readonly type: "bool";
|
|
335
|
+
}];
|
|
336
|
+
readonly stateMutability: "view";
|
|
337
|
+
readonly type: "function";
|
|
338
|
+
}, {
|
|
339
|
+
readonly inputs: readonly [];
|
|
340
|
+
readonly name: "hasPendingGovChange";
|
|
91
341
|
readonly outputs: readonly [{
|
|
92
342
|
readonly name: "";
|
|
93
343
|
readonly type: "bool";
|
|
@@ -96,55 +346,110 @@ export declare const abi: readonly [{
|
|
|
96
346
|
readonly type: "function";
|
|
97
347
|
}, {
|
|
98
348
|
readonly inputs: readonly [{
|
|
99
|
-
readonly name: "
|
|
349
|
+
readonly name: "_newGov";
|
|
100
350
|
readonly type: "address";
|
|
101
|
-
}, {
|
|
102
|
-
readonly name: "_description";
|
|
103
|
-
readonly type: "string";
|
|
104
351
|
}];
|
|
105
|
-
readonly name: "
|
|
352
|
+
readonly name: "changeGovernance";
|
|
353
|
+
readonly outputs: readonly [];
|
|
354
|
+
readonly stateMutability: "nonpayable";
|
|
355
|
+
readonly type: "function";
|
|
356
|
+
}, {
|
|
357
|
+
readonly inputs: readonly [];
|
|
358
|
+
readonly name: "confirmGovernanceChange";
|
|
359
|
+
readonly outputs: readonly [];
|
|
360
|
+
readonly stateMutability: "nonpayable";
|
|
361
|
+
readonly type: "function";
|
|
362
|
+
}, {
|
|
363
|
+
readonly inputs: readonly [];
|
|
364
|
+
readonly name: "cancelGovernanceChange";
|
|
365
|
+
readonly outputs: readonly [];
|
|
366
|
+
readonly stateMutability: "nonpayable";
|
|
367
|
+
readonly type: "function";
|
|
368
|
+
}, {
|
|
369
|
+
readonly inputs: readonly [{
|
|
370
|
+
readonly name: "_numBlocks";
|
|
371
|
+
readonly type: "uint256";
|
|
372
|
+
}];
|
|
373
|
+
readonly name: "setGovernanceChangeDelay";
|
|
374
|
+
readonly outputs: readonly [];
|
|
375
|
+
readonly stateMutability: "nonpayable";
|
|
376
|
+
readonly type: "function";
|
|
377
|
+
}, {
|
|
378
|
+
readonly inputs: readonly [];
|
|
379
|
+
readonly name: "governance";
|
|
380
|
+
readonly outputs: readonly [{
|
|
381
|
+
readonly name: "";
|
|
382
|
+
readonly type: "address";
|
|
383
|
+
}];
|
|
384
|
+
readonly stateMutability: "view";
|
|
385
|
+
readonly type: "function";
|
|
386
|
+
}, {
|
|
387
|
+
readonly inputs: readonly [];
|
|
388
|
+
readonly name: "pendingGov";
|
|
389
|
+
readonly outputs: readonly [{
|
|
390
|
+
readonly components: readonly [{
|
|
391
|
+
readonly name: "newGov";
|
|
392
|
+
readonly type: "address";
|
|
393
|
+
}, {
|
|
394
|
+
readonly name: "initiatedBlock";
|
|
395
|
+
readonly type: "uint256";
|
|
396
|
+
}, {
|
|
397
|
+
readonly name: "confirmBlock";
|
|
398
|
+
readonly type: "uint256";
|
|
399
|
+
}];
|
|
400
|
+
readonly name: "";
|
|
401
|
+
readonly type: "tuple";
|
|
402
|
+
}];
|
|
403
|
+
readonly stateMutability: "view";
|
|
404
|
+
readonly type: "function";
|
|
405
|
+
}, {
|
|
406
|
+
readonly inputs: readonly [];
|
|
407
|
+
readonly name: "govChangeDelay";
|
|
106
408
|
readonly outputs: readonly [{
|
|
107
409
|
readonly name: "";
|
|
108
410
|
readonly type: "uint256";
|
|
109
411
|
}];
|
|
110
|
-
readonly stateMutability: "
|
|
412
|
+
readonly stateMutability: "view";
|
|
111
413
|
readonly type: "function";
|
|
112
414
|
}, {
|
|
113
|
-
readonly inputs: readonly [
|
|
114
|
-
|
|
415
|
+
readonly inputs: readonly [];
|
|
416
|
+
readonly name: "MIN_GOV_CHANGE_DELAY";
|
|
417
|
+
readonly outputs: readonly [{
|
|
418
|
+
readonly name: "";
|
|
115
419
|
readonly type: "uint256";
|
|
116
|
-
}, {
|
|
117
|
-
readonly name: "_newAddy";
|
|
118
|
-
readonly type: "address";
|
|
119
420
|
}];
|
|
120
|
-
readonly
|
|
421
|
+
readonly stateMutability: "view";
|
|
422
|
+
readonly type: "function";
|
|
423
|
+
}, {
|
|
424
|
+
readonly inputs: readonly [];
|
|
425
|
+
readonly name: "MAX_GOV_CHANGE_DELAY";
|
|
121
426
|
readonly outputs: readonly [{
|
|
122
427
|
readonly name: "";
|
|
123
|
-
readonly type: "
|
|
428
|
+
readonly type: "uint256";
|
|
124
429
|
}];
|
|
125
430
|
readonly stateMutability: "view";
|
|
126
431
|
readonly type: "function";
|
|
127
432
|
}, {
|
|
128
433
|
readonly inputs: readonly [{
|
|
129
|
-
readonly name: "
|
|
130
|
-
readonly type: "uint256";
|
|
131
|
-
}, {
|
|
132
|
-
readonly name: "_newAddy";
|
|
434
|
+
readonly name: "_addr";
|
|
133
435
|
readonly type: "address";
|
|
134
436
|
}];
|
|
135
|
-
readonly name: "
|
|
437
|
+
readonly name: "isValidNewAddy";
|
|
136
438
|
readonly outputs: readonly [{
|
|
137
439
|
readonly name: "";
|
|
138
440
|
readonly type: "bool";
|
|
139
441
|
}];
|
|
140
|
-
readonly stateMutability: "
|
|
442
|
+
readonly stateMutability: "view";
|
|
141
443
|
readonly type: "function";
|
|
142
444
|
}, {
|
|
143
445
|
readonly inputs: readonly [{
|
|
144
446
|
readonly name: "_addyId";
|
|
145
447
|
readonly type: "uint256";
|
|
448
|
+
}, {
|
|
449
|
+
readonly name: "_newAddr";
|
|
450
|
+
readonly type: "address";
|
|
146
451
|
}];
|
|
147
|
-
readonly name: "
|
|
452
|
+
readonly name: "isValidAddyUpdate";
|
|
148
453
|
readonly outputs: readonly [{
|
|
149
454
|
readonly name: "";
|
|
150
455
|
readonly type: "bool";
|
|
@@ -156,19 +461,19 @@ export declare const abi: readonly [{
|
|
|
156
461
|
readonly name: "_addyId";
|
|
157
462
|
readonly type: "uint256";
|
|
158
463
|
}];
|
|
159
|
-
readonly name: "
|
|
464
|
+
readonly name: "isValidAddyDisable";
|
|
160
465
|
readonly outputs: readonly [{
|
|
161
466
|
readonly name: "";
|
|
162
467
|
readonly type: "bool";
|
|
163
468
|
}];
|
|
164
|
-
readonly stateMutability: "
|
|
469
|
+
readonly stateMutability: "view";
|
|
165
470
|
readonly type: "function";
|
|
166
471
|
}, {
|
|
167
472
|
readonly inputs: readonly [{
|
|
168
|
-
readonly name: "
|
|
473
|
+
readonly name: "_addr";
|
|
169
474
|
readonly type: "address";
|
|
170
475
|
}];
|
|
171
|
-
readonly name: "
|
|
476
|
+
readonly name: "isValidAddyAddr";
|
|
172
477
|
readonly outputs: readonly [{
|
|
173
478
|
readonly name: "";
|
|
174
479
|
readonly type: "bool";
|
|
@@ -189,7 +494,7 @@ export declare const abi: readonly [{
|
|
|
189
494
|
readonly type: "function";
|
|
190
495
|
}, {
|
|
191
496
|
readonly inputs: readonly [{
|
|
192
|
-
readonly name: "
|
|
497
|
+
readonly name: "_addr";
|
|
193
498
|
readonly type: "address";
|
|
194
499
|
}];
|
|
195
500
|
readonly name: "getAddyId";
|
|
@@ -259,7 +564,7 @@ export declare const abi: readonly [{
|
|
|
259
564
|
readonly type: "function";
|
|
260
565
|
}, {
|
|
261
566
|
readonly inputs: readonly [];
|
|
262
|
-
readonly name: "
|
|
567
|
+
readonly name: "getLastAddyAddr";
|
|
263
568
|
readonly outputs: readonly [{
|
|
264
569
|
readonly name: "";
|
|
265
570
|
readonly type: "address";
|
|
@@ -277,47 +582,88 @@ export declare const abi: readonly [{
|
|
|
277
582
|
readonly type: "function";
|
|
278
583
|
}, {
|
|
279
584
|
readonly inputs: readonly [{
|
|
280
|
-
readonly name: "
|
|
585
|
+
readonly name: "arg0";
|
|
586
|
+
readonly type: "uint256";
|
|
587
|
+
}];
|
|
588
|
+
readonly name: "addyInfo";
|
|
589
|
+
readonly outputs: readonly [{
|
|
590
|
+
readonly components: readonly [{
|
|
591
|
+
readonly name: "addr";
|
|
592
|
+
readonly type: "address";
|
|
593
|
+
}, {
|
|
594
|
+
readonly name: "version";
|
|
595
|
+
readonly type: "uint256";
|
|
596
|
+
}, {
|
|
597
|
+
readonly name: "lastModified";
|
|
598
|
+
readonly type: "uint256";
|
|
599
|
+
}, {
|
|
600
|
+
readonly name: "description";
|
|
601
|
+
readonly type: "string";
|
|
602
|
+
}];
|
|
603
|
+
readonly name: "";
|
|
604
|
+
readonly type: "tuple";
|
|
605
|
+
}];
|
|
606
|
+
readonly stateMutability: "view";
|
|
607
|
+
readonly type: "function";
|
|
608
|
+
}, {
|
|
609
|
+
readonly inputs: readonly [{
|
|
610
|
+
readonly name: "arg0";
|
|
281
611
|
readonly type: "address";
|
|
282
612
|
}];
|
|
283
|
-
readonly name: "
|
|
613
|
+
readonly name: "addyToId";
|
|
284
614
|
readonly outputs: readonly [{
|
|
285
615
|
readonly name: "";
|
|
286
|
-
readonly type: "
|
|
616
|
+
readonly type: "uint256";
|
|
617
|
+
}];
|
|
618
|
+
readonly stateMutability: "view";
|
|
619
|
+
readonly type: "function";
|
|
620
|
+
}, {
|
|
621
|
+
readonly inputs: readonly [];
|
|
622
|
+
readonly name: "numAddys";
|
|
623
|
+
readonly outputs: readonly [{
|
|
624
|
+
readonly name: "";
|
|
625
|
+
readonly type: "uint256";
|
|
287
626
|
}];
|
|
288
627
|
readonly stateMutability: "view";
|
|
289
628
|
readonly type: "function";
|
|
290
629
|
}, {
|
|
291
630
|
readonly inputs: readonly [{
|
|
292
|
-
readonly name: "
|
|
631
|
+
readonly name: "arg0";
|
|
293
632
|
readonly type: "address";
|
|
294
633
|
}];
|
|
295
|
-
readonly name: "
|
|
634
|
+
readonly name: "pendingNewAddy";
|
|
296
635
|
readonly outputs: readonly [{
|
|
636
|
+
readonly components: readonly [{
|
|
637
|
+
readonly name: "description";
|
|
638
|
+
readonly type: "string";
|
|
639
|
+
}, {
|
|
640
|
+
readonly name: "initiatedBlock";
|
|
641
|
+
readonly type: "uint256";
|
|
642
|
+
}, {
|
|
643
|
+
readonly name: "confirmBlock";
|
|
644
|
+
readonly type: "uint256";
|
|
645
|
+
}];
|
|
297
646
|
readonly name: "";
|
|
298
|
-
readonly type: "
|
|
647
|
+
readonly type: "tuple";
|
|
299
648
|
}];
|
|
300
|
-
readonly stateMutability: "
|
|
649
|
+
readonly stateMutability: "view";
|
|
301
650
|
readonly type: "function";
|
|
302
651
|
}, {
|
|
303
652
|
readonly inputs: readonly [{
|
|
304
653
|
readonly name: "arg0";
|
|
305
654
|
readonly type: "uint256";
|
|
306
655
|
}];
|
|
307
|
-
readonly name: "
|
|
656
|
+
readonly name: "pendingAddyUpdate";
|
|
308
657
|
readonly outputs: readonly [{
|
|
309
658
|
readonly components: readonly [{
|
|
310
|
-
readonly name: "
|
|
659
|
+
readonly name: "newAddr";
|
|
311
660
|
readonly type: "address";
|
|
312
661
|
}, {
|
|
313
|
-
readonly name: "
|
|
662
|
+
readonly name: "initiatedBlock";
|
|
314
663
|
readonly type: "uint256";
|
|
315
664
|
}, {
|
|
316
|
-
readonly name: "
|
|
665
|
+
readonly name: "confirmBlock";
|
|
317
666
|
readonly type: "uint256";
|
|
318
|
-
}, {
|
|
319
|
-
readonly name: "description";
|
|
320
|
-
readonly type: "string";
|
|
321
667
|
}];
|
|
322
668
|
readonly name: "";
|
|
323
669
|
readonly type: "tuple";
|
|
@@ -327,9 +673,25 @@ export declare const abi: readonly [{
|
|
|
327
673
|
}, {
|
|
328
674
|
readonly inputs: readonly [{
|
|
329
675
|
readonly name: "arg0";
|
|
330
|
-
readonly type: "
|
|
676
|
+
readonly type: "uint256";
|
|
331
677
|
}];
|
|
332
|
-
readonly name: "
|
|
678
|
+
readonly name: "pendingAddyDisable";
|
|
679
|
+
readonly outputs: readonly [{
|
|
680
|
+
readonly components: readonly [{
|
|
681
|
+
readonly name: "initiatedBlock";
|
|
682
|
+
readonly type: "uint256";
|
|
683
|
+
}, {
|
|
684
|
+
readonly name: "confirmBlock";
|
|
685
|
+
readonly type: "uint256";
|
|
686
|
+
}];
|
|
687
|
+
readonly name: "";
|
|
688
|
+
readonly type: "tuple";
|
|
689
|
+
}];
|
|
690
|
+
readonly stateMutability: "view";
|
|
691
|
+
readonly type: "function";
|
|
692
|
+
}, {
|
|
693
|
+
readonly inputs: readonly [];
|
|
694
|
+
readonly name: "addyChangeDelay";
|
|
333
695
|
readonly outputs: readonly [{
|
|
334
696
|
readonly name: "";
|
|
335
697
|
readonly type: "uint256";
|
|
@@ -338,7 +700,7 @@ export declare const abi: readonly [{
|
|
|
338
700
|
readonly type: "function";
|
|
339
701
|
}, {
|
|
340
702
|
readonly inputs: readonly [];
|
|
341
|
-
readonly name: "
|
|
703
|
+
readonly name: "MIN_ADDY_CHANGE_DELAY";
|
|
342
704
|
readonly outputs: readonly [{
|
|
343
705
|
readonly name: "";
|
|
344
706
|
readonly type: "uint256";
|
|
@@ -347,17 +709,164 @@ export declare const abi: readonly [{
|
|
|
347
709
|
readonly type: "function";
|
|
348
710
|
}, {
|
|
349
711
|
readonly inputs: readonly [];
|
|
350
|
-
readonly name: "
|
|
712
|
+
readonly name: "MAX_ADDY_CHANGE_DELAY";
|
|
351
713
|
readonly outputs: readonly [{
|
|
352
714
|
readonly name: "";
|
|
353
|
-
readonly type: "
|
|
715
|
+
readonly type: "uint256";
|
|
716
|
+
}];
|
|
717
|
+
readonly stateMutability: "view";
|
|
718
|
+
readonly type: "function";
|
|
719
|
+
}, {
|
|
720
|
+
readonly inputs: readonly [];
|
|
721
|
+
readonly name: "REGISTRY_STR";
|
|
722
|
+
readonly outputs: readonly [{
|
|
723
|
+
readonly name: "";
|
|
724
|
+
readonly type: "string";
|
|
354
725
|
}];
|
|
355
726
|
readonly stateMutability: "view";
|
|
356
727
|
readonly type: "function";
|
|
357
728
|
}, {
|
|
358
729
|
readonly inputs: readonly [{
|
|
359
|
-
readonly name: "
|
|
730
|
+
readonly name: "_addr";
|
|
360
731
|
readonly type: "address";
|
|
732
|
+
}, {
|
|
733
|
+
readonly name: "_description";
|
|
734
|
+
readonly type: "string";
|
|
735
|
+
}];
|
|
736
|
+
readonly name: "registerNewAddy";
|
|
737
|
+
readonly outputs: readonly [{
|
|
738
|
+
readonly name: "";
|
|
739
|
+
readonly type: "bool";
|
|
740
|
+
}];
|
|
741
|
+
readonly stateMutability: "nonpayable";
|
|
742
|
+
readonly type: "function";
|
|
743
|
+
}, {
|
|
744
|
+
readonly inputs: readonly [{
|
|
745
|
+
readonly name: "_addr";
|
|
746
|
+
readonly type: "address";
|
|
747
|
+
}];
|
|
748
|
+
readonly name: "confirmNewAddy";
|
|
749
|
+
readonly outputs: readonly [{
|
|
750
|
+
readonly name: "";
|
|
751
|
+
readonly type: "uint256";
|
|
752
|
+
}];
|
|
753
|
+
readonly stateMutability: "nonpayable";
|
|
754
|
+
readonly type: "function";
|
|
755
|
+
}, {
|
|
756
|
+
readonly inputs: readonly [{
|
|
757
|
+
readonly name: "_addr";
|
|
758
|
+
readonly type: "address";
|
|
759
|
+
}];
|
|
760
|
+
readonly name: "cancelPendingNewAddy";
|
|
761
|
+
readonly outputs: readonly [{
|
|
762
|
+
readonly name: "";
|
|
763
|
+
readonly type: "bool";
|
|
764
|
+
}];
|
|
765
|
+
readonly stateMutability: "nonpayable";
|
|
766
|
+
readonly type: "function";
|
|
767
|
+
}, {
|
|
768
|
+
readonly inputs: readonly [{
|
|
769
|
+
readonly name: "_addyId";
|
|
770
|
+
readonly type: "uint256";
|
|
771
|
+
}, {
|
|
772
|
+
readonly name: "_newAddr";
|
|
773
|
+
readonly type: "address";
|
|
774
|
+
}];
|
|
775
|
+
readonly name: "updateAddyAddr";
|
|
776
|
+
readonly outputs: readonly [{
|
|
777
|
+
readonly name: "";
|
|
778
|
+
readonly type: "bool";
|
|
779
|
+
}];
|
|
780
|
+
readonly stateMutability: "nonpayable";
|
|
781
|
+
readonly type: "function";
|
|
782
|
+
}, {
|
|
783
|
+
readonly inputs: readonly [{
|
|
784
|
+
readonly name: "_addyId";
|
|
785
|
+
readonly type: "uint256";
|
|
786
|
+
}];
|
|
787
|
+
readonly name: "confirmAddyUpdate";
|
|
788
|
+
readonly outputs: readonly [{
|
|
789
|
+
readonly name: "";
|
|
790
|
+
readonly type: "bool";
|
|
791
|
+
}];
|
|
792
|
+
readonly stateMutability: "nonpayable";
|
|
793
|
+
readonly type: "function";
|
|
794
|
+
}, {
|
|
795
|
+
readonly inputs: readonly [{
|
|
796
|
+
readonly name: "_addyId";
|
|
797
|
+
readonly type: "uint256";
|
|
798
|
+
}];
|
|
799
|
+
readonly name: "cancelPendingAddyUpdate";
|
|
800
|
+
readonly outputs: readonly [{
|
|
801
|
+
readonly name: "";
|
|
802
|
+
readonly type: "bool";
|
|
803
|
+
}];
|
|
804
|
+
readonly stateMutability: "nonpayable";
|
|
805
|
+
readonly type: "function";
|
|
806
|
+
}, {
|
|
807
|
+
readonly inputs: readonly [{
|
|
808
|
+
readonly name: "_addyId";
|
|
809
|
+
readonly type: "uint256";
|
|
810
|
+
}];
|
|
811
|
+
readonly name: "disableAddyAddr";
|
|
812
|
+
readonly outputs: readonly [{
|
|
813
|
+
readonly name: "";
|
|
814
|
+
readonly type: "bool";
|
|
815
|
+
}];
|
|
816
|
+
readonly stateMutability: "nonpayable";
|
|
817
|
+
readonly type: "function";
|
|
818
|
+
}, {
|
|
819
|
+
readonly inputs: readonly [{
|
|
820
|
+
readonly name: "_addyId";
|
|
821
|
+
readonly type: "uint256";
|
|
822
|
+
}];
|
|
823
|
+
readonly name: "confirmAddyDisable";
|
|
824
|
+
readonly outputs: readonly [{
|
|
825
|
+
readonly name: "";
|
|
826
|
+
readonly type: "bool";
|
|
827
|
+
}];
|
|
828
|
+
readonly stateMutability: "nonpayable";
|
|
829
|
+
readonly type: "function";
|
|
830
|
+
}, {
|
|
831
|
+
readonly inputs: readonly [{
|
|
832
|
+
readonly name: "_addyId";
|
|
833
|
+
readonly type: "uint256";
|
|
834
|
+
}];
|
|
835
|
+
readonly name: "cancelPendingAddyDisable";
|
|
836
|
+
readonly outputs: readonly [{
|
|
837
|
+
readonly name: "";
|
|
838
|
+
readonly type: "bool";
|
|
839
|
+
}];
|
|
840
|
+
readonly stateMutability: "nonpayable";
|
|
841
|
+
readonly type: "function";
|
|
842
|
+
}, {
|
|
843
|
+
readonly inputs: readonly [{
|
|
844
|
+
readonly name: "_numBlocks";
|
|
845
|
+
readonly type: "uint256";
|
|
846
|
+
}];
|
|
847
|
+
readonly name: "setAddyChangeDelay";
|
|
848
|
+
readonly outputs: readonly [{
|
|
849
|
+
readonly name: "";
|
|
850
|
+
readonly type: "bool";
|
|
851
|
+
}];
|
|
852
|
+
readonly stateMutability: "nonpayable";
|
|
853
|
+
readonly type: "function";
|
|
854
|
+
}, {
|
|
855
|
+
readonly inputs: readonly [{
|
|
856
|
+
readonly name: "_initialGov";
|
|
857
|
+
readonly type: "address";
|
|
858
|
+
}, {
|
|
859
|
+
readonly name: "_minGovChangeDelay";
|
|
860
|
+
readonly type: "uint256";
|
|
861
|
+
}, {
|
|
862
|
+
readonly name: "_maxGovChangeDelay";
|
|
863
|
+
readonly type: "uint256";
|
|
864
|
+
}, {
|
|
865
|
+
readonly name: "_minRegistryChangeDelay";
|
|
866
|
+
readonly type: "uint256";
|
|
867
|
+
}, {
|
|
868
|
+
readonly name: "_maxRegistryChangeDelay";
|
|
869
|
+
readonly type: "uint256";
|
|
361
870
|
}];
|
|
362
871
|
readonly outputs: readonly [];
|
|
363
872
|
readonly stateMutability: "nonpayable";
|
|
@@ -366,12 +875,23 @@ export declare const abi: readonly [{
|
|
|
366
875
|
export declare const deployAddress: Address | undefined;
|
|
367
876
|
export type Contract = {
|
|
368
877
|
calls: {
|
|
369
|
-
|
|
370
|
-
|
|
878
|
+
canGovern: (address: `0x${string}`) => Promise<boolean>;
|
|
879
|
+
hasPendingGovChange: () => Promise<boolean>;
|
|
880
|
+
governance: () => Promise<`0x${string}`>;
|
|
881
|
+
pendingGov: () => Promise<{
|
|
882
|
+
newGov: `0x${string}`;
|
|
883
|
+
initiatedBlock: bigint;
|
|
884
|
+
confirmBlock: bigint;
|
|
885
|
+
}>;
|
|
886
|
+
govChangeDelay: () => Promise<bigint>;
|
|
887
|
+
MIN_GOV_CHANGE_DELAY: () => Promise<bigint>;
|
|
888
|
+
MAX_GOV_CHANGE_DELAY: () => Promise<bigint>;
|
|
889
|
+
isValidNewAddy: (addr: `0x${string}`) => Promise<boolean>;
|
|
890
|
+
isValidAddyUpdate: (addyId: bigint, newAddr: `0x${string}`) => Promise<boolean>;
|
|
371
891
|
isValidAddyDisable: (addyId: bigint) => Promise<boolean>;
|
|
372
|
-
|
|
892
|
+
isValidAddyAddr: (addr: `0x${string}`) => Promise<boolean>;
|
|
373
893
|
isValidAddyId: (addyId: bigint) => Promise<boolean>;
|
|
374
|
-
getAddyId: (
|
|
894
|
+
getAddyId: (addr: `0x${string}`) => Promise<bigint>;
|
|
375
895
|
getAddy: (addyId: bigint) => Promise<`0x${string}`>;
|
|
376
896
|
getAddyInfo: (addyId: bigint) => Promise<{
|
|
377
897
|
addr: `0x${string}`;
|
|
@@ -381,9 +901,8 @@ export type Contract = {
|
|
|
381
901
|
}>;
|
|
382
902
|
getAddyDescription: (addyId: bigint) => Promise<string>;
|
|
383
903
|
getNumAddys: () => Promise<bigint>;
|
|
384
|
-
|
|
904
|
+
getLastAddyAddr: () => Promise<`0x${string}`>;
|
|
385
905
|
getLastAddyId: () => Promise<bigint>;
|
|
386
|
-
isValidGovernor: (newGovernor: `0x${string}`) => Promise<boolean>;
|
|
387
906
|
addyInfo: (arg0: bigint) => Promise<{
|
|
388
907
|
addr: `0x${string}`;
|
|
389
908
|
version: bigint;
|
|
@@ -392,20 +911,56 @@ export type Contract = {
|
|
|
392
911
|
}>;
|
|
393
912
|
addyToId: (arg0: `0x${string}`) => Promise<bigint>;
|
|
394
913
|
numAddys: () => Promise<bigint>;
|
|
395
|
-
|
|
914
|
+
pendingNewAddy: (arg0: `0x${string}`) => Promise<{
|
|
915
|
+
description: string;
|
|
916
|
+
initiatedBlock: bigint;
|
|
917
|
+
confirmBlock: bigint;
|
|
918
|
+
}>;
|
|
919
|
+
pendingAddyUpdate: (arg0: bigint) => Promise<{
|
|
920
|
+
newAddr: `0x${string}`;
|
|
921
|
+
initiatedBlock: bigint;
|
|
922
|
+
confirmBlock: bigint;
|
|
923
|
+
}>;
|
|
924
|
+
pendingAddyDisable: (arg0: bigint) => Promise<{
|
|
925
|
+
initiatedBlock: bigint;
|
|
926
|
+
confirmBlock: bigint;
|
|
927
|
+
}>;
|
|
928
|
+
addyChangeDelay: () => Promise<bigint>;
|
|
929
|
+
MIN_ADDY_CHANGE_DELAY: () => Promise<bigint>;
|
|
930
|
+
MAX_ADDY_CHANGE_DELAY: () => Promise<bigint>;
|
|
931
|
+
REGISTRY_STR: () => Promise<string>;
|
|
396
932
|
};
|
|
397
933
|
mutations: {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
934
|
+
changeGovernance: (newGov: `0x${string}`) => Promise<void>;
|
|
935
|
+
confirmGovernanceChange: () => Promise<void>;
|
|
936
|
+
cancelGovernanceChange: () => Promise<void>;
|
|
937
|
+
setGovernanceChangeDelay: (numBlocks: bigint) => Promise<void>;
|
|
938
|
+
registerNewAddy: (addr: `0x${string}`, description: string) => Promise<boolean>;
|
|
939
|
+
confirmNewAddy: (addr: `0x${string}`) => Promise<bigint>;
|
|
940
|
+
cancelPendingNewAddy: (addr: `0x${string}`) => Promise<boolean>;
|
|
941
|
+
updateAddyAddr: (addyId: bigint, newAddr: `0x${string}`) => Promise<boolean>;
|
|
942
|
+
confirmAddyUpdate: (addyId: bigint) => Promise<boolean>;
|
|
943
|
+
cancelPendingAddyUpdate: (addyId: bigint) => Promise<boolean>;
|
|
944
|
+
disableAddyAddr: (addyId: bigint) => Promise<boolean>;
|
|
945
|
+
confirmAddyDisable: (addyId: bigint) => Promise<boolean>;
|
|
946
|
+
cancelPendingAddyDisable: (addyId: bigint) => Promise<boolean>;
|
|
947
|
+
setAddyChangeDelay: (numBlocks: bigint) => Promise<boolean>;
|
|
402
948
|
};
|
|
403
949
|
events: {
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
950
|
+
GovChangeInitiated: (prevGov: `0x${string}`, newGov: `0x${string}`, confirmBlock: bigint) => Promise<void>;
|
|
951
|
+
GovChangeConfirmed: (prevGov: `0x${string}`, newGov: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
|
|
952
|
+
GovChangeCancelled: (cancelledGov: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
|
|
953
|
+
GovChangeDelaySet: (delayBlocks: bigint) => Promise<void>;
|
|
954
|
+
NewAddyPending: (addr: `0x${string}`, description: string, confirmBlock: bigint, registry: string) => Promise<void>;
|
|
955
|
+
NewAddyConfirmed: (addr: `0x${string}`, addyId: bigint, description: string, registry: string) => Promise<void>;
|
|
956
|
+
NewPendingAddyCancelled: (description: string, addr: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint, registry: string) => Promise<void>;
|
|
957
|
+
AddyUpdatePending: (addyId: bigint, description: string, newAddr: `0x${string}`, prevAddr: `0x${string}`, version: bigint, confirmBlock: bigint, registry: string) => Promise<void>;
|
|
958
|
+
AddyUpdateConfirmed: (addyId: bigint, description: string, newAddr: `0x${string}`, prevAddr: `0x${string}`, version: bigint, registry: string) => Promise<void>;
|
|
959
|
+
AddyUpdateCancelled: (addyId: bigint, description: string, newAddr: `0x${string}`, prevAddr: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint, registry: string) => Promise<void>;
|
|
960
|
+
AddyDisablePending: (addyId: bigint, description: string, addr: `0x${string}`, version: bigint, confirmBlock: bigint, registry: string) => Promise<void>;
|
|
961
|
+
AddyDisableConfirmed: (addyId: bigint, description: string, addr: `0x${string}`, version: bigint, registry: string) => Promise<void>;
|
|
962
|
+
AddyDisableCancelled: (addyId: bigint, description: string, addr: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint, registry: string) => Promise<void>;
|
|
963
|
+
AddyChangeDelaySet: (delayBlocks: bigint, registry: string) => Promise<void>;
|
|
409
964
|
};
|
|
410
965
|
};
|
|
411
966
|
export type Calls = keyof Contract['calls'];
|
|
@@ -444,27 +999,49 @@ export declare const mutation: {
|
|
|
444
999
|
};
|
|
445
1000
|
};
|
|
446
1001
|
export type SDK = {
|
|
1002
|
+
canGovern: (...args: ExtractArgs<Contract['calls']['canGovern']>) => Promise<CallReturn<'canGovern'>>;
|
|
1003
|
+
hasPendingGovChange: (...args: ExtractArgs<Contract['calls']['hasPendingGovChange']>) => Promise<CallReturn<'hasPendingGovChange'>>;
|
|
1004
|
+
governance: (...args: ExtractArgs<Contract['calls']['governance']>) => Promise<CallReturn<'governance'>>;
|
|
1005
|
+
pendingGov: (...args: ExtractArgs<Contract['calls']['pendingGov']>) => Promise<CallReturn<'pendingGov'>>;
|
|
1006
|
+
govChangeDelay: (...args: ExtractArgs<Contract['calls']['govChangeDelay']>) => Promise<CallReturn<'govChangeDelay'>>;
|
|
1007
|
+
MIN_GOV_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MIN_GOV_CHANGE_DELAY']>) => Promise<CallReturn<'MIN_GOV_CHANGE_DELAY'>>;
|
|
1008
|
+
MAX_GOV_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MAX_GOV_CHANGE_DELAY']>) => Promise<CallReturn<'MAX_GOV_CHANGE_DELAY'>>;
|
|
447
1009
|
isValidNewAddy: (...args: ExtractArgs<Contract['calls']['isValidNewAddy']>) => Promise<CallReturn<'isValidNewAddy'>>;
|
|
448
1010
|
isValidAddyUpdate: (...args: ExtractArgs<Contract['calls']['isValidAddyUpdate']>) => Promise<CallReturn<'isValidAddyUpdate'>>;
|
|
449
1011
|
isValidAddyDisable: (...args: ExtractArgs<Contract['calls']['isValidAddyDisable']>) => Promise<CallReturn<'isValidAddyDisable'>>;
|
|
450
|
-
|
|
1012
|
+
isValidAddyAddr: (...args: ExtractArgs<Contract['calls']['isValidAddyAddr']>) => Promise<CallReturn<'isValidAddyAddr'>>;
|
|
451
1013
|
isValidAddyId: (...args: ExtractArgs<Contract['calls']['isValidAddyId']>) => Promise<CallReturn<'isValidAddyId'>>;
|
|
452
1014
|
getAddyId: (...args: ExtractArgs<Contract['calls']['getAddyId']>) => Promise<CallReturn<'getAddyId'>>;
|
|
453
1015
|
getAddy: (...args: ExtractArgs<Contract['calls']['getAddy']>) => Promise<CallReturn<'getAddy'>>;
|
|
454
1016
|
getAddyInfo: (...args: ExtractArgs<Contract['calls']['getAddyInfo']>) => Promise<CallReturn<'getAddyInfo'>>;
|
|
455
1017
|
getAddyDescription: (...args: ExtractArgs<Contract['calls']['getAddyDescription']>) => Promise<CallReturn<'getAddyDescription'>>;
|
|
456
1018
|
getNumAddys: (...args: ExtractArgs<Contract['calls']['getNumAddys']>) => Promise<CallReturn<'getNumAddys'>>;
|
|
457
|
-
|
|
1019
|
+
getLastAddyAddr: (...args: ExtractArgs<Contract['calls']['getLastAddyAddr']>) => Promise<CallReturn<'getLastAddyAddr'>>;
|
|
458
1020
|
getLastAddyId: (...args: ExtractArgs<Contract['calls']['getLastAddyId']>) => Promise<CallReturn<'getLastAddyId'>>;
|
|
459
|
-
isValidGovernor: (...args: ExtractArgs<Contract['calls']['isValidGovernor']>) => Promise<CallReturn<'isValidGovernor'>>;
|
|
460
1021
|
addyInfo: (...args: ExtractArgs<Contract['calls']['addyInfo']>) => Promise<CallReturn<'addyInfo'>>;
|
|
461
1022
|
addyToId: (...args: ExtractArgs<Contract['calls']['addyToId']>) => Promise<CallReturn<'addyToId'>>;
|
|
462
1023
|
numAddys: (...args: ExtractArgs<Contract['calls']['numAddys']>) => Promise<CallReturn<'numAddys'>>;
|
|
463
|
-
|
|
1024
|
+
pendingNewAddy: (...args: ExtractArgs<Contract['calls']['pendingNewAddy']>) => Promise<CallReturn<'pendingNewAddy'>>;
|
|
1025
|
+
pendingAddyUpdate: (...args: ExtractArgs<Contract['calls']['pendingAddyUpdate']>) => Promise<CallReturn<'pendingAddyUpdate'>>;
|
|
1026
|
+
pendingAddyDisable: (...args: ExtractArgs<Contract['calls']['pendingAddyDisable']>) => Promise<CallReturn<'pendingAddyDisable'>>;
|
|
1027
|
+
addyChangeDelay: (...args: ExtractArgs<Contract['calls']['addyChangeDelay']>) => Promise<CallReturn<'addyChangeDelay'>>;
|
|
1028
|
+
MIN_ADDY_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MIN_ADDY_CHANGE_DELAY']>) => Promise<CallReturn<'MIN_ADDY_CHANGE_DELAY'>>;
|
|
1029
|
+
MAX_ADDY_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MAX_ADDY_CHANGE_DELAY']>) => Promise<CallReturn<'MAX_ADDY_CHANGE_DELAY'>>;
|
|
1030
|
+
REGISTRY_STR: (...args: ExtractArgs<Contract['calls']['REGISTRY_STR']>) => Promise<CallReturn<'REGISTRY_STR'>>;
|
|
1031
|
+
changeGovernance: (...args: ExtractArgs<Contract['mutations']['changeGovernance']>) => Promise<Address>;
|
|
1032
|
+
confirmGovernanceChange: (...args: ExtractArgs<Contract['mutations']['confirmGovernanceChange']>) => Promise<Address>;
|
|
1033
|
+
cancelGovernanceChange: (...args: ExtractArgs<Contract['mutations']['cancelGovernanceChange']>) => Promise<Address>;
|
|
1034
|
+
setGovernanceChangeDelay: (...args: ExtractArgs<Contract['mutations']['setGovernanceChangeDelay']>) => Promise<Address>;
|
|
464
1035
|
registerNewAddy: (...args: ExtractArgs<Contract['mutations']['registerNewAddy']>) => Promise<Address>;
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
1036
|
+
confirmNewAddy: (...args: ExtractArgs<Contract['mutations']['confirmNewAddy']>) => Promise<Address>;
|
|
1037
|
+
cancelPendingNewAddy: (...args: ExtractArgs<Contract['mutations']['cancelPendingNewAddy']>) => Promise<Address>;
|
|
1038
|
+
updateAddyAddr: (...args: ExtractArgs<Contract['mutations']['updateAddyAddr']>) => Promise<Address>;
|
|
1039
|
+
confirmAddyUpdate: (...args: ExtractArgs<Contract['mutations']['confirmAddyUpdate']>) => Promise<Address>;
|
|
1040
|
+
cancelPendingAddyUpdate: (...args: ExtractArgs<Contract['mutations']['cancelPendingAddyUpdate']>) => Promise<Address>;
|
|
1041
|
+
disableAddyAddr: (...args: ExtractArgs<Contract['mutations']['disableAddyAddr']>) => Promise<Address>;
|
|
1042
|
+
confirmAddyDisable: (...args: ExtractArgs<Contract['mutations']['confirmAddyDisable']>) => Promise<Address>;
|
|
1043
|
+
cancelPendingAddyDisable: (...args: ExtractArgs<Contract['mutations']['cancelPendingAddyDisable']>) => Promise<Address>;
|
|
1044
|
+
setAddyChangeDelay: (...args: ExtractArgs<Contract['mutations']['setAddyChangeDelay']>) => Promise<Address>;
|
|
468
1045
|
};
|
|
469
1046
|
export declare function toSdk(publicClient?: PublicClient, walletClient?: WalletClient): SDK;
|
|
470
1047
|
export {};
|