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
This commit is contained in:
Ali Behjati 2022-08-26 12:01:30 +02:00 committed by GitHub
parent 3100ab9e53
commit 56563599ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 1690 additions and 3 deletions

View File

@ -453,6 +453,247 @@
}
}
}
},
"db9fd323423bfd11fb68d9ce7c593e20d0e3b3584f2c546aaaaf4c3b3d037b5d": {
"address": "0x4b998219551098A8830006495fc4862BD36e1A0B",
"txHash": "0x415d81ee176e2f08833c31f17cac68473b93fd360d415537a5c047a47f0d1957",
"layout": {
"storage": [
{
"contract": "Initializable",
"label": "_initialized",
"type": "t_bool",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:39"
},
{
"contract": "Initializable",
"label": "_initializing",
"type": "t_bool",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:44"
},
{
"contract": "ContextUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
},
{
"contract": "OwnableUpgradeable",
"label": "_owner",
"type": "t_address",
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
},
{
"contract": "OwnableUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)49_storage",
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:87"
},
{
"contract": "ERC1967UpgradeUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:211"
},
{
"contract": "UUPSUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:107"
},
{
"contract": "PythState",
"label": "_state",
"type": "t_struct(State)4128_storage",
"src": "../project:/contracts/pyth/PythState.sol:35"
}
],
"types": {
"t_struct(State)4128_storage": {
"label": "struct PythStorage.State",
"members": [
{
"label": "wormhole",
"type": "t_address"
},
{
"label": "_deprecatedPyth2WormholeChainId",
"type": "t_uint16"
},
{
"label": "_deprecatedPyth2WormholeEmitter",
"type": "t_bytes32"
},
{
"label": "latestPriceInfo",
"type": "t_mapping(t_bytes32,t_struct(PriceInfo)4008_storage)"
},
{
"label": "validDataSources",
"type": "t_array(t_struct(DataSource)4013_storage)dyn_storage"
},
{
"label": "isValidDataSource",
"type": "t_mapping(t_bytes32,t_bool)"
},
{
"label": "singleUpdateFeeInWei",
"type": "t_uint256"
},
{
"label": "validTimePeriodSeconds",
"type": "t_uint256"
}
]
},
"t_address": {
"label": "address"
},
"t_uint16": {
"label": "uint16"
},
"t_bytes32": {
"label": "bytes32"
},
"t_mapping(t_bytes32,t_struct(PriceInfo)4008_storage)": {
"label": "mapping(bytes32 => struct PythInternalStructs.PriceInfo)"
},
"t_struct(PriceInfo)4008_storage": {
"label": "struct PythInternalStructs.PriceInfo",
"members": [
{
"label": "attestationTime",
"type": "t_uint256"
},
{
"label": "arrivalTime",
"type": "t_uint256"
},
{
"label": "arrivalBlock",
"type": "t_uint256"
},
{
"label": "priceFeed",
"type": "t_struct(PriceFeed)2463_storage"
}
]
},
"t_array(t_struct(DataSource)4013_storage)dyn_storage": {
"label": "struct PythInternalStructs.DataSource[]"
},
"t_struct(DataSource)4013_storage": {
"label": "struct PythInternalStructs.DataSource",
"members": [
{
"label": "chainId",
"type": "t_uint16"
},
{
"label": "emitterAddress",
"type": "t_bytes32"
}
]
},
"t_mapping(t_bytes32,t_bool)": {
"label": "mapping(bytes32 => bool)"
},
"t_bool": {
"label": "bool"
},
"t_uint256": {
"label": "uint256"
},
"t_struct(PriceFeed)2463_storage": {
"label": "struct PythStructs.PriceFeed",
"members": [
{
"label": "id",
"type": "t_bytes32"
},
{
"label": "productId",
"type": "t_bytes32"
},
{
"label": "price",
"type": "t_int64"
},
{
"label": "conf",
"type": "t_uint64"
},
{
"label": "expo",
"type": "t_int32"
},
{
"label": "status",
"type": "t_enum(PriceStatus)2468"
},
{
"label": "maxNumPublishers",
"type": "t_uint32"
},
{
"label": "numPublishers",
"type": "t_uint32"
},
{
"label": "emaPrice",
"type": "t_int64"
},
{
"label": "emaConf",
"type": "t_uint64"
},
{
"label": "publishTime",
"type": "t_uint64"
},
{
"label": "prevPrice",
"type": "t_int64"
},
{
"label": "prevConf",
"type": "t_uint64"
},
{
"label": "prevPublishTime",
"type": "t_uint64"
}
]
},
"t_int64": {
"label": "int64"
},
"t_uint64": {
"label": "uint64"
},
"t_int32": {
"label": "int32"
},
"t_enum(PriceStatus)2468": {
"label": "enum PythStructs.PriceStatus",
"members": [
"UNKNOWN",
"TRADING",
"HALTED",
"AUCTION"
]
},
"t_uint32": {
"label": "uint32"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]"
}
}
}
}
}
}

