@gitmyabi/kernel 1.0.14 → 1.0.16
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/README.md +3 -3
- package/contracts/Kernel_json.d.ts +4 -293
- package/contracts/Kernel_json.js +7 -333
- package/contracts/Kernel_json.ts +7 -383
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Auto-generated TypeScript type bindings for **Kernel**
|
|
4
4
|
|
|
5
|
-
- **Build ID**: `etherscan-kernel-
|
|
5
|
+
- **Build ID**: `etherscan-kernel-6e9bde3e-1793293357478`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `c335a5f`
|
|
8
8
|
- **Branch**: `etherscan`
|
|
9
9
|
- **Target**: `ethers-v6`
|
|
10
10
|
- **Contracts**: 1
|
|
@@ -12,7 +12,7 @@ Auto-generated TypeScript type bindings for **Kernel**
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
npm install @gitmyabi/kernel@1.0.
|
|
15
|
+
npm install @gitmyabi/kernel@1.0.16
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
@@ -55,10 +55,6 @@ export declare const Kernel_jsonAbi: readonly [{
|
|
|
55
55
|
}];
|
|
56
56
|
readonly stateMutability: "nonpayable";
|
|
57
57
|
readonly type: "constructor";
|
|
58
|
-
}, {
|
|
59
|
-
readonly inputs: readonly [];
|
|
60
|
-
readonly name: "AlreadyInitialized";
|
|
61
|
-
readonly type: "error";
|
|
62
58
|
}, {
|
|
63
59
|
readonly inputs: readonly [];
|
|
64
60
|
readonly name: "EnableNotApproved";
|
|
@@ -67,14 +63,6 @@ export declare const Kernel_jsonAbi: readonly [{
|
|
|
67
63
|
readonly inputs: readonly [];
|
|
68
64
|
readonly name: "ExecutionReverted";
|
|
69
65
|
readonly type: "error";
|
|
70
|
-
}, {
|
|
71
|
-
readonly inputs: readonly [{
|
|
72
|
-
readonly internalType: "uint256";
|
|
73
|
-
readonly name: "idx";
|
|
74
|
-
readonly type: "uint256";
|
|
75
|
-
}];
|
|
76
|
-
readonly name: "InitConfigError";
|
|
77
|
-
readonly type: "error";
|
|
78
66
|
}, {
|
|
79
67
|
readonly inputs: readonly [];
|
|
80
68
|
readonly name: "InvalidCallType";
|
|
@@ -107,10 +95,6 @@ export declare const Kernel_jsonAbi: readonly [{
|
|
|
107
95
|
readonly inputs: readonly [];
|
|
108
96
|
readonly name: "InvalidSelector";
|
|
109
97
|
readonly type: "error";
|
|
110
|
-
}, {
|
|
111
|
-
readonly inputs: readonly [];
|
|
112
|
-
readonly name: "InvalidSelectorData";
|
|
113
|
-
readonly type: "error";
|
|
114
98
|
}, {
|
|
115
99
|
readonly inputs: readonly [];
|
|
116
100
|
readonly name: "InvalidSignature";
|
|
@@ -359,28 +343,6 @@ export declare const Kernel_jsonAbi: readonly [{
|
|
|
359
343
|
}];
|
|
360
344
|
readonly stateMutability: "pure";
|
|
361
345
|
readonly type: "function";
|
|
362
|
-
}, {
|
|
363
|
-
readonly inputs: readonly [{
|
|
364
|
-
readonly internalType: "ValidationId";
|
|
365
|
-
readonly name: "_rootValidator";
|
|
366
|
-
readonly type: "bytes21";
|
|
367
|
-
}, {
|
|
368
|
-
readonly internalType: "contract IHook";
|
|
369
|
-
readonly name: "hook";
|
|
370
|
-
readonly type: "address";
|
|
371
|
-
}, {
|
|
372
|
-
readonly internalType: "bytes";
|
|
373
|
-
readonly name: "validatorData";
|
|
374
|
-
readonly type: "bytes";
|
|
375
|
-
}, {
|
|
376
|
-
readonly internalType: "bytes";
|
|
377
|
-
readonly name: "hookData";
|
|
378
|
-
readonly type: "bytes";
|
|
379
|
-
}];
|
|
380
|
-
readonly name: "changeRootValidator";
|
|
381
|
-
readonly outputs: readonly [];
|
|
382
|
-
readonly stateMutability: "payable";
|
|
383
|
-
readonly type: "function";
|
|
384
346
|
}, {
|
|
385
347
|
readonly inputs: readonly [];
|
|
386
348
|
readonly name: "currentNonce";
|
|
@@ -537,24 +499,6 @@ export declare const Kernel_jsonAbi: readonly [{
|
|
|
537
499
|
}];
|
|
538
500
|
readonly stateMutability: "view";
|
|
539
501
|
readonly type: "function";
|
|
540
|
-
}, {
|
|
541
|
-
readonly inputs: readonly [{
|
|
542
|
-
readonly internalType: "ValidationId";
|
|
543
|
-
readonly name: "vId";
|
|
544
|
-
readonly type: "bytes21";
|
|
545
|
-
}, {
|
|
546
|
-
readonly internalType: "bytes4";
|
|
547
|
-
readonly name: "selector";
|
|
548
|
-
readonly type: "bytes4";
|
|
549
|
-
}, {
|
|
550
|
-
readonly internalType: "bool";
|
|
551
|
-
readonly name: "allow";
|
|
552
|
-
readonly type: "bool";
|
|
553
|
-
}];
|
|
554
|
-
readonly name: "grantAccess";
|
|
555
|
-
readonly outputs: readonly [];
|
|
556
|
-
readonly stateMutability: "payable";
|
|
557
|
-
readonly type: "function";
|
|
558
502
|
}, {
|
|
559
503
|
readonly inputs: readonly [{
|
|
560
504
|
readonly internalType: "ValidationId";
|
|
@@ -572,10 +516,6 @@ export declare const Kernel_jsonAbi: readonly [{
|
|
|
572
516
|
readonly internalType: "bytes";
|
|
573
517
|
readonly name: "hookData";
|
|
574
518
|
readonly type: "bytes";
|
|
575
|
-
}, {
|
|
576
|
-
readonly internalType: "bytes[]";
|
|
577
|
-
readonly name: "initConfig";
|
|
578
|
-
readonly type: "bytes[]";
|
|
579
519
|
}];
|
|
580
520
|
readonly name: "initialize";
|
|
581
521
|
readonly outputs: readonly [];
|
|
@@ -687,7 +627,7 @@ export declare const Kernel_jsonAbi: readonly [{
|
|
|
687
627
|
readonly type: "bytes32";
|
|
688
628
|
}, {
|
|
689
629
|
readonly internalType: "bytes";
|
|
690
|
-
readonly name: "
|
|
630
|
+
readonly name: "signature";
|
|
691
631
|
readonly type: "bytes";
|
|
692
632
|
}];
|
|
693
633
|
readonly name: "isValidSignature";
|
|
@@ -698,92 +638,6 @@ export declare const Kernel_jsonAbi: readonly [{
|
|
|
698
638
|
}];
|
|
699
639
|
readonly stateMutability: "view";
|
|
700
640
|
readonly type: "function";
|
|
701
|
-
}, {
|
|
702
|
-
readonly inputs: readonly [{
|
|
703
|
-
readonly internalType: "address";
|
|
704
|
-
readonly name: "";
|
|
705
|
-
readonly type: "address";
|
|
706
|
-
}, {
|
|
707
|
-
readonly internalType: "address";
|
|
708
|
-
readonly name: "";
|
|
709
|
-
readonly type: "address";
|
|
710
|
-
}, {
|
|
711
|
-
readonly internalType: "uint256[]";
|
|
712
|
-
readonly name: "";
|
|
713
|
-
readonly type: "uint256[]";
|
|
714
|
-
}, {
|
|
715
|
-
readonly internalType: "uint256[]";
|
|
716
|
-
readonly name: "";
|
|
717
|
-
readonly type: "uint256[]";
|
|
718
|
-
}, {
|
|
719
|
-
readonly internalType: "bytes";
|
|
720
|
-
readonly name: "";
|
|
721
|
-
readonly type: "bytes";
|
|
722
|
-
}];
|
|
723
|
-
readonly name: "onERC1155BatchReceived";
|
|
724
|
-
readonly outputs: readonly [{
|
|
725
|
-
readonly internalType: "bytes4";
|
|
726
|
-
readonly name: "";
|
|
727
|
-
readonly type: "bytes4";
|
|
728
|
-
}];
|
|
729
|
-
readonly stateMutability: "pure";
|
|
730
|
-
readonly type: "function";
|
|
731
|
-
}, {
|
|
732
|
-
readonly inputs: readonly [{
|
|
733
|
-
readonly internalType: "address";
|
|
734
|
-
readonly name: "";
|
|
735
|
-
readonly type: "address";
|
|
736
|
-
}, {
|
|
737
|
-
readonly internalType: "address";
|
|
738
|
-
readonly name: "";
|
|
739
|
-
readonly type: "address";
|
|
740
|
-
}, {
|
|
741
|
-
readonly internalType: "uint256";
|
|
742
|
-
readonly name: "";
|
|
743
|
-
readonly type: "uint256";
|
|
744
|
-
}, {
|
|
745
|
-
readonly internalType: "uint256";
|
|
746
|
-
readonly name: "";
|
|
747
|
-
readonly type: "uint256";
|
|
748
|
-
}, {
|
|
749
|
-
readonly internalType: "bytes";
|
|
750
|
-
readonly name: "";
|
|
751
|
-
readonly type: "bytes";
|
|
752
|
-
}];
|
|
753
|
-
readonly name: "onERC1155Received";
|
|
754
|
-
readonly outputs: readonly [{
|
|
755
|
-
readonly internalType: "bytes4";
|
|
756
|
-
readonly name: "";
|
|
757
|
-
readonly type: "bytes4";
|
|
758
|
-
}];
|
|
759
|
-
readonly stateMutability: "pure";
|
|
760
|
-
readonly type: "function";
|
|
761
|
-
}, {
|
|
762
|
-
readonly inputs: readonly [{
|
|
763
|
-
readonly internalType: "address";
|
|
764
|
-
readonly name: "";
|
|
765
|
-
readonly type: "address";
|
|
766
|
-
}, {
|
|
767
|
-
readonly internalType: "address";
|
|
768
|
-
readonly name: "";
|
|
769
|
-
readonly type: "address";
|
|
770
|
-
}, {
|
|
771
|
-
readonly internalType: "uint256";
|
|
772
|
-
readonly name: "";
|
|
773
|
-
readonly type: "uint256";
|
|
774
|
-
}, {
|
|
775
|
-
readonly internalType: "bytes";
|
|
776
|
-
readonly name: "";
|
|
777
|
-
readonly type: "bytes";
|
|
778
|
-
}];
|
|
779
|
-
readonly name: "onERC721Received";
|
|
780
|
-
readonly outputs: readonly [{
|
|
781
|
-
readonly internalType: "bytes4";
|
|
782
|
-
readonly name: "";
|
|
783
|
-
readonly type: "bytes4";
|
|
784
|
-
}];
|
|
785
|
-
readonly stateMutability: "pure";
|
|
786
|
-
readonly type: "function";
|
|
787
641
|
}, {
|
|
788
642
|
readonly inputs: readonly [{
|
|
789
643
|
readonly internalType: "PermissionId";
|
|
@@ -811,61 +665,6 @@ export declare const Kernel_jsonAbi: readonly [{
|
|
|
811
665
|
}];
|
|
812
666
|
readonly stateMutability: "view";
|
|
813
667
|
readonly type: "function";
|
|
814
|
-
}, {
|
|
815
|
-
readonly inputs: readonly [{
|
|
816
|
-
readonly components: readonly [{
|
|
817
|
-
readonly internalType: "address";
|
|
818
|
-
readonly name: "sender";
|
|
819
|
-
readonly type: "address";
|
|
820
|
-
}, {
|
|
821
|
-
readonly internalType: "uint256";
|
|
822
|
-
readonly name: "nonce";
|
|
823
|
-
readonly type: "uint256";
|
|
824
|
-
}, {
|
|
825
|
-
readonly internalType: "bytes";
|
|
826
|
-
readonly name: "initCode";
|
|
827
|
-
readonly type: "bytes";
|
|
828
|
-
}, {
|
|
829
|
-
readonly internalType: "bytes";
|
|
830
|
-
readonly name: "callData";
|
|
831
|
-
readonly type: "bytes";
|
|
832
|
-
}, {
|
|
833
|
-
readonly internalType: "bytes32";
|
|
834
|
-
readonly name: "accountGasLimits";
|
|
835
|
-
readonly type: "bytes32";
|
|
836
|
-
}, {
|
|
837
|
-
readonly internalType: "uint256";
|
|
838
|
-
readonly name: "preVerificationGas";
|
|
839
|
-
readonly type: "uint256";
|
|
840
|
-
}, {
|
|
841
|
-
readonly internalType: "bytes32";
|
|
842
|
-
readonly name: "gasFees";
|
|
843
|
-
readonly type: "bytes32";
|
|
844
|
-
}, {
|
|
845
|
-
readonly internalType: "bytes";
|
|
846
|
-
readonly name: "paymasterAndData";
|
|
847
|
-
readonly type: "bytes";
|
|
848
|
-
}, {
|
|
849
|
-
readonly internalType: "bytes";
|
|
850
|
-
readonly name: "signature";
|
|
851
|
-
readonly type: "bytes";
|
|
852
|
-
}];
|
|
853
|
-
readonly internalType: "struct PackedUserOperation";
|
|
854
|
-
readonly name: "userOp";
|
|
855
|
-
readonly type: "tuple";
|
|
856
|
-
}, {
|
|
857
|
-
readonly internalType: "address";
|
|
858
|
-
readonly name: "entryPoint";
|
|
859
|
-
readonly type: "address";
|
|
860
|
-
}];
|
|
861
|
-
readonly name: "replayableUserOpHash";
|
|
862
|
-
readonly outputs: readonly [{
|
|
863
|
-
readonly internalType: "bytes32";
|
|
864
|
-
readonly name: "";
|
|
865
|
-
readonly type: "bytes32";
|
|
866
|
-
}];
|
|
867
|
-
readonly stateMutability: "pure";
|
|
868
|
-
readonly type: "function";
|
|
869
668
|
}, {
|
|
870
669
|
readonly inputs: readonly [];
|
|
871
670
|
readonly name: "rootValidator";
|
|
@@ -1168,32 +967,12 @@ export declare class Kernel_json {
|
|
|
1168
967
|
* isValidSignature
|
|
1169
968
|
* view
|
|
1170
969
|
*/
|
|
1171
|
-
isValidSignature(hash: `0x${string}`,
|
|
1172
|
-
/**
|
|
1173
|
-
* onERC1155BatchReceived
|
|
1174
|
-
* pure
|
|
1175
|
-
*/
|
|
1176
|
-
onERC1155BatchReceived(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint[], arg3: bigint[], arg4: `0x${string}`): Promise<`0x${string}`>;
|
|
1177
|
-
/**
|
|
1178
|
-
* onERC1155Received
|
|
1179
|
-
* pure
|
|
1180
|
-
*/
|
|
1181
|
-
onERC1155Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: bigint, arg4: `0x${string}`): Promise<`0x${string}`>;
|
|
1182
|
-
/**
|
|
1183
|
-
* onERC721Received
|
|
1184
|
-
* pure
|
|
1185
|
-
*/
|
|
1186
|
-
onERC721Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: `0x${string}`): Promise<`0x${string}`>;
|
|
970
|
+
isValidSignature(hash: `0x${string}`, signature: `0x${string}`): Promise<`0x${string}`>;
|
|
1187
971
|
/**
|
|
1188
972
|
* permissionConfig
|
|
1189
973
|
* view
|
|
1190
974
|
*/
|
|
1191
975
|
permissionConfig(pId: `0x${string}`): Promise<ValidationManager_PermissionConfig>;
|
|
1192
|
-
/**
|
|
1193
|
-
* replayableUserOpHash
|
|
1194
|
-
* pure
|
|
1195
|
-
*/
|
|
1196
|
-
replayableUserOpHash(userOp: PackedUserOperation, entryPoint: `0x${string}`): Promise<`0x${string}`>;
|
|
1197
976
|
/**
|
|
1198
977
|
* rootValidator
|
|
1199
978
|
* view
|
|
@@ -1224,23 +1003,6 @@ export declare class Kernel_json {
|
|
|
1224
1003
|
* view
|
|
1225
1004
|
*/
|
|
1226
1005
|
validationConfig(vId: `0x${string}`): Promise<ValidationManager_ValidationConfig>;
|
|
1227
|
-
/**
|
|
1228
|
-
* changeRootValidator
|
|
1229
|
-
* payable
|
|
1230
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1231
|
-
*/
|
|
1232
|
-
changeRootValidator(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, options?: {
|
|
1233
|
-
accessList?: import('viem').AccessList;
|
|
1234
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1235
|
-
chain?: import('viem').Chain | null;
|
|
1236
|
-
dataSuffix?: `0x${string}`;
|
|
1237
|
-
gas?: bigint;
|
|
1238
|
-
gasPrice?: bigint;
|
|
1239
|
-
maxFeePerGas?: bigint;
|
|
1240
|
-
maxPriorityFeePerGas?: bigint;
|
|
1241
|
-
nonce?: number;
|
|
1242
|
-
value?: bigint;
|
|
1243
|
-
}): Promise<`0x${string}`>;
|
|
1244
1006
|
/**
|
|
1245
1007
|
* execute
|
|
1246
1008
|
* payable
|
|
@@ -1292,29 +1054,12 @@ export declare class Kernel_json {
|
|
|
1292
1054
|
nonce?: number;
|
|
1293
1055
|
value?: bigint;
|
|
1294
1056
|
}): Promise<`0x${string}`>;
|
|
1295
|
-
/**
|
|
1296
|
-
* grantAccess
|
|
1297
|
-
* payable
|
|
1298
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1299
|
-
*/
|
|
1300
|
-
grantAccess(vId: `0x${string}`, selector: `0x${string}`, allow: boolean, options?: {
|
|
1301
|
-
accessList?: import('viem').AccessList;
|
|
1302
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1303
|
-
chain?: import('viem').Chain | null;
|
|
1304
|
-
dataSuffix?: `0x${string}`;
|
|
1305
|
-
gas?: bigint;
|
|
1306
|
-
gasPrice?: bigint;
|
|
1307
|
-
maxFeePerGas?: bigint;
|
|
1308
|
-
maxPriorityFeePerGas?: bigint;
|
|
1309
|
-
nonce?: number;
|
|
1310
|
-
value?: bigint;
|
|
1311
|
-
}): Promise<`0x${string}`>;
|
|
1312
1057
|
/**
|
|
1313
1058
|
* initialize
|
|
1314
1059
|
* nonpayable
|
|
1315
1060
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1316
1061
|
*/
|
|
1317
|
-
initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`,
|
|
1062
|
+
initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, options?: {
|
|
1318
1063
|
accessList?: import('viem').AccessList;
|
|
1319
1064
|
authorizationList?: import('viem').AuthorizationList;
|
|
1320
1065
|
chain?: import('viem').Chain | null;
|
|
@@ -1454,23 +1199,6 @@ export declare class Kernel_json {
|
|
|
1454
1199
|
* console.log('Would succeed:', result.result);
|
|
1455
1200
|
*/
|
|
1456
1201
|
get simulate(): {
|
|
1457
|
-
/**
|
|
1458
|
-
* Simulate changeRootValidator
|
|
1459
|
-
* Returns gas estimate and result without sending transaction
|
|
1460
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1461
|
-
*/
|
|
1462
|
-
changeRootValidator(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, options?: {
|
|
1463
|
-
accessList?: import("viem").AccessList;
|
|
1464
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1465
|
-
chain?: import("viem").Chain | null;
|
|
1466
|
-
dataSuffix?: `0x${string}`;
|
|
1467
|
-
gas?: bigint;
|
|
1468
|
-
gasPrice?: bigint;
|
|
1469
|
-
maxFeePerGas?: bigint;
|
|
1470
|
-
maxPriorityFeePerGas?: bigint;
|
|
1471
|
-
nonce?: number;
|
|
1472
|
-
value?: bigint;
|
|
1473
|
-
}): Promise<void>;
|
|
1474
1202
|
/**
|
|
1475
1203
|
* Simulate execute
|
|
1476
1204
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1522,29 +1250,12 @@ export declare class Kernel_json {
|
|
|
1522
1250
|
nonce?: number;
|
|
1523
1251
|
value?: bigint;
|
|
1524
1252
|
}): Promise<void>;
|
|
1525
|
-
/**
|
|
1526
|
-
* Simulate grantAccess
|
|
1527
|
-
* Returns gas estimate and result without sending transaction
|
|
1528
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1529
|
-
*/
|
|
1530
|
-
grantAccess(vId: `0x${string}`, selector: `0x${string}`, allow: boolean, options?: {
|
|
1531
|
-
accessList?: import("viem").AccessList;
|
|
1532
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1533
|
-
chain?: import("viem").Chain | null;
|
|
1534
|
-
dataSuffix?: `0x${string}`;
|
|
1535
|
-
gas?: bigint;
|
|
1536
|
-
gasPrice?: bigint;
|
|
1537
|
-
maxFeePerGas?: bigint;
|
|
1538
|
-
maxPriorityFeePerGas?: bigint;
|
|
1539
|
-
nonce?: number;
|
|
1540
|
-
value?: bigint;
|
|
1541
|
-
}): Promise<void>;
|
|
1542
1253
|
/**
|
|
1543
1254
|
* Simulate initialize
|
|
1544
1255
|
* Returns gas estimate and result without sending transaction
|
|
1545
1256
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1546
1257
|
*/
|
|
1547
|
-
initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`,
|
|
1258
|
+
initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, options?: {
|
|
1548
1259
|
accessList?: import("viem").AccessList;
|
|
1549
1260
|
authorizationList?: import("viem").AuthorizationList;
|
|
1550
1261
|
chain?: import("viem").Chain | null;
|