diff --git a/docs/feature_snippets.json b/docs/feature_snippets.json
index f1f44de7c..6295cc859 100644
--- a/docs/feature_snippets.json
+++ b/docs/feature_snippets.json
@@ -167,7 +167,7 @@
"summary": "Airdrop multiple NFTs\n\n",
"remarks": "\n\nAirdrop one or multiple NFTs to the provided wallet addresses.\n\n",
"examples": {
- "javascript": "// The token ID of the NFT you want to airdrop\nconst tokenId = \"0\";\n// Array of objects of addresses and quantities to airdrop NFTs to\nconst addresses = [\n {\n address: \"0x...\",\n quantity: 2,\n },\n {\n address: \"0x...\",\n quantity: 3,\n },\n];\nawait contract.airdrop(tokenId, addresses);\n\n// You can also pass an array of addresses, it will airdrop 1 NFT per address\nconst tokenId = \"0\";\nconst addresses = [\n \"0x...\", \"0x...\", \"0x...\",\n]\nawait contract.airdrop(tokenId, addresses);"
+ "javascript": "// The token ID of the NFT you want to airdrop\nconst tokenId = \"0\";\n// Array of objects of addresses and quantities to airdrop NFTs to\nconst addresses = [\n {\n address: \"0x...\",\n quantity: 2,\n },\n {\n address: \"0x...\",\n quantity: 3,\n },\n];\nawait contract.airdrop(tokenId, addresses);\n\n// You can also pass an array of addresses, it will airdrop 1 NFT per address\nconst tokenId = \"0\";\nconst addresses = [\n \"0x...\", \"0x...\", \"0x...\",\n]\n\nawait contract.airdrop(tokenId, addresses);"
},
"reference": {
"javascript": "https://docs.thirdweb.com/typescript/sdk.Erc1155.airdrop"
diff --git a/docs/sdk.chainandaddress.md b/docs/sdk.chainandaddress.md
new file mode 100644
index 000000000..dfae84f56
--- /dev/null
+++ b/docs/sdk.chainandaddress.md
@@ -0,0 +1,14 @@
+
+
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [ChainAndAddress](./sdk.chainandaddress.md)
+
+## ChainAndAddress type
+
+Signature:
+
+```typescript
+export declare type ChainAndAddress = {
+ chainId: ChainIdOrName;
+ address: string;
+};
+```
diff --git a/docs/sdk.chainmismatcherror._constructor_.md b/docs/sdk.chainmismatcherror._constructor_.md
new file mode 100644
index 000000000..7bb2e3cc8
--- /dev/null
+++ b/docs/sdk.chainmismatcherror._constructor_.md
@@ -0,0 +1,21 @@
+
+
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [ChainMismatchError](./sdk.chainmismatcherror.md) > [(constructor)](./sdk.chainmismatcherror._constructor_.md)
+
+## ChainMismatchError.(constructor)
+
+Constructs a new instance of the `ChainMismatchError` class
+
+Signature:
+
+```typescript
+constructor(expectedChainId: ChainIdOrName, actualChainId: number);
+```
+
+## Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| expectedChainId | ChainIdOrName | |
+| actualChainId | number | |
+
diff --git a/docs/sdk.chainmismatcherror.md b/docs/sdk.chainmismatcherror.md
new file mode 100644
index 000000000..7af7a69a8
--- /dev/null
+++ b/docs/sdk.chainmismatcherror.md
@@ -0,0 +1,21 @@
+
+
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [ChainMismatchError](./sdk.chainmismatcherror.md)
+
+## ChainMismatchError class
+
+Thrown when trying to do a transaction on a non-expected chain
+
+Signature:
+
+```typescript
+export declare class ChainMismatchError extends Error
+```
+Extends: Error
+
+## Constructors
+
+| Constructor | Modifiers | Description |
+| --- | --- | --- |
+| [(constructor)(expectedChainId, actualChainId)](./sdk.chainmismatcherror._constructor_.md) | | Constructs a new instance of the ChainMismatchError
class |
+
diff --git a/docs/sdk.connectioninfo.md b/docs/sdk.connectioninfo.md
new file mode 100644
index 000000000..4bf1687eb
--- /dev/null
+++ b/docs/sdk.connectioninfo.md
@@ -0,0 +1,15 @@
+
+
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [ConnectionInfo](./sdk.connectioninfo.md)
+
+## ConnectionInfo type
+
+Signature:
+
+```typescript
+export declare type ConnectionInfo = {
+ chainId: number;
+ signer: Signer | undefined;
+ provider?: providers.Provider;
+};
+```
diff --git a/docs/sdk.contractdeployer._constructor_.md b/docs/sdk.contractdeployer._constructor_.md
index 16847269c..f2ef5dfac 100644
--- a/docs/sdk.contractdeployer._constructor_.md
+++ b/docs/sdk.contractdeployer._constructor_.md
@@ -9,14 +9,14 @@ Constructs a new instance of the `ContractDeployer` class
Signature:
```typescript
-constructor(network: NetworkOrSignerOrProvider, options: SDKOptions, storage: IStorage);
+constructor(connection: ConnectionInfo, options: SDKOptions, storage: IStorage);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
+| connection | [ConnectionInfo](./sdk.connectioninfo.md) | |
| options | [SDKOptions](./sdk.sdkoptions.md) | |
| storage | [IStorage](./sdk.istorage.md) | |
diff --git a/docs/sdk.contractdeployer.deployedition.md b/docs/sdk.contractdeployer.deployedition.md
index 3fcb93322..503582479 100644
--- a/docs/sdk.contractdeployer.deployedition.md
+++ b/docs/sdk.contractdeployer.deployedition.md
@@ -9,7 +9,7 @@ Deploys a new Edition contract
Signature:
```typescript
-deployEdition(metadata: NFTContractDeployMetadata): Promise;
+deployEdition(metadata: NFTContractDeployMetadata, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -17,6 +17,7 @@ deployEdition(metadata: NFTContractDeployMetadata): Promise;
| Parameter | Type | Description |
| --- | --- | --- |
| metadata | [NFTContractDeployMetadata](./sdk.nftcontractdeploymetadata.md) | the contract metadata |
+| chain | ChainIdOrName | (Optional) the chain to deploy the contract to, defaults to the chain the SDK is connected to |
Returns:
diff --git a/docs/sdk.contractdeployer.deployeditiondrop.md b/docs/sdk.contractdeployer.deployeditiondrop.md
index 2bd08c2ad..a44a1b54f 100644
--- a/docs/sdk.contractdeployer.deployeditiondrop.md
+++ b/docs/sdk.contractdeployer.deployeditiondrop.md
@@ -9,7 +9,7 @@ Deploys a new EditionDrop contract
Signature:
```typescript
-deployEditionDrop(metadata: NFTContractDeployMetadata): Promise;
+deployEditionDrop(metadata: NFTContractDeployMetadata, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -17,6 +17,7 @@ deployEditionDrop(metadata: NFTContractDeployMetadata): Promise;
| Parameter | Type | Description |
| --- | --- | --- |
| metadata | [NFTContractDeployMetadata](./sdk.nftcontractdeploymetadata.md) | the contract metadata |
+| chain | ChainIdOrName | (Optional) the chain to deploy the contract to, defaults to the chain the SDK is connected to |
Returns:
diff --git a/docs/sdk.contractdeployer.deploymarketplace.md b/docs/sdk.contractdeployer.deploymarketplace.md
index 259b46675..ff1668e85 100644
--- a/docs/sdk.contractdeployer.deploymarketplace.md
+++ b/docs/sdk.contractdeployer.deploymarketplace.md
@@ -9,7 +9,7 @@ Deploys a new Marketplace contract
Signature:
```typescript
-deployMarketplace(metadata: MarketplaceContractDeployMetadata): Promise;
+deployMarketplace(metadata: MarketplaceContractDeployMetadata, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -17,6 +17,7 @@ deployMarketplace(metadata: MarketplaceContractDeployMetadata): Promise;
| Parameter | Type | Description |
| --- | --- | --- |
| metadata | [MarketplaceContractDeployMetadata](./sdk.marketplacecontractdeploymetadata.md) | the contract metadata |
+| chain | ChainIdOrName | (Optional) the chain to deploy the contract to, defaults to the chain the SDK is connected to |
Returns:
diff --git a/docs/sdk.contractdeployer.deploymultiwrap.md b/docs/sdk.contractdeployer.deploymultiwrap.md
index 9e9a9d4bb..524fa1eea 100644
--- a/docs/sdk.contractdeployer.deploymultiwrap.md
+++ b/docs/sdk.contractdeployer.deploymultiwrap.md
@@ -12,7 +12,7 @@ Deploys a new Multiwrap contract
Signature:
```typescript
-deployMultiwrap(metadata: MultiwrapContractDeployMetadata): Promise;
+deployMultiwrap(metadata: MultiwrapContractDeployMetadata, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -20,6 +20,7 @@ deployMultiwrap(metadata: MultiwrapContractDeployMetadata): Promise;
| Parameter | Type | Description |
| --- | --- | --- |
| metadata | [MultiwrapContractDeployMetadata](./sdk.multiwrapcontractdeploymetadata.md) | the contract metadata |
+| chain | ChainIdOrName | (Optional) the chain to deploy the contract to, defaults to the chain the SDK is connected to |
Returns:
diff --git a/docs/sdk.contractdeployer.deploynftcollection.md b/docs/sdk.contractdeployer.deploynftcollection.md
index b26f215c1..9055ae7a6 100644
--- a/docs/sdk.contractdeployer.deploynftcollection.md
+++ b/docs/sdk.contractdeployer.deploynftcollection.md
@@ -9,7 +9,7 @@ Deploys an NFT Collection contract
Signature:
```typescript
-deployNFTCollection(metadata: NFTContractDeployMetadata): Promise;
+deployNFTCollection(metadata: NFTContractDeployMetadata, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -17,6 +17,7 @@ deployNFTCollection(metadata: NFTContractDeployMetadata): Promise;
| Parameter | Type | Description |
| --- | --- | --- |
| metadata | [NFTContractDeployMetadata](./sdk.nftcontractdeploymetadata.md) | the contract metadata |
+| chain | ChainIdOrName | (Optional) the chain to deploy the contract to, defaults to the chain the SDK is connected to |
Returns:
diff --git a/docs/sdk.contractdeployer.deploynftdrop.md b/docs/sdk.contractdeployer.deploynftdrop.md
index 264bf3230..b2f86b98f 100644
--- a/docs/sdk.contractdeployer.deploynftdrop.md
+++ b/docs/sdk.contractdeployer.deploynftdrop.md
@@ -9,7 +9,7 @@ Deploys a new NFTDrop contract
Signature:
```typescript
-deployNFTDrop(metadata: NFTContractDeployMetadata): Promise;
+deployNFTDrop(metadata: NFTContractDeployMetadata, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -17,6 +17,7 @@ deployNFTDrop(metadata: NFTContractDeployMetadata): Promise;
| Parameter | Type | Description |
| --- | --- | --- |
| metadata | [NFTContractDeployMetadata](./sdk.nftcontractdeploymetadata.md) | the contract metadata |
+| chain | ChainIdOrName | (Optional) the chain to deploy the contract to, defaults to the chain the SDK is connected to |
Returns:
diff --git a/docs/sdk.contractdeployer.deploypack.md b/docs/sdk.contractdeployer.deploypack.md
index 1c2d34634..bc93ff486 100644
--- a/docs/sdk.contractdeployer.deploypack.md
+++ b/docs/sdk.contractdeployer.deploypack.md
@@ -9,7 +9,7 @@ Deploys a new Pack contract
Signature:
```typescript
-deployPack(metadata: NFTContractDeployMetadata): Promise;
+deployPack(metadata: NFTContractDeployMetadata, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -17,6 +17,7 @@ deployPack(metadata: NFTContractDeployMetadata): Promise;
| Parameter | Type | Description |
| --- | --- | --- |
| metadata | [NFTContractDeployMetadata](./sdk.nftcontractdeploymetadata.md) | the contract metadata |
+| chain | ChainIdOrName | (Optional) the chain to deploy the contract to, defaults to the chain the SDK is connected to |
Returns:
diff --git a/docs/sdk.contractdeployer.deploysplit.md b/docs/sdk.contractdeployer.deploysplit.md
index 7ccccfdeb..c2595941b 100644
--- a/docs/sdk.contractdeployer.deploysplit.md
+++ b/docs/sdk.contractdeployer.deploysplit.md
@@ -9,7 +9,7 @@ Deploys a new Split contract
Signature:
```typescript
-deploySplit(metadata: SplitContractDeployMetadata): Promise;
+deploySplit(metadata: SplitContractDeployMetadata, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -17,6 +17,7 @@ deploySplit(metadata: SplitContractDeployMetadata): Promise;
| Parameter | Type | Description |
| --- | --- | --- |
| metadata | [SplitContractDeployMetadata](./sdk.splitcontractdeploymetadata.md) | the contract metadata |
+| chain | ChainIdOrName | (Optional) the chain to deploy the contract to, defaults to the chain the SDK is connected to |
Returns:
diff --git a/docs/sdk.contractdeployer.deploytoken.md b/docs/sdk.contractdeployer.deploytoken.md
index a79d18c66..af09c52ca 100644
--- a/docs/sdk.contractdeployer.deploytoken.md
+++ b/docs/sdk.contractdeployer.deploytoken.md
@@ -9,7 +9,7 @@ Deploys a new Token contract
Signature:
```typescript
-deployToken(metadata: TokenContractDeployMetadata): Promise;
+deployToken(metadata: TokenContractDeployMetadata, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -17,6 +17,7 @@ deployToken(metadata: TokenContractDeployMetadata): Promise;
| Parameter | Type | Description |
| --- | --- | --- |
| metadata | [TokenContractDeployMetadata](./sdk.tokencontractdeploymetadata.md) | the contract metadata |
+| chain | ChainIdOrName | (Optional) the chain to deploy the contract to, defaults to the chain the SDK is connected to |
Returns:
diff --git a/docs/sdk.contractdeployer.deploytokendrop.md b/docs/sdk.contractdeployer.deploytokendrop.md
index 24b0763f8..69fd16129 100644
--- a/docs/sdk.contractdeployer.deploytokendrop.md
+++ b/docs/sdk.contractdeployer.deploytokendrop.md
@@ -9,7 +9,7 @@ Deploys a new Token Drop contract
Signature:
```typescript
-deployTokenDrop(metadata: TokenContractDeployMetadata): Promise;
+deployTokenDrop(metadata: TokenContractDeployMetadata, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -17,6 +17,7 @@ deployTokenDrop(metadata: TokenContractDeployMetadata): Promise;
| Parameter | Type | Description |
| --- | --- | --- |
| metadata | [TokenContractDeployMetadata](./sdk.tokencontractdeploymetadata.md) | the contract metadata |
+| chain | ChainIdOrName | (Optional) the chain to deploy the contract to, defaults to the chain the SDK is connected to |
Returns:
diff --git a/docs/sdk.contractdeployer.deployvote.md b/docs/sdk.contractdeployer.deployvote.md
index def07770c..fdeff1ff1 100644
--- a/docs/sdk.contractdeployer.deployvote.md
+++ b/docs/sdk.contractdeployer.deployvote.md
@@ -9,7 +9,7 @@ Deploys a new Vote contract
Signature:
```typescript
-deployVote(metadata: VoteContractDeployMetadata): Promise;
+deployVote(metadata: VoteContractDeployMetadata, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -17,6 +17,7 @@ deployVote(metadata: VoteContractDeployMetadata): Promise;
| Parameter | Type | Description |
| --- | --- | --- |
| metadata | [VoteContractDeployMetadata](./sdk.votecontractdeploymetadata.md) | the contract metadata |
+| chain | ChainIdOrName | (Optional) the chain to deploy the contract to, defaults to the chain the SDK is connected to |
Returns:
diff --git a/docs/sdk.contractdeployer.md b/docs/sdk.contractdeployer.md
index 1bc017d75..fc6eafe3d 100644
--- a/docs/sdk.contractdeployer.md
+++ b/docs/sdk.contractdeployer.md
@@ -17,22 +17,22 @@ export declare class ContractDeployer extends RPCConnectionHandler
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(network, options, storage)](./sdk.contractdeployer._constructor_.md) | | Constructs a new instance of the ContractDeployer
class |
+| [(constructor)(connection, options, storage)](./sdk.contractdeployer._constructor_.md) | | Constructs a new instance of the ContractDeployer
class |
## Methods
| Method | Modifiers | Description |
| --- | --- | --- |
-| [deployEdition(metadata)](./sdk.contractdeployer.deployedition.md) | | Deploys a new Edition contract |
-| [deployEditionDrop(metadata)](./sdk.contractdeployer.deployeditiondrop.md) | | Deploys a new EditionDrop contract |
-| [deployMarketplace(metadata)](./sdk.contractdeployer.deploymarketplace.md) | | Deploys a new Marketplace contract |
-| [deployMultiwrap(metadata)](./sdk.contractdeployer.deploymultiwrap.md) | | (BETA) Deploys a new Multiwrap contract |
-| [deployNFTCollection(metadata)](./sdk.contractdeployer.deploynftcollection.md) | | Deploys an NFT Collection contract |
-| [deployNFTDrop(metadata)](./sdk.contractdeployer.deploynftdrop.md) | | Deploys a new NFTDrop contract |
-| [deployPack(metadata)](./sdk.contractdeployer.deploypack.md) | | Deploys a new Pack contract |
-| [deploySplit(metadata)](./sdk.contractdeployer.deploysplit.md) | | Deploys a new Split contract |
-| [deployToken(metadata)](./sdk.contractdeployer.deploytoken.md) | | Deploys a new Token contract |
-| [deployTokenDrop(metadata)](./sdk.contractdeployer.deploytokendrop.md) | | Deploys a new Token Drop contract |
-| [deployVote(metadata)](./sdk.contractdeployer.deployvote.md) | | Deploys a new Vote contract |
-| [updateSignerOrProvider(network)](./sdk.contractdeployer.updatesignerorprovider.md) | | |
+| [deployEdition(metadata, chain)](./sdk.contractdeployer.deployedition.md) | | Deploys a new Edition contract |
+| [deployEditionDrop(metadata, chain)](./sdk.contractdeployer.deployeditiondrop.md) | | Deploys a new EditionDrop contract |
+| [deployMarketplace(metadata, chain)](./sdk.contractdeployer.deploymarketplace.md) | | Deploys a new Marketplace contract |
+| [deployMultiwrap(metadata, chain)](./sdk.contractdeployer.deploymultiwrap.md) | | (BETA) Deploys a new Multiwrap contract |
+| [deployNFTCollection(metadata, chain)](./sdk.contractdeployer.deploynftcollection.md) | | Deploys an NFT Collection contract |
+| [deployNFTDrop(metadata, chain)](./sdk.contractdeployer.deploynftdrop.md) | | Deploys a new NFTDrop contract |
+| [deployPack(metadata, chain)](./sdk.contractdeployer.deploypack.md) | | Deploys a new Pack contract |
+| [deploySplit(metadata, chain)](./sdk.contractdeployer.deploysplit.md) | | Deploys a new Split contract |
+| [deployToken(metadata, chain)](./sdk.contractdeployer.deploytoken.md) | | Deploys a new Token contract |
+| [deployTokenDrop(metadata, chain)](./sdk.contractdeployer.deploytokendrop.md) | | Deploys a new Token Drop contract |
+| [deployVote(metadata, chain)](./sdk.contractdeployer.deployvote.md) | | Deploys a new Vote contract |
+| [updateSigner(signer)](./sdk.contractdeployer.updatesigner.md) | | |
diff --git a/docs/sdk.contractdeployer.updatesigner.md b/docs/sdk.contractdeployer.updatesigner.md
new file mode 100644
index 000000000..face5c08a
--- /dev/null
+++ b/docs/sdk.contractdeployer.updatesigner.md
@@ -0,0 +1,22 @@
+
+
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [ContractDeployer](./sdk.contractdeployer.md) > [updateSigner](./sdk.contractdeployer.updatesigner.md)
+
+## ContractDeployer.updateSigner() method
+
+Signature:
+
+```typescript
+updateSigner(signer: Signer | undefined): void;
+```
+
+## Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| signer | Signer \| undefined | |
+
+Returns:
+
+void
+
diff --git a/docs/sdk.contractdeployer.updatesignerorprovider.md b/docs/sdk.contractdeployer.updatesignerorprovider.md
deleted file mode 100644
index c3ba79cba..000000000
--- a/docs/sdk.contractdeployer.updatesignerorprovider.md
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [ContractDeployer](./sdk.contractdeployer.md) > [updateSignerOrProvider](./sdk.contractdeployer.updatesignerorprovider.md)
-
-## ContractDeployer.updateSignerOrProvider() method
-
-Signature:
-
-```typescript
-updateSignerOrProvider(network: NetworkOrSignerOrProvider): void;
-```
-
-## Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
-
-Returns:
-
-void
-
diff --git a/docs/sdk.edition._constructor_.md b/docs/sdk.edition._constructor_.md
index fa7fc89a7..a07466668 100644
--- a/docs/sdk.edition._constructor_.md
+++ b/docs/sdk.edition._constructor_.md
@@ -9,14 +9,14 @@ Constructs a new instance of the `Edition` class
Signature:
```typescript
-constructor(network: NetworkOrSignerOrProvider, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
+constructor(connection: ConnectionInfo, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
+| connection | [ConnectionInfo](./sdk.connectioninfo.md) | |
| address | string | |
| storage | [IStorage](./sdk.istorage.md) | |
| options | [SDKOptions](./sdk.sdkoptions.md) | (Optional) |
diff --git a/docs/sdk.edition.md b/docs/sdk.edition.md
index 6557a552b..0766bff5c 100644
--- a/docs/sdk.edition.md
+++ b/docs/sdk.edition.md
@@ -27,7 +27,7 @@ const contract = sdk.getEdition("{{contract_address}}");
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(network, address, storage, options, contractWrapper)](./sdk.edition._constructor_.md) | | Constructs a new instance of the Edition
class |
+| [(constructor)(connection, address, storage, options, contractWrapper)](./sdk.edition._constructor_.md) | | Constructs a new instance of the Edition
class |
## Properties
diff --git a/docs/sdk.editiondrop._constructor_.md b/docs/sdk.editiondrop._constructor_.md
index 555d0b988..ce7a46b55 100644
--- a/docs/sdk.editiondrop._constructor_.md
+++ b/docs/sdk.editiondrop._constructor_.md
@@ -9,14 +9,14 @@ Constructs a new instance of the `EditionDrop` class
Signature:
```typescript
-constructor(network: NetworkOrSignerOrProvider, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
+constructor(connection: ConnectionInfo, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
+| connection | [ConnectionInfo](./sdk.connectioninfo.md) | |
| address | string | |
| storage | [IStorage](./sdk.istorage.md) | |
| options | [SDKOptions](./sdk.sdkoptions.md) | (Optional) |
diff --git a/docs/sdk.editiondrop.md b/docs/sdk.editiondrop.md
index 75be1a52c..933d40dfa 100644
--- a/docs/sdk.editiondrop.md
+++ b/docs/sdk.editiondrop.md
@@ -27,7 +27,7 @@ const contract = sdk.getEditionDrop("{{contract_address}}");
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(network, address, storage, options, contractWrapper)](./sdk.editiondrop._constructor_.md) | | Constructs a new instance of the EditionDrop
class |
+| [(constructor)(connection, address, storage, options, contractWrapper)](./sdk.editiondrop._constructor_.md) | | Constructs a new instance of the EditionDrop
class |
## Properties
diff --git a/docs/sdk.erc1155._constructor_.md b/docs/sdk.erc1155._constructor_.md
index 7a4f1a4cf..7ce5057b1 100644
--- a/docs/sdk.erc1155._constructor_.md
+++ b/docs/sdk.erc1155._constructor_.md
@@ -9,7 +9,7 @@ Constructs a new instance of the `Erc1155` class
Signature:
```typescript
-constructor(contractWrapper: ContractWrapper, storage: IStorage, options?: SDKOptions);
+constructor(contractWrapper: ContractWrapper, storage: IStorage);
```
## Parameters
@@ -18,5 +18,4 @@ constructor(contractWrapper: ContractWrapper, storage: IStorage, options?: SD
| --- | --- | --- |
| contractWrapper | ContractWrapper<T> | |
| storage | [IStorage](./sdk.istorage.md) | |
-| options | [SDKOptions](./sdk.sdkoptions.md) | (Optional) |
diff --git a/docs/sdk.erc1155.airdrop.md b/docs/sdk.erc1155.airdrop.md
index 5822645a5..47f1e4127 100644
--- a/docs/sdk.erc1155.airdrop.md
+++ b/docs/sdk.erc1155.airdrop.md
@@ -52,6 +52,7 @@ const tokenId = "0";
const addresses = [
"0x...", "0x...", "0x...",
]
+
await contract.airdrop(tokenId, addresses);
```
diff --git a/docs/sdk.erc1155.options.md b/docs/sdk.erc1155.getchainid.md
similarity index 53%
rename from docs/sdk.erc1155.options.md
rename to docs/sdk.erc1155.getchainid.md
index 26537a87b..688f42c91 100644
--- a/docs/sdk.erc1155.options.md
+++ b/docs/sdk.erc1155.getchainid.md
@@ -1,11 +1,15 @@
-[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [Erc1155](./sdk.erc1155.md) > [options](./sdk.erc1155.options.md)
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [Erc1155](./sdk.erc1155.md) > [getChainId](./sdk.erc1155.getchainid.md)
-## Erc1155.options property
+## Erc1155.getChainId() method
Signature:
```typescript
-protected options: SDKOptions;
+getChainId(): number;
```
+Returns:
+
+number
+
diff --git a/docs/sdk.erc1155.md b/docs/sdk.erc1155.md
index deac1dcac..8cfd2dd32 100644
--- a/docs/sdk.erc1155.md
+++ b/docs/sdk.erc1155.md
@@ -29,7 +29,7 @@ await contract.edition.transfer(walletAddress, tokenId, quantity);
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(contractWrapper, storage, options)](./sdk.erc1155._constructor_.md) | | Constructs a new instance of the Erc1155
class |
+| [(constructor)(contractWrapper, storage)](./sdk.erc1155._constructor_.md) | | Constructs a new instance of the Erc1155
class |
## Properties
@@ -38,7 +38,6 @@ await contract.edition.transfer(walletAddress, tokenId, quantity);
| [contractWrapper](./sdk.erc1155.contractwrapper.md) | | ContractWrapper<T> | |
| [featureName](./sdk.erc1155.featurename.md) | | "ERC1155" | |
| [mint](./sdk.erc1155.mint.md) | | [Erc1155Mintable](./sdk.erc1155mintable.md) \| 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) | |
@@ -51,6 +50,7 @@ await contract.edition.transfer(walletAddress, tokenId, quantity);
| [balanceOf(address, tokenId)](./sdk.erc1155.balanceof.md) | | Get NFT Balance |
| [get(tokenId)](./sdk.erc1155.get.md) | | Get a single NFT Metadata |
| [getAddress()](./sdk.erc1155.getaddress.md) | | |
+| [getChainId()](./sdk.erc1155.getchainid.md) | | |
| [isApproved(address, operator)](./sdk.erc1155.isapproved.md) | | Get whether this wallet has approved transfers from the given operator |
| [totalSupply(tokenId)](./sdk.erc1155.totalsupply.md) | | Returns the total supply of a specific token |
| [transfer(to, tokenId, amount, data)](./sdk.erc1155.transfer.md) | | Transfer a single NFT |
diff --git a/docs/sdk.erc20._constructor_.md b/docs/sdk.erc20._constructor_.md
index 8d43cf473..2bfb497c2 100644
--- a/docs/sdk.erc20._constructor_.md
+++ b/docs/sdk.erc20._constructor_.md
@@ -9,7 +9,7 @@ Constructs a new instance of the `Erc20` class
Signature:
```typescript
-constructor(contractWrapper: ContractWrapper, storage: IStorage, options?: SDKOptions);
+constructor(contractWrapper: ContractWrapper, storage: IStorage);
```
## Parameters
@@ -18,5 +18,4 @@ constructor(contractWrapper: ContractWrapper, storage: IStorage, options?: SD
| --- | --- | --- |
| contractWrapper | ContractWrapper<T> | |
| storage | [IStorage](./sdk.istorage.md) | |
-| options | [SDKOptions](./sdk.sdkoptions.md) | (Optional) |
diff --git a/docs/sdk.erc20.options.md b/docs/sdk.erc20.getaddress.md
similarity index 54%
rename from docs/sdk.erc20.options.md
rename to docs/sdk.erc20.getaddress.md
index 96a53aac9..5c3935beb 100644
--- a/docs/sdk.erc20.options.md
+++ b/docs/sdk.erc20.getaddress.md
@@ -1,11 +1,15 @@
-[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [Erc20](./sdk.erc20.md) > [options](./sdk.erc20.options.md)
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [Erc20](./sdk.erc20.md) > [getAddress](./sdk.erc20.getaddress.md)
-## Erc20.options property
+## Erc20.getAddress() method
Signature:
```typescript
-protected options: SDKOptions;
+getAddress(): string;
```
+Returns:
+
+string
+
diff --git a/docs/sdk.erc20.getchainid.md b/docs/sdk.erc20.getchainid.md
new file mode 100644
index 000000000..ab54eec6f
--- /dev/null
+++ b/docs/sdk.erc20.getchainid.md
@@ -0,0 +1,15 @@
+
+
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [Erc20](./sdk.erc20.md) > [getChainId](./sdk.erc20.getchainid.md)
+
+## Erc20.getChainId() method
+
+Signature:
+
+```typescript
+getChainId(): number;
+```
+Returns:
+
+number
+
diff --git a/docs/sdk.erc20.md b/docs/sdk.erc20.md
index 2d012088a..997cf1a45 100644
--- a/docs/sdk.erc20.md
+++ b/docs/sdk.erc20.md
@@ -29,7 +29,7 @@ await contract.token.transfer(walletAddress, amount);
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(contractWrapper, storage, options)](./sdk.erc20._constructor_.md) | | Constructs a new instance of the Erc20
class |
+| [(constructor)(contractWrapper, storage)](./sdk.erc20._constructor_.md) | | Constructs a new instance of the Erc20
class |
## Properties
@@ -38,7 +38,6 @@ await contract.token.transfer(walletAddress, amount);
| [contractWrapper](./sdk.erc20.contractwrapper.md) | | ContractWrapper<T> | |
| [featureName](./sdk.erc20.featurename.md) | | "ERC20" | |
| [mint](./sdk.erc20.mint.md) | | [Erc20Mintable](./sdk.erc20mintable.md) \| undefined | Mint tokens |
-| [options](./sdk.erc20.options.md) | | [SDKOptions](./sdk.sdkoptions.md) | |
| [storage](./sdk.erc20.storage.md) | | [IStorage](./sdk.istorage.md) | |
## Methods
@@ -50,6 +49,8 @@ await contract.token.transfer(walletAddress, amount);
| [balance()](./sdk.erc20.balance.md) | | Get Token Balance for the currently connected wallet |
| [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) | | |
+| [getChainId()](./sdk.erc20.getchainid.md) | | |
| [setAllowance(spender, amount)](./sdk.erc20.setallowance.md) | | Allows the specified spender
wallet to transfer the given amount
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 |
diff --git a/docs/sdk.erc721._constructor_.md b/docs/sdk.erc721._constructor_.md
index 7e87c2ccc..088fc275d 100644
--- a/docs/sdk.erc721._constructor_.md
+++ b/docs/sdk.erc721._constructor_.md
@@ -9,7 +9,7 @@ Constructs a new instance of the `Erc721` class
Signature:
```typescript
-constructor(contractWrapper: ContractWrapper, storage: IStorage, options?: SDKOptions);
+constructor(contractWrapper: ContractWrapper, storage: IStorage);
```
## Parameters
@@ -18,5 +18,4 @@ constructor(contractWrapper: ContractWrapper, storage: IStorage, options?: SD
| --- | --- | --- |
| contractWrapper | ContractWrapper<T> | |
| storage | [IStorage](./sdk.istorage.md) | |
-| options | [SDKOptions](./sdk.sdkoptions.md) | (Optional) |
diff --git a/docs/sdk.erc721.options.md b/docs/sdk.erc721.getchainid.md
similarity index 53%
rename from docs/sdk.erc721.options.md
rename to docs/sdk.erc721.getchainid.md
index ee5b890df..f6fc488b7 100644
--- a/docs/sdk.erc721.options.md
+++ b/docs/sdk.erc721.getchainid.md
@@ -1,11 +1,15 @@
-[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [Erc721](./sdk.erc721.md) > [options](./sdk.erc721.options.md)
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [Erc721](./sdk.erc721.md) > [getChainId](./sdk.erc721.getchainid.md)
-## Erc721.options property
+## Erc721.getChainId() method
Signature:
```typescript
-protected options: SDKOptions;
+getChainId(): number;
```
+Returns:
+
+number
+
diff --git a/docs/sdk.erc721.md b/docs/sdk.erc721.md
index 1d26ad387..6c00378ee 100644
--- a/docs/sdk.erc721.md
+++ b/docs/sdk.erc721.md
@@ -29,7 +29,7 @@ await contract.nft.transfer(walletAddress, tokenId);
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(contractWrapper, storage, options)](./sdk.erc721._constructor_.md) | | Constructs a new instance of the Erc721
class |
+| [(constructor)(contractWrapper, storage)](./sdk.erc721._constructor_.md) | | Constructs a new instance of the Erc721
class |
## Properties
@@ -39,7 +39,6 @@ await contract.nft.transfer(walletAddress, tokenId);
| [drop](./sdk.erc721.drop.md) | | [Erc721Dropable](./sdk.erc721dropable.md) \| undefined | |
| [featureName](./sdk.erc721.featurename.md) | | "ERC721" | |
| [mint](./sdk.erc721.mint.md) | | [Erc721Mintable](./sdk.erc721mintable.md) \| undefined | |
-| [options](./sdk.erc721.options.md) | | [SDKOptions](./sdk.sdkoptions.md) | |
| [query](./sdk.erc721.query.md) | | [Erc721Supply](./sdk.erc721supply.md) \| undefined | |
| [storage](./sdk.erc721.storage.md) | | [IStorage](./sdk.istorage.md) | |
@@ -51,6 +50,7 @@ await contract.nft.transfer(walletAddress, tokenId);
| [balanceOf(address)](./sdk.erc721.balanceof.md) | | Get NFT Balance |
| [get(tokenId)](./sdk.erc721.get.md) | | Get a single NFT Metadata |
| [getAddress()](./sdk.erc721.getaddress.md) | | |
+| [getChainId()](./sdk.erc721.getchainid.md) | | |
| [isApproved(address, operator)](./sdk.erc721.isapproved.md) | | Get whether this wallet has approved transfers from the given operator |
| [ownerOf(tokenId)](./sdk.erc721.ownerof.md) | | Get the current owner of a given NFT within this Contract |
| [transfer(to, tokenId)](./sdk.erc721.transfer.md) | | Transfer a single NFT |
diff --git a/docs/sdk.getreadonlyprovider.md b/docs/sdk.getreadonlyprovider.md
index 34f8e6a2d..ea6f3c967 100644
--- a/docs/sdk.getreadonlyprovider.md
+++ b/docs/sdk.getreadonlyprovider.md
@@ -7,7 +7,7 @@
Signature:
```typescript
-export declare function getReadOnlyProvider(network: string, chainId?: number): ethers.providers.BaseProvider;
+export declare function getReadOnlyProvider(network: string, chainId: number): ethers.providers.BaseProvider;
```
## Parameters
@@ -15,7 +15,7 @@ export declare function getReadOnlyProvider(network: string, chainId?: number):
| Parameter | Type | Description |
| --- | --- | --- |
| network | string | the chain name or rpc url |
-| chainId | number | (Optional) the optional chain id |
+| chainId | number | the optional chain id |
Returns:
diff --git a/docs/sdk.marketplace._constructor_.md b/docs/sdk.marketplace._constructor_.md
index 850aa76a3..9005cc01c 100644
--- a/docs/sdk.marketplace._constructor_.md
+++ b/docs/sdk.marketplace._constructor_.md
@@ -9,14 +9,14 @@ Constructs a new instance of the `Marketplace` class
Signature:
```typescript
-constructor(network: NetworkOrSignerOrProvider, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
+constructor(connection: ConnectionInfo, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
+| connection | [ConnectionInfo](./sdk.connectioninfo.md) | |
| address | string | |
| storage | [IStorage](./sdk.istorage.md) | |
| options | [SDKOptions](./sdk.sdkoptions.md) | (Optional) |
diff --git a/docs/sdk.marketplace.getchainid.md b/docs/sdk.marketplace.getchainid.md
new file mode 100644
index 000000000..038b9a2ac
--- /dev/null
+++ b/docs/sdk.marketplace.getchainid.md
@@ -0,0 +1,15 @@
+
+
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [Marketplace](./sdk.marketplace.md) > [getChainId](./sdk.marketplace.getchainid.md)
+
+## Marketplace.getChainId() method
+
+Signature:
+
+```typescript
+getChainId(): number;
+```
+Returns:
+
+number
+
diff --git a/docs/sdk.marketplace.md b/docs/sdk.marketplace.md
index 884b44f9c..956032958 100644
--- a/docs/sdk.marketplace.md
+++ b/docs/sdk.marketplace.md
@@ -27,7 +27,7 @@ const contract = sdk.getMarketplace("{{contract_address}}");
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(network, address, storage, options, contractWrapper)](./sdk.marketplace._constructor_.md) | | Constructs a new instance of the Marketplace
class |
+| [(constructor)(connection, address, storage, options, contractWrapper)](./sdk.marketplace._constructor_.md) | | Constructs a new instance of the Marketplace
class |
## Properties
@@ -56,11 +56,12 @@ const contract = sdk.getMarketplace("{{contract_address}}");
| [getAddress()](./sdk.marketplace.getaddress.md) | | |
| [getAllListings(filter)](./sdk.marketplace.getalllistings.md) | | Get all the listings |
| [getBidBufferBps()](./sdk.marketplace.getbidbufferbps.md) | | Get the buffer in basis points between offers |
+| [getChainId()](./sdk.marketplace.getchainid.md) | | |
| [getListing(listingId)](./sdk.marketplace.getlisting.md) | | Convenience function to get either a direct or auction listing |
| [getTimeBufferInSeconds()](./sdk.marketplace.gettimebufferinseconds.md) | | get the buffer time in seconds between offers |
| [getTotalCount()](./sdk.marketplace.gettotalcount.md) | | Get the total number of Listings |
| [isRestrictedToListerRoleOnly()](./sdk.marketplace.isrestrictedtolisterroleonly.md) | | Get whether listing is restricted only to addresses with the Lister role |
-| [onNetworkUpdated(network)](./sdk.marketplace.onnetworkupdated.md) | | |
+| [onSignerUpdated(signer)](./sdk.marketplace.onsignerupdated.md) | | |
| [setBidBufferBps(bufferBps)](./sdk.marketplace.setbidbufferbps.md) | | Set the Auction bid buffer |
| [setTimeBufferInSeconds(bufferInSeconds)](./sdk.marketplace.settimebufferinseconds.md) | | Set the Auction Time buffer: |
diff --git a/docs/sdk.marketplace.onnetworkupdated.md b/docs/sdk.marketplace.onnetworkupdated.md
deleted file mode 100644
index fbca7e58f..000000000
--- a/docs/sdk.marketplace.onnetworkupdated.md
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [Marketplace](./sdk.marketplace.md) > [onNetworkUpdated](./sdk.marketplace.onnetworkupdated.md)
-
-## Marketplace.onNetworkUpdated() method
-
-Signature:
-
-```typescript
-onNetworkUpdated(network: NetworkOrSignerOrProvider): void;
-```
-
-## Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
-
-Returns:
-
-void
-
diff --git a/docs/sdk.marketplace.onsignerupdated.md b/docs/sdk.marketplace.onsignerupdated.md
new file mode 100644
index 000000000..243919295
--- /dev/null
+++ b/docs/sdk.marketplace.onsignerupdated.md
@@ -0,0 +1,22 @@
+
+
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [Marketplace](./sdk.marketplace.md) > [onSignerUpdated](./sdk.marketplace.onsignerupdated.md)
+
+## Marketplace.onSignerUpdated() method
+
+Signature:
+
+```typescript
+onSignerUpdated(signer: Signer | undefined): void;
+```
+
+## Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| signer | Signer \| undefined | |
+
+Returns:
+
+void
+
diff --git a/docs/sdk.md b/docs/sdk.md
index ed3b850ec..54ba51106 100644
--- a/docs/sdk.md
+++ b/docs/sdk.md
@@ -8,6 +8,7 @@
| Class | Description |
| --- | --- |
+| [ChainMismatchError](./sdk.chainmismatcherror.md) | Thrown when trying to do a transaction on a non-expected chain |
| [ContractDeployer](./sdk.contractdeployer.md) | Handles deploying new contracts |
| [ContractEncoder](./sdk.contractencoder.md) | Encodes and decodes Contract functions |
| [ContractEvents](./sdk.contractevents.md) | Listen to Contract events in real time |
@@ -106,6 +107,7 @@
| [SplitRecipientInput](./sdk.splitrecipientinput.md) | |
| [TokenContractDeployMetadata](./sdk.tokencontractdeploymetadata.md) | Options for deploying a Token contract |
| [UploadProgressEvent](./sdk.uploadprogressevent.md) | |
+| [UserWalletEvents](./sdk.userwalletevents.md) | [UserWallet](./sdk.userwallet.md) events that you can subscribe to using sdk.wallet.events
. |
| [VoteContractDeployMetadata](./sdk.votecontractdeploymetadata.md) | Options for deploying a Vote contract |
| [VoteSettings](./sdk.votesettings.md) | |
@@ -130,10 +132,12 @@
| [AirdropInput](./sdk.airdropinput.md) | Input model to pass a list of addresses + amount to transfer to each one |
| [Amount](./sdk.amount.md) | Represents a currency amount already formatted. ie. "1" for 1 ether. |
| [BufferOrStringWithName](./sdk.bufferorstringwithname.md) | |
+| [ChainAndAddress](./sdk.chainandaddress.md) | |
| [ClaimCondition](./sdk.claimcondition.md) | Represents a claim condition fetched from the SDK |
| [ClaimConditionInput](./sdk.claimconditioninput.md) | Input model to create a claim condition with optional snapshot of wallets |
| [ClaimConditionsForToken](./sdk.claimconditionsfortoken.md) | |
| [ClaimVerification](./sdk.claimverification.md) | |
+| [ConnectionInfo](./sdk.connectioninfo.md) | |
| [ContractEvent](./sdk.contractevent.md) | Standardized return type for contract events that returns event arguments |
| [ContractForContractType](./sdk.contractforcontracttype.md) | |
| [ContractType](./sdk.contracttype.md) | |
diff --git a/docs/sdk.multiwrap._constructor_.md b/docs/sdk.multiwrap._constructor_.md
index a17677339..f95efce18 100644
--- a/docs/sdk.multiwrap._constructor_.md
+++ b/docs/sdk.multiwrap._constructor_.md
@@ -12,14 +12,14 @@ Constructs a new instance of the `Multiwrap` class
Signature:
```typescript
-constructor(network: NetworkOrSignerOrProvider, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
+constructor(connection: ConnectionInfo, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
+| connection | [ConnectionInfo](./sdk.connectioninfo.md) | |
| address | string | |
| storage | [IStorage](./sdk.istorage.md) | |
| options | [SDKOptions](./sdk.sdkoptions.md) | (Optional) |
diff --git a/docs/sdk.multiwrap.md b/docs/sdk.multiwrap.md
index 9b95c325a..085266364 100644
--- a/docs/sdk.multiwrap.md
+++ b/docs/sdk.multiwrap.md
@@ -30,7 +30,7 @@ const contract = sdk.getMultiwrap("{{contract_address}}");
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(network, address, storage, options, contractWrapper)](./sdk.multiwrap._constructor_.md) | | (BETA) Constructs a new instance of the Multiwrap
class |
+| [(constructor)(connection, address, storage, options, contractWrapper)](./sdk.multiwrap._constructor_.md) | | (BETA) Constructs a new instance of the Multiwrap
class |
## Properties
diff --git a/docs/sdk.nftcollection._constructor_.md b/docs/sdk.nftcollection._constructor_.md
index 9425c38a7..aae702454 100644
--- a/docs/sdk.nftcollection._constructor_.md
+++ b/docs/sdk.nftcollection._constructor_.md
@@ -9,14 +9,14 @@ Constructs a new instance of the `NFTCollection` class
Signature:
```typescript
-constructor(network: NetworkOrSignerOrProvider, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
+constructor(connection: ConnectionInfo, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
+| connection | [ConnectionInfo](./sdk.connectioninfo.md) | |
| address | string | |
| storage | [IStorage](./sdk.istorage.md) | |
| options | [SDKOptions](./sdk.sdkoptions.md) | (Optional) |
diff --git a/docs/sdk.nftcollection.md b/docs/sdk.nftcollection.md
index 6fa85bf54..0cce63fbf 100644
--- a/docs/sdk.nftcollection.md
+++ b/docs/sdk.nftcollection.md
@@ -27,7 +27,7 @@ const contract = sdk.getNFTCollection("{{contract_address}}");
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(network, address, storage, options, contractWrapper)](./sdk.nftcollection._constructor_.md) | | Constructs a new instance of the NFTCollection
class |
+| [(constructor)(connection, address, storage, options, contractWrapper)](./sdk.nftcollection._constructor_.md) | | Constructs a new instance of the NFTCollection
class |
## Properties
diff --git a/docs/sdk.nftdrop._constructor_.md b/docs/sdk.nftdrop._constructor_.md
index de6d994fe..3395eff58 100644
--- a/docs/sdk.nftdrop._constructor_.md
+++ b/docs/sdk.nftdrop._constructor_.md
@@ -9,14 +9,14 @@ Constructs a new instance of the `NFTDrop` class
Signature:
```typescript
-constructor(network: NetworkOrSignerOrProvider, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
+constructor(connection: ConnectionInfo, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
+| connection | [ConnectionInfo](./sdk.connectioninfo.md) | |
| address | string | |
| storage | [IStorage](./sdk.istorage.md) | |
| options | [SDKOptions](./sdk.sdkoptions.md) | (Optional) |
diff --git a/docs/sdk.nftdrop.md b/docs/sdk.nftdrop.md
index f7066d1c7..ca69763a7 100644
--- a/docs/sdk.nftdrop.md
+++ b/docs/sdk.nftdrop.md
@@ -27,7 +27,7 @@ const contract = sdk.getNFTDrop("{{contract_address}}");
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(network, address, storage, options, contractWrapper)](./sdk.nftdrop._constructor_.md) | | Constructs a new instance of the NFTDrop
class |
+| [(constructor)(connection, address, storage, options, contractWrapper)](./sdk.nftdrop._constructor_.md) | | Constructs a new instance of the NFTDrop
class |
## Properties
diff --git a/docs/sdk.pack._constructor_.md b/docs/sdk.pack._constructor_.md
index cc7698545..b09e91819 100644
--- a/docs/sdk.pack._constructor_.md
+++ b/docs/sdk.pack._constructor_.md
@@ -9,14 +9,14 @@ Constructs a new instance of the `Pack` class
Signature:
```typescript
-constructor(network: NetworkOrSignerOrProvider, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
+constructor(connection: ConnectionInfo, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
+| connection | [ConnectionInfo](./sdk.connectioninfo.md) | |
| address | string | |
| storage | [IStorage](./sdk.istorage.md) | |
| options | [SDKOptions](./sdk.sdkoptions.md) | (Optional) |
diff --git a/docs/sdk.pack.create.md b/docs/sdk.pack.create.md
index 3b01784d3..442c86bd8 100644
--- a/docs/sdk.pack.create.md
+++ b/docs/sdk.pack.create.md
@@ -17,8 +17,8 @@ create(metadataWithRewards: PackMetadataInput): Promise>;
@@ -32,7 +32,7 @@ create(metadataWithRewards: PackMetadataInput): PromiseReturns:
-Promise<[TransactionResultWithId](./sdk.transactionresultwithid.md)<{ metadata: { \[x: string\]: import("../core/types").[Json](./sdk.json.md); name?: string \| undefined; description?: string \| null \| undefined; image?: string \| null \| undefined; external\_url?: string \| null \| undefined; animation\_url?: string \| null \| undefined; uri: string; id: BigNumber; }; supply: BigNumber; }>>
+Promise<[TransactionResultWithId](./sdk.transactionresultwithid.md)<{ metadata: { \[x: string\]: import("../core/types").[Json](./sdk.json.md); name?: string \| undefined; description?: string \| null \| undefined; image?: string \| null \| undefined; external\_url?: string \| null \| undefined; animation\_url?: string \| null \| undefined; id: BigNumber; uri: string; }; supply: BigNumber; }>>
## Remarks
diff --git a/docs/sdk.pack.md b/docs/sdk.pack.md
index cf70dd4fc..33cbfac41 100644
--- a/docs/sdk.pack.md
+++ b/docs/sdk.pack.md
@@ -27,7 +27,7 @@ const contract = sdk.getPack("{{contract_address}}");
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(network, address, storage, options, contractWrapper)](./sdk.pack._constructor_.md) | | Constructs a new instance of the Pack
class |
+| [(constructor)(connection, address, storage, options, contractWrapper)](./sdk.pack._constructor_.md) | | Constructs a new instance of the Pack
class |
## Properties
diff --git a/docs/sdk.sdkoptions.md b/docs/sdk.sdkoptions.md
index f104d39bd..d666fc0f3 100644
--- a/docs/sdk.sdkoptions.md
+++ b/docs/sdk.sdkoptions.md
@@ -18,6 +18,10 @@ export declare type SDKOptions = z.input;
```javascript
{
+ chainIdToRPCUrlMap: {
+ ChainId.Mainnet: "https://mainnet.infura.io/v3/YOUR_INFURA_KEY",
+ 1337: "http://localhost:8545",
+ }
readonlySettings: {
rpcUrl, // force read calls to go through your own RPC url
chainId, // reduce RPC calls by sepcifying your chain ID
diff --git a/docs/sdk.sdkoptionsschema.md b/docs/sdk.sdkoptionsschema.md
index fbfc62ca2..3d9294280 100644
--- a/docs/sdk.sdkoptionsschema.md
+++ b/docs/sdk.sdkoptionsschema.md
@@ -9,6 +9,7 @@
```typescript
SDKOptionsSchema: z.ZodDefault>;
readonlySettings: z.ZodOptional;
@@ -78,6 +79,7 @@ SDKOptionsSchema: z.ZodDefault]>>;
}, "strip", z.ZodTypeAny, {
+ chainIdToRPCUrlMap?: Record | undefined;
readonlySettings?: {
chainId?: number | undefined;
rpcUrl: string;
@@ -99,6 +101,7 @@ SDKOptionsSchema: z.ZodDefault | undefined;
readonlySettings?: {
chainId?: number | undefined;
rpcUrl: string;
diff --git a/docs/sdk.signaturedrop._constructor_.md b/docs/sdk.signaturedrop._constructor_.md
index dabfeffa3..20b484802 100644
--- a/docs/sdk.signaturedrop._constructor_.md
+++ b/docs/sdk.signaturedrop._constructor_.md
@@ -9,14 +9,14 @@ Constructs a new instance of the `SignatureDrop` class
Signature:
```typescript
-constructor(network: NetworkOrSignerOrProvider, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
+constructor(connection: ConnectionInfo, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
+| connection | [ConnectionInfo](./sdk.connectioninfo.md) | |
| address | string | |
| storage | [IStorage](./sdk.istorage.md) | |
| options | [SDKOptions](./sdk.sdkoptions.md) | (Optional) |
diff --git a/docs/sdk.signaturedrop.md b/docs/sdk.signaturedrop.md
index ee7dd4197..0ce6bef63 100644
--- a/docs/sdk.signaturedrop.md
+++ b/docs/sdk.signaturedrop.md
@@ -27,7 +27,7 @@ const contract = sdk.getSignatureDrop("{{contract_address}}");
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(network, address, storage, options, contractWrapper)](./sdk.signaturedrop._constructor_.md) | | Constructs a new instance of the SignatureDrop
class |
+| [(constructor)(connection, address, storage, options, contractWrapper)](./sdk.signaturedrop._constructor_.md) | | Constructs a new instance of the SignatureDrop
class |
## Properties
diff --git a/docs/sdk.smartcontract._constructor_.md b/docs/sdk.smartcontract._constructor_.md
index 9157cdf11..cd8a1c6ab 100644
--- a/docs/sdk.smartcontract._constructor_.md
+++ b/docs/sdk.smartcontract._constructor_.md
@@ -12,14 +12,14 @@ Constructs a new instance of the `SmartContract` class
Signature:
```typescript
-constructor(network: NetworkOrSignerOrProvider, address: string, abi: ContractInterface, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
+constructor(connection: ConnectionInfo, address: string, abi: ContractInterface, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
+| connection | [ConnectionInfo](./sdk.connectioninfo.md) | |
| address | string | |
| abi | ContractInterface | |
| storage | [IStorage](./sdk.istorage.md) | |
diff --git a/docs/sdk.smartcontract.getchainid.md b/docs/sdk.smartcontract.getchainid.md
new file mode 100644
index 000000000..387ca9a8c
--- /dev/null
+++ b/docs/sdk.smartcontract.getchainid.md
@@ -0,0 +1,18 @@
+
+
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [SmartContract](./sdk.smartcontract.md) > [getChainId](./sdk.smartcontract.getchainid.md)
+
+## SmartContract.getChainId() method
+
+> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
+>
+
+Signature:
+
+```typescript
+getChainId(): number;
+```
+Returns:
+
+number
+
diff --git a/docs/sdk.smartcontract.md b/docs/sdk.smartcontract.md
index 3e710becc..6533f9ed5 100644
--- a/docs/sdk.smartcontract.md
+++ b/docs/sdk.smartcontract.md
@@ -42,7 +42,7 @@ const tx = await contract.nft.mint.to("0x...", {
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(network, address, abi, storage, options, contractWrapper)](./sdk.smartcontract._constructor_.md) | | (BETA) Constructs a new instance of the SmartContract
class |
+| [(constructor)(connection, address, abi, storage, options, contractWrapper)](./sdk.smartcontract._constructor_.md) | | (BETA) Constructs a new instance of the SmartContract
class |
## Properties
@@ -68,5 +68,6 @@ const tx = await contract.nft.mint.to("0x...", {
| --- | --- | --- |
| [call(functionName, args)](./sdk.smartcontract.call.md) | | (BETA) Call any function on this contract |
| [getAddress()](./sdk.smartcontract.getaddress.md) | | (BETA) |
-| [onNetworkUpdated(network)](./sdk.smartcontract.onnetworkupdated.md) | | (BETA) |
+| [getChainId()](./sdk.smartcontract.getchainid.md) | | (BETA) |
+| [onSignerUpdated(signer)](./sdk.smartcontract.onsignerupdated.md) | | (BETA) |
diff --git a/docs/sdk.smartcontract.onnetworkupdated.md b/docs/sdk.smartcontract.onsignerupdated.md
similarity index 58%
rename from docs/sdk.smartcontract.onnetworkupdated.md
rename to docs/sdk.smartcontract.onsignerupdated.md
index 79958e693..18ae22228 100644
--- a/docs/sdk.smartcontract.onnetworkupdated.md
+++ b/docs/sdk.smartcontract.onsignerupdated.md
@@ -1,8 +1,8 @@
-[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [SmartContract](./sdk.smartcontract.md) > [onNetworkUpdated](./sdk.smartcontract.onnetworkupdated.md)
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [SmartContract](./sdk.smartcontract.md) > [onSignerUpdated](./sdk.smartcontract.onsignerupdated.md)
-## SmartContract.onNetworkUpdated() method
+## SmartContract.onSignerUpdated() method
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
>
@@ -10,14 +10,14 @@
Signature:
```typescript
-onNetworkUpdated(network: NetworkOrSignerOrProvider): void;
+onSignerUpdated(signer: Signer | undefined): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
+| signer | Signer \| undefined | |
Returns:
diff --git a/docs/sdk.split._constructor_.md b/docs/sdk.split._constructor_.md
index 52f2e42fa..cb1f5f1a1 100644
--- a/docs/sdk.split._constructor_.md
+++ b/docs/sdk.split._constructor_.md
@@ -9,14 +9,14 @@ Constructs a new instance of the `Split` class
Signature:
```typescript
-constructor(network: NetworkOrSignerOrProvider, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
+constructor(connection: ConnectionInfo, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
+| connection | [ConnectionInfo](./sdk.connectioninfo.md) | |
| address | string | |
| storage | [IStorage](./sdk.istorage.md) | |
| options | [SDKOptions](./sdk.sdkoptions.md) | (Optional) |
diff --git a/docs/sdk.split.getchainid.md b/docs/sdk.split.getchainid.md
new file mode 100644
index 000000000..ba789c2ec
--- /dev/null
+++ b/docs/sdk.split.getchainid.md
@@ -0,0 +1,15 @@
+
+
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [Split](./sdk.split.md) > [getChainId](./sdk.split.getchainid.md)
+
+## Split.getChainId() method
+
+Signature:
+
+```typescript
+getChainId(): number;
+```
+Returns:
+
+number
+
diff --git a/docs/sdk.split.md b/docs/sdk.split.md
index c92678df7..b4f98d7b3 100644
--- a/docs/sdk.split.md
+++ b/docs/sdk.split.md
@@ -27,7 +27,7 @@ const contract = sdk.getSplit("{{contract_address}}");
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(network, address, storage, options, contractWrapper)](./sdk.split._constructor_.md) | | Constructs a new instance of the Split
class |
+| [(constructor)(connection, address, storage, options, contractWrapper)](./sdk.split._constructor_.md) | | Constructs a new instance of the Split
class |
## Properties
@@ -52,8 +52,9 @@ const contract = sdk.getSplit("{{contract_address}}");
| [distributeToken(tokenAddress)](./sdk.split.distributetoken.md) | | Distribute Funds |
| [getAddress()](./sdk.split.getaddress.md) | | |
| [getAllRecipients()](./sdk.split.getallrecipients.md) | | Get Recipients of this splits contract |
+| [getChainId()](./sdk.split.getchainid.md) | | |
| [getRecipientSplitPercentage(address)](./sdk.split.getrecipientsplitpercentage.md) | | Get the % of funds owed to a given address |
-| [onNetworkUpdated(network)](./sdk.split.onnetworkupdated.md) | | |
+| [onSignerUpdated(signer)](./sdk.split.onsignerupdated.md) | | |
| [withdraw(walletAddress)](./sdk.split.withdraw.md) | | Withdraw Funds |
| [withdrawToken(walletAddress, tokenAddress)](./sdk.split.withdrawtoken.md) | | Triggers a transfer to account of the amount of a given currency they are owed. |
diff --git a/docs/sdk.split.onnetworkupdated.md b/docs/sdk.split.onsignerupdated.md
similarity index 50%
rename from docs/sdk.split.onnetworkupdated.md
rename to docs/sdk.split.onsignerupdated.md
index 9f4015607..e36e99859 100644
--- a/docs/sdk.split.onnetworkupdated.md
+++ b/docs/sdk.split.onsignerupdated.md
@@ -1,20 +1,20 @@
-[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [Split](./sdk.split.md) > [onNetworkUpdated](./sdk.split.onnetworkupdated.md)
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [Split](./sdk.split.md) > [onSignerUpdated](./sdk.split.onsignerupdated.md)
-## Split.onNetworkUpdated() method
+## Split.onSignerUpdated() method
Signature:
```typescript
-onNetworkUpdated(network: NetworkOrSignerOrProvider): void;
+onSignerUpdated(signer: Signer | undefined): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
+| signer | Signer \| undefined | |
Returns:
diff --git a/docs/sdk.thirdwebsdk._constructor_.md b/docs/sdk.thirdwebsdk._constructor_.md
index 3d89a9311..0f1ce1bf3 100644
--- a/docs/sdk.thirdwebsdk._constructor_.md
+++ b/docs/sdk.thirdwebsdk._constructor_.md
@@ -9,14 +9,14 @@ Constructs a new instance of the `ThirdwebSDK` class
Signature:
```typescript
-constructor(network: ChainOrRpc | SignerOrProvider, options?: SDKOptions, storage?: IStorage);
+constructor(chain: ChainIdOrName, options?: SDKOptions, storage?: IStorage);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| network | ChainOrRpc \| [SignerOrProvider](./sdk.signerorprovider.md) | |
+| chain | ChainIdOrName | |
| options | [SDKOptions](./sdk.sdkoptions.md) | (Optional) |
| storage | [IStorage](./sdk.istorage.md) | (Optional) |
diff --git a/docs/sdk.thirdwebsdk.fromprivatekey.md b/docs/sdk.thirdwebsdk.fromprivatekey.md
index 1ccae97f4..d37462bca 100644
--- a/docs/sdk.thirdwebsdk.fromprivatekey.md
+++ b/docs/sdk.thirdwebsdk.fromprivatekey.md
@@ -12,7 +12,7 @@ Get an instance of the thirdweb SDK based on a private key.
Signature:
```typescript
-static fromPrivateKey(privateKey: string, network: ChainOrRpc, options?: SDKOptions, storage?: IStorage): ThirdwebSDK;
+static fromPrivateKey(privateKey: string, chain: ChainIdOrName, options?: SDKOptions, storage?: IStorage): ThirdwebSDK;
```
## Parameters
@@ -20,9 +20,9 @@ static fromPrivateKey(privateKey: string, network: ChainOrRpc, options?: SDKOpti
| Parameter | Type | Description |
| --- | --- | --- |
| privateKey | string | the private key - \*\*DO NOT EXPOSE THIS TO THE PUBLIC\*\* |
-| network | ChainOrRpc | the network (chain) to connect to (e.g. "mainnet", "rinkeby", "polygon", "mumbai"...) or a fully formed RPC url |
+| chain | ChainIdOrName | the chainId to connect to (e.g. ChainId.Mainnet, ChainId.Rinkeby, ChainId.Polygon, ChainId.Mumbai...) |
| options | [SDKOptions](./sdk.sdkoptions.md) | (Optional) the SDK options to use |
-| storage | [IStorage](./sdk.istorage.md) | (Optional) |
+| storage | [IStorage](./sdk.istorage.md) | (Optional) the storage handler to use |
Returns:
diff --git a/docs/sdk.thirdwebsdk.fromsigner.md b/docs/sdk.thirdwebsdk.fromsigner.md
index 6923c4dc7..8e1cb9874 100644
--- a/docs/sdk.thirdwebsdk.fromsigner.md
+++ b/docs/sdk.thirdwebsdk.fromsigner.md
@@ -12,7 +12,7 @@ Get an instance of the thirdweb SDK based on an existing ethers signer
Signature:
```typescript
-static fromSigner(signer: Signer, network?: ChainOrRpc, options?: SDKOptions, storage?: IStorage): ThirdwebSDK;
+static fromSigner(signer: Signer, chain: ChainIdOrName, options?: SDKOptions, storage?: IStorage): ThirdwebSDK;
```
## Parameters
@@ -20,9 +20,9 @@ static fromSigner(signer: Signer, network?: ChainOrRpc, options?: SDKOptions, st
| Parameter | Type | Description |
| --- | --- | --- |
| signer | Signer | a ethers Signer to be used for transactions |
-| network | ChainOrRpc | (Optional) the network (chain) to connect to (e.g. "mainnet", "rinkeby", "polygon", "mumbai"...) or a fully formed RPC url |
+| chain | ChainIdOrName | the chainId to connect to (e.g. ChainId.Mainnet, ChainId.Rinkeby, ChainId.Polygon, ChainId.Mumbai...) |
| options | [SDKOptions](./sdk.sdkoptions.md) | (Optional) the SDK options to use |
-| storage | [IStorage](./sdk.istorage.md) | (Optional) |
+| storage | [IStorage](./sdk.istorage.md) | (Optional) the storage handler to use |
Returns:
diff --git a/docs/sdk.thirdwebsdk.getcontract.md b/docs/sdk.thirdwebsdk.getcontract.md
index ed46e3c7a..b29e0f299 100644
--- a/docs/sdk.thirdwebsdk.getcontract.md
+++ b/docs/sdk.thirdwebsdk.getcontract.md
@@ -12,7 +12,7 @@ Get an instance of a Custom ThirdwebContract
Signature:
```typescript
-getContract(address: string): Promise>;
+getContract(address: string, chain?: ChainIdOrName): Promise>;
```
## Parameters
@@ -20,6 +20,7 @@ getContract(address: string): Promise(Optional) optional the chain (id or name) of the contract (defaults to the SDK chainId) |
Returns:
diff --git a/docs/sdk.thirdwebsdk.getcontractfromabi.md b/docs/sdk.thirdwebsdk.getcontractfromabi.md
index f92059145..4f88977c1 100644
--- a/docs/sdk.thirdwebsdk.getcontractfromabi.md
+++ b/docs/sdk.thirdwebsdk.getcontractfromabi.md
@@ -12,7 +12,7 @@ Get an instance of a Custom contract from a json ABI
Signature:
```typescript
-getContractFromAbi(address: string, abi: ContractInterface): SmartContract;
+getContractFromAbi(address: string, abi: ContractInterface, chain?: ChainIdOrName): SmartContract;
```
## Parameters
@@ -21,6 +21,7 @@ getContractFromAbi(address: string, abi: ContractInterface): SmartContract(Optional) optional the chain (id or name) of the contract (defaults to the SDK chainId) |
Returns:
diff --git a/docs/sdk.thirdwebsdk.getcontractlist.md b/docs/sdk.thirdwebsdk.getcontractlist.md
index 97d738bb5..3cce045b9 100644
--- a/docs/sdk.thirdwebsdk.getcontractlist.md
+++ b/docs/sdk.thirdwebsdk.getcontractlist.md
@@ -9,7 +9,7 @@ Return all the contracts deployed by the specified address
Signature:
```typescript
-getContractList(walletAddress: string): Promise<{
+getContractList(walletAddress: string, chain?: ChainIdOrName): Promise<{
address: string;
contractType: "custom" | "token" | "split" | "edition" | "edition-drop" | "token-drop" | "vote" | "marketplace" | "pack" | "nft-drop" | "signature-drop" | "multiwrap" | "nft-collection";
metadata: () => Promise;
@@ -21,6 +21,7 @@ getContractList(walletAddress: string): Promise<{
| Parameter | Type | Description |
| --- | --- | --- |
| walletAddress | string | the deployed address |
+| chain | ChainIdOrName | (Optional) the chain to fetch from contracts from |
Returns:
diff --git a/docs/sdk.thirdwebsdk.getedition.md b/docs/sdk.thirdwebsdk.getedition.md
index 39c558230..dd9027424 100644
--- a/docs/sdk.thirdwebsdk.getedition.md
+++ b/docs/sdk.thirdwebsdk.getedition.md
@@ -9,7 +9,7 @@ Get an instance of an Edition contract
Signature:
```typescript
-getEdition(address: string): Edition;
+getEdition(address: string, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -17,10 +17,11 @@ getEdition(address: string): Edition;
| Parameter | Type | Description |
| --- | --- | --- |
| address | string | the address of the deployed contract |
+| chain | ChainIdOrName | (Optional) optional, chain (id or name) of the contract (defaults to the chain the SDK is connected to) |
Returns:
-[Edition](./sdk.edition.md)
+Promise<[Edition](./sdk.edition.md)>
the contract
diff --git a/docs/sdk.thirdwebsdk.geteditiondrop.md b/docs/sdk.thirdwebsdk.geteditiondrop.md
index 565be2607..df66f4bee 100644
--- a/docs/sdk.thirdwebsdk.geteditiondrop.md
+++ b/docs/sdk.thirdwebsdk.geteditiondrop.md
@@ -9,7 +9,7 @@ Get an instance of a Edition Drop contract
Signature:
```typescript
-getEditionDrop(address: string): EditionDrop;
+getEditionDrop(address: string, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -17,10 +17,11 @@ getEditionDrop(address: string): EditionDrop;
| Parameter | Type | Description |
| --- | --- | --- |
| address | string | the address of the deployed contract |
+| chain | ChainIdOrName | (Optional) optional, chain (id or name) of the contract (defaults to the chain the SDK is connected to) |
Returns:
-[EditionDrop](./sdk.editiondrop.md)
+Promise<[EditionDrop](./sdk.editiondrop.md)>
the contract
diff --git a/docs/sdk.thirdwebsdk.getmarketplace.md b/docs/sdk.thirdwebsdk.getmarketplace.md
index ba91735b8..6fba53f97 100644
--- a/docs/sdk.thirdwebsdk.getmarketplace.md
+++ b/docs/sdk.thirdwebsdk.getmarketplace.md
@@ -9,7 +9,7 @@ Get an instance of a Marketplace contract
Signature:
```typescript
-getMarketplace(address: string): Marketplace;
+getMarketplace(address: string, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -17,10 +17,11 @@ getMarketplace(address: string): Marketplace;
| Parameter | Type | Description |
| --- | --- | --- |
| address | string | the address of the deployed contract |
+| chain | ChainIdOrName | (Optional) optional, chain (id or name) of the contract (defaults to the chain the SDK is connected to) |
Returns:
-[Marketplace](./sdk.marketplace.md)
+Promise<[Marketplace](./sdk.marketplace.md)>
the contract
diff --git a/docs/sdk.thirdwebsdk.getmultiwrap.md b/docs/sdk.thirdwebsdk.getmultiwrap.md
index 1d873b3a1..fc2862833 100644
--- a/docs/sdk.thirdwebsdk.getmultiwrap.md
+++ b/docs/sdk.thirdwebsdk.getmultiwrap.md
@@ -12,7 +12,7 @@ Get an instance of a Multiwrap contract
Signature:
```typescript
-getMultiwrap(address: string): Multiwrap;
+getMultiwrap(address: string, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -20,10 +20,11 @@ getMultiwrap(address: string): Multiwrap;
| Parameter | Type | Description |
| --- | --- | --- |
| address | string | the address of the deployed contract |
+| chain | ChainIdOrName | (Optional) optional, chain (id or name) of the contract (defaults to the chain the SDK is connected to) |
Returns:
-[Multiwrap](./sdk.multiwrap.md)
+Promise<[Multiwrap](./sdk.multiwrap.md)>
the contract
diff --git a/docs/sdk.thirdwebsdk.getnftcollection.md b/docs/sdk.thirdwebsdk.getnftcollection.md
index 74d245ca0..9d50588df 100644
--- a/docs/sdk.thirdwebsdk.getnftcollection.md
+++ b/docs/sdk.thirdwebsdk.getnftcollection.md
@@ -9,7 +9,7 @@ Get an instance of a NFT Collection contract
Signature:
```typescript
-getNFTCollection(address: string): NFTCollection;
+getNFTCollection(address: string, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -17,10 +17,11 @@ getNFTCollection(address: string): NFTCollection;
| Parameter | Type | Description |
| --- | --- | --- |
| address | string | the address of the deployed contract |
+| chain | ChainIdOrName | (Optional) optional, chain (id or name) of the contract (defaults to the chain the SDK is connected to) |
Returns:
-[NFTCollection](./sdk.nftcollection.md)
+Promise<[NFTCollection](./sdk.nftcollection.md)>
the contract
diff --git a/docs/sdk.thirdwebsdk.getnftdrop.md b/docs/sdk.thirdwebsdk.getnftdrop.md
index 25feed37a..fc84ae946 100644
--- a/docs/sdk.thirdwebsdk.getnftdrop.md
+++ b/docs/sdk.thirdwebsdk.getnftdrop.md
@@ -9,7 +9,7 @@ Get an instance of a Drop contract
Signature:
```typescript
-getNFTDrop(contractAddress: string): NFTDrop;
+getNFTDrop(contractAddress: string, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -17,10 +17,11 @@ getNFTDrop(contractAddress: string): NFTDrop;
| Parameter | Type | Description |
| --- | --- | --- |
| contractAddress | string | the address of the deployed contract |
+| chain | ChainIdOrName | (Optional) optional, chain (id or name) of the contract (defaults to the chain the SDK is connected to) |
Returns:
-[NFTDrop](./sdk.nftdrop.md)
+Promise<[NFTDrop](./sdk.nftdrop.md)>
the contract
diff --git a/docs/sdk.thirdwebsdk.getpack.md b/docs/sdk.thirdwebsdk.getpack.md
index e54ba18bb..c302546a5 100644
--- a/docs/sdk.thirdwebsdk.getpack.md
+++ b/docs/sdk.thirdwebsdk.getpack.md
@@ -9,7 +9,7 @@ Get an instance of a Pack contract
Signature:
```typescript
-getPack(address: string): Pack;
+getPack(address: string, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -17,10 +17,11 @@ getPack(address: string): Pack;
| Parameter | Type | Description |
| --- | --- | --- |
| address | string | the address of the deployed contract |
+| chain | ChainIdOrName | (Optional) optional, chain (id or name) of the contract (defaults to the chain the SDK is connected to) |
Returns:
-[Pack](./sdk.pack.md)
+Promise<[Pack](./sdk.pack.md)>
the contract
diff --git a/docs/sdk.thirdwebsdk.getsplit.md b/docs/sdk.thirdwebsdk.getsplit.md
index a30111057..b3c6d3c83 100644
--- a/docs/sdk.thirdwebsdk.getsplit.md
+++ b/docs/sdk.thirdwebsdk.getsplit.md
@@ -9,7 +9,7 @@ Get an instance of a Splits contract
Signature:
```typescript
-getSplit(address: string): Split;
+getSplit(address: string, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -17,10 +17,11 @@ getSplit(address: string): Split;
| Parameter | Type | Description |
| --- | --- | --- |
| address | string | the address of the deployed contract |
+| chain | ChainIdOrName | (Optional) optional, chain (id or name) of the contract (defaults to the chain the SDK is connected to) |
Returns:
-[Split](./sdk.split.md)
+Promise<[Split](./sdk.split.md)>
the contract
diff --git a/docs/sdk.thirdwebsdk.gettoken.md b/docs/sdk.thirdwebsdk.gettoken.md
index decb10273..7ab05b5a9 100644
--- a/docs/sdk.thirdwebsdk.gettoken.md
+++ b/docs/sdk.thirdwebsdk.gettoken.md
@@ -9,7 +9,7 @@ Get an instance of a Token contract
Signature:
```typescript
-getToken(address: string): Token;
+getToken(address: string, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -17,10 +17,11 @@ getToken(address: string): Token;
| Parameter | Type | Description |
| --- | --- | --- |
| address | string | the address of the deployed contract |
+| chain | ChainIdOrName | (Optional) optional, chain (id or name) of the contract (defaults to the chain the SDK is connected to) |
Returns:
-[Token](./sdk.token.md)
+Promise<[Token](./sdk.token.md)>
the contract
diff --git a/docs/sdk.thirdwebsdk.gettokendrop.md b/docs/sdk.thirdwebsdk.gettokendrop.md
index d70ab189c..cd8388a84 100644
--- a/docs/sdk.thirdwebsdk.gettokendrop.md
+++ b/docs/sdk.thirdwebsdk.gettokendrop.md
@@ -9,7 +9,7 @@ Get an instance of a Token Drop contract
Signature:
```typescript
-getTokenDrop(address: string): TokenDrop;
+getTokenDrop(address: string, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -17,10 +17,11 @@ getTokenDrop(address: string): TokenDrop;
| Parameter | Type | Description |
| --- | --- | --- |
| address | string | the address of the deployed contract |
+| chain | ChainIdOrName | (Optional) optional, chain (id or name) of the contract (defaults to the chain the SDK is connected to) |
Returns:
-[TokenDrop](./sdk.tokendrop.md)
+Promise<[TokenDrop](./sdk.tokendrop.md)>
the contract
diff --git a/docs/sdk.thirdwebsdk.getvote.md b/docs/sdk.thirdwebsdk.getvote.md
index f0020d85d..40c7c89b7 100644
--- a/docs/sdk.thirdwebsdk.getvote.md
+++ b/docs/sdk.thirdwebsdk.getvote.md
@@ -9,7 +9,7 @@ Get an instance of a Vote contract
Signature:
```typescript
-getVote(address: string): Vote;
+getVote(address: string, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -17,10 +17,11 @@ getVote(address: string): Vote;
| Parameter | Type | Description |
| --- | --- | --- |
| address | string | the address of the deployed contract |
+| chain | ChainIdOrName | (Optional) optional, chain (id or name) of the contract (defaults to the chain the SDK is connected to) |
Returns:
-[Vote](./sdk.vote.md)
+Promise<[Vote](./sdk.vote.md)>
the contract
diff --git a/docs/sdk.thirdwebsdk.md b/docs/sdk.thirdwebsdk.md
index 3d833620d..e57548cb4 100644
--- a/docs/sdk.thirdwebsdk.md
+++ b/docs/sdk.thirdwebsdk.md
@@ -17,7 +17,7 @@ export declare class ThirdwebSDK extends RPCConnectionHandler
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(network, options, storage)](./sdk.thirdwebsdk._constructor_.md) | | Constructs a new instance of the ThirdwebSDK
class |
+| [(constructor)(chain, options, storage)](./sdk.thirdwebsdk._constructor_.md) | | Constructs a new instance of the ThirdwebSDK
class |
## Properties
@@ -32,23 +32,22 @@ export declare class ThirdwebSDK extends RPCConnectionHandler
| Method | Modifiers | Description |
| --- | --- | --- |
-| [fromPrivateKey(privateKey, network, options, storage)](./sdk.thirdwebsdk.fromprivatekey.md) | static
| (BETA) Get an instance of the thirdweb SDK based on a private key. |
-| [fromSigner(signer, network, options, storage)](./sdk.thirdwebsdk.fromsigner.md) | static
| (BETA) Get an instance of the thirdweb SDK based on an existing ethers signer |
+| [fromPrivateKey(privateKey, chain, options, storage)](./sdk.thirdwebsdk.fromprivatekey.md) | static
| (BETA) Get an instance of the thirdweb SDK based on a private key. |
+| [fromSigner(signer, chain, options, storage)](./sdk.thirdwebsdk.fromsigner.md) | static
| (BETA) Get an instance of the thirdweb SDK based on an existing ethers signer |
| [getBalance(address)](./sdk.thirdwebsdk.getbalance.md) | | Get the native balance of a given address (wallet or contract) |
-| [getContract(address)](./sdk.thirdwebsdk.getcontract.md) | | (BETA) Get an instance of a Custom ThirdwebContract |
-| [getContractFromAbi(address, abi)](./sdk.thirdwebsdk.getcontractfromabi.md) | | (BETA) Get an instance of a Custom contract from a json ABI |
-| [getContractList(walletAddress)](./sdk.thirdwebsdk.getcontractlist.md) | | Return all the contracts deployed by the specified address |
-| [getEdition(address)](./sdk.thirdwebsdk.getedition.md) | | Get an instance of an Edition contract |
-| [getEditionDrop(address)](./sdk.thirdwebsdk.geteditiondrop.md) | | Get an instance of a Edition Drop contract |
-| [getMarketplace(address)](./sdk.thirdwebsdk.getmarketplace.md) | | Get an instance of a Marketplace contract |
-| [getMultiwrap(address)](./sdk.thirdwebsdk.getmultiwrap.md) | | (BETA) Get an instance of a Multiwrap contract |
-| [getNFTCollection(address)](./sdk.thirdwebsdk.getnftcollection.md) | | Get an instance of a NFT Collection contract |
-| [getNFTDrop(contractAddress)](./sdk.thirdwebsdk.getnftdrop.md) | | Get an instance of a Drop contract |
-| [getPack(address)](./sdk.thirdwebsdk.getpack.md) | | Get an instance of a Pack contract |
-| [getSplit(address)](./sdk.thirdwebsdk.getsplit.md) | | Get an instance of a Splits contract |
-| [getToken(address)](./sdk.thirdwebsdk.gettoken.md) | | Get an instance of a Token contract |
-| [getTokenDrop(address)](./sdk.thirdwebsdk.gettokendrop.md) | | Get an instance of a Token Drop contract |
-| [getVote(address)](./sdk.thirdwebsdk.getvote.md) | | Get an instance of a Vote contract |
-| [resolveContractType(contractAddress)](./sdk.thirdwebsdk.resolvecontracttype.md) | | |
-| [updateSignerOrProvider(network)](./sdk.thirdwebsdk.updatesignerorprovider.md) | | Update the active signer or provider for all contracts |
+| [getContract(address, chain)](./sdk.thirdwebsdk.getcontract.md) | | (BETA) Get an instance of a Custom ThirdwebContract |
+| [getContractFromAbi(address, abi, chain)](./sdk.thirdwebsdk.getcontractfromabi.md) | | (BETA) Get an instance of a Custom contract from a json ABI |
+| [getContractList(walletAddress, chain)](./sdk.thirdwebsdk.getcontractlist.md) | | Return all the contracts deployed by the specified address |
+| [getEdition(address, chain)](./sdk.thirdwebsdk.getedition.md) | | Get an instance of an Edition contract |
+| [getEditionDrop(address, chain)](./sdk.thirdwebsdk.geteditiondrop.md) | | Get an instance of a Edition Drop contract |
+| [getMarketplace(address, chain)](./sdk.thirdwebsdk.getmarketplace.md) | | Get an instance of a Marketplace contract |
+| [getMultiwrap(address, chain)](./sdk.thirdwebsdk.getmultiwrap.md) | | (BETA) Get an instance of a Multiwrap contract |
+| [getNFTCollection(address, chain)](./sdk.thirdwebsdk.getnftcollection.md) | | Get an instance of a NFT Collection contract |
+| [getNFTDrop(contractAddress, chain)](./sdk.thirdwebsdk.getnftdrop.md) | | Get an instance of a Drop contract |
+| [getPack(address, chain)](./sdk.thirdwebsdk.getpack.md) | | Get an instance of a Pack contract |
+| [getSplit(address, chain)](./sdk.thirdwebsdk.getsplit.md) | | Get an instance of a Splits contract |
+| [getToken(address, chain)](./sdk.thirdwebsdk.gettoken.md) | | Get an instance of a Token contract |
+| [getTokenDrop(address, chain)](./sdk.thirdwebsdk.gettokendrop.md) | | Get an instance of a Token Drop contract |
+| [getVote(address, chain)](./sdk.thirdwebsdk.getvote.md) | | Get an instance of a Vote contract |
+| [resolveContractType(contractAddress, chain)](./sdk.thirdwebsdk.resolvecontracttype.md) | | |
diff --git a/docs/sdk.thirdwebsdk.resolvecontracttype.md b/docs/sdk.thirdwebsdk.resolvecontracttype.md
index d3ca71538..251baa2f7 100644
--- a/docs/sdk.thirdwebsdk.resolvecontracttype.md
+++ b/docs/sdk.thirdwebsdk.resolvecontracttype.md
@@ -7,7 +7,7 @@
Signature:
```typescript
-resolveContractType(contractAddress: string): Promise;
+resolveContractType(contractAddress: string, chain?: ChainIdOrName): Promise;
```
## Parameters
@@ -15,6 +15,7 @@ resolveContractType(contractAddress: string): Promise;
| Parameter | Type | Description |
| --- | --- | --- |
| contractAddress | string | the address of the contract to attempt to resolve the contract type for |
+| chain | ChainIdOrName | (Optional) optional the chain (id or name) of the contract (defaults to the SDK chainId) |
Returns:
diff --git a/docs/sdk.thirdwebsdk.updatesignerorprovider.md b/docs/sdk.thirdwebsdk.updatesignerorprovider.md
deleted file mode 100644
index c92d0c7d3..000000000
--- a/docs/sdk.thirdwebsdk.updatesignerorprovider.md
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [ThirdwebSDK](./sdk.thirdwebsdk.md) > [updateSignerOrProvider](./sdk.thirdwebsdk.updatesignerorprovider.md)
-
-## ThirdwebSDK.updateSignerOrProvider() method
-
-Update the active signer or provider for all contracts
-
-Signature:
-
-```typescript
-updateSignerOrProvider(network: NetworkOrSignerOrProvider): void;
-```
-
-## Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | the new signer or provider |
-
-Returns:
-
-void
-
diff --git a/docs/sdk.token._constructor_.md b/docs/sdk.token._constructor_.md
index 339db0b4d..855afae69 100644
--- a/docs/sdk.token._constructor_.md
+++ b/docs/sdk.token._constructor_.md
@@ -9,14 +9,14 @@ Constructs a new instance of the `Token` class
Signature:
```typescript
-constructor(network: NetworkOrSignerOrProvider, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
+constructor(connection: ConnectionInfo, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
+| connection | [ConnectionInfo](./sdk.connectioninfo.md) | |
| address | string | |
| storage | [IStorage](./sdk.istorage.md) | |
| options | [SDKOptions](./sdk.sdkoptions.md) | (Optional) |
diff --git a/docs/sdk.token.md b/docs/sdk.token.md
index cfef4a879..2f1656b9b 100644
--- a/docs/sdk.token.md
+++ b/docs/sdk.token.md
@@ -27,7 +27,7 @@ const contract = sdk.getToken("{{contract_address}}");
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(network, address, storage, options, contractWrapper)](./sdk.token._constructor_.md) | | Constructs a new instance of the Token
class |
+| [(constructor)(connection, address, storage, options, contractWrapper)](./sdk.token._constructor_.md) | | Constructs a new instance of the Token
class |
## Properties
diff --git a/docs/sdk.tokendrop._constructor_.md b/docs/sdk.tokendrop._constructor_.md
index 4b34c72d1..bff17dd05 100644
--- a/docs/sdk.tokendrop._constructor_.md
+++ b/docs/sdk.tokendrop._constructor_.md
@@ -9,14 +9,14 @@ Constructs a new instance of the `TokenDrop` class
Signature:
```typescript
-constructor(network: NetworkOrSignerOrProvider, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
+constructor(connection: ConnectionInfo, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
+| connection | [ConnectionInfo](./sdk.connectioninfo.md) | |
| address | string | |
| storage | [IStorage](./sdk.istorage.md) | |
| options | [SDKOptions](./sdk.sdkoptions.md) | (Optional) |
diff --git a/docs/sdk.tokendrop.md b/docs/sdk.tokendrop.md
index e776b3f4a..707f612a5 100644
--- a/docs/sdk.tokendrop.md
+++ b/docs/sdk.tokendrop.md
@@ -27,7 +27,7 @@ const contract = sdk.getTokenDrop("{{contract_address}}");
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(network, address, storage, options, contractWrapper)](./sdk.tokendrop._constructor_.md) | | Constructs a new instance of the TokenDrop
class |
+| [(constructor)(connection, address, storage, options, contractWrapper)](./sdk.tokendrop._constructor_.md) | | Constructs a new instance of the TokenDrop
class |
## Properties
diff --git a/docs/sdk.userwallet._constructor_.md b/docs/sdk.userwallet._constructor_.md
index 37199ef5c..6193da8d2 100644
--- a/docs/sdk.userwallet._constructor_.md
+++ b/docs/sdk.userwallet._constructor_.md
@@ -9,13 +9,13 @@ Constructs a new instance of the `UserWallet` class
Signature:
```typescript
-constructor(network: NetworkOrSignerOrProvider, options: SDKOptions);
+constructor(connection: ConnectionInfo, options: SDKOptions);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
+| connection | [ConnectionInfo](./sdk.connectioninfo.md) | |
| options | [SDKOptions](./sdk.sdkoptions.md) | |
diff --git a/docs/sdk.userwallet.connect.md b/docs/sdk.userwallet.connect.md
new file mode 100644
index 000000000..998334dee
--- /dev/null
+++ b/docs/sdk.userwallet.connect.md
@@ -0,0 +1,22 @@
+
+
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [UserWallet](./sdk.userwallet.md) > [connect](./sdk.userwallet.connect.md)
+
+## UserWallet.connect() method
+
+Signature:
+
+```typescript
+connect(signer: Signer): void;
+```
+
+## Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| signer | Signer | |
+
+Returns:
+
+void
+
diff --git a/docs/sdk.userwallet.disconnect.md b/docs/sdk.userwallet.disconnect.md
new file mode 100644
index 000000000..d25420c27
--- /dev/null
+++ b/docs/sdk.userwallet.disconnect.md
@@ -0,0 +1,15 @@
+
+
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [UserWallet](./sdk.userwallet.md) > [disconnect](./sdk.userwallet.disconnect.md)
+
+## UserWallet.disconnect() method
+
+Signature:
+
+```typescript
+disconnect(): void;
+```
+Returns:
+
+void
+
diff --git a/docs/sdk.userwallet.events.md b/docs/sdk.userwallet.events.md
new file mode 100644
index 000000000..7eaa3aa0c
--- /dev/null
+++ b/docs/sdk.userwallet.events.md
@@ -0,0 +1,11 @@
+
+
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [UserWallet](./sdk.userwallet.md) > [events](./sdk.userwallet.events.md)
+
+## UserWallet.events property
+
+Signature:
+
+```typescript
+events: EventEmitter;
+```
diff --git a/docs/sdk.userwallet.md b/docs/sdk.userwallet.md
index 1e48e4c0f..349b27c30 100644
--- a/docs/sdk.userwallet.md
+++ b/docs/sdk.userwallet.md
@@ -23,15 +23,22 @@ const balance = await sdk.wallet.balance();
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(network, options)](./sdk.userwallet._constructor_.md) | | Constructs a new instance of the UserWallet
class |
+| [(constructor)(connection, options)](./sdk.userwallet._constructor_.md) | | Constructs a new instance of the UserWallet
class |
+
+## Properties
+
+| Property | Modifiers | Type | Description |
+| --- | --- | --- | --- |
+| [events](./sdk.userwallet.events.md) | | EventEmitter<[UserWalletEvents](./sdk.userwalletevents.md), any> | |
## Methods
| Method | Modifiers | Description |
| --- | --- | --- |
| [balance(currencyAddress)](./sdk.userwallet.balance.md) | | Fetch the native or ERC20 token balance of this wallet |
+| [connect(signer)](./sdk.userwallet.connect.md) | | |
+| [disconnect()](./sdk.userwallet.disconnect.md) | | |
| [getAddress()](./sdk.userwallet.getaddress.md) | | Get the currently connected address |
-| [onNetworkUpdated(network)](./sdk.userwallet.onnetworkupdated.md) | | |
| [sendRawTransaction(transactionRequest)](./sdk.userwallet.sendrawtransaction.md) | | Send a raw transaction to the blockchain from the connected wallet |
| [sign(message)](./sdk.userwallet.sign.md) | | Sign any message with the connected wallet private key |
| [transfer(to, amount, currencyAddress)](./sdk.userwallet.transfer.md) | | Transfer native or ERC20 tokens from this wallet to another wallet |
diff --git a/docs/sdk.userwallet.onnetworkupdated.md b/docs/sdk.userwallet.onnetworkupdated.md
deleted file mode 100644
index aebbe6bbb..000000000
--- a/docs/sdk.userwallet.onnetworkupdated.md
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [UserWallet](./sdk.userwallet.md) > [onNetworkUpdated](./sdk.userwallet.onnetworkupdated.md)
-
-## UserWallet.onNetworkUpdated() method
-
-Signature:
-
-```typescript
-onNetworkUpdated(network: NetworkOrSignerOrProvider): void;
-```
-
-## Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
-
-Returns:
-
-void
-
diff --git a/docs/sdk.userwalletevents.connected.md b/docs/sdk.userwalletevents.connected.md
new file mode 100644
index 000000000..bc401ac70
--- /dev/null
+++ b/docs/sdk.userwalletevents.connected.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [UserWalletEvents](./sdk.userwalletevents.md) > [connected](./sdk.userwalletevents.connected.md)
+
+## UserWalletEvents.connected property
+
+Emitted when `sdk.wallet.connect()` is called.
+
+Signature:
+
+```typescript
+connected: [Signer];
+```
diff --git a/docs/sdk.userwalletevents.disconnected.md b/docs/sdk.userwalletevents.disconnected.md
new file mode 100644
index 000000000..afe40f4f8
--- /dev/null
+++ b/docs/sdk.userwalletevents.disconnected.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [UserWalletEvents](./sdk.userwalletevents.md) > [disconnected](./sdk.userwalletevents.disconnected.md)
+
+## UserWalletEvents.disconnected property
+
+Emitted when `sdk.wallet.disconnect()` is called.
+
+Signature:
+
+```typescript
+disconnected: void;
+```
diff --git a/docs/sdk.userwalletevents.md b/docs/sdk.userwalletevents.md
new file mode 100644
index 000000000..9fd7b0291
--- /dev/null
+++ b/docs/sdk.userwalletevents.md
@@ -0,0 +1,21 @@
+
+
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [UserWalletEvents](./sdk.userwalletevents.md)
+
+## UserWalletEvents interface
+
+[UserWallet](./sdk.userwallet.md) events that you can subscribe to using `sdk.wallet.events`.
+
+Signature:
+
+```typescript
+export interface UserWalletEvents
+```
+
+## Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [connected](./sdk.userwalletevents.connected.md) | \[Signer\] | Emitted when sdk.wallet.connect()
is called. |
+| [disconnected](./sdk.userwalletevents.disconnected.md) | void | Emitted when sdk.wallet.disconnect()
is called. |
+
diff --git a/docs/sdk.vote._constructor_.md b/docs/sdk.vote._constructor_.md
index c670bac5f..c63f2498c 100644
--- a/docs/sdk.vote._constructor_.md
+++ b/docs/sdk.vote._constructor_.md
@@ -9,14 +9,14 @@ Constructs a new instance of the `Vote` class
Signature:
```typescript
-constructor(network: NetworkOrSignerOrProvider, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
+constructor(connection: ConnectionInfo, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
+| connection | [ConnectionInfo](./sdk.connectioninfo.md) | |
| address | string | |
| storage | [IStorage](./sdk.istorage.md) | |
| options | [SDKOptions](./sdk.sdkoptions.md) | (Optional) |
diff --git a/docs/sdk.vote.getchainid.md b/docs/sdk.vote.getchainid.md
new file mode 100644
index 000000000..2fb5b8bab
--- /dev/null
+++ b/docs/sdk.vote.getchainid.md
@@ -0,0 +1,15 @@
+
+
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [Vote](./sdk.vote.md) > [getChainId](./sdk.vote.getchainid.md)
+
+## Vote.getChainId() method
+
+Signature:
+
+```typescript
+getChainId(): number;
+```
+Returns:
+
+number
+
diff --git a/docs/sdk.vote.md b/docs/sdk.vote.md
index e7741acf5..8d99a2dc6 100644
--- a/docs/sdk.vote.md
+++ b/docs/sdk.vote.md
@@ -27,7 +27,7 @@ const contract = sdk.getVote("{{contract_address}}");
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(network, address, storage, options, contractWrapper)](./sdk.vote._constructor_.md) | | Constructs a new instance of the Vote
class |
+| [(constructor)(connection, address, storage, options, contractWrapper)](./sdk.vote._constructor_.md) | | Constructs a new instance of the Vote
class |
## Properties
@@ -51,9 +51,10 @@ const contract = sdk.getVote("{{contract_address}}");
| [get(proposalId)](./sdk.vote.get.md) | | Get a proposal by id. |
| [getAddress()](./sdk.vote.getaddress.md) | | |
| [getAll()](./sdk.vote.getall.md) | | Get All Proposals |
+| [getChainId()](./sdk.vote.getchainid.md) | | |
| [getProposalVotes(proposalId)](./sdk.vote.getproposalvotes.md) | | Get the votes for a specific proposal |
| [hasVoted(proposalId, account)](./sdk.vote.hasvoted.md) | | Check If Wallet Voted |
-| [onNetworkUpdated(network)](./sdk.vote.onnetworkupdated.md) | | |
+| [onSignerUpdated(signer)](./sdk.vote.onsignerupdated.md) | | |
| [propose(description, executions)](./sdk.vote.propose.md) | | Create Proposal |
| [settings()](./sdk.vote.settings.md) | | Get the Vote contract configuration |
| [vote(proposalId, voteType, reason)](./sdk.vote.vote.md) | | Vote |
diff --git a/docs/sdk.vote.onnetworkupdated.md b/docs/sdk.vote.onsignerupdated.md
similarity index 50%
rename from docs/sdk.vote.onnetworkupdated.md
rename to docs/sdk.vote.onsignerupdated.md
index 2d5de2e14..de4b0d217 100644
--- a/docs/sdk.vote.onnetworkupdated.md
+++ b/docs/sdk.vote.onsignerupdated.md
@@ -1,20 +1,20 @@
-[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [Vote](./sdk.vote.md) > [onNetworkUpdated](./sdk.vote.onnetworkupdated.md)
+[Home](./index.md) > [@thirdweb-dev/sdk](./sdk.md) > [Vote](./sdk.vote.md) > [onSignerUpdated](./sdk.vote.onsignerupdated.md)
-## Vote.onNetworkUpdated() method
+## Vote.onSignerUpdated() method
Signature:
```typescript
-onNetworkUpdated(network: NetworkOrSignerOrProvider): void;
+onSignerUpdated(signer: Signer | undefined): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
+| signer | Signer \| undefined | |
Returns:
diff --git a/docs/sdk.walletauthenticator._constructor_.md b/docs/sdk.walletauthenticator._constructor_.md
index ed4969cda..dc6d174e4 100644
--- a/docs/sdk.walletauthenticator._constructor_.md
+++ b/docs/sdk.walletauthenticator._constructor_.md
@@ -12,14 +12,14 @@ Constructs a new instance of the `WalletAuthenticator` class
Signature:
```typescript
-constructor(network: NetworkOrSignerOrProvider, wallet: UserWallet, options: SDKOptions);
+constructor(connection: ConnectionInfo, wallet: UserWallet, options: SDKOptions);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| network | [NetworkOrSignerOrProvider](./sdk.networkorsignerorprovider.md) | |
+| connection | [ConnectionInfo](./sdk.connectioninfo.md) | |
| wallet | [UserWallet](./sdk.userwallet.md) | |
| options | [SDKOptions](./sdk.sdkoptions.md) | |
diff --git a/docs/sdk.walletauthenticator.md b/docs/sdk.walletauthenticator.md
index e072542d3..0cc15bb05 100644
--- a/docs/sdk.walletauthenticator.md
+++ b/docs/sdk.walletauthenticator.md
@@ -45,7 +45,7 @@ const address = sdk.auth.authenticate(domain, token);
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(network, wallet, options)](./sdk.walletauthenticator._constructor_.md) | | (BETA) Constructs a new instance of the WalletAuthenticator
class |
+| [(constructor)(connection, wallet, options)](./sdk.walletauthenticator._constructor_.md) | | (BETA) Constructs a new instance of the WalletAuthenticator
class |
## Methods
diff --git a/docs/snippets.json b/docs/snippets.json
index 71e8ca977..02ca66a77 100644
--- a/docs/snippets.json
+++ b/docs/snippets.json
@@ -400,7 +400,7 @@
"summary": "Airdrop multiple NFTs\n\n",
"remarks": "\n\nAirdrop one or multiple NFTs to the provided wallet addresses.\n\n",
"examples": {
- "javascript": "// The token ID of the NFT you want to airdrop\nconst tokenId = \"0\";\n// Array of objects of addresses and quantities to airdrop NFTs to\nconst addresses = [\n {\n address: \"0x...\",\n quantity: 2,\n },\n {\n address: \"0x...\",\n quantity: 3,\n },\n];\nawait contract.airdrop(tokenId, addresses);\n\n// You can also pass an array of addresses, it will airdrop 1 NFT per address\nconst tokenId = \"0\";\nconst addresses = [\n \"0x...\", \"0x...\", \"0x...\",\n]\nawait contract.airdrop(tokenId, addresses);"
+ "javascript": "// The token ID of the NFT you want to airdrop\nconst tokenId = \"0\";\n// Array of objects of addresses and quantities to airdrop NFTs to\nconst addresses = [\n {\n address: \"0x...\",\n quantity: 2,\n },\n {\n address: \"0x...\",\n quantity: 3,\n },\n];\nawait contract.airdrop(tokenId, addresses);\n\n// You can also pass an array of addresses, it will airdrop 1 NFT per address\nconst tokenId = \"0\";\nconst addresses = [\n \"0x...\", \"0x...\", \"0x...\",\n]\n\nawait contract.airdrop(tokenId, addresses);"
},
"reference": "https://docs.thirdweb.com/typescript/sdk.Erc1155.airdrop"
},
@@ -512,7 +512,7 @@
"summary": "Airdrop multiple NFTs\n\n",
"remarks": "\n\nAirdrop one or multiple NFTs to the provided wallet addresses.\n\n",
"examples": {
- "javascript": "// The token ID of the NFT you want to airdrop\nconst tokenId = \"0\";\n// Array of objects of addresses and quantities to airdrop NFTs to\nconst addresses = [\n {\n address: \"0x...\",\n quantity: 2,\n },\n {\n address: \"0x...\",\n quantity: 3,\n },\n];\nawait contract.airdrop(tokenId, addresses);\n\n// You can also pass an array of addresses, it will airdrop 1 NFT per address\nconst tokenId = \"0\";\nconst addresses = [\n \"0x...\", \"0x...\", \"0x...\",\n]\nawait contract.airdrop(tokenId, addresses);"
+ "javascript": "// The token ID of the NFT you want to airdrop\nconst tokenId = \"0\";\n// Array of objects of addresses and quantities to airdrop NFTs to\nconst addresses = [\n {\n address: \"0x...\",\n quantity: 2,\n },\n {\n address: \"0x...\",\n quantity: 3,\n },\n];\nawait contract.airdrop(tokenId, addresses);\n\n// You can also pass an array of addresses, it will airdrop 1 NFT per address\nconst tokenId = \"0\";\nconst addresses = [\n \"0x...\", \"0x...\", \"0x...\",\n]\n\nawait contract.airdrop(tokenId, addresses);"
},
"reference": "https://docs.thirdweb.com/typescript/sdk.Erc1155.airdrop"
},
@@ -1201,7 +1201,7 @@
"summary": "Airdrop multiple NFTs\n\n",
"remarks": "\n\nAirdrop one or multiple NFTs to the provided wallet addresses.\n\n",
"examples": {
- "javascript": "// The token ID of the NFT you want to airdrop\nconst tokenId = \"0\";\n// Array of objects of addresses and quantities to airdrop NFTs to\nconst addresses = [\n {\n address: \"0x...\",\n quantity: 2,\n },\n {\n address: \"0x...\",\n quantity: 3,\n },\n];\nawait contract.airdrop(tokenId, addresses);\n\n// You can also pass an array of addresses, it will airdrop 1 NFT per address\nconst tokenId = \"0\";\nconst addresses = [\n \"0x...\", \"0x...\", \"0x...\",\n]\nawait contract.airdrop(tokenId, addresses);"
+ "javascript": "// The token ID of the NFT you want to airdrop\nconst tokenId = \"0\";\n// Array of objects of addresses and quantities to airdrop NFTs to\nconst addresses = [\n {\n address: \"0x...\",\n quantity: 2,\n },\n {\n address: \"0x...\",\n quantity: 3,\n },\n];\nawait contract.airdrop(tokenId, addresses);\n\n// You can also pass an array of addresses, it will airdrop 1 NFT per address\nconst tokenId = \"0\";\nconst addresses = [\n \"0x...\", \"0x...\", \"0x...\",\n]\n\nawait contract.airdrop(tokenId, addresses);"
},
"reference": "https://docs.thirdweb.com/typescript/sdk.Erc1155.airdrop"
},
diff --git a/etc/sdk.api.md b/etc/sdk.api.md
index 14870d594..822bcaa6e 100644
--- a/etc/sdk.api.md
+++ b/etc/sdk.api.md
@@ -25,7 +25,7 @@ import { ListenerFn } from 'eventemitter3';
import type { Overrides } from 'ethers';
import type { PayableOverrides } from 'ethers';
import type { PopulatedTransaction } from 'ethers';
-import type { Provider } from '@ethersproject/providers';
+import { Provider } from '@ethersproject/providers';
import { providers } from 'ethers';
import type { Result } from '@ethersproject/abi';
import { Signer } from 'ethers';
@@ -120,20 +120,20 @@ export const BaseSignaturePayloadInput: z.ZodObject<{
primarySaleRecipient: z.ZodDefault;
}, "strip", z.ZodTypeAny, {
to: string;
- primarySaleRecipient: string;
- uid: string;
- price: string;
currencyAddress: string;
+ price: string;
mintStartTime: BigNumber;
mintEndTime: BigNumber;
+ uid: string;
+ primarySaleRecipient: string;
}, {
to?: string | undefined;
- primarySaleRecipient?: string | undefined;
- uid?: string | undefined;
- price?: string | number | undefined;
currencyAddress?: string | undefined;
+ price?: string | number | undefined;
mintStartTime?: Date | undefined;
mintEndTime?: Date | undefined;
+ uid?: string | undefined;
+ primarySaleRecipient?: string | undefined;
}>;
// @public (undocumented)
@@ -152,6 +152,12 @@ export type BufferOrStringWithName = {
name?: string;
};
+// @public (undocumented)
+export type ChainAndAddress = {
+ chainId: ChainIdOrName;
+ address: string;
+};
+
// @public (undocumented)
export enum ChainId {
// (undocumented)
@@ -188,10 +194,21 @@ export enum ChainId {
Rinkeby = 4
}
-// Warning: (ae-internal-missing-underscore) The name "ChainOrRpc" should be prefixed with an underscore because the declaration is marked as @internal
+// Warning: (ae-internal-missing-underscore) The name "ChainIdOrName" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
-export type ChainOrRpc = "mumbai" | "polygon" | "matic" | "rinkeby" | "goerli" | "mainnet" | "ethereum" | "fantom" | "avalanche" | "avalanche-testnet" | "optimism" | "optimism-testnet" | "arbitrum" | "arbitrum-testnet" | (string & {});
+export type ChainIdOrName = "mumbai" | "polygon" | "matic" | "rinkeby" | "goerli" | "mainnet" | "ethereum" | "fantom" | "avalanche" | "avalanche-testnet" | "optimism" | "optimism-testnet" | "arbitrum" | "arbitrum-testnet" | ChainId | (number & {});
+
+// @public
+export class ChainMismatchError extends Error {
+ // Warning: (ae-incompatible-release-tags) The symbol "__constructor" is marked as @public, but its signature references "ChainIdOrName" which is marked as @internal
+ constructor(expectedChainId: ChainIdOrName, actualChainId: number);
+}
+
+// Warning: (ae-internal-missing-underscore) The name "chainNameToId" should be prefixed with an underscore because the declaration is marked as @internal
+//
+// @internal (undocumented)
+export const chainNameToId: Record;
// Warning: (ae-internal-missing-underscore) The name "CidWithFileName" should be prefixed with an underscore because the declaration is marked as @internal
//
@@ -242,23 +259,23 @@ export const ClaimConditionInputArray: z.ZodArray, "many">;
@@ -292,23 +309,23 @@ export const ClaimConditionInputSchema: z.ZodObject<{
address: string;
maxClaimable: string;
}[] | undefined;
- quantityLimitPerTransaction: string;
startTime: BigNumber;
- price: string;
currencyAddress: string;
+ price: string;
maxQuantity: string;
+ quantityLimitPerTransaction: string;
waitInSeconds: string;
merkleRootHash: string | number[];
}, {
- quantityLimitPerTransaction?: string | number | undefined;
- startTime?: Date | undefined;
- price?: string | number | undefined;
snapshot?: string[] | {
maxClaimable?: string | number | undefined;
address: string;
}[] | undefined;
+ startTime?: Date | undefined;
currencyAddress?: string | undefined;
+ price?: string | number | undefined;
maxQuantity?: string | number | undefined;
+ quantityLimitPerTransaction?: string | number | undefined;
waitInSeconds?: string | number | bigint | BigNumber | undefined;
merkleRootHash?: string | number[] | undefined;
}>;
@@ -368,11 +385,11 @@ export const ClaimConditionOutputSchema: z.ZodObject;
+// @public (undocumented)
+export type ConnectionInfo = {
+ chainId: number;
+ signer: Signer | undefined;
+ provider?: providers.Provider;
+};
+
// Warning: (ae-internal-missing-underscore) The name "CONTRACT_ADDRESSES" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
@@ -566,29 +590,41 @@ export const CONTRACT_ADDRESSES: Record(contractType: TContract["contractType"], contractMetadata: z.input): Promise;
- deployEdition(metadata: NFTContractDeployMetadata): Promise;
- deployEditionDrop(metadata: NFTContractDeployMetadata): Promise;
- deployMarketplace(metadata: MarketplaceContractDeployMetadata): Promise;
+ deployBuiltInContract(contractType: TContract["contractType"], contractMetadata: z.input, chain?: ChainIdOrName): Promise;
+ // Warning: (ae-incompatible-release-tags) The symbol "deployEdition" is marked as @public, but its signature references "ChainIdOrName" which is marked as @internal
+ deployEdition(metadata: NFTContractDeployMetadata, chain?: ChainIdOrName): Promise;
+ // Warning: (ae-incompatible-release-tags) The symbol "deployEditionDrop" is marked as @public, but its signature references "ChainIdOrName" which is marked as @internal
+ deployEditionDrop(metadata: NFTContractDeployMetadata, chain?: ChainIdOrName): Promise;
+ // Warning: (ae-incompatible-release-tags) The symbol "deployMarketplace" is marked as @public, but its signature references "ChainIdOrName" which is marked as @internal
+ deployMarketplace(metadata: MarketplaceContractDeployMetadata, chain?: ChainIdOrName): Promise;
+ // Warning: (ae-incompatible-release-tags) The symbol "deployMultiwrap" is marked as @beta, but its signature references "ChainIdOrName" which is marked as @internal
+ //
// @beta
- deployMultiwrap(metadata: MultiwrapContractDeployMetadata): Promise;
- deployNFTCollection(metadata: NFTContractDeployMetadata): Promise;
- deployNFTDrop(metadata: NFTContractDeployMetadata): Promise;
- deployPack(metadata: NFTContractDeployMetadata): Promise;
+ deployMultiwrap(metadata: MultiwrapContractDeployMetadata, chain?: ChainIdOrName): Promise;
+ // Warning: (ae-incompatible-release-tags) The symbol "deployNFTCollection" is marked as @public, but its signature references "ChainIdOrName" which is marked as @internal
+ deployNFTCollection(metadata: NFTContractDeployMetadata, chain?: ChainIdOrName): Promise;
+ // Warning: (ae-incompatible-release-tags) The symbol "deployNFTDrop" is marked as @public, but its signature references "ChainIdOrName" which is marked as @internal
+ deployNFTDrop(metadata: NFTContractDeployMetadata, chain?: ChainIdOrName): Promise;
+ // Warning: (ae-incompatible-release-tags) The symbol "deployPack" is marked as @public, but its signature references "ChainIdOrName" which is marked as @internal
+ deployPack(metadata: NFTContractDeployMetadata, chain?: ChainIdOrName): Promise;
// @internal
- deploySignatureDrop(metadata: NFTContractDeployMetadata): Promise;
- deploySplit(metadata: SplitContractDeployMetadata): Promise;
- deployToken(metadata: TokenContractDeployMetadata): Promise;
- deployTokenDrop(metadata: TokenContractDeployMetadata): Promise;
- deployVote(metadata: VoteContractDeployMetadata): Promise;
+ deploySignatureDrop(metadata: NFTContractDeployMetadata, chain?: ChainIdOrName): Promise;
+ // Warning: (ae-incompatible-release-tags) The symbol "deploySplit" is marked as @public, but its signature references "ChainIdOrName" which is marked as @internal
+ deploySplit(metadata: SplitContractDeployMetadata, chain?: ChainIdOrName): Promise;
+ // Warning: (ae-incompatible-release-tags) The symbol "deployToken" is marked as @public, but its signature references "ChainIdOrName" which is marked as @internal
+ deployToken(metadata: TokenContractDeployMetadata, chain?: ChainIdOrName): Promise;
+ // Warning: (ae-incompatible-release-tags) The symbol "deployTokenDrop" is marked as @public, but its signature references "ChainIdOrName" which is marked as @internal
+ deployTokenDrop(metadata: TokenContractDeployMetadata, chain?: ChainIdOrName): Promise;
+ // Warning: (ae-incompatible-release-tags) The symbol "deployVote" is marked as @public, but its signature references "ChainIdOrName" which is marked as @internal
+ deployVote(metadata: VoteContractDeployMetadata, chain?: ChainIdOrName): Promise;
// Warning: (ae-forgotten-export) The symbol "ContractRegistry" needs to be exported by the entry point index.d.ts
//
// @internal (undocumented)
- getRegistry(): Promise;
+ getRegistry(chain?: ChainIdOrName): Promise;
// (undocumented)
- updateSignerOrProvider(network: NetworkOrSignerOrProvider): void;
+ updateSigner(signer: Signer | undefined): void;
}
// @public
@@ -858,6 +894,11 @@ export const DEFAULT_IPFS_GATEWAY = "https://gateway.ipfscdn.io/ipfs/";
// @internal (undocumented)
export const DEFAULT_QUERY_ALL_COUNT = 100;
+// Warning: (ae-internal-missing-underscore) The name "defaultRPCMap" should be prefixed with an underscore because the declaration is marked as @internal
+//
+// @internal (undocumented)
+export const defaultRPCMap: Record;
+
// Warning: (ae-forgotten-export) The symbol "DropERC721" needs to be exported by the entry point index.d.ts
// Warning: (ae-forgotten-export) The symbol "BaseDelayedRevealERC721" needs to be exported by the entry point index.d.ts
// Warning: (ae-forgotten-export) The symbol "SignatureDrop" needs to be exported by the entry point index.d.ts
@@ -961,7 +1002,7 @@ export class DuplicateLeafsError extends Error {
//
// @public
export class Edition extends Erc1155 {
- constructor(network: NetworkOrSignerOrProvider, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
+ constructor(connection: ConnectionInfo, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
burn(tokenId: BigNumberish, amount: BigNumberish): Promise;
// (undocumented)
static contractAbi: any;
@@ -1104,7 +1145,7 @@ export class Edition extends Erc1155 {
// @public
export class EditionDrop extends Erc1155 {
- constructor(network: NetworkOrSignerOrProvider, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
+ constructor(connection: ConnectionInfo, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
burn(tokenId: BigNumberish, amount: BigNumberish): Promise;
claim(tokenId: BigNumberish, quantity: BigNumberish, checkERC20Allowance?: boolean): Promise;
claimConditions: DropErc1155ClaimConditions;
@@ -1178,8 +1219,8 @@ export class EditionDrop extends Erc1155 {
trusted_forwarders: string[];
}, {
symbol?: string | undefined;
- description?: string | undefined;
merkle?: Record | undefined;
+ description?: string | undefined;
image?: any;
external_link?: string | undefined;
seller_fee_basis_points?: number | undefined;
@@ -1217,8 +1258,8 @@ export class EditionDrop extends Erc1155 {
}, {
[x: string]: Json;
symbol?: string | undefined;
- description?: string | undefined;
merkle?: Record | undefined;
+ description?: string | undefined;
image?: string | undefined;
external_link?: string | undefined;
seller_fee_basis_points?: number | undefined;
@@ -1248,8 +1289,8 @@ export class EditionDrop extends Erc1155 {
fee_recipient: string;
}, {
symbol?: string | undefined;
- description?: string | undefined;
merkle?: Record | undefined;
+ description?: string | undefined;
image?: any;
external_link?: string | undefined;
seller_fee_basis_points?: number | undefined;
@@ -1426,8 +1467,8 @@ export const EditionMetadataOutputSchema: z.ZodObject<{
image?: string | null | undefined;
external_url?: string | null | undefined;
animation_url?: string | null | undefined;
- uri: string;
id: BigNumber;
+ uri: string;
}, {
[x: string]: Json;
name?: string | undefined;
@@ -1435,8 +1476,8 @@ export const EditionMetadataOutputSchema: z.ZodObject<{
image?: string | null | undefined;
external_url?: string | null | undefined;
animation_url?: string | null | undefined;
- uri: string;
id: string | number | bigint | BigNumber;
+ uri: string;
}>;
}, "strip", z.ZodTypeAny, {
metadata: {
@@ -1446,8 +1487,8 @@ export const EditionMetadataOutputSchema: z.ZodObject<{
image?: string | null | undefined;
external_url?: string | null | undefined;
animation_url?: string | null | undefined;
- uri: string;
id: BigNumber;
+ uri: string;
};
supply: BigNumber;
}, {
@@ -1458,8 +1499,8 @@ export const EditionMetadataOutputSchema: z.ZodObject<{
image?: string | null | undefined;
external_url?: string | null | undefined;
animation_url?: string | null | undefined;
- uri: string;
id: string | number | bigint | BigNumber;
+ uri: string;
};
supply: string | number | bigint | BigNumber;
}>;
@@ -1493,8 +1534,8 @@ export const EditionMetadataWithOwnerOutputSchema: z.ZodObject;
}, {
owner: z.ZodString;
quantityOwned: z.ZodEffects]>, BigNumber, string | number | bigint | BigNumber>;
}>, "strip", z.ZodTypeAny, {
- owner: string;
metadata: {
[x: string]: Json;
name?: string | undefined;
@@ -1517,13 +1557,13 @@ export const EditionMetadataWithOwnerOutputSchema: z.ZodObject;
@@ -1543,7 +1584,7 @@ export const EditionMetadataWithOwnerOutputSchema: z.ZodObject implements UpdateableNetwork, DetectableFeature {
- constructor(contractWrapper: ContractWrapper, storage: IStorage, options?: SDKOptions);
+ constructor(contractWrapper: ContractWrapper, storage: IStorage);
airdrop(tokenId: BigNumberish, addresses: AirdropInput, data?: BytesLike): Promise;
balance(tokenId: BigNumberish): Promise;
balanceOf(address: string, tokenId: BigNumberish): Promise;
@@ -1554,15 +1595,15 @@ export class Erc1155;
// (undocumented)
getAddress(): string;
+ // (undocumented)
+ getChainId(): number;
// @internal (undocumented)
getTokenMetadata(tokenId: BigNumberish): Promise;
isApproved(address: string, operator: string): Promise;
// (undocumented)
mint: Erc1155Mintable | undefined;
// @internal (undocumented)
- onNetworkUpdated(network: NetworkOrSignerOrProvider): void;
- // (undocumented)
- protected options: SDKOptions;
+ onSignerUpdated(signer: Signer | undefined): void;
// (undocumented)
query: Erc1155Enumerable | undefined;
// @internal
@@ -1629,7 +1670,7 @@ export type ERC1155Wrappable = {
//
// @public
export class Erc20 implements UpdateableNetwork, DetectableFeature {
- constructor(contractWrapper: ContractWrapper, storage: IStorage, options?: SDKOptions);
+ constructor(contractWrapper: ContractWrapper, storage: IStorage);
allowance(spender: string): Promise;
allowanceOf(owner: string, spender: string): Promise;
balance(): Promise;
@@ -1639,17 +1680,17 @@ export class Erc20 imp
// (undocumented)
featureName: "ERC20";
get(): Promise;
- // @internal (undocumented)
+ // (undocumented)
getAddress(): string;
+ // (undocumented)
+ getChainId(): number;
// @internal (undocumented)
protected getValue(value: BigNumberish): Promise;
mint: Erc20Mintable | undefined;
// @internal
normalizeAmount(amount: Amount): Promise;
// @internal (undocumented)
- onNetworkUpdated(network: NetworkOrSignerOrProvider): void;
- // (undocumented)
- protected options: SDKOptions;
+ onSignerUpdated(signer: Signer | undefined): void;
setAllowance(spender: string, amount: Amount): Promise;
// (undocumented)
protected storage: IStorage;
@@ -1699,7 +1740,7 @@ export type ERC20Wrappable = {
//
// @public
export class Erc721 implements UpdateableNetwork, DetectableFeature {
- constructor(contractWrapper: ContractWrapper, storage: IStorage, options?: SDKOptions);
+ constructor(contractWrapper: ContractWrapper, storage: IStorage);
balance(): Promise;
balanceOf(address: string): Promise;
// (undocumented)
@@ -1711,6 +1752,8 @@ export class Erc721;
// (undocumented)
getAddress(): string;
+ // (undocumented)
+ getChainId(): number;
// @internal (undocumented)
getTokenMetadata(tokenId: BigNumberish): Promise;
isApproved(address: string, operator: string): Promise;
@@ -1719,9 +1762,7 @@ export class Erc721;
// @internal (undocumented)
- onNetworkUpdated(network: NetworkOrSignerOrProvider): void;
- // (undocumented)
- protected options: SDKOptions;
+ onSignerUpdated(signer: Signer | undefined): void;
ownerOf(tokenId: BigNumberish): Promise;
// (undocumented)
query: Erc721Supply | undefined;
@@ -1981,7 +2022,7 @@ export interface GaslessTransaction {
// Warning: (ae-internal-missing-underscore) The name "getContractAddressByChainId" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
-export function getContractAddressByChainId(chainId: SUPPORTED_CHAIN_ID | ChainId.Hardhat, contractName: keyof typeof CONTRACT_ADDRESSES[SUPPORTED_CHAIN_ID]): string;
+export function getContractAddressByChainId(chainId: SUPPORTED_CHAIN_ID | ChainId.Hardhat | ChainId.Localhost, contractName: keyof typeof CONTRACT_ADDRESSES[SUPPORTED_CHAIN_ID]): string;
// Warning: (ae-internal-missing-underscore) The name "getContractPublisherAddress" should be prefixed with an underscore because the declaration is marked as @internal
//
@@ -1991,19 +2032,24 @@ export function getContractPublisherAddress(): string;
// @public
export function getNativeTokenByChainId(chainId: ChainId): NativeToken;
-// Warning: (ae-internal-missing-underscore) The name "getProviderForNetwork" should be prefixed with an underscore because the declaration is marked as @internal
+// Warning: (ae-internal-missing-underscore) The name "getProviderForChain" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
-export function getProviderForNetwork(network: ChainOrRpc | SignerOrProvider): string | ethers.Signer | ethers.providers.Provider;
+export function getProviderForChain(chainId: number, customRpcMap?: Record): Provider;
// @public (undocumented)
-export function getReadOnlyProvider(network: string, chainId?: number): ethers.providers.BaseProvider;
+export function getReadOnlyProvider(network: string, chainId: number): ethers.providers.BaseProvider;
// Warning: (ae-internal-missing-underscore) The name "getRoleHash" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
export function getRoleHash(role: Role): BytesLike;
+// Warning: (ae-internal-missing-underscore) The name "getRpcUrl" should be prefixed with an underscore because the declaration is marked as @internal
+//
+// @internal (undocumented)
+export function getRpcUrl(chainId: number, customRpcMap?: Record): string;
+
// Warning: (ae-internal-missing-underscore) The name "hasFunction" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
@@ -2155,7 +2201,7 @@ export enum ListingType {
// @public
export class Marketplace implements UpdateableNetwork {
- constructor(network: NetworkOrSignerOrProvider, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
+ constructor(connection: ConnectionInfo, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
allowListingFromAnyAsset(): Promise;
allowListingFromSpecificAssetOnly(contractAddress: string): Promise;
auction: MarketplaceAuction;
@@ -2182,6 +2228,8 @@ export class Marketplace implements UpdateableNetwork {
getAll: (filter?: MarketplaceFilter) => Promise<(AuctionListing | DirectListing)[]>;
getAllListings(filter?: MarketplaceFilter): Promise<(AuctionListing | DirectListing)[]>;
getBidBufferBps(): Promise;
+ // (undocumented)
+ getChainId(): number;
getListing(listingId: BigNumberish): Promise;
getTimeBufferInSeconds(): Promise;
getTotalCount(): Promise;
@@ -2191,7 +2239,7 @@ export class Marketplace implements UpdateableNetwork {
// (undocumented)
metadata: ContractMetadata;
// (undocumented)
- onNetworkUpdated(network: NetworkOrSignerOrProvider): void;
+ onSignerUpdated(signer: Signer | undefined): void;
// (undocumented)
platformFees: ContractPlatformFee;
// (undocumented)
@@ -2378,7 +2426,7 @@ export class MissingRoleError extends Error {
// @beta
export class Multiwrap extends Erc721 {
- constructor(network: NetworkOrSignerOrProvider, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
+ constructor(connection: ConnectionInfo, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
// (undocumented)
static contractAbi: any;
// (undocumented)
@@ -2556,7 +2604,7 @@ export interface NewDirectListing {
// @public
export class NFTCollection extends Erc721 {
- constructor(network: NetworkOrSignerOrProvider, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
+ constructor(connection: ConnectionInfo, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
burn(tokenId: BigNumberish): Promise;
// (undocumented)
static contractAbi: any;
@@ -2713,7 +2761,7 @@ export interface NFTContractDeployMetadata {
// @public
export class NFTDrop extends Erc721 {
- constructor(network: NetworkOrSignerOrProvider, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
+ constructor(connection: ConnectionInfo, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
burn(tokenId: BigNumberish): Promise;
claim(quantity: BigNumberish, checkERC20Allowance?: boolean): Promise[]>;
claimConditions: DropClaimConditions;
@@ -2787,8 +2835,8 @@ export class NFTDrop extends Erc721 {
trusted_forwarders: string[];
}, {
symbol?: string | undefined;
- description?: string | undefined;
merkle?: Record | undefined;
+ description?: string | undefined;
image?: any;
external_link?: string | undefined;
seller_fee_basis_points?: number | undefined;
@@ -2826,8 +2874,8 @@ export class NFTDrop extends Erc721 {
}, {
[x: string]: Json;
symbol?: string | undefined;
- description?: string | undefined;
merkle?: Record | undefined;
+ description?: string | undefined;
image?: string | undefined;
external_link?: string | undefined;
seller_fee_basis_points?: number | undefined;
@@ -2857,8 +2905,8 @@ export class NFTDrop extends Erc721 {
fee_recipient: string;
}, {
symbol?: string | undefined;
- description?: string | undefined;
merkle?: Record | undefined;
+ description?: string | undefined;
image?: any;
external_link?: string | undefined;
seller_fee_basis_points?: number | undefined;
@@ -2925,7 +2973,7 @@ export const OZ_DEFENDER_FORWARDER_ADDRESS = "0xc82BbE41f2cF04e3a8efA18F7032BDD7
//
// @public
export class Pack extends Erc1155 {
- constructor(network: NetworkOrSignerOrProvider, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
+ constructor(connection: ConnectionInfo, address: string, storage: IStorage, options?: SDKOptions, contractWrapper?: ContractWrapper);
// (undocumented)
static contractAbi: any;
// (undocumented)
@@ -2941,8 +2989,8 @@ export class Pack extends Erc1155 {
image?: string | null | undefined;
external_url?: string | null | undefined;
animation_url?: string | null | undefined;
- uri: string;
id: BigNumber;
+ uri: string;
};
supply: BigNumber;
}>>;
@@ -3094,27 +3142,27 @@ export const PartialClaimConditionInputSchema: z.ZodObject<{
address: string;
}>, "many">]>>>;
}, "strip", z.ZodTypeAny, {
- quantityLimitPerTransaction?: string | undefined;
- startTime?: BigNumber | undefined;
- price?: string | undefined;
snapshot?: {
address: string;
maxClaimable: string;
}[] | undefined;
+ startTime?: BigNumber | undefined;
currencyAddress?: string | undefined;
+ price?: string | undefined;
maxQuantity?: string | undefined;
+ quantityLimitPerTransaction?: string | undefined;
waitInSeconds?: string | undefined;
merkleRootHash?: string | number[] | undefined;
}, {
- quantityLimitPerTransaction?: string | number | undefined;
- startTime?: Date | undefined;
- price?: string | number | undefined;
snapshot?: string[] | {
maxClaimable?: string | number | undefined;
address: string;
}[] | undefined;
+ startTime?: Date | undefined;
currencyAddress?: string | undefined;
+ price?: string | number | undefined;
maxQuantity?: string | number | undefined;
+ quantityLimitPerTransaction?: string | number | undefined;
waitInSeconds?: string | number | bigint | BigNumber | undefined;
merkleRootHash?: string | number[] | undefined;
}>;
@@ -3327,6 +3375,7 @@ export type SDKOptions = z.input;
// @public (undocumented)
export const SDKOptionsSchema: z.ZodDefault>;
readonlySettings: z.ZodOptional;
@@ -3396,6 +3445,7 @@ export const SDKOptionsSchema: z.ZodDefault]>>;
}, "strip", z.ZodTypeAny, {
+ chainIdToRPCUrlMap?: Record | undefined;
readonlySettings?: {
chainId?: number | undefined;
rpcUrl: string;
@@ -3417,6 +3467,7 @@ export const SDKOptionsSchema: z.ZodDefault | undefined;
readonlySettings?: {
chainId?: number | undefined;
rpcUrl: string;
@@ -3519,15 +3570,13 @@ export const Signature1155PayloadInput: z.ZodObject]>, BigNumber, string | number | bigint | BigNumber>, string, string | number | bigint | BigNumber>;
}>, "strip", z.ZodTypeAny, {
to: string;
- primarySaleRecipient: string;
- royaltyRecipient: string;
- royaltyBps: number;
- quantity: string;
- uid: string;
- price: string;
currencyAddress: string;
+ price: string;
mintStartTime: BigNumber;
mintEndTime: BigNumber;
+ uid: string;
+ primarySaleRecipient: string;
+ quantity: string;
metadata: string | {
[x: string]: Json;
name?: string | undefined;
@@ -3539,16 +3588,16 @@ export const Signature1155PayloadInput: z.ZodObject | Record[] | undefined;
attributes?: Record | Record[] | undefined;
};
+ royaltyRecipient: string;
+ royaltyBps: number;
}, {
to?: string | undefined;
- primarySaleRecipient?: string | undefined;
- royaltyRecipient?: string | undefined;
- royaltyBps?: number | undefined;
- uid?: string | undefined;
- price?: string | number | undefined;
currencyAddress?: string | undefined;
+ price?: string | number | undefined;
mintStartTime?: Date | undefined;
mintEndTime?: Date | undefined;
+ uid?: string | undefined;
+ primarySaleRecipient?: string | undefined;
metadata?: string | {
[x: string]: Json;
name?: string | undefined;
@@ -3560,6 +3609,8 @@ export const Signature1155PayloadInput: z.ZodObject | Record[] | undefined;
attributes?: Record | Record[] | undefined;
} | undefined;
+ royaltyRecipient?: string | undefined;
+ royaltyBps?: number | undefined;
quantity: string | number | bigint | BigNumber;
}>;
@@ -3645,16 +3696,13 @@ export const Signature1155PayloadInputWithTokenId: z.ZodObject]>, BigNumber, string | number | bigint | BigNumber>, string, string | number | bigint | BigNumber>;
}>, "strip", z.ZodTypeAny, {
to: string;
- primarySaleRecipient: string;
- tokenId: string;
- royaltyRecipient: string;
- royaltyBps: number;
- quantity: string;
- uid: string;
- price: string;
currencyAddress: string;
+ price: string;
mintStartTime: BigNumber;
mintEndTime: BigNumber;
+ uid: string;
+ primarySaleRecipient: string;
+ quantity: string;
metadata: string | {
[x: string]: Json;
name?: string | undefined;
@@ -3666,16 +3714,17 @@ export const Signature1155PayloadInputWithTokenId: z.ZodObject | Record[] | undefined;
attributes?: Record | Record[] | undefined;
};
+ royaltyRecipient: string;
+ royaltyBps: number;
+ tokenId: string;
}, {
to?: string | undefined;
- primarySaleRecipient?: string | undefined;
- royaltyRecipient?: string | undefined;
- royaltyBps?: number | undefined;
- uid?: string | undefined;
- price?: string | number | undefined;
currencyAddress?: string | undefined;
+ price?: string | number | undefined;
mintStartTime?: Date | undefined;
mintEndTime?: Date | undefined;
+ uid?: string | undefined;
+ primarySaleRecipient?: string | undefined;
metadata?: string | {
[x: string]: Json;
name?: string | undefined;
@@ -3687,8 +3736,10 @@ export const Signature1155PayloadInputWithTokenId: z.ZodObject | Record[] | undefined;
attributes?: Record | Record[] | undefined;
} | undefined;
- tokenId: string | number | bigint | BigNumber;
+ royaltyRecipient?: string | undefined;
+ royaltyBps?: number | undefined;
quantity: string | number | bigint | BigNumber;
+ tokenId: string | number | bigint | BigNumber;
}>;
// Warning: (ae-internal-missing-underscore) The name "Signature1155PayloadOutput" should be prefixed with an underscore because the declaration is marked as @internal
@@ -3746,17 +3797,14 @@ export const Signature1155PayloadOutput: z.ZodObject]>, BigNumber, string | number | bigint | BigNumber>;
}>, "strip", z.ZodTypeAny, {
to: string;
- primarySaleRecipient: string;
- uri: string;
- tokenId: BigNumber;
- royaltyRecipient: string;
- royaltyBps: BigNumber;
- quantity: BigNumber;
- uid: string;
- price: string;
currencyAddress: string;
+ price: string;
+ uri: string;
mintStartTime: BigNumber;
mintEndTime: BigNumber;
+ uid: string;
+ primarySaleRecipient: string;
+ quantity: BigNumber;
metadata: string | {
[x: string]: Json;
name?: string | undefined;
@@ -3768,19 +3816,20 @@ export const Signature1155PayloadOutput: z.ZodObject | Record[] | undefined;
attributes?: Record | Record[] | undefined;
};
+ royaltyRecipient: string;
+ royaltyBps: BigNumber;
+ tokenId: BigNumber;
}, {
to?: string | undefined;
+ currencyAddress?: string | undefined;
+ price?: string | number | undefined;
+ uid?: string | undefined;
primarySaleRecipient?: string | undefined;
royaltyRecipient?: string | undefined;
- uid?: string | undefined;
- price?: string | number | undefined;
- currencyAddress?: string | undefined;
uri: string;
- tokenId: string | number | bigint | BigNumber;
- royaltyBps: string | number | bigint | BigNumber;
- quantity: string | number | bigint | BigNumber;
mintStartTime: string | number | bigint | BigNumber;
mintEndTime: string | number | bigint | BigNumber;
+ quantity: string | number | bigint | BigNumber;
metadata: string | {
[x: string]: Json;
name?: string | undefined;
@@ -3792,6 +3841,8 @@ export const Signature1155PayloadOutput: z.ZodObject | Record[] | undefined;
attributes?: Record | Record[] | undefined;
};
+ royaltyBps: string | number | bigint | BigNumber;
+ tokenId: string | number | bigint | BigNumber;
}>;
// Warning: (ae-internal-missing-underscore) The name "Signature20PayloadInput" should be prefixed with an underscore because the declaration is marked as @internal
@@ -3809,21 +3860,21 @@ export const Signature20PayloadInput: z.ZodObject, string, string | number>;
}>, "strip", z.ZodTypeAny, {
to: string;
- primarySaleRecipient: string;
- quantity: string;
- uid: string;
- price: string;
currencyAddress: string;
+ price: string;
mintStartTime: BigNumber;
mintEndTime: BigNumber;
+ uid: string;
+ primarySaleRecipient: string;
+ quantity: string;
}, {
to?: string | undefined;
- primarySaleRecipient?: string | undefined;
- uid?: string | undefined;
- price?: string | number | undefined;
currencyAddress?: string | undefined;
+ price?: string | number | undefined;
mintStartTime?: Date | undefined;
mintEndTime?: Date | undefined;
+ uid?: string | undefined;
+ primarySaleRecipient?: string | undefined;
quantity: string | number;
}>;
@@ -3845,22 +3896,22 @@ export const Signature20PayloadOutput: z.ZodObject]>, BigNumber, string | number | bigint | BigNumber>;
}>, "strip", z.ZodTypeAny, {
to: string;
- primarySaleRecipient: string;
- quantity: string;
- uid: string;
- price: string;
currencyAddress: string;
+ price: string;
mintStartTime: BigNumber;
mintEndTime: BigNumber;
+ uid: string;
+ primarySaleRecipient: string;
+ quantity: string;
}, {
to?: string | undefined;
- primarySaleRecipient?: string | undefined;
- uid?: string | undefined;
- price?: string | number | undefined;
currencyAddress?: string | undefined;
- quantity: string | number;
+ price?: string | number | undefined;
+ uid?: string | undefined;
+ primarySaleRecipient?: string | undefined;
mintStartTime: string | number | bigint | BigNumber;
mintEndTime: string | number | bigint | BigNumber;
+ quantity: string | number;
}>;
// Warning: (ae-internal-missing-underscore) The name "Signature721PayloadInput" should be prefixed with an underscore because the declaration is marked as @internal
@@ -3910,14 +3961,12 @@ export const Signature721PayloadInput: z.ZodObject