View File

@ -453,6 +453,247 @@
}
}
}
},
"db9fd323423bfd11fb68d9ce7c593e20d0e3b3584f2c546aaaaf4c3b3d037b5d": {
"address": "0x1A399CC8877e521a7B70A5b69B97D583c59a2eCb",
"txHash": "0x2665b306ab8d8e6c582d5ebdd2e4aca76aa7ea2525b5db23426f2aa42fc2edf5",
"layout": {
"storage": [
{
"contract": "Initializable",
"label": "_initialized",
"type": "t_bool",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:39"
},
{
"contract": "Initializable",
"label": "_initializing",
"type": "t_bool",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:44"
},
{
"contract": "ContextUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
},
{
"contract": "OwnableUpgradeable",
"label": "_owner",
"type": "t_address",
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
},
{
"contract": "OwnableUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)49_storage",
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:87"
},
{
"contract": "ERC1967UpgradeUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:211"
},
{
"contract": "UUPSUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:107"
},
{
"contract": "PythState",
"label": "_state",
"type": "t_struct(State)4128_storage",
"src": "../project:/contracts/pyth/PythState.sol:35"
}
],
"types": {
"t_struct(State)4128_storage": {
"label": "struct PythStorage.State",
"members": [
{
"label": "wormhole",
"type": "t_address"
},
{
"label": "_deprecatedPyth2WormholeChainId",
"type": "t_uint16"
},
{
"label": "_deprecatedPyth2WormholeEmitter",
"type": "t_bytes32"
},
{
"label": "latestPriceInfo",
"type": "t_mapping(t_bytes32,t_struct(PriceInfo)4008_storage)"
},
{
"label": "validDataSources",
"type": "t_array(t_struct(DataSource)4013_storage)dyn_storage"
},
{
"label": "isValidDataSource",
"type": "t_mapping(t_bytes32,t_bool)"
},
{
"label": "singleUpdateFeeInWei",
"type": "t_uint256"
},
{
"label": "validTimePeriodSeconds",
"type": "t_uint256"
}
]
},
"t_address": {
"label": "address"
},
"t_uint16": {
"label": "uint16"
},
"t_bytes32": {
"label": "bytes32"
},
"t_mapping(t_bytes32,t_struct(PriceInfo)4008_storage)": {
"label": "mapping(bytes32 => struct PythInternalStructs.PriceInfo)"
},
"t_struct(PriceInfo)4008_storage": {
"label": "struct PythInternalStructs.PriceInfo",
"members": [
{
"label": "attestationTime",
"type": "t_uint256"
},
{
"label": "arrivalTime",
"type": "t_uint256"
},
{
"label": "arrivalBlock",
"type": "t_uint256"
},
{
"label": "priceFeed",
"type": "t_struct(PriceFeed)2463_storage"
}
]
},
"t_array(t_struct(DataSource)4013_storage)dyn_storage": {
"label": "struct PythInternalStructs.DataSource[]"
},
"t_struct(DataSource)4013_storage": {
"label": "struct PythInternalStructs.DataSource",
"members": [
{
"label": "chainId",
"type": "t_uint16"
},
{
"label": "emitterAddress",
"type": "t_bytes32"
}
]
},
"t_mapping(t_bytes32,t_bool)": {
"label": "mapping(bytes32 => bool)"
},
"t_bool": {
"label": "bool"
},
"t_uint256": {
"label": "uint256"
},
"t_struct(PriceFeed)2463_storage": {
"label": "struct PythStructs.PriceFeed",
"members": [
{
"label": "id",
"type": "t_bytes32"
},
{
"label": "productId",
"type": "t_bytes32"
},
{
"label": "price",
"type": "t_int64"
},
{
"label": "conf",
"type": "t_uint64"
},
{
"label": "expo",
"type": "t_int32"
},
{
"label": "status",
"type": "t_enum(PriceStatus)2468"
},
{
"label": "maxNumPublishers",
"type": "t_uint32"
},
{
"label": "numPublishers",
"type": "t_uint32"
},
{
"label": "emaPrice",
"type": "t_int64"
},
{
"label": "emaConf",
"type": "t_uint64"
},
{
"label": "publishTime",
"type": "t_uint64"
},
{
"label": "prevPrice",
"type": "t_int64"
},
{
"label": "prevConf",
"type": "t_uint64"
},
{
"label": "prevPublishTime",
"type": "t_uint64"
}
]
},
"t_int64": {
"label": "int64"
},
"t_uint64": {
"label": "uint64"
},
"t_int32": {
"label": "int32"
},
"t_enum(PriceStatus)2468": {
"label": "enum PythStructs.PriceStatus",
"members": [
"UNKNOWN",
"TRADING",
"HALTED",
"AUCTION"
]
},
"t_uint32": {
"label": "uint32"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]"
}
}
}
}
}
}

