Docs

Claim Condition Extension Improvements

Greg

We've added the ability to retrieve claim conditions across the ERC20, ERC721, and ERC1155 extensions.

import { getClaimConditions } from "thirdweb/extensions/erc20";
import { getClaimConditions } from "thirdweb/extensions/erc721";
import { getClaimConditions } from "thirdweb/extensions/erc1155";
import { getContract } from "thirdweb";
const erc20Contract = getContract({
chain: defineChain(1),
client: THIRDWEB_CLIENT,
address: "0x...",
});
const erc20Conditions = await getClaimConditions({
contract: erc20Contract,
});
const erc721Contract = getContract({
chain: defineChain(1),
client: THIRDWEB_CLIENT,
address: "0x...",
});
const erc721Conditions = await getClaimConditions({
contract: erc721Contract,
});
const erc1155Contract = getContract({
chain: defineChain(1),
client: THIRDWEB_CLIENT,
address: "0x...",
});
const conditions = await getClaimConditions({
contract: erc1155Contract,
});

Bug Fixes and Other Improvements

  • Added resolveImplementation support for MATIC proxy
  • Removed unusable single phase claim condition extension