@gitmyabi/kernel 1.0.16 → 1.0.18

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-6e9bde3e-1793293357478`
5
+ - **Build ID**: `etherscan-kernel-620f41b5-1794663976807`
6
6
  - **Build Number**: 1
7
- - **Commit**: `c335a5f`
7
+ - **Commit**: `25d2bd8`
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.16
15
+ npm install @gitmyabi/kernel@1.0.18
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -105,4 +105,4 @@ This package includes type bindings for 1 contract(s) generated from ABI artifac
105
105
 
106
106
  ## License
107
107
 
108
- MIT
108
+ Apache License 2.0
@@ -43,11 +43,11 @@ export type SelectorManager_SelectorConfig = {
43
43
  callType: `0x${string}`;
44
44
  };
45
45
  /**
46
- * Kernel_json ABI
46
+ * Kernel ABI
47
47
  *
48
48
  * This ABI is typed using viem's type system for full type safety.
49
49
  */
50
- export declare const Kernel_jsonAbi: readonly [{
50
+ export declare const KernelAbi: readonly [{
51
51
  readonly inputs: readonly [{
52
52
  readonly internalType: "contract IEntryPoint";
53
53
  readonly name: "_entrypoint";
@@ -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";
@@ -63,6 +67,14 @@ export declare const Kernel_jsonAbi: readonly [{
63
67
  readonly inputs: readonly [];
64
68
  readonly name: "ExecutionReverted";
65
69
  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";
66
78
  }, {
67
79
  readonly inputs: readonly [];
68
80
  readonly name: "InvalidCallType";
@@ -95,6 +107,10 @@ export declare const Kernel_jsonAbi: readonly [{
95
107
  readonly inputs: readonly [];
96
108
  readonly name: "InvalidSelector";
97
109
  readonly type: "error";
110
+ }, {
111
+ readonly inputs: readonly [];
112
+ readonly name: "InvalidSelectorData";
113
+ readonly type: "error";
98
114
  }, {
99
115
  readonly inputs: readonly [];
100
116
  readonly name: "InvalidSignature";
@@ -343,6 +359,28 @@ export declare const Kernel_jsonAbi: readonly [{
343
359
  }];
344
360
  readonly stateMutability: "pure";
345
361
  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";
346
384
  }, {
347
385
  readonly inputs: readonly [];
348
386
  readonly name: "currentNonce";
@@ -499,6 +537,24 @@ export declare const Kernel_jsonAbi: readonly [{
499
537
  }];
500
538
  readonly stateMutability: "view";
501
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";
502
558
  }, {
503
559
  readonly inputs: readonly [{
504
560
  readonly internalType: "ValidationId";
@@ -516,6 +572,10 @@ export declare const Kernel_jsonAbi: readonly [{
516
572
  readonly internalType: "bytes";
517
573
  readonly name: "hookData";
518
574
  readonly type: "bytes";
575
+ }, {
576
+ readonly internalType: "bytes[]";
577
+ readonly name: "initConfig";
578
+ readonly type: "bytes[]";
519
579
  }];
520
580
  readonly name: "initialize";
521
581
  readonly outputs: readonly [];
@@ -627,7 +687,7 @@ export declare const Kernel_jsonAbi: readonly [{
627
687
  readonly type: "bytes32";
628
688
  }, {
629
689
  readonly internalType: "bytes";
630
- readonly name: "signature";
690
+ readonly name: "data";
631
691
  readonly type: "bytes";
632
692
  }];
633
693
  readonly name: "isValidSignature";
@@ -638,6 +698,92 @@ export declare const Kernel_jsonAbi: readonly [{
638
698
  }];
639
699
  readonly stateMutability: "view";
640
700
  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";
641
787
  }, {
642
788
  readonly inputs: readonly [{
643
789
  readonly internalType: "PermissionId";
@@ -665,6 +811,61 @@ export declare const Kernel_jsonAbi: readonly [{
665
811
  }];
666
812
  readonly stateMutability: "view";
667
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";
668
869
  }, {
669
870
  readonly inputs: readonly [];
670
871
  readonly name: "rootValidator";
@@ -873,15 +1074,15 @@ export declare const Kernel_jsonAbi: readonly [{
873
1074
  readonly type: "receive";
874
1075
  }];
875
1076
  /**
876
- * Type-safe ABI for Kernel_json
1077
+ * Type-safe ABI for Kernel
877
1078
  */
878
- export type Kernel_jsonAbi = typeof Kernel_jsonAbi;
1079
+ export type KernelAbi = typeof KernelAbi;
879
1080
  /**
880
- * Contract instance type for Kernel_json
1081
+ * Contract instance type for Kernel
881
1082
  */
882
- export type Kernel_jsonContract = any;
1083
+ export type KernelContract = any;
883
1084
  /**
884
- * Kernel_json Contract Class
1085
+ * Kernel Contract Class
885
1086
  *
886
1087
  * Provides a class-based API similar to TypeChain for interacting with the contract.
887
1088
  *
@@ -889,12 +1090,12 @@ export type Kernel_jsonContract = any;
889
1090
  * ```typescript
