Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/sdk.edition.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ const contract = sdk.getEdition("{{contract_address}}");
| [getOwned(walletAddress)](./sdk.edition.getowned.md) | | Get Owned NFTs |
| [getTotalCount()](./sdk.edition.gettotalcount.md) | | Get the number of NFTs minted |
| [isTransferRestricted()](./sdk.edition.istransferrestricted.md) | | Get whether users can transfer NFTs from this contract |
| [mint(metadataWithSupply)](./sdk.edition.mint.md) | | Mint NFT for the connected wallet |
| [mintAdditionalSupply(tokenId, additionalSupply)](./sdk.edition.mintadditionalsupply.md) | | Increase the supply of an existing NFT and mint it to the connected wallet |
| [mintAdditionalSupplyTo(to, tokenId, additionalSupply)](./sdk.edition.mintadditionalsupplyto.md) | | Increase the supply of an existing NFT and mint it to a given wallet address |
| [mintBatch(metadatas)](./sdk.edition.mintbatch.md) | | Mint Many NFTs for the connected wallet |
| [mintBatchTo(to, metadataWithSupply)](./sdk.edition.mintbatchto.md) | | Mint Many NFTs with limited supplies |
| [mintTo(to, metadataWithSupply)](./sdk.edition.mintto.md) | | Mint an NFT with a limited supply |
| [mintToSelf(metadataWithSupply)](./sdk.edition.minttoself.md) | | Mint NFT for the connected wallet |

6 changes: 3 additions & 3 deletions docs/sdk.edition.mint.md → docs/sdk.edition.minttoself.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@thirdweb-dev/sdk](./sdk.md) &gt; [Edition](./sdk.edition.md) &gt; [mint](./sdk.edition.mint.md)
[Home](./index.md) &gt; [@thirdweb-dev/sdk](./sdk.md) &gt; [Edition](./sdk.edition.md) &gt; [mintToSelf](./sdk.edition.minttoself.md)

## Edition.mint() method
## Edition.mintToSelf() method

Mint NFT for the connected wallet

<b>Signature:</b>

```typescript
mint(metadataWithSupply: EditionMetadataOrUri): Promise<TransactionResultWithId<EditionMetadata>>;
mintToSelf(metadataWithSupply: EditionMetadataOrUri): Promise<TransactionResultWithId<EditionMetadata>>;
```

## Parameters
Expand Down
1 change: 1 addition & 0 deletions docs/sdk.erc1155.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export declare class Erc1155<T extends DropERC1155 | TokenERC1155 | BaseERC1155>
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [contractWrapper](./sdk.erc1155.contractwrapper.md) | | ContractWrapper&lt;T&gt; | |
| [mint](./sdk.erc1155.mint.md) | | Erc1155Mintable \| undefined | |
| [options](./sdk.erc1155.options.md) | | [SDKOptions](./sdk.sdkoptions.md) | |
| [query](./sdk.erc1155.query.md) | | [Erc1155Enumerable](./sdk.erc1155enumerable.md) \| undefined | |
| [storage](./sdk.erc1155.storage.md) | | [IStorage](./sdk.istorage.md) | |
Expand Down
11 changes: 11 additions & 0 deletions docs/sdk.erc1155.mint.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@thirdweb-dev/sdk](./sdk.md) &gt; [Erc1155](./sdk.erc1155.md) &gt; [mint](./sdk.erc1155.mint.md)

## Erc1155.mint property

<b>Signature:</b>

```typescript
mint: Erc1155Mintable | undefined;
```
4 changes: 2 additions & 2 deletions docs/sdk.erc20.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Standard ERC20 functions
<b>Signature:</b>

```typescript
export declare class Erc20<T extends TokenERC20 | DropERC20 | (ERC20 & ERC20Metadata)> implements UpdateableNetwork
export declare class Erc20<T extends TokenERC20 | DropERC20 | BaseERC20> implements UpdateableNetwork
```
<b>Implements:</b> UpdateableNetwork

