Skip to content

Commit

Permalink
polygon deployment network files
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lima committed Oct 13, 2023
1 parent 096e5f4 commit b00cc25
Show file tree
Hide file tree
Showing 4 changed files with 315 additions and 10 deletions.
292 changes: 292 additions & 0 deletions .openzeppelin/polygon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,292 @@
{
"manifestVersion": "3.2",
"admin": {
"address": "0x48c769f6a8de57d824f0e7330d7A27dee53a43cD",
"txHash": "0x9ed21b0ebffcd7ab65d6627e7669edbab639c658e394dd1de20818453be4d1f3"
},
"proxies": [
{
"address": "0x1A9027FE6DC7675C108c6c801bBf21D902efA1A9",
"txHash": "0x76b5077543dd32ac51e3466e632fd05a4b353d962274ded4fd50ac0e63b742c7",
"kind": "transparent"
}
],
"impls": {
"54a4d6a09a43613c32ca9e07613d8cc56e3791a26d99d9ce5db1c1f1191d6a3f": {
"address": "0x17ecC3620cE4062fA5eC4298a6BDc6d5A25d75Fe",
"txHash": "0x72dace6b8b1091e5f9d41a2a6ab6555469a19064f19fd0ccb5c3d5873303e849",
"layout": {
"solcVersion": "0.8.9",
"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": "_owner",
"offset": 0,
"slot": "51",
"type": "t_address",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
},
{
"label": "__gap",
"offset": 0,
"slot": "52",
"type": "t_array(t_uint256)49_storage",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94"
},
{
"label": "_paused",
"offset": 0,
"slot": "101",
"type": "t_bool",
"contract": "PausableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:29"
},
{
"label": "__gap",
"offset": 0,
"slot": "102",
"type": "t_array(t_uint256)49_storage",
"contract": "PausableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:116"
},
{
"label": "_HASHED_NAME",
"offset": 0,
"slot": "151",
"type": "t_bytes32",
"contract": "EIP712Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol:32"
},
{
"label": "_HASHED_VERSION",
"offset": 0,
"slot": "152",
"type": "t_bytes32",
"contract": "EIP712Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol:33"
},
{
"label": "__gap",
"offset": 0,
"slot": "153",
"type": "t_array(t_uint256)50_storage",
"contract": "EIP712Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol:120"
},
{
"label": "defaultRolesRegistry",
"offset": 0,
"slot": "203",
"type": "t_address",
"contract": "OriumMarketplace",
"src": "contracts/OriumMarketplace.sol:32"
},
{
"label": "tokenRolesRegistry",
"offset": 0,
"slot": "204",
"type": "t_mapping(t_address,t_address)",
"contract": "OriumMarketplace",
"src": "contracts/OriumMarketplace.sol:35"
},
{
"label": "maxDeadline",
"offset": 0,
"slot": "205",
"type": "t_uint256",
"contract": "OriumMarketplace",
"src": "contracts/OriumMarketplace.sol:38"
},
{
"label": "feeInfo",
"offset": 0,
"slot": "206",
"type": "t_mapping(t_address,t_struct(FeeInfo)2609_storage)",
"contract": "OriumMarketplace",
"src": "contracts/OriumMarketplace.sol:41"
},
{
"label": "royaltyInfo",
"offset": 0,
"slot": "207",
"type": "t_mapping(t_address,t_struct(RoyaltyInfo)2604_storage)",
"contract": "OriumMarketplace",
"src": "contracts/OriumMarketplace.sol:44"
},
{
"label": "isCreated",
"offset": 0,
"slot": "208",
"type": "t_mapping(t_bytes32,t_bool)",
"contract": "OriumMarketplace",
"src": "contracts/OriumMarketplace.sol:47"
},
{
"label": "nonceDeadline",
"offset": 0,
"slot": "209",
"type": "t_mapping(t_address,t_mapping(t_uint256,t_uint64))",
"contract": "OriumMarketplace",
"src": "contracts/OriumMarketplace.sol:50"
},
{
"label": "rentals",
"offset": 0,
"slot": "210",
"type": "t_mapping(t_bytes32,t_struct(Rental)2597_storage)",
"contract": "OriumMarketplace",
"src": "contracts/OriumMarketplace.sol:53"
}
],
"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_mapping(t_address,t_address)": {
"label": "mapping(address => address)",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_mapping(t_uint256,t_uint64))": {
"label": "mapping(address => mapping(uint256 => uint64))",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_struct(FeeInfo)2609_storage)": {
"label": "mapping(address => struct OriumMarketplace.FeeInfo)",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_struct(RoyaltyInfo)2604_storage)": {
"label": "mapping(address => struct OriumMarketplace.RoyaltyInfo)",
"numberOfBytes": "32"
},
"t_mapping(t_bytes32,t_bool)": {
"label": "mapping(bytes32 => bool)",
"numberOfBytes": "32"
},
"t_mapping(t_bytes32,t_struct(Rental)2597_storage)": {
"label": "mapping(bytes32 => struct OriumMarketplace.Rental)",
"numberOfBytes": "32"
},
"t_mapping(t_uint256,t_uint64)": {
"label": "mapping(uint256 => uint64)",
"numberOfBytes": "32"
},
"t_struct(FeeInfo)2609_storage": {
"label": "struct OriumMarketplace.FeeInfo",
"members": [
{
"label": "feePercentageInWei",
"type": "t_uint256",
"offset": 0,
"slot": "0"
},
{
"label": "isCustomFee",
"type": "t_bool",
"offset": 0,
"slot": "1"
}
],
"numberOfBytes": "64"
},
"t_struct(Rental)2597_storage": {
"label": "struct OriumMarketplace.Rental",
"members": [
{
"label": "borrower",
"type": "t_address",
"offset": 0,
"slot": "0"
},
{
"label": "expirationDate",
"type": "t_uint64",
"offset": 20,
"slot": "0"
}
],
"numberOfBytes": "32"
},
"t_struct(RoyaltyInfo)2604_storage": {
"label": "struct OriumMarketplace.RoyaltyInfo",
"members": [
{
"label": "creator",
"type": "t_address",
"offset": 0,
"slot": "0"
},
{
"label": "royaltyPercentageInWei",
"type": "t_uint256",
"offset": 0,
"slot": "1"
},
{
"label": "treasury",
"type": "t_address",
"offset": 0,
"slot": "2"
}
],
"numberOfBytes": "96"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint64": {
"label": "uint64",
"numberOfBytes": "8"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
}
}
}
}
}
26 changes: 16 additions & 10 deletions addresses/polygon/index.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
{
"Multisig": {
"address": "0x359E1208DE02Af11461A37D72165Ef2dcD2Adfc8"
},
"RolesRegistry": {
"address": "0xB2aD616e84e1eF7A9ED0fA3169AAF31Ee51EA824"
},
"KMSDeployer": {
"address": ""
}
}
"Multisig": {
"address": "0x359E1208DE02Af11461A37D72165Ef2dcD2Adfc8"
},
"RolesRegistry": {
"address": "0xB2aD616e84e1eF7A9ED0fA3169AAF31Ee51EA824"
},
"KMSDeployer": {
"address": ""
},
"OriumMarketplace": {
"address": "0x1A9027FE6DC7675C108c6c801bBf21D902efA1A9",
"operator": "0x359E1208DE02Af11461A37D72165Ef2dcD2Adfc8",
"implementation": "0x17ecC3620cE4062fA5eC4298a6BDc6d5A25d75Fe",
"proxyAdmin": "0x48c769f6a8de57d824f0e7330d7A27dee53a43cD"
}
}
2 changes: 2 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ const PROD_CONFIG = {
chainId: 137,
url: POLYGON_PROVIDER_URL,
accounts: [PROD_PRIVATE_KEY],
gas: 80000000000,
gasPrice: 80000000000,
},
},
defender: {
Expand Down
5 changes: 5 additions & 0 deletions scripts/01-deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ const INITIALIZER_ARGUMENTS: string[] = [OPERATOR_ADDRESS, RolesRegistry.address

const networkConfig: any = network.config
const provider = new ethers.providers.JsonRpcProvider(networkConfig.url || '')
const FEE_DATA: any = {
maxFeePerGas: ethers.utils.parseUnits('100', 'gwei'),
maxPriorityFeePerGas: ethers.utils.parseUnits('5', 'gwei'),
}
provider.getFeeData = async () => FEE_DATA
const deployer = new AwsKmsSigner(kmsCredentials).connect(provider)

async function main() {
Expand Down

0 comments on commit b00cc25

Please sign in to comment.