View File

@ -453,6 +453,247 @@
}
}
}
},
"db9fd323423bfd11fb68d9ce7c593e20d0e3b3584f2c546aaaaf4c3b3d037b5d": {
"address": "0x310E7D5Debf088a225c612E4679727Ef0C7080aF",
"txHash": "0xac6ad4cc24e2c9dc4e87c270fcbaa9374c1ebe03e1c25238f3aa6d9f13d541b0",
"layout": {
"storage": [
{
"contract": "Initializable",
"label": "_initialized",
"type": "t_bool",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:39"
},
{
"contract": "Initializable",
"label": "_initializing",
"type": "t_bool",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:44"
},
{
"contract": "ContextUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
},
{
"contract": "OwnableUpgradeable",
"label": "_owner",
"type": "t_address",
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
},
{
"contract": "OwnableUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)49_storage",
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:87"
},
{
"contract": "ERC1967UpgradeUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:211"
},
{
"contract": "UUPSUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:107"
},
{
"contract": "PythState",
"label": "_state",
"type": "t_struct(State)4128_storage",
"src": "../project:/contracts/pyth/PythState.sol:35"
}
],
"types": {
"t_struct(State)4128_storage": {
"label": "struct PythStorage.State",
"members": [
{
"label": "wormhole",
"type": "t_address"
},
{
"label": "_deprecatedPyth2WormholeChainId",
"type": "t_uint16"
},
{
"label": "_deprecatedPyth2WormholeEmitter",
"type": "t_bytes32"
},
{
"label": "latestPriceInfo",
"type": "t_mapping(t_bytes32,t_struct(PriceInfo)4008_storage)"
},
{
"label": "validDataSources",
"type": "t_array(t_struct(DataSource)4013_storage)dyn_storage"
},
{
"label": "isValidDataSource",
"type": "t_mapping(t_bytes32,t_bool)"
},
{
"label": "singleUpdateFeeInWei",
"type": "t_uint256"
},
{
"label": "validTimePeriodSeconds",
"type": "t_uint256"
}
]
},
"t_address": {
"label": "address"
},
"t_uint16": {
"label": "uint16"
},
"t_bytes32": {
"label": "bytes32"
},
"t_mapping(t_bytes32,t_struct(PriceInfo)4008_storage)": {
"label": "mapping(bytes32 => struct PythInternalStructs.PriceInfo)"
},
"t_struct(PriceInfo)4008_storage": {
"label": "struct PythInternalStructs.PriceInfo",
"members": [
{
"label": "attestationTime",
"type": "t_uint256"
},
{
"label": "arrivalTime",
"type": "t_uint256"
},
{
"label": "arrivalBlock",
"type": "t_uint256"
},
{
"label": "priceFeed",
"type": "t_struct(PriceFeed)2463_storage"
}
]
},
"t_array(t_struct(DataSource)4013_storage)dyn_storage": {
"label": "struct PythInternalStructs.DataSource[]"
},
"t_struct(DataSource)4013_storage": {
"label": "struct PythInternalStructs.DataSource",
"members": [
{
"label": "chainId",
"type": "t_uint16"
},
{
"label": "emitterAddress",
"type": "t_bytes32"
}
]
},
"t_mapping(t_bytes32,t_bool)": {
"label": "mapping(bytes32 => bool)"
},
"t_bool": {
"label": "bool"
},
"t_uint256": {
"label": "uint256"
},
"t_struct(PriceFeed)2463_storage": {
"label": "struct PythStructs.PriceFeed",
"members": [
{
"label": "id",
"type": "t_bytes32"
},
{
"label": "productId",
"type": "t_bytes32"
},
{
"label": "price",
"type": "t_int64"
},
{
"label": "conf",
"type": "t_uint64"
},
{
"label": "expo",
"type": "t_int32"
},
{
"label": "status",
"type": "t_enum(PriceStatus)2468"
},
{
"label": "maxNumPublishers",
"type": "t_uint32"
},
{
"label": "numPublishers",
"type": "t_uint32"
},
{
"label": "emaPrice",
"type": "t_int64"
},
{
"label": "emaConf",
"type": "t_uint64"
},
{
"label": "publishTime",
"type": "t_uint64"
},
{
"label": "prevPrice",
"type": "t_int64"
},
{
"label": "prevConf",
"type": "t_uint64"
},
{
"label": "prevPublishTime",
"type": "t_uint64"
}
]
},
"t_int64": {
"label": "int64"
},
"t_uint64": {
"label": "uint64"
},
"t_int32": {
"label": "int32"
},
"t_enum(PriceStatus)2468": {
"label": "enum PythStructs.PriceStatus",
"members": [
"UNKNOWN",
"TRADING",
"HALTED",
"AUCTION"
]
},
"t_uint32": {
"label": "uint32"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]"
}
}
}
}
}
}

