Skip to content

Commit

Permalink
deploy: StreamRegistryV5 to Polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
jtakalai committed Nov 14, 2024
1 parent 8c0c611 commit 27aceee
Show file tree
Hide file tree
Showing 5 changed files with 643 additions and 3 deletions.
241 changes: 241 additions & 0 deletions packages/network-contracts/.openzeppelin/polygon.json
Original file line number Diff line number Diff line change
Expand Up @@ -2065,6 +2065,247 @@
}
}
}
},
"ab73bf38ac788178f15970227a96e5f4a7e5bd31198a9f882c328a984b8dc8da": {
"address": "0x6C6723Ac723928F9dE696fA6eb282132926924F0",
"txHash": "0x21aadd8c240c76c5f3c20cdb141e8a1732011526a0a26934e990ee09d66a899e",
"layout": {
"solcVersion": "0.8.9",
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable-4.4.2/proxy/utils/Initializable.sol:39"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable-4.4.2/proxy/utils/Initializable.sol:44"
},
{
"label": "__gap",
"offset": 0,
"slot": "1",
"type": "t_array(t_uint256)50_storage",
"contract": "ERC1967UpgradeUpgradeable",
"src": "@openzeppelin/contracts-upgradeable-4.4.2/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:215"
},
{
"label": "__gap",
"offset": 0,
"slot": "51",
"type": "t_array(t_uint256)50_storage",
"contract": "UUPSUpgradeable",
"src": "@openzeppelin/contracts-upgradeable-4.4.2/proxy/utils/UUPSUpgradeable.sol:81"
},
{
"label": "__gap",
"offset": 0,
"slot": "101",
"type": "t_array(t_uint256)50_storage",
"contract": "ContextUpgradeable",
"src": "@openzeppelin/contracts-upgradeable-4.4.2/utils/ContextUpgradeable.sol:31"
},
{
"label": "_trustedForwarder",
"offset": 0,
"slot": "151",
"type": "t_address",
"contract": "ERC2771ContextUpgradeable",
"src": "contracts/StreamRegistry/ERC2771ContextUpgradeable.sol:15"
},
{
"label": "__gap",
"offset": 0,
"slot": "152",
"type": "t_array(t_uint256)49_storage",
"contract": "ERC2771ContextUpgradeable",
"src": "contracts/StreamRegistry/ERC2771ContextUpgradeable.sol:51"
},
{
"label": "__gap",
"offset": 0,
"slot": "201",
"type": "t_array(t_uint256)50_storage",
"contract": "ERC165Upgradeable",
"src": "@openzeppelin/contracts-upgradeable-4.4.2/utils/introspection/ERC165Upgradeable.sol:36"
},
{
"label": "_roles",
"offset": 0,
"slot": "251",
"type": "t_mapping(t_bytes32,t_struct(RoleData)2219_storage)",
"contract": "AccessControlUpgradeable",
"src": "@openzeppelin/contracts-upgradeable-4.4.2/access/AccessControlUpgradeable.sol:64"
},
{
"label": "__gap",
"offset": 0,
"slot": "252",
"type": "t_array(t_uint256)49_storage",
"contract": "AccessControlUpgradeable",
"src": "@openzeppelin/contracts-upgradeable-4.4.2/access/AccessControlUpgradeable.sol:232"
},
{
"label": "streamIdToPermissions",
"offset": 0,
"slot": "301",
"type": "t_mapping(t_string_memory_ptr,t_mapping(t_bytes32,t_struct(Permission)18416_storage))",
"contract": "StreamRegistryV5",
"src": "contracts/StreamRegistry/StreamRegistryV5.sol:61"
},
{
"label": "streamIdToMetadata",
"offset": 0,
"slot": "302",
"type": "t_mapping(t_string_memory_ptr,t_string_storage)",
"contract": "StreamRegistryV5",
"src": "contracts/StreamRegistry/StreamRegistryV5.sol:62"
},
{
"label": "ensCache",
"offset": 0,
"slot": "303",
"type": "t_contract(ENSCache)24342",
"contract": "StreamRegistryV5",
"src": "contracts/StreamRegistry/StreamRegistryV5.sol:63"
},
{
"label": "streamIdToVersion",
"offset": 0,
"slot": "304",
"type": "t_mapping(t_string_memory_ptr,t_uint32)",
"contract": "StreamRegistryV5",
"src": "contracts/StreamRegistry/StreamRegistryV5.sol:66"
}
],
"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_contract(ENSCache)24342": {
"label": "contract ENSCache",
"numberOfBytes": "20"
},
"t_mapping(t_address,t_bool)": {
"label": "mapping(address => bool)",
"numberOfBytes": "32"
},
"t_mapping(t_bytes32,t_struct(Permission)18416_storage)": {
"label": "mapping(bytes32 => struct StreamRegistryV5.Permission)",
"numberOfBytes": "32"
},
"t_mapping(t_bytes32,t_struct(RoleData)2219_storage)": {
"label": "mapping(bytes32 => struct AccessControlUpgradeable.RoleData)",
"numberOfBytes": "32"
},
"t_mapping(t_string_memory_ptr,t_mapping(t_bytes32,t_struct(Permission)18416_storage))": {
"label": "mapping(string => mapping(bytes32 => struct StreamRegistryV5.Permission))",
"numberOfBytes": "32"
},
"t_mapping(t_string_memory_ptr,t_string_storage)": {
"label": "mapping(string => string)",
"numberOfBytes": "32"
},
"t_mapping(t_string_memory_ptr,t_uint32)": {
"label": "mapping(string => uint32)",
"numberOfBytes": "32"
},
"t_string_memory_ptr": {
"label": "string",
"numberOfBytes": "32"
},
"t_string_storage": {
"label": "string",
"numberOfBytes": "32"
},
"t_struct(Permission)18416_storage": {
"label": "struct StreamRegistryV5.Permission",
"members": [
{
"label": "canEdit",
"type": "t_bool",
"offset": 0,
"slot": "0"
},
{
"label": "canDelete",
"type": "t_bool",
"offset": 1,
"slot": "0"
},
{
"label": "publishExpiration",
"type": "t_uint256",
"offset": 0,
"slot": "1"
},
{
"label": "subscribeExpiration",
"type": "t_uint256",
"offset": 0,
"slot": "2"
},
{
"label": "canGrant",
"type": "t_bool",
"offset": 0,
"slot": "3"
}
],
"numberOfBytes": "128"
},
"t_struct(RoleData)2219_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_uint32": {
"label": "uint32",
"numberOfBytes": "4"
}
}
}
}
}
}
1 change: 1 addition & 0 deletions packages/network-contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const config: HardhatUserConfig = {
},
polygonAmoy: {
chainId: 80002,
gasPrice: 30000000000, // prevent "gas tip cap 0" error
url: process.env.ETHEREUM_RPC || "https://rpc-amoy.polygon.technology",
accounts: [process.env.KEY || "0x5e98cce00cff5dea6b454889f359a4ec06b9fa6b88e9d69b86de8e1c81887da0"] // dummy key
},
Expand Down
Loading

0 comments on commit 27aceee

Please sign in to comment.