Skip to content

Commit 5656359

Browse files
authored
Abehjati/update-target-chains (#260)
* Disable storage collision check on some migrations Some changes after them have storage collision and this requires them to disable it too * Add new implementation memory layouts
1 parent 3100ab9 commit 5656359

10 files changed

+1690
-3
lines changed

ethereum/.openzeppelin/goerli.json

Lines changed: 241 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,247 @@
453453
}
454454
}
455455
}
456+
},
457+
"db9fd323423bfd11fb68d9ce7c593e20d0e3b3584f2c546aaaaf4c3b3d037b5d": {
458+
"address": "0x4b998219551098A8830006495fc4862BD36e1A0B",
459+
"txHash": "0x415d81ee176e2f08833c31f17cac68473b93fd360d415537a5c047a47f0d1957",
460+
"layout": {
461+
"storage": [
462+
{
463+
"contract": "Initializable",
464+
"label": "_initialized",
465+
"type": "t_bool",
466+
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:39"
467+
},
468+
{
469+
"contract": "Initializable",
470+
"label": "_initializing",
471+
"type": "t_bool",
472+
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:44"
473+
},
474+
{
475+
"contract": "ContextUpgradeable",
476+
"label": "__gap",
477+
"type": "t_array(t_uint256)50_storage",
478+
"src": "../@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
479+
},
480+
{
481+
"contract": "OwnableUpgradeable",
482+
"label": "_owner",
483+
"type": "t_address",
484+
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
485+
},
486+
{
487+
"contract": "OwnableUpgradeable",
488+
"label": "__gap",
489+
"type": "t_array(t_uint256)49_storage",
490+
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:87"
491+
},
492+
{
493+
"contract": "ERC1967UpgradeUpgradeable",
494+
"label": "__gap",
495+
"type": "t_array(t_uint256)50_storage",
496+
"src": "../@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:211"
497+
},
498+
{
499+
"contract": "UUPSUpgradeable",
500+
"label": "__gap",
501+
"type": "t_array(t_uint256)50_storage",
502+
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:107"
503+
},
504+
{
505+
"contract": "PythState",
506+
"label": "_state",
507+
"type": "t_struct(State)4128_storage",
508+
"src": "../project:/contracts/pyth/PythState.sol:35"
509+
}
510+
],
511+
"types": {
512+
"t_struct(State)4128_storage": {
513+
"label": "struct PythStorage.State",
514+
"members": [
515+
{
516+
"label": "wormhole",
517+
"type": "t_address"
518+
},
519+
{
520+
"label": "_deprecatedPyth2WormholeChainId",
521+
"type": "t_uint16"
522+
},
523+
{
524+
"label": "_deprecatedPyth2WormholeEmitter",
525+
"type": "t_bytes32"
526+
},
527+
{
528+
"label": "latestPriceInfo",
529+
"type": "t_mapping(t_bytes32,t_struct(PriceInfo)4008_storage)"
530+
},
531+
{
532+
"label": "validDataSources",
533+
"type": "t_array(t_struct(DataSource)4013_storage)dyn_storage"
534+
},
535+
{
536+
"label": "isValidDataSource",
537+
"type": "t_mapping(t_bytes32,t_bool)"
538+
},
539+
{
540+
"label": "singleUpdateFeeInWei",
541+
"type": "t_uint256"
542+
},
543+
{
544+
"label": "validTimePeriodSeconds",
545+
"type": "t_uint256"
546+
}
547+
]
548+
},
549+
"t_address": {
550+
"label": "address"
551+
},
552+
"t_uint16": {
553+
"label": "uint16"
554+
},
555+
"t_bytes32": {
556+
"label": "bytes32"
557+
},
558+
"t_mapping(t_bytes32,t_struct(PriceInfo)4008_storage)": {
559+
"label": "mapping(bytes32 => struct PythInternalStructs.PriceInfo)"
560+
},
561+
"t_struct(PriceInfo)4008_storage": {
562+
"label": "struct PythInternalStructs.PriceInfo",
563+
"members": [
564+
{
565+
"label": "attestationTime",
566+
"type": "t_uint256"
567+
},
568+
{
569+
"label": "arrivalTime",
570+
"type": "t_uint256"
571+
},
572+
{
573+
"label": "arrivalBlock",
574+
"type": "t_uint256"
575+
},
576+
{
577+
"label": "priceFeed",
578+
"type": "t_struct(PriceFeed)2463_storage"
579+
}
580+
]
581+
},
582+
"t_array(t_struct(DataSource)4013_storage)dyn_storage": {
583+
"label": "struct PythInternalStructs.DataSource[]"
584+
},
585+
"t_struct(DataSource)4013_storage": {
586+
"label": "struct PythInternalStructs.DataSource",
587+
"members": [
588+
{
589+
"label": "chainId",
590+
"type": "t_uint16"
591+
},
592+
{
593+
"label": "emitterAddress",
594+
"type": "t_bytes32"
595+
}
596+
]
597+
},
598+
"t_mapping(t_bytes32,t_bool)": {
599+
"label": "mapping(bytes32 => bool)"
600+
},
601+
"t_bool": {
602+
"label": "bool"
603+
},
604+
"t_uint256": {
605+
"label": "uint256"
606+
},
607+
"t_struct(PriceFeed)2463_storage": {
608+
"label": "struct PythStructs.PriceFeed",
609+
"members": [
610+
{
611+
"label": "id",
612+
"type": "t_bytes32"
613+
},
614+
{
615+
"label": "productId",
616+
"type": "t_bytes32"
617+
},
618+
{
619+
"label": "price",
620+
"type": "t_int64"
621+
},
622+
{
623+
"label": "conf",
624+
"type": "t_uint64"
625+
},
626+
{
627+
"label": "expo",
628+
"type": "t_int32"
629+
},
630+
{
631+
"label": "status",
632+
"type": "t_enum(PriceStatus)2468"
633+
},
634+
{
635+
"label": "maxNumPublishers",
636+
"type": "t_uint32"
637+
},
638+
{
639+
"label": "numPublishers",
640+
"type": "t_uint32"
641+
},
642+
{
643+
"label": "emaPrice",
644+
"type": "t_int64"
645+
},
646+
{
647+
"label": "emaConf",
648+
"type": "t_uint64"
649+
},
650+
{
651+
"label": "publishTime",
652+
"type": "t_uint64"
653+
},
654+
{
655+
"label": "prevPrice",
656+
"type": "t_int64"
657+
},
658+
{
659+
"label": "prevConf",
660+
"type": "t_uint64"
661+
},
662+
{
663+
"label": "prevPublishTime",
664+
"type": "t_uint64"
665+
}
666+
]
667+
},
668+
"t_int64": {
669+
"label": "int64"
670+
},
671+
"t_uint64": {
672+
"label": "uint64"
673+
},
674+
"t_int32": {
675+
"label": "int32"
676+
},
677+
"t_enum(PriceStatus)2468": {
678+
"label": "enum PythStructs.PriceStatus",
679+
"members": [
680+
"UNKNOWN",
681+
"TRADING",
682+
"HALTED",
683+
"AUCTION"
684+
]
685+
},
686+
"t_uint32": {
687+
"label": "uint32"
688+
},
689+
"t_array(t_uint256)50_storage": {
690+
"label": "uint256[50]"
691+
},
692+
"t_array(t_uint256)49_storage": {
693+
"label": "uint256[49]"
694+
}
695+
}
696+
}
456697
}
457698
}
458699
}

0 commit comments

Comments
 (0)