viem 2.47.10 → 2.47.11
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/CHANGELOG.md +10 -0
- package/_cjs/chains/definitions/fluent.js +26 -0
- package/_cjs/chains/definitions/fluent.js.map +1 -0
- package/_cjs/chains/index.js +13 -11
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/tempo/Abis.js +656 -4
- package/_cjs/tempo/Abis.js.map +1 -1
- package/_cjs/tempo/Account.js +6 -2
- package/_cjs/tempo/Account.js.map +1 -1
- package/_cjs/tempo/actions/accessKey.js +2 -1
- package/_cjs/tempo/actions/accessKey.js.map +1 -1
- package/_cjs/tempo/actions/validator.js +11 -11
- package/_cjs/tempo/actions/validator.js.map +1 -1
- package/_cjs/tempo/index.js +2 -1
- package/_cjs/tempo/index.js.map +1 -1
- package/_cjs/utils/buildRequest.js +2 -0
- package/_cjs/utils/buildRequest.js.map +1 -1
- package/_esm/chains/definitions/fluent.js +23 -0
- package/_esm/chains/definitions/fluent.js.map +1 -0
- package/_esm/chains/index.js +1 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/tempo/Abis.js +655 -3
- package/_esm/tempo/Abis.js.map +1 -1
- package/_esm/tempo/Account.js +6 -2
- package/_esm/tempo/Account.js.map +1 -1
- package/_esm/tempo/actions/accessKey.js +2 -1
- package/_esm/tempo/actions/accessKey.js.map +1 -1
- package/_esm/tempo/actions/validator.js +11 -11
- package/_esm/tempo/actions/validator.js.map +1 -1
- package/_esm/tempo/index.js +1 -1
- package/_esm/tempo/index.js.map +1 -1
- package/_esm/utils/buildRequest.js +5 -0
- package/_esm/utils/buildRequest.js.map +1 -1
- package/_types/chains/definitions/fluent.d.ts +48 -0
- package/_types/chains/definitions/fluent.d.ts.map +1 -0
- package/_types/chains/index.d.ts +1 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/tempo/Abis.d.ts +1072 -35
- package/_types/tempo/Abis.d.ts.map +1 -1
- package/_types/tempo/Account.d.ts +2 -2
- package/_types/tempo/Account.d.ts.map +1 -1
- package/_types/tempo/actions/accessKey.d.ts +539 -0
- package/_types/tempo/actions/accessKey.d.ts.map +1 -1
- package/_types/tempo/actions/policy.d.ts +444 -4
- package/_types/tempo/actions/policy.d.ts.map +1 -1
- package/_types/tempo/actions/validator.d.ts +6 -6
- package/_types/tempo/actions/validator.d.ts.map +1 -1
- package/_types/tempo/index.d.ts +1 -1
- package/_types/tempo/index.d.ts.map +1 -1
- package/_types/utils/buildRequest.d.ts.map +1 -1
- package/chains/definitions/fluent.ts +23 -0
- package/chains/index.ts +1 -0
- package/errors/version.ts +1 -1
- package/package.json +2 -2
- package/tempo/Abis.ts +658 -3
- package/tempo/Account.ts +8 -4
- package/tempo/actions/accessKey.ts +13 -2
- package/tempo/actions/validator.ts +17 -17
- package/tempo/index.ts +1 -1
- package/utils/buildRequest.ts +4 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Address } from 'abitype';
|
|
2
|
+
import type { KeyAuthorization } from 'ox/tempo';
|
|
2
3
|
import type { Account } from '../../accounts/types.js';
|
|
3
4
|
import { sendTransaction } from '../../actions/wallet/sendTransaction.js';
|
|
4
5
|
import { sendTransactionSync } from '../../actions/wallet/sendTransactionSync.js';
|
|
@@ -62,7 +63,10 @@ export declare namespace authorize {
|
|
|
62
63
|
limits?: {
|
|
63
64
|
token: Address;
|
|
64
65
|
limit: bigint;
|
|
66
|
+
period?: number | undefined;
|
|
65
67
|
}[] | undefined;
|
|
68
|
+
/** Call scopes restricting which contracts/selectors this key can call. */
|
|
69
|
+
scopes?: KeyAuthorization.Scope[] | undefined;
|
|
66
70
|
};
|
|
67
71
|
type ReturnValue = WriteContractReturnType;
|
|
68
72
|
type ErrorType = BaseErrorType;
|
|
@@ -96,6 +100,61 @@ export declare namespace authorize {
|
|
|
96
100
|
}];
|
|
97
101
|
}];
|
|
98
102
|
readonly outputs: readonly [];
|
|
103
|
+
}, {
|
|
104
|
+
readonly name: "authorizeKey";
|
|
105
|
+
readonly type: "function";
|
|
106
|
+
readonly stateMutability: "nonpayable";
|
|
107
|
+
readonly inputs: readonly [{
|
|
108
|
+
readonly type: "address";
|
|
109
|
+
readonly name: "keyId";
|
|
110
|
+
}, {
|
|
111
|
+
readonly type: "uint8";
|
|
112
|
+
readonly name: "signatureType";
|
|
113
|
+
}, {
|
|
114
|
+
readonly type: "tuple";
|
|
115
|
+
readonly name: "config";
|
|
116
|
+
readonly components: readonly [{
|
|
117
|
+
readonly type: "uint64";
|
|
118
|
+
readonly name: "expiry";
|
|
119
|
+
}, {
|
|
120
|
+
readonly type: "bool";
|
|
121
|
+
readonly name: "enforceLimits";
|
|
122
|
+
}, {
|
|
123
|
+
readonly type: "tuple[]";
|
|
124
|
+
readonly name: "limits";
|
|
125
|
+
readonly components: readonly [{
|
|
126
|
+
readonly type: "address";
|
|
127
|
+
readonly name: "token";
|
|
128
|
+
}, {
|
|
129
|
+
readonly type: "uint256";
|
|
130
|
+
readonly name: "amount";
|
|
131
|
+
}, {
|
|
132
|
+
readonly type: "uint64";
|
|
133
|
+
readonly name: "period";
|
|
134
|
+
}];
|
|
135
|
+
}, {
|
|
136
|
+
readonly type: "bool";
|
|
137
|
+
readonly name: "allowAnyCalls";
|
|
138
|
+
}, {
|
|
139
|
+
readonly type: "tuple[]";
|
|
140
|
+
readonly name: "allowedCalls";
|
|
141
|
+
readonly components: readonly [{
|
|
142
|
+
readonly type: "address";
|
|
143
|
+
readonly name: "target";
|
|
144
|
+
}, {
|
|
145
|
+
readonly type: "tuple[]";
|
|
146
|
+
readonly name: "selectorRules";
|
|
147
|
+
readonly components: readonly [{
|
|
148
|
+
readonly type: "bytes4";
|
|
149
|
+
readonly name: "selector";
|
|
150
|
+
}, {
|
|
151
|
+
readonly type: "address[]";
|
|
152
|
+
readonly name: "recipients";
|
|
153
|
+
}];
|
|
154
|
+
}];
|
|
155
|
+
}];
|
|
156
|
+
}];
|
|
157
|
+
readonly outputs: readonly [];
|
|
99
158
|
}, {
|
|
100
159
|
readonly name: "revokeKey";
|
|
101
160
|
readonly type: "function";
|
|
@@ -120,6 +179,44 @@ export declare namespace authorize {
|
|
|
120
179
|
readonly name: "newLimit";
|
|
121
180
|
}];
|
|
122
181
|
readonly outputs: readonly [];
|
|
182
|
+
}, {
|
|
183
|
+
readonly name: "setAllowedCalls";
|
|
184
|
+
readonly type: "function";
|
|
185
|
+
readonly stateMutability: "nonpayable";
|
|
186
|
+
readonly inputs: readonly [{
|
|
187
|
+
readonly type: "address";
|
|
188
|
+
readonly name: "keyId";
|
|
189
|
+
}, {
|
|
190
|
+
readonly type: "tuple[]";
|
|
191
|
+
readonly name: "scopes";
|
|
192
|
+
readonly components: readonly [{
|
|
193
|
+
readonly type: "address";
|
|
194
|
+
readonly name: "target";
|
|
195
|
+
}, {
|
|
196
|
+
readonly type: "tuple[]";
|
|
197
|
+
readonly name: "selectorRules";
|
|
198
|
+
readonly components: readonly [{
|
|
199
|
+
readonly type: "bytes4";
|
|
200
|
+
readonly name: "selector";
|
|
201
|
+
}, {
|
|
202
|
+
readonly type: "address[]";
|
|
203
|
+
readonly name: "recipients";
|
|
204
|
+
}];
|
|
205
|
+
}];
|
|
206
|
+
}];
|
|
207
|
+
readonly outputs: readonly [];
|
|
208
|
+
}, {
|
|
209
|
+
readonly name: "removeAllowedCalls";
|
|
210
|
+
readonly type: "function";
|
|
211
|
+
readonly stateMutability: "nonpayable";
|
|
212
|
+
readonly inputs: readonly [{
|
|
213
|
+
readonly type: "address";
|
|
214
|
+
readonly name: "keyId";
|
|
215
|
+
}, {
|
|
216
|
+
readonly type: "address";
|
|
217
|
+
readonly name: "target";
|
|
218
|
+
}];
|
|
219
|
+
readonly outputs: readonly [];
|
|
123
220
|
}, {
|
|
124
221
|
readonly name: "getKey";
|
|
125
222
|
readonly type: "function";
|
|
@@ -166,6 +263,7 @@ export declare namespace authorize {
|
|
|
166
263
|
}];
|
|
167
264
|
readonly outputs: readonly [{
|
|
168
265
|
readonly type: "uint256";
|
|
266
|
+
readonly name: "remaining";
|
|
169
267
|
}];
|
|
170
268
|
}, {
|
|
171
269
|
readonly name: "getRemainingLimitWithPeriod";
|
|
@@ -188,6 +286,38 @@ export declare namespace authorize {
|
|
|
188
286
|
readonly type: "uint64";
|
|
189
287
|
readonly name: "periodEnd";
|
|
190
288
|
}];
|
|
289
|
+
}, {
|
|
290
|
+
readonly name: "getAllowedCalls";
|
|
291
|
+
readonly type: "function";
|
|
292
|
+
readonly stateMutability: "view";
|
|
293
|
+
readonly inputs: readonly [{
|
|
294
|
+
readonly type: "address";
|
|
295
|
+
readonly name: "account";
|
|
296
|
+
}, {
|
|
297
|
+
readonly type: "address";
|
|
298
|
+
readonly name: "keyId";
|
|
299
|
+
}];
|
|
300
|
+
readonly outputs: readonly [{
|
|
301
|
+
readonly type: "bool";
|
|
302
|
+
readonly name: "isScoped";
|
|
303
|
+
}, {
|
|
304
|
+
readonly type: "tuple[]";
|
|
305
|
+
readonly name: "scopes";
|
|
306
|
+
readonly components: readonly [{
|
|
307
|
+
readonly type: "address";
|
|
308
|
+
readonly name: "target";
|
|
309
|
+
}, {
|
|
310
|
+
readonly type: "tuple[]";
|
|
311
|
+
readonly name: "selectorRules";
|
|
312
|
+
readonly components: readonly [{
|
|
313
|
+
readonly type: "bytes4";
|
|
314
|
+
readonly name: "selector";
|
|
315
|
+
}, {
|
|
316
|
+
readonly type: "address[]";
|
|
317
|
+
readonly name: "recipients";
|
|
318
|
+
}];
|
|
319
|
+
}];
|
|
320
|
+
}];
|
|
191
321
|
}, {
|
|
192
322
|
readonly name: "getTransactionKey";
|
|
193
323
|
readonly type: "function";
|
|
@@ -245,6 +375,28 @@ export declare namespace authorize {
|
|
|
245
375
|
readonly type: "uint256";
|
|
246
376
|
readonly name: "newLimit";
|
|
247
377
|
}];
|
|
378
|
+
}, {
|
|
379
|
+
readonly name: "AccessKeySpend";
|
|
380
|
+
readonly type: "event";
|
|
381
|
+
readonly inputs: readonly [{
|
|
382
|
+
readonly type: "address";
|
|
383
|
+
readonly name: "account";
|
|
384
|
+
readonly indexed: true;
|
|
385
|
+
}, {
|
|
386
|
+
readonly type: "address";
|
|
387
|
+
readonly name: "publicKey";
|
|
388
|
+
readonly indexed: true;
|
|
389
|
+
}, {
|
|
390
|
+
readonly type: "address";
|
|
391
|
+
readonly name: "token";
|
|
392
|
+
readonly indexed: true;
|
|
393
|
+
}, {
|
|
394
|
+
readonly type: "uint256";
|
|
395
|
+
readonly name: "amount";
|
|
396
|
+
}, {
|
|
397
|
+
readonly type: "uint256";
|
|
398
|
+
readonly name: "remainingLimit";
|
|
399
|
+
}];
|
|
248
400
|
}, {
|
|
249
401
|
readonly name: "UnauthorizedCaller";
|
|
250
402
|
readonly type: "error";
|
|
@@ -265,6 +417,10 @@ export declare namespace authorize {
|
|
|
265
417
|
readonly name: "SpendingLimitExceeded";
|
|
266
418
|
readonly type: "error";
|
|
267
419
|
readonly inputs: readonly [];
|
|
420
|
+
}, {
|
|
421
|
+
readonly name: "InvalidSpendingLimit";
|
|
422
|
+
readonly type: "error";
|
|
423
|
+
readonly inputs: readonly [];
|
|
268
424
|
}, {
|
|
269
425
|
readonly name: "InvalidSignatureType";
|
|
270
426
|
readonly type: "error";
|
|
@@ -281,6 +437,31 @@ export declare namespace authorize {
|
|
|
281
437
|
readonly name: "KeyAlreadyRevoked";
|
|
282
438
|
readonly type: "error";
|
|
283
439
|
readonly inputs: readonly [];
|
|
440
|
+
}, {
|
|
441
|
+
readonly name: "SignatureTypeMismatch";
|
|
442
|
+
readonly type: "error";
|
|
443
|
+
readonly inputs: readonly [{
|
|
444
|
+
readonly type: "uint8";
|
|
445
|
+
readonly name: "expected";
|
|
446
|
+
}, {
|
|
447
|
+
readonly type: "uint8";
|
|
448
|
+
readonly name: "actual";
|
|
449
|
+
}];
|
|
450
|
+
}, {
|
|
451
|
+
readonly name: "CallNotAllowed";
|
|
452
|
+
readonly type: "error";
|
|
453
|
+
readonly inputs: readonly [];
|
|
454
|
+
}, {
|
|
455
|
+
readonly name: "InvalidCallScope";
|
|
456
|
+
readonly type: "error";
|
|
457
|
+
readonly inputs: readonly [];
|
|
458
|
+
}, {
|
|
459
|
+
readonly name: "LegacyAuthorizeKeySelectorChanged";
|
|
460
|
+
readonly type: "error";
|
|
461
|
+
readonly inputs: readonly [{
|
|
462
|
+
readonly type: "bytes4";
|
|
463
|
+
readonly name: "newSelector";
|
|
464
|
+
}];
|
|
284
465
|
}], "KeyAuthorized">;
|
|
285
466
|
}
|
|
286
467
|
/**
|
|
@@ -439,6 +620,61 @@ export declare namespace revoke {
|
|
|
439
620
|
}];
|
|
440
621
|
}];
|
|
441
622
|
readonly outputs: readonly [];
|
|
623
|
+
}, {
|
|
624
|
+
readonly name: "authorizeKey";
|
|
625
|
+
readonly type: "function";
|
|
626
|
+
readonly stateMutability: "nonpayable";
|
|
627
|
+
readonly inputs: readonly [{
|
|
628
|
+
readonly type: "address";
|
|
629
|
+
readonly name: "keyId";
|
|
630
|
+
}, {
|
|
631
|
+
readonly type: "uint8";
|
|
632
|
+
readonly name: "signatureType";
|
|
633
|
+
}, {
|
|
634
|
+
readonly type: "tuple";
|
|
635
|
+
readonly name: "config";
|
|
636
|
+
readonly components: readonly [{
|
|
637
|
+
readonly type: "uint64";
|
|
638
|
+
readonly name: "expiry";
|
|
639
|
+
}, {
|
|
640
|
+
readonly type: "bool";
|
|
641
|
+
readonly name: "enforceLimits";
|
|
642
|
+
}, {
|
|
643
|
+
readonly type: "tuple[]";
|
|
644
|
+
readonly name: "limits";
|
|
645
|
+
readonly components: readonly [{
|
|
646
|
+
readonly type: "address";
|
|
647
|
+
readonly name: "token";
|
|
648
|
+
}, {
|
|
649
|
+
readonly type: "uint256";
|
|
650
|
+
readonly name: "amount";
|
|
651
|
+
}, {
|
|
652
|
+
readonly type: "uint64";
|
|
653
|
+
readonly name: "period";
|
|
654
|
+
}];
|
|
655
|
+
}, {
|
|
656
|
+
readonly type: "bool";
|
|
657
|
+
readonly name: "allowAnyCalls";
|
|
658
|
+
}, {
|
|
659
|
+
readonly type: "tuple[]";
|
|
660
|
+
readonly name: "allowedCalls";
|
|
661
|
+
readonly components: readonly [{
|
|
662
|
+
readonly type: "address";
|
|
663
|
+
readonly name: "target";
|
|
664
|
+
}, {
|
|
665
|
+
readonly type: "tuple[]";
|
|
666
|
+
readonly name: "selectorRules";
|
|
667
|
+
readonly components: readonly [{
|
|
668
|
+
readonly type: "bytes4";
|
|
669
|
+
readonly name: "selector";
|
|
670
|
+
}, {
|
|
671
|
+
readonly type: "address[]";
|
|
672
|
+
readonly name: "recipients";
|
|
673
|
+
}];
|
|
674
|
+
}];
|
|
675
|
+
}];
|
|
676
|
+
}];
|
|
677
|
+
readonly outputs: readonly [];
|
|
442
678
|
}, {
|
|
443
679
|
readonly name: "revokeKey";
|
|
444
680
|
readonly type: "function";
|
|
@@ -463,6 +699,44 @@ export declare namespace revoke {
|
|
|
463
699
|
readonly name: "newLimit";
|
|
464
700
|
}];
|
|
465
701
|
readonly outputs: readonly [];
|
|
702
|
+
}, {
|
|
703
|
+
readonly name: "setAllowedCalls";
|
|
704
|
+
readonly type: "function";
|
|
705
|
+
readonly stateMutability: "nonpayable";
|
|
706
|
+
readonly inputs: readonly [{
|
|
707
|
+
readonly type: "address";
|
|
708
|
+
readonly name: "keyId";
|
|
709
|
+
}, {
|
|
710
|
+
readonly type: "tuple[]";
|
|
711
|
+
readonly name: "scopes";
|
|
712
|
+
readonly components: readonly [{
|
|
713
|
+
readonly type: "address";
|
|
714
|
+
readonly name: "target";
|
|
715
|
+
}, {
|
|
716
|
+
readonly type: "tuple[]";
|
|
717
|
+
readonly name: "selectorRules";
|
|
718
|
+
readonly components: readonly [{
|
|
719
|
+
readonly type: "bytes4";
|
|
720
|
+
readonly name: "selector";
|
|
721
|
+
}, {
|
|
722
|
+
readonly type: "address[]";
|
|
723
|
+
readonly name: "recipients";
|
|
724
|
+
}];
|
|
725
|
+
}];
|
|
726
|
+
}];
|
|
727
|
+
readonly outputs: readonly [];
|
|
728
|
+
}, {
|
|
729
|
+
readonly name: "removeAllowedCalls";
|
|
730
|
+
readonly type: "function";
|
|
731
|
+
readonly stateMutability: "nonpayable";
|
|
732
|
+
readonly inputs: readonly [{
|
|
733
|
+
readonly type: "address";
|
|
734
|
+
readonly name: "keyId";
|
|
735
|
+
}, {
|
|
736
|
+
readonly type: "address";
|
|
737
|
+
readonly name: "target";
|
|
738
|
+
}];
|
|
739
|
+
readonly outputs: readonly [];
|
|
466
740
|
}, {
|
|
467
741
|
readonly name: "getKey";
|
|
468
742
|
readonly type: "function";
|
|
@@ -509,6 +783,7 @@ export declare namespace revoke {
|
|
|
509
783
|
}];
|
|
510
784
|
readonly outputs: readonly [{
|
|
511
785
|
readonly type: "uint256";
|
|
786
|
+
readonly name: "remaining";
|
|
512
787
|
}];
|
|
513
788
|
}, {
|
|
514
789
|
readonly name: "getRemainingLimitWithPeriod";
|
|
@@ -531,6 +806,38 @@ export declare namespace revoke {
|
|
|
531
806
|
readonly type: "uint64";
|
|
532
807
|
readonly name: "periodEnd";
|
|
533
808
|
}];
|
|
809
|
+
}, {
|
|
810
|
+
readonly name: "getAllowedCalls";
|
|
811
|
+
readonly type: "function";
|
|
812
|
+
readonly stateMutability: "view";
|
|
813
|
+
readonly inputs: readonly [{
|
|
814
|
+
readonly type: "address";
|
|
815
|
+
readonly name: "account";
|
|
816
|
+
}, {
|
|
817
|
+
readonly type: "address";
|
|
818
|
+
readonly name: "keyId";
|
|
819
|
+
}];
|
|
820
|
+
readonly outputs: readonly [{
|
|
821
|
+
readonly type: "bool";
|
|
822
|
+
readonly name: "isScoped";
|
|
823
|
+
}, {
|
|
824
|
+
readonly type: "tuple[]";
|
|
825
|
+
readonly name: "scopes";
|
|
826
|
+
readonly components: readonly [{
|
|
827
|
+
readonly type: "address";
|
|
828
|
+
readonly name: "target";
|
|
829
|
+
}, {
|
|
830
|
+
readonly type: "tuple[]";
|
|
831
|
+
readonly name: "selectorRules";
|
|
832
|
+
readonly components: readonly [{
|
|
833
|
+
readonly type: "bytes4";
|
|
834
|
+
readonly name: "selector";
|
|
835
|
+
}, {
|
|
836
|
+
readonly type: "address[]";
|
|
837
|
+
readonly name: "recipients";
|
|
838
|
+
}];
|
|
839
|
+
}];
|
|
840
|
+
}];
|
|
534
841
|
}, {
|
|
535
842
|
readonly name: "getTransactionKey";
|
|
536
843
|
readonly type: "function";
|
|
@@ -588,6 +895,28 @@ export declare namespace revoke {
|
|
|
588
895
|
readonly type: "uint256";
|
|
589
896
|
readonly name: "newLimit";
|
|
590
897
|
}];
|
|
898
|
+
}, {
|
|
899
|
+
readonly name: "AccessKeySpend";
|
|
900
|
+
readonly type: "event";
|
|
901
|
+
readonly inputs: readonly [{
|
|
902
|
+
readonly type: "address";
|
|
903
|
+
readonly name: "account";
|
|
904
|
+
readonly indexed: true;
|
|
905
|
+
}, {
|
|
906
|
+
readonly type: "address";
|
|
907
|
+
readonly name: "publicKey";
|
|
908
|
+
readonly indexed: true;
|
|
909
|
+
}, {
|
|
910
|
+
readonly type: "address";
|
|
911
|
+
readonly name: "token";
|
|
912
|
+
readonly indexed: true;
|
|
913
|
+
}, {
|
|
914
|
+
readonly type: "uint256";
|
|
915
|
+
readonly name: "amount";
|
|
916
|
+
}, {
|
|
917
|
+
readonly type: "uint256";
|
|
918
|
+
readonly name: "remainingLimit";
|
|
919
|
+
}];
|
|
591
920
|
}, {
|
|
592
921
|
readonly name: "UnauthorizedCaller";
|
|
593
922
|
readonly type: "error";
|
|
@@ -608,6 +937,10 @@ export declare namespace revoke {
|
|
|
608
937
|
readonly name: "SpendingLimitExceeded";
|
|
609
938
|
readonly type: "error";
|
|
610
939
|
readonly inputs: readonly [];
|
|
940
|
+
}, {
|
|
941
|
+
readonly name: "InvalidSpendingLimit";
|
|
942
|
+
readonly type: "error";
|
|
943
|
+
readonly inputs: readonly [];
|
|
611
944
|
}, {
|
|
612
945
|
readonly name: "InvalidSignatureType";
|
|
613
946
|
readonly type: "error";
|
|
@@ -624,6 +957,31 @@ export declare namespace revoke {
|
|
|
624
957
|
readonly name: "KeyAlreadyRevoked";
|
|
625
958
|
readonly type: "error";
|
|
626
959
|
readonly inputs: readonly [];
|
|
960
|
+
}, {
|
|
961
|
+
readonly name: "SignatureTypeMismatch";
|
|
962
|
+
readonly type: "error";
|
|
963
|
+
readonly inputs: readonly [{
|
|
964
|
+
readonly type: "uint8";
|
|
965
|
+
readonly name: "expected";
|
|
966
|
+
}, {
|
|
967
|
+
readonly type: "uint8";
|
|
968
|
+
readonly name: "actual";
|
|
969
|
+
}];
|
|
970
|
+
}, {
|
|
971
|
+
readonly name: "CallNotAllowed";
|
|
972
|
+
readonly type: "error";
|
|
973
|
+
readonly inputs: readonly [];
|
|
974
|
+
}, {
|
|
975
|
+
readonly name: "InvalidCallScope";
|
|
976
|
+
readonly type: "error";
|
|
977
|
+
readonly inputs: readonly [];
|
|
978
|
+
}, {
|
|
979
|
+
readonly name: "LegacyAuthorizeKeySelectorChanged";
|
|
980
|
+
readonly type: "error";
|
|
981
|
+
readonly inputs: readonly [{
|
|
982
|
+
readonly type: "bytes4";
|
|
983
|
+
readonly name: "newSelector";
|
|
984
|
+
}];
|
|
627
985
|
}], "KeyRevoked">;
|
|
628
986
|
}
|
|
629
987
|
/**
|
|
@@ -792,6 +1150,61 @@ export declare namespace updateLimit {
|
|
|
792
1150
|
}];
|
|
793
1151
|
}];
|
|
794
1152
|
readonly outputs: readonly [];
|
|
1153
|
+
}, {
|
|
1154
|
+
readonly name: "authorizeKey";
|
|
1155
|
+
readonly type: "function";
|
|
1156
|
+
readonly stateMutability: "nonpayable";
|
|
1157
|
+
readonly inputs: readonly [{
|
|
1158
|
+
readonly type: "address";
|
|
1159
|
+
readonly name: "keyId";
|
|
1160
|
+
}, {
|
|
1161
|
+
readonly type: "uint8";
|
|
1162
|
+
readonly name: "signatureType";
|
|
1163
|
+
}, {
|
|
1164
|
+
readonly type: "tuple";
|
|
1165
|
+
readonly name: "config";
|
|
1166
|
+
readonly components: readonly [{
|
|
1167
|
+
readonly type: "uint64";
|
|
1168
|
+
readonly name: "expiry";
|
|
1169
|
+
}, {
|
|
1170
|
+
readonly type: "bool";
|
|
1171
|
+
readonly name: "enforceLimits";
|
|
1172
|
+
}, {
|
|
1173
|
+
readonly type: "tuple[]";
|
|
1174
|
+
readonly name: "limits";
|
|
1175
|
+
readonly components: readonly [{
|
|
1176
|
+
readonly type: "address";
|
|
1177
|
+
readonly name: "token";
|
|
1178
|
+
}, {
|
|
1179
|
+
readonly type: "uint256";
|
|
1180
|
+
readonly name: "amount";
|
|
1181
|
+
}, {
|
|
1182
|
+
readonly type: "uint64";
|
|
1183
|
+
readonly name: "period";
|
|
1184
|
+
}];
|
|
1185
|
+
}, {
|
|
1186
|
+
readonly type: "bool";
|
|
1187
|
+
readonly name: "allowAnyCalls";
|
|
1188
|
+
}, {
|
|
1189
|
+
readonly type: "tuple[]";
|
|
1190
|
+
readonly name: "allowedCalls";
|
|
1191
|
+
readonly components: readonly [{
|
|
1192
|
+
readonly type: "address";
|
|
1193
|
+
readonly name: "target";
|
|
1194
|
+
}, {
|
|
1195
|
+
readonly type: "tuple[]";
|
|
1196
|
+
readonly name: "selectorRules";
|
|
1197
|
+
readonly components: readonly [{
|
|
1198
|
+
readonly type: "bytes4";
|
|
1199
|
+
readonly name: "selector";
|
|
1200
|
+
}, {
|
|
1201
|
+
readonly type: "address[]";
|
|
1202
|
+
readonly name: "recipients";
|
|
1203
|
+
}];
|
|
1204
|
+
}];
|
|
1205
|
+
}];
|
|
1206
|
+
}];
|
|
1207
|
+
readonly outputs: readonly [];
|
|
795
1208
|
}, {
|
|
796
1209
|
readonly name: "revokeKey";
|
|
797
1210
|
readonly type: "function";
|
|
@@ -816,6 +1229,44 @@ export declare namespace updateLimit {
|
|
|
816
1229
|
readonly name: "newLimit";
|
|
817
1230
|
}];
|
|
818
1231
|
readonly outputs: readonly [];
|
|
1232
|
+
}, {
|
|
1233
|
+
readonly name: "setAllowedCalls";
|
|
1234
|
+
readonly type: "function";
|
|
1235
|
+
readonly stateMutability: "nonpayable";
|
|
1236
|
+
readonly inputs: readonly [{
|
|
1237
|
+
readonly type: "address";
|
|
1238
|
+
readonly name: "keyId";
|
|
1239
|
+
}, {
|
|
1240
|
+
readonly type: "tuple[]";
|
|
1241
|
+
readonly name: "scopes";
|
|
1242
|
+
readonly components: readonly [{
|
|
1243
|
+
readonly type: "address";
|
|
1244
|
+
readonly name: "target";
|
|
1245
|
+
}, {
|
|
1246
|
+
readonly type: "tuple[]";
|
|
1247
|
+
readonly name: "selectorRules";
|
|
1248
|
+
readonly components: readonly [{
|
|
1249
|
+
readonly type: "bytes4";
|
|
1250
|
+
readonly name: "selector";
|
|
1251
|
+
}, {
|
|
1252
|
+
readonly type: "address[]";
|
|
1253
|
+
readonly name: "recipients";
|
|
1254
|
+
}];
|
|
1255
|
+
}];
|
|
1256
|
+
}];
|
|
1257
|
+
readonly outputs: readonly [];
|
|
1258
|
+
}, {
|
|
1259
|
+
readonly name: "removeAllowedCalls";
|
|
1260
|
+
readonly type: "function";
|
|
1261
|
+
readonly stateMutability: "nonpayable";
|
|
1262
|
+
readonly inputs: readonly [{
|
|
1263
|
+
readonly type: "address";
|
|
1264
|
+
readonly name: "keyId";
|
|
1265
|
+
}, {
|
|
1266
|
+
readonly type: "address";
|
|
1267
|
+
readonly name: "target";
|
|
1268
|
+
}];
|
|
1269
|
+
readonly outputs: readonly [];
|
|
819
1270
|
}, {
|
|
820
1271
|
readonly name: "getKey";
|
|
821
1272
|
readonly type: "function";
|
|
@@ -862,6 +1313,7 @@ export declare namespace updateLimit {
|
|
|
862
1313
|
}];
|
|
863
1314
|
readonly outputs: readonly [{
|
|
864
1315
|
readonly type: "uint256";
|
|
1316
|
+
readonly name: "remaining";
|
|
865
1317
|
}];
|
|
866
1318
|
}, {
|
|
867
1319
|
readonly name: "getRemainingLimitWithPeriod";
|
|
@@ -884,6 +1336,38 @@ export declare namespace updateLimit {
|
|
|
884
1336
|
readonly type: "uint64";
|
|
885
1337
|
readonly name: "periodEnd";
|
|
886
1338
|
}];
|
|
1339
|
+
}, {
|
|
1340
|
+
readonly name: "getAllowedCalls";
|
|
1341
|
+
readonly type: "function";
|
|
1342
|
+
readonly stateMutability: "view";
|
|
1343
|
+
readonly inputs: readonly [{
|
|
1344
|
+
readonly type: "address";
|
|
1345
|
+
readonly name: "account";
|
|
1346
|
+
}, {
|
|
1347
|
+
readonly type: "address";
|
|
1348
|
+
readonly name: "keyId";
|
|
1349
|
+
}];
|
|
1350
|
+
readonly outputs: readonly [{
|
|
1351
|
+
readonly type: "bool";
|
|
1352
|
+
readonly name: "isScoped";
|
|
1353
|
+
}, {
|
|
1354
|
+
readonly type: "tuple[]";
|
|
1355
|
+
readonly name: "scopes";
|
|
1356
|
+
readonly components: readonly [{
|
|
1357
|
+
readonly type: "address";
|
|
1358
|
+
readonly name: "target";
|
|
1359
|
+
}, {
|
|
1360
|
+
readonly type: "tuple[]";
|
|
1361
|
+
readonly name: "selectorRules";
|
|
1362
|
+
readonly components: readonly [{
|
|
1363
|
+
readonly type: "bytes4";
|
|
1364
|
+
readonly name: "selector";
|
|
1365
|
+
}, {
|
|
1366
|
+
readonly type: "address[]";
|
|
1367
|
+
readonly name: "recipients";
|
|
1368
|
+
}];
|
|
1369
|
+
}];
|
|
1370
|
+
}];
|
|
887
1371
|
}, {
|
|
888
1372
|
readonly name: "getTransactionKey";
|
|
889
1373
|
readonly type: "function";
|
|
@@ -941,6 +1425,28 @@ export declare namespace updateLimit {
|
|
|
941
1425
|
readonly type: "uint256";
|
|
942
1426
|
readonly name: "newLimit";
|
|
943
1427
|
}];
|
|
1428
|
+
}, {
|
|
1429
|
+
readonly name: "AccessKeySpend";
|
|
1430
|
+
readonly type: "event";
|
|
1431
|
+
readonly inputs: readonly [{
|
|
1432
|
+
readonly type: "address";
|
|
1433
|
+
readonly name: "account";
|
|
1434
|
+
readonly indexed: true;
|
|
1435
|
+
}, {
|
|
1436
|
+
readonly type: "address";
|
|
1437
|
+
readonly name: "publicKey";
|
|
1438
|
+
readonly indexed: true;
|
|
1439
|
+
}, {
|
|
1440
|
+
readonly type: "address";
|
|
1441
|
+
readonly name: "token";
|
|
1442
|
+
readonly indexed: true;
|
|
1443
|
+
}, {
|
|
1444
|
+
readonly type: "uint256";
|
|
1445
|
+
readonly name: "amount";
|
|
1446
|
+
}, {
|
|
1447
|
+
readonly type: "uint256";
|
|
1448
|
+
readonly name: "remainingLimit";
|
|
1449
|
+
}];
|
|
944
1450
|
}, {
|
|
945
1451
|
readonly name: "UnauthorizedCaller";
|
|
946
1452
|
readonly type: "error";
|
|
@@ -961,6 +1467,10 @@ export declare namespace updateLimit {
|
|
|
961
1467
|
readonly name: "SpendingLimitExceeded";
|
|
962
1468
|
readonly type: "error";
|
|
963
1469
|
readonly inputs: readonly [];
|
|
1470
|
+
}, {
|
|
1471
|
+
readonly name: "InvalidSpendingLimit";
|
|
1472
|
+
readonly type: "error";
|
|
1473
|
+
readonly inputs: readonly [];
|
|
964
1474
|
}, {
|
|
965
1475
|
readonly name: "InvalidSignatureType";
|
|
966
1476
|
readonly type: "error";
|
|
@@ -977,6 +1487,31 @@ export declare namespace updateLimit {
|
|
|
977
1487
|
readonly name: "KeyAlreadyRevoked";
|
|
978
1488
|
readonly type: "error";
|
|
979
1489
|
readonly inputs: readonly [];
|
|
1490
|
+
}, {
|
|
1491
|
+
readonly name: "SignatureTypeMismatch";
|
|
1492
|
+
readonly type: "error";
|
|
1493
|
+
readonly inputs: readonly [{
|
|
1494
|
+
readonly type: "uint8";
|
|
1495
|
+
readonly name: "expected";
|
|
1496
|
+
}, {
|
|
1497
|
+
readonly type: "uint8";
|
|
1498
|
+
readonly name: "actual";
|
|
1499
|
+
}];
|
|
1500
|
+
}, {
|
|
1501
|
+
readonly name: "CallNotAllowed";
|
|
1502
|
+
readonly type: "error";
|
|
1503
|
+
readonly inputs: readonly [];
|
|
1504
|
+
}, {
|
|
1505
|
+
readonly name: "InvalidCallScope";
|
|
1506
|
+
readonly type: "error";
|
|
1507
|
+
readonly inputs: readonly [];
|
|
1508
|
+
}, {
|
|
1509
|
+
readonly name: "LegacyAuthorizeKeySelectorChanged";
|
|
1510
|
+
readonly type: "error";
|
|
1511
|
+
readonly inputs: readonly [{
|
|
1512
|
+
readonly type: "bytes4";
|
|
1513
|
+
readonly name: "newSelector";
|
|
1514
|
+
}];
|
|
980
1515
|
}], "SpendingLimitUpdated">;
|
|
981
1516
|
}
|
|
982
1517
|
/**
|
|
@@ -1180,6 +1715,7 @@ export declare namespace getRemainingLimit {
|
|
|
1180
1715
|
}];
|
|
1181
1716
|
readonly outputs: readonly [{
|
|
1182
1717
|
readonly type: "uint256";
|
|
1718
|
+
readonly name: "remaining";
|
|
1183
1719
|
}];
|
|
1184
1720
|
}];
|
|
1185
1721
|
functionName: "getRemainingLimit";
|
|
@@ -1270,7 +1806,10 @@ export declare namespace signAuthorization {
|
|
|
1270
1806
|
limits?: {
|
|
1271
1807
|
token: Address;
|
|
1272
1808
|
limit: bigint;
|
|
1809
|
+
period?: number | undefined;
|
|
1273
1810
|
}[] | undefined;
|
|
1811
|
+
/** Call scopes restricting which contracts/selectors this key can call. */
|
|
1812
|
+
scopes?: KeyAuthorization.Scope[] | undefined;
|
|
1274
1813
|
};
|
|
1275
1814
|
type ReturnValue = Awaited<ReturnType<typeof signKeyAuthorization>>;
|
|
1276
1815
|
}
|