View File

@ -453,6 +453,247 @@
}
}
}
},
"db9fd323423bfd11fb68d9ce7c593e20d0e3b3584f2c546aaaaf4c3b3d037b5d": {
"address": "0x1A399CC8877e521a7B70A5b69B97D583c59a2eCb",
"txHash": "0x4d08a79310693031785d59fb88465fb085183ffa72273275dfd26d39ea55bcac",
"layout": {
"storage": [
{
"contract": "Initializable",
"label": "_initialized",
"type": "t_bool",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:39"
},
{
"contract": "Initializable",
"label": "_initializing",
"type": "t_bool",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:44"
},
{
"contract": "ContextUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
},
{
"contract": "OwnableUpgradeable",
"label": "_owner",
"type": "t_address",
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
},
{
"contract": "OwnableUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)49_storage",
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:87"
},
{
"contract": "ERC1967UpgradeUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:211"
},
{
"contract": "UUPSUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:107"
},
{
"contract": "PythState",
"label": "_state",
"type": "t_struct(State)4128_storage",
"src": "../project:/contracts/pyth/PythState.sol:35"
}
],
"types": {
"t_struct(State)4128_storage": {
"label": "struct PythStorage.State",
"members": [
{
"label": "wormhole",
"type": "t_address"
},
{
"label": "_deprecatedPyth2WormholeChainId",
"type": "t_uint16"
},
{
"label": "_deprecatedPyth2WormholeEmitter",
"type": "t_bytes32"
},
{
"label": "latestPriceInfo",
"type": "t_mapping(t_bytes32,t_struct(PriceInfo)4008_storage)"
},
{
"label": "validDataSources",
"type": "t_array(t_struct(DataSource)4013_storage)dyn_storage"
},
{
"label": "isValidDataSource",
"type": "t_mapping(t_bytes32,t_bool)"
},
{
"label": "singleUpdateFeeInWei",
"type": "t_uint256"
},
{
"label": "validTimePeriodSeconds",
"type": "t_uint256"
}
]
},
"t_address": {
"label": "address"
},
"t_uint16": {
"label": "uint16"
},
"t_bytes32": {
"label": "bytes32"
},
"t_mapping(t_bytes32,t_struct(PriceInfo)4008_storage)": {
"label": "mapping(bytes32 => struct PythInternalStructs.PriceInfo)"
},
"t_struct(PriceInfo)4008_storage": {
"label": "struct PythInternalStructs.PriceInfo",
"members": [
{
"label": "attestationTime",
"type": "t_uint256"
},
{
"label": "arrivalTime",
"type": "t_uint256"
},
{
"label": "arrivalBlock",
"type": "t_uint256"
},
{
"label": "priceFeed",
"type": "t_struct(PriceFeed)2463_storage"
}
]
},
"t_array(t_struct(DataSource)4013_storage)dyn_storage": {
"label": "struct PythInternalStructs.DataSource[]"
},
"t_struct(DataSource)4013_storage": {
"label": "struct PythInternalStructs.DataSource",
"members": [
{
"label": "chainId",
"type": "t_uint16"
},
{
"label": "emitterAddress",
"type": "t_bytes32"
}
]
},
"t_mapping(t_bytes32,t_bool)": {
"label": "mapping(bytes32 => bool)"
},
"t_bool": {
"label": "bool"
},
"t_uint256": {
"label": "uint256"
},
"t_struct(PriceFeed)2463_storage": {
"label": "struct PythStructs.PriceFeed",
"members": [
{
"label": "id",
"type": "t_bytes32"
},
{
"label": "productId",
"type": "t_bytes32"
},
{
"label": "price",
"type": "t_int64"
},
{
"label": "conf",
"type": "t_uint64"
},
{
"label": "expo",
"type": "t_int32"
},
{
"label": "status",
"type": "t_enum(PriceStatus)2468"
},
{
"label": "maxNumPublishers",
"type": "t_uint32"
},
{
"label": "numPublishers",
"type": "t_uint32"
},
{
"label": "emaPrice",
"type": "t_int64"
},
{
"label": "emaConf",
"type": "t_uint64"
},
{
"label": "publishTime",
"type": "t_uint64"
},
{
"label": "prevPrice",
"type": "t_int64"
},
{
"label": "prevConf",
"type": "t_uint64"
},
{
"label": "prevPublishTime",
"type": "t_uint64"
}
]
},
"t_int64": {
"label": "int64"
},
"t_uint64": {
"label": "uint64"
},
"t_int32": {
"label": "int32"
},
"t_enum(PriceStatus)2468": {
"label": "enum PythStructs.PriceStatus",
"members": [
"UNKNOWN",
"TRADING",
"HALTED",
"AUCTION"
]
},
"t_uint32": {
"label": "uint32"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]"
}
}
}
}
}
}

