@gitmyabi/kernel 1.0.8 → 1.0.10

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 CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Auto-generated TypeScript type bindings for **Kernel**
4
4
 
5
- - **Build ID**: `etherscan-kernel-4ad3a18e-1788874388704`
6
- - **Build Number**: 2
7
- - **Commit**: `d858fa2`
5
+ - **Build ID**: `etherscan-kernel-b8fa31c4-1789914613621`
6
+ - **Build Number**: 1
7
+ - **Commit**: `67558b9`
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.8
15
+ npm install @gitmyabi/kernel@1.0.10
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -55,6 +55,10 @@ 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";
58
62
  }, {
59
63
  readonly inputs: readonly [];
60
64
  readonly name: "EnableNotApproved";
@@ -103,6 +107,10 @@ export declare const Kernel_jsonAbi: readonly [{
103
107
  readonly inputs: readonly [];
104
108
  readonly name: "InvalidSelector";
105
109
  readonly type: "error";
110
+ }, {
111
+ readonly inputs: readonly [];
112
+ readonly name: "InvalidSelectorData";
113
+ readonly type: "error";
106
114
  }, {
107
115
  readonly inputs: readonly [];
108
116
  readonly name: "InvalidSignature";
@@ -529,6 +537,24 @@ export declare const Kernel_jsonAbi: readonly [{
529
537
  }];
530
538
  readonly stateMutability: "view";
531
539
  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";
532
558
  }, {
533
559
  readonly inputs: readonly [{
534
560
  readonly internalType: "ValidationId";
@@ -661,7 +687,7 @@ export declare const Kernel_jsonAbi: readonly [{
661
687
  readonly type: "bytes32";
662
688
  }, {
663
689
  readonly internalType: "bytes";
664
- readonly name: "signature";
690
+ readonly name: "data";
665
691
  readonly type: "bytes";
666
692
  }];
667
693
  readonly name: "isValidSignature";
@@ -785,6 +811,61 @@ export declare const Kernel_jsonAbi: readonly [{
785
811
  }];
786
812
  readonly stateMutability: "view";
787
813
  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";
788
869
  }, {
789
870
  readonly inputs: readonly [];
790
871
  readonly name: "rootValidator";
@@ -1087,7 +1168,7 @@ export declare class Kernel_json {
1087
1168
  * isValidSignature
1088
1169
  * view
1089
1170
  */
1090
- isValidSignature(hash: `0x${string}`, signature: `0x${string}`): Promise<`0x${string}`>;
1171
+ isValidSignature(hash: `0x${string}`, data: `0x${string}`): Promise<`0x${string}`>;
1091
1172
  /**
1092
1173
  * onERC1155BatchReceived
1093
1174
  * pure
@@ -1108,6 +1189,11 @@ export declare class Kernel_json {
1108
1189
  * view
1109
1190
  */
1110
1191
  permissionConfig(pId: `0x${string}`): Promise<ValidationManager_PermissionConfig>;
1192
+ /**
1193
+ * replayableUserOpHash
1194
+ * pure
1195
+ */
1196
+ replayableUserOpHash(userOp: PackedUserOperation, entryPoint: `0x${string}`): Promise<`0x${string}`>;
1111
1197
  /**
1112
1198
  * rootValidator
1113
1199
  * view
@@ -1206,6 +1292,23 @@ export declare class Kernel_json {
1206
1292
  nonce?: number;
1207
1293
  value?: bigint;
1208
1294
  }): 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}`>;
1209
1312
  /**
1210
1313
  * initialize
1211
1314
  * nonpayable
@@ -1419,6 +1522,23 @@ export declare class Kernel_json {
1419
1522
  nonce?: number;
1420
1523
  value?: bigint;
1421
1524
  }): 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>;
1422
1542
  /**
1423
1543
  * Simulate initialize
1424
1544
  * Returns gas estimate and result without sending transaction
@@ -19,6 +19,11 @@ exports.Kernel_jsonAbi = [
19
19
  "stateMutability": "nonpayable",
20
20
  "type": "constructor"
21
21
  },
22
+ {
23
+ "inputs": [],
24
+ "name": "AlreadyInitialized",
25
+ "type": "error"
26
+ },
22
27
  {
23
28
  "inputs": [],
24
29
  "name": "EnableNotApproved",
@@ -80,6 +85,11 @@ exports.Kernel_jsonAbi = [
80
85
  "name": "InvalidSelector",
81
86
  "type": "error"
82
87
  },
88
+ {
89
+ "inputs": [],
90
+ "name": "InvalidSelectorData",
91
+ "type": "error"
92
+ },
83
93
  {
84
94
  "inputs": [],
85
95
  "name": "InvalidSignature",
@@ -626,6 +636,29 @@ exports.Kernel_jsonAbi = [
626
636
  "stateMutability": "view",
627
637
  "type": "function"
628
638
  },
639
+ {
640
+ "inputs": [
641
+ {
642
+ "internalType": "ValidationId",
643
+ "name": "vId",
644
+ "type": "bytes21"
645
+ },
646
+ {
647
+ "internalType": "bytes4",
648
+ "name": "selector",
649
+ "type": "bytes4"
650
+ },
651
+ {
652
+ "internalType": "bool",
653
+ "name": "allow",
654
+ "type": "bool"
655
+ }
656
+ ],
657
+ "name": "grantAccess",
658
+ "outputs": [],
659
+ "stateMutability": "payable",
660
+ "type": "function"
661
+ },
629
662
  {
630
663
  "inputs": [
631
664
  {
@@ -797,7 +830,7 @@ exports.Kernel_jsonAbi = [
797
830
  },
798
831
  {
799
832
  "internalType": "bytes",
800
- "name": "signature",
833
+ "name": "data",
801
834
  "type": "bytes"
802
835
  }
803
836
  ],
@@ -960,6 +993,77 @@ exports.Kernel_jsonAbi = [
960
993
  "stateMutability": "view",
961
994
  "type": "function"
962
995
  },
996
+ {
997
+ "inputs": [
998
+ {
999
+ "components": [
1000
+ {
1001
+ "internalType": "address",
1002
+ "name": "sender",
1003
+ "type": "address"
1004
+ },
1005
+ {
1006
+ "internalType": "uint256",
1007
+ "name": "nonce",
1008
+ "type": "uint256"
1009
+ },
1010
+ {
1011
+ "internalType": "bytes",
1012
+ "name": "initCode",
1013
+ "type": "bytes"
1014
+ },
1015
+ {
1016
+ "internalType": "bytes",
1017
+ "name": "callData",
1018
+ "type": "bytes"
1019
+ },
1020
+ {
1021
+ "internalType": "bytes32",
1022
+ "name": "accountGasLimits",
1023
+ "type": "bytes32"
1024
+ },
1025
+ {
1026
+ "internalType": "uint256",
1027
+ "name": "preVerificationGas",
1028
+ "type": "uint256"
1029
+ },
1030
+ {
1031
+ "internalType": "bytes32",
1032
+ "name": "gasFees",
1033
+ "type": "bytes32"
1034
+ },
1035
+ {
1036
+ "internalType": "bytes",
1037
+ "name": "paymasterAndData",
1038
+ "type": "bytes"
1039
+ },
1040
+ {
1041
+ "internalType": "bytes",
1042
+ "name": "signature",
1043
+ "type": "bytes"
1044
+ }
1045
+ ],
1046
+ "internalType": "struct PackedUserOperation",
1047
+ "name": "userOp",
1048
+ "type": "tuple"
1049
+ },
1050
+ {
1051
+ "internalType": "address",
1052
+ "name": "entryPoint",
1053
+ "type": "address"
1054
+ }
1055
+ ],
1056
+ "name": "replayableUserOpHash",
1057
+ "outputs": [
1058
+ {
1059
+ "internalType": "bytes32",
1060
+ "name": "",
1061
+ "type": "bytes32"
1062
+ }
1063
+ ],
1064
+ "stateMutability": "pure",
1065
+ "type": "function"
1066
+ },
963
1067
  {
964
1068
  "inputs": [],
965
1069
  "name": "rootValidator",
@@ -1341,8 +1445,8 @@ class Kernel_json {
1341
1445
  * isValidSignature
1342
1446
  * view
1343
1447
  */
1344
- async isValidSignature(hash, signature) {
1345
- return this.contract.read.isValidSignature([hash, signature]);
1448
+ async isValidSignature(hash, data) {
1449
+ return this.contract.read.isValidSignature([hash, data]);
1346
1450
  }
1347
1451
  /**
1348
1452
  * onERC1155BatchReceived
@@ -1372,6 +1476,13 @@ class Kernel_json {
1372
1476
  async permissionConfig(pId) {
1373
1477
  return this.contract.read.permissionConfig([pId]);
1374
1478
  }
1479
+ /**
1480
+ * replayableUserOpHash
1481
+ * pure
1482
+ */
1483
+ async replayableUserOpHash(userOp, entryPoint) {
1484
+ return this.contract.read.replayableUserOpHash([userOp, entryPoint]);
1485
+ }
1375
1486
  /**
1376
1487
  * rootValidator
1377
1488
  * view
@@ -1458,6 +1569,17 @@ class Kernel_json {
1458
1569
  }
1459
1570
  return this.contract.write.executeUserOp([userOp, userOpHash], options);
1460
1571
  }
1572
+ /**
1573
+ * grantAccess
1574
+ * payable
1575
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1576
+ */
1577
+ async grantAccess(vId, selector, allow, options) {
1578
+ if (!this.contract.write) {
1579
+ throw new Error('Wallet client is required for write operations');
1580
+ }
1581
+ return this.contract.write.grantAccess([vId, selector, allow], options);
1582
+ }
1461
1583
  /**
1462
1584
  * initialize
1463
1585
  * nonpayable
@@ -1592,6 +1714,14 @@ class Kernel_json {
1592
1714
  async executeUserOp(userOp, userOpHash, options) {
1593
1715
  return contract.simulate.executeUserOp([userOp, userOpHash], options);
1594
1716
  },
1717
+ /**
1718
+ * Simulate grantAccess
1719
+ * Returns gas estimate and result without sending transaction
1720
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1721
+ */
1722
+ async grantAccess(vId, selector, allow, options) {
1723
+ return contract.simulate.grantAccess([vId, selector, allow], options);
1724
+ },
1595
1725
  /**
1596
1726
  * Simulate initialize
1597
1727
  * Returns gas estimate and result without sending transaction
@@ -66,6 +66,11 @@ export const Kernel_jsonAbi = [
66
66
  "stateMutability": "nonpayable",
67
67
  "type": "constructor"
68
68
  },
69
+ {
70
+ "inputs": [],
71
+ "name": "AlreadyInitialized",
72
+ "type": "error"
73
+ },
69
74
  {
70
75
  "inputs": [],
71
76
  "name": "EnableNotApproved",
@@ -127,6 +132,11 @@ export const Kernel_jsonAbi = [
127
132
  "name": "InvalidSelector",
128
133
  "type": "error"
129
134
  },
135
+ {
136
+ "inputs": [],
137
+ "name": "InvalidSelectorData",
138
+ "type": "error"
139
+ },
130
140
  {
131
141
  "inputs": [],
132
142
  "name": "InvalidSignature",
@@ -673,6 +683,29 @@ export const Kernel_jsonAbi = [
673
683
  "stateMutability": "view",
674
684
  "type": "function"
675
685
  },
686
+ {
687
+ "inputs": [
688
+ {
689
+ "internalType": "ValidationId",
690
+ "name": "vId",
691
+ "type": "bytes21"
692
+ },
693
+ {
694
+ "internalType": "bytes4",
695
+ "name": "selector",
696
+ "type": "bytes4"
697
+ },
698
+ {
699
+ "internalType": "bool",
700
+ "name": "allow",
701
+ "type": "bool"
702
+ }
703
+ ],
704
+ "name": "grantAccess",
705
+ "outputs": [],
706
+ "stateMutability": "payable",
707
+ "type": "function"
708
+ },
676
709
  {
677
710
  "inputs": [
678
711
  {
@@ -844,7 +877,7 @@ export const Kernel_jsonAbi = [
844
877
  },
845
878
  {
846
879
  "internalType": "bytes",
847
- "name": "signature",
880
+ "name": "data",
848
881
  "type": "bytes"
849
882
  }
850
883
  ],
@@ -1007,6 +1040,77 @@ export const Kernel_jsonAbi = [
1007
1040
  "stateMutability": "view",
1008
1041
  "type": "function"
1009
1042
  },
1043
+ {
1044
+ "inputs": [
1045
+ {
1046
+ "components": [
1047
+ {
1048
+ "internalType": "address",
1049
+ "name": "sender",
1050
+ "type": "address"
1051
+ },
1052
+ {
1053
+ "internalType": "uint256",
1054
+ "name": "nonce",
1055
+ "type": "uint256"
1056
+ },
1057
+ {
1058
+ "internalType": "bytes",
1059
+ "name": "initCode",
1060
+ "type": "bytes"
1061
+ },
1062
+ {
1063
+ "internalType": "bytes",
1064
+ "name": "callData",
1065
+ "type": "bytes"
1066
+ },
1067
+ {
1068
+ "internalType": "bytes32",
1069
+ "name": "accountGasLimits",
1070
+ "type": "bytes32"
1071
+ },
1072
+ {
1073
+ "internalType": "uint256",
1074
+ "name": "preVerificationGas",
1075
+ "type": "uint256"
1076
+ },
1077
+ {
1078
+ "internalType": "bytes32",
1079
+ "name": "gasFees",
1080
+ "type": "bytes32"
1081
+ },
1082
+ {
1083
+ "internalType": "bytes",
1084
+ "name": "paymasterAndData",
1085
+ "type": "bytes"
1086
+ },
1087
+ {
1088
+ "internalType": "bytes",
1089
+ "name": "signature",
1090
+ "type": "bytes"
1091
+ }
1092
+ ],
1093
+ "internalType": "struct PackedUserOperation",
1094
+ "name": "userOp",
1095
+ "type": "tuple"
1096
+ },
1097
+ {
1098
+ "internalType": "address",
1099
+ "name": "entryPoint",
1100
+ "type": "address"
1101
+ }
1102
+ ],
1103
+ "name": "replayableUserOpHash",
1104
+ "outputs": [
1105
+ {
1106
+ "internalType": "bytes32",
1107
+ "name": "",
1108
+ "type": "bytes32"
1109
+ }
1110
+ ],
1111
+ "stateMutability": "pure",
1112
+ "type": "function"
1113
+ },
1010
1114
  {
1011
1115
  "inputs": [],
1012
1116
  "name": "rootValidator",
@@ -1421,8 +1525,8 @@ export class Kernel_json {
1421
1525
  * isValidSignature
1422
1526
  * view
1423
1527
  */
1424
- async isValidSignature(hash: `0x${string}`, signature: `0x${string}`): Promise<`0x${string}`> {
1425
- return this.contract.read.isValidSignature([hash, signature] as const) as Promise<`0x${string}`>;
1528
+ async isValidSignature(hash: `0x${string}`, data: `0x${string}`): Promise<`0x${string}`> {
1529
+ return this.contract.read.isValidSignature([hash, data] as const) as Promise<`0x${string}`>;
1426
1530
  }
1427
1531
 
1428
1532
  /**
@@ -1457,6 +1561,14 @@ export class Kernel_json {
1457
1561
  return this.contract.read.permissionConfig([pId] as const) as Promise<ValidationManager_PermissionConfig>;
1458
1562
  }
1459
1563
 
1564
+ /**
1565
+ * replayableUserOpHash
1566
+ * pure
1567
+ */
1568
+ async replayableUserOpHash(userOp: PackedUserOperation, entryPoint: `0x${string}`): Promise<`0x${string}`> {
1569
+ return this.contract.read.replayableUserOpHash([userOp, entryPoint] as const) as Promise<`0x${string}`>;
1570
+ }
1571
+
1460
1572
  /**
1461
1573
  * rootValidator
1462
1574
  * view
@@ -1597,6 +1709,29 @@ export class Kernel_json {
1597
1709
  return this.contract.write.executeUserOp([userOp, userOpHash] as const, options) as Promise<`0x${string}`>;
1598
1710
  }
1599
1711
 
1712
+ /**
1713
+ * grantAccess
1714
+ * payable
1715
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1716
+ */
1717
+ async grantAccess(vId: `0x${string}`, selector: `0x${string}`, allow: boolean, options?: {
1718
+ accessList?: import('viem').AccessList;
1719
+ authorizationList?: import('viem').AuthorizationList;
1720
+ chain?: import('viem').Chain | null;
1721
+ dataSuffix?: `0x${string}`;
1722
+ gas?: bigint;
1723
+ gasPrice?: bigint;
1724
+ maxFeePerGas?: bigint;
1725
+ maxPriorityFeePerGas?: bigint;
1726
+ nonce?: number;
1727
+ value?: bigint;
1728
+ }): Promise<`0x${string}`> {
1729
+ if (!this.contract.write) {
1730
+ throw new Error('Wallet client is required for write operations');
1731
+ }
1732
+ return this.contract.write.grantAccess([vId, selector, allow] as const, options) as Promise<`0x${string}`>;
1733
+ }
1734
+
1600
1735
  /**
1601
1736
  * initialize
1602
1737
  * nonpayable
@@ -1873,6 +2008,25 @@ export class Kernel_json {
1873
2008
  }): Promise<void> {
1874
2009
  return contract.simulate.executeUserOp([userOp, userOpHash] as const, options) as Promise<void>;
1875
2010
  },
2011
+ /**
2012
+ * Simulate grantAccess
2013
+ * Returns gas estimate and result without sending transaction
2014
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2015
+ */
2016
+ async grantAccess(vId: `0x${string}`, selector: `0x${string}`, allow: boolean, options?: {
2017
+ accessList?: import('viem').AccessList;
2018
+ authorizationList?: import('viem').AuthorizationList;
2019
+ chain?: import('viem').Chain | null;
2020
+ dataSuffix?: `0x${string}`;
2021
+ gas?: bigint;
2022
+ gasPrice?: bigint;
2023
+ maxFeePerGas?: bigint;
2024
+ maxPriorityFeePerGas?: bigint;
2025
+ nonce?: number;
2026
+ value?: bigint;
2027
+ }): Promise<void> {
2028
+ return contract.simulate.grantAccess([vId, selector, allow] as const, options) as Promise<void>;
2029
+ },
1876
2030
  /**
1877
2031
  * Simulate initialize
1878
2032
  * Returns gas estimate and result without sending transaction
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/kernel",
3
- "version": "1.0.8",
4
- "description": "Auto-generated TypeScript type bindings for Kernel (build etherscan-kernel-4ad3a18e-1788874388704, commit d858fa2, branch etherscan)",
3
+ "version": "1.0.10",
4
+ "description": "Auto-generated TypeScript type bindings for Kernel (build etherscan-kernel-b8fa31c4-1789914613621, commit 67558b9, branch etherscan)",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
7
7
  "exports": {
@@ -39,5 +39,5 @@
39
39
  "url": "https://github.com/etherscan/kernel"
40
40
  },
41
41
  "branch": "etherscan",
42
- "shortHash": "d858fa2"
42
+ "shortHash": "67558b9"
43
43
  }