Skip to content

Commit

Permalink
superposition testnet added, new script to verify launchpad NFTs
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed Jun 25, 2024
1 parent 0e11616 commit 0d2bbac
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 3 deletions.
16 changes: 16 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,13 @@ module.exports = {
gas: "auto", // gas limit
gasPrice: 125000000000, // 125 gwei
},
superpositionTestnet: { // Superposition testnet
url: 'https://testnet-rpc.superposition.so/',
chainId: 98985,
accounts: [process.env.DEPLOYER_PRIVATE_KEY],
gas: "auto", // gas limit
gasPrice: 20000000, // 0.02 gwei
},
taiko: { // Taiko mainnet
url: 'https://rpc.taiko.xyz',
chainId: 167000,
Expand Down Expand Up @@ -287,6 +294,7 @@ module.exports = {
sepolia: process.env.ETHERSCAN_API_KEY,
sokol: "randomstring",
songbird: "randomstring",
superpositionTestnet: "randomstring",
taiko: process.env.TAIKOSCAN_API_KEY,
taikoHekla: "42069",
taikoJolnir: "42069",
Expand Down Expand Up @@ -427,6 +435,14 @@ module.exports = {
browserURL: "https://songbird-explorer.flare.network/"
}
},
{
network: "superpositionTestnet",
chainId: 98985,
urls: {
apiURL: "https://testnet-explorer.superposition.so/api",
browserURL: "https://testnet-explorer.superposition.so/"
}
},
{
network: "taiko",
chainId: 167000,
Expand Down
2 changes: 1 addition & 1 deletion scripts/distributor/distributorFactory.deploy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// npx hardhat run scripts/distributor/distributorFactory.deploy.js --network scroll
// npx hardhat run scripts/distributor/distributorFactory.deploy.js --network superpositionTestnet

const contractName = "RevenueDistributorFactory";

Expand Down
4 changes: 2 additions & 2 deletions scripts/distributor/other/verifyDistributor.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// TODO:
// 1. Create the first NFT collection through the factory.
// 2. Verify the contract on block explorer using this script (run the command below).
// Run: npx hardhat run scripts/distributor/other/verifyDistributor.js --network scroll
// Run: npx hardhat run scripts/distributor/other/verifyDistributor.js --network superpositionTestnet

const contractAddress = "0x0E66249733DDFe422F7A127B0b9E906601F23E06";
const contractAddress = "0x4e3ccA5540d2115136E94B5e3EeD1cDeF9E6dc4a";

async function main() {
console.log("Copy the line below and paste it in your terminal to verify the TLD contract on Etherscan:");
Expand Down
36 changes: 36 additions & 0 deletions scripts/launchpad/erc721/other/verifyNftContract.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// npx hardhat run scripts/launchpad/erc721/other/verifyNftContract.js --network degen

const contractAddress = "0x0F75991d7FE39AbEa26c664048104da9A87d5CF8";

const constructorArgs = [
"0x1EB2Adc19eB3Df26D84427Be11F1eB1887c6631c", // factory address
"0x475bb7D16B94164BbE1DB0A99002B3e2CAF46EBA", // metadata address (0x475bb7D16B94164BbE1DB0A99002B3e2CAF46EBA, 0x3Fa0EaC3058828Cc4BA97F51A33597C695bF6F9e)
"0x5193877dD31b569Fedf762308aFae70B9091b951", // minting fee receiver address
"Machinations", // collection name
"MACH", // collection symbol
"20000000000000000", // minting fee percentage
"2048000000000000000000" // ratio
];

async function main() {
try {
console.log("Starting the verification process...");
await hre.run("verify:verify", {
address: contractAddress,
constructorArguments: constructorArgs,
});
} catch (error) {
console.error(error);
} finally {
console.log("If automated verification did not succeed, try to verify the smart contract manually by running this command:");
// TODO:
console.log("npx hardhat verify --network " + network.name + " " + contractAddress + ' ' + constructorArgs[0] + ' ' + constructorArgs[1] + ' ' + constructorArgs[2] + ' "' + constructorArgs[3] + '" "' + constructorArgs[4] + '" "' + constructorArgs[5] + '" "' + constructorArgs[6] + '"');
}
}

main()
.then(() => process.exit(0))
.catch((error) => {
console.error(error);
process.exit(1);
});

0 comments on commit 0d2bbac

Please sign in to comment.