Skip to content

Commit b15c3c0

Browse files
Add contract availability documentation to ERC methods (#7033)
1 parent 1985de8 commit b15c3c0

34 files changed

+44
-3
lines changed

packages/thirdweb/src/extensions/erc1155/drops/read/canClaim.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type CanClaimResult = {
1818

1919
/**
2020
* Check if a user can claim a drop.
21-
*
21+
* This method is only available on the `DropERC1155` contract.
2222
* @param options - The options for the transaction.
2323
* @returns Whether the user can claim the drop.
2424
*

packages/thirdweb/src/extensions/erc1155/drops/read/getActiveClaimCondition.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
export type GetActiveClaimConditionParams = GetActiveClaimConditionIdParams;
1818
/**
1919
* Retrieves the active claim condition.
20+
* This method is only available on the `DropERC1155` contract.
2021
* @param options - The transaction options.
2122
* @returns A promise that resolves to the active claim condition.
2223
* @throws An error if the claim condition is unsupported.

packages/thirdweb/src/extensions/erc1155/drops/read/getClaimConditions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export type GetClaimConditionsParams = {
99
};
1010
/**
1111
* Retrieves all claim conditions.
12+
* This method is only available on the `DropERC1155` contract.
1213
* @param options - The transaction options.
1314
* @returns A promise that resolves to all claim conditions.
1415
* @throws An error if the claim conditions are unsupported by the contract.

packages/thirdweb/src/extensions/erc1155/drops/write/claimTo.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export type ClaimToParams = {
1818

1919
/**
2020
* Claim ERC1155 NFTs to a specified address
21+
* This method is only available on the `DropERC1155` contract.
2122
* @param options - The options for the transaction
2223
* @extension ERC1155
2324
* @example

packages/thirdweb/src/extensions/erc1155/drops/write/resetClaimEligibility.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export type ResetClaimEligibilityParams = GetClaimConditionsParams;
2323

2424
/**
2525
* Reset the claim eligibility for all users.
26+
* This method is only available on the `DropERC1155` contract.
2627
* @param options
2728
* @returns the prepared transaction
2829
* @extension ERC1155

packages/thirdweb/src/extensions/erc1155/drops/write/setClaimConditions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export type SetClaimConditionsParams = {
2222

2323
/**
2424
* Set the claim conditions for a ERC1155 drop
25+
* This method is only available on the `DropERC1155` contract.
2526
* @param options
2627
* @returns the prepared transaction
2728
* @extension ERC1155

packages/thirdweb/src/extensions/erc1155/write/lazyMint.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export type LazyMintParams = {
3737

3838
/**
3939
* Lazily mints ERC1155 tokens.
40+
* This method is only available on the `DropERC1155` contract.
4041
* @param options - The options for the lazy minting process.
4142
* @returns A promise that resolves to the prepared contract call.
4243
* @extension ERC1155

packages/thirdweb/src/extensions/erc1155/write/mintAdditionalSupplyTo.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export type MintAdditionalSupplyToParams = {
1313

1414
/**
1515
* Mints a "supply" number of additional ERC1155 tokens to the specified "to" address.
16+
* This method is only available on the `TokenERC1155` contract.
1617
* @param options - The transaction options.
1718
* @returns A promise that resolves to the transaction result.
1819
* @extension ERC1155

packages/thirdweb/src/extensions/erc1155/write/mintAdditionalSupplyToBatch.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export type MintAdditionalSupplyToBatchParams = WithOverrides<{
1616

1717
/**
1818
* This extension batches multiple `mintAdditionalSupplyToBatch` extensions into one single multicall.
19+
* This method is only available on the `TokenERC1155` contract.
1920
* Keep in mind that there is a limit of how many NFTs you can mint per transaction.
2021
* This limit varies depends on the network that you are transacting on.
2122
*

packages/thirdweb/src/extensions/erc1155/write/mintTo.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export type MintToParams = WithOverrides<{
1919

2020
/**
2121
* Mints a "supply" number of new ERC1155 tokens to the specified "to" address.
22+
* This method is only available on the `TokenERC1155` contract.
2223
* If the `nft` parameter is a string, it will be used as the token URI.
2324
* If the `nft` parameter is a file, it will be uploaded to the storage server and the resulting URI will be used as the token URI.
2425
* @param options - The transaction options.

0 commit comments

Comments
 (0)