hardhat#run TypeScript Examples
The following examples show how to use
hardhat#run.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: grantXP_pinbaal.ts From aavegotchi-contracts with MIT License | 6 votes |
async function grantXP() {
const taskArgs: GrantXPMinigameTaskArgs = {
filename: "pinbaal.ts",
xp15: "100",
xp10: "400",
xpMin: "125000",
};
await run("grantXP_minigame", taskArgs);
}
Example #2
Source File: updateRates1.ts From ghst-staking with MIT License | 6 votes |
async function updateRates() {
const taskArgs: UpdateRateTaskArgs = {
poolsAndRates: convertPoolsAndRatesToString(currentPools),
epoch: "0",
rateManagerAddress: "0x9b9d0767248e4cDddb552dB92b0136Cc20406876",
};
if (["localhost", "hardhat"].includes(network.name)) {
let stakingFacet = await ethers.getContractAt(
"StakingFacet",
maticStakingAddress
);
stakingFacet = await impersonate(
"0x9b9d0767248e4cDddb552dB92b0136Cc20406876",
stakingFacet,
ethers,
network
);
}
await run("updateRates", taskArgs);
}
Example #3
Source File: grantXP_FrensCommitteeCore.ts From aavegotchi-contracts with MIT License | 5 votes |
async function grantXP() {
await run("grantXP", {
filename: "coreprop/AGIP12",
xpAmount: "20",
batchSize: "500",
});
}