View File

@ -453,6 +453,247 @@
}
}
}
},
"db9fd323423bfd11fb68d9ce7c593e20d0e3b3584f2c546aaaaf4c3b3d037b5d": {
"address": "0x1A399CC8877e521a7B70A5b69B97D583c59a2eCb",
"txHash": "0xb9301cc84725870288fc0b495101424fa2f47c8838f141b96fded6bbb5c24163",
"layout": {
"storage": [
{
"contract": "Initializable",
"label": "_initialized",
"type": "t_bool",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:39"
},
{
"contract": "Initializable",
"label": "_initializing",
"type": "t_bool",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:44"
},
{
"contract": "ContextUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
},
{
"contract": "OwnableUpgradeable",
"label": "_owner",
"type": "t_address",
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
},
{
"contract": "OwnableUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)49_storage",
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:87"
},
{
"contract": "ERC1967UpgradeUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:211"
},
{
"contract": "UUPSUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:107"
},
{
"contract": "PythState",
"label": "_state",
"type": "t_struct(State)4128_storage",
"src": "../project:/contracts/pyth/PythState.sol:35"
}
],
"types": {
"t_struct(State)4128_storage": {
"label": "struct PythStorage.State",
"members": [
{
"label": "wormhole",
"type": "t_address"
},
{
"label": "_deprecatedPyth2WormholeChainId",
"type": "t_uint16"
},
{
"label": "_deprecatedPyth2WormholeEmitter",
"type": "t_bytes32"
},
{
"label": "latestPriceInfo",
"type": "t_mapping(t_bytes32,t_struct(PriceInfo)4008_storage)"
},
{
"label": "validDataSources",
"type": "t_array(t_struct(DataSource)4013_storage)dyn_storage"
},
{
"label": "isValidDataSource",
"type": "t_mapping(t_bytes32,t_bool)"
},
{
"label": "singleUpdateFeeInWei",
"type": "t_uint256"
},
{
"label": "validTimePeriodSeconds",
"type": "t_uint256"
}
]
},
"t_address": {
"label": "address"
},
"t_uint16": {
"label": "uint16"
},
"t_bytes32": {
"label": "bytes32"
},
"t_mapping(t_bytes32,t_struct(PriceInfo)4008_storage)": {
"label": "mapping(bytes32 => struct PythInternalStructs.PriceInfo)"
},
"t_struct(PriceInfo)4008_storage": {
"label": "struct PythInternalStructs.PriceInfo",
"members": [
{
"label": "attestationTime",
"type": "t_uint256"
},
{
"label": "arrivalTime",
"type": "t_uint256"
},
{
"label": "arrivalBlock",
"type": "t_uint256"
},
{
"label": "priceFeed",
"type": "t_struct(PriceFeed)2463_storage"
}
]
},
"t_array(t_struct(DataSource)4013_storage)dyn_storage": {
"label": "struct PythInternalStructs.DataSource[]"
},
"t_struct(DataSource)4013_storage": {
"label": "struct PythInternalStructs.DataSource",
"members": [
{
"label": "chainId",
"type": "t_uint16"
},
{
"label": "emitterAddress",
"type": "t_bytes32"
}
]
},
"t_mapping(t_bytes32,t_bool)": {
"label": "mapping(bytes32 => bool)"
},
"t_bool": {
"label": "bool"
},
"t_uint256": {
"label": "uint256"
},
"t_struct(PriceFeed)2463_storage": {
"label": "struct PythStructs.PriceFeed",
"members": [
{
"label": "id",
"type": "t_bytes32"
},
{
"label": "productId",
"type": "t_bytes32"
},
{
"label": "price",
"type": "t_int64"
},
{
"label": "conf",
"type": "t_uint64"
},
{
"label": "expo",
"type": "t_int32"
},
{
"label": "status",
"type": "t_enum(PriceStatus)2468"
},
{
"label": "maxNumPublishers",
"type": "t_uint32"
},
{
"label": "numPublishers",
"type": "t_uint32"
},
{
"label": "emaPrice",
"type": "t_int64"
},
{
"label": "emaConf",
"type": "t_uint64"
},
{
"label": "publishTime",
"type": "t_uint64"
},
{
"label": "prevPrice",
"type": "t_int64"
},
{
"label": "prevConf",
"type": "t_uint64"
},
{
"label": "prevPublishTime",
"type": "t_uint64"
}
]
},
"t_int64": {
"label": "int64"
},
"t_uint64": {
"label": "uint64"
},
"t_int32": {
"label": "int32"
},
"t_enum(PriceStatus)2468": {
"label": "enum PythStructs.PriceStatus",
"members": [
"UNKNOWN",
"TRADING",
"HALTED",
"AUCTION"
]
},
"t_uint32": {
"label": "uint32"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]"
}
}
}
}
}
}