Expand All @@ -24,6 +24,7 @@ export declare class Erc20<T extends TokenERC20 | DropERC20 | (ERC20 & ERC20Meta
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [contractWrapper](./sdk.erc20.contractwrapper.md) | | ContractWrapper&lt;T&gt; | |
| [mint](./sdk.erc20.mint.md) | | Erc20Mintable \| undefined | Mint tokens |
| [options](./sdk.erc20.options.md) | | [SDKOptions](./sdk.sdkoptions.md) | |
| [storage](./sdk.erc20.storage.md) | | [IStorage](./sdk.istorage.md) | |

Expand All @@ -37,7 +38,6 @@ export declare class Erc20<T extends TokenERC20 | DropERC20 | (ERC20 & ERC20Meta
| [balanceOf(address)](./sdk.erc20.balanceof.md) | | Get Token Balance |
| [get()](./sdk.erc20.get.md) | | Get the token Metadata (name, symbol, etc...) |
| [getAddress()](./sdk.erc20.getaddress.md) | | |
| [normalizeAmount(amount)](./sdk.erc20.normalizeamount.md) | | |
| [setAllowance(spender, amount)](./sdk.erc20.setallowance.md) | | Allows the specified <code>spender</code> wallet to transfer the given <code>amount</code> of tokens to another wallet |
| [totalSupply()](./sdk.erc20.totalsupply.md) | | The total supply for this Token |
| [transfer(to, amount)](./sdk.erc20.transfer.md) | | Transfer Tokens |
Expand Down
13 changes: 13 additions & 0 deletions docs/sdk.erc20.mint.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@thirdweb-dev/sdk](./sdk.md) &gt; [Erc20](./sdk.erc20.md) &gt; [mint](./sdk.erc20.mint.md)

## Erc20.mint property

Mint tokens

<b>Signature:</b>

```typescript
mint: Erc20Mintable | undefined;
```
22 changes: 0 additions & 22 deletions docs/sdk.erc20.normalizeamount.md

This file was deleted.

4 changes: 2 additions & 2 deletions docs/sdk.erc721batchmintable._constructor_.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ Constructs a new instance of the `Erc721BatchMintable` class
<b>Signature:</b>

```typescript
constructor(erc721: Erc721<ERC721Metadata & ERC721>, contractWrapper: ContractWrapper<IMintableERC721 & Multicall>, storage: IStorage);
constructor(erc721: Erc721<BaseERC721>, contractWrapper: ContractWrapper<IMintableERC721 & Multicall>, storage: IStorage);
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| erc721 | [Erc721](./sdk.erc721.md)<!-- -->&lt;ERC721Metadata &amp; ERC721&gt; | |
| erc721 | [Erc721](./sdk.erc721.md)<!-- -->&lt;BaseERC721&gt; | |
| contractWrapper | ContractWrapper&lt;IMintableERC721 &amp; Multicall&gt; | |
| storage | [IStorage](./sdk.istorage.md) | |

4 changes: 2 additions & 2 deletions docs/sdk.erc721mintable._constructor_.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ Constructs a new instance of the `Erc721Mintable` class
<b>Signature:</b>

```typescript
constructor(erc721: Erc721<ERC721Metadata & ERC721>, contractWrapper: ContractWrapper<IMintableERC721>, storage: IStorage);
constructor(erc721: Erc721<BaseERC721>, contractWrapper: ContractWrapper<IMintableERC721>, storage: IStorage);
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| erc721 | [Erc721](./sdk.erc721.md)<!-- -->&lt;ERC721Metadata &amp; ERC721&gt; | |
| erc721 | [Erc721](./sdk.erc721.md)<!-- -->&lt;BaseERC721&gt; | |
| contractWrapper | ContractWrapper&lt;IMintableERC721&gt; | |
| storage | [IStorage](./sdk.istorage.md) | |

4 changes: 2 additions & 2 deletions docs/sdk.thirdwebsdk.getcontractlist.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Return all the contracts deployed by the specified address
```typescript
getContractList(walletAddress: string): Promise<{
address: string;
contractType: "custom" | "token" | "pack" | "split" | "edition-drop" | "edition" | "token-drop" | "vote" | "marketplace" | "nft-drop" | "nft-collection";
contractType: "custom" | "token" | "pack" | "split" | "edition" | "edition-drop" | "token-drop" | "vote" | "marketplace" | "nft-drop" | "nft-collection";
metadata: () => Promise<any>;
}[]>;
```
Expand All @@ -24,5 +24,5 @@ getContractList(walletAddress: string): Promise<{

<b>Returns:</b>

Promise&lt;{ address: string; contractType: "custom" \| "token" \| "pack" \| "split" \| "edition-drop" \| "edition" \| "token-drop" \| "vote" \| "marketplace" \| "nft-drop" \| "nft-collection"; metadata: () =&gt; Promise&lt;any&gt;; }\[\]&gt;
Promise&lt;{ address: string; contractType: "custom" \| "token" \| "pack" \| "split" \| "edition" \| "edition-drop" \| "token-drop" \| "vote" \| "marketplace" \| "nft-drop" \| "nft-collection"; metadata: () =&gt; Promise&lt;any&gt;; }\[\]&gt;

2 changes: 1 addition & 1 deletion docs/sdk.token.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const contract = sdk.getToken("{{contract_address}}");
| [getVoteBalance()](./sdk.token.getvotebalance.md) | | Get your wallet voting power for the current checkpoints |
| [getVoteBalanceOf(account)](./sdk.token.getvotebalanceof.md) | | |
| [isTransferRestricted()](./sdk.token.istransferrestricted.md) | | Get whether users can transfer tokens from this contract |
| [mint(amount)](./sdk.token.mint.md) | | Mint Tokens for the connected wallet |
| [mintBatchTo(args)](./sdk.token.mintbatchto.md) | | Mint Tokens To Many Wallets |
| [mintTo(to, amount)](./sdk.token.mintto.md) | | Mint Tokens |
| [mintToSelf(amount)](./sdk.token.minttoself.md) | | Mint Tokens for the connected wallet |

6 changes: 3 additions & 3 deletions docs/sdk.token.mint.md → docs/sdk.token.minttoself.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@thirdweb-dev/sdk](./sdk.md) &gt; [Token](./sdk.token.md) &gt; [mint](./sdk.token.mint.md)
[Home](./index.md) &gt; [@thirdweb-dev/sdk](./sdk.md) &gt; [Token](./sdk.token.md) &gt; [mintToSelf](./sdk.token.minttoself.md)

## Token.mint() method
## Token.mintToSelf() method

Mint Tokens for the connected wallet

<b>Signature:</b>

```typescript
mint(amount: Amount): Promise<TransactionResult>;
mintToSelf(amount: Amount): Promise<TransactionResult>;
```

## Parameters
Expand Down
Loading