-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c5a5c9
commit 826dc8c
Showing
10 changed files
with
743 additions
and
24 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
module.exports = [ | ||
"0x498e0e6B245898c5E2dD0299d0456a8928F58ECC", // factory address | ||
"0x4A82158ff4B0504F3DB4c7555FfB6298452985E2", // metadata address | ||
"0x6771F33Cfd8C6FC0A1766331f715f5d2E1d4E0e2", // minting fee receiver address | ||
"Always Liquid on Polygon", // collection name | ||
"ALPOLY", // collection symbol | ||
"0x072F6683DA7F71b9E52bAC7867488F18058Cb410", // factory address | ||
"0xCF171dD6563Fc6e84EC16c40FB964Dcf0C2e6d05", // metadata address | ||
"0x0E66249733DDFe422F7A127B0b9E906601F23E06", // minting fee receiver address | ||
"Scrolly's Journey", // collection name | ||
"SCROLLYJOURNEY", // collection symbol | ||
"20000000000000000", // minting fee percentage | ||
"100000000000000000" // ratio | ||
"10000000000000000000" // ratio | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// npx hardhat run scripts/swap/IggySwapRouterFeeOnTransfer.deploy.js --network taikoKatla | ||
|
||
const contractName = "IggySwapRouterFeeOnTransfer"; | ||
|
||
const iggyAddress = ""; // mandatory | ||
const routerAddress = ""; // mandatory | ||
const frontendAddress = ethers.constants.AddressZero; // optional | ||
const stakingAddress = ethers.constants.AddressZero; // optional | ||
const statsAddress = ""; // stats middleware address (optional) | ||
|
||
const swapFee = 80; // 0.8% | ||
const stakingShare = 4000; // bps | ||
const frontendShare = 4000; // bps | ||
|
||
async function main() { | ||
const [deployer] = await ethers.getSigners(); | ||
|
||
console.log("Deploying contracts with the account:", deployer.address); | ||
console.log("Account balance:", (await deployer.getBalance()).toString()); | ||
|
||
// deploy contract | ||
const contract = await ethers.getContractFactory(contractName); | ||
const instance = await contract.deploy( | ||
frontendAddress, | ||
iggyAddress, | ||
routerAddress, | ||
stakingAddress, | ||
statsAddress, | ||
swapFee, | ||
stakingShare, | ||
frontendShare | ||
); | ||
|
||
await instance.deployed(); | ||
|
||
console.log(contractName + " contract address:", instance.address); | ||
|
||
// add this address to the Stats middleware contract | ||
if (statsAddress != ethers.constants.AddressZero) { | ||
console.log("Adding this address to the stats middleware contract:"); | ||
const statsContract = await ethers.getContractFactory("StatsMiddleware"); | ||
const statsInstance = await statsContract.attach(statsAddress); | ||
const tx1 = await statsInstance.addWriter(instance.address); | ||
await tx1.wait(); | ||
console.log("Done!"); | ||
} | ||
|
||
console.log("Wait a minute and then run this command to verify contracts on block explorer:"); | ||
console.log( | ||
"npx hardhat verify --network " + network.name + " " + instance.address + " " + frontendAddress + " " + | ||
iggyAddress + " " + routerAddress + " " + stakingAddress + " " + statsAddress + ' "' + swapFee + '" "' + stakingShare + '" "' + frontendShare + '"' | ||
); | ||
} | ||
|
||
main() | ||
.then(() => process.exit(0)) | ||
.catch((error) => { | ||
console.error(error); | ||
process.exit(1); | ||
}); |