From 02eaffd837d60b44ea3ad0e632df7df11d51852e Mon Sep 17 00:00:00 2001 From: tipusinghaw <126460794+tipusinghaw@users.noreply.github.com> Date: Wed, 29 May 2024 16:12:32 +0530 Subject: [PATCH] feat: added config file for mainnet (#22) Co-authored-by: Sai Ranjit Tummalapalli --- .openzeppelin/polygon.json | 84 ++++++++++++++++++++++++++++++++++++++ contracts/Migrations.sol | 19 --------- hardhat.config.js | 6 +-- 3 files changed, 87 insertions(+), 22 deletions(-) create mode 100644 .openzeppelin/polygon.json delete mode 100644 contracts/Migrations.sol diff --git a/.openzeppelin/polygon.json b/.openzeppelin/polygon.json new file mode 100644 index 0000000..32e10f5 --- /dev/null +++ b/.openzeppelin/polygon.json @@ -0,0 +1,84 @@ +{ + "manifestVersion": "3.2", + "proxies": [ + { + "address": "0xc1F38834F32C160c819baF4897A5D96128b6Ae2a", + "txHash": "0xce05060f418ac00ea0ca4e72b419629f8d8225d17f653c765f52b4ec07acd70d", + "kind": "transparent" + } + ], + "impls": { + "027d80819c713986c58fb39581c01871f0084659c28fee2802da345704efe958": { + "address": "0x83Ccf3321C3b004a4C15ddF68EA8493142bE88e9", + "txHash": "0xe2ffdb92eccf5994dd6fbac660cf7b120d60b838cea4f3d5691103e817b13e7b", + "layout": { + "solcVersion": "0.8.16", + "storage": [ + { + "label": "owner", + "offset": 0, + "slot": "0", + "type": "t_address", + "contract": "SchemaRegistry", + "src": "contracts/SchemaRegistry.sol:9" + }, + { + "label": "schemas", + "offset": 0, + "slot": "1", + "type": "t_mapping(t_address,t_mapping(t_string_memory_ptr,t_struct(Schema)40_storage))", + "contract": "SchemaRegistry", + "src": "contracts/SchemaRegistry.sol:15" + }, + { + "label": "initialized", + "offset": 0, + "slot": "2", + "type": "t_bool", + "contract": "SchemaRegistry", + "src": "contracts/SchemaRegistry.sol:19" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_mapping(t_string_memory_ptr,t_struct(Schema)40_storage))": { + "label": "mapping(address => mapping(string => struct SchemaRegistry.Schema))", + "numberOfBytes": "32" + }, + "t_mapping(t_string_memory_ptr,t_struct(Schema)40_storage)": { + "label": "mapping(string => struct SchemaRegistry.Schema)", + "numberOfBytes": "32" + }, + "t_string_memory_ptr": { + "label": "string", + "numberOfBytes": "32" + }, + "t_string_storage": { + "label": "string", + "numberOfBytes": "32" + }, + "t_struct(Schema)40_storage": { + "label": "struct SchemaRegistry.Schema", + "members": [ + { + "label": "schemaJson", + "type": "t_string_storage", + "offset": 0, + "slot": "0" + } + ], + "numberOfBytes": "32" + } + }, + "namespaces": {} + } + } + } +} diff --git a/contracts/Migrations.sol b/contracts/Migrations.sol deleted file mode 100644 index 9aac975..0000000 --- a/contracts/Migrations.sol +++ /dev/null @@ -1,19 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity >=0.4.22 <0.9.0; - -contract Migrations { - address public owner = msg.sender; - uint public last_completed_migration; - - modifier restricted() { - require( - msg.sender == owner, - "This function is restricted to the contract's owner" - ); - _; - } - - function setCompleted(uint completed) public restricted { - last_completed_migration = completed; - } -} diff --git a/hardhat.config.js b/hardhat.config.js index 672bd04..2fbb596 100755 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -23,12 +23,12 @@ module.exports = { hardhat: {}, amoy: { url: process.env.AMOY_RPCURL, - accounts: [`0x${process.env.SIGNER}`], + accounts: [`0x${process.env.SIGNER_TESTNET}`], }, //Use for mainnet deployment // polygon: { - // url: process.env.RPCURL_POLYON_MAINNET, - // accounts: [`0x${process.env.SIGNER}`], + // url: process.env.MAINNET_RPCURL, + // accounts: [`0x${process.env.SIGNER_MAINNET}`], // }, }, etherscan: {