Skip to content

Commit

Permalink
Deploy MaticX contract into ethereum staging network
Browse files Browse the repository at this point in the history
  • Loading branch information
evercoinx committed Nov 23, 2024
1 parent 7be38d5 commit a065b43
Show file tree
Hide file tree
Showing 4 changed files with 325 additions and 4 deletions.
320 changes: 320 additions & 0 deletions .openzeppelin/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
"address": "0xcEbaFD96Df8a1Cc63ee77770296F14B68089Ab04",
"txHash": "0x4fc88dac5b58604ed46e338e20ad48505b5467032213e285e72fa63508da8f92",
"kind": "transparent"
},
{
"address": "0xD22dd194B8ec2abEeeFAC36a69cd8898FB6C43b3",
"txHash": "0x5bdd0d3e52b4c2cf5d43ebdd3d582540313ae179213ffe25dd37f385214a34e0",
"kind": "transparent"
}
],
"impls": {
Expand Down Expand Up @@ -816,6 +821,321 @@
},
"namespaces": {}
}
},
"97ae6aae8a003c84b5abe649f0f877bf5e8390e2c1617449ad84a4e328ada3cf": {
"address": "0x9167CAd7D69daF5E1BA02D2efc9C89043B21e80f",
"txHash": "0x61ecaab7e32261e02c3197719f94c25b243d60d6b171188c22b72e1330d6838b",
"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_address",
"contract": "MaticX",
"src": "contracts/MaticX.sol:26"
},
{
"label": "stakeManager",
"offset": 0,
"slot": "252",
"type": "t_address",
"contract": "MaticX",
"src": "contracts/MaticX.sol:27"
},
{
"label": "polygonERC20",
"offset": 0,
"slot": "253",
"type": "t_address",
"contract": "MaticX",
"src": "contracts/MaticX.sol:28"
},
{
"label": "treasury",
"offset": 0,
"slot": "254",
"type": "t_address",
"contract": "MaticX",
"src": "contracts/MaticX.sol:30"
},
{
"label": "version",
"offset": 0,
"slot": "255",
"type": "t_string_storage",
"contract": "MaticX",
"src": "contracts/MaticX.sol:31"
},
{
"label": "feePercent",
"offset": 0,
"slot": "256",
"type": "t_uint8",
"contract": "MaticX",
"src": "contracts/MaticX.sol:32"
},
{
"label": "instantPoolOwner",
"offset": 1,
"slot": "256",
"type": "t_address",
"contract": "MaticX",
"src": "contracts/MaticX.sol:36"
},
{
"label": "instantPoolMatic",
"offset": 0,
"slot": "257",
"type": "t_uint256",
"contract": "MaticX",
"src": "contracts/MaticX.sol:37"
},
{
"label": "instantPoolMaticX",
"offset": 0,
"slot": "258",
"type": "t_uint256",
"contract": "MaticX",
"src": "contracts/MaticX.sol:38"
},
{
"label": "userWithdrawalRequests",
"offset": 0,
"slot": "259",
"type": "t_mapping(t_address,t_array(t_struct(WithdrawalRequest)10666_storage)dyn_storage)",
"contract": "MaticX",
"src": "contracts/MaticX.sol:41"
},
{
"label": "fxStateRootTunnel",
"offset": 0,
"slot": "260",
"type": "t_address",
"contract": "MaticX",
"src": "contracts/MaticX.sol:45"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_struct(WithdrawalRequest)10666_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_mapping(t_address,t_array(t_struct(WithdrawalRequest)10666_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)10666_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_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
},
"namespaces": {}
}
}
}
}
5 changes: 3 additions & 2 deletions docs/Ethereum-Mainnet-(Staging).md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@

### MaticX

- Proxy address: [](https://etherscan.io/address/)
- Implementation address: [](https://etherscan.io/address/)
- Proxy address: [0xD22dd194B8ec2abEeeFAC36a69cd8898FB6C43b3](https://etherscan.io/address/0xD22dd194B8ec2abEeeFAC36a69cd8898FB6C43b3)
- Implementation address: [0x9167CAd7D69daF5E1BA02D2efc9C89043B21e80f](https://etherscan.io/address/0x9167CAd7D69daF5E1BA02D2efc9C89043B21e80f)
- Proxy admin address: [0xC7c319e04Bf69f8F5387d3A7a79d842f750bAde5](https://etherscan.io/address/0xC7c319e04Bf69f8F5387d3A7a79d842f750bAde5)

### Stake Manager

Expand Down
2 changes: 1 addition & 1 deletion docs/Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

- [Ethereum Mainnet (Prod)](https://github.com/stader-labs/maticX/wiki/Ethereum-Mainnet-(Prod))
- [Ethereum Mainnet (Staging)](https://github.com/stader-labs/maticX/wiki/Ethereum-Mainnet-(Staging))
- [Polygon Mainnet](https://github.com/stader-labs/maticX/wiki/Polygon-Mainnet)
- [Polygon Mainnet (Prod)](https://github.com/stader-labs/maticX/wiki/Polygon-Mainnet-(Prod))
- [Sepolia Testnet](https://github.com/stader-labs/maticX/wiki/Sepolia-Testnet)
- [Amoy Testnet](https://github.com/stader-labs/maticX/wiki/Amoy-Testnet)
2 changes: 1 addition & 1 deletion docs/Polygon-Mainnet.md → docs/Polygon-Mainnet-(Prod).md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Deployment Information

## Polygon Mainnet
## Polygon Mainnet (Prod)

### Proxy Admin

Expand Down

0 comments on commit a065b43

Please sign in to comment.