Skip to content

Commit

Permalink
degen deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed Mar 30, 2024
1 parent a4a125f commit 6d12be4
Show file tree
Hide file tree
Showing 14 changed files with 58 additions and 42 deletions.
16 changes: 16 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ module.exports = {
gas: "auto", // gas limit
gasPrice: 5000000000, // 5 gwei
},
degen: { // DEGEN L3 Chain mainnet
url: 'https://rpc.degen.tips',
chainId: 666666666,
accounts: [process.env.DEPLOYER_PRIVATE_KEY],
gas: "auto", // gas limit
gasPrice: 25000000000, // 25 gwei
},
flare: { // Flare mainnet
url: 'https://flare-api.flare.network/ext/C/rpc',
chainId: 14,
Expand Down Expand Up @@ -232,6 +239,7 @@ module.exports = {
base: process.env.BASESCAN_API_KEY,
baseTestnet: process.env.BASESCAN_API_KEY,
bsc: process.env.BSC_API_KEY,
degen: "randomstring",
flare: "randomstring",
flareCoston: "randomstring",
ftmTestnet: process.env.FTMSCAN_API_KEY,
Expand Down Expand Up @@ -299,6 +307,14 @@ module.exports = {
browserURL: "https://base-goerli.blockscout.com" // "https://goerli.basescan.org"
}
},
{
network: "degen",
chainId: 666666666,
urls: {
apiURL: "https://explorer.degen.tips/api",
browserURL: "https://explorer.degen.tips"
}
},
{
network: "flare",
chainId: 14,
Expand Down
8 changes: 4 additions & 4 deletions scripts/activity-points/activityPoints.deploy.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// npx hardhat run scripts/activity-points/activityPoints.deploy.js --network arbitrumNova
// npx hardhat run scripts/activity-points/activityPoints.deploy.js --network degen

const contractName = "ActivityPoints";

const statsAddress = "0xabf9960132818049340253C3Ca0551F92Db856d7"; // stats contract
const mintedPostsStatsAddress = "0xF40284a811c82b4B9ab22E94Bb909Df6d2c66C08";
const statsAddress = "0x633Ae857445cF0cd02B21C6a3033C7CE74fB32c2"; // stats contract
const mintedPostsStatsAddress = "0x0BF6333Fc85159663A30Ac89FD02c5031B97c5ee";
const tldStatsAddress = ethers.constants.AddressZero;
const multiplier = 1_000_000; // 1 eth = 1M points
const multiplier = 10; // 1 eth = 10 points

async function main() {
const [deployer] = await ethers.getSigners();
Expand Down
2 changes: 1 addition & 1 deletion scripts/launchpad/erc721/1_nftMetadata.deploy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// 1. Deploy NftMetadata contract.
// npx hardhat run scripts/launchpad/erc721/1_nftMetadata.deploy.js --network scroll
// npx hardhat run scripts/launchpad/erc721/1_nftMetadata.deploy.js --network degen

const contractName = "NftMetadata";

Expand Down
2 changes: 1 addition & 1 deletion scripts/launchpad/erc721/2_nftDirectory.deploy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// 2. Deploy NftDirectory contract.
// npx hardhat run scripts/launchpad/erc721/2_nftDirectory.deploy.js --network scroll
// npx hardhat run scripts/launchpad/erc721/2_nftDirectory.deploy.js --network degen

const contractName = "NftDirectory";

Expand Down
12 changes: 6 additions & 6 deletions scripts/launchpad/erc721/3_launchpadBonding.deploy.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// 3. Deploy IggyLaunchpad721Bonding contract.
// npx hardhat run scripts/launchpad/erc721/3_launchpadBonding.deploy.js --network scroll
// npx hardhat run scripts/launchpad/erc721/3_launchpadBonding.deploy.js --network degen

const contractName = "IggyLaunchpad721Bonding";

const metadataAddress = "0xCF171dD6563Fc6e84EC16c40FB964Dcf0C2e6d05";
const mintingFeeReceiver = "0x0E66249733DDFe422F7A127B0b9E906601F23E06"; // revenue distributor contract address
const directoryAddress = "0xD48e9b2D25CEe123be1d01c09645A0a355174db0";
const statsMiddlewareAddress = ethers.constants.AddressZero;
const metadataAddress = "0x3Fa0EaC3058828Cc4BA97F51A33597C695bF6F9e";
const mintingFeeReceiver = "0xb29050965A5AC70ab487aa47546cdCBc97dAE45D"; // revenue distributor contract address
const directoryAddress = "0x4A82158ff4B0504F3DB4c7555FfB6298452985E2";
const statsMiddlewareAddress = "0x06A7Ab7Bb68b0ad6eB7688C5781E60BE6AFc658d";
const mintingFeePercentage = ethers.utils.parseEther("0.02");
const price = ethers.utils.parseEther("0.00069"); // price for creating a new NFT collection
const price = ethers.utils.parseEther("420"); // price for creating a new NFT collection

async function main() {
const [deployer] = await ethers.getSigners();
Expand Down
12 changes: 6 additions & 6 deletions scripts/launchpad/erc721/4_arguments.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = [
"0x072F6683DA7F71b9E52bAC7867488F18058Cb410", // factory address
"0xCF171dD6563Fc6e84EC16c40FB964Dcf0C2e6d05", // metadata address
"0x0E66249733DDFe422F7A127B0b9E906601F23E06", // minting fee receiver address
"Scrolly's Journey", // collection name
"SCROLLYJOURNEY", // collection symbol
"0x1EB2Adc19eB3Df26D84427Be11F1eB1887c6631c", // factory address
"0x3Fa0EaC3058828Cc4BA97F51A33597C695bF6F9e", // metadata address
"0x5193877dD31b569Fedf762308aFae70B9091b951", // minting fee receiver address
"Mr. Degen", // collection name
"MRDEGEN", // collection symbol
"20000000000000000", // minting fee percentage
"10000000000000000000" // ratio
"6969000000000000000000" // ratio
];
4 changes: 2 additions & 2 deletions scripts/launchpad/erc721/4_verifyNftContract.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/launchpad/erc721/4_verifyNftContract.js --network scroll
// Run: npx hardhat run scripts/launchpad/erc721/4_verifyNftContract.js --network degen

const contractAddress = "0x0E1ABbd03aeCDd832F7baA29E91085b7a8f2dFad";
const contractAddress = "0x2f7f910D746080B4ba14e44462a7b3bFeD8C47B9";

async function main() {
console.log("Copy the line below and paste it in your terminal to verify the TLD contract on Etherscan:");
Expand Down
6 changes: 3 additions & 3 deletions scripts/launchpad/erc721/5_mockNftContract.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// If verifying contract via step 3 does not work, use this script instead
// 5. Deploy mock/test Nft721Bonding contract so that others created through factory can get auto-verified.
// npx hardhat run scripts/launchpad/erc721/5_mockNftContract.js --network arbitrumNova
// npx hardhat run scripts/launchpad/erc721/5_mockNftContract.js --network degen

const contractName = "Nft721Bonding";

const factoryAddress = "0x3Fa0EaC3058828Cc4BA97F51A33597C695bF6F9e";
const metadataAddress = "0xc486B08Ed47fFe5c1b4b1A2ff5c671EA0083D9bA";
const factoryAddress = "0x1EB2Adc19eB3Df26D84427Be11F1eB1887c6631c";
const metadataAddress = "0x3Fa0EaC3058828Cc4BA97F51A33597C695bF6F9e";
const mintingFeeReceiver = "0xb29050965a5ac70ab487aa47546cdcbc97dae45d";
const cName = "Test collection";
const cSymbol = "TEST";
Expand Down
10 changes: 5 additions & 5 deletions scripts/post/IggyPostNft1155/1_metadata.deploy.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// 1. Deploy metadata contract
// npx hardhat run scripts/post/IggyPostNft1155/1_metadata.deploy.js --network scroll
// npx hardhat run scripts/post/IggyPostNft1155/1_metadata.deploy.js --network degen

const contractName = "IggyPostMetadata";

const mdName = "Scrolly Post";
const description = "Scrolly Hub is a web3 place for all-things around the Scrolly web3 community. Go visit here: https://hub.scrolly.xyz/";
const url = "https://hub.scrolly.xyz/post/";
const tldAddress = "0xc2C543D39426bfd1dB66bBde2Dd9E4a5c7212876";
const mdName = "NFTdegen.lol Post";
const description = "NFTdegen is an NFT launchpad and marketplace where NFTs are always liquid. Go visit here: https://nftdegen.lol/";
const url = "https://nftdegen.lol/post/";
const tldAddress = "0x4087fb91A1fBdef05761C02714335D232a2Bf3a1";

async function main() {
const [deployer] = await ethers.getSigners();
Expand Down
10 changes: 5 additions & 5 deletions scripts/post/IggyPostNft1155/2_iggyPostNft1155.deploy.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// 2. Deploy NFT contract
// npx hardhat run scripts/post/IggyPostNft1155/2_iggyPostNft1155.deploy.js --network scroll
// npx hardhat run scripts/post/IggyPostNft1155/2_iggyPostNft1155.deploy.js --network degen

const contractName = "IggyPostNft1155";

const defaultPrice = ethers.utils.parseEther("0.0001"); // TODO: change price!!!
const metadataAddress = "0xa6b7116A5b6eF4e1336980dF4FB162eeBC38b766";
const collectionName = "Scrolly Posts";
const collectionSymbol = "SCROLLYPOST";
const defaultPrice = ethers.utils.parseEther("6.9"); // TODO: change price!!!
const metadataAddress = "0x2D4144B4E00cf1dC1c4DeDa37cb1CaCEda030998";
const collectionName = "Degen Posts";
const collectionSymbol = "DEGENPOST";

async function main() {
const [deployer] = await ethers.getSigners();
Expand Down
8 changes: 4 additions & 4 deletions scripts/post/IggyPostNft1155/3_minter.deploy.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// 3. Deploy minter contract
// npx hardhat run scripts/post/IggyPostNft1155/3_minter.deploy.js --network scroll
// npx hardhat run scripts/post/IggyPostNft1155/3_minter.deploy.js --network degen

const contractName = "IggyPostMinter";

const daoAddress = "0x0E66249733DDFe422F7A127B0b9E906601F23E06"; // distributor contract
const devAddress = "0xE08033d0bDBcEbE7e619c3aE165E7957Ab577961"; // iggy address
const postAddress = "0xa9cfa4e8EA79537F5893f45c3B1491A2f7B54e7E";
const daoAddress = "0xb29050965A5AC70ab487aa47546cdCBc97dAE45D"; // distributor contract
const devAddress = "0x6771F33Cfd8C6FC0A1766331f715f5d2E1d4E0e2"; // iggy address
const postAddress = "0x99Dbf11aCd46baFBCE82506FaeB4F13E6Ea1726A";

const daoFee = 1000; // 10%
const devFee = 1000; // 10%
Expand Down
4 changes: 2 additions & 2 deletions scripts/post/IggyPostNft1155/4_stats.deploy.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// 4. Deploy stats contract
// npx hardhat run scripts/post/IggyPostNft1155/4_stats.deploy.js --network scroll
// npx hardhat run scripts/post/IggyPostNft1155/4_stats.deploy.js --network degen

const contractName = "IggyPostStats";

const minterAddress = "0xeb485A72393728990264EeE32e8098E6Da94cE01";
const minterAddress = "0xabf9960132818049340253C3Ca0551F92Db856d7";
const shouldStatsBeEnabled = true;

const minterInterface = new ethers.utils.Interface([
Expand Down
2 changes: 1 addition & 1 deletion scripts/stats/1_stats.deploy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// 1. Deploy LaunchpadStats contract.
// npx hardhat run scripts/stats/1_stats.deploy.js --network scroll
// npx hardhat run scripts/stats/1_stats.deploy.js --network degen

const contractName = "Stats";

Expand Down
4 changes: 2 additions & 2 deletions scripts/stats/2_statsMiddleware.deploy.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// 2. Deploy StatsMiddleware contract.
// npx hardhat run scripts/stats/2_statsMiddleware.deploy.js --network scroll
// npx hardhat run scripts/stats/2_statsMiddleware.deploy.js --network degen

const contractName = "StatsMiddleware";

const statsAddress = "0x8A6d7926Db502Bb5b9Ffbcc2FF195623f52040C8";
const statsAddress = "0x633Ae857445cF0cd02B21C6a3033C7CE74fB32c2";

async function main() {
const [deployer] = await ethers.getSigners();
Expand Down

0 comments on commit 6d12be4

Please sign in to comment.