View File

@ -453,6 +453,247 @@
}
}
}
},
"db9fd323423bfd11fb68d9ce7c593e20d0e3b3584f2c546aaaaf4c3b3d037b5d": {
"address": "0x886F962dfD411A38eC1274B58767143E3eF289b2",
"txHash": "0x05de2a40070b2aada32a652a6481c6989d09213cb323cfbb2393aee7138c5330",
"layout": {
"storage": [
{
"contract": "Initializable",
"label": "_initialized",
"type": "t_bool",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:39"
},
{
"contract": "Initializable",
"label": "_initializing",
"type": "t_bool",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:44"
},
{
"contract": "ContextUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
},
{
"contract": "OwnableUpgradeable",
"label": "_owner",
"type": "t_address",
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
},
{
"contract": "OwnableUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)49_storage",
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:87"
},
{
"contract": "ERC1967UpgradeUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:211"
},
{
"contract": "UUPSUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:107"
},
{
"contract": "PythState",
"label": "_state",
"type": "t_struct(State)4128_storage",
"src": "../project:/contracts/pyth/PythState.sol:35"
}
],
"types": {
"t_struct(State)4128_storage": {
"label": "struct PythStorage.State",
"members": [
{
"label": "wormhole",
"type": "t_address"
},
{
"label": "_deprecatedPyth2WormholeChainId",
"type": "t_uint16"
},
{
"label": "_deprecatedPyth2WormholeEmitter",
"type": "t_bytes32"
},
{
"label": "latestPriceInfo",
"type": "t_mapping(t_bytes32,t_struct(PriceInfo)4008_storage)"
},
{
"label": "validDataSources",
"type": "t_array(t_struct(DataSource)4013_storage)dyn_storage"
},
{
"label": "isValidDataSource",
"type": "t_mapping(t_bytes32,t_bool)"
},
{
"label": "singleUpdateFeeInWei",
"type": "t_uint256"
},
{
"label": "validTimePeriodSeconds",
"type": "t_uint256"
}
]
},
"t_address": {
"label": "address"
},
"t_uint16": {
"label": "uint16"
},
"t_bytes32": {
"label": "bytes32"
},
"t_mapping(t_bytes32,t_struct(PriceInfo)4008_storage)": {
"label": "mapping(bytes32 => struct PythInternalStructs.PriceInfo)"
},
"t_struct(PriceInfo)4008_storage": {
"label": "struct PythInternalStructs.PriceInfo",
"members": [
{
"label": "attestationTime",
"type": "t_uint256"
},
{
"label": "arrivalTime",
"type": "t_uint256"
},
{
"label": "arrivalBlock",
"type": "t_uint256"
},
{
"label": "priceFeed",
"type": "t_struct(PriceFeed)2463_storage"
}
]
},
"t_array(t_struct(DataSource)4013_storage)dyn_storage": {
"label": "struct PythInternalStructs.DataSource[]"
},
"t_struct(DataSource)4013_storage": {
"label": "struct PythInternalStructs.DataSource",
"members": [
{
"label": "chainId",
"type": "t_uint16"
},
{
"label": "emitterAddress",
"type": "t_bytes32"
}
]
},
"t_mapping(t_bytes32,t_bool)": {
"label": "mapping(bytes32 => bool)"
},
"t_bool": {
"label": "bool"
},
"t_uint256": {
"label": "uint256"
},
"t_struct(PriceFeed)2463_storage": {
"label": "struct PythStructs.PriceFeed",
"members": [
{
"label": "id",
"type": "t_bytes32"
},
{
"label": "productId",
"type": "t_bytes32"
},
{
"label": "price",
"type": "t_int64"
},
{
"label": "conf",
"type": "t_uint64"
},
{
"label": "expo",
"type": "t_int32"
},
{
"label": "status",
"type": "t_enum(PriceStatus)2468"
},
{
"label": "maxNumPublishers",
"type": "t_uint32"
},
{
"label": "numPublishers",
"type": "t_uint32"
},
{
"label": "emaPrice",
"type": "t_int64"
},
{
"label": "emaConf",
"type": "t_uint64"
},
{
"label": "publishTime",
"type": "t_uint64"
},
{
"label": "prevPrice",
"type": "t_int64"
},
{
"label": "prevConf",
"type": "t_uint64"
},
{
"label": "prevPublishTime",
"type": "t_uint64"
}
]
},
"t_int64": {
"label": "int64"
},
"t_uint64": {
"label": "uint64"
},
"t_int32": {
"label": "int32"
},
"t_enum(PriceStatus)2468": {
"label": "enum PythStructs.PriceStatus",
"members": [
"UNKNOWN",
"TRADING",
"HALTED",
"AUCTION"
]
},
"t_uint32": {
"label": "uint32"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]"
}
}
}
}
}
}

