Skip to content

Commit

Permalink
Upgrade MaticX contract in sepolia network
Browse files Browse the repository at this point in the history
  • Loading branch information
evercoinx committed Nov 3, 2024
1 parent 14ddee3 commit dd1a7f4
Show file tree
Hide file tree
Showing 3 changed files with 357 additions and 1 deletion.
351 changes: 351 additions & 0 deletions .openzeppelin/sepolia.json
Original file line number Diff line number Diff line change
Expand Up @@ -1184,6 +1184,357 @@
},
"namespaces": {}
}
},
"e05abb354c4d614f69e578a798761ddda5b8d07b7fe48d4162ed3763880cc859": {
"address": "0x2970394b40154352Ed2aF00a354F2d0DEcf7b4FB",
"txHash": "0x2b06797b3209d0f0c40aadbf94029fcbf5cc0d03568a17770e78239d5737cc35",
"layout": {
"solcVersion": "0.8.7",
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63",
"retypedFrom": "bool"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68"
},
{
"label": "__gap",
"offset": 0,
"slot": "1",
"type": "t_array(t_uint256)50_storage",
"contract": "ContextUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40"
},
{
"label": "_balances",
"offset": 0,
"slot": "51",
"type": "t_mapping(t_address,t_uint256)",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:40"
},
{
"label": "_allowances",
"offset": 0,
"slot": "52",
"type": "t_mapping(t_address,t_mapping(t_address,t_uint256))",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:42"
},
{
"label": "_totalSupply",
"offset": 0,
"slot": "53",
"type": "t_uint256",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:44"
},
{
"label": "_name",
"offset": 0,
"slot": "54",
"type": "t_string_storage",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:46"
},
{
"label": "_symbol",
"offset": 0,
"slot": "55",
"type": "t_string_storage",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:47"
},
{
"label": "__gap",
"offset": 0,
"slot": "56",
"type": "t_array(t_uint256)45_storage",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:376"
},
{
"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)23_storage)",
"contract": "AccessControlUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol:57"
},
{
"label": "__gap",
"offset": 0,
"slot": "152",
"type": "t_array(t_uint256)49_storage",
"contract": "AccessControlUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol:260"
},
{
"label": "_paused",
"offset": 0,
"slot": "201",
"type": "t_bool",
"contract": "PausableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:29"
},
{
"label": "__gap",
"offset": 0,
"slot": "202",
"type": "t_array(t_uint256)49_storage",
"contract": "PausableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:116"
},
{
"label": "validatorRegistry",
"offset": 0,
"slot": "251",
"type": "t_contract(IValidatorRegistry)10235",
"contract": "MaticX",
"src": "contracts/MaticX.sol:34"
},
{
"label": "stakeManager",
"offset": 0,
"slot": "252",
"type": "t_contract(IStakeManager)10090",
"contract": "MaticX",
"src": "contracts/MaticX.sol:35"
},
{
"label": "maticToken",
"offset": 0,
"slot": "253",
"type": "t_contract(IERC20Upgradeable)1482",
"contract": "MaticX",
"src": "contracts/MaticX.sol:36"
},
{
"label": "treasury",
"offset": 0,
"slot": "254",
"type": "t_address",
"contract": "MaticX",
"src": "contracts/MaticX.sol:37"
},
{
"label": "version",
"offset": 0,
"slot": "255",
"type": "t_string_storage",
"contract": "MaticX",
"src": "contracts/MaticX.sol:38"
},
{
"label": "feePercent",
"offset": 0,
"slot": "256",
"type": "t_uint16",
"contract": "MaticX",
"src": "contracts/MaticX.sol:39"
},
{
"label": "instantPoolOwner",
"offset": 2,
"slot": "256",
"type": "t_address",
"contract": "MaticX",
"src": "contracts/MaticX.sol:40"
},
{
"label": "instantPoolMatic",
"offset": 0,
"slot": "257",
"type": "t_uint256",
"contract": "MaticX",
"src": "contracts/MaticX.sol:41"
},
{
"label": "instantPoolMaticX",
"offset": 0,
"slot": "258",
"type": "t_uint256",
"contract": "MaticX",
"src": "contracts/MaticX.sol:42"
},
{
"label": "userWithdrawalRequests",
"offset": 0,
"slot": "259",
"type": "t_mapping(t_address,t_array(t_struct(WithdrawalRequest)9561_storage)dyn_storage)",
"contract": "MaticX",
"src": "contracts/MaticX.sol:43"
},
{
"label": "fxStateRootTunnel",
"offset": 0,
"slot": "260",
"type": "t_contract(IFxStateRootTunnel)9539",
"contract": "MaticX",
"src": "contracts/MaticX.sol:44"
},
{
"label": "polToken",
"offset": 0,
"slot": "261",
"type": "t_contract(IERC20Upgradeable)1482",
"contract": "MaticX",
"src": "contracts/MaticX.sol:45"
},
{
"label": "reentrancyGuardStatus",
"offset": 0,
"slot": "262",
"type": "t_uint256",
"contract": "MaticX",
"src": "contracts/MaticX.sol:46"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_struct(WithdrawalRequest)9561_storage)dyn_storage": {
"label": "struct IMaticX.WithdrawalRequest[]",
"numberOfBytes": "32"
},
"t_array(t_uint256)45_storage": {
"label": "uint256[45]",
"numberOfBytes": "1440"
},
"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_contract(IERC20Upgradeable)1482": {
"label": "contract IERC20Upgradeable",
"numberOfBytes": "20"
},
"t_contract(IFxStateRootTunnel)9539": {
"label": "contract IFxStateRootTunnel",
"numberOfBytes": "20"
},
"t_contract(IStakeManager)10090": {
"label": "contract IStakeManager",
"numberOfBytes": "20"
},
"t_contract(IValidatorRegistry)10235": {
"label": "contract IValidatorRegistry",
"numberOfBytes": "20"
},
"t_mapping(t_address,t_array(t_struct(WithdrawalRequest)9561_storage)dyn_storage)": {
"label": "mapping(address => struct IMaticX.WithdrawalRequest[])",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_bool)": {
"label": "mapping(address => bool)",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_mapping(t_address,t_uint256))": {
"label": "mapping(address => mapping(address => uint256))",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_uint256)": {
"label": "mapping(address => uint256)",
"numberOfBytes": "32"
},
"t_mapping(t_bytes32,t_struct(RoleData)23_storage)": {
"label": "mapping(bytes32 => struct AccessControlUpgradeable.RoleData)",
"numberOfBytes": "32"
},
"t_string_storage": {
"label": "string",
"numberOfBytes": "32"
},
"t_struct(RoleData)23_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_struct(WithdrawalRequest)9561_storage": {
"label": "struct IMaticX.WithdrawalRequest",
"members": [
{
"label": "validatorNonce",
"type": "t_uint256",
"offset": 0,
"slot": "0"
},
{
"label": "requestEpoch",
"type": "t_uint256",
"offset": 0,
"slot": "1"
},
{
"label": "validatorAddress",
"type": "t_address",
"offset": 0,
"slot": "2"
}
],
"numberOfBytes": "96"
},
"t_uint16": {
"label": "uint16",
"numberOfBytes": "2"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
},
"namespaces": {}
}
}
}
}
5 changes: 5 additions & 0 deletions docs/Polygon-Mainnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