890
1091
  * import { createPublicClient, createWalletClient, http } from 'viem';
891
1092
  * import { mainnet } from 'viem/chains';
892
- * import { Kernel_json } from 'Kernel_json';
1093
+ * import { Kernel } from 'Kernel';
893
1094
  *
894
1095
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
895
1096
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
896
1097
  *
897
- * const contract = new Kernel_json('0x...', { publicClient, walletClient });
1098
+ * const contract = new Kernel('0x...', { publicClient, walletClient });
898
1099
  *
899
1100
  * // Read functions
900
1101
  * const result = await contract.balanceOf('0x...');
@@ -912,7 +1113,7 @@ export type Kernel_jsonContract = any;
912
1113
  * });
913
1114
  * ```
914
1115
  */
915
- export declare class Kernel_json {
1116
+ export declare class Kernel {
916
1117
  private contract;
917
1118
  private contractAddress;
918
1119
  private publicClient;
@@ -925,9 +1126,9 @@ export declare class Kernel_json {
925
1126
  */
926
1127
  get address(): Address;
927
1128
  /**
928
- * Get the underlying viem contract instance
1129
+ * Get the underlying viem contract instance.
929
1130
  */
930
- getContract(): Kernel_jsonContract;
1131
+ getContract(): KernelContract;
931
1132
  /**
932
1133
  * accountId
933
1134
  * pure
@@ -967,12 +1168,32 @@ export declare class Kernel_json {
967
1168
  * isValidSignature
968
1169
  * view
969
1170
  */
970
- isValidSignature(hash: `0x${string}`, signature: `0x${string}`): Promise<`0x${string}`>;
1171
+ isValidSignature(hash: `0x${string}`, data: `0x${string}`): Promise<`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}`>;
971
1187
  /**
972
1188
  * permissionConfig
973
1189
  * view
974
1190
  */
975
1191
  permissionConfig(pId: `0x${string}`): Promise<ValidationManager_PermissionConfig>;
1192
+ /**
1193
+ * replayableUserOpHash
1194
+ * pure
1195
+ */
1196
+ replayableUserOpHash(userOp: PackedUserOperation, entryPoint: `0x${string}`): Promise<`0x${string}`>;
976
1197
  /**
977
1198
  * rootValidator
978
1199
  * view
@@ -1003,6 +1224,23 @@ export declare class Kernel_json {
1003
1224
  * view
1004
1225
  */
1005
1226
  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}`>;
1006
1244
  /**
1007
1245
  * execute
1008
1246
  * payable
@@ -1054,12 +1292,29 @@ export declare class Kernel_json {
1054
1292
  nonce?: number;
1055
1293
  value?: bigint;
1056
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}`>;
1057
1312
  /**
1058
1313
  * initialize
1059
1314
  * nonpayable
1060
1315
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1061
1316
  */
1062
- initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, options?: {
1317
+ initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, initConfig: `0x${string}`[], options?: {
1063
1318
  accessList?: import('viem').AccessList;
1064
1319
  authorizationList?: import('viem').AuthorizationList;
1065
1320
  chain?: import('viem').Chain | null;
@@ -1199,6 +1454,23 @@ export declare class Kernel_json {
1199
1454
  * console.log('Would succeed:', result.result);
1200
1455
  */
1201
1456
  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>;
1202
1474
  /**
1203
1475
  * Simulate execute
1204
1476
  * Returns gas estimate and result without sending transaction
@@ -1250,12 +1522,29 @@ export declare class Kernel_json {
1250
1522
  nonce?: number;
1251
1523
  value?: bigint;
1252
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>;
1253
1542
  /**
1254
1543
  * Simulate initialize
1255
1544
  * Returns gas estimate and result without sending transaction
1256
1545
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1257
1546
  */
1258
- initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, options?: {
1547
+ initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, initConfig: `0x${string}`[], options?: {
1259
1548
  accessList?: import("viem").AccessList;
1260
1549
  authorizationList?: import("viem").AuthorizationList;
1261
1550
  chain?: import("viem").Chain | null;
@@ -1507,7 +1796,7 @@ export declare class Kernel_json {
1507
1796
  Upgraded: (callback: (event: {
1508
1797
  implementation: `0x${string}`;
1509
1798
  }) => void, filter?: {
1510
- implementation: `0x${string}`;
1799
+ implementation?: `0x${string}` | `0x${string}`[] | null;
1511
1800
  }) => () => void;
1512
1801
  /**
1513
1802
  * Watch ValidatorInstalled events