View File

@ -453,6 +453,247 @@
}
}
}
},
"db9fd323423bfd11fb68d9ce7c593e20d0e3b3584f2c546aaaaf4c3b3d037b5d": {
"address": "0xbE9Ff32a0c81A75d61d4bF1aDd93ce09acCC275B",
"txHash": "0xa22371c39a73376c9f0df79f3e7ea4ab0a4cffed58d16a05bf40b5d0256d8fd3",
"layout": {
"storage": [
{
"contract": "Initializable",
"label": "_initialized",
"type": "t_bool",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:39"
},
{
"contract": "Initializable",
"label": "_initializing",
"type": "t_bool",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:44"
},
{
"contract": "ContextUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
},
{
"contract": "OwnableUpgradeable",
"label": "_owner",
"type": "t_address",
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
},
{
"contract": "OwnableUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)49_storage",
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:87"
},
{
"contract": "ERC1967UpgradeUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:211"
},
{
"contract": "UUPSUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:107"
},
{
"contract": "PythState",
"label": "_state",
"type": "t_struct(State)4128_storage",
"src": "../project:/contracts/pyth/PythState.sol:35"
}
],
"types": {
"t_struct(State)4128_storage": {
"label": "struct PythStorage.State",
"members": [
{
"label": "wormhole",
"type": "t_address"
},
{
"label": "_deprecatedPyth2WormholeChainId",
"type": "t_uint16"
},
{
"label": "_deprecatedPyth2WormholeEmitter",
"type": "t_bytes32"
},
{
"label": "latestPriceInfo",
"type": "t_mapping(t_bytes32,t_struct(PriceInfo)4008_storage)"
},
{
"label": "validDataSources",
"type": "t_array(t_struct(DataSource)4013_storage)dyn_storage"
},
{
"label": "isValidDataSource",
"type": "t_mapping(t_bytes32,t_bool)"
},
{
"label": "singleUpdateFeeInWei",
"type": "t_uint256"
},
{
"label": "validTimePeriodSeconds",
"type": "t_uint256"
}
]
},
"t_address": {
"label": "address"
},
"t_uint16": {
"label": "uint16"
},
"t_bytes32": {
"label": "bytes32"
},
"t_mapping(t_bytes32,t_struct(PriceInfo)4008_storage)": {
"label": "mapping(bytes32 => struct PythInternalStructs.PriceInfo)"
},
"t_struct(PriceInfo)4008_storage": {
"label": "struct PythInternalStructs.PriceInfo",
"members": [
{
"label": "attestationTime",
"type": "t_uint256"
},
{
"label": "arrivalTime",
"type": "t_uint256"
},
{
"label": "arrivalBlock",
"type": "t_uint256"
},
{
"label": "priceFeed",
"type": "t_struct(PriceFeed)2463_storage"
}
]
},
"t_array(t_struct(DataSource)4013_storage)dyn_storage": {
"label": "struct PythInternalStructs.DataSource[]"
},
"t_struct(DataSource)4013_storage": {
"label": "struct PythInternalStructs.DataSource",
"members": [
{
"label": "chainId",
"type": "t_uint16"
},
{
"label": "emitterAddress",
"type": "t_bytes32"
}
]
},
"t_mapping(t_bytes32,t_bool)": {
"label": "mapping(bytes32 => bool)"
},
"t_bool": {
"label": "bool"
},
"t_uint256": {
"label": "uint256"
},
"t_struct(PriceFeed)2463_storage": {
"label": "struct PythStructs.PriceFeed",
"members": [
{
"label": "id",
"type": "t_bytes32"
},
{
"label": "productId",
"type": "t_bytes32"
},
{
"label": "price",
"type": "t_int64"
},
{
"label": "conf",
"type": "t_uint64"
},
{
"label": "expo",
"type": "t_int32"
},
{
"label": "status",
"type": "t_enum(PriceStatus)2468"
},
{
"label": "maxNumPublishers",
"type": "t_uint32"
},
{
"label": "numPublishers",
"type": "t_uint32"
},
{
"label": "emaPrice",
"type": "t_int64"
},
{
"label": "emaConf",
"type": "t_uint64"
},
{
"label": "publishTime",
"type": "t_uint64"
},
{
"label": "prevPrice",
"type": "t_int64"
},
{
"label": "prevConf",
"type": "t_uint64"
},
{
"label": "prevPublishTime",
"type": "t_uint64"
}
]
},
"t_int64": {
"label": "int64"
},
"t_uint64": {
"label": "uint64"
},
"t_int32": {
"label": "int32"
},
"t_enum(PriceStatus)2468": {
"label": "enum PythStructs.PriceStatus",
"members": [
"UNKNOWN",
"TRADING",
"HALTED",
"AUCTION"
]
},
"t_uint32": {
"label": "uint32"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]"
}
}
}
}
}
}

View File

@ -12,5 +12,5 @@ const { upgradeProxy } = require("@openzeppelin/truffle-upgrades");
*/
module.exports = async function (deployer) {
const proxy = await PythUpgradable.deployed();
await upgradeProxy(proxy.address, PythUpgradable, { deployer });
await upgradeProxy(proxy.address, PythUpgradable, { deployer, unsafeSkipStorageCheck: true });
}

View File

@ -12,5 +12,5 @@ const { upgradeProxy } = require("@openzeppelin/truffle-upgrades");
*/
module.exports = async function (deployer) {
const proxy = await PythUpgradable.deployed();
await upgradeProxy(proxy.address, PythUpgradable, { deployer });
await upgradeProxy(proxy.address, PythUpgradable, { deployer, unsafeSkipStorageCheck: true });
}

View File

@ -12,5 +12,5 @@ const { upgradeProxy } = require("@openzeppelin/truffle-upgrades");
*/
module.exports = async function (deployer) {
const proxy = await PythUpgradable.deployed();
await upgradeProxy(proxy.address, PythUpgradable, { deployer });
await upgradeProxy(proxy.address, PythUpgradable, { deployer, unsafeSkipStorageCheck: true });
}