import { describe, expect, it } from "vitest"; import { MAX_UINT256 } from "~test/test-consts.js"; import { NFT_DROP_CONTRACT } from "../../../../../test/src/test-contracts.js"; import { getActiveClaimCondition } from "./getActiveClaimCondition.js"; describe.runIf(process.env.TW_SECRET_KEY)("erc20.getClaimConditions", () => { it("should return the correct claim conditions", async () => { const cc = await getActiveClaimCondition({ contract: NFT_DROP_CONTRACT, }); expect(cc).toEqual({ currency: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", maxClaimableSupply: MAX_UINT256, merkleRoot: "0xa271043594b8089d5463d5f8be64927aa2118785146920c9d9f01a4f6043e50d", metadata: "ipfs://QmXdSpyno8GDDZbpHecsjMZkb82A5EgSsHzgbJWRGV97jN/0", pricePerToken: 0n, quantityLimitPerWallet: 0n, startTimestamp: 1704652200n, supplyClaimed: 5598n, }); }); });