Skip to content

Commit

Permalink
feat: upgrad yam contract
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-RealT committed Feb 2, 2024
1 parent 966b4a7 commit b230dde
Show file tree
Hide file tree
Showing 5 changed files with 544 additions and 8 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.16.1
264 changes: 264 additions & 0 deletions .openzeppelin/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,270 @@
}
}
}
},
"45424c59a99246fad65f1c095a3c3dc286f912ad0ce4037ae12cde872f3eb803": {
"address": "0xE81B963B792C0df2e8b2A7f0cCF6fceC774e91a4",
"txHash": "0x57722e9077e318729b7de9a1495578251af4adadf295dab2b99976b6f0b9d658",
"layout": {
"solcVersion": "0.8.4",
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:62",
"retypedFrom": "bool"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:67"
},
{
"label": "__gap",
"offset": 0,
"slot": "1",
"type": "t_array(t_uint256)50_storage",
"contract": "ContextUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
},
{
"label": "_paused",
"offset": 0,
"slot": "51",
"type": "t_bool",
"contract": "PausableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:29"
},
{
"label": "__gap",
"offset": 0,
"slot": "52",
"type": "t_array(t_uint256)49_storage",
"contract": "PausableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:116"
},
{
"label": "__gap",
"offset": 0,
"slot": "101",
"type": "t_array(t_uint256)50_storage",
"contract": "ERC165Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol:41"
},
{
"label": "_roles",
"offset": 0,
"slot": "151",
"type": "t_mapping(t_bytes32,t_struct(RoleData)34_storage)",
"contract": "AccessControlUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol:61"
},
{
"label": "__gap",
"offset": 0,
"slot": "152",
"type": "t_array(t_uint256)49_storage",
"contract": "AccessControlUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol:259"
},
{
"label": "__gap",
"offset": 0,
"slot": "201",
"type": "t_array(t_uint256)50_storage",
"contract": "ERC1967UpgradeUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:211"
},
{
"label": "__gap",
"offset": 0,
"slot": "251",
"type": "t_array(t_uint256)50_storage",
"contract": "UUPSUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:107"
},
{
"label": "_status",
"offset": 0,
"slot": "301",
"type": "t_uint256",
"contract": "ReentrancyGuardUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol:38"
},
{
"label": "__gap",
"offset": 0,
"slot": "302",
"type": "t_array(t_uint256)49_storage",
"contract": "ReentrancyGuardUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol:74"
},
{
"label": "prices",
"offset": 0,
"slot": "351",
"type": "t_mapping(t_uint256,t_uint256)",
"contract": "RealTokenYamUpgradeableV3",
"src": "contracts/upgradeability/RealTokenYamUpgradeableV3.sol:21"
},
{
"label": "amounts",
"offset": 0,
"slot": "352",
"type": "t_mapping(t_uint256,t_uint256)",
"contract": "RealTokenYamUpgradeableV3",
"src": "contracts/upgradeability/RealTokenYamUpgradeableV3.sol:22"
},
{
"label": "offerTokens",
"offset": 0,
"slot": "353",
"type": "t_mapping(t_uint256,t_address)",
"contract": "RealTokenYamUpgradeableV3",
"src": "contracts/upgradeability/RealTokenYamUpgradeableV3.sol:23"
},
{
"label": "buyerTokens",
"offset": 0,
"slot": "354",
"type": "t_mapping(t_uint256,t_address)",
"contract": "RealTokenYamUpgradeableV3",
"src": "contracts/upgradeability/RealTokenYamUpgradeableV3.sol:24"
},
{
"label": "sellers",
"offset": 0,
"slot": "355",
"type": "t_mapping(t_uint256,t_address)",
"contract": "RealTokenYamUpgradeableV3",
"src": "contracts/upgradeability/RealTokenYamUpgradeableV3.sol:25"
},
{
"label": "buyers",
"offset": 0,
"slot": "356",
"type": "t_mapping(t_uint256,t_address)",
"contract": "RealTokenYamUpgradeableV3",
"src": "contracts/upgradeability/RealTokenYamUpgradeableV3.sol:26"
},
{
"label": "tokenTypes",
"offset": 0,
"slot": "357",
"type": "t_mapping(t_address,t_enum(TokenType)9116)",
"contract": "RealTokenYamUpgradeableV3",
"src": "contracts/upgradeability/RealTokenYamUpgradeableV3.sol:27"
},
{
"label": "offerCount",
"offset": 0,
"slot": "358",
"type": "t_uint256",
"contract": "RealTokenYamUpgradeableV3",
"src": "contracts/upgradeability/RealTokenYamUpgradeableV3.sol:28"
},
{
"label": "fee",
"offset": 0,
"slot": "359",
"type": "t_uint256",
"contract": "RealTokenYamUpgradeableV3",
"src": "contracts/upgradeability/RealTokenYamUpgradeableV3.sol:29"
},
{
"label": "offerBlockNumbers",
"offset": 0,
"slot": "360",
"type": "t_mapping(t_uint256,t_uint256)",
"contract": "RealTokenYamUpgradeableV3",
"src": "contracts/upgradeability/RealTokenYamUpgradeableV3.sol:30"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]",
"numberOfBytes": "1568"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]",
"numberOfBytes": "1600"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_bytes32": {
"label": "bytes32",
"numberOfBytes": "32"
},
"t_enum(TokenType)9116": {
"label": "enum IRealTokenYamUpgradeableV3.TokenType",
"members": [
"NOTWHITELISTEDTOKEN",
"REALTOKEN",
"ERC20WITHPERMIT",
"ERC20WITHOUTPERMIT"
],
"numberOfBytes": "1"
},
"t_mapping(t_address,t_bool)": {
"label": "mapping(address => bool)",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_enum(TokenType)9116)": {
"label": "mapping(address => enum IRealTokenYamUpgradeableV3.TokenType)",
"numberOfBytes": "32"
},
"t_mapping(t_bytes32,t_struct(RoleData)34_storage)": {
"label": "mapping(bytes32 => struct AccessControlUpgradeable.RoleData)",
"numberOfBytes": "32"
},
"t_mapping(t_uint256,t_address)": {
"label": "mapping(uint256 => address)",
"numberOfBytes": "32"
},
"t_mapping(t_uint256,t_uint256)": {
"label": "mapping(uint256 => uint256)",
"numberOfBytes": "32"
},
"t_struct(RoleData)34_storage": {
"label": "struct AccessControlUpgradeable.RoleData",
"members": [
{
"label": "members",
"type": "t_mapping(t_address,t_bool)",
"offset": 0,
"slot": "0"
},
{
"label": "adminRole",
"type": "t_bytes32",
"offset": 0,
"slot": "1"
}
],
"numberOfBytes": "64"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
}
}
}
}
}
Loading

0 comments on commit b230dde

Please sign in to comment.