Hardhat Mainnet Fork Testing
Set yourself to easily test with Superfluid on a Hardhat fork
const { Framework } = require("@superfluid-finance/sdk-core");
const { ethers } = require("hardhat");
// Superfluid Global Variable
let sf;before(async function () {
sf = await Framework.create({
provider: ethers.provider,
resolverAddress: <<resolver address from your desired chain>>,
networkName: "hardhat",
dataMode: "WEB3_ONLY",
protocolReleaseVersion: "v1",
chainId: 31337
});
...Now You're All Set!
Last updated