Skip to content

Commit

Permalink
Update tests for after upgrade (#116)
Browse files Browse the repository at this point in the history
* Update tests for after upgrade

* Update transaction for mainnet

* Fix tests

* replace getBalance with balance.current

* Fix redundant import

* Update FeesEscrow test

* Update RewardEthToken totalSupply

* Fix tests for updated total supply

* Remove redundant import

* Remove upgrade function from RewardEthToken

* Remove RewardEthToken upgrade test

* Fix incorrect file removal

* Deploy RewardEthToken 2.1.1

* Upgrade RewardEthToken proxy

* Upload updated Pessimistic report

* Update proxies test
  • Loading branch information
tsudmi authored Sep 16, 2022
1 parent 29a802e commit 0e51a35
Show file tree
Hide file tree
Showing 18 changed files with 9,788 additions and 9,987 deletions.
301 changes: 301 additions & 0 deletions .openzeppelin/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -3497,6 +3497,307 @@
}
}
}
},
"0570d8b09dfa923c4a3464f14202ab3ff5998108ca1a59eae09600cf2bd12927": {
"address": "0x04f439c341221Da7AE086b6F585e4Cd7a7E54622",
"txHash": "0xfd5e59bb0472ffc5695cb9fcbe4031a416e1517467861de78657698e5e9ed329",
"layout": {
"storage": [
{
"contract": "Initializable",
"label": "_initialized",
"type": "t_bool",
"src": "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol:25"
},
{
"contract": "Initializable",
"label": "_initializing",
"type": "t_bool",
"src": "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol:30"
},
{
"contract": "ContextUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:31"
},
{
"contract": "PausableUpgradeable",
"label": "_paused",
"type": "t_bool",
"src": "@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol:28"
},
{
"contract": "PausableUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)49_storage",
"src": "@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol:96"
},
{
"contract": "AccessControlUpgradeable",
"label": "_roles",
"type": "t_mapping(t_bytes32,t_struct(RoleData)39_storage)",
"src": "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol:61"
},
{
"contract": "AccessControlUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)49_storage",
"src": "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol:225"
},
{
"contract": "ERC20Upgradeable",
"label": "_allowances",
"type": "t_mapping(t_address,t_mapping(t_address,t_uint256))",
"src": "contracts/tokens/ERC20Upgradeable.sol:38"
},
{
"contract": "ERC20Upgradeable",
"label": "_name",
"type": "t_string_storage",
"src": "contracts/tokens/ERC20Upgradeable.sol:40"
},
{
"contract": "ERC20Upgradeable",
"label": "_symbol",
"type": "t_string_storage",
"src": "contracts/tokens/ERC20Upgradeable.sol:41"
},
{
"contract": "ERC20Upgradeable",
"label": "_decimals",
"type": "t_uint8",
"src": "contracts/tokens/ERC20Upgradeable.sol:42"
},
{
"contract": "ERC20Upgradeable",
"label": "__gap",
"type": "t_array(t_uint256)44_storage",
"src": "contracts/tokens/ERC20Upgradeable.sol:225"
},
{
"contract": "EIP712Upgradeable",
"label": "_HASHED_NAME",
"type": "t_bytes32",
"src": "@openzeppelin/contracts-upgradeable/drafts/EIP712Upgradeable.sol:27"
},
{
"contract": "EIP712Upgradeable",
"label": "_HASHED_VERSION",
"type": "t_bytes32",
"src": "@openzeppelin/contracts-upgradeable/drafts/EIP712Upgradeable.sol:28"
},
{
"contract": "EIP712Upgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "@openzeppelin/contracts-upgradeable/drafts/EIP712Upgradeable.sol:120"
},
{
"contract": "ERC20PermitUpgradeable",
"label": "_nonces",
"type": "t_mapping(t_address,t_struct(Counter)1781_storage)",
"src": "contracts/tokens/ERC20PermitUpgradeable.sol:26"
},
{
"contract": "ERC20PermitUpgradeable",
"label": "_PERMIT_TYPEHASH",
"type": "t_bytes32",
"src": "contracts/tokens/ERC20PermitUpgradeable.sol:29"
},
{
"contract": "ERC20PermitUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)49_storage",
"src": "contracts/tokens/ERC20PermitUpgradeable.sol:88"
},
{
"contract": "RewardEthToken",
"label": "stakedEthToken",
"type": "t_contract(IStakedEthToken)6737",
"src": "contracts/tokens/RewardEthToken.sol:26"
},
{
"contract": "RewardEthToken",
"label": "oracles",
"type": "t_address",
"src": "contracts/tokens/RewardEthToken.sol:29"
},
{
"contract": "RewardEthToken",
"label": "checkpoints",
"type": "t_mapping(t_address,t_struct(Checkpoint)6501_storage)",
"src": "contracts/tokens/RewardEthToken.sol:32"
},
{
"contract": "RewardEthToken",
"label": "protocolFeeRecipient",
"type": "t_address",
"src": "contracts/tokens/RewardEthToken.sol:35"
},
{
"contract": "RewardEthToken",
"label": "protocolFee",
"type": "t_uint256",
"src": "contracts/tokens/RewardEthToken.sol:38"
},
{
"contract": "RewardEthToken",
"label": "totalRewards",
"type": "t_uint128",
"src": "contracts/tokens/RewardEthToken.sol:41"
},
{
"contract": "RewardEthToken",
"label": "rewardPerToken",
"type": "t_uint128",
"src": "contracts/tokens/RewardEthToken.sol:44"
},
{
"contract": "RewardEthToken",
"label": "lastUpdateBlockNumber",
"type": "t_uint256",
"src": "contracts/tokens/RewardEthToken.sol:47"
},
{
"contract": "RewardEthToken",
"label": "merkleDistributor",
"type": "t_address",
"src": "contracts/tokens/RewardEthToken.sol:50"
},
{
"contract": "RewardEthToken",
"label": "rewardsDisabled",
"type": "t_mapping(t_address,t_bool)",
"src": "contracts/tokens/RewardEthToken.sol:53"
},
{
"contract": "RewardEthToken",
"label": "feesEscrow",
"type": "t_contract(IFeesEscrow)5710",
"src": "contracts/tokens/RewardEthToken.sol:56"
}
],
"types": {
"t_contract(IStakedEthToken)6737": {
"label": "contract IStakedEthToken"
},
"t_address": {
"label": "address"
},
"t_mapping(t_address,t_struct(Checkpoint)6501_storage)": {
"label": "mapping(address => struct IRewardEthToken.Checkpoint)"
},
"t_struct(Checkpoint)6501_storage": {
"label": "struct IRewardEthToken.Checkpoint",
"members": [
{
"label": "reward",
"type": "t_uint128"
},
{
"label": "rewardPerToken",
"type": "t_uint128"
}
]
},
"t_uint128": {
"label": "uint128"
},
"t_uint256": {
"label": "uint256"
},
"t_mapping(t_address,t_bool)": {
"label": "mapping(address => bool)"
},
"t_bool": {
"label": "bool"
},
"t_contract(IFeesEscrow)5710": {
"label": "contract IFeesEscrow"
},
"t_mapping(t_address,t_struct(Counter)1781_storage)": {
"label": "mapping(address => struct CountersUpgradeable.Counter)"
},
"t_struct(Counter)1781_storage": {
"label": "struct CountersUpgradeable.Counter",
"members": [
{
"label": "_value",
"type": "t_uint256"
}
]
},
"t_bytes32": {
"label": "bytes32"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]"
},
"t_mapping(t_address,t_mapping(t_address,t_uint256))": {
"label": "mapping(address => mapping(address => uint256))"
},
"t_mapping(t_address,t_uint256)": {
"label": "mapping(address => uint256)"
},
"t_string_storage": {
"label": "string"
},
"t_uint8": {
"label": "uint8"
},
"t_array(t_uint256)44_storage": {
"label": "uint256[44]"
},
"t_mapping(t_bytes32,t_struct(RoleData)39_storage)": {
"label": "mapping(bytes32 => struct AccessControlUpgradeable.RoleData)"
},
"t_struct(RoleData)39_storage": {
"label": "struct AccessControlUpgradeable.RoleData",
"members": [
{
"label": "members",
"type": "t_struct(AddressSet)2097_storage"
},
{
"label": "adminRole",
"type": "t_bytes32"
}
]
},
"t_struct(AddressSet)2097_storage": {
"label": "struct EnumerableSetUpgradeable.AddressSet",
"members": [
{
"label": "_inner",
"type": "t_struct(Set)1832_storage"
}
]
},
"t_struct(Set)1832_storage": {
"label": "struct EnumerableSetUpgradeable.Set",
"members": [
{
"label": "_values",
"type": "t_array(t_bytes32)dyn_storage"
},
{
"label": "_indexes",
"type": "t_mapping(t_bytes32,t_uint256)"
}
]
},
"t_array(t_bytes32)dyn_storage": {
"label": "bytes32[]"
},
"t_mapping(t_bytes32,t_uint256)": {
"label": "mapping(bytes32 => uint256)"
}
}
}
}
}
}
Loading

0 comments on commit 0e51a35

Please sign in to comment.