Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
andresaiello committed Nov 6, 2024
1 parent ae9aad8 commit 188c136
Showing 1 changed file with 0 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";
import { expect } from "chai";
import { BigNumber, utils } from "ethers";
import { parseEther } from "ethers/lib/utils";
import { ethers } from "hardhat";

import { InstantRewardsFactory, InstantRewardsV2 } from "../../typechain-types";
import { ClaimData, getSignature } from "./test.helpers";

const HARDHAT_CHAIN_ID = 1337;

describe("Instant Rewards Contract test", () => {
let instantRewardsFactory: InstantRewardsFactory,
Expand All @@ -17,31 +12,6 @@ describe("Instant Rewards Contract test", () => {
user: SignerWithAddress,
addrs: SignerWithAddress[];

const encodeTaskId = (taskId: string) => utils.keccak256(utils.defaultAbiCoder.encode(["string"], [taskId]));

const getClaimDataSigned = async (
chainId: number,
verifyingContract: string,
signer: SignerWithAddress,
amount: BigNumber,
sigExpiration: number,
taskId: string,
to: string
) => {
const claimData: ClaimData = {
amount,
sigExpiration,
taskId,
to,
};

const signature = await getSignature(chainId, verifyingContract, signer, claimData);
return {
...claimData,
signature,
};
};

beforeEach(async () => {
[deployer, owner, signer, user, ...addrs] = await ethers.getSigners();
const instantRewardsFactoryF = await ethers.getContractFactory("InstantRewardsFactory");
Expand Down

0 comments on commit 188c136

Please sign in to comment.