@gitmyabi/kernel 1.0.5 → 1.0.8
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 +4 -4
- package/contracts/Kernel_json.d.ts +171 -2
- package/contracts/Kernel_json.js +200 -4
- package/contracts/Kernel_json.ts +226 -4
- 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-
|
|
6
|
-
- **Build Number**:
|
|
7
|
-
- **Commit**: `
|
|
5
|
+
- **Build ID**: `etherscan-kernel-4ad3a18e-1788874388704`
|
|
6
|
+
- **Build Number**: 2
|
|
7
|
+
- **Commit**: `d858fa2`
|
|
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.8
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
@@ -63,6 +63,14 @@ export declare const Kernel_jsonAbi: readonly [{
|
|
|
63
63
|
readonly inputs: readonly [];
|
|
64
64
|
readonly name: "ExecutionReverted";
|
|
65
65
|
readonly type: "error";
|
|
66
|
+
}, {
|
|
67
|
+
readonly inputs: readonly [{
|
|
68
|
+
readonly internalType: "uint256";
|
|
69
|
+
readonly name: "idx";
|
|
70
|
+
readonly type: "uint256";
|
|
71
|
+
}];
|
|
72
|
+
readonly name: "InitConfigError";
|
|
73
|
+
readonly type: "error";
|
|
66
74
|
}, {
|
|
67
75
|
readonly inputs: readonly [];
|
|
68
76
|
readonly name: "InvalidCallType";
|
|
@@ -343,6 +351,28 @@ export declare const Kernel_jsonAbi: readonly [{
|
|
|
343
351
|
}];
|
|
344
352
|
readonly stateMutability: "pure";
|
|
345
353
|
readonly type: "function";
|
|
354
|
+
}, {
|
|
355
|
+
readonly inputs: readonly [{
|
|
356
|
+
readonly internalType: "ValidationId";
|
|
357
|
+
readonly name: "_rootValidator";
|
|
358
|
+
readonly type: "bytes21";
|
|
359
|
+
}, {
|
|
360
|
+
readonly internalType: "contract IHook";
|
|
361
|
+
readonly name: "hook";
|
|
362
|
+
readonly type: "address";
|
|
363
|
+
}, {
|
|
364
|
+
readonly internalType: "bytes";
|
|
365
|
+
readonly name: "validatorData";
|
|
366
|
+
readonly type: "bytes";
|
|
367
|
+
}, {
|
|
368
|
+
readonly internalType: "bytes";
|
|
369
|
+
readonly name: "hookData";
|
|
370
|
+
readonly type: "bytes";
|
|
371
|
+
}];
|
|
372
|
+
readonly name: "changeRootValidator";
|
|
373
|
+
readonly outputs: readonly [];
|
|
374
|
+
readonly stateMutability: "payable";
|
|
375
|
+
readonly type: "function";
|
|
346
376
|
}, {
|
|
347
377
|
readonly inputs: readonly [];
|
|
348
378
|
readonly name: "currentNonce";
|
|
@@ -516,6 +546,10 @@ export declare const Kernel_jsonAbi: readonly [{
|
|
|
516
546
|
readonly internalType: "bytes";
|
|
517
547
|
readonly name: "hookData";
|
|
518
548
|
readonly type: "bytes";
|
|
549
|
+
}, {
|
|
550
|
+
readonly internalType: "bytes[]";
|
|
551
|
+
readonly name: "initConfig";
|
|
552
|
+
readonly type: "bytes[]";
|
|
519
553
|
}];
|
|
520
554
|
readonly name: "initialize";
|
|
521
555
|
readonly outputs: readonly [];
|
|
@@ -638,6 +672,92 @@ export declare const Kernel_jsonAbi: readonly [{
|
|
|
638
672
|
}];
|
|
639
673
|
readonly stateMutability: "view";
|
|
640
674
|
readonly type: "function";
|
|
675
|
+
}, {
|
|
676
|
+
readonly inputs: readonly [{
|
|
677
|
+
readonly internalType: "address";
|
|
678
|
+
readonly name: "";
|
|
679
|
+
readonly type: "address";
|
|
680
|
+
}, {
|
|
681
|
+
readonly internalType: "address";
|
|
682
|
+
readonly name: "";
|
|
683
|
+
readonly type: "address";
|
|
684
|
+
}, {
|
|
685
|
+
readonly internalType: "uint256[]";
|
|
686
|
+
readonly name: "";
|
|
687
|
+
readonly type: "uint256[]";
|
|
688
|
+
}, {
|
|
689
|
+
readonly internalType: "uint256[]";
|
|
690
|
+
readonly name: "";
|
|
691
|
+
readonly type: "uint256[]";
|
|
692
|
+
}, {
|
|
693
|
+
readonly internalType: "bytes";
|
|
694
|
+
readonly name: "";
|
|
695
|
+
readonly type: "bytes";
|
|
696
|
+
}];
|
|
697
|
+
readonly name: "onERC1155BatchReceived";
|
|
698
|
+
readonly outputs: readonly [{
|
|
699
|
+
readonly internalType: "bytes4";
|
|
700
|
+
readonly name: "";
|
|
701
|
+
readonly type: "bytes4";
|
|
702
|
+
}];
|
|
703
|
+
readonly stateMutability: "pure";
|
|
704
|
+
readonly type: "function";
|
|
705
|
+
}, {
|
|
706
|
+
readonly inputs: readonly [{
|
|
707
|
+
readonly internalType: "address";
|
|
708
|
+
readonly name: "";
|
|
709
|
+
readonly type: "address";
|
|
710
|
+
}, {
|
|
711
|
+
readonly internalType: "address";
|
|
712
|
+
readonly name: "";
|
|
713
|
+
readonly type: "address";
|
|
714
|
+
}, {
|
|
715
|
+
readonly internalType: "uint256";
|
|
716
|
+
readonly name: "";
|
|
717
|
+
readonly type: "uint256";
|
|
718
|
+
}, {
|
|
719
|
+
readonly internalType: "uint256";
|
|
720
|
+
readonly name: "";
|
|
721
|
+
readonly type: "uint256";
|
|
722
|
+
}, {
|
|
723
|
+
readonly internalType: "bytes";
|
|
724
|
+
readonly name: "";
|
|
725
|
+
readonly type: "bytes";
|
|
726
|
+
}];
|
|
727
|
+
readonly name: "onERC1155Received";
|
|
728
|
+
readonly outputs: readonly [{
|
|
729
|
+
readonly internalType: "bytes4";
|
|
730
|
+
readonly name: "";
|
|
731
|
+
readonly type: "bytes4";
|
|
732
|
+
}];
|
|
733
|
+
readonly stateMutability: "pure";
|
|
734
|
+
readonly type: "function";
|
|
735
|
+
}, {
|
|
736
|
+
readonly inputs: readonly [{
|
|
737
|
+
readonly internalType: "address";
|
|
738
|
+
readonly name: "";
|
|
739
|
+
readonly type: "address";
|
|
740
|
+
}, {
|
|
741
|
+
readonly internalType: "address";
|
|
742
|
+
readonly name: "";
|
|
743
|
+
readonly type: "address";
|
|
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: "onERC721Received";
|
|
754
|
+
readonly outputs: readonly [{
|
|
755
|
+
readonly internalType: "bytes4";
|
|
756
|
+
readonly name: "";
|
|
757
|
+
readonly type: "bytes4";
|
|
758
|
+
}];
|
|
759
|
+
readonly stateMutability: "pure";
|
|
760
|
+
readonly type: "function";
|
|
641
761
|
}, {
|
|
642
762
|
readonly inputs: readonly [{
|
|
643
763
|
readonly internalType: "PermissionId";
|
|
@@ -968,6 +1088,21 @@ export declare class Kernel_json {
|
|
|
968
1088
|
* view
|
|
969
1089
|
*/
|
|
970
1090
|
isValidSignature(hash: `0x${string}`, signature: `0x${string}`): Promise<`0x${string}`>;
|
|
1091
|
+
/**
|
|
1092
|
+
* onERC1155BatchReceived
|
|
1093
|
+
* pure
|
|
1094
|
+
*/
|
|
1095
|
+
onERC1155BatchReceived(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint[], arg3: bigint[], arg4: `0x${string}`): Promise<`0x${string}`>;
|
|
1096
|
+
/**
|
|
1097
|
+
* onERC1155Received
|
|
1098
|
+
* pure
|
|
1099
|
+
*/
|
|
1100
|
+
onERC1155Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: bigint, arg4: `0x${string}`): Promise<`0x${string}`>;
|
|
1101
|
+
/**
|
|
1102
|
+
* onERC721Received
|
|
1103
|
+
* pure
|
|
1104
|
+
*/
|
|
1105
|
+
onERC721Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: `0x${string}`): Promise<`0x${string}`>;
|
|
971
1106
|
/**
|
|
972
1107
|
* permissionConfig
|
|
973
1108
|
* view
|
|
@@ -1003,6 +1138,23 @@ export declare class Kernel_json {
|
|
|
1003
1138
|
* view
|
|
1004
1139
|
*/
|
|
1005
1140
|
validationConfig(vId: `0x${string}`): Promise<ValidationManager_ValidationConfig>;
|
|
1141
|
+
/**
|
|
1142
|
+
* changeRootValidator
|
|
1143
|
+
* payable
|
|
1144
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1145
|
+
*/
|
|
1146
|
+
changeRootValidator(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, options?: {
|
|
1147
|
+
accessList?: import('viem').AccessList;
|
|
1148
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1149
|
+
chain?: import('viem').Chain | null;
|
|
1150
|
+
dataSuffix?: `0x${string}`;
|
|
1151
|
+
gas?: bigint;
|
|
1152
|
+
gasPrice?: bigint;
|
|
1153
|
+
maxFeePerGas?: bigint;
|
|
1154
|
+
maxPriorityFeePerGas?: bigint;
|
|
1155
|
+
nonce?: number;
|
|
1156
|
+
value?: bigint;
|
|
1157
|
+
}): Promise<`0x${string}`>;
|
|
1006
1158
|
/**
|
|
1007
1159
|
* execute
|
|
1008
1160
|
* payable
|
|
@@ -1059,7 +1211,7 @@ export declare class Kernel_json {
|
|
|
1059
1211
|
* nonpayable
|
|
1060
1212
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1061
1213
|
*/
|
|
1062
|
-
initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, options?: {
|
|
1214
|
+
initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, initConfig: `0x${string}`[], options?: {
|
|
1063
1215
|
accessList?: import('viem').AccessList;
|
|
1064
1216
|
authorizationList?: import('viem').AuthorizationList;
|
|
1065
1217
|
chain?: import('viem').Chain | null;
|
|
@@ -1199,6 +1351,23 @@ export declare class Kernel_json {
|
|
|
1199
1351
|
* console.log('Would succeed:', result.result);
|
|
1200
1352
|
*/
|
|
1201
1353
|
get simulate(): {
|
|
1354
|
+
/**
|
|
1355
|
+
* Simulate changeRootValidator
|
|
1356
|
+
* Returns gas estimate and result without sending transaction
|
|
1357
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1358
|
+
*/
|
|
1359
|
+
changeRootValidator(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, options?: {
|
|
1360
|
+
accessList?: import("viem").AccessList;
|
|
1361
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1362
|
+
chain?: import("viem").Chain | null;
|
|
1363
|
+
dataSuffix?: `0x${string}`;
|
|
1364
|
+
gas?: bigint;
|
|
1365
|
+
gasPrice?: bigint;
|
|
1366
|
+
maxFeePerGas?: bigint;
|
|
1367
|
+
maxPriorityFeePerGas?: bigint;
|
|
1368
|
+
nonce?: number;
|
|
1369
|
+
value?: bigint;
|
|
1370
|
+
}): Promise<void>;
|
|
1202
1371
|
/**
|
|
1203
1372
|
* Simulate execute
|
|
1204
1373
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1255,7 +1424,7 @@ export declare class Kernel_json {
|
|
|
1255
1424
|
* Returns gas estimate and result without sending transaction
|
|
1256
1425
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1257
1426
|
*/
|
|
1258
|
-
initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, options?: {
|
|
1427
|
+
initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, initConfig: `0x${string}`[], options?: {
|
|
1259
1428
|
accessList?: import("viem").AccessList;
|
|
1260
1429
|
authorizationList?: import("viem").AuthorizationList;
|
|
1261
1430
|
chain?: import("viem").Chain | null;
|
package/contracts/Kernel_json.js
CHANGED
|
@@ -29,6 +29,17 @@ exports.Kernel_jsonAbi = [
|
|
|
29
29
|
"name": "ExecutionReverted",
|
|
30
30
|
"type": "error"
|
|
31
31
|
},
|
|
32
|
+
{
|
|
33
|
+
"inputs": [
|
|
34
|
+
{
|
|
35
|
+
"internalType": "uint256",
|
|
36
|
+
"name": "idx",
|
|
37
|
+
"type": "uint256"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"name": "InitConfigError",
|
|
41
|
+
"type": "error"
|
|
42
|
+
},
|
|
32
43
|
{
|
|
33
44
|
"inputs": [],
|
|
34
45
|
"name": "InvalidCallType",
|
|
@@ -385,6 +396,34 @@ exports.Kernel_jsonAbi = [
|
|
|
385
396
|
"stateMutability": "pure",
|
|
386
397
|
"type": "function"
|
|
387
398
|
},
|
|
399
|
+
{
|
|
400
|
+
"inputs": [
|
|
401
|
+
{
|
|
402
|
+
"internalType": "ValidationId",
|
|
403
|
+
"name": "_rootValidator",
|
|
404
|
+
"type": "bytes21"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"internalType": "contract IHook",
|
|
408
|
+
"name": "hook",
|
|
409
|
+
"type": "address"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"internalType": "bytes",
|
|
413
|
+
"name": "validatorData",
|
|
414
|
+
"type": "bytes"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"internalType": "bytes",
|
|
418
|
+
"name": "hookData",
|
|
419
|
+
"type": "bytes"
|
|
420
|
+
}
|
|
421
|
+
],
|
|
422
|
+
"name": "changeRootValidator",
|
|
423
|
+
"outputs": [],
|
|
424
|
+
"stateMutability": "payable",
|
|
425
|
+
"type": "function"
|
|
426
|
+
},
|
|
388
427
|
{
|
|
389
428
|
"inputs": [],
|
|
390
429
|
"name": "currentNonce",
|
|
@@ -608,6 +647,11 @@ exports.Kernel_jsonAbi = [
|
|
|
608
647
|
"internalType": "bytes",
|
|
609
648
|
"name": "hookData",
|
|
610
649
|
"type": "bytes"
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"internalType": "bytes[]",
|
|
653
|
+
"name": "initConfig",
|
|
654
|
+
"type": "bytes[]"
|
|
611
655
|
}
|
|
612
656
|
],
|
|
613
657
|
"name": "initialize",
|
|
@@ -768,6 +812,118 @@ exports.Kernel_jsonAbi = [
|
|
|
768
812
|
"stateMutability": "view",
|
|
769
813
|
"type": "function"
|
|
770
814
|
},
|
|
815
|
+
{
|
|
816
|
+
"inputs": [
|
|
817
|
+
{
|
|
818
|
+
"internalType": "address",
|
|
819
|
+
"name": "",
|
|
820
|
+
"type": "address"
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
"internalType": "address",
|
|
824
|
+
"name": "",
|
|
825
|
+
"type": "address"
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
"internalType": "uint256[]",
|
|
829
|
+
"name": "",
|
|
830
|
+
"type": "uint256[]"
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"internalType": "uint256[]",
|
|
834
|
+
"name": "",
|
|
835
|
+
"type": "uint256[]"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"internalType": "bytes",
|
|
839
|
+
"name": "",
|
|
840
|
+
"type": "bytes"
|
|
841
|
+
}
|
|
842
|
+
],
|
|
843
|
+
"name": "onERC1155BatchReceived",
|
|
844
|
+
"outputs": [
|
|
845
|
+
{
|
|
846
|
+
"internalType": "bytes4",
|
|
847
|
+
"name": "",
|
|
848
|
+
"type": "bytes4"
|
|
849
|
+
}
|
|
850
|
+
],
|
|
851
|
+
"stateMutability": "pure",
|
|
852
|
+
"type": "function"
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
"inputs": [
|
|
856
|
+
{
|
|
857
|
+
"internalType": "address",
|
|
858
|
+
"name": "",
|
|
859
|
+
"type": "address"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"internalType": "address",
|
|
863
|
+
"name": "",
|
|
864
|
+
"type": "address"
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
"internalType": "uint256",
|
|
868
|
+
"name": "",
|
|
869
|
+
"type": "uint256"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"internalType": "uint256",
|
|
873
|
+
"name": "",
|
|
874
|
+
"type": "uint256"
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"internalType": "bytes",
|
|
878
|
+
"name": "",
|
|
879
|
+
"type": "bytes"
|
|
880
|
+
}
|
|
881
|
+
],
|
|
882
|
+
"name": "onERC1155Received",
|
|
883
|
+
"outputs": [
|
|
884
|
+
{
|
|
885
|
+
"internalType": "bytes4",
|
|
886
|
+
"name": "",
|
|
887
|
+
"type": "bytes4"
|
|
888
|
+
}
|
|
889
|
+
],
|
|
890
|
+
"stateMutability": "pure",
|
|
891
|
+
"type": "function"
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
"inputs": [
|
|
895
|
+
{
|
|
896
|
+
"internalType": "address",
|
|
897
|
+
"name": "",
|
|
898
|
+
"type": "address"
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
"internalType": "address",
|
|
902
|
+
"name": "",
|
|
903
|
+
"type": "address"
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
"internalType": "uint256",
|
|
907
|
+
"name": "",
|
|
908
|
+
"type": "uint256"
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
"internalType": "bytes",
|
|
912
|
+
"name": "",
|
|
913
|
+
"type": "bytes"
|
|
914
|
+
}
|
|
915
|
+
],
|
|
916
|
+
"name": "onERC721Received",
|
|
917
|
+
"outputs": [
|
|
918
|
+
{
|
|
919
|
+
"internalType": "bytes4",
|
|
920
|
+
"name": "",
|
|
921
|
+
"type": "bytes4"
|
|
922
|
+
}
|
|
923
|
+
],
|
|
924
|
+
"stateMutability": "pure",
|
|
925
|
+
"type": "function"
|
|
926
|
+
},
|
|
771
927
|
{
|
|
772
928
|
"inputs": [
|
|
773
929
|
{
|
|
@@ -1188,6 +1344,27 @@ class Kernel_json {
|
|
|
1188
1344
|
async isValidSignature(hash, signature) {
|
|
1189
1345
|
return this.contract.read.isValidSignature([hash, signature]);
|
|
1190
1346
|
}
|
|
1347
|
+
/**
|
|
1348
|
+
* onERC1155BatchReceived
|
|
1349
|
+
* pure
|
|
1350
|
+
*/
|
|
1351
|
+
async onERC1155BatchReceived(arg0, arg1, arg2, arg3, arg4) {
|
|
1352
|
+
return this.contract.read.onERC1155BatchReceived([arg0, arg1, arg2, arg3, arg4]);
|
|
1353
|
+
}
|
|
1354
|
+
/**
|
|
1355
|
+
* onERC1155Received
|
|
1356
|
+
* pure
|
|
1357
|
+
*/
|
|
1358
|
+
async onERC1155Received(arg0, arg1, arg2, arg3, arg4) {
|
|
1359
|
+
return this.contract.read.onERC1155Received([arg0, arg1, arg2, arg3, arg4]);
|
|
1360
|
+
}
|
|
1361
|
+
/**
|
|
1362
|
+
* onERC721Received
|
|
1363
|
+
* pure
|
|
1364
|
+
*/
|
|
1365
|
+
async onERC721Received(arg0, arg1, arg2, arg3) {
|
|
1366
|
+
return this.contract.read.onERC721Received([arg0, arg1, arg2, arg3]);
|
|
1367
|
+
}
|
|
1191
1368
|
/**
|
|
1192
1369
|
* permissionConfig
|
|
1193
1370
|
* view
|
|
@@ -1237,6 +1414,17 @@ class Kernel_json {
|
|
|
1237
1414
|
async validationConfig(vId) {
|
|
1238
1415
|
return this.contract.read.validationConfig([vId]);
|
|
1239
1416
|
}
|
|
1417
|
+
/**
|
|
1418
|
+
* changeRootValidator
|
|
1419
|
+
* payable
|
|
1420
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1421
|
+
*/
|
|
1422
|
+
async changeRootValidator(_rootValidator, hook, validatorData, hookData, options) {
|
|
1423
|
+
if (!this.contract.write) {
|
|
1424
|
+
throw new Error('Wallet client is required for write operations');
|
|
1425
|
+
}
|
|
1426
|
+
return this.contract.write.changeRootValidator([_rootValidator, hook, validatorData, hookData], options);
|
|
1427
|
+
}
|
|
1240
1428
|
/**
|
|
1241
1429
|
* execute
|
|
1242
1430
|
* payable
|
|
@@ -1275,11 +1463,11 @@ class Kernel_json {
|
|
|
1275
1463
|
* nonpayable
|
|
1276
1464
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1277
1465
|
*/
|
|
1278
|
-
async initialize(_rootValidator, hook, validatorData, hookData, options) {
|
|
1466
|
+
async initialize(_rootValidator, hook, validatorData, hookData, initConfig, options) {
|
|
1279
1467
|
if (!this.contract.write) {
|
|
1280
1468
|
throw new Error('Wallet client is required for write operations');
|
|
1281
1469
|
}
|
|
1282
|
-
return this.contract.write.initialize([_rootValidator, hook, validatorData, hookData], options);
|
|
1470
|
+
return this.contract.write.initialize([_rootValidator, hook, validatorData, hookData, initConfig], options);
|
|
1283
1471
|
}
|
|
1284
1472
|
/**
|
|
1285
1473
|
* installModule
|
|
@@ -1372,6 +1560,14 @@ class Kernel_json {
|
|
|
1372
1560
|
throw new Error('Public client is required for simulation');
|
|
1373
1561
|
}
|
|
1374
1562
|
return {
|
|
1563
|
+
/**
|
|
1564
|
+
* Simulate changeRootValidator
|
|
1565
|
+
* Returns gas estimate and result without sending transaction
|
|
1566
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1567
|
+
*/
|
|
1568
|
+
async changeRootValidator(_rootValidator, hook, validatorData, hookData, options) {
|
|
1569
|
+
return contract.simulate.changeRootValidator([_rootValidator, hook, validatorData, hookData], options);
|
|
1570
|
+
},
|
|
1375
1571
|
/**
|
|
1376
1572
|
* Simulate execute
|
|
1377
1573
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1401,8 +1597,8 @@ class Kernel_json {
|
|
|
1401
1597
|
* Returns gas estimate and result without sending transaction
|
|
1402
1598
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1403
1599
|
*/
|
|
1404
|
-
async initialize(_rootValidator, hook, validatorData, hookData, options) {
|
|
1405
|
-
return contract.simulate.initialize([_rootValidator, hook, validatorData, hookData], options);
|
|
1600
|
+
async initialize(_rootValidator, hook, validatorData, hookData, initConfig, options) {
|
|
1601
|
+
return contract.simulate.initialize([_rootValidator, hook, validatorData, hookData, initConfig], options);
|
|
1406
1602
|
},
|
|
1407
1603
|
/**
|
|
1408
1604
|
* Simulate installModule
|
package/contracts/Kernel_json.ts
CHANGED
|
@@ -76,6 +76,17 @@ export const Kernel_jsonAbi = [
|
|
|
76
76
|
"name": "ExecutionReverted",
|
|
77
77
|
"type": "error"
|
|
78
78
|
},
|
|
79
|
+
{
|
|
80
|
+
"inputs": [
|
|
81
|
+
{
|
|
82
|
+
"internalType": "uint256",
|
|
83
|
+
"name": "idx",
|
|
84
|
+
"type": "uint256"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"name": "InitConfigError",
|
|
88
|
+
"type": "error"
|
|
89
|
+
},
|
|
79
90
|
{
|
|
80
91
|
"inputs": [],
|
|
81
92
|
"name": "InvalidCallType",
|
|
@@ -432,6 +443,34 @@ export const Kernel_jsonAbi = [
|
|
|
432
443
|
"stateMutability": "pure",
|
|
433
444
|
"type": "function"
|
|
434
445
|
},
|
|
446
|
+
{
|
|
447
|
+
"inputs": [
|
|
448
|
+
{
|
|
449
|
+
"internalType": "ValidationId",
|
|
450
|
+
"name": "_rootValidator",
|
|
451
|
+
"type": "bytes21"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"internalType": "contract IHook",
|
|
455
|
+
"name": "hook",
|
|
456
|
+
"type": "address"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"internalType": "bytes",
|
|
460
|
+
"name": "validatorData",
|
|
461
|
+
"type": "bytes"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"internalType": "bytes",
|
|
465
|
+
"name": "hookData",
|
|
466
|
+
"type": "bytes"
|
|
467
|
+
}
|
|
468
|
+
],
|
|
469
|
+
"name": "changeRootValidator",
|
|
470
|
+
"outputs": [],
|
|
471
|
+
"stateMutability": "payable",
|
|
472
|
+
"type": "function"
|
|
473
|
+
},
|
|
435
474
|
{
|
|
436
475
|
"inputs": [],
|
|
437
476
|
"name": "currentNonce",
|
|
@@ -655,6 +694,11 @@ export const Kernel_jsonAbi = [
|
|
|
655
694
|
"internalType": "bytes",
|
|
656
695
|
"name": "hookData",
|
|
657
696
|
"type": "bytes"
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"internalType": "bytes[]",
|
|
700
|
+
"name": "initConfig",
|
|
701
|
+
"type": "bytes[]"
|
|
658
702
|
}
|
|
659
703
|
],
|
|
660
704
|
"name": "initialize",
|
|
@@ -815,6 +859,118 @@ export const Kernel_jsonAbi = [
|
|
|
815
859
|
"stateMutability": "view",
|
|
816
860
|
"type": "function"
|
|
817
861
|
},
|
|
862
|
+
{
|
|
863
|
+
"inputs": [
|
|
864
|
+
{
|
|
865
|
+
"internalType": "address",
|
|
866
|
+
"name": "",
|
|
867
|
+
"type": "address"
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"internalType": "address",
|
|
871
|
+
"name": "",
|
|
872
|
+
"type": "address"
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"internalType": "uint256[]",
|
|
876
|
+
"name": "",
|
|
877
|
+
"type": "uint256[]"
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"internalType": "uint256[]",
|
|
881
|
+
"name": "",
|
|
882
|
+
"type": "uint256[]"
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"internalType": "bytes",
|
|
886
|
+
"name": "",
|
|
887
|
+
"type": "bytes"
|
|
888
|
+
}
|
|
889
|
+
],
|
|
890
|
+
"name": "onERC1155BatchReceived",
|
|
891
|
+
"outputs": [
|
|
892
|
+
{
|
|
893
|
+
"internalType": "bytes4",
|
|
894
|
+
"name": "",
|
|
895
|
+
"type": "bytes4"
|
|
896
|
+
}
|
|
897
|
+
],
|
|
898
|
+
"stateMutability": "pure",
|
|
899
|
+
"type": "function"
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"inputs": [
|
|
903
|
+
{
|
|
904
|
+
"internalType": "address",
|
|
905
|
+
"name": "",
|
|
906
|
+
"type": "address"
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
"internalType": "address",
|
|
910
|
+
"name": "",
|
|
911
|
+
"type": "address"
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
"internalType": "uint256",
|
|
915
|
+
"name": "",
|
|
916
|
+
"type": "uint256"
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
"internalType": "uint256",
|
|
920
|
+
"name": "",
|
|
921
|
+
"type": "uint256"
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
"internalType": "bytes",
|
|
925
|
+
"name": "",
|
|
926
|
+
"type": "bytes"
|
|
927
|
+
}
|
|
928
|
+
],
|
|
929
|
+
"name": "onERC1155Received",
|
|
930
|
+
"outputs": [
|
|
931
|
+
{
|
|
932
|
+
"internalType": "bytes4",
|
|
933
|
+
"name": "",
|
|
934
|
+
"type": "bytes4"
|
|
935
|
+
}
|
|
936
|
+
],
|
|
937
|
+
"stateMutability": "pure",
|
|
938
|
+
"type": "function"
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"inputs": [
|
|
942
|
+
{
|
|
943
|
+
"internalType": "address",
|
|
944
|
+
"name": "",
|
|
945
|
+
"type": "address"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"internalType": "address",
|
|
949
|
+
"name": "",
|
|
950
|
+
"type": "address"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"internalType": "uint256",
|
|
954
|
+
"name": "",
|
|
955
|
+
"type": "uint256"
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"internalType": "bytes",
|
|
959
|
+
"name": "",
|
|
960
|
+
"type": "bytes"
|
|
961
|
+
}
|
|
962
|
+
],
|
|
963
|
+
"name": "onERC721Received",
|
|
964
|
+
"outputs": [
|
|
965
|
+
{
|
|
966
|
+
"internalType": "bytes4",
|
|
967
|
+
"name": "",
|
|
968
|
+
"type": "bytes4"
|
|
969
|
+
}
|
|
970
|
+
],
|
|
971
|
+
"stateMutability": "pure",
|
|
972
|
+
"type": "function"
|
|
973
|
+
},
|
|
818
974
|
{
|
|
819
975
|
"inputs": [
|
|
820
976
|
{
|
|
@@ -1269,6 +1425,30 @@ export class Kernel_json {
|
|
|
1269
1425
|
return this.contract.read.isValidSignature([hash, signature] as const) as Promise<`0x${string}`>;
|
|
1270
1426
|
}
|
|
1271
1427
|
|
|
1428
|
+
/**
|
|
1429
|
+
* onERC1155BatchReceived
|
|
1430
|
+
* pure
|
|
1431
|
+
*/
|
|
1432
|
+
async onERC1155BatchReceived(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint[], arg3: bigint[], arg4: `0x${string}`): Promise<`0x${string}`> {
|
|
1433
|
+
return this.contract.read.onERC1155BatchReceived([arg0, arg1, arg2, arg3, arg4] as const) as Promise<`0x${string}`>;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* onERC1155Received
|
|
1438
|
+
* pure
|
|
1439
|
+
*/
|
|
1440
|
+
async onERC1155Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: bigint, arg4: `0x${string}`): Promise<`0x${string}`> {
|
|
1441
|
+
return this.contract.read.onERC1155Received([arg0, arg1, arg2, arg3, arg4] as const) as Promise<`0x${string}`>;
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
/**
|
|
1445
|
+
* onERC721Received
|
|
1446
|
+
* pure
|
|
1447
|
+
*/
|
|
1448
|
+
async onERC721Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: `0x${string}`): Promise<`0x${string}`> {
|
|
1449
|
+
return this.contract.read.onERC721Received([arg0, arg1, arg2, arg3] as const) as Promise<`0x${string}`>;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1272
1452
|
/**
|
|
1273
1453
|
* permissionConfig
|
|
1274
1454
|
* view
|
|
@@ -1325,6 +1505,29 @@ export class Kernel_json {
|
|
|
1325
1505
|
return this.contract.read.validationConfig([vId] as const) as Promise<ValidationManager_ValidationConfig>;
|
|
1326
1506
|
}
|
|
1327
1507
|
|
|
1508
|
+
/**
|
|
1509
|
+
* changeRootValidator
|
|
1510
|
+
* payable
|
|
1511
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1512
|
+
*/
|
|
1513
|
+
async changeRootValidator(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, options?: {
|
|
1514
|
+
accessList?: import('viem').AccessList;
|
|
1515
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1516
|
+
chain?: import('viem').Chain | null;
|
|
1517
|
+
dataSuffix?: `0x${string}`;
|
|
1518
|
+
gas?: bigint;
|
|
1519
|
+
gasPrice?: bigint;
|
|
1520
|
+
maxFeePerGas?: bigint;
|
|
1521
|
+
maxPriorityFeePerGas?: bigint;
|
|
1522
|
+
nonce?: number;
|
|
1523
|
+
value?: bigint;
|
|
1524
|
+
}): Promise<`0x${string}`> {
|
|
1525
|
+
if (!this.contract.write) {
|
|
1526
|
+
throw new Error('Wallet client is required for write operations');
|
|
1527
|
+
}
|
|
1528
|
+
return this.contract.write.changeRootValidator([_rootValidator, hook, validatorData, hookData] as const, options) as Promise<`0x${string}`>;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1328
1531
|
/**
|
|
1329
1532
|
* execute
|
|
1330
1533
|
* payable
|
|
@@ -1399,7 +1602,7 @@ export class Kernel_json {
|
|
|
1399
1602
|
* nonpayable
|
|
1400
1603
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1401
1604
|
*/
|
|
1402
|
-
async initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, options?: {
|
|
1605
|
+
async initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, initConfig: `0x${string}`[], options?: {
|
|
1403
1606
|
accessList?: import('viem').AccessList;
|
|
1404
1607
|
authorizationList?: import('viem').AuthorizationList;
|
|
1405
1608
|
chain?: import('viem').Chain | null;
|
|
@@ -1414,7 +1617,7 @@ export class Kernel_json {
|
|
|
1414
1617
|
if (!this.contract.write) {
|
|
1415
1618
|
throw new Error('Wallet client is required for write operations');
|
|
1416
1619
|
}
|
|
1417
|
-
return this.contract.write.initialize([_rootValidator, hook, validatorData, hookData] as const, options) as Promise<`0x${string}`>;
|
|
1620
|
+
return this.contract.write.initialize([_rootValidator, hook, validatorData, hookData, initConfig] as const, options) as Promise<`0x${string}`>;
|
|
1418
1621
|
}
|
|
1419
1622
|
|
|
1420
1623
|
/**
|
|
@@ -1594,6 +1797,25 @@ export class Kernel_json {
|
|
|
1594
1797
|
throw new Error('Public client is required for simulation');
|
|
1595
1798
|
}
|
|
1596
1799
|
return {
|
|
1800
|
+
/**
|
|
1801
|
+
* Simulate changeRootValidator
|
|
1802
|
+
* Returns gas estimate and result without sending transaction
|
|
1803
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1804
|
+
*/
|
|
1805
|
+
async changeRootValidator(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, options?: {
|
|
1806
|
+
accessList?: import('viem').AccessList;
|
|
1807
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1808
|
+
chain?: import('viem').Chain | null;
|
|
1809
|
+
dataSuffix?: `0x${string}`;
|
|
1810
|
+
gas?: bigint;
|
|
1811
|
+
gasPrice?: bigint;
|
|
1812
|
+
maxFeePerGas?: bigint;
|
|
1813
|
+
maxPriorityFeePerGas?: bigint;
|
|
1814
|
+
nonce?: number;
|
|
1815
|
+
value?: bigint;
|
|
1816
|
+
}): Promise<void> {
|
|
1817
|
+
return contract.simulate.changeRootValidator([_rootValidator, hook, validatorData, hookData] as const, options) as Promise<void>;
|
|
1818
|
+
},
|
|
1597
1819
|
/**
|
|
1598
1820
|
* Simulate execute
|
|
1599
1821
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1656,7 +1878,7 @@ export class Kernel_json {
|
|
|
1656
1878
|
* Returns gas estimate and result without sending transaction
|
|
1657
1879
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1658
1880
|
*/
|
|
1659
|
-
async initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, options?: {
|
|
1881
|
+
async initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, initConfig: `0x${string}`[], options?: {
|
|
1660
1882
|
accessList?: import('viem').AccessList;
|
|
1661
1883
|
authorizationList?: import('viem').AuthorizationList;
|
|
1662
1884
|
chain?: import('viem').Chain | null;
|
|
@@ -1668,7 +1890,7 @@ export class Kernel_json {
|
|
|
1668
1890
|
nonce?: number;
|
|
1669
1891
|
value?: bigint;
|
|
1670
1892
|
}): Promise<void> {
|
|
1671
|
-
return contract.simulate.initialize([_rootValidator, hook, validatorData, hookData] as const, options) as Promise<void>;
|
|
1893
|
+
return contract.simulate.initialize([_rootValidator, hook, validatorData, hookData, initConfig] as const, options) as Promise<void>;
|
|
1672
1894
|
},
|
|
1673
1895
|
/**
|
|
1674
1896
|
* Simulate installModule
|
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.8",
|
|
4
|
+
"description": "Auto-generated TypeScript type bindings for Kernel (build etherscan-kernel-4ad3a18e-1788874388704, commit d858fa2, 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": "d858fa2"
|
|
43
43
|
}
|