@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.
@@ -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",
@@ -34,17 +29,6 @@ exports.Kernel_jsonAbi = [
34
29
  "name": "ExecutionReverted",
35
30
  "type": "error"
36
31
  },
37
- {
38
- "inputs": [
39
- {
40
- "internalType": "uint256",
41
- "name": "idx",
42
- "type": "uint256"
43
- }
44
- ],
45
- "name": "InitConfigError",
46
- "type": "error"
47
- },
48
32
  {
49
33
  "inputs": [],
50
34
  "name": "InvalidCallType",
@@ -85,11 +69,6 @@ exports.Kernel_jsonAbi = [
85
69
  "name": "InvalidSelector",
86
70
  "type": "error"
87
71
  },
88
- {
89
- "inputs": [],
90
- "name": "InvalidSelectorData",
91
- "type": "error"
92
- },
93
72
  {
94
73
  "inputs": [],
95
74
  "name": "InvalidSignature",
@@ -406,34 +385,6 @@ exports.Kernel_jsonAbi = [
406
385
  "stateMutability": "pure",
407
386
  "type": "function"
408
387
  },
409
- {
410
- "inputs": [
411
- {
412
- "internalType": "ValidationId",
413
- "name": "_rootValidator",
414
- "type": "bytes21"
415
- },
416
- {
417
- "internalType": "contract IHook",
418
- "name": "hook",
419
- "type": "address"
420
- },
421
- {
422
- "internalType": "bytes",
423
- "name": "validatorData",
424
- "type": "bytes"
425
- },
426
- {
427
- "internalType": "bytes",
428
- "name": "hookData",
429
- "type": "bytes"
430
- }
431
- ],
432
- "name": "changeRootValidator",
433
- "outputs": [],
434
- "stateMutability": "payable",
435
- "type": "function"
436
- },
437
388
  {
438
389
  "inputs": [],
439
390
  "name": "currentNonce",
@@ -636,29 +587,6 @@ exports.Kernel_jsonAbi = [
636
587
  "stateMutability": "view",
637
588
  "type": "function"
638
589
  },
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
590
  {
663
591
  "inputs": [
664
592
  {
@@ -680,11 +608,6 @@ exports.Kernel_jsonAbi = [
680
608
  "internalType": "bytes",
681
609
  "name": "hookData",
682
610
  "type": "bytes"
683
- },
684
- {
685
- "internalType": "bytes[]",
686
- "name": "initConfig",
687
- "type": "bytes[]"
688
611
  }
689
612
  ],
690
613
  "name": "initialize",
@@ -830,7 +753,7 @@ exports.Kernel_jsonAbi = [
830
753
  },
831
754
  {
832
755
  "internalType": "bytes",
833
- "name": "data",
756
+ "name": "signature",
834
757
  "type": "bytes"
835
758
  }
836
759
  ],
@@ -845,118 +768,6 @@ exports.Kernel_jsonAbi = [
845
768
  "stateMutability": "view",
846
769
  "type": "function"
847
770
  },
848
- {
849
- "inputs": [
850
- {
851
- "internalType": "address",
852
- "name": "",
853
- "type": "address"
854
- },
855
- {
856
- "internalType": "address",
857
- "name": "",
858
- "type": "address"
859
- },
860
- {
861
- "internalType": "uint256[]",
862
- "name": "",
863
- "type": "uint256[]"
864
- },
865
- {
866
- "internalType": "uint256[]",
867
- "name": "",
868
- "type": "uint256[]"
869
- },
870
- {
871
- "internalType": "bytes",
872
- "name": "",
873
- "type": "bytes"
874
- }
875
- ],
876
- "name": "onERC1155BatchReceived",
877
- "outputs": [
878
- {
879
- "internalType": "bytes4",
880
- "name": "",
881
- "type": "bytes4"
882
- }
883
- ],
884
- "stateMutability": "pure",
885
- "type": "function"
886
- },
887
- {
888
- "inputs": [
889
- {
890
- "internalType": "address",
891
- "name": "",
892
- "type": "address"
893
- },
894
- {
895
- "internalType": "address",
896
- "name": "",
897
- "type": "address"
898
- },
899
- {
900
- "internalType": "uint256",
901
- "name": "",
902
- "type": "uint256"
903
- },
904
- {
905
- "internalType": "uint256",
906
- "name": "",
907
- "type": "uint256"
908
- },
909
- {
910
- "internalType": "bytes",
911
- "name": "",
912
- "type": "bytes"
913
- }
914
- ],
915
- "name": "onERC1155Received",
916
- "outputs": [
917
- {
918
- "internalType": "bytes4",
919
- "name": "",
920
- "type": "bytes4"
921
- }
922
- ],
923
- "stateMutability": "pure",
924
- "type": "function"
925
- },
926
- {
927
- "inputs": [
928
- {
929
- "internalType": "address",
930
- "name": "",
931
- "type": "address"
932
- },
933
- {
934
- "internalType": "address",
935
- "name": "",
936
- "type": "address"
937
- },
938
- {
939
- "internalType": "uint256",
940
- "name": "",
941
- "type": "uint256"
942
- },
943
- {
944
- "internalType": "bytes",
945
- "name": "",
946
- "type": "bytes"
947
- }
948
- ],
949
- "name": "onERC721Received",
950
- "outputs": [
951
- {
952
- "internalType": "bytes4",
953
- "name": "",
954
- "type": "bytes4"
955
- }
956
- ],
957
- "stateMutability": "pure",
958
- "type": "function"
959
- },
960
771
  {
961
772
  "inputs": [
962
773
  {
@@ -993,77 +804,6 @@ exports.Kernel_jsonAbi = [
993
804
  "stateMutability": "view",
994
805
  "type": "function"
995
806
  },
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
807
  {
1068
808
  "inputs": [],
1069
809
  "name": "rootValidator",
@@ -1445,29 +1185,8 @@ class Kernel_json {
1445
1185
  * isValidSignature
1446
1186
  * view
1447
1187
  */
1448
- async isValidSignature(hash, data) {
1449
- return this.contract.read.isValidSignature([hash, data]);
1450
- }
1451
- /**
1452
- * onERC1155BatchReceived
1453
- * pure
1454
- */
1455
- async onERC1155BatchReceived(arg0, arg1, arg2, arg3, arg4) {
1456
- return this.contract.read.onERC1155BatchReceived([arg0, arg1, arg2, arg3, arg4]);
1457
- }
1458
- /**
1459
- * onERC1155Received
1460
- * pure
1461
- */
1462
- async onERC1155Received(arg0, arg1, arg2, arg3, arg4) {
1463
- return this.contract.read.onERC1155Received([arg0, arg1, arg2, arg3, arg4]);
1464
- }
1465
- /**
1466
- * onERC721Received
1467
- * pure
1468
- */
1469
- async onERC721Received(arg0, arg1, arg2, arg3) {
1470
- return this.contract.read.onERC721Received([arg0, arg1, arg2, arg3]);
1188
+ async isValidSignature(hash, signature) {
1189
+ return this.contract.read.isValidSignature([hash, signature]);
1471
1190
  }
1472
1191
  /**
1473
1192
  * permissionConfig
@@ -1476,13 +1195,6 @@ class Kernel_json {
1476
1195
  async permissionConfig(pId) {
1477
1196
  return this.contract.read.permissionConfig([pId]);
1478
1197
  }
1479
- /**
1480
- * replayableUserOpHash
1481
- * pure
1482
- */
1483
- async replayableUserOpHash(userOp, entryPoint) {
1484
- return this.contract.read.replayableUserOpHash([userOp, entryPoint]);
1485
- }
1486
1198
  /**
1487
1199
  * rootValidator
1488
1200
  * view
@@ -1525,17 +1237,6 @@ class Kernel_json {
1525
1237
  async validationConfig(vId) {
1526
1238
  return this.contract.read.validationConfig([vId]);
1527
1239
  }
1528
- /**
1529
- * changeRootValidator
1530
- * payable
1531
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1532
- */
1533
- async changeRootValidator(_rootValidator, hook, validatorData, hookData, options) {
1534
- if (!this.contract.write) {
1535
- throw new Error('Wallet client is required for write operations');
1536
- }
1537
- return this.contract.write.changeRootValidator([_rootValidator, hook, validatorData, hookData], options);
1538
- }
1539
1240
  /**
1540
1241
  * execute
1541
1242
  * payable
@@ -1569,27 +1270,16 @@ class Kernel_json {
1569
1270
  }
1570
1271
  return this.contract.write.executeUserOp([userOp, userOpHash], options);
1571
1272
  }
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
1273
  /**
1584
1274
  * initialize
1585
1275
  * nonpayable
1586
1276
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1587
1277
  */
1588
- async initialize(_rootValidator, hook, validatorData, hookData, initConfig, options) {
1278
+ async initialize(_rootValidator, hook, validatorData, hookData, options) {
1589
1279
  if (!this.contract.write) {
1590
1280
  throw new Error('Wallet client is required for write operations');
1591
1281
  }
1592
- return this.contract.write.initialize([_rootValidator, hook, validatorData, hookData, initConfig], options);
1282
+ return this.contract.write.initialize([_rootValidator, hook, validatorData, hookData], options);
1593
1283
  }
1594
1284
  /**
1595
1285
  * installModule
@@ -1682,14 +1372,6 @@ class Kernel_json {
1682
1372
  throw new Error('Public client is required for simulation');
1683
1373
  }
1684
1374
  return {
1685
- /**
1686
- * Simulate changeRootValidator
1687
- * Returns gas estimate and result without sending transaction
1688
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1689
- */
1690
- async changeRootValidator(_rootValidator, hook, validatorData, hookData, options) {
1691
- return contract.simulate.changeRootValidator([_rootValidator, hook, validatorData, hookData], options);
1692
- },
1693
1375
  /**
1694
1376
  * Simulate execute
1695
1377
  * Returns gas estimate and result without sending transaction
@@ -1714,21 +1396,13 @@ class Kernel_json {
1714
1396
  async executeUserOp(userOp, userOpHash, options) {
1715
1397
  return contract.simulate.executeUserOp([userOp, userOpHash], options);
1716
1398
  },
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
1399
  /**
1726
1400
  * Simulate initialize
1727
1401
  * Returns gas estimate and result without sending transaction
1728
1402
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1729
1403
  */
1730
- async initialize(_rootValidator, hook, validatorData, hookData, initConfig, options) {
1731
- return contract.simulate.initialize([_rootValidator, hook, validatorData, hookData, initConfig], options);
1404
+ async initialize(_rootValidator, hook, validatorData, hookData, options) {
1405
+ return contract.simulate.initialize([_rootValidator, hook, validatorData, hookData], options);
1732
1406
  },
1733
1407
  /**
1734
1408
  * Simulate installModule