Skip to content

Commit

Permalink
minor changse
Browse files Browse the repository at this point in the history
  • Loading branch information
deadshotryker committed Oct 1, 2024
1 parent def8e5e commit 0d48e29
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 42 deletions.
6 changes: 3 additions & 3 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -108,8 +108,8 @@ const config: HardhatUserConfig = {
},
networks: {
hardhat: {
live: false,
loggingEnabled: false,
// live: false,
loggingEnabled: true,
allowBlocksWithSameTimestamp: true,
allowUnlimitedContractSize: true,
},
Expand Down
11 changes: 8 additions & 3 deletions scripts/deploy-contract.ts
Original file line number Diff line number Diff line change
@@ -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();
45 changes: 9 additions & 36 deletions scripts/prepare-timelock-args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0d48e29

Please sign in to comment.