Skip to content

Commit

Permalink
polygon deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
JackBekket committed Dec 23, 2022
1 parent 5cd6591 commit b71854b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
12 changes: 7 additions & 5 deletions addresses.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Singleton Collection deployed to: 0x36Ed9bc9473F1316ec15BCca45f49f4481A63c5e
Factory NFT deployed to: 0xd2026ff372E52d1961276313dC4e3d202995c3Ef
Our currency deployed to: 0xc4ab29F7F39E93199C69F63d2B41B518e08D290a
Currencies util contract deployed to: 0x00c65DE1cF0f356E04c736fAa97418e4360b5B0E
MetaMarketplace deployed to: 0x2b1e0A2b16AB524Ad3f4273d1ecB63FC3b9cB58C
polygon
Singleton Collection deployed to: 0xEbE648689E98abA446e38621E5a3491db03a7621
Factory NFT deployed to: 0xd8bD8B58Ad057a2D7dC835cDE41397151490dA79
Our currency deployed to: 0xA25d4cb14742a408B7421A259c96cE29F6113B3d
Currencies util contract deployed to: 0xB85D9f60241798e53BB9bCac58447f0aaAA071C1
MetaMarketplace deployed to: 0x8CeC1dD2802C820574b34357b4AdD49aaF100fAD


5 changes: 5 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ module.exports = {
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
polygon: {
url: process.env.GATEWAY_POLYGON || "",
accounts :
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
}
},
gasReporter: {
enabled: process.env.REPORT_GAS !== undefined,
Expand Down
15 changes: 9 additions & 6 deletions scripts/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ async function main() {
console.log(hre.network.name);

let initialSupply = toWei(1000000);
//const erc20sample = await ERC20Sample.deploy("Token", "TKN", initialSupply);


// Polygon addresses
const USDT = "0xc2132D05D31c914a87C6611C10748AEb04B58e8F";
const USDC = "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174";
const DAI = "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174";
const WBTC = "0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6";
const WETH = "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619";


//let murs_account = ethers.utils.getAddress("0x383A9e83E36796106EaC11E8c2Fbe8b92Ff46D3a");
//let account_owner = await hre.ethers.getSigner();
//const owner = await hre.ethers.utils.getAddress("0x16d97A46030C5D3D705bca45439e48529997D8b2");
const accounts = await hre.ethers.getSigners();
for (const account of accounts) {
console.log(account.address);
Expand All @@ -45,14 +48,14 @@ async function main() {

// We get the contract to deploy
const CurrenciesERC20_F = await hre.ethers.getContractFactory("CurrenciesERC20");
const Currencies = await CurrenciesERC20_F.deploy("0xe583769738b6dd4E7CAF8451050d1948BE717679","0x07865c6E87B9F70255377e024ace6630C1Eaa37F","0x73967c6a0904aA032C103b4104747E88c566B1A2","0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6","0xC04B0d3107736C32e19F1c62b2aF67BE61d63a05",our_currency.address);
const Currencies = await CurrenciesERC20_F.deploy(USDT,USDC,DAI,WETH,WBTC,our_currency.address);

await Currencies.deployed();
console.log("Currencies util contract deployed to:", Currencies.address);


const MetaMarketplace_F = await hre.ethers.getContractFactory("MetaMarketplace");
const MetaMarketplace = await MetaMarketplace_F.deploy(Currencies.address,"0x36Ed9bc9473F1316ec15BCca45f49f4481A63c5e",owner_account.address);
const MetaMarketplace = await MetaMarketplace_F.deploy(Currencies.address,"0xEbE648689E98abA446e38621E5a3491db03a7621",owner_account.address);
await MetaMarketplace.deployed();
console.log("MetaMarketplace deployed to:", MetaMarketplace.address);

Expand Down

0 comments on commit b71854b

Please sign in to comment.