Skip to content

Commit 698ebfe

Browse files
committed
Upgraded test kms contract
1 parent f37508a commit 698ebfe

File tree

3 files changed

+238
-1
lines changed

3 files changed

+238
-1
lines changed

kms/auth-eth/.openzeppelin/unknown-2035.json

Lines changed: 236 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,242 @@
786786
]
787787
}
788788
}
789+
},
790+
"07df215dd9fd4ccbd93c7ddb5a64f2141ffc3289e6b4b38a3b185ddd07de43ee": {
791+
"address": "0xd33A42c8aCd318bbD8fAFc8e4bfc1A8CFF7b0Df1",
792+
"txHash": "0xdf38064b64df5cd973c8e24e8980c759d79f98c28f279e806074063304487ae6",
793+
"layout": {
794+
"solcVersion": "0.8.22",
795+
"storage": [
796+
{
797+
"label": "kmsInfo",
798+
"offset": 0,
799+
"slot": "0",
800+
"type": "t_struct(KmsInfo)1473_storage",
801+
"contract": "KmsAuth",
802+
"src": "contracts/KmsAuth.sol:24"
803+
},
804+
{
805+
"label": "gatewayAppId",
806+
"offset": 0,
807+
"slot": "4",
808+
"type": "t_string_storage",
809+
"contract": "KmsAuth",
810+
"src": "contracts/KmsAuth.sol:28",
811+
"renamedFrom": "tproxyAppId"
812+
},
813+
{
814+
"label": "apps",
815+
"offset": 0,
816+
"slot": "5",
817+
"type": "t_mapping(t_address,t_struct(AppConfig)1484_storage)",
818+
"contract": "KmsAuth",
819+
"src": "contracts/KmsAuth.sol:37"
820+
},
821+
{
822+
"label": "kmsAllowedAggregatedMrs",
823+
"offset": 0,
824+
"slot": "6",
825+
"type": "t_mapping(t_bytes32,t_bool)",
826+
"contract": "KmsAuth",
827+
"src": "contracts/KmsAuth.sol:40"
828+
},
829+
{
830+
"label": "kmsAllowedDeviceIds",
831+
"offset": 0,
832+
"slot": "7",
833+
"type": "t_mapping(t_bytes32,t_bool)",
834+
"contract": "KmsAuth",
835+
"src": "contracts/KmsAuth.sol:43"
836+
},
837+
{
838+
"label": "appAllowedImages",
839+
"offset": 0,
840+
"slot": "8",
841+
"type": "t_mapping(t_bytes32,t_bool)",
842+
"contract": "KmsAuth",
843+
"src": "contracts/KmsAuth.sol:46"
844+
},
845+
{
846+
"label": "appAllowedSystemMrs",
847+
"offset": 0,
848+
"slot": "9",
849+
"type": "t_mapping(t_bytes32,t_bool)",
850+
"contract": "KmsAuth",
851+
"src": "contracts/KmsAuth.sol:49"
852+
},
853+
{
854+
"label": "nextAppSequence",
855+
"offset": 0,
856+
"slot": "10",
857+
"type": "t_mapping(t_address,t_uint256)",
858+
"contract": "KmsAuth",
859+
"src": "contracts/KmsAuth.sol:52"
860+
},
861+
{
862+
"label": "__gap",
863+
"offset": 0,
864+
"slot": "11",
865+
"type": "t_array(t_uint256)50_storage",
866+
"contract": "KmsAuth",
867+
"src": "contracts/KmsAuth.sol:227"
868+
}
869+
],
870+
"types": {
871+
"t_address": {
872+
"label": "address",
873+
"numberOfBytes": "20"
874+
},
875+
"t_bool": {
876+
"label": "bool",
877+
"numberOfBytes": "1"
878+
},
879+
"t_struct(InitializableStorage)73_storage": {
880+
"label": "struct Initializable.InitializableStorage",
881+
"members": [
882+
{
883+
"label": "_initialized",
884+
"type": "t_uint64",
885+
"offset": 0,
886+
"slot": "0"
887+
},
888+
{
889+
"label": "_initializing",
890+
"type": "t_bool",
891+
"offset": 8,
892+
"slot": "0"
893+
}
894+
],
895+
"numberOfBytes": "32"
896+
},
897+
"t_struct(OwnableStorage)13_storage": {
898+
"label": "struct OwnableUpgradeable.OwnableStorage",
899+
"members": [
900+
{
901+
"label": "_owner",
902+
"type": "t_address",
903+
"offset": 0,
904+
"slot": "0"
905+
}
906+
],
907+
"numberOfBytes": "32"
908+
},
909+
"t_uint64": {
910+
"label": "uint64",
911+
"numberOfBytes": "8"
912+
},
913+
"t_array(t_uint256)50_storage": {
914+
"label": "uint256[50]",
915+
"numberOfBytes": "1600"
916+
},
917+
"t_bytes32": {
918+
"label": "bytes32",
919+
"numberOfBytes": "32"
920+
},
921+
"t_bytes_storage": {
922+
"label": "bytes",
923+
"numberOfBytes": "32"
924+
},
925+
"t_mapping(t_address,t_struct(AppConfig)1484_storage)": {
926+
"label": "mapping(address => struct KmsAuth.AppConfig)",
927+
"numberOfBytes": "32"
928+
},
929+
"t_mapping(t_address,t_uint256)": {
930+
"label": "mapping(address => uint256)",
931+
"numberOfBytes": "32"
932+
},
933+
"t_mapping(t_bytes32,t_bool)": {
934+
"label": "mapping(bytes32 => bool)",
935+
"numberOfBytes": "32"
936+
},
937+
"t_string_storage": {
938+
"label": "string",
939+
"numberOfBytes": "32"
940+
},
941+
"t_struct(AppConfig)1484_storage": {
942+
"label": "struct KmsAuth.AppConfig",
943+
"members": [
944+
{
945+
"label": "isRegistered",
946+
"type": "t_bool",
947+
"offset": 0,
948+
"slot": "0"
949+
},
950+
{
951+
"label": "controller",
952+
"type": "t_address",
953+
"offset": 1,
954+
"slot": "0"
955+
}
956+
],
957+
"numberOfBytes": "32"
958+
},
959+
"t_struct(KmsInfo)1473_storage": {
960+
"label": "struct KmsAuth.KmsInfo",
961+
"members": [
962+
{
963+
"label": "k256Pubkey",
964+
"type": "t_bytes_storage",
965+
"offset": 0,
966+
"slot": "0"
967+
},
968+
{
969+
"label": "caPubkey",
970+
"type": "t_bytes_storage",
971+
"offset": 0,
972+
"slot": "1"
973+
},
974+
{
975+
"label": "quote",
976+
"type": "t_bytes_storage",
977+
"offset": 0,
978+
"slot": "2"
979+
},
980+
{
981+
"label": "eventlog",
982+
"type": "t_bytes_storage",
983+
"offset": 0,
984+
"slot": "3"
985+
}
986+
],
987+
"numberOfBytes": "128"
988+
},
989+
"t_uint256": {
990+
"label": "uint256",
991+
"numberOfBytes": "32"
992+
}
993+
},
994+
"namespaces": {
995+
"erc7201:openzeppelin.storage.Ownable": [
996+
{
997+
"contract": "OwnableUpgradeable",
998+
"label": "_owner",
999+
"type": "t_address",
1000+
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:24",
1001+
"offset": 0,
1002+
"slot": "0"
1003+
}
1004+
],
1005+
"erc7201:openzeppelin.storage.Initializable": [
1006+
{
1007+
"contract": "Initializable",
1008+
"label": "_initialized",
1009+
"type": "t_uint64",
1010+
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:69",
1011+
"offset": 0,
1012+
"slot": "0"
1013+
},
1014+
{
1015+
"contract": "Initializable",
1016+
"label": "_initializing",
1017+
"type": "t_bool",
1018+
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:73",
1019+
"offset": 8,
1020+
"slot": "0"
1021+
}
1022+
]
1023+
}
1024+
}
7891025
}
7901026
}
7911027
}

kms/auth-eth/contracts/KmsAuth.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ contract KmsAuth is
2424
KmsInfo public kmsInfo;
2525

2626
// The dstack-gateway App ID
27+
/// @custom:oz-renamed-from tproxyAppId
2728
string public gatewayAppId;
2829

2930
// Struct to store App configuration

0 commit comments

Comments
 (0)