@underscore-finance/sdk 0.2.2 → 0.3.2
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 +59 -0
- package/dist/contracts/AddyRegistry.d.ts.map +1 -1
- package/dist/contracts/AddyRegistry.js +80 -1
- package/dist/contracts/AddyRegistry_v1.d.ts +471 -0
- package/dist/contracts/AddyRegistry_v1.d.ts.map +1 -0
- package/dist/contracts/AddyRegistry_v1.js +592 -0
- package/dist/contracts/AddyRegistry_v2.d.ts +1048 -0
- package/dist/contracts/AddyRegistry_v2.d.ts.map +1 -0
- package/dist/contracts/AddyRegistry_v2.js +1311 -0
- package/dist/contracts/Agent.js +1 -1
- package/dist/contracts/AgentFactory.d.ts +673 -269
- package/dist/contracts/AgentFactory.d.ts.map +1 -1
- package/dist/contracts/AgentFactory.js +742 -254
- package/dist/contracts/AgentFactory_v1.d.ts +1052 -0
- package/dist/contracts/AgentFactory_v1.d.ts.map +1 -0
- package/dist/contracts/AgentFactory_v1.js +1334 -0
- package/dist/contracts/AgentFactory_v2.d.ts +1273 -0
- package/dist/contracts/AgentFactory_v2.d.ts.map +1 -0
- package/dist/contracts/AgentFactory_v2.js +1607 -0
- package/dist/contracts/Agent_v2.d.ts +2707 -0
- package/dist/contracts/Agent_v2.d.ts.map +1 -0
- package/dist/contracts/Agent_v2.js +3456 -0
- package/dist/contracts/ChainlinkFeeds.js +1 -1
- package/dist/contracts/LegoAaveV3.js +1 -1
- package/dist/contracts/LegoAeroClassic.js +1 -1
- package/dist/contracts/LegoAeroSlipstream.js +1 -1
- package/dist/contracts/LegoCompoundV3.js +1 -1
- package/dist/contracts/LegoCurve.js +1 -1
- package/dist/contracts/LegoEuler.js +1 -1
- package/dist/contracts/LegoFluid.js +1 -1
- package/dist/contracts/LegoHelper.js +1 -1
- package/dist/contracts/LegoMoonwell.js +1 -1
- package/dist/contracts/LegoMorpho.js +1 -1
- package/dist/contracts/LegoRegistry.d.ts +83 -0
- package/dist/contracts/LegoRegistry.d.ts.map +1 -1
- package/dist/contracts/LegoRegistry.js +109 -1
- package/dist/contracts/LegoSky.js +1 -1
- package/dist/contracts/LegoUniswapV2.js +1 -1
- package/dist/contracts/LegoUniswapV3.js +1 -1
- package/dist/contracts/OracleRegistry.d.ts +11 -0
- package/dist/contracts/OracleRegistry.d.ts.map +1 -1
- package/dist/contracts/OracleRegistry.js +15 -1
- package/dist/contracts/PriceSheets.d.ts +65 -133
- package/dist/contracts/PriceSheets.d.ts.map +1 -1
- package/dist/contracts/PriceSheets.js +74 -152
- package/dist/contracts/PythFeeds.js +1 -1
- package/dist/contracts/StorkFeeds.js +1 -1
- package/dist/contracts/UserWallet.d.ts +41 -24
- package/dist/contracts/UserWallet.d.ts.map +1 -1
- package/dist/contracts/UserWallet.js +48 -24
- package/dist/contracts/UserWalletConfig.d.ts +384 -0
- package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
- package/dist/contracts/UserWalletConfig.js +500 -1
- package/dist/contracts/UserWalletConfig_v1.d.ts +1398 -0
- package/dist/contracts/UserWalletConfig_v1.d.ts.map +1 -0
- package/dist/contracts/UserWalletConfig_v1.js +1674 -0
- package/dist/contracts/UserWalletConfig_v2.d.ts +1466 -0
- package/dist/contracts/UserWalletConfig_v2.d.ts.map +1 -0
- package/dist/contracts/UserWalletConfig_v2.js +1762 -0
- package/dist/contracts/UserWallet_v1.d.ts +1978 -0
- package/dist/contracts/UserWallet_v1.d.ts.map +1 -0
- package/dist/contracts/UserWallet_v1.js +2579 -0
- package/dist/contracts/UserWallet_v2.d.ts +1956 -0
- package/dist/contracts/UserWallet_v2.d.ts.map +1 -0
- package/dist/contracts/UserWallet_v2.js +2551 -0
- package/dist/contracts/index.d.ts +9 -0
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +9 -0
- package/dist/contracts/sdk.d.ts +18 -0
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +18 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +57 -0
- package/package.json +1 -1
|
@@ -19,6 +19,10 @@ export declare const abi: readonly [{
|
|
|
19
19
|
readonly indexed: false;
|
|
20
20
|
readonly name: "agent";
|
|
21
21
|
readonly type: "address";
|
|
22
|
+
}, {
|
|
23
|
+
readonly indexed: false;
|
|
24
|
+
readonly name: "ambassador";
|
|
25
|
+
readonly type: "address";
|
|
22
26
|
}, {
|
|
23
27
|
readonly indexed: false;
|
|
24
28
|
readonly name: "creator";
|
|
@@ -47,53 +51,77 @@ export declare const abi: readonly [{
|
|
|
47
51
|
readonly anonymous: false;
|
|
48
52
|
readonly inputs: readonly [{
|
|
49
53
|
readonly indexed: true;
|
|
50
|
-
readonly name: "
|
|
54
|
+
readonly name: "prevAddr";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
}, {
|
|
57
|
+
readonly indexed: true;
|
|
58
|
+
readonly name: "newAddr";
|
|
51
59
|
readonly type: "address";
|
|
52
60
|
}, {
|
|
53
61
|
readonly indexed: false;
|
|
54
|
-
readonly name: "
|
|
62
|
+
readonly name: "confirmBlock";
|
|
63
|
+
readonly type: "uint256";
|
|
64
|
+
}, {
|
|
65
|
+
readonly indexed: false;
|
|
66
|
+
readonly name: "addressType";
|
|
55
67
|
readonly type: "uint256";
|
|
56
68
|
}];
|
|
57
|
-
readonly name: "
|
|
69
|
+
readonly name: "AddressUpdateInitiated";
|
|
58
70
|
readonly type: "event";
|
|
59
71
|
}, {
|
|
60
72
|
readonly anonymous: false;
|
|
61
73
|
readonly inputs: readonly [{
|
|
62
74
|
readonly indexed: true;
|
|
63
|
-
readonly name: "
|
|
75
|
+
readonly name: "prevAddr";
|
|
76
|
+
readonly type: "address";
|
|
77
|
+
}, {
|
|
78
|
+
readonly indexed: true;
|
|
79
|
+
readonly name: "newAddr";
|
|
64
80
|
readonly type: "address";
|
|
65
81
|
}, {
|
|
66
82
|
readonly indexed: false;
|
|
67
|
-
readonly name: "
|
|
83
|
+
readonly name: "initiatedBlock";
|
|
84
|
+
readonly type: "uint256";
|
|
85
|
+
}, {
|
|
86
|
+
readonly indexed: false;
|
|
87
|
+
readonly name: "confirmBlock";
|
|
88
|
+
readonly type: "uint256";
|
|
89
|
+
}, {
|
|
90
|
+
readonly indexed: false;
|
|
91
|
+
readonly name: "addressType";
|
|
68
92
|
readonly type: "uint256";
|
|
69
93
|
}];
|
|
70
|
-
readonly name: "
|
|
94
|
+
readonly name: "AddressUpdateConfirmed";
|
|
71
95
|
readonly type: "event";
|
|
72
96
|
}, {
|
|
73
97
|
readonly anonymous: false;
|
|
74
98
|
readonly inputs: readonly [{
|
|
75
99
|
readonly indexed: true;
|
|
76
|
-
readonly name: "
|
|
100
|
+
readonly name: "cancelledTemplate";
|
|
77
101
|
readonly type: "address";
|
|
78
102
|
}, {
|
|
79
103
|
readonly indexed: false;
|
|
80
|
-
readonly name: "
|
|
104
|
+
readonly name: "initiatedBlock";
|
|
105
|
+
readonly type: "uint256";
|
|
106
|
+
}, {
|
|
107
|
+
readonly indexed: false;
|
|
108
|
+
readonly name: "confirmBlock";
|
|
109
|
+
readonly type: "uint256";
|
|
110
|
+
}, {
|
|
111
|
+
readonly indexed: false;
|
|
112
|
+
readonly name: "addressType";
|
|
81
113
|
readonly type: "uint256";
|
|
82
114
|
}];
|
|
83
|
-
readonly name: "
|
|
115
|
+
readonly name: "AddressUpdateCancelled";
|
|
84
116
|
readonly type: "event";
|
|
85
117
|
}, {
|
|
86
118
|
readonly anonymous: false;
|
|
87
119
|
readonly inputs: readonly [{
|
|
88
|
-
readonly indexed: true;
|
|
89
|
-
readonly name: "asset";
|
|
90
|
-
readonly type: "address";
|
|
91
|
-
}, {
|
|
92
120
|
readonly indexed: false;
|
|
93
|
-
readonly name: "
|
|
121
|
+
readonly name: "delayBlocks";
|
|
94
122
|
readonly type: "uint256";
|
|
95
123
|
}];
|
|
96
|
-
readonly name: "
|
|
124
|
+
readonly name: "AddressChangeDelaySet";
|
|
97
125
|
readonly type: "event";
|
|
98
126
|
}, {
|
|
99
127
|
readonly anonymous: false;
|
|
@@ -108,6 +136,15 @@ export declare const abi: readonly [{
|
|
|
108
136
|
}];
|
|
109
137
|
readonly name: "WhitelistSet";
|
|
110
138
|
readonly type: "event";
|
|
139
|
+
}, {
|
|
140
|
+
readonly anonymous: false;
|
|
141
|
+
readonly inputs: readonly [{
|
|
142
|
+
readonly indexed: false;
|
|
143
|
+
readonly name: "shouldEnforce";
|
|
144
|
+
readonly type: "bool";
|
|
145
|
+
}];
|
|
146
|
+
readonly name: "ShouldEnforceWhitelistSet";
|
|
147
|
+
readonly type: "event";
|
|
111
148
|
}, {
|
|
112
149
|
readonly anonymous: false;
|
|
113
150
|
readonly inputs: readonly [{
|
|
@@ -129,24 +166,28 @@ export declare const abi: readonly [{
|
|
|
129
166
|
}, {
|
|
130
167
|
readonly anonymous: false;
|
|
131
168
|
readonly inputs: readonly [{
|
|
169
|
+
readonly indexed: true;
|
|
170
|
+
readonly name: "agentAddr";
|
|
171
|
+
readonly type: "address";
|
|
172
|
+
}, {
|
|
132
173
|
readonly indexed: false;
|
|
133
|
-
readonly name: "
|
|
174
|
+
readonly name: "shouldBlacklist";
|
|
134
175
|
readonly type: "bool";
|
|
135
176
|
}];
|
|
136
|
-
readonly name: "
|
|
177
|
+
readonly name: "AgentBlacklistSet";
|
|
137
178
|
readonly type: "event";
|
|
138
179
|
}, {
|
|
139
180
|
readonly anonymous: false;
|
|
140
181
|
readonly inputs: readonly [{
|
|
141
182
|
readonly indexed: true;
|
|
142
|
-
readonly name: "
|
|
183
|
+
readonly name: "addr";
|
|
143
184
|
readonly type: "address";
|
|
144
185
|
}, {
|
|
145
186
|
readonly indexed: false;
|
|
146
|
-
readonly name: "
|
|
187
|
+
readonly name: "canCancel";
|
|
147
188
|
readonly type: "bool";
|
|
148
189
|
}];
|
|
149
|
-
readonly name: "
|
|
190
|
+
readonly name: "CanCriticalCancelSet";
|
|
150
191
|
readonly type: "event";
|
|
151
192
|
}, {
|
|
152
193
|
readonly anonymous: false;
|
|
@@ -154,38 +195,63 @@ export declare const abi: readonly [{
|
|
|
154
195
|
readonly indexed: true;
|
|
155
196
|
readonly name: "asset";
|
|
156
197
|
readonly type: "address";
|
|
198
|
+
}, {
|
|
199
|
+
readonly indexed: false;
|
|
200
|
+
readonly name: "amount";
|
|
201
|
+
readonly type: "uint256";
|
|
202
|
+
}];
|
|
203
|
+
readonly name: "TrialFundsDataSet";
|
|
204
|
+
readonly type: "event";
|
|
205
|
+
}, {
|
|
206
|
+
readonly anonymous: false;
|
|
207
|
+
readonly inputs: readonly [{
|
|
208
|
+
readonly indexed: true;
|
|
209
|
+
readonly name: "user";
|
|
210
|
+
readonly type: "address";
|
|
157
211
|
}, {
|
|
158
212
|
readonly indexed: true;
|
|
159
|
-
readonly name: "
|
|
213
|
+
readonly name: "ambassador";
|
|
214
|
+
readonly type: "address";
|
|
215
|
+
}, {
|
|
216
|
+
readonly indexed: true;
|
|
217
|
+
readonly name: "asset";
|
|
160
218
|
readonly type: "address";
|
|
161
219
|
}, {
|
|
162
220
|
readonly indexed: false;
|
|
163
|
-
readonly name: "
|
|
221
|
+
readonly name: "amount";
|
|
222
|
+
readonly type: "uint256";
|
|
223
|
+
}, {
|
|
224
|
+
readonly indexed: false;
|
|
225
|
+
readonly name: "ratio";
|
|
164
226
|
readonly type: "uint256";
|
|
165
227
|
}];
|
|
166
|
-
readonly name: "
|
|
228
|
+
readonly name: "AmbassadorYieldBonusPaid";
|
|
167
229
|
readonly type: "event";
|
|
168
230
|
}, {
|
|
169
231
|
readonly anonymous: false;
|
|
170
232
|
readonly inputs: readonly [{
|
|
171
|
-
readonly indexed:
|
|
172
|
-
readonly name: "
|
|
173
|
-
readonly type: "
|
|
233
|
+
readonly indexed: false;
|
|
234
|
+
readonly name: "ratio";
|
|
235
|
+
readonly type: "uint256";
|
|
174
236
|
}];
|
|
175
|
-
readonly name: "
|
|
237
|
+
readonly name: "AmbassadorBonusRatioSet";
|
|
176
238
|
readonly type: "event";
|
|
177
239
|
}, {
|
|
178
240
|
readonly anonymous: false;
|
|
179
241
|
readonly inputs: readonly [{
|
|
180
242
|
readonly indexed: true;
|
|
181
|
-
readonly name: "
|
|
243
|
+
readonly name: "asset";
|
|
244
|
+
readonly type: "address";
|
|
245
|
+
}, {
|
|
246
|
+
readonly indexed: true;
|
|
247
|
+
readonly name: "recipient";
|
|
182
248
|
readonly type: "address";
|
|
183
249
|
}, {
|
|
184
250
|
readonly indexed: false;
|
|
185
|
-
readonly name: "
|
|
186
|
-
readonly type: "
|
|
251
|
+
readonly name: "balance";
|
|
252
|
+
readonly type: "uint256";
|
|
187
253
|
}];
|
|
188
|
-
readonly name: "
|
|
254
|
+
readonly name: "AgentFactoryFundsRecovered";
|
|
189
255
|
readonly type: "event";
|
|
190
256
|
}, {
|
|
191
257
|
readonly anonymous: false;
|
|
@@ -367,49 +433,31 @@ export declare const abi: readonly [{
|
|
|
367
433
|
readonly stateMutability: "view";
|
|
368
434
|
readonly type: "function";
|
|
369
435
|
}, {
|
|
370
|
-
readonly inputs: readonly [
|
|
371
|
-
|
|
372
|
-
readonly outputs: readonly [{
|
|
373
|
-
readonly name: "";
|
|
436
|
+
readonly inputs: readonly [{
|
|
437
|
+
readonly name: "_addr";
|
|
374
438
|
readonly type: "address";
|
|
375
439
|
}];
|
|
376
|
-
readonly
|
|
377
|
-
readonly type: "function";
|
|
378
|
-
}, {
|
|
379
|
-
readonly inputs: readonly [];
|
|
380
|
-
readonly name: "currentUserWalletConfigTemplate";
|
|
440
|
+
readonly name: "isUserWallet";
|
|
381
441
|
readonly outputs: readonly [{
|
|
382
442
|
readonly name: "";
|
|
383
|
-
readonly type: "
|
|
443
|
+
readonly type: "bool";
|
|
384
444
|
}];
|
|
385
445
|
readonly stateMutability: "view";
|
|
386
446
|
readonly type: "function";
|
|
387
447
|
}, {
|
|
388
448
|
readonly inputs: readonly [];
|
|
389
|
-
readonly name: "
|
|
449
|
+
readonly name: "createUserWallet";
|
|
390
450
|
readonly outputs: readonly [{
|
|
391
451
|
readonly name: "";
|
|
392
452
|
readonly type: "address";
|
|
393
453
|
}];
|
|
394
|
-
readonly stateMutability: "
|
|
454
|
+
readonly stateMutability: "nonpayable";
|
|
395
455
|
readonly type: "function";
|
|
396
456
|
}, {
|
|
397
457
|
readonly inputs: readonly [{
|
|
398
458
|
readonly name: "_owner";
|
|
399
459
|
readonly type: "address";
|
|
400
|
-
}, {
|
|
401
|
-
readonly name: "_agent";
|
|
402
|
-
readonly type: "address";
|
|
403
|
-
}];
|
|
404
|
-
readonly name: "isValidUserWalletSetup";
|
|
405
|
-
readonly outputs: readonly [{
|
|
406
|
-
readonly name: "";
|
|
407
|
-
readonly type: "bool";
|
|
408
460
|
}];
|
|
409
|
-
readonly stateMutability: "view";
|
|
410
|
-
readonly type: "function";
|
|
411
|
-
}, {
|
|
412
|
-
readonly inputs: readonly [];
|
|
413
461
|
readonly name: "createUserWallet";
|
|
414
462
|
readonly outputs: readonly [{
|
|
415
463
|
readonly name: "";
|
|
@@ -421,6 +469,9 @@ export declare const abi: readonly [{
|
|
|
421
469
|
readonly inputs: readonly [{
|
|
422
470
|
readonly name: "_owner";
|
|
423
471
|
readonly type: "address";
|
|
472
|
+
}, {
|
|
473
|
+
readonly name: "_ambassador";
|
|
474
|
+
readonly type: "address";
|
|
424
475
|
}];
|
|
425
476
|
readonly name: "createUserWallet";
|
|
426
477
|
readonly outputs: readonly [{
|
|
@@ -434,8 +485,11 @@ export declare const abi: readonly [{
|
|
|
434
485
|
readonly name: "_owner";
|
|
435
486
|
readonly type: "address";
|
|
436
487
|
}, {
|
|
437
|
-
readonly name: "
|
|
488
|
+
readonly name: "_ambassador";
|
|
438
489
|
readonly type: "address";
|
|
490
|
+
}, {
|
|
491
|
+
readonly name: "_shouldUseTrialFunds";
|
|
492
|
+
readonly type: "bool";
|
|
439
493
|
}];
|
|
440
494
|
readonly name: "createUserWallet";
|
|
441
495
|
readonly outputs: readonly [{
|
|
@@ -446,10 +500,10 @@ export declare const abi: readonly [{
|
|
|
446
500
|
readonly type: "function";
|
|
447
501
|
}, {
|
|
448
502
|
readonly inputs: readonly [{
|
|
449
|
-
readonly name: "
|
|
503
|
+
readonly name: "_addr";
|
|
450
504
|
readonly type: "address";
|
|
451
505
|
}];
|
|
452
|
-
readonly name: "
|
|
506
|
+
readonly name: "isAgent";
|
|
453
507
|
readonly outputs: readonly [{
|
|
454
508
|
readonly name: "";
|
|
455
509
|
readonly type: "bool";
|
|
@@ -457,35 +511,32 @@ export declare const abi: readonly [{
|
|
|
457
511
|
readonly stateMutability: "view";
|
|
458
512
|
readonly type: "function";
|
|
459
513
|
}, {
|
|
460
|
-
readonly inputs: readonly [
|
|
461
|
-
|
|
462
|
-
readonly type: "address";
|
|
463
|
-
}];
|
|
464
|
-
readonly name: "setUserWalletTemplate";
|
|
514
|
+
readonly inputs: readonly [];
|
|
515
|
+
readonly name: "createAgent";
|
|
465
516
|
readonly outputs: readonly [{
|
|
466
517
|
readonly name: "";
|
|
467
|
-
readonly type: "
|
|
518
|
+
readonly type: "address";
|
|
468
519
|
}];
|
|
469
520
|
readonly stateMutability: "nonpayable";
|
|
470
521
|
readonly type: "function";
|
|
471
522
|
}, {
|
|
472
523
|
readonly inputs: readonly [{
|
|
473
|
-
readonly name: "
|
|
524
|
+
readonly name: "_owner";
|
|
474
525
|
readonly type: "address";
|
|
475
526
|
}];
|
|
476
|
-
readonly name: "
|
|
527
|
+
readonly name: "createAgent";
|
|
477
528
|
readonly outputs: readonly [{
|
|
478
529
|
readonly name: "";
|
|
479
|
-
readonly type: "
|
|
530
|
+
readonly type: "address";
|
|
480
531
|
}];
|
|
481
|
-
readonly stateMutability: "
|
|
532
|
+
readonly stateMutability: "nonpayable";
|
|
482
533
|
readonly type: "function";
|
|
483
534
|
}, {
|
|
484
535
|
readonly inputs: readonly [{
|
|
485
|
-
readonly name: "
|
|
536
|
+
readonly name: "_newAddr";
|
|
486
537
|
readonly type: "address";
|
|
487
538
|
}];
|
|
488
|
-
readonly name: "
|
|
539
|
+
readonly name: "initiateUserWalletTemplateUpdate";
|
|
489
540
|
readonly outputs: readonly [{
|
|
490
541
|
readonly name: "";
|
|
491
542
|
readonly type: "bool";
|
|
@@ -493,71 +544,73 @@ export declare const abi: readonly [{
|
|
|
493
544
|
readonly stateMutability: "nonpayable";
|
|
494
545
|
readonly type: "function";
|
|
495
546
|
}, {
|
|
496
|
-
readonly inputs: readonly [
|
|
497
|
-
|
|
498
|
-
readonly type: "address";
|
|
499
|
-
}];
|
|
500
|
-
readonly name: "isValidAgentSetup";
|
|
547
|
+
readonly inputs: readonly [];
|
|
548
|
+
readonly name: "confirmUserWalletTemplateUpdate";
|
|
501
549
|
readonly outputs: readonly [{
|
|
502
550
|
readonly name: "";
|
|
503
551
|
readonly type: "bool";
|
|
504
552
|
}];
|
|
505
|
-
readonly stateMutability: "
|
|
553
|
+
readonly stateMutability: "nonpayable";
|
|
506
554
|
readonly type: "function";
|
|
507
555
|
}, {
|
|
508
556
|
readonly inputs: readonly [];
|
|
509
|
-
readonly name: "
|
|
557
|
+
readonly name: "cancelUserWalletTemplateUpdate";
|
|
510
558
|
readonly outputs: readonly [{
|
|
511
559
|
readonly name: "";
|
|
512
|
-
readonly type: "
|
|
560
|
+
readonly type: "bool";
|
|
513
561
|
}];
|
|
514
562
|
readonly stateMutability: "nonpayable";
|
|
515
563
|
readonly type: "function";
|
|
516
564
|
}, {
|
|
517
|
-
readonly inputs: readonly [
|
|
518
|
-
|
|
519
|
-
readonly type: "address";
|
|
520
|
-
}];
|
|
521
|
-
readonly name: "createAgent";
|
|
565
|
+
readonly inputs: readonly [];
|
|
566
|
+
readonly name: "getUserWalletTemplateAddr";
|
|
522
567
|
readonly outputs: readonly [{
|
|
523
568
|
readonly name: "";
|
|
524
569
|
readonly type: "address";
|
|
525
570
|
}];
|
|
526
|
-
readonly stateMutability: "
|
|
571
|
+
readonly stateMutability: "view";
|
|
527
572
|
readonly type: "function";
|
|
528
573
|
}, {
|
|
529
|
-
readonly inputs: readonly [
|
|
530
|
-
|
|
531
|
-
readonly type: "address";
|
|
532
|
-
}];
|
|
533
|
-
readonly name: "isValidAgentTemplate";
|
|
574
|
+
readonly inputs: readonly [];
|
|
575
|
+
readonly name: "getUserWalletTemplateInfo";
|
|
534
576
|
readonly outputs: readonly [{
|
|
577
|
+
readonly components: readonly [{
|
|
578
|
+
readonly name: "addr";
|
|
579
|
+
readonly type: "address";
|
|
580
|
+
}, {
|
|
581
|
+
readonly name: "version";
|
|
582
|
+
readonly type: "uint256";
|
|
583
|
+
}, {
|
|
584
|
+
readonly name: "lastModified";
|
|
585
|
+
readonly type: "uint256";
|
|
586
|
+
}];
|
|
535
587
|
readonly name: "";
|
|
536
|
-
readonly type: "
|
|
588
|
+
readonly type: "tuple";
|
|
537
589
|
}];
|
|
538
590
|
readonly stateMutability: "view";
|
|
539
591
|
readonly type: "function";
|
|
540
592
|
}, {
|
|
541
|
-
readonly inputs: readonly [
|
|
542
|
-
|
|
543
|
-
readonly type: "address";
|
|
544
|
-
}];
|
|
545
|
-
readonly name: "setAgentTemplate";
|
|
593
|
+
readonly inputs: readonly [];
|
|
594
|
+
readonly name: "getPendingUserWalletTemplateUpdate";
|
|
546
595
|
readonly outputs: readonly [{
|
|
596
|
+
readonly components: readonly [{
|
|
597
|
+
readonly name: "newAddr";
|
|
598
|
+
readonly type: "address";
|
|
599
|
+
}, {
|
|
600
|
+
readonly name: "initiatedBlock";
|
|
601
|
+
readonly type: "uint256";
|
|
602
|
+
}, {
|
|
603
|
+
readonly name: "confirmBlock";
|
|
604
|
+
readonly type: "uint256";
|
|
605
|
+
}];
|
|
547
606
|
readonly name: "";
|
|
548
|
-
readonly type: "
|
|
607
|
+
readonly type: "tuple";
|
|
549
608
|
}];
|
|
550
|
-
readonly stateMutability: "
|
|
609
|
+
readonly stateMutability: "view";
|
|
551
610
|
readonly type: "function";
|
|
552
611
|
}, {
|
|
553
|
-
readonly inputs: readonly [
|
|
554
|
-
|
|
555
|
-
readonly type: "address";
|
|
556
|
-
}, {
|
|
557
|
-
readonly name: "_amount";
|
|
558
|
-
readonly type: "uint256";
|
|
559
|
-
}];
|
|
560
|
-
readonly name: "isValidTrialFundsData";
|
|
612
|
+
readonly inputs: readonly [];
|
|
613
|
+
readonly name: "hasPendingUserWalletTemplateUpdate";
|
|
561
614
|
readonly outputs: readonly [{
|
|
562
615
|
readonly name: "";
|
|
563
616
|
readonly type: "bool";
|
|
@@ -566,13 +619,10 @@ export declare const abi: readonly [{
|
|
|
566
619
|
readonly type: "function";
|
|
567
620
|
}, {
|
|
568
621
|
readonly inputs: readonly [{
|
|
569
|
-
readonly name: "
|
|
622
|
+
readonly name: "_newAddr";
|
|
570
623
|
readonly type: "address";
|
|
571
|
-
}, {
|
|
572
|
-
readonly name: "_amount";
|
|
573
|
-
readonly type: "uint256";
|
|
574
624
|
}];
|
|
575
|
-
readonly name: "
|
|
625
|
+
readonly name: "initiateUserWalletConfigTemplateUpdate";
|
|
576
626
|
readonly outputs: readonly [{
|
|
577
627
|
readonly name: "";
|
|
578
628
|
readonly type: "bool";
|
|
@@ -580,11 +630,8 @@ export declare const abi: readonly [{
|
|
|
580
630
|
readonly stateMutability: "nonpayable";
|
|
581
631
|
readonly type: "function";
|
|
582
632
|
}, {
|
|
583
|
-
readonly inputs: readonly [
|
|
584
|
-
|
|
585
|
-
readonly type: "address";
|
|
586
|
-
}];
|
|
587
|
-
readonly name: "recoverTrialFunds";
|
|
633
|
+
readonly inputs: readonly [];
|
|
634
|
+
readonly name: "confirmUserWalletConfigTemplateUpdate";
|
|
588
635
|
readonly outputs: readonly [{
|
|
589
636
|
readonly name: "";
|
|
590
637
|
readonly type: "bool";
|
|
@@ -592,21 +639,8 @@ export declare const abi: readonly [{
|
|
|
592
639
|
readonly stateMutability: "nonpayable";
|
|
593
640
|
readonly type: "function";
|
|
594
641
|
}, {
|
|
595
|
-
readonly inputs: readonly [
|
|
596
|
-
|
|
597
|
-
readonly type: "address";
|
|
598
|
-
}, {
|
|
599
|
-
readonly components: readonly [{
|
|
600
|
-
readonly name: "legoId";
|
|
601
|
-
readonly type: "uint256";
|
|
602
|
-
}, {
|
|
603
|
-
readonly name: "vaultToken";
|
|
604
|
-
readonly type: "address";
|
|
605
|
-
}];
|
|
606
|
-
readonly name: "_opportunities";
|
|
607
|
-
readonly type: "tuple[]";
|
|
608
|
-
}];
|
|
609
|
-
readonly name: "recoverTrialFunds";
|
|
642
|
+
readonly inputs: readonly [];
|
|
643
|
+
readonly name: "cancelUserWalletConfigTemplateUpdate";
|
|
610
644
|
readonly outputs: readonly [{
|
|
611
645
|
readonly name: "";
|
|
612
646
|
readonly type: "bool";
|
|
@@ -614,41 +648,154 @@ export declare const abi: readonly [{
|
|
|
614
648
|
readonly stateMutability: "nonpayable";
|
|
615
649
|
readonly type: "function";
|
|
616
650
|
}, {
|
|
617
|
-
readonly inputs: readonly [
|
|
618
|
-
|
|
619
|
-
readonly name: "wallet";
|
|
620
|
-
readonly type: "address";
|
|
621
|
-
}, {
|
|
622
|
-
readonly components: readonly [{
|
|
623
|
-
readonly name: "legoId";
|
|
624
|
-
readonly type: "uint256";
|
|
625
|
-
}, {
|
|
626
|
-
readonly name: "vaultToken";
|
|
627
|
-
readonly type: "address";
|
|
628
|
-
}];
|
|
629
|
-
readonly name: "opportunities";
|
|
630
|
-
readonly type: "tuple[]";
|
|
631
|
-
}];
|
|
632
|
-
readonly name: "_recoveries";
|
|
633
|
-
readonly type: "tuple[]";
|
|
634
|
-
}];
|
|
635
|
-
readonly name: "recoverTrialFundsMany";
|
|
651
|
+
readonly inputs: readonly [];
|
|
652
|
+
readonly name: "getUserWalletConfigTemplateAddr";
|
|
636
653
|
readonly outputs: readonly [{
|
|
637
654
|
readonly name: "";
|
|
638
|
-
readonly type: "
|
|
655
|
+
readonly type: "address";
|
|
639
656
|
}];
|
|
640
|
-
readonly stateMutability: "
|
|
657
|
+
readonly stateMutability: "view";
|
|
641
658
|
readonly type: "function";
|
|
642
659
|
}, {
|
|
643
|
-
readonly inputs: readonly [
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
660
|
+
readonly inputs: readonly [];
|
|
661
|
+
readonly name: "getUserWalletConfigTemplateInfo";
|
|
662
|
+
readonly outputs: readonly [{
|
|
663
|
+
readonly components: readonly [{
|
|
664
|
+
readonly name: "addr";
|
|
665
|
+
readonly type: "address";
|
|
666
|
+
}, {
|
|
667
|
+
readonly name: "version";
|
|
668
|
+
readonly type: "uint256";
|
|
669
|
+
}, {
|
|
670
|
+
readonly name: "lastModified";
|
|
671
|
+
readonly type: "uint256";
|
|
672
|
+
}];
|
|
673
|
+
readonly name: "";
|
|
674
|
+
readonly type: "tuple";
|
|
675
|
+
}];
|
|
676
|
+
readonly stateMutability: "view";
|
|
677
|
+
readonly type: "function";
|
|
678
|
+
}, {
|
|
679
|
+
readonly inputs: readonly [];
|
|
680
|
+
readonly name: "getPendingUserWalletConfigTemplateUpdate";
|
|
681
|
+
readonly outputs: readonly [{
|
|
682
|
+
readonly components: readonly [{
|
|
683
|
+
readonly name: "newAddr";
|
|
684
|
+
readonly type: "address";
|
|
685
|
+
}, {
|
|
686
|
+
readonly name: "initiatedBlock";
|
|
687
|
+
readonly type: "uint256";
|
|
688
|
+
}, {
|
|
689
|
+
readonly name: "confirmBlock";
|
|
690
|
+
readonly type: "uint256";
|
|
691
|
+
}];
|
|
692
|
+
readonly name: "";
|
|
693
|
+
readonly type: "tuple";
|
|
694
|
+
}];
|
|
695
|
+
readonly stateMutability: "view";
|
|
696
|
+
readonly type: "function";
|
|
697
|
+
}, {
|
|
698
|
+
readonly inputs: readonly [];
|
|
699
|
+
readonly name: "hasPendingUserWalletConfigTemplateUpdate";
|
|
700
|
+
readonly outputs: readonly [{
|
|
701
|
+
readonly name: "";
|
|
702
|
+
readonly type: "bool";
|
|
703
|
+
}];
|
|
704
|
+
readonly stateMutability: "view";
|
|
705
|
+
readonly type: "function";
|
|
706
|
+
}, {
|
|
707
|
+
readonly inputs: readonly [{
|
|
708
|
+
readonly name: "_newAddr";
|
|
709
|
+
readonly type: "address";
|
|
710
|
+
}];
|
|
711
|
+
readonly name: "initiateAgentTemplateUpdate";
|
|
712
|
+
readonly outputs: readonly [{
|
|
713
|
+
readonly name: "";
|
|
714
|
+
readonly type: "bool";
|
|
715
|
+
}];
|
|
716
|
+
readonly stateMutability: "nonpayable";
|
|
717
|
+
readonly type: "function";
|
|
718
|
+
}, {
|
|
719
|
+
readonly inputs: readonly [];
|
|
720
|
+
readonly name: "confirmAgentTemplateUpdate";
|
|
721
|
+
readonly outputs: readonly [{
|
|
722
|
+
readonly name: "";
|
|
723
|
+
readonly type: "bool";
|
|
724
|
+
}];
|
|
725
|
+
readonly stateMutability: "nonpayable";
|
|
726
|
+
readonly type: "function";
|
|
727
|
+
}, {
|
|
728
|
+
readonly inputs: readonly [];
|
|
729
|
+
readonly name: "cancelAgentTemplateUpdate";
|
|
730
|
+
readonly outputs: readonly [{
|
|
731
|
+
readonly name: "";
|
|
732
|
+
readonly type: "bool";
|
|
733
|
+
}];
|
|
734
|
+
readonly stateMutability: "nonpayable";
|
|
735
|
+
readonly type: "function";
|
|
736
|
+
}, {
|
|
737
|
+
readonly inputs: readonly [];
|
|
738
|
+
readonly name: "getAgentTemplateAddr";
|
|
739
|
+
readonly outputs: readonly [{
|
|
740
|
+
readonly name: "";
|
|
741
|
+
readonly type: "address";
|
|
742
|
+
}];
|
|
743
|
+
readonly stateMutability: "view";
|
|
744
|
+
readonly type: "function";
|
|
745
|
+
}, {
|
|
746
|
+
readonly inputs: readonly [];
|
|
747
|
+
readonly name: "getAgentTemplateInfo";
|
|
748
|
+
readonly outputs: readonly [{
|
|
749
|
+
readonly components: readonly [{
|
|
750
|
+
readonly name: "addr";
|
|
751
|
+
readonly type: "address";
|
|
752
|
+
}, {
|
|
753
|
+
readonly name: "version";
|
|
754
|
+
readonly type: "uint256";
|
|
755
|
+
}, {
|
|
756
|
+
readonly name: "lastModified";
|
|
757
|
+
readonly type: "uint256";
|
|
758
|
+
}];
|
|
759
|
+
readonly name: "";
|
|
760
|
+
readonly type: "tuple";
|
|
761
|
+
}];
|
|
762
|
+
readonly stateMutability: "view";
|
|
763
|
+
readonly type: "function";
|
|
764
|
+
}, {
|
|
765
|
+
readonly inputs: readonly [];
|
|
766
|
+
readonly name: "getPendingAgentTemplateUpdate";
|
|
767
|
+
readonly outputs: readonly [{
|
|
768
|
+
readonly components: readonly [{
|
|
769
|
+
readonly name: "newAddr";
|
|
770
|
+
readonly type: "address";
|
|
771
|
+
}, {
|
|
772
|
+
readonly name: "initiatedBlock";
|
|
773
|
+
readonly type: "uint256";
|
|
774
|
+
}, {
|
|
775
|
+
readonly name: "confirmBlock";
|
|
776
|
+
readonly type: "uint256";
|
|
777
|
+
}];
|
|
778
|
+
readonly name: "";
|
|
779
|
+
readonly type: "tuple";
|
|
780
|
+
}];
|
|
781
|
+
readonly stateMutability: "view";
|
|
782
|
+
readonly type: "function";
|
|
783
|
+
}, {
|
|
784
|
+
readonly inputs: readonly [];
|
|
785
|
+
readonly name: "hasPendingAgentTemplateUpdate";
|
|
648
786
|
readonly outputs: readonly [{
|
|
649
787
|
readonly name: "";
|
|
650
788
|
readonly type: "bool";
|
|
651
789
|
}];
|
|
790
|
+
readonly stateMutability: "view";
|
|
791
|
+
readonly type: "function";
|
|
792
|
+
}, {
|
|
793
|
+
readonly inputs: readonly [{
|
|
794
|
+
readonly name: "_numBlocks";
|
|
795
|
+
readonly type: "uint256";
|
|
796
|
+
}];
|
|
797
|
+
readonly name: "setAddressChangeDelay";
|
|
798
|
+
readonly outputs: readonly [];
|
|
652
799
|
readonly stateMutability: "nonpayable";
|
|
653
800
|
readonly type: "function";
|
|
654
801
|
}, {
|
|
@@ -737,40 +884,40 @@ export declare const abi: readonly [{
|
|
|
737
884
|
readonly type: "function";
|
|
738
885
|
}, {
|
|
739
886
|
readonly inputs: readonly [{
|
|
740
|
-
readonly name: "
|
|
741
|
-
readonly type: "address";
|
|
742
|
-
}, {
|
|
743
|
-
readonly name: "_recipient";
|
|
887
|
+
readonly name: "_addr";
|
|
744
888
|
readonly type: "address";
|
|
745
889
|
}];
|
|
746
|
-
readonly name: "
|
|
890
|
+
readonly name: "canCancelCriticalAction";
|
|
747
891
|
readonly outputs: readonly [{
|
|
748
892
|
readonly name: "";
|
|
749
893
|
readonly type: "bool";
|
|
750
894
|
}];
|
|
751
|
-
readonly stateMutability: "
|
|
895
|
+
readonly stateMutability: "view";
|
|
752
896
|
readonly type: "function";
|
|
753
897
|
}, {
|
|
754
898
|
readonly inputs: readonly [{
|
|
755
899
|
readonly name: "_addr";
|
|
756
900
|
readonly type: "address";
|
|
901
|
+
}, {
|
|
902
|
+
readonly name: "_canCancel";
|
|
903
|
+
readonly type: "bool";
|
|
757
904
|
}];
|
|
758
|
-
readonly name: "
|
|
905
|
+
readonly name: "setCanCriticalCancel";
|
|
759
906
|
readonly outputs: readonly [{
|
|
760
907
|
readonly name: "";
|
|
761
908
|
readonly type: "bool";
|
|
762
909
|
}];
|
|
763
|
-
readonly stateMutability: "
|
|
910
|
+
readonly stateMutability: "nonpayable";
|
|
764
911
|
readonly type: "function";
|
|
765
912
|
}, {
|
|
766
913
|
readonly inputs: readonly [{
|
|
767
|
-
readonly name: "
|
|
914
|
+
readonly name: "_asset";
|
|
768
915
|
readonly type: "address";
|
|
769
916
|
}, {
|
|
770
|
-
readonly name: "
|
|
771
|
-
readonly type: "
|
|
917
|
+
readonly name: "_amount";
|
|
918
|
+
readonly type: "uint256";
|
|
772
919
|
}];
|
|
773
|
-
readonly name: "
|
|
920
|
+
readonly name: "setTrialFundsData";
|
|
774
921
|
readonly outputs: readonly [{
|
|
775
922
|
readonly name: "";
|
|
776
923
|
readonly type: "bool";
|
|
@@ -779,32 +926,105 @@ export declare const abi: readonly [{
|
|
|
779
926
|
readonly type: "function";
|
|
780
927
|
}, {
|
|
781
928
|
readonly inputs: readonly [{
|
|
782
|
-
readonly name: "
|
|
929
|
+
readonly name: "_wallets";
|
|
930
|
+
readonly type: "address[]";
|
|
931
|
+
}];
|
|
932
|
+
readonly name: "clawBackTrialFunds";
|
|
933
|
+
readonly outputs: readonly [{
|
|
934
|
+
readonly name: "";
|
|
783
935
|
readonly type: "bool";
|
|
784
936
|
}];
|
|
785
|
-
readonly name: "activate";
|
|
786
|
-
readonly outputs: readonly [];
|
|
787
937
|
readonly stateMutability: "nonpayable";
|
|
788
938
|
readonly type: "function";
|
|
789
939
|
}, {
|
|
790
|
-
readonly inputs: readonly [
|
|
791
|
-
readonly name: "trialFundsData";
|
|
792
|
-
readonly outputs: readonly [{
|
|
940
|
+
readonly inputs: readonly [{
|
|
793
941
|
readonly components: readonly [{
|
|
794
|
-
readonly name: "
|
|
942
|
+
readonly name: "wallet";
|
|
795
943
|
readonly type: "address";
|
|
796
944
|
}, {
|
|
797
|
-
readonly
|
|
798
|
-
|
|
945
|
+
readonly components: readonly [{
|
|
946
|
+
readonly name: "legoId";
|
|
947
|
+
readonly type: "uint256";
|
|
948
|
+
}, {
|
|
949
|
+
readonly name: "vaultToken";
|
|
950
|
+
readonly type: "address";
|
|
951
|
+
}];
|
|
952
|
+
readonly name: "opportunities";
|
|
953
|
+
readonly type: "tuple[]";
|
|
799
954
|
}];
|
|
955
|
+
readonly name: "_recoveries";
|
|
956
|
+
readonly type: "tuple[]";
|
|
957
|
+
}];
|
|
958
|
+
readonly name: "clawBackTrialFundsLegacy";
|
|
959
|
+
readonly outputs: readonly [{
|
|
800
960
|
readonly name: "";
|
|
801
|
-
readonly type: "
|
|
961
|
+
readonly type: "bool";
|
|
802
962
|
}];
|
|
803
|
-
readonly stateMutability: "
|
|
963
|
+
readonly stateMutability: "nonpayable";
|
|
964
|
+
readonly type: "function";
|
|
965
|
+
}, {
|
|
966
|
+
readonly inputs: readonly [{
|
|
967
|
+
readonly name: "_ambassador";
|
|
968
|
+
readonly type: "address";
|
|
969
|
+
}, {
|
|
970
|
+
readonly name: "_asset";
|
|
971
|
+
readonly type: "address";
|
|
972
|
+
}, {
|
|
973
|
+
readonly name: "_amount";
|
|
974
|
+
readonly type: "uint256";
|
|
975
|
+
}];
|
|
976
|
+
readonly name: "payAmbassadorYieldBonus";
|
|
977
|
+
readonly outputs: readonly [{
|
|
978
|
+
readonly name: "";
|
|
979
|
+
readonly type: "bool";
|
|
980
|
+
}];
|
|
981
|
+
readonly stateMutability: "nonpayable";
|
|
982
|
+
readonly type: "function";
|
|
983
|
+
}, {
|
|
984
|
+
readonly inputs: readonly [{
|
|
985
|
+
readonly name: "_bonusRatio";
|
|
986
|
+
readonly type: "uint256";
|
|
987
|
+
}];
|
|
988
|
+
readonly name: "setAmbassadorBonusRatio";
|
|
989
|
+
readonly outputs: readonly [{
|
|
990
|
+
readonly name: "";
|
|
991
|
+
readonly type: "bool";
|
|
992
|
+
}];
|
|
993
|
+
readonly stateMutability: "nonpayable";
|
|
994
|
+
readonly type: "function";
|
|
995
|
+
}, {
|
|
996
|
+
readonly inputs: readonly [{
|
|
997
|
+
readonly name: "_newAddr";
|
|
998
|
+
readonly type: "address";
|
|
999
|
+
}];
|
|
1000
|
+
readonly name: "initiateDefaultAgentUpdate";
|
|
1001
|
+
readonly outputs: readonly [{
|
|
1002
|
+
readonly name: "";
|
|
1003
|
+
readonly type: "bool";
|
|
1004
|
+
}];
|
|
1005
|
+
readonly stateMutability: "nonpayable";
|
|
1006
|
+
readonly type: "function";
|
|
1007
|
+
}, {
|
|
1008
|
+
readonly inputs: readonly [];
|
|
1009
|
+
readonly name: "confirmDefaultAgentUpdate";
|
|
1010
|
+
readonly outputs: readonly [{
|
|
1011
|
+
readonly name: "";
|
|
1012
|
+
readonly type: "bool";
|
|
1013
|
+
}];
|
|
1014
|
+
readonly stateMutability: "nonpayable";
|
|
804
1015
|
readonly type: "function";
|
|
805
1016
|
}, {
|
|
806
1017
|
readonly inputs: readonly [];
|
|
807
|
-
readonly name: "
|
|
1018
|
+
readonly name: "cancelDefaultAgentUpdate";
|
|
1019
|
+
readonly outputs: readonly [{
|
|
1020
|
+
readonly name: "";
|
|
1021
|
+
readonly type: "bool";
|
|
1022
|
+
}];
|
|
1023
|
+
readonly stateMutability: "nonpayable";
|
|
1024
|
+
readonly type: "function";
|
|
1025
|
+
}, {
|
|
1026
|
+
readonly inputs: readonly [];
|
|
1027
|
+
readonly name: "getDefaultAgentAddr";
|
|
808
1028
|
readonly outputs: readonly [{
|
|
809
1029
|
readonly name: "";
|
|
810
1030
|
readonly type: "address";
|
|
@@ -813,7 +1033,7 @@ export declare const abi: readonly [{
|
|
|
813
1033
|
readonly type: "function";
|
|
814
1034
|
}, {
|
|
815
1035
|
readonly inputs: readonly [];
|
|
816
|
-
readonly name: "
|
|
1036
|
+
readonly name: "getDefaultAgentInfo";
|
|
817
1037
|
readonly outputs: readonly [{
|
|
818
1038
|
readonly components: readonly [{
|
|
819
1039
|
readonly name: "addr";
|
|
@@ -832,16 +1052,16 @@ export declare const abi: readonly [{
|
|
|
832
1052
|
readonly type: "function";
|
|
833
1053
|
}, {
|
|
834
1054
|
readonly inputs: readonly [];
|
|
835
|
-
readonly name: "
|
|
1055
|
+
readonly name: "getPendingDefaultAgentUpdate";
|
|
836
1056
|
readonly outputs: readonly [{
|
|
837
1057
|
readonly components: readonly [{
|
|
838
|
-
readonly name: "
|
|
1058
|
+
readonly name: "newAddr";
|
|
839
1059
|
readonly type: "address";
|
|
840
1060
|
}, {
|
|
841
|
-
readonly name: "
|
|
1061
|
+
readonly name: "initiatedBlock";
|
|
842
1062
|
readonly type: "uint256";
|
|
843
1063
|
}, {
|
|
844
|
-
readonly name: "
|
|
1064
|
+
readonly name: "confirmBlock";
|
|
845
1065
|
readonly type: "uint256";
|
|
846
1066
|
}];
|
|
847
1067
|
readonly name: "";
|
|
@@ -849,12 +1069,45 @@ export declare const abi: readonly [{
|
|
|
849
1069
|
}];
|
|
850
1070
|
readonly stateMutability: "view";
|
|
851
1071
|
readonly type: "function";
|
|
1072
|
+
}, {
|
|
1073
|
+
readonly inputs: readonly [];
|
|
1074
|
+
readonly name: "hasPendingDefaultAgentUpdate";
|
|
1075
|
+
readonly outputs: readonly [{
|
|
1076
|
+
readonly name: "";
|
|
1077
|
+
readonly type: "bool";
|
|
1078
|
+
}];
|
|
1079
|
+
readonly stateMutability: "view";
|
|
1080
|
+
readonly type: "function";
|
|
1081
|
+
}, {
|
|
1082
|
+
readonly inputs: readonly [{
|
|
1083
|
+
readonly name: "_asset";
|
|
1084
|
+
readonly type: "address";
|
|
1085
|
+
}, {
|
|
1086
|
+
readonly name: "_recipient";
|
|
1087
|
+
readonly type: "address";
|
|
1088
|
+
}];
|
|
1089
|
+
readonly name: "recoverFundsFromAgentFactory";
|
|
1090
|
+
readonly outputs: readonly [{
|
|
1091
|
+
readonly name: "";
|
|
1092
|
+
readonly type: "bool";
|
|
1093
|
+
}];
|
|
1094
|
+
readonly stateMutability: "nonpayable";
|
|
1095
|
+
readonly type: "function";
|
|
1096
|
+
}, {
|
|
1097
|
+
readonly inputs: readonly [{
|
|
1098
|
+
readonly name: "_shouldActivate";
|
|
1099
|
+
readonly type: "bool";
|
|
1100
|
+
}];
|
|
1101
|
+
readonly name: "activate";
|
|
1102
|
+
readonly outputs: readonly [];
|
|
1103
|
+
readonly stateMutability: "nonpayable";
|
|
1104
|
+
readonly type: "function";
|
|
852
1105
|
}, {
|
|
853
1106
|
readonly inputs: readonly [{
|
|
854
1107
|
readonly name: "arg0";
|
|
855
1108
|
readonly type: "address";
|
|
856
1109
|
}];
|
|
857
|
-
readonly name: "
|
|
1110
|
+
readonly name: "isUserWalletLocal";
|
|
858
1111
|
readonly outputs: readonly [{
|
|
859
1112
|
readonly name: "";
|
|
860
1113
|
readonly type: "bool";
|
|
@@ -870,9 +1123,33 @@ export declare const abi: readonly [{
|
|
|
870
1123
|
}];
|
|
871
1124
|
readonly stateMutability: "view";
|
|
872
1125
|
readonly type: "function";
|
|
1126
|
+
}, {
|
|
1127
|
+
readonly inputs: readonly [{
|
|
1128
|
+
readonly name: "arg0";
|
|
1129
|
+
readonly type: "address";
|
|
1130
|
+
}];
|
|
1131
|
+
readonly name: "isAgentLocal";
|
|
1132
|
+
readonly outputs: readonly [{
|
|
1133
|
+
readonly name: "";
|
|
1134
|
+
readonly type: "bool";
|
|
1135
|
+
}];
|
|
1136
|
+
readonly stateMutability: "view";
|
|
1137
|
+
readonly type: "function";
|
|
873
1138
|
}, {
|
|
874
1139
|
readonly inputs: readonly [];
|
|
875
|
-
readonly name: "
|
|
1140
|
+
readonly name: "numAgents";
|
|
1141
|
+
readonly outputs: readonly [{
|
|
1142
|
+
readonly name: "";
|
|
1143
|
+
readonly type: "uint256";
|
|
1144
|
+
}];
|
|
1145
|
+
readonly stateMutability: "view";
|
|
1146
|
+
readonly type: "function";
|
|
1147
|
+
}, {
|
|
1148
|
+
readonly inputs: readonly [{
|
|
1149
|
+
readonly name: "arg0";
|
|
1150
|
+
readonly type: "uint256";
|
|
1151
|
+
}];
|
|
1152
|
+
readonly name: "addressInfo";
|
|
876
1153
|
readonly outputs: readonly [{
|
|
877
1154
|
readonly components: readonly [{
|
|
878
1155
|
readonly name: "addr";
|
|
@@ -892,18 +1169,28 @@ export declare const abi: readonly [{
|
|
|
892
1169
|
}, {
|
|
893
1170
|
readonly inputs: readonly [{
|
|
894
1171
|
readonly name: "arg0";
|
|
895
|
-
readonly type: "
|
|
1172
|
+
readonly type: "uint256";
|
|
896
1173
|
}];
|
|
897
|
-
readonly name: "
|
|
1174
|
+
readonly name: "pendingAddress";
|
|
898
1175
|
readonly outputs: readonly [{
|
|
1176
|
+
readonly components: readonly [{
|
|
1177
|
+
readonly name: "newAddr";
|
|
1178
|
+
readonly type: "address";
|
|
1179
|
+
}, {
|
|
1180
|
+
readonly name: "initiatedBlock";
|
|
1181
|
+
readonly type: "uint256";
|
|
1182
|
+
}, {
|
|
1183
|
+
readonly name: "confirmBlock";
|
|
1184
|
+
readonly type: "uint256";
|
|
1185
|
+
}];
|
|
899
1186
|
readonly name: "";
|
|
900
|
-
readonly type: "
|
|
1187
|
+
readonly type: "tuple";
|
|
901
1188
|
}];
|
|
902
1189
|
readonly stateMutability: "view";
|
|
903
1190
|
readonly type: "function";
|
|
904
1191
|
}, {
|
|
905
1192
|
readonly inputs: readonly [];
|
|
906
|
-
readonly name: "
|
|
1193
|
+
readonly name: "addressChangeDelay";
|
|
907
1194
|
readonly outputs: readonly [{
|
|
908
1195
|
readonly name: "";
|
|
909
1196
|
readonly type: "uint256";
|
|
@@ -911,14 +1198,27 @@ export declare const abi: readonly [{
|
|
|
911
1198
|
readonly stateMutability: "view";
|
|
912
1199
|
readonly type: "function";
|
|
913
1200
|
}, {
|
|
914
|
-
readonly inputs: readonly [
|
|
915
|
-
|
|
916
|
-
|
|
1201
|
+
readonly inputs: readonly [];
|
|
1202
|
+
readonly name: "ambassadorBonusRatio";
|
|
1203
|
+
readonly outputs: readonly [{
|
|
1204
|
+
readonly name: "";
|
|
1205
|
+
readonly type: "uint256";
|
|
917
1206
|
}];
|
|
918
|
-
readonly
|
|
1207
|
+
readonly stateMutability: "view";
|
|
1208
|
+
readonly type: "function";
|
|
1209
|
+
}, {
|
|
1210
|
+
readonly inputs: readonly [];
|
|
1211
|
+
readonly name: "trialFundsData";
|
|
919
1212
|
readonly outputs: readonly [{
|
|
1213
|
+
readonly components: readonly [{
|
|
1214
|
+
readonly name: "asset";
|
|
1215
|
+
readonly type: "address";
|
|
1216
|
+
}, {
|
|
1217
|
+
readonly name: "amount";
|
|
1218
|
+
readonly type: "uint256";
|
|
1219
|
+
}];
|
|
920
1220
|
readonly name: "";
|
|
921
|
-
readonly type: "
|
|
1221
|
+
readonly type: "tuple";
|
|
922
1222
|
}];
|
|
923
1223
|
readonly stateMutability: "view";
|
|
924
1224
|
readonly type: "function";
|
|
@@ -961,6 +1261,18 @@ export declare const abi: readonly [{
|
|
|
961
1261
|
}];
|
|
962
1262
|
readonly stateMutability: "view";
|
|
963
1263
|
readonly type: "function";
|
|
1264
|
+
}, {
|
|
1265
|
+
readonly inputs: readonly [{
|
|
1266
|
+
readonly name: "arg0";
|
|
1267
|
+
readonly type: "address";
|
|
1268
|
+
}];
|
|
1269
|
+
readonly name: "agentBlacklist";
|
|
1270
|
+
readonly outputs: readonly [{
|
|
1271
|
+
readonly name: "";
|
|
1272
|
+
readonly type: "bool";
|
|
1273
|
+
}];
|
|
1274
|
+
readonly stateMutability: "view";
|
|
1275
|
+
readonly type: "function";
|
|
964
1276
|
}, {
|
|
965
1277
|
readonly inputs: readonly [{
|
|
966
1278
|
readonly name: "arg0";
|
|
@@ -1018,6 +1330,24 @@ export declare const abi: readonly [{
|
|
|
1018
1330
|
}];
|
|
1019
1331
|
readonly stateMutability: "view";
|
|
1020
1332
|
readonly type: "function";
|
|
1333
|
+
}, {
|
|
1334
|
+
readonly inputs: readonly [];
|
|
1335
|
+
readonly name: "MIN_ADDRESS_CHANGE_DELAY";
|
|
1336
|
+
readonly outputs: readonly [{
|
|
1337
|
+
readonly name: "";
|
|
1338
|
+
readonly type: "uint256";
|
|
1339
|
+
}];
|
|
1340
|
+
readonly stateMutability: "view";
|
|
1341
|
+
readonly type: "function";
|
|
1342
|
+
}, {
|
|
1343
|
+
readonly inputs: readonly [];
|
|
1344
|
+
readonly name: "MAX_ADDRESS_CHANGE_DELAY";
|
|
1345
|
+
readonly outputs: readonly [{
|
|
1346
|
+
readonly name: "";
|
|
1347
|
+
readonly type: "uint256";
|
|
1348
|
+
}];
|
|
1349
|
+
readonly stateMutability: "view";
|
|
1350
|
+
readonly type: "function";
|
|
1021
1351
|
}, {
|
|
1022
1352
|
readonly inputs: readonly [{
|
|
1023
1353
|
readonly name: "_addyRegistry";
|
|
@@ -1035,10 +1365,13 @@ export declare const abi: readonly [{
|
|
|
1035
1365
|
readonly name: "_agentTemplate";
|
|
1036
1366
|
readonly type: "address";
|
|
1037
1367
|
}, {
|
|
1038
|
-
readonly name: "
|
|
1368
|
+
readonly name: "_defaultAgent";
|
|
1369
|
+
readonly type: "address";
|
|
1370
|
+
}, {
|
|
1371
|
+
readonly name: "_minChangeDelay";
|
|
1039
1372
|
readonly type: "uint256";
|
|
1040
1373
|
}, {
|
|
1041
|
-
readonly name: "
|
|
1374
|
+
readonly name: "_maxChangeDelay";
|
|
1042
1375
|
readonly type: "uint256";
|
|
1043
1376
|
}];
|
|
1044
1377
|
readonly outputs: readonly [];
|
|
@@ -1059,99 +1392,148 @@ export type Contract = {
|
|
|
1059
1392
|
govChangeDelay: () => Promise<bigint>;
|
|
1060
1393
|
MIN_GOV_CHANGE_DELAY: () => Promise<bigint>;
|
|
1061
1394
|
MAX_GOV_CHANGE_DELAY: () => Promise<bigint>;
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1395
|
+
isUserWallet: (addr: `0x${string}`) => Promise<boolean>;
|
|
1396
|
+
isAgent: (addr: `0x${string}`) => Promise<boolean>;
|
|
1397
|
+
getUserWalletTemplateAddr: () => Promise<`0x${string}`>;
|
|
1398
|
+
getUserWalletTemplateInfo: () => Promise<{
|
|
1399
|
+
addr: `0x${string}`;
|
|
1400
|
+
version: bigint;
|
|
1401
|
+
lastModified: bigint;
|
|
1402
|
+
}>;
|
|
1403
|
+
getPendingUserWalletTemplateUpdate: () => Promise<{
|
|
1404
|
+
newAddr: `0x${string}`;
|
|
1405
|
+
initiatedBlock: bigint;
|
|
1406
|
+
confirmBlock: bigint;
|
|
1407
|
+
}>;
|
|
1408
|
+
hasPendingUserWalletTemplateUpdate: () => Promise<boolean>;
|
|
1409
|
+
getUserWalletConfigTemplateAddr: () => Promise<`0x${string}`>;
|
|
1410
|
+
getUserWalletConfigTemplateInfo: () => Promise<{
|
|
1411
|
+
addr: `0x${string}`;
|
|
1412
|
+
version: bigint;
|
|
1413
|
+
lastModified: bigint;
|
|
1075
1414
|
}>;
|
|
1076
|
-
|
|
1077
|
-
|
|
1415
|
+
getPendingUserWalletConfigTemplateUpdate: () => Promise<{
|
|
1416
|
+
newAddr: `0x${string}`;
|
|
1417
|
+
initiatedBlock: bigint;
|
|
1418
|
+
confirmBlock: bigint;
|
|
1419
|
+
}>;
|
|
1420
|
+
hasPendingUserWalletConfigTemplateUpdate: () => Promise<boolean>;
|
|
1421
|
+
getAgentTemplateAddr: () => Promise<`0x${string}`>;
|
|
1422
|
+
getAgentTemplateInfo: () => Promise<{
|
|
1078
1423
|
addr: `0x${string}`;
|
|
1079
1424
|
version: bigint;
|
|
1080
1425
|
lastModified: bigint;
|
|
1081
1426
|
}>;
|
|
1082
|
-
|
|
1427
|
+
getPendingAgentTemplateUpdate: () => Promise<{
|
|
1428
|
+
newAddr: `0x${string}`;
|
|
1429
|
+
initiatedBlock: bigint;
|
|
1430
|
+
confirmBlock: bigint;
|
|
1431
|
+
}>;
|
|
1432
|
+
hasPendingAgentTemplateUpdate: () => Promise<boolean>;
|
|
1433
|
+
canCancelCriticalAction: (addr: `0x${string}`) => Promise<boolean>;
|
|
1434
|
+
getDefaultAgentAddr: () => Promise<`0x${string}`>;
|
|
1435
|
+
getDefaultAgentInfo: () => Promise<{
|
|
1083
1436
|
addr: `0x${string}`;
|
|
1084
1437
|
version: bigint;
|
|
1085
1438
|
lastModified: bigint;
|
|
1086
1439
|
}>;
|
|
1087
|
-
|
|
1440
|
+
getPendingDefaultAgentUpdate: () => Promise<{
|
|
1441
|
+
newAddr: `0x${string}`;
|
|
1442
|
+
initiatedBlock: bigint;
|
|
1443
|
+
confirmBlock: bigint;
|
|
1444
|
+
}>;
|
|
1445
|
+
hasPendingDefaultAgentUpdate: () => Promise<boolean>;
|
|
1446
|
+
isUserWalletLocal: (arg0: `0x${string}`) => Promise<boolean>;
|
|
1088
1447
|
numUserWallets: () => Promise<bigint>;
|
|
1089
|
-
|
|
1448
|
+
isAgentLocal: (arg0: `0x${string}`) => Promise<boolean>;
|
|
1449
|
+
numAgents: () => Promise<bigint>;
|
|
1450
|
+
addressInfo: (arg0: bigint) => Promise<{
|
|
1090
1451
|
addr: `0x${string}`;
|
|
1091
1452
|
version: bigint;
|
|
1092
1453
|
lastModified: bigint;
|
|
1093
1454
|
}>;
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1455
|
+
pendingAddress: (arg0: bigint) => Promise<{
|
|
1456
|
+
newAddr: `0x${string}`;
|
|
1457
|
+
initiatedBlock: bigint;
|
|
1458
|
+
confirmBlock: bigint;
|
|
1459
|
+
}>;
|
|
1460
|
+
addressChangeDelay: () => Promise<bigint>;
|
|
1461
|
+
ambassadorBonusRatio: () => Promise<bigint>;
|
|
1462
|
+
trialFundsData: () => Promise<{
|
|
1463
|
+
asset: `0x${string}`;
|
|
1464
|
+
amount: bigint;
|
|
1465
|
+
}>;
|
|
1097
1466
|
numUserWalletsAllowed: () => Promise<bigint>;
|
|
1098
1467
|
numAgentsAllowed: () => Promise<bigint>;
|
|
1099
1468
|
whitelist: (arg0: `0x${string}`) => Promise<boolean>;
|
|
1100
1469
|
shouldEnforceWhitelist: () => Promise<boolean>;
|
|
1470
|
+
agentBlacklist: (arg0: `0x${string}`) => Promise<boolean>;
|
|
1101
1471
|
canCriticalCancel: (arg0: `0x${string}`) => Promise<boolean>;
|
|
1102
1472
|
isActivated: () => Promise<boolean>;
|
|
1103
1473
|
ADDY_REGISTRY: () => Promise<`0x${string}`>;
|
|
1104
1474
|
WETH_ADDR: () => Promise<`0x${string}`>;
|
|
1105
1475
|
MIN_OWNER_CHANGE_DELAY: () => Promise<bigint>;
|
|
1106
1476
|
MAX_OWNER_CHANGE_DELAY: () => Promise<bigint>;
|
|
1477
|
+
MIN_ADDRESS_CHANGE_DELAY: () => Promise<bigint>;
|
|
1478
|
+
MAX_ADDRESS_CHANGE_DELAY: () => Promise<bigint>;
|
|
1107
1479
|
};
|
|
1108
1480
|
mutations: {
|
|
1109
1481
|
changeGovernance: (newGov: `0x${string}`) => Promise<void>;
|
|
1110
1482
|
confirmGovernanceChange: () => Promise<void>;
|
|
1111
1483
|
cancelGovernanceChange: () => Promise<void>;
|
|
1112
1484
|
setGovernanceChangeDelay: (numBlocks: bigint) => Promise<void>;
|
|
1113
|
-
createUserWallet: (owner?: `0x${string}`,
|
|
1114
|
-
setUserWalletTemplate: (addr: `0x${string}`) => Promise<boolean>;
|
|
1115
|
-
setUserWalletConfigTemplate: (addr: `0x${string}`) => Promise<boolean>;
|
|
1485
|
+
createUserWallet: (owner?: `0x${string}`, ambassador?: `0x${string}`, shouldUseTrialFunds?: boolean) => Promise<`0x${string}`>;
|
|
1116
1486
|
createAgent: (owner?: `0x${string}`) => Promise<`0x${string}`>;
|
|
1117
|
-
|
|
1487
|
+
initiateUserWalletTemplateUpdate: (newAddr: `0x${string}`) => Promise<boolean>;
|
|
1488
|
+
confirmUserWalletTemplateUpdate: () => Promise<boolean>;
|
|
1489
|
+
cancelUserWalletTemplateUpdate: () => Promise<boolean>;
|
|
1490
|
+
initiateUserWalletConfigTemplateUpdate: (newAddr: `0x${string}`) => Promise<boolean>;
|
|
1491
|
+
confirmUserWalletConfigTemplateUpdate: () => Promise<boolean>;
|
|
1492
|
+
cancelUserWalletConfigTemplateUpdate: () => Promise<boolean>;
|
|
1493
|
+
initiateAgentTemplateUpdate: (newAddr: `0x${string}`) => Promise<boolean>;
|
|
1494
|
+
confirmAgentTemplateUpdate: () => Promise<boolean>;
|
|
1495
|
+
cancelAgentTemplateUpdate: () => Promise<boolean>;
|
|
1496
|
+
setAddressChangeDelay: (numBlocks: bigint) => Promise<void>;
|
|
1497
|
+
setWhitelist: (addr: `0x${string}`, shouldWhitelist: boolean) => Promise<boolean>;
|
|
1498
|
+
setShouldEnforceWhitelist: (shouldEnforce: boolean) => Promise<boolean>;
|
|
1499
|
+
setNumUserWalletsAllowed: (numAllowed?: bigint) => Promise<boolean>;
|
|
1500
|
+
setNumAgentsAllowed: (numAllowed?: bigint) => Promise<boolean>;
|
|
1501
|
+
setAgentBlacklist: (agentAddr: `0x${string}`, shouldBlacklist: boolean) => Promise<boolean>;
|
|
1502
|
+
setCanCriticalCancel: (addr: `0x${string}`, canCancel: boolean) => Promise<boolean>;
|
|
1118
1503
|
setTrialFundsData: (asset: `0x${string}`, amount: bigint) => Promise<boolean>;
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
vaultToken: `0x${string}`;
|
|
1122
|
-
}[]) => Promise<boolean>;
|
|
1123
|
-
recoverTrialFundsMany: (recoveries: {
|
|
1504
|
+
clawBackTrialFunds: (wallets: `0x${string}`[]) => Promise<boolean>;
|
|
1505
|
+
clawBackTrialFundsLegacy: (recoveries: {
|
|
1124
1506
|
wallet: `0x${string}`;
|
|
1125
1507
|
opportunities: {
|
|
1126
1508
|
legoId: bigint;
|
|
1127
1509
|
vaultToken: `0x${string}`;
|
|
1128
1510
|
}[];
|
|
1129
1511
|
}[]) => Promise<boolean>;
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
recoverFunds: (asset: `0x${string}`, recipient: `0x${string}`) => Promise<boolean>;
|
|
1137
|
-
setCanCriticalCancel: (addr: `0x${string}`, canCancel: boolean) => Promise<boolean>;
|
|
1512
|
+
payAmbassadorYieldBonus: (ambassador: `0x${string}`, asset: `0x${string}`, amount: bigint) => Promise<boolean>;
|
|
1513
|
+
setAmbassadorBonusRatio: (bonusRatio: bigint) => Promise<boolean>;
|
|
1514
|
+
initiateDefaultAgentUpdate: (newAddr: `0x${string}`) => Promise<boolean>;
|
|
1515
|
+
confirmDefaultAgentUpdate: () => Promise<boolean>;
|
|
1516
|
+
cancelDefaultAgentUpdate: () => Promise<boolean>;
|
|
1517
|
+
recoverFundsFromAgentFactory: (asset: `0x${string}`, recipient: `0x${string}`) => Promise<boolean>;
|
|
1138
1518
|
activate: (shouldActivate: boolean) => Promise<void>;
|
|
1139
1519
|
};
|
|
1140
1520
|
events: {
|
|
1141
|
-
UserWalletCreated: (mainAddr: `0x${string}`, configAddr: `0x${string}`, owner: `0x${string}`, agent: `0x${string}`, creator: `0x${string}`) => Promise<void>;
|
|
1521
|
+
UserWalletCreated: (mainAddr: `0x${string}`, configAddr: `0x${string}`, owner: `0x${string}`, agent: `0x${string}`, ambassador: `0x${string}`, creator: `0x${string}`) => Promise<void>;
|
|
1142
1522
|
AgentCreated: (agent: `0x${string}`, owner: `0x${string}`, creator: `0x${string}`) => Promise<void>;
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1523
|
+
AddressUpdateInitiated: (prevAddr: `0x${string}`, newAddr: `0x${string}`, confirmBlock: bigint, addressType: bigint) => Promise<void>;
|
|
1524
|
+
AddressUpdateConfirmed: (prevAddr: `0x${string}`, newAddr: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint, addressType: bigint) => Promise<void>;
|
|
1525
|
+
AddressUpdateCancelled: (cancelledTemplate: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint, addressType: bigint) => Promise<void>;
|
|
1526
|
+
AddressChangeDelaySet: (delayBlocks: bigint) => Promise<void>;
|
|
1147
1527
|
WhitelistSet: (addr: `0x${string}`, shouldWhitelist: boolean) => Promise<void>;
|
|
1528
|
+
ShouldEnforceWhitelistSet: (shouldEnforce: boolean) => Promise<void>;
|
|
1148
1529
|
NumUserWalletsAllowedSet: (numAllowed: bigint) => Promise<void>;
|
|
1149
1530
|
NumAgentsAllowedSet: (numAllowed: bigint) => Promise<void>;
|
|
1150
|
-
ShouldEnforceWhitelistSet: (shouldEnforce: boolean) => Promise<void>;
|
|
1151
1531
|
AgentBlacklistSet: (agentAddr: `0x${string}`, shouldBlacklist: boolean) => Promise<void>;
|
|
1152
|
-
AgentFactoryFundsRecovered: (asset: `0x${string}`, recipient: `0x${string}`, balance: bigint) => Promise<void>;
|
|
1153
|
-
RecoveryCallerSet: (caller: `0x${string}`) => Promise<void>;
|
|
1154
1532
|
CanCriticalCancelSet: (addr: `0x${string}`, canCancel: boolean) => Promise<void>;
|
|
1533
|
+
TrialFundsDataSet: (asset: `0x${string}`, amount: bigint) => Promise<void>;
|
|
1534
|
+
AmbassadorYieldBonusPaid: (user: `0x${string}`, ambassador: `0x${string}`, asset: `0x${string}`, amount: bigint, ratio: bigint) => Promise<void>;
|
|
1535
|
+
AmbassadorBonusRatioSet: (ratio: bigint) => Promise<void>;
|
|
1536
|
+
AgentFactoryFundsRecovered: (asset: `0x${string}`, recipient: `0x${string}`, balance: bigint) => Promise<void>;
|
|
1155
1537
|
AgentFactoryActivated: (isActivated: boolean) => Promise<void>;
|
|
1156
1538
|
GovChangeInitiated: (prevGov: `0x${string}`, newGov: `0x${string}`, confirmBlock: bigint) => Promise<void>;
|
|
1157
1539
|
GovChangeConfirmed: (prevGov: `0x${string}`, newGov: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
|
|
@@ -1202,56 +1584,78 @@ export type SDK = {
|
|
|
1202
1584
|
govChangeDelay: (...args: ExtractArgs<Contract['calls']['govChangeDelay']>) => Promise<CallReturn<'govChangeDelay'>>;
|
|
1203
1585
|
MIN_GOV_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MIN_GOV_CHANGE_DELAY']>) => Promise<CallReturn<'MIN_GOV_CHANGE_DELAY'>>;
|
|
1204
1586
|
MAX_GOV_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MAX_GOV_CHANGE_DELAY']>) => Promise<CallReturn<'MAX_GOV_CHANGE_DELAY'>>;
|
|
1205
|
-
currentUserWalletTemplate: (...args: ExtractArgs<Contract['calls']['currentUserWalletTemplate']>) => Promise<CallReturn<'currentUserWalletTemplate'>>;
|
|
1206
|
-
currentUserWalletConfigTemplate: (...args: ExtractArgs<Contract['calls']['currentUserWalletConfigTemplate']>) => Promise<CallReturn<'currentUserWalletConfigTemplate'>>;
|
|
1207
|
-
currentAgentTemplate: (...args: ExtractArgs<Contract['calls']['currentAgentTemplate']>) => Promise<CallReturn<'currentAgentTemplate'>>;
|
|
1208
|
-
isValidUserWalletSetup: (...args: ExtractArgs<Contract['calls']['isValidUserWalletSetup']>) => Promise<CallReturn<'isValidUserWalletSetup'>>;
|
|
1209
|
-
isValidUserWalletTemplate: (...args: ExtractArgs<Contract['calls']['isValidUserWalletTemplate']>) => Promise<CallReturn<'isValidUserWalletTemplate'>>;
|
|
1210
|
-
isValidUserWalletConfigTemplate: (...args: ExtractArgs<Contract['calls']['isValidUserWalletConfigTemplate']>) => Promise<CallReturn<'isValidUserWalletConfigTemplate'>>;
|
|
1211
|
-
isValidAgentSetup: (...args: ExtractArgs<Contract['calls']['isValidAgentSetup']>) => Promise<CallReturn<'isValidAgentSetup'>>;
|
|
1212
|
-
isValidAgentTemplate: (...args: ExtractArgs<Contract['calls']['isValidAgentTemplate']>) => Promise<CallReturn<'isValidAgentTemplate'>>;
|
|
1213
|
-
isValidTrialFundsData: (...args: ExtractArgs<Contract['calls']['isValidTrialFundsData']>) => Promise<CallReturn<'isValidTrialFundsData'>>;
|
|
1214
|
-
canCancelCriticalAction: (...args: ExtractArgs<Contract['calls']['canCancelCriticalAction']>) => Promise<CallReturn<'canCancelCriticalAction'>>;
|
|
1215
|
-
trialFundsData: (...args: ExtractArgs<Contract['calls']['trialFundsData']>) => Promise<CallReturn<'trialFundsData'>>;
|
|
1216
|
-
recoveryCaller: (...args: ExtractArgs<Contract['calls']['recoveryCaller']>) => Promise<CallReturn<'recoveryCaller'>>;
|
|
1217
|
-
userWalletTemplate: (...args: ExtractArgs<Contract['calls']['userWalletTemplate']>) => Promise<CallReturn<'userWalletTemplate'>>;
|
|
1218
|
-
userWalletConfig: (...args: ExtractArgs<Contract['calls']['userWalletConfig']>) => Promise<CallReturn<'userWalletConfig'>>;
|
|
1219
1587
|
isUserWallet: (...args: ExtractArgs<Contract['calls']['isUserWallet']>) => Promise<CallReturn<'isUserWallet'>>;
|
|
1220
|
-
numUserWallets: (...args: ExtractArgs<Contract['calls']['numUserWallets']>) => Promise<CallReturn<'numUserWallets'>>;
|
|
1221
|
-
agentTemplateInfo: (...args: ExtractArgs<Contract['calls']['agentTemplateInfo']>) => Promise<CallReturn<'agentTemplateInfo'>>;
|
|
1222
1588
|
isAgent: (...args: ExtractArgs<Contract['calls']['isAgent']>) => Promise<CallReturn<'isAgent'>>;
|
|
1589
|
+
getUserWalletTemplateAddr: (...args: ExtractArgs<Contract['calls']['getUserWalletTemplateAddr']>) => Promise<CallReturn<'getUserWalletTemplateAddr'>>;
|
|
1590
|
+
getUserWalletTemplateInfo: (...args: ExtractArgs<Contract['calls']['getUserWalletTemplateInfo']>) => Promise<CallReturn<'getUserWalletTemplateInfo'>>;
|
|
1591
|
+
getPendingUserWalletTemplateUpdate: (...args: ExtractArgs<Contract['calls']['getPendingUserWalletTemplateUpdate']>) => Promise<CallReturn<'getPendingUserWalletTemplateUpdate'>>;
|
|
1592
|
+
hasPendingUserWalletTemplateUpdate: (...args: ExtractArgs<Contract['calls']['hasPendingUserWalletTemplateUpdate']>) => Promise<CallReturn<'hasPendingUserWalletTemplateUpdate'>>;
|
|
1593
|
+
getUserWalletConfigTemplateAddr: (...args: ExtractArgs<Contract['calls']['getUserWalletConfigTemplateAddr']>) => Promise<CallReturn<'getUserWalletConfigTemplateAddr'>>;
|
|
1594
|
+
getUserWalletConfigTemplateInfo: (...args: ExtractArgs<Contract['calls']['getUserWalletConfigTemplateInfo']>) => Promise<CallReturn<'getUserWalletConfigTemplateInfo'>>;
|
|
1595
|
+
getPendingUserWalletConfigTemplateUpdate: (...args: ExtractArgs<Contract['calls']['getPendingUserWalletConfigTemplateUpdate']>) => Promise<CallReturn<'getPendingUserWalletConfigTemplateUpdate'>>;
|
|
1596
|
+
hasPendingUserWalletConfigTemplateUpdate: (...args: ExtractArgs<Contract['calls']['hasPendingUserWalletConfigTemplateUpdate']>) => Promise<CallReturn<'hasPendingUserWalletConfigTemplateUpdate'>>;
|
|
1597
|
+
getAgentTemplateAddr: (...args: ExtractArgs<Contract['calls']['getAgentTemplateAddr']>) => Promise<CallReturn<'getAgentTemplateAddr'>>;
|
|
1598
|
+
getAgentTemplateInfo: (...args: ExtractArgs<Contract['calls']['getAgentTemplateInfo']>) => Promise<CallReturn<'getAgentTemplateInfo'>>;
|
|
1599
|
+
getPendingAgentTemplateUpdate: (...args: ExtractArgs<Contract['calls']['getPendingAgentTemplateUpdate']>) => Promise<CallReturn<'getPendingAgentTemplateUpdate'>>;
|
|
1600
|
+
hasPendingAgentTemplateUpdate: (...args: ExtractArgs<Contract['calls']['hasPendingAgentTemplateUpdate']>) => Promise<CallReturn<'hasPendingAgentTemplateUpdate'>>;
|
|
1601
|
+
canCancelCriticalAction: (...args: ExtractArgs<Contract['calls']['canCancelCriticalAction']>) => Promise<CallReturn<'canCancelCriticalAction'>>;
|
|
1602
|
+
getDefaultAgentAddr: (...args: ExtractArgs<Contract['calls']['getDefaultAgentAddr']>) => Promise<CallReturn<'getDefaultAgentAddr'>>;
|
|
1603
|
+
getDefaultAgentInfo: (...args: ExtractArgs<Contract['calls']['getDefaultAgentInfo']>) => Promise<CallReturn<'getDefaultAgentInfo'>>;
|
|
1604
|
+
getPendingDefaultAgentUpdate: (...args: ExtractArgs<Contract['calls']['getPendingDefaultAgentUpdate']>) => Promise<CallReturn<'getPendingDefaultAgentUpdate'>>;
|
|
1605
|
+
hasPendingDefaultAgentUpdate: (...args: ExtractArgs<Contract['calls']['hasPendingDefaultAgentUpdate']>) => Promise<CallReturn<'hasPendingDefaultAgentUpdate'>>;
|
|
1606
|
+
isUserWalletLocal: (...args: ExtractArgs<Contract['calls']['isUserWalletLocal']>) => Promise<CallReturn<'isUserWalletLocal'>>;
|
|
1607
|
+
numUserWallets: (...args: ExtractArgs<Contract['calls']['numUserWallets']>) => Promise<CallReturn<'numUserWallets'>>;
|
|
1608
|
+
isAgentLocal: (...args: ExtractArgs<Contract['calls']['isAgentLocal']>) => Promise<CallReturn<'isAgentLocal'>>;
|
|
1223
1609
|
numAgents: (...args: ExtractArgs<Contract['calls']['numAgents']>) => Promise<CallReturn<'numAgents'>>;
|
|
1224
|
-
|
|
1610
|
+
addressInfo: (...args: ExtractArgs<Contract['calls']['addressInfo']>) => Promise<CallReturn<'addressInfo'>>;
|
|
1611
|
+
pendingAddress: (...args: ExtractArgs<Contract['calls']['pendingAddress']>) => Promise<CallReturn<'pendingAddress'>>;
|
|
1612
|
+
addressChangeDelay: (...args: ExtractArgs<Contract['calls']['addressChangeDelay']>) => Promise<CallReturn<'addressChangeDelay'>>;
|
|
1613
|
+
ambassadorBonusRatio: (...args: ExtractArgs<Contract['calls']['ambassadorBonusRatio']>) => Promise<CallReturn<'ambassadorBonusRatio'>>;
|
|
1614
|
+
trialFundsData: (...args: ExtractArgs<Contract['calls']['trialFundsData']>) => Promise<CallReturn<'trialFundsData'>>;
|
|
1225
1615
|
numUserWalletsAllowed: (...args: ExtractArgs<Contract['calls']['numUserWalletsAllowed']>) => Promise<CallReturn<'numUserWalletsAllowed'>>;
|
|
1226
1616
|
numAgentsAllowed: (...args: ExtractArgs<Contract['calls']['numAgentsAllowed']>) => Promise<CallReturn<'numAgentsAllowed'>>;
|
|
1227
1617
|
whitelist: (...args: ExtractArgs<Contract['calls']['whitelist']>) => Promise<CallReturn<'whitelist'>>;
|
|
1228
1618
|
shouldEnforceWhitelist: (...args: ExtractArgs<Contract['calls']['shouldEnforceWhitelist']>) => Promise<CallReturn<'shouldEnforceWhitelist'>>;
|
|
1619
|
+
agentBlacklist: (...args: ExtractArgs<Contract['calls']['agentBlacklist']>) => Promise<CallReturn<'agentBlacklist'>>;
|
|
1229
1620
|
canCriticalCancel: (...args: ExtractArgs<Contract['calls']['canCriticalCancel']>) => Promise<CallReturn<'canCriticalCancel'>>;
|
|
1230
1621
|
isActivated: (...args: ExtractArgs<Contract['calls']['isActivated']>) => Promise<CallReturn<'isActivated'>>;
|
|
1231
1622
|
ADDY_REGISTRY: (...args: ExtractArgs<Contract['calls']['ADDY_REGISTRY']>) => Promise<CallReturn<'ADDY_REGISTRY'>>;
|
|
1232
1623
|
WETH_ADDR: (...args: ExtractArgs<Contract['calls']['WETH_ADDR']>) => Promise<CallReturn<'WETH_ADDR'>>;
|
|
1233
1624
|
MIN_OWNER_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MIN_OWNER_CHANGE_DELAY']>) => Promise<CallReturn<'MIN_OWNER_CHANGE_DELAY'>>;
|
|
1234
1625
|
MAX_OWNER_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MAX_OWNER_CHANGE_DELAY']>) => Promise<CallReturn<'MAX_OWNER_CHANGE_DELAY'>>;
|
|
1626
|
+
MIN_ADDRESS_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MIN_ADDRESS_CHANGE_DELAY']>) => Promise<CallReturn<'MIN_ADDRESS_CHANGE_DELAY'>>;
|
|
1627
|
+
MAX_ADDRESS_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MAX_ADDRESS_CHANGE_DELAY']>) => Promise<CallReturn<'MAX_ADDRESS_CHANGE_DELAY'>>;
|
|
1235
1628
|
changeGovernance: (...args: ExtractArgs<Contract['mutations']['changeGovernance']>) => Promise<Address>;
|
|
1236
1629
|
confirmGovernanceChange: (...args: ExtractArgs<Contract['mutations']['confirmGovernanceChange']>) => Promise<Address>;
|
|
1237
1630
|
cancelGovernanceChange: (...args: ExtractArgs<Contract['mutations']['cancelGovernanceChange']>) => Promise<Address>;
|
|
1238
1631
|
setGovernanceChangeDelay: (...args: ExtractArgs<Contract['mutations']['setGovernanceChangeDelay']>) => Promise<Address>;
|
|
1239
1632
|
createUserWallet: (...args: ExtractArgs<Contract['mutations']['createUserWallet']>) => Promise<Address>;
|
|
1240
|
-
setUserWalletTemplate: (...args: ExtractArgs<Contract['mutations']['setUserWalletTemplate']>) => Promise<Address>;
|
|
1241
|
-
setUserWalletConfigTemplate: (...args: ExtractArgs<Contract['mutations']['setUserWalletConfigTemplate']>) => Promise<Address>;
|
|
1242
1633
|
createAgent: (...args: ExtractArgs<Contract['mutations']['createAgent']>) => Promise<Address>;
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1634
|
+
initiateUserWalletTemplateUpdate: (...args: ExtractArgs<Contract['mutations']['initiateUserWalletTemplateUpdate']>) => Promise<Address>;
|
|
1635
|
+
confirmUserWalletTemplateUpdate: (...args: ExtractArgs<Contract['mutations']['confirmUserWalletTemplateUpdate']>) => Promise<Address>;
|
|
1636
|
+
cancelUserWalletTemplateUpdate: (...args: ExtractArgs<Contract['mutations']['cancelUserWalletTemplateUpdate']>) => Promise<Address>;
|
|
1637
|
+
initiateUserWalletConfigTemplateUpdate: (...args: ExtractArgs<Contract['mutations']['initiateUserWalletConfigTemplateUpdate']>) => Promise<Address>;
|
|
1638
|
+
confirmUserWalletConfigTemplateUpdate: (...args: ExtractArgs<Contract['mutations']['confirmUserWalletConfigTemplateUpdate']>) => Promise<Address>;
|
|
1639
|
+
cancelUserWalletConfigTemplateUpdate: (...args: ExtractArgs<Contract['mutations']['cancelUserWalletConfigTemplateUpdate']>) => Promise<Address>;
|
|
1640
|
+
initiateAgentTemplateUpdate: (...args: ExtractArgs<Contract['mutations']['initiateAgentTemplateUpdate']>) => Promise<Address>;
|
|
1641
|
+
confirmAgentTemplateUpdate: (...args: ExtractArgs<Contract['mutations']['confirmAgentTemplateUpdate']>) => Promise<Address>;
|
|
1642
|
+
cancelAgentTemplateUpdate: (...args: ExtractArgs<Contract['mutations']['cancelAgentTemplateUpdate']>) => Promise<Address>;
|
|
1643
|
+
setAddressChangeDelay: (...args: ExtractArgs<Contract['mutations']['setAddressChangeDelay']>) => Promise<Address>;
|
|
1248
1644
|
setWhitelist: (...args: ExtractArgs<Contract['mutations']['setWhitelist']>) => Promise<Address>;
|
|
1249
1645
|
setShouldEnforceWhitelist: (...args: ExtractArgs<Contract['mutations']['setShouldEnforceWhitelist']>) => Promise<Address>;
|
|
1250
1646
|
setNumUserWalletsAllowed: (...args: ExtractArgs<Contract['mutations']['setNumUserWalletsAllowed']>) => Promise<Address>;
|
|
1251
1647
|
setNumAgentsAllowed: (...args: ExtractArgs<Contract['mutations']['setNumAgentsAllowed']>) => Promise<Address>;
|
|
1252
1648
|
setAgentBlacklist: (...args: ExtractArgs<Contract['mutations']['setAgentBlacklist']>) => Promise<Address>;
|
|
1253
|
-
recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
|
|
1254
1649
|
setCanCriticalCancel: (...args: ExtractArgs<Contract['mutations']['setCanCriticalCancel']>) => Promise<Address>;
|
|
1650
|
+
setTrialFundsData: (...args: ExtractArgs<Contract['mutations']['setTrialFundsData']>) => Promise<Address>;
|
|
1651
|
+
clawBackTrialFunds: (...args: ExtractArgs<Contract['mutations']['clawBackTrialFunds']>) => Promise<Address>;
|
|
1652
|
+
clawBackTrialFundsLegacy: (...args: ExtractArgs<Contract['mutations']['clawBackTrialFundsLegacy']>) => Promise<Address>;
|
|
1653
|
+
payAmbassadorYieldBonus: (...args: ExtractArgs<Contract['mutations']['payAmbassadorYieldBonus']>) => Promise<Address>;
|
|
1654
|
+
setAmbassadorBonusRatio: (...args: ExtractArgs<Contract['mutations']['setAmbassadorBonusRatio']>) => Promise<Address>;
|
|
1655
|
+
initiateDefaultAgentUpdate: (...args: ExtractArgs<Contract['mutations']['initiateDefaultAgentUpdate']>) => Promise<Address>;
|
|
1656
|
+
confirmDefaultAgentUpdate: (...args: ExtractArgs<Contract['mutations']['confirmDefaultAgentUpdate']>) => Promise<Address>;
|
|
1657
|
+
cancelDefaultAgentUpdate: (...args: ExtractArgs<Contract['mutations']['cancelDefaultAgentUpdate']>) => Promise<Address>;
|
|
1658
|
+
recoverFundsFromAgentFactory: (...args: ExtractArgs<Contract['mutations']['recoverFundsFromAgentFactory']>) => Promise<Address>;
|
|
1255
1659
|
activate: (...args: ExtractArgs<Contract['mutations']['activate']>) => Promise<Address>;
|
|
1256
1660
|
};
|
|
1257
1661
|
export declare function toSdk(publicClient?: PublicClient, walletClient?: WalletClient): SDK;
|