diff --git a/hardhat.config.ts b/hardhat.config.ts index 3c50691..633e5e9 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -23,8 +23,8 @@ const config: HardhatUserConfig = { pages: "files", exclude: ["interfaces", "tests"], }, + // @ts-ignore gasReporter: { - // @ts-ignore reportFormat: "terminal", outputFile: "coverage/gasReport.txt", noColors: true, @@ -108,8 +108,8 @@ const config: HardhatUserConfig = { }, networks: { hardhat: { - live: false, - loggingEnabled: false, + // live: false, + loggingEnabled: true, allowBlocksWithSameTimestamp: true, allowUnlimitedContractSize: true, }, diff --git a/scripts/deploy-contract.ts b/scripts/deploy-contract.ts index 0200598..00977b2 100644 --- a/scripts/deploy-contract.ts +++ b/scripts/deploy-contract.ts @@ -1,15 +1,20 @@ import hre, { ethers } from "hardhat"; const main = async function () { - const factory = await ethers.getContractFactory("OmnichainStakingLP"); - const contract = await factory.deploy(); + const factory = await ethers.getContractFactory("UpdateZeroNFTScript"); + const contract = await factory.deploy( + "0x9fa72ea96591e486ff065e7c8a89282dedfa6c12" + ); console.log("deployed to", contract.target); await contract.waitForDeployment(); // Verify contract programmatically - await hre.run("verify:verify", { address: contract.target }); + await hre.run("verify:verify", { + address: contract.target, + constructorArguments: [contract.target], + }); }; main(); diff --git a/scripts/prepare-timelock-args.ts b/scripts/prepare-timelock-args.ts index cdddb78..6ce8f12 100644 --- a/scripts/prepare-timelock-args.ts +++ b/scripts/prepare-timelock-args.ts @@ -9,42 +9,15 @@ async function main() { "0x00000Ab6Ee5A6c1a7Ac819b01190B020F7c6599d" ); - const atoken = await hre.ethers.getContractAt( - "IATokenWithRecall", - "0x508C39Cd02736535d5cB85f3925218E5e0e8F07A" - ); - const blah = await hre.ethers.getContractAt( - "OmnichainStakingLP", - "0x508C39Cd02736535d5cB85f3925218E5e0e8F07A" - ); - - console.log( - await blah.init.populateTransaction( - "0x8bB8B092f3f872a887F377f73719c665Dd20Ab06", - "0x78354f8DcCB269a615A7e0a24f9B0718FDC3C7A7", - "0x2666951A62d82860E8e1385581E2FB7669097647", - 604800, - "0x303598dddebB8A48CE0132b3Ba6c2fDC14986647", - "0x130cc6e0301B58ab46504fb6F83BEE97Eb733054", - "0x14aAD4668de2115e30A5FeeE42CFa436899CCD8A", - "0xc0400264e71Fc9367719BE7bAdF228eac8fEdAB4" - ) - ); - - const recall = await atoken.recall.populateTransaction( - "0xaa862f977d6916a1e89e856fc11fd99a2f2fabf8", - "0x14aAD4668de2115e30A5FeeE42CFa436899CCD8A", - 132318528697 - ); - - const tx = await timelock.schedule.populateTransaction( - recall.to, // address target, - 0, // uint256 value, - recall.data, // bytes calldata data, - "0x0000000000000000000000000000000000000000000000000000000000000000", // bytes32 predecessor, - "0x0000000000000000000000000000000000000000000000000000000000000000", // bytes32 salt, - 86400 * 5 // uint256 delay - ); + const tx = await timelock.schedule + .populateTransaction + // recall.to, // address target, + // 0, // uint256 value, + // recall.data, // bytes calldata data, + // "0x0000000000000000000000000000000000000000000000000000000000000000", // bytes32 predecessor, + // "0x0000000000000000000000000000000000000000000000000000000000000000", // bytes32 salt, + // 86400 * 5 // uint256 delay + (); console.log(tx); }