@gitmyabi/kernel 1.0.14 → 1.0.15
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 +2 -122
- package/contracts/Kernel_json.js +3 -133
- package/contracts/Kernel_json.ts +3 -157
- 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-d9caa86c-1792920606325`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `6dd70b0`
|
|
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.15
|
|
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";
|
|
@@ -107,10 +103,6 @@ export declare const Kernel_jsonAbi: readonly [{
|
|
|
107
103
|
readonly inputs: readonly [];
|
|
108
104
|
readonly name: "InvalidSelector";
|
|
109
105
|
readonly type: "error";
|
|
110
|
-
}, {
|
|
111
|
-
readonly inputs: readonly [];
|
|
112
|
-
readonly name: "InvalidSelectorData";
|
|
113
|
-
readonly type: "error";
|
|
114
106
|
}, {
|
|
115
107
|
readonly inputs: readonly [];
|
|
116
108
|
readonly name: "InvalidSignature";
|
|
@@ -537,24 +529,6 @@ export declare const Kernel_jsonAbi: readonly [{
|
|
|
537
529
|
}];
|
|
538
530
|
readonly stateMutability: "view";
|
|
539
531
|
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
532
|
}, {
|
|
559
533
|
readonly inputs: readonly [{
|
|
560
534
|
readonly internalType: "ValidationId";
|
|
@@ -687,7 +661,7 @@ export declare const Kernel_jsonAbi: readonly [{
|
|
|
687
661
|
readonly type: "bytes32";
|
|
688
662
|
}, {
|
|
689
663
|
readonly internalType: "bytes";
|
|
690
|
-
readonly name: "
|
|
664
|
+
readonly name: "signature";
|
|
691
665
|
readonly type: "bytes";
|
|
692
666
|
}];
|
|
693
667
|
readonly name: "isValidSignature";
|
|
@@ -811,61 +785,6 @@ export declare const Kernel_jsonAbi: readonly [{
|
|
|
811
785
|
}];
|
|
812
786
|
readonly stateMutability: "view";
|
|
813
787
|
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
788
|
}, {
|
|
870
789
|
readonly inputs: readonly [];
|
|
871
790
|
readonly name: "rootValidator";
|
|
@@ -1168,7 +1087,7 @@ export declare class Kernel_json {
|
|
|
1168
1087
|
* isValidSignature
|
|
1169
1088
|
* view
|
|
1170
1089
|
*/
|
|
1171
|
-
isValidSignature(hash: `0x${string}`,
|
|
1090
|
+
isValidSignature(hash: `0x${string}`, signature: `0x${string}`): Promise<`0x${string}`>;
|
|
1172
1091
|
/**
|
|
1173
1092
|
* onERC1155BatchReceived
|
|
1174
1093
|
* pure
|
|
@@ -1189,11 +1108,6 @@ export declare class Kernel_json {
|
|
|
1189
1108
|
* view
|
|
1190
1109
|
*/
|
|
1191
1110
|
permissionConfig(pId: `0x${string}`): Promise<ValidationManager_PermissionConfig>;
|
|
1192
|
-
/**
|
|
1193
|
-
* replayableUserOpHash
|
|
1194
|
-
* pure
|
|
1195
|
-
*/
|
|
1196
|
-
replayableUserOpHash(userOp: PackedUserOperation, entryPoint: `0x${string}`): Promise<`0x${string}`>;
|
|
1197
1111
|
/**
|
|
1198
1112
|
* rootValidator
|
|
1199
1113
|
* view
|
|
@@ -1292,23 +1206,6 @@ export declare class Kernel_json {
|
|
|
1292
1206
|
nonce?: number;
|
|
1293
1207
|
value?: bigint;
|
|
1294
1208
|
}): 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
1209
|
/**
|
|
1313
1210
|
* initialize
|
|
1314
1211
|
* nonpayable
|
|
@@ -1522,23 +1419,6 @@ export declare class Kernel_json {
|
|
|
1522
1419
|
nonce?: number;
|
|
1523
1420
|
value?: bigint;
|
|
1524
1421
|
}): 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
1422
|
/**
|
|
1543
1423
|
* Simulate initialize
|
|
1544
1424
|
* Returns gas estimate and result without sending transaction
|
package/contracts/Kernel_json.js
CHANGED
|
@@ -19,11 +19,6 @@ exports.Kernel_jsonAbi = [
|
|
|
19
19
|
"stateMutability": "nonpayable",
|
|
20
20
|
"type": "constructor"
|
|
21
21
|
},
|
|
22
|
-
{
|
|
23
|
-
"inputs": [],
|
|
24
|
-
"name": "AlreadyInitialized",
|
|
25
|
-
"type": "error"
|
|
26
|
-
},
|
|
27
22
|
{
|
|
28
23
|
"inputs": [],
|
|
29
24
|
"name": "EnableNotApproved",
|
|
@@ -85,11 +80,6 @@ exports.Kernel_jsonAbi = [
|
|
|
85
80
|
"name": "InvalidSelector",
|
|
86
81
|
"type": "error"
|
|
87
82
|
},
|
|
88
|
-
{
|
|
89
|
-
"inputs": [],
|
|
90
|
-
"name": "InvalidSelectorData",
|
|
91
|
-
"type": "error"
|
|
92
|
-
},
|
|
93
83
|
{
|
|
94
84
|
"inputs": [],
|
|
95
85
|
"name": "InvalidSignature",
|
|
@@ -636,29 +626,6 @@ exports.Kernel_jsonAbi = [
|
|
|
636
626
|
"stateMutability": "view",
|
|
637
627
|
"type": "function"
|
|
638
628
|
},
|
|
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
|
-
},
|
|
662
629
|
{
|
|
663
630
|
"inputs": [
|
|
664
631
|
{
|
|
@@ -830,7 +797,7 @@ exports.Kernel_jsonAbi = [
|
|
|
830
797
|
},
|
|
831
798
|
{
|
|
832
799
|
"internalType": "bytes",
|
|
833
|
-
"name": "
|
|
800
|
+
"name": "signature",
|
|
834
801
|
"type": "bytes"
|
|
835
802
|
}
|
|
836
803
|
],
|
|
@@ -993,77 +960,6 @@ exports.Kernel_jsonAbi = [
|
|
|
993
960
|
"stateMutability": "view",
|
|
994
961
|
"type": "function"
|
|
995
962
|
},
|
|
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
|
-
},
|
|
1067
963
|
{
|
|
1068
964
|
"inputs": [],
|
|
1069
965
|
"name": "rootValidator",
|
|
@@ -1445,8 +1341,8 @@ class Kernel_json {
|
|
|
1445
1341
|
* isValidSignature
|
|
1446
1342
|
* view
|
|
1447
1343
|
*/
|
|
1448
|
-
async isValidSignature(hash,
|
|
1449
|
-
return this.contract.read.isValidSignature([hash,
|
|
1344
|
+
async isValidSignature(hash, signature) {
|
|
1345
|
+
return this.contract.read.isValidSignature([hash, signature]);
|
|
1450
1346
|
}
|
|
1451
1347
|
/**
|
|
1452
1348
|
* onERC1155BatchReceived
|
|
@@ -1476,13 +1372,6 @@ class Kernel_json {
|
|
|
1476
1372
|
async permissionConfig(pId) {
|
|
1477
1373
|
return this.contract.read.permissionConfig([pId]);
|
|
1478
1374
|
}
|
|
1479
|
-
/**
|
|
1480
|
-
* replayableUserOpHash
|
|
1481
|
-
* pure
|
|
1482
|
-
*/
|
|
1483
|
-
async replayableUserOpHash(userOp, entryPoint) {
|
|
1484
|
-
return this.contract.read.replayableUserOpHash([userOp, entryPoint]);
|
|
1485
|
-
}
|
|
1486
1375
|
/**
|
|
1487
1376
|
* rootValidator
|
|
1488
1377
|
* view
|
|
@@ -1569,17 +1458,6 @@ class Kernel_json {
|
|
|
1569
1458
|
}
|
|
1570
1459
|
return this.contract.write.executeUserOp([userOp, userOpHash], options);
|
|
1571
1460
|
}
|
|
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
|
-
}
|
|
1583
1461
|
/**
|
|
1584
1462
|
* initialize
|
|
1585
1463
|
* nonpayable
|
|
@@ -1714,14 +1592,6 @@ class Kernel_json {
|
|
|
1714
1592
|
async executeUserOp(userOp, userOpHash, options) {
|
|
1715
1593
|
return contract.simulate.executeUserOp([userOp, userOpHash], options);
|
|
1716
1594
|
},
|
|
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
|
-
},
|
|
1725
1595
|
/**
|
|
1726
1596
|
* Simulate initialize
|
|
1727
1597
|
* Returns gas estimate and result without sending transaction
|
package/contracts/Kernel_json.ts
CHANGED
|
@@ -66,11 +66,6 @@ export const Kernel_jsonAbi = [
|
|
|
66
66
|
"stateMutability": "nonpayable",
|
|
67
67
|
"type": "constructor"
|
|
68
68
|
},
|
|
69
|
-
{
|
|
70
|
-
"inputs": [],
|
|
71
|
-
"name": "AlreadyInitialized",
|
|
72
|
-
"type": "error"
|
|
73
|
-
},
|
|
74
69
|
{
|
|
75
70
|
"inputs": [],
|
|
76
71
|
"name": "EnableNotApproved",
|
|
@@ -132,11 +127,6 @@ export const Kernel_jsonAbi = [
|
|
|
132
127
|
"name": "InvalidSelector",
|
|
133
128
|
"type": "error"
|
|
134
129
|
},
|
|
135
|
-
{
|
|
136
|
-
"inputs": [],
|
|
137
|
-
"name": "InvalidSelectorData",
|
|
138
|
-
"type": "error"
|
|
139
|
-
},
|
|
140
130
|
{
|
|
141
131
|
"inputs": [],
|
|
142
132
|
"name": "InvalidSignature",
|
|
@@ -683,29 +673,6 @@ export const Kernel_jsonAbi = [
|
|
|
683
673
|
"stateMutability": "view",
|
|
684
674
|
"type": "function"
|
|
685
675
|
},
|
|
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
|
-
},
|
|
709
676
|
{
|
|
710
677
|
"inputs": [
|
|
711
678
|
{
|
|
@@ -877,7 +844,7 @@ export const Kernel_jsonAbi = [
|
|
|
877
844
|
},
|
|
878
845
|
{
|
|
879
846
|
"internalType": "bytes",
|
|
880
|
-
"name": "
|
|
847
|
+
"name": "signature",
|
|
881
848
|
"type": "bytes"
|
|
882
849
|
}
|
|
883
850
|
],
|
|
@@ -1040,77 +1007,6 @@ export const Kernel_jsonAbi = [
|
|
|
1040
1007
|
"stateMutability": "view",
|
|
1041
1008
|
"type": "function"
|
|
1042
1009
|
},
|
|
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
|
-
},
|
|
1114
1010
|
{
|
|
1115
1011
|
"inputs": [],
|
|
1116
1012
|
"name": "rootValidator",
|
|
@@ -1525,8 +1421,8 @@ export class Kernel_json {
|
|
|
1525
1421
|
* isValidSignature
|
|
1526
1422
|
* view
|
|
1527
1423
|
*/
|
|
1528
|
-
async isValidSignature(hash: `0x${string}`,
|
|
1529
|
-
return this.contract.read.isValidSignature([hash,
|
|
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}`>;
|
|
1530
1426
|
}
|
|
1531
1427
|
|
|
1532
1428
|
/**
|
|
@@ -1561,14 +1457,6 @@ export class Kernel_json {
|
|
|
1561
1457
|
return this.contract.read.permissionConfig([pId] as const) as Promise<ValidationManager_PermissionConfig>;
|
|
1562
1458
|
}
|
|
1563
1459
|
|
|
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
|
-
|
|
1572
1460
|
/**
|
|
1573
1461
|
* rootValidator
|
|
1574
1462
|
* view
|
|
@@ -1709,29 +1597,6 @@ export class Kernel_json {
|
|
|
1709
1597
|
return this.contract.write.executeUserOp([userOp, userOpHash] as const, options) as Promise<`0x${string}`>;
|
|
1710
1598
|
}
|
|
1711
1599
|
|
|
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
|
-
|
|
1735
1600
|
/**
|
|
1736
1601
|
* initialize
|
|
1737
1602
|
* nonpayable
|
|
@@ -2008,25 +1873,6 @@ export class Kernel_json {
|
|
|
2008
1873
|
}): Promise<void> {
|
|
2009
1874
|
return contract.simulate.executeUserOp([userOp, userOpHash] as const, options) as Promise<void>;
|
|
2010
1875
|
},
|
|
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
|
-
},
|
|
2030
1876
|
/**
|
|
2031
1877
|
* Simulate initialize
|
|
2032
1878
|
* 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.
|
|
4
|
-
"description": "Auto-generated TypeScript type bindings for Kernel (build etherscan-kernel-
|
|
3
|
+
"version": "1.0.15",
|
|
4
|
+
"description": "Auto-generated TypeScript type bindings for Kernel (build etherscan-kernel-d9caa86c-1792920606325, commit 6dd70b0, 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": "
|
|
42
|
+
"shortHash": "6dd70b0"
|
|
43
43
|
}
|