- Address: [0x79f2Ec80e2B9fB995D9deBda4d9026eF7A1507b9](https://polygonscan.com/address/0x79f2Ec80e2B9fB995D9deBda4d9026eF7A1507b9)

### MaticX

- Proxy address: [0xfa68FB4628DFF1028CFEc22b4162FCcd0d45efb6](https://polygonscan.com/address/0xfa68FB4628DFF1028CFEc22b4162FCcd0d45efb6)
- Implementation address: [0x44cc2b69710E68593a01B3d42d9a1390Ee564BBf](https://polygonscan.com/address/0x44cc2b69710E68593a01B3d42d9a1390Ee564BBf)

### Child Pool

- Proxy address: [0xfd225C9e6601C9d38d8F98d8731BF59eFcF8C0E3](https://polygonscan.com/address/0xfd225C9e6601C9d38d8F98d8731BF59eFcF8C0E3)
Expand Down
2 changes: 1 addition & 1 deletion docs/Sepolia-Testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
### MaticX

- Proxy address: [0xB51AAb302085F436204c4B1964fBE74517B2D4b6](https://sepolia.etherscan.io/address/0xB51AAb302085F436204c4B1964fBE74517B2D4b6)
- Implementation address: [0x6A70Ec90f7aeD8F27Ced7f0907364F932A97c85E](https://sepolia.etherscan.io/address/0x6A70Ec90f7aeD8F27Ced7f0907364F932A97c85E)
- Implementation address: [0x2970394b40154352Ed2aF00a354F2d0DEcf7b4FB](https://sepolia.etherscan.io/address/0x2970394b40154352Ed2aF00a354F2d0DEcf7b4FB)

### Stake Manager

Expand Down

0 comments on commit dd1a7f4

Please sign in to comment.