From 188c1361f709e83c4ebd2b0038a083e46c1aba7a Mon Sep 17 00:00:00 2001 From: Andres Aiello Date: Wed, 6 Nov 2024 14:10:53 -0300 Subject: [PATCH] remove unused code --- .../instant-rewards/instant-rewards-v2.ts | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/packages/zevm-app-contracts/test/instant-rewards/instant-rewards-v2.ts b/packages/zevm-app-contracts/test/instant-rewards/instant-rewards-v2.ts index 06965cb..41009c6 100644 --- a/packages/zevm-app-contracts/test/instant-rewards/instant-rewards-v2.ts +++ b/packages/zevm-app-contracts/test/instant-rewards/instant-rewards-v2.ts @@ -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, @@ -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");