Skip to content

Commit 4411171

Browse files
authored
Add new contract memory layout (#293)
1 parent 163fa44 commit 4411171

File tree

1 file changed

+249
-0
lines changed

1 file changed

+249
-0
lines changed

ethereum/.openzeppelin/unknown-97.json

Lines changed: 249 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,255 @@
694694
}
695695
}
696696
}
697+
},
698+
"ddd5b99a02ae5343163cde2d2269c8f446a93dd9a7323f3ac55875f4be75f434": {
699+
"address": "0x369d018260f62997278f08bF499D8ec884B47e79",
700+
"txHash": "0xc32248229276fd0f314d436b0b93424803f7d0c24176d2f811a510718870bdf9",
701+
"layout": {
702+
"storage": [
703+
{
704+
"contract": "Initializable",
705+
"label": "_initialized",
706+
"type": "t_bool",
707+
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:39"
708+
},
709+
{
710+
"contract": "Initializable",
711+
"label": "_initializing",
712+
"type": "t_bool",
713+
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:44"
714+
},
715+
{
716+
"contract": "ContextUpgradeable",
717+
"label": "__gap",
718+
"type": "t_array(t_uint256)50_storage",
719+
"src": "../@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
720+
},
721+
{
722+
"contract": "OwnableUpgradeable",
723+
"label": "_owner",
724+
"type": "t_address",
725+
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
726+
},
727+
{
728+
"contract": "OwnableUpgradeable",
729+
"label": "__gap",
730+
"type": "t_array(t_uint256)49_storage",
731+
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:87"
732+
},
733+
{
734+
"contract": "ERC1967UpgradeUpgradeable",
735+
"label": "__gap",
736+
"type": "t_array(t_uint256)50_storage",
737+
"src": "../@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:211"
738+
},
739+
{
740+
"contract": "UUPSUpgradeable",
741+
"label": "__gap",
742+
"type": "t_array(t_uint256)50_storage",
743+
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:107"
744+
},
745+
{
746+
"contract": "PythState",
747+
"label": "_state",
748+
"type": "t_struct(State)5124_storage",
749+
"src": "../project:/contracts/pyth/PythState.sol:43"
750+
}
751+
],
752+
"types": {
753+
"t_struct(State)5124_storage": {
754+
"label": "struct PythStorage.State",
755+
"members": [
756+
{
757+
"label": "wormhole",
758+
"type": "t_address"
759+
},
760+
{
761+
"label": "_deprecatedPyth2WormholeChainId",
762+
"type": "t_uint16"
763+
},
764+
{
765+
"label": "_deprecatedPyth2WormholeEmitter",
766+
"type": "t_bytes32"
767+
},
768+
{
769+
"label": "latestPriceInfo",
770+
"type": "t_mapping(t_bytes32,t_struct(PriceInfo)4974_storage)"
771+
},
772+
{
773+
"label": "validDataSources",
774+
"type": "t_array(t_struct(DataSource)4979_storage)dyn_storage"
775+
},
776+
{
777+
"label": "isValidDataSource",
778+
"type": "t_mapping(t_bytes32,t_bool)"
779+
},
780+
{
781+
"label": "singleUpdateFeeInWei",
782+
"type": "t_uint256"
783+
},
784+
{
785+
"label": "validTimePeriodSeconds",
786+
"type": "t_uint256"
787+
},
788+
{
789+
"label": "governanceDataSource",
790+
"type": "t_struct(DataSource)4979_storage"
791+
},
792+
{
793+
"label": "lastExecutedGovernanceSequence",
794+
"type": "t_uint64"
795+
}
796+
]
797+
},
798+
"t_address": {
799+
"label": "address"
800+
},
801+
"t_uint16": {
802+
"label": "uint16"
803+
},
804+
"t_bytes32": {
805+
"label": "bytes32"
806+
},
807+
"t_mapping(t_bytes32,t_struct(PriceInfo)4974_storage)": {
808+
"label": "mapping(bytes32 => struct PythInternalStructs.PriceInfo)"
809+
},
810+
"t_struct(PriceInfo)4974_storage": {
811+
"label": "struct PythInternalStructs.PriceInfo",
812+
"members": [
813+
{
814+
"label": "attestationTime",
815+
"type": "t_uint256"
816+
},
817+
{
818+
"label": "arrivalTime",
819+
"type": "t_uint256"
820+
},
821+
{
822+
"label": "arrivalBlock",
823+
"type": "t_uint256"
824+
},
825+
{
826+
"label": "priceFeed",
827+
"type": "t_struct(PriceFeed)2463_storage"
828+
}
829+
]
830+
},
831+
"t_array(t_struct(DataSource)4979_storage)dyn_storage": {
832+
"label": "struct PythInternalStructs.DataSource[]"
833+
},
834+
"t_struct(DataSource)4979_storage": {
835+
"label": "struct PythInternalStructs.DataSource",
836+
"members": [
837+
{
838+
"label": "chainId",
839+
"type": "t_uint16"
840+
},
841+
{
842+
"label": "emitterAddress",
843+
"type": "t_bytes32"
844+
}
845+
]
846+
},
847+
"t_mapping(t_bytes32,t_bool)": {
848+
"label": "mapping(bytes32 => bool)"
849+
},
850+
"t_bool": {
851+
"label": "bool"
852+
},
853+
"t_uint256": {
854+
"label": "uint256"
855+
},
856+
"t_uint64": {
857+
"label": "uint64"
858+
},
859+
"t_struct(PriceFeed)2463_storage": {
860+
"label": "struct PythStructs.PriceFeed",
861+
"members": [
862+
{
863+
"label": "id",
864+
"type": "t_bytes32"
865+
},
866+
{
867+
"label": "productId",
868+
"type": "t_bytes32"
869+
},
870+
{
871+
"label": "price",
872+
"type": "t_int64"
873+
},
874+
{
875+
"label": "conf",
876+
"type": "t_uint64"
877+
},
878+
{
879+
"label": "expo",
880+
"type": "t_int32"
881+
},
882+
{
883+
"label": "status",
884+
"type": "t_enum(PriceStatus)2468"
885+
},
886+
{
887+
"label": "maxNumPublishers",
888+
"type": "t_uint32"
889+
},
890+
{
891+
"label": "numPublishers",
892+
"type": "t_uint32"
893+
},
894+
{
895+
"label": "emaPrice",
896+
"type": "t_int64"
897+
},
898+
{
899+
"label": "emaConf",
900+
"type": "t_uint64"
901+
},
902+
{
903+
"label": "publishTime",
904+
"type": "t_uint64"
905+
},
906+
{
907+
"label": "prevPrice",
908+
"type": "t_int64"
909+
},
910+
{
911+
"label": "prevConf",
912+
"type": "t_uint64"
913+
},
914+
{
915+
"label": "prevPublishTime",
916+
"type": "t_uint64"
917+
}
918+
]
919+
},
920+
"t_int64": {
921+
"label": "int64"
922+
},
923+
"t_int32": {
924+
"label": "int32"
925+
},
926+
"t_enum(PriceStatus)2468": {
927+
"label": "enum PythStructs.PriceStatus",
928+
"members": [
929+
"UNKNOWN",
930+
"TRADING",
931+
"HALTED",
932+
"AUCTION"
933+
]
934+
},
935+
"t_uint32": {
936+
"label": "uint32"
937+
},
938+
"t_array(t_uint256)50_storage": {
939+
"label": "uint256[50]"
940+
},
941+
"t_array(t_uint256)49_storage": {
942+
"label": "uint256[49]"
943+
}
944+
}
945+
}
697946
}
698947
}
699948
}

0 commit comments

Comments
 (0)