Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bbc2e092b8 | ||
|
|
4c3c840d88 | ||
|
|
cf606665fc | ||
|
|
3871068aa6 | ||
|
|
d00ca7fd2a |
@@ -1,5 +1,12 @@
|
||||
# @thirdweb-dev/auth
|
||||
|
||||
## 4.1.21
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`cf606665`](https://github.com/thirdweb-dev/js/commit/cf606665fcfdad7b08259350d39b60313278a8dc)]:
|
||||
- @thirdweb-dev/wallets@2.3.4
|
||||
|
||||
## 4.1.20
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/auth",
|
||||
"version": "4.1.20",
|
||||
"version": "4.1.21",
|
||||
"main": "dist/thirdweb-dev-auth.cjs.js",
|
||||
"module": "dist/thirdweb-dev-auth.esm.js",
|
||||
"browser": {
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# thirdweb
|
||||
|
||||
## 0.13.29
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`cf606665`](https://github.com/thirdweb-dev/js/commit/cf606665fcfdad7b08259350d39b60313278a8dc)]:
|
||||
- @thirdweb-dev/wallets@2.3.4
|
||||
- @thirdweb-dev/sdk@4.0.25
|
||||
- @thirdweb-dev/auth@4.1.21
|
||||
|
||||
## 0.13.28
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "thirdweb",
|
||||
"main": "dist/cli/index.js",
|
||||
"version": "0.13.28",
|
||||
"version": "0.13.29",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/cli",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @thirdweb-dev/payments
|
||||
|
||||
## 1.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2115](https://github.com/thirdweb-dev/js/pull/2115) [`d00ca7fd`](https://github.com/thirdweb-dev/js/commit/d00ca7fd2a0fa3e694bb37d1f486d3d4cf1ad79e) Thanks [@IDubuque](https://github.com/IDubuque)! - Update exports with new payments interface
|
||||
|
||||
## 1.0.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/payments",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"main": "dist/thirdweb-dev-payments.cjs.js",
|
||||
"module": "dist/thirdweb-dev-payments.esm.js",
|
||||
"types": "dist/thirdweb-dev-payments.cjs.d.ts",
|
||||
|
||||
@@ -1,5 +1,18 @@
|
||||
# @thirdweb-dev/react-core
|
||||
|
||||
## 4.2.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2119](https://github.com/thirdweb-dev/js/pull/2119) [`cf606665`](https://github.com/thirdweb-dev/js/commit/cf606665fcfdad7b08259350d39b60313278a8dc) Thanks [@MananTank](https://github.com/MananTank)! - Update Links to Docs website
|
||||
|
||||
- Updated dependencies [[`cf606665`](https://github.com/thirdweb-dev/js/commit/cf606665fcfdad7b08259350d39b60313278a8dc)]:
|
||||
- @thirdweb-dev/wallets@2.3.4
|
||||
- @thirdweb-dev/sdk@4.0.25
|
||||
- @thirdweb-dev/auth@4.1.21
|
||||
|
||||
## 4.2.1
|
||||
|
||||
## 4.2.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react-core",
|
||||
"version": "4.2.0",
|
||||
"version": "4.2.2",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-core",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -204,7 +204,7 @@ export function useWallets() {
|
||||
* #### walletConfig
|
||||
* The wallet to connect. Must be of type `WalletConfig`.
|
||||
*
|
||||
* [Learn more about the available wallet options](https://portal.thirdweb.com/react/connecting-wallets).
|
||||
* [Learn more about the available wallet options](https://portal.thirdweb.com/react/v4/connecting-wallets).
|
||||
*
|
||||
* #### connectOptions
|
||||
* The typeof `connectOptions` object depends on the wallet you are connecting. For some wallets, it may be optional
|
||||
@@ -288,7 +288,7 @@ export function useConnectionStatus() {
|
||||
/**
|
||||
* Hook for setting the `connectionStatus` of the wallet which is returned by the `useConnectionStatus` hook
|
||||
*
|
||||
* This is only useful if you are manually connecting a wallet instance as mentioned in [Build your Wallet](https://portal.thirdweb.com/wallet/build-a-wallet)
|
||||
* This is only useful if you are manually connecting a wallet instance as mentioned in [Build your Wallet](https://portal.thirdweb.com/wallet-sdk/v2/build)
|
||||
*
|
||||
* @example
|
||||
*
|
||||
@@ -418,7 +418,7 @@ export function useSwitchChain() {
|
||||
/**
|
||||
* Hook for setting a wallet instance as "connected" - once done, the wallet connection hooks like `useWallet`, `useAddress`, `useSigner`, `useConnectionStatus` etc will return the data for that wallet instance
|
||||
*
|
||||
* This is only useful if you are manually connecting a wallet instance as mentioned in [Build your Wallet](https://portal.thirdweb.com/wallet/build-a-wallet)
|
||||
* This is only useful if you are manually connecting a wallet instance as mentioned in [Build your Wallet](https://portal.thirdweb.com/wallet-sdk/v2/build)
|
||||
*
|
||||
* @example
|
||||
*
|
||||
|
||||
@@ -13,7 +13,7 @@ export interface ISecureStorage {
|
||||
}
|
||||
|
||||
/**
|
||||
* The configuration to use by the React and React Native SDKs with an [auth](https://portal.thirdweb.com/auth) server.
|
||||
* The configuration to use by the React and React Native SDKs with an [auth](https://portal.thirdweb.com/wallets/auth) server.
|
||||
* @auth
|
||||
*/
|
||||
export interface ThirdwebAuthConfig {
|
||||
|
||||
@@ -172,7 +172,7 @@ export function useActiveClaimCondition(
|
||||
}
|
||||
|
||||
/**
|
||||
* Hook to get the claimer proofs for an address for [ERC20](https://portal.thirdweb.com/solidity/base-contracts/erc20drop), [ERC721](https://portal.thirdweb.com/solidity/base-contracts/erc721drop), and [ERC1155](https://portal.thirdweb.com/solidity/base-contracts/erc1155drop) drop contracts.
|
||||
* Hook to get the claimer proofs for an address for [ERC20](https://portal.thirdweb.com/contracts/build/base-contracts/erc-20/drop), [ERC721](https://portal.thirdweb.com/contracts/build/base-contracts/erc-721/drop), and [ERC1155](https://portal.thirdweb.com/contracts/build/base-contracts/erc-1155/drop) drop contracts.
|
||||
*
|
||||
* A claimer proof is a set of data about a claimer's claim condition, including the claimer's address, the claimer's proof, and the claimer's max claimable amount, price, and currency address.
|
||||
*
|
||||
@@ -875,9 +875,9 @@ export function useSetClaimConditions(
|
||||
* Hook for resetting the claim conditions on a drop contract.
|
||||
*
|
||||
* Available to use on contracts that implement
|
||||
* [`ERC721ClaimableWithConditions`](https://portal.thirdweb.com/solidity/extensions/erc721claimconditions),
|
||||
* [`ERC1155ClaimableWithConditions`](https://portal.thirdweb.com/solidity/extensions/erc1155claimconditions) or
|
||||
* [`ERC20ClaimableWithConditions`](https://portal.thirdweb.com/solidity/extensions/erc20claimconditions).
|
||||
* [`ERC721ClaimableWithConditions`](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721ClaimConditions),
|
||||
* [`ERC1155ClaimableWithConditions`](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155ClaimConditions) or
|
||||
* [`ERC20ClaimableWithConditions`](https://portal.thirdweb.com/contracts/build/extensions/erc-20/ERC20ClaimConditions).
|
||||
*
|
||||
* @example
|
||||
* ```jsx
|
||||
|
||||
@@ -27,7 +27,7 @@ import invariant from "tiny-invariant";
|
||||
/**
|
||||
* Hook for getting the primary sales recipient of a smart contract.
|
||||
*
|
||||
* Available to use on contracts that implement the [`PrimarySale`](https://portal.thirdweb.com/solidity/extensions/primarysale) interface.
|
||||
* Available to use on contracts that implement the [`PrimarySale`](https://portal.thirdweb.com/contracts/build/extensions/general/PrimarySale) interface.
|
||||
*
|
||||
* @example
|
||||
* ```jsx
|
||||
@@ -67,7 +67,7 @@ export function usePrimarySaleRecipient(
|
||||
/**
|
||||
* Hook for updating the primary sale recipient on a smart contract.
|
||||
*
|
||||
* Available to use on smart contracts that implement the [`PrimarySale`](https://portal.thirdweb.com/solidity/extensions/primarysale) interface.
|
||||
* Available to use on smart contracts that implement the [`PrimarySale`](https://portal.thirdweb.com/contracts/build/extensions/general/PrimarySale) interface.
|
||||
*
|
||||
* The wallet that initiates this transaction must have the required permissions to change the primary sale recipient (defaults to `"admin"` level).
|
||||
*
|
||||
@@ -156,7 +156,7 @@ export function useUpdatePrimarySaleRecipient(
|
||||
/**
|
||||
* Hook for retrieving royalty settings of a smart contract.
|
||||
*
|
||||
* Available to use on contracts that implement the [`Royalty`](https://portal.thirdweb.com/solidity/extensions/royalty) interface.
|
||||
* Available to use on contracts that implement the [`Royalty`](https://portal.thirdweb.com/contracts/build/extensions/general/Royalty) interface.
|
||||
*
|
||||
* @example
|
||||
* ```jsx
|
||||
@@ -214,7 +214,7 @@ export function useRoyaltySettings(
|
||||
/**
|
||||
* Hook for updating royalty settings on a smart contract.
|
||||
*
|
||||
* Available to use on smart contracts that implement the [`Royalty`](https://portal.thirdweb.com/solidity/extensions/royalty) interface.
|
||||
* Available to use on smart contracts that implement the [`Royalty`](https://portal.thirdweb.com/contracts/build/extensions/general/Royalty) interface.
|
||||
*
|
||||
* @example
|
||||
* ```jsx
|
||||
@@ -310,7 +310,7 @@ export function useUpdateRoyaltySettings(
|
||||
/**
|
||||
* Hook for getting the platform fee settings of a contract.
|
||||
*
|
||||
* Available to use on contracts that implement the [`PlatformFee`](https://portal.thirdweb.com/solidity/extensions/platformfee) interface.
|
||||
* Available to use on contracts that implement the [`PlatformFee`](https://portal.thirdweb.com/contracts/build/extensions/general/PlatformFee) interface.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
@@ -370,7 +370,7 @@ export function usePlatformFees(
|
||||
/**
|
||||
* Hook for updating platform fees on a smart contract.
|
||||
*
|
||||
* Available to use on smart contracts that implement the [`PlatformFee`](https://portal.thirdweb.com/solidity/extensions/platformfee) interface.
|
||||
* Available to use on smart contracts that implement the [`PlatformFee`](https://portal.thirdweb.com/contracts/build/extensions/general/PlatformFee) interface.
|
||||
*
|
||||
* ```jsx
|
||||
* import {
|
||||
@@ -466,7 +466,7 @@ export function useUpdatePlatformFees(
|
||||
/**
|
||||
* Hook for getting the metadata associated with a smart contract.
|
||||
*
|
||||
* Available to use on contracts that implement the [Contract Metadata](https://portal.thirdweb.com/solidity/extensions/contractmetadata) interface.
|
||||
* Available to use on contracts that implement the [Contract Metadata](https://portal.thirdweb.com/contracts/build/extensions/general/ContractMetadata) interface.
|
||||
*
|
||||
* @example
|
||||
* ```jsx
|
||||
|
||||
@@ -107,7 +107,7 @@ export function useUnclaimedNFTs(
|
||||
/**
|
||||
* Hook for fetching all claimed NFTs from a given NFT Drop contract.
|
||||
*
|
||||
* Available to use on contracts that implement [`ERC721Claimable`](https://portal.thirdweb.com/solidity/extensions/erc721claimable),
|
||||
* Available to use on contracts that implement [`ERC721Claimable`](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721Claimable),
|
||||
* such as the [NFT Drop](https://thirdweb.com/thirdweb.eth/DropERC721).
|
||||
*
|
||||
* @example
|
||||
@@ -174,7 +174,7 @@ export function useClaimedNFTs(
|
||||
*
|
||||
* Unclaimed NFTs are tokens that were lazy-minted but have not yet been claimed by a user.
|
||||
*
|
||||
* Available to use on contracts that implement the [`LazyMint`](https://portal.thirdweb.com/solidity/extensions/lazymint) extension;
|
||||
* Available to use on contracts that implement the [`LazyMint`](https://portal.thirdweb.com/contracts/build/extensions/general/LazyMint) extension;
|
||||
* such as the [NFT Drop](https://thirdweb.com/thirdweb.eth/DropERC721) contract.
|
||||
*
|
||||
* @example
|
||||
@@ -220,7 +220,7 @@ export function useUnclaimedNFTSupply(
|
||||
/**
|
||||
* Hook for retrieving the total supply of NFTs claimed from an NFT Drop contract.
|
||||
*
|
||||
* Available to use on contracts that implement [`ERC721Claimable`](https://portal.thirdweb.com/solidity/extensions/erc721claimable).
|
||||
* Available to use on contracts that implement [`ERC721Claimable`](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721Claimable).
|
||||
*
|
||||
* @example
|
||||
*
|
||||
@@ -262,8 +262,8 @@ export function useClaimedNFTSupply(
|
||||
/**
|
||||
* Hook for fetching batches of lazy-minted NFTs that were set to be revealed at a later date, but have not yet been revealed.
|
||||
*
|
||||
* Available to use on contracts that implement the [ERC721Revealable](https://portal.thirdweb.com/solidity/extensions/erc721revealable)
|
||||
* or [ERC1155Revealable](https://portal.thirdweb.com/solidity/extensions/erc1155revealable) interfaces,
|
||||
* Available to use on contracts that implement the [ERC721Revealable](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721Revealable)
|
||||
* or [ERC1155Revealable](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155Revealable) interfaces,
|
||||
* such as the [NFT Drop](https://thirdweb.com/thirdweb.eth/DropERC721)
|
||||
* and [Edition Drop](https://thirdweb.com/thirdweb.eth/DropERC1155) smart contracts.
|
||||
*
|
||||
@@ -605,8 +605,8 @@ export function useLazyMint<TContract extends DropContract>(
|
||||
* allowing the owner to set placeholder metadata and reveal the metadata of the NFTs at a later time.
|
||||
*
|
||||
* Available to use on contracts that implement the
|
||||
* [ERC721Revealable](https://portal.thirdweb.com/solidity/extensions/erc721revealable)
|
||||
* or [ERC1155Revealable](https://portal.thirdweb.com/solidity/extensions/erc1155revealable)
|
||||
* [ERC721Revealable](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721Revealable)
|
||||
* or [ERC1155Revealable](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155Revealable)
|
||||
* interfaces.
|
||||
*
|
||||
* @example
|
||||
@@ -725,8 +725,8 @@ export function useDelayedRevealLazyMint<TContract extends RevealableContract>(
|
||||
* Hook for revealing a batch of delayed reveal NFTs using [delayed reveal](https://portal.thirdweb.com/glossary/delayed-reveal).
|
||||
*
|
||||
* Available to use on contracts that implement the
|
||||
* [ERC721Revealable](https://portal.thirdweb.com/solidity/extensions/erc721revealable)
|
||||
* or [ERC1155Revealable](https://portal.thirdweb.com/solidity/extensions/erc1155revealable)
|
||||
* [ERC721Revealable](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721Revealable)
|
||||
* or [ERC1155Revealable](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155Revealable)
|
||||
* interfaces.
|
||||
*
|
||||
* ```jsx
|
||||
|
||||
@@ -37,8 +37,8 @@ import invariant from "tiny-invariant";
|
||||
/**
|
||||
* Hook for fetching information about an NFT from a smart contract.
|
||||
*
|
||||
* Available to use on smart contracts that implement the [`ERC721`](https://portal.thirdweb.com/solidity/extensions/erc721)
|
||||
* or [`ERC1155`](https://portal.thirdweb.com/solidity/extensions/erc1155) standard.
|
||||
* Available to use on smart contracts that implement the [`ERC721`](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721)
|
||||
* or [`ERC1155`](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155) standard.
|
||||
*
|
||||
* NFT metadata is automatically fetched from where the `tokenUri` is hosted (e.g. IPFS), and makes the `image`
|
||||
* property available as a URL through our IPFS gateway (if the image is hosted on IPFS).
|
||||
@@ -122,8 +122,8 @@ export function useNFT<TContract extends NFTContract>(
|
||||
/**
|
||||
* Hook to query all NFTs associated with a smart contract.
|
||||
*
|
||||
* Available to use on smart contracts that implement the [`ERC721`](https://portal.thirdweb.com/solidity/extensions/erc721)
|
||||
* or [`ERC1155`](https://portal.thirdweb.com/solidity/extensions/erc1155) standard.
|
||||
* Available to use on smart contracts that implement the [`ERC721`](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721)
|
||||
* or [`ERC1155`](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155) standard.
|
||||
*
|
||||
* NFT metadata is automatically fetched from where the `tokenUri` is hosted (e.g. IPFS), and makes the `image`
|
||||
* property available as a URL through our IPFS gateway (if the image is hosted on IPFS).
|
||||
@@ -184,8 +184,8 @@ export function useNFTs<TContract extends NFTContract>(
|
||||
/**
|
||||
* Hook to get the total count of **unique** NFTs minted on a smart contract.
|
||||
*
|
||||
* Available to use on smart contracts that implement the [`ERC721`](https://portal.thirdweb.com/solidity/extensions/erc721)
|
||||
* or [`ERC1155`](https://portal.thirdweb.com/solidity/extensions/erc1155) standard.
|
||||
* Available to use on smart contracts that implement the [`ERC721`](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721)
|
||||
* or [`ERC1155`](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155) standard.
|
||||
*
|
||||
* When used for ERC1155 contracts, the total count is the number of unique token IDs minted, _not_ the total supply of all tokens in circulation.
|
||||
*
|
||||
@@ -242,8 +242,8 @@ export function useTotalCount<TContract extends NFTContract>(
|
||||
*
|
||||
* This takes into account the increase in supply due to minting and the decrease in supply due to burning.
|
||||
*
|
||||
* Available to use on contracts that implement either the [ERC721](https://portal.thirdweb.com/solidity/extensions/erc721)
|
||||
* or [ERC1155](https://portal.thirdweb.com/solidity/extensions/erc1155) standard.
|
||||
* Available to use on contracts that implement either the [ERC721](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721)
|
||||
* or [ERC1155](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155) standard.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
@@ -370,9 +370,9 @@ export function useOwnedNFTs<TContract extends NFTContract>(
|
||||
}
|
||||
|
||||
/**
|
||||
* Hook to get the quantity a user owns of a specific [ERC1155](https://portal.thirdweb.com/solidity/extensions/erc1155) NFT.
|
||||
* Hook to get the quantity a user owns of a specific [ERC1155](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155) NFT.
|
||||
*
|
||||
* Available to use on smart contracts that implement the [`ERC1155`](https://portal.thirdweb.com/solidity/extensions/erc1155) standard.
|
||||
* Available to use on smart contracts that implement the [`ERC1155`](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155) standard.
|
||||
*
|
||||
* @example
|
||||
* ```jsx
|
||||
@@ -479,8 +479,8 @@ export function useSharedMetadata(
|
||||
/**
|
||||
* Hook for minting a new NFT on a smart contract.
|
||||
*
|
||||
* Available to use on smart contracts that implement the [`ERC721`](https://portal.thirdweb.com/solidity/extensions/erc721)
|
||||
* or [`ERC1155`](https://portal.thirdweb.com/solidity/extensions/erc1155) standard.
|
||||
* Available to use on smart contracts that implement the [`ERC721`](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721)
|
||||
* or [`ERC1155`](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155) standard.
|
||||
*
|
||||
* By default, the process uploads and pins the NFT metadata to IPFS before minting.
|
||||
*
|
||||
@@ -608,7 +608,7 @@ export function useMintNFT<TContract extends NFTContract>(
|
||||
* Hook for minting additional supply to an _existing_ ERC-1155 token.
|
||||
*
|
||||
* Available to use on contracts that implement the
|
||||
* [ERC1155Mintable](https://portal.thirdweb.com/solidity/extensions/erc1155mintable)
|
||||
* [ERC1155Mintable](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155Mintable)
|
||||
* interface, such as the [Edition](https://thirdweb.com/thirdweb.eth/TokenERC1155) or [Edition Drop](https://thirdweb.com/thirdweb.eth/DropERC1155).
|
||||
*
|
||||
* The wallet address that initiates this transaction must have minting permissions on the contract.
|
||||
@@ -717,8 +717,8 @@ export function useMintNFTSupply(contract: Erc1155) {
|
||||
* Hook for transferring ERC721 or ERC1155 NFTs to another wallet address.
|
||||
*
|
||||
* Available to use on contracts that implement either the
|
||||
* [ERC721](https://portal.thirdweb.com/solidity/extensions/erc721)
|
||||
* and [ERC1155](https://portal.thirdweb.com/solidity/extensions/erc1155)
|
||||
* [ERC721](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721)
|
||||
* and [ERC1155](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155)
|
||||
* interfaces, such as the [Edition](https://thirdweb.com/thirdweb.eth/TokenERC1155)
|
||||
* or [NFT Collection](https://thirdweb.com/thirdweb.eth/TokenERC721).
|
||||
*
|
||||
@@ -834,7 +834,7 @@ export function useTransferNFT<TContract extends NFTContract>(
|
||||
}
|
||||
|
||||
/**
|
||||
* Hook for airdropping [`ERC1155`](https://portal.thirdweb.com/solidity/extensions/erc1155) NFT tokens to multiple wallet addresses at once.
|
||||
* Hook for airdropping [`ERC1155`](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155) NFT tokens to multiple wallet addresses at once.
|
||||
*
|
||||
* Available to use on smart contracts that implement the `ERC1155` standard.
|
||||
*
|
||||
@@ -915,8 +915,8 @@ export function useAirdropNFT(contract: Erc1155) {
|
||||
/**
|
||||
* Hook for burning a NFT on a smart contract.
|
||||
*
|
||||
* Available to use on smart contracts that implement the [`ERC721`](https://portal.thirdweb.com/solidity/extensions/erc721)
|
||||
* or [`ERC1155`](https://portal.thirdweb.com/solidity/extensions/erc1155) standard.
|
||||
* Available to use on smart contracts that implement the [`ERC721`](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721)
|
||||
* or [`ERC1155`](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155) standard.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
|
||||
@@ -48,7 +48,7 @@ type GetAllReturnType<TContract extends ContractWithRoles> = Promise<
|
||||
/**
|
||||
* Hook for getting all wallet addresses that have a role in a smart contract.
|
||||
*
|
||||
* Available to use on contracts that implement [`Permissions`](https://portal.thirdweb.com/solidity/extensions/permissions).
|
||||
* Available to use on contracts that implement [`Permissions`](https://portal.thirdweb.com/contracts/build/extensions/general/Permissions).
|
||||
*
|
||||
* @example
|
||||
*
|
||||
@@ -116,7 +116,7 @@ export function useAllRoleMembers<TContract extends ContractWithRoles>(
|
||||
/**
|
||||
* Hook for getting all wallet addresses that have a specific role in a smart contract.
|
||||
*
|
||||
* Available to use on contracts that implement the [`Permissions`](https://portal.thirdweb.com/solidity/extensions/permissions) interface.
|
||||
* Available to use on contracts that implement the [`Permissions`](https://portal.thirdweb.com/contracts/build/extensions/general/Permissions) interface.
|
||||
*
|
||||
* @example
|
||||
* ```jsx
|
||||
@@ -173,7 +173,7 @@ export function useRoleMembers<TContract extends ContractWithRoles>(
|
||||
/**
|
||||
* Hook to check if an address is a member of a role on a smart contract.
|
||||
*
|
||||
* Available to use on contracts that implement [`Permissions`](https://portal.thirdweb.com/solidity/extensions/permissions) interface
|
||||
* Available to use on contracts that implement [`Permissions`](https://portal.thirdweb.com/contracts/build/extensions/general/Permissions) interface
|
||||
*
|
||||
* Provide the following arguments to the hook:
|
||||
*
|
||||
@@ -305,7 +305,7 @@ export function useSetAllRoleMembers<TContract extends ContractWithRoles>(
|
||||
/**
|
||||
* Hook for granting a role on a smart contract.
|
||||
*
|
||||
* Available to use on smart contracts that implement the [`Permissions`](https://portal.thirdweb.com/solidity/extensions/permissions) interface.
|
||||
* Available to use on smart contracts that implement the [`Permissions`](https://portal.thirdweb.com/contracts/build/extensions/general/Permissions) interface.
|
||||
*
|
||||
* @example
|
||||
* ```jsx
|
||||
@@ -403,7 +403,7 @@ export function useGrantRole<TContract extends ContractWithRoles>(
|
||||
/**
|
||||
* Hook for revoking a wallet address from a role on a smart contract.
|
||||
*
|
||||
* Available to use on contracts that implement [`Permissions`](https://portal.thirdweb.com/solidity/extensions/permissions) interface
|
||||
* Available to use on contracts that implement [`Permissions`](https://portal.thirdweb.com/contracts/build/extensions/general/Permissions) interface
|
||||
*
|
||||
* The wallet address that initiates this transaction must have the relevant permissions on the contract to remove the role from the wallet address (typically `"admin"` level required).
|
||||
*
|
||||
|
||||
@@ -138,7 +138,7 @@ export function useTokenBalance(
|
||||
|
||||
/**
|
||||
* Hook for fetching the [decimals](https://docs.openzeppelin.com/contracts/3.x/erc20#a-note-on-decimals)
|
||||
* of an [ERC20](https://portal.thirdweb.com/solidity/extensions/erc20) token.
|
||||
* of an [ERC20](https://portal.thirdweb.com/contracts/build/extensions/erc-20/ERC20) token.
|
||||
*
|
||||
* Tokens usually opt for a value of `18`, imitating the relationship between Ether and Wei.
|
||||
* Therefore, `18` is the default value returned by this function, unless your ERC20 contract explicitly overrides it.
|
||||
@@ -187,7 +187,7 @@ export function useTokenDecimals(contract: RequiredParam<TokenContract>) {
|
||||
/**
|
||||
* Hook for minting new tokens in an ERC20 smart contract.
|
||||
*
|
||||
* Available to use on contracts that implement the [ERC20Mintable](https://portal.thirdweb.com/solidity/extensions/erc20mintable)
|
||||
* Available to use on contracts that implement the [ERC20Mintable](https://portal.thirdweb.com/contracts/build/extensions/erc-20/ERC20BatchMintable)
|
||||
* interface, such as the [Token](https://thirdweb.com/thirdweb.eth/TokenERC20) contract.
|
||||
*
|
||||
* The wallet address that initiates this transaction must have minting permissions on the contract.
|
||||
@@ -286,8 +286,8 @@ export function useMintToken(
|
||||
/**
|
||||
* Hook for claiming a ERC20 tokens from a smart contract.
|
||||
*
|
||||
* Available to use on smart contracts that implement both the [ERC20](https://portal.thirdweb.com/solidity/extensions/erc20) interface
|
||||
* and the [`claim`](https://portal.thirdweb.com/solidity/extensions/erc721claimable) function,
|
||||
* Available to use on smart contracts that implement both the [ERC20](https://portal.thirdweb.com/contracts/build/extensions/erc-20/ERC20) interface
|
||||
* and the [`claim`](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721Claimable) function,
|
||||
* such as the [Token Drop](https://thirdweb.com/thirdweb.eth/DropERC20).
|
||||
*
|
||||
* @example
|
||||
@@ -374,7 +374,7 @@ export function useClaimToken(contract: RequiredParam<TokenContract>) {
|
||||
/**
|
||||
* Hook for transferring tokens on an ERC20 contract.
|
||||
*
|
||||
* Available to use on contracts that implement the [ERC20](https://portal.thirdweb.com/solidity/extensions/erc20)
|
||||
* Available to use on contracts that implement the [ERC20](https://portal.thirdweb.com/contracts/build/extensions/erc-20/ERC20)
|
||||
* interface, such as the [Token](https://thirdweb.com/thirdweb.eth/TokenERC20) contract.
|
||||
*
|
||||
* The wallet address that initiates this transaction must have a balance of tokens
|
||||
@@ -518,7 +518,7 @@ export function useTransferNativeToken() {
|
||||
/**
|
||||
* Hook for transferring ERC20 tokens to multiple recipients in a single transaction (i.e. airdrop).
|
||||
*
|
||||
* Available to use on contracts that implement the [ERC20](https://portal.thirdweb.com/solidity/extensions/erc20) interface.
|
||||
* Available to use on contracts that implement the [ERC20](https://portal.thirdweb.com/contracts/build/extensions/erc-20/ERC20) interface.
|
||||
*
|
||||
* The wallet that initiates this transaction must have sufficient balance to cover the total amount of tokens being transferred
|
||||
* and must have transfer permissions on the contract, i.e. tokens are not soulbound.
|
||||
@@ -620,7 +620,7 @@ export function useTransferBatchToken(contract: RequiredParam<TokenContract>) {
|
||||
/**
|
||||
* Hook for burning ERC20 tokens on a smart contract.
|
||||
*
|
||||
* Available to use on smart contracts that implement the [ERC20](https://portal.thirdweb.com/solidity/extensions/erc20) standard.
|
||||
* Available to use on smart contracts that implement the [ERC20](https://portal.thirdweb.com/contracts/build/extensions/erc-20/ERC20) standard.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
|
||||
@@ -7,7 +7,7 @@ import invariant from "tiny-invariant";
|
||||
import { AUTH_TOKEN_STORAGE_KEY } from "../../../core/constants/auth";
|
||||
|
||||
/**
|
||||
* Hook to prompt the user to sign in with their wallet using [auth](https://portal.thirdweb.com/auth)
|
||||
* Hook to prompt the user to sign in with their wallet using [auth](https://portal.thirdweb.com/wallets/auth)
|
||||
*
|
||||
* Requires the `authConfig` prop to be configured on the `ThirdwebProvider`
|
||||
*
|
||||
|
||||
@@ -16,7 +16,7 @@ export interface UserWithData<
|
||||
}
|
||||
|
||||
/**
|
||||
* Hook for retrieving information about the currently signed-in user using [auth](https://portal.thirdweb.com/auth).
|
||||
* Hook for retrieving information about the currently signed-in user using [auth](https://portal.thirdweb.com/wallets/auth).
|
||||
*
|
||||
* Useful to get the user's address and session data, or `undefined` if no user is signed in.
|
||||
*
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useSDK } from "../useSDK";
|
||||
/**
|
||||
* Get the instance of the `ThirdwebStorage` class being used by the `ThirdwebProvider`
|
||||
*
|
||||
* Allows you to use the TypeScript SDK functionality of [Storage](https://portal.thirdweb.com/storage) in your React app.
|
||||
* Allows you to use the TypeScript SDK functionality of [Storage](https://portal.thirdweb.com/infrastructure/storage/overview) in your React app.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
|
||||
@@ -226,7 +226,7 @@ const WrappedThirdwebSDKProvider = <TChains extends Chain[]>({
|
||||
* This Overrides any of the default values for the SDK. If not provided, it uses sensible defaults.
|
||||
*
|
||||
* ### storageInterface (optional)
|
||||
* Override the default [Storage](https://portal.thirdweb.com/storage) interface used by the SDK.
|
||||
* Override the default [Storage](https://portal.thirdweb.com/infrastructure/storage/overview) interface used by the SDK.
|
||||
*
|
||||
* It allows you to create an instance of `ThirdwebStorage` with your own customized config, and pass it to the SDK.
|
||||
*
|
||||
@@ -265,7 +265,7 @@ const WrappedThirdwebSDKProvider = <TChains extends Chain[]>({
|
||||
* ```
|
||||
*
|
||||
* ### authConfig (optional)
|
||||
* The configuration object for setting up [Auth](https://portal.thirdweb.com/auth); allowing users to sign in with their wallet.
|
||||
* The configuration object for setting up [Auth](https://portal.thirdweb.com/wallets/auth); allowing users to sign in with their wallet.
|
||||
*
|
||||
* ### secretKey (optional)
|
||||
* secretKey for thirdweb services. This is only required if server side rendering is being used.
|
||||
|
||||
@@ -47,7 +47,7 @@ export interface ThirdwebSDKProviderProps<TChains extends Chain[]>
|
||||
sdkOptions?: Omit<SDKOptions, "chains">;
|
||||
|
||||
/**
|
||||
* Override the default [Storage](https://portal.thirdweb.com/storage) interface used by the SDK.
|
||||
* Override the default [Storage](https://portal.thirdweb.com/infrastructure/storage/overview) interface used by the SDK.
|
||||
*
|
||||
* It allows you to create an instance of `ThirdwebStorage` with your own customized config, and pass it to the SDK.
|
||||
*
|
||||
@@ -89,7 +89,7 @@ export interface ThirdwebSDKProviderProps<TChains extends Chain[]>
|
||||
storageInterface?: IThirdwebStorage;
|
||||
|
||||
/**
|
||||
* The configuration object for setting up [Auth](https://portal.thirdweb.com/auth); allowing users to sign in with their wallet.
|
||||
* The configuration object for setting up [Auth](https://portal.thirdweb.com/wallets/auth); allowing users to sign in with their wallet.
|
||||
*/
|
||||
authConfig?: ThirdwebAuthConfig;
|
||||
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
# @thirdweb-dev/react-native-compat
|
||||
|
||||
## 0.5.5
|
||||
|
||||
## 0.5.4
|
||||
|
||||
## 0.5.3
|
||||
|
||||
## 0.5.2
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react-native-compat",
|
||||
"description": "Shims for Thirdweb in React Native Projects",
|
||||
"version": "0.5.3",
|
||||
"version": "0.5.5",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native-compat",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,25 @@
|
||||
# @thirdweb-dev/react-native
|
||||
|
||||
## 0.5.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2119](https://github.com/thirdweb-dev/js/pull/2119) [`cf606665`](https://github.com/thirdweb-dev/js/commit/cf606665fcfdad7b08259350d39b60313278a8dc) Thanks [@MananTank](https://github.com/MananTank)! - Update Links to Docs website
|
||||
|
||||
- [#2092](https://github.com/thirdweb-dev/js/pull/2092) [`4c3c840d`](https://github.com/thirdweb-dev/js/commit/4c3c840d8815915840d0819932aa0a858c5d3184) Thanks [@iketw](https://github.com/iketw)! - Export WalletConnect modal component
|
||||
|
||||
- Updated dependencies [[`cf606665`](https://github.com/thirdweb-dev/js/commit/cf606665fcfdad7b08259350d39b60313278a8dc)]:
|
||||
- @thirdweb-dev/react-core@4.2.2
|
||||
- @thirdweb-dev/wallets@2.3.4
|
||||
- @thirdweb-dev/sdk@4.0.25
|
||||
|
||||
## 0.5.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies []:
|
||||
- @thirdweb-dev/react-core@4.2.1
|
||||
|
||||
## 0.5.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react-native",
|
||||
"version": "0.5.3",
|
||||
"version": "0.5.5",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -56,7 +56,7 @@ export type ConnectWalletProps = {
|
||||
|
||||
/**
|
||||
* Whether to show "Switch Network" button if the wallet is connected,
|
||||
* but it is not connected to the `activeChain` provided in `ThirdwebProvider`
|
||||
* but it is not connected to the `activeChain` provided in [`ThirdwebProvider`](https://portal.thirdweb.com/react-native/v0/ThirdwebProvider)
|
||||
*
|
||||
* Please, note that if you support multiple networks in your app this prop should
|
||||
* be set to `false` to allow users to switch between networks.
|
||||
|
||||
@@ -120,7 +120,7 @@ export const ConnectWalletFlow = () => {
|
||||
connected={handleClose}
|
||||
isOpen={modalVisible}
|
||||
show={onOpenModal}
|
||||
hide={() => {}}
|
||||
hide={handleClose}
|
||||
walletConfig={activeWallet}
|
||||
supportedWallets={supportedWallets}
|
||||
selectionData={selectionData}
|
||||
|
||||
+2
@@ -25,6 +25,7 @@ export const SmartWalletFlow = ({
|
||||
goBack,
|
||||
walletConfig,
|
||||
personalWalletConfig,
|
||||
hide,
|
||||
...props
|
||||
}: ConnectUIProps<SmartWallet> & { personalWalletConfig: WalletConfig }) => {
|
||||
const l = useLocale();
|
||||
@@ -124,6 +125,7 @@ export const SmartWalletFlow = ({
|
||||
<PersonalWalletConfigUI
|
||||
{...props}
|
||||
connected={connected}
|
||||
hide={hide}
|
||||
goBack={goBack}
|
||||
walletConfig={personalWalletConfig}
|
||||
onLocallyConnected={onPersonalWalletConnected}
|
||||
|
||||
@@ -43,7 +43,7 @@ export interface Web3ButtonProps<TActionFn extends ActionFn> {
|
||||
/**
|
||||
* A component that allows the user to call an on-chain function on a contract.
|
||||
*
|
||||
* The button has to be wrapped in a `ThirdwebProvider` in order to function.
|
||||
* The button has to be wrapped in a [`ThirdwebProvider`](https://portal.thirdweb.com/react-native/v0/ThirdwebProvider) in order to function.
|
||||
*
|
||||
* @example
|
||||
* ```javascript
|
||||
|
||||
@@ -14,6 +14,8 @@ export function TWModal(props: Partial<ModalProps>) {
|
||||
useNativeDriver
|
||||
hideModalContentWhileAnimating={true}
|
||||
style={{ maxWidth: MAX_WIDTH }}
|
||||
animationIn="slideInUp" // Slide in from bottom
|
||||
animationOut="slideOutDown" // Slide out to bottom
|
||||
>
|
||||
{props.children}
|
||||
</Modal>
|
||||
|
||||
@@ -44,6 +44,8 @@ export {
|
||||
type ActionFn,
|
||||
} from "./components/Web3Button";
|
||||
|
||||
export { WalletConnectUI } from "./wallets/wallets/wallet-connect/WalletConnectUI";
|
||||
|
||||
// utilities
|
||||
export * from "./utils/uri";
|
||||
export { createSyncStorage as createLocalStorage } from "../core/AsyncStorage";
|
||||
|
||||
@@ -10,9 +10,7 @@ import { MagicConnector } from "../connectors/magic/magic-connector";
|
||||
* @deprecated We have deprecated magicLink in favor of our embeddedWallet which adds support for more sign in methods.
|
||||
* To learn more, please see:
|
||||
*
|
||||
* Our release notes: https://portal.thirdweb.com/embedded-wallet
|
||||
*
|
||||
* Our documentation: https://portal.thirdweb.com/react-native/react-native.embeddedwallet
|
||||
* Checkout the [Release Notes](https://portal.thirdweb.com/wallets/embedded-wallet/overview) and [Documentation](https://portal.thirdweb.com/react-native/v0/wallets/embedded-wallet) for more information.
|
||||
*/
|
||||
export class MagicLink extends AbstractClientWallet<
|
||||
MagicLinkOptions,
|
||||
|
||||
@@ -29,9 +29,7 @@ import { useGlobalTheme, useLocale } from "../../providers/ui-context-provider";
|
||||
* @deprecated We have deprecated magicLink in favor of our embeddedWallet which adds support for more sign in methods.
|
||||
* To learn more, please see:
|
||||
*
|
||||
* Our release notes: https://portal.thirdweb.com/embedded-wallet
|
||||
*
|
||||
* Our documentation: https://portal.thirdweb.com/react-native/react-native.embeddedwallet
|
||||
* Check out [Release Note](https://portal.thirdweb.com/wallets/embedded-wallet/overview) and [Documentation](https://portal.thirdweb.com/react-native/v0/wallets/embedded-wallet) for more details.
|
||||
*/
|
||||
export const magicLink = (
|
||||
magicLinkOptions: MagicLinkOptions & { recommended?: boolean },
|
||||
|
||||
@@ -43,8 +43,21 @@ export function WalletConnectUI({
|
||||
walletConfig,
|
||||
projectId,
|
||||
goBack,
|
||||
hide,
|
||||
supportedWallets,
|
||||
}: ConnectUIProps<WalletConnect> & { projectId: string }) {
|
||||
isVisible,
|
||||
}: Omit<
|
||||
ConnectUIProps<WalletConnect>,
|
||||
| "isOpen"
|
||||
| "show"
|
||||
| "theme"
|
||||
| "selectionData"
|
||||
| "setSelectionData"
|
||||
| "modalSize"
|
||||
> & {
|
||||
projectId: string;
|
||||
isVisible?: boolean;
|
||||
}) {
|
||||
const l = useLocale();
|
||||
const theme = useGlobalTheme();
|
||||
const [wallets, setWallets] = useState<WCWallet[]>([]);
|
||||
@@ -55,6 +68,9 @@ export function WalletConnectUI({
|
||||
const createWalletInstance = useCreateWalletInstance();
|
||||
const setConnectedWallet = useSetConnectedWallet();
|
||||
const setConnectionStatus = useSetConnectionStatus();
|
||||
const [isVisibleInternal, setIsVisibleInternal] = useState<
|
||||
boolean | undefined
|
||||
>(isVisible);
|
||||
|
||||
const onChangeText = useDebounceCallback({ callback: setSearch });
|
||||
|
||||
@@ -118,6 +134,10 @@ export function WalletConnectUI({
|
||||
};
|
||||
}, [projectId]);
|
||||
|
||||
useEffect(() => {
|
||||
setIsVisibleInternal(isVisible);
|
||||
}, [isVisible]);
|
||||
|
||||
useEffect(() => {
|
||||
if (wallets && search) {
|
||||
setSearchWallets(
|
||||
@@ -145,18 +165,24 @@ export function WalletConnectUI({
|
||||
console.error(`Error connecting with WalletConnect: ${e}`);
|
||||
})
|
||||
.finally(() => {
|
||||
connected();
|
||||
setIsVisibleInternal(false);
|
||||
setTimeout(() => {
|
||||
connected();
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
const onClosePress = () => {
|
||||
setConnectionStatus("disconnected");
|
||||
connected();
|
||||
setIsVisibleInternal(false);
|
||||
setTimeout(() => {
|
||||
hide();
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<TWModal
|
||||
isVisible={true}
|
||||
isVisible={isVisibleInternal ?? true}
|
||||
onBackdropPress={onClosePress}
|
||||
backdropOpacity={0.7}
|
||||
>
|
||||
|
||||
@@ -1,5 +1,24 @@
|
||||
# @thirdweb-dev/react
|
||||
|
||||
## 4.2.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2119](https://github.com/thirdweb-dev/js/pull/2119) [`cf606665`](https://github.com/thirdweb-dev/js/commit/cf606665fcfdad7b08259350d39b60313278a8dc) Thanks [@MananTank](https://github.com/MananTank)! - Update Links to Docs website
|
||||
|
||||
- Updated dependencies [[`cf606665`](https://github.com/thirdweb-dev/js/commit/cf606665fcfdad7b08259350d39b60313278a8dc)]:
|
||||
- @thirdweb-dev/react-core@4.2.2
|
||||
- @thirdweb-dev/wallets@2.3.4
|
||||
- @thirdweb-dev/sdk@4.0.25
|
||||
|
||||
## 4.2.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`d00ca7fd`](https://github.com/thirdweb-dev/js/commit/d00ca7fd2a0fa3e694bb37d1f486d3d4cf1ad79e)]:
|
||||
- @thirdweb-dev/payments@1.0.1
|
||||
- @thirdweb-dev/react-core@4.2.1
|
||||
|
||||
## 4.2.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react",
|
||||
"version": "4.2.0",
|
||||
"version": "4.2.2",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -110,7 +110,7 @@ export interface Web3ButtonProps<TActionFn extends ActionFn> {
|
||||
style?: React.CSSProperties;
|
||||
|
||||
/**
|
||||
* Web3Button renders a `ConnectWallet` if no wallet is connected. You can pass props for that component by passing a `connectWallet` prop to Web3Button
|
||||
* Web3Button renders a [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) if no wallet is connected. You can pass props for that component by passing a `connectWallet` prop to Web3Button
|
||||
*
|
||||
* @example
|
||||
* ```tsx
|
||||
@@ -136,7 +136,7 @@ export interface Web3ButtonProps<TActionFn extends ActionFn> {
|
||||
btnTitle?: string;
|
||||
|
||||
/**
|
||||
* title of the `ConnectWallet` Modal.
|
||||
* title of the [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal.
|
||||
*
|
||||
* The default is `"Connect"`.
|
||||
*/
|
||||
@@ -193,9 +193,9 @@ export interface Web3ButtonProps<TActionFn extends ActionFn> {
|
||||
*
|
||||
* It ensures the following criteria before attempting to call the contract function:
|
||||
*
|
||||
* 1. There is a connected wallet (if there is not, it renders a `ConnectWallet` component instead.
|
||||
* 1. There is a connected wallet (if there is not, it renders a [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component instead.
|
||||
*
|
||||
* 2. The connected wallet is on the correct network as specified in the `ThirdwebProvider`'s `activeChain` prop. if it is not, it renders a "switch network" button instead.
|
||||
* 2. The connected wallet is on the correct network as specified in the [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider)'s `activeChain` prop. if it is not, it renders a "switch network" button instead.
|
||||
*
|
||||
* If the action you are performing is async, make sure to return a `Promise` from the action function so that the SDK knows when the action is complete. This can be done by either using async/await or by returning a `Promise`.
|
||||
*
|
||||
@@ -220,7 +220,7 @@ export interface Web3ButtonProps<TActionFn extends ActionFn> {
|
||||
* @param props -
|
||||
* The props for the component.
|
||||
*
|
||||
* Refer to [Web3ButtonProps](https://portal.thirdweb.com/references/react/Web3ButtonProps) for more details.
|
||||
* Refer to [Web3ButtonProps](https://portal.thirdweb.com/references/react/v4/Web3ButtonProps) for more details.
|
||||
*
|
||||
*/
|
||||
export const Web3Button = <TAction extends ActionFn>(
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { SafeConnectionArgs } from "@thirdweb-dev/wallets";
|
||||
import { useCallback } from "react";
|
||||
|
||||
/**
|
||||
* @deprecated use `ConnectWallet` or `useConnect` instead
|
||||
* @deprecated use [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) instead
|
||||
* @walletConnection
|
||||
* @internal
|
||||
*/
|
||||
@@ -23,7 +23,7 @@ export function useSafe() {
|
||||
// for backwards compatibility
|
||||
|
||||
/**
|
||||
* @deprecated use `ConnectWallet` or `useConnect` instead
|
||||
* @deprecated use [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) instead
|
||||
* @walletConnection
|
||||
* @internal
|
||||
*/
|
||||
|
||||
@@ -4,7 +4,7 @@ import { MagicLinkAdditionalOptions } from "@thirdweb-dev/wallets/evm/wallets/ma
|
||||
import { MagicLinkConnectOptions } from "@thirdweb-dev/wallets";
|
||||
|
||||
/**
|
||||
* @deprecated use `ConnectWallet` or `useConnect` instead
|
||||
* @deprecated use [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) instead
|
||||
* @walletConnection
|
||||
* @internal
|
||||
*/
|
||||
|
||||
@@ -4,7 +4,7 @@ import { BloctoWalletConfigOptions } from "../../../wallet/wallets/blocto/blocto
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @deprecated use the `ConnectWallet` component or `useConnect` hook instead
|
||||
* @deprecated use the [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook instead
|
||||
* @walletConnection
|
||||
*/
|
||||
export function useBloctoWallet() {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useCallback } from "react";
|
||||
|
||||
/**
|
||||
* @walletConnection
|
||||
* @deprecated use `ConnectWallet` component or `useConnect` hook instead
|
||||
* @deprecated use [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook instead
|
||||
* @internal
|
||||
*/
|
||||
export function useCoinbaseWallet() {
|
||||
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
/**
|
||||
* Hook to connect `EmbeddedWallet` which allows users to login via Email or social logins
|
||||
*
|
||||
* The `embeddedWallet()` should be added to `ThirdwebProvider`'s `supportedWallets` prop to enable auto-connection on page load
|
||||
* The `embeddedWallet()` should be added to [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider)'s `supportedWallets` prop to enable auto-connection on page load
|
||||
*
|
||||
* @example
|
||||
*
|
||||
|
||||
@@ -2,7 +2,7 @@ import { useConnect } from "@thirdweb-dev/react-core";
|
||||
import { useCallback } from "react";
|
||||
|
||||
/**
|
||||
* @deprecated use the `ConnectWallet` component or `useConnect` hook instead
|
||||
* @deprecated use the [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook instead
|
||||
* @internal
|
||||
*/
|
||||
export function useFrameWallet() {
|
||||
|
||||
@@ -2,7 +2,7 @@ import { useConnect } from "@thirdweb-dev/react-core";
|
||||
import { useCallback } from "react";
|
||||
|
||||
/**
|
||||
* @deprecated Use `ConnectWallet` component or `useConnect` hook instead
|
||||
* @deprecated Use [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook instead
|
||||
* @internal
|
||||
*/
|
||||
export function useMetamask() {
|
||||
|
||||
@@ -15,7 +15,7 @@ type PaperConfig = Omit<PaperWalletAdditionalOptions, "chain">;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @deprecated We have deprecated `PaperWallet` in favor of our `EmbeddedWallet` which adds support for more sign in methods. use the `useEmbeddedWallet` hook instead
|
||||
* @deprecated We have deprecated `PaperWallet` in favor of our `EmbeddedWallet` which adds support for more sign in methods. use the [`useEmbeddedWallet`](https://portal.thirdweb.com/references/react/v4/useEmbeddedWallet) hook instead
|
||||
*/
|
||||
export function usePaperWallet() {
|
||||
const connect = useConnect();
|
||||
@@ -35,7 +35,7 @@ export function usePaperWallet() {
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @deprecated We have deprecated `PaperWallet` in favor of our `EmbeddedWallet` which adds support for more sign in methods. use the `useEmbeddedWallet` hook instead
|
||||
* @deprecated We have deprecated `PaperWallet` in favor of our `EmbeddedWallet` which adds support for more sign in methods. use the [`useEmbeddedWallet`](https://portal.thirdweb.com/references/react/v4/useEmbeddedWallet) hook instead
|
||||
*/
|
||||
export function usePaperWalletUserEmail(): UseQueryResult<
|
||||
string | undefined,
|
||||
|
||||
@@ -2,7 +2,7 @@ import { useConnect } from "@thirdweb-dev/react-core";
|
||||
import { useCallback } from "react";
|
||||
|
||||
/**
|
||||
* @deprecated use the `ConnectWallet` component or `useConnect` hook instead
|
||||
* @deprecated use the [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook instead
|
||||
* @internal
|
||||
* @walletConnection
|
||||
*/
|
||||
|
||||
@@ -16,11 +16,11 @@ import { useCallback } from "react";
|
||||
import type { BytesLike } from "ethers";
|
||||
|
||||
/**
|
||||
* Hook to connect [Smart wallet](https://portal.thirdweb.com/wallet/smart-wallet)
|
||||
* Hook to connect [Smart wallet](https://portal.thirdweb.com/references/wallets/v2/SmartWallet)
|
||||
*
|
||||
* `useSmartWallet()` handles connecting both the personal wallet and the Smart Wallet.
|
||||
*
|
||||
* The `smartWallet()` also need to be added in `ThirdwebProvider`'s `supportedWallets` prop to enable auto-connection on page load
|
||||
* The `smartWallet()` also need to be added in [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider)'s `supportedWallets` prop to enable auto-connection on page load
|
||||
*
|
||||
* ### Example
|
||||
*
|
||||
|
||||
@@ -2,7 +2,7 @@ import { useConnect } from "@thirdweb-dev/react-core";
|
||||
import { useCallback } from "react";
|
||||
|
||||
/**
|
||||
* @deprecated use the `ConnectWallet` component or `useConnect` hook instead
|
||||
* @deprecated use the [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook instead
|
||||
* @internal
|
||||
* @walletConnection
|
||||
*/
|
||||
|
||||
@@ -22,7 +22,7 @@ export function useWalletConnectV1() {
|
||||
/**
|
||||
* @internal
|
||||
* @walletConnection
|
||||
* @deprecated use the `ConnectWallet` component or `useConnect` hook instead
|
||||
* @deprecated use the [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook instead
|
||||
*/
|
||||
export function useWalletConnect() {
|
||||
const connect = useConnect();
|
||||
|
||||
@@ -320,7 +320,7 @@ export function enDefault() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calling this function will return the default English locale object to be set on `ThirdwebProvider` to localize the thirdweb components.
|
||||
* Calling this function will return the default English locale object to be set on [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider) to localize the thirdweb components.
|
||||
*
|
||||
* You can also overrides parts of the default locale object by passing an object with the same structure as the default locale object and only those parts will be overridden.
|
||||
*
|
||||
@@ -339,7 +339,7 @@ export function enDefault() {
|
||||
* })
|
||||
* ```
|
||||
*
|
||||
* Pass it to `ThirdwebProvider`'s `locale` prop to localize the thirdweb components.
|
||||
* Pass it to [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider)'s `locale` prop to localize the thirdweb components.
|
||||
*
|
||||
* ```tsx
|
||||
* function Example() {
|
||||
|
||||
@@ -328,7 +328,7 @@ export function esDefault(): ThirdwebLocale {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calling this function will return the default Spanish locale object to be set on `ThirdwebProvider` to localize the thirdweb components.
|
||||
* Calling this function will return the default Spanish locale object to be set on [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider) to localize the thirdweb components.
|
||||
*
|
||||
* You can also overrides parts of the default locale object by passing an object with the same structure as the default locale object and only those parts will be overridden.
|
||||
*
|
||||
@@ -347,7 +347,7 @@ export function esDefault(): ThirdwebLocale {
|
||||
* })
|
||||
* ```
|
||||
*
|
||||
* Pass it to `ThirdwebProvider`'s `locale` prop to localize the thirdweb components.
|
||||
* Pass it to [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider)'s `locale` prop to localize the thirdweb components.
|
||||
*
|
||||
* ```tsx
|
||||
* function Example() {
|
||||
|
||||
@@ -322,7 +322,7 @@ export function jaDefault(): ThirdwebLocale {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calling this function will return the default Japanese locale object to be set on `ThirdwebProvider` to localize the thirdweb components.
|
||||
* Calling this function will return the default Japanese locale object to be set on [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider) to localize the thirdweb components.
|
||||
*
|
||||
* You can also overrides parts of the default locale object by passing an object with the same structure as the default locale object and only those parts will be overridden.
|
||||
*
|
||||
@@ -341,7 +341,7 @@ export function jaDefault(): ThirdwebLocale {
|
||||
* })
|
||||
* ```
|
||||
*
|
||||
* Pass it to `ThirdwebProvider`'s `locale` prop to localize the thirdweb components.
|
||||
* Pass it to [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider)'s `locale` prop to localize the thirdweb components.
|
||||
*
|
||||
* ```tsx
|
||||
* function Example() {
|
||||
|
||||
@@ -381,7 +381,7 @@ export type DefaultChains = typeof defaultChains;
|
||||
* ```
|
||||
*
|
||||
* ### authConfig (optional)
|
||||
* The configuration object for setting up [Auth](https://portal.thirdweb.com/auth); allowing users to sign in with their wallet.
|
||||
* The configuration object for setting up [Auth](https://portal.thirdweb.com/wallets/auth); allowing users to sign in with their wallet.
|
||||
* It takes an object with the following properties:
|
||||
* - `authUrl` - The backend URL of the authentication endpoints. For example, if your endpoints are at `/api/auth/login`, `/api/auth/logout`, etc. then this should be set to `/api/auth`
|
||||
* - `domain` - The frontend domain used to generate the login payload. This domain should match the domain used on your auth backend.
|
||||
@@ -412,7 +412,7 @@ export type DefaultChains = typeof defaultChains;
|
||||
*
|
||||
* Allows you to create an instance of `ThirdwebStorage` with your own customized config, and pass it to the SDK. This requires the `@thirdweb-dev/storage` package to be installed.
|
||||
*
|
||||
* [Learn more aboout storage](https://portal.thirdweb.com/storage)
|
||||
* [Learn more about storage](https://portal.thirdweb.com/infrastructure/storage/overview)
|
||||
*
|
||||
* ```jsx
|
||||
* import { ThirdwebProvider } from "@thirdweb-dev/react";
|
||||
|
||||
@@ -78,14 +78,14 @@ export const WalletUIStatesProvider = (
|
||||
};
|
||||
|
||||
/**
|
||||
* Check if the `ConnectWallet` Modal is open or not
|
||||
* Check if the [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal is open or not
|
||||
*
|
||||
* @example
|
||||
* ```tsx
|
||||
* const isOpen = useIsWalletModalOpen();
|
||||
* ```
|
||||
*
|
||||
* @returns `true` if the `ConnectWallet` modal is open, `false` otherwise
|
||||
* @returns `true` if the [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) modal is open, `false` otherwise
|
||||
* @connectWallet
|
||||
*/
|
||||
export const useIsWalletModalOpen = () => {
|
||||
@@ -93,7 +93,7 @@ export const useIsWalletModalOpen = () => {
|
||||
};
|
||||
|
||||
/**
|
||||
* Open or close the `ConnectWallet` Modal
|
||||
* Open or close the [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal
|
||||
*
|
||||
* @example
|
||||
* ```tsx
|
||||
|
||||
@@ -52,8 +52,8 @@ export type ConnectWalletProps = {
|
||||
/**
|
||||
* Set the theme for the button and modal.
|
||||
*
|
||||
* By default it is set to "dark" if `theme` is not set on `ThirdWebProvider`
|
||||
* If a `theme` is set on `ThirdWebProvider` then that theme will be used by default which can be overridden by setting `theme` prop on `ConnectWallet` component
|
||||
* By default it is set to "dark" if `theme` is not set on [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider)
|
||||
* If a `theme` is set on [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider) then that theme will be used by default which can be overridden by setting `theme` prop on [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component
|
||||
*
|
||||
* theme can be set to either "dark" or "light" or a custom theme object. You can also import `lightTheme` or `darkTheme` functions from `@thirdweb-dev/react` to use the default themes as base and overrides parts of it.
|
||||
*
|
||||
@@ -131,15 +131,15 @@ export type ConnectWalletProps = {
|
||||
dropdownPosition?: DropDownPosition;
|
||||
|
||||
/**
|
||||
* Enforce that users must sign in with their wallet using [auth](https://portal.thirdweb.com/auth) after connecting their wallet.
|
||||
* Enforce that users must sign in with their wallet using [auth](https://portal.thirdweb.com/wallets/auth) after connecting their wallet.
|
||||
*
|
||||
* This requires the `authConfig` prop to be set on the `ThirdWebProvider` component.
|
||||
* This requires the `authConfig` prop to be set on the [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider) component.
|
||||
*/
|
||||
auth?: {
|
||||
/**
|
||||
* specify whether signing in is optional or not.
|
||||
*
|
||||
* By default it is `true` if `authConfig` is set on `ThirdWebProvider`
|
||||
* By default it is `true` if `authConfig` is set on [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider)
|
||||
*/
|
||||
loginOptional?: boolean;
|
||||
/**
|
||||
@@ -179,7 +179,7 @@ export type ConnectWalletProps = {
|
||||
|
||||
/**
|
||||
* Whether to show "Switch Network" button if the wallet is connected,
|
||||
* but it is not connected to the `activeChain` provided in `ThirdwebProvider`
|
||||
* but it is not connected to the `activeChain` provided in [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider)
|
||||
*
|
||||
* Please, note that if you support multiple networks in your app this prop should
|
||||
* be set to `false` to allow users to switch between networks.
|
||||
@@ -315,9 +315,9 @@ const TW_CONNECT_WALLET = "tw-connect-wallet";
|
||||
/**
|
||||
* A component that allows the user to connect their wallet.
|
||||
*
|
||||
* it renders a button which when clicked opens a modal to allow users to connect to wallets specified in the `ThirdwebProvider`'s supportedWallets prop.
|
||||
* it renders a button which when clicked opens a modal to allow users to connect to wallets specified in the [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider)'s supportedWallets prop.
|
||||
*
|
||||
* This component must be descendant of `ThirdwebProvider`
|
||||
* This component must be descendant of [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider)
|
||||
*
|
||||
* @example
|
||||
* ```tsx
|
||||
@@ -355,15 +355,15 @@ const TW_CONNECT_WALLET = "tw-connect-wallet";
|
||||
*
|
||||
* ### auth (optional)
|
||||
* The object contains the following properties to customize the authentication
|
||||
* - `loginOptional` - specify whether signing in is optional or not. By default it is `true` if `authConfig` is set on `ThirdWebProvider`
|
||||
* - `loginOptional` - specify whether signing in is optional or not. By default it is `true` if `authConfig` is set on [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider)
|
||||
* - `onLogin` - Callback to be called after user signs in with their wallet
|
||||
* - `onLogout` - Callback to be called after user signs out
|
||||
*
|
||||
* ### theme (optional)
|
||||
* Set the theme for the button and modal.
|
||||
*
|
||||
* By default it is set to "dark" if `theme` is not set on `ThirdWebProvider`
|
||||
* If a `theme` is set on `ThirdWebProvider` then that theme will be used by default which can be overridden by setting `theme` prop on `ConnectWallet` component
|
||||
* By default it is set to "dark" if `theme` is not set on [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider)
|
||||
* If a `theme` is set on [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider) then that theme will be used by default which can be overridden by setting `theme` prop on [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component
|
||||
*
|
||||
* theme can be set to either "dark" or "light" or a custom theme object. You can also import `lightTheme` or `darkTheme` functions from `@thirdweb-dev/react` to use the default themes as base and overrides parts of it.
|
||||
*
|
||||
@@ -427,7 +427,7 @@ const TW_CONNECT_WALLET = "tw-connect-wallet";
|
||||
*
|
||||
* ### switchToActiveChain (optional)
|
||||
* Whether to show "Switch Network" button if the wallet is connected,
|
||||
* but it is not connected to the `activeChain` provided in `ThirdwebProvider`
|
||||
* but it is not connected to the `activeChain` provided in [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider)
|
||||
*
|
||||
* Please, note that if you support multiple networks in your app this prop should
|
||||
* be set to `false` to allow users to switch between networks.
|
||||
|
||||
@@ -32,7 +32,7 @@ const fantomIcon =
|
||||
export type SupportedTokens = Record<number, TokenInfo[]>;
|
||||
|
||||
/**
|
||||
* Default tokens shown in `ConnectWallet`'s SendFunds screen for each network.
|
||||
* Default tokens shown in [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet)'s SendFunds screen for each network.
|
||||
*
|
||||
* You can use the default tokens as a starting point for your own list of tokens and override tokens for specific networks.
|
||||
*
|
||||
|
||||
@@ -11,7 +11,7 @@ export type BloctoWalletConfigOptions = {
|
||||
appId?: string;
|
||||
|
||||
/**
|
||||
* If true, the wallet will be tagged as "recommended" in `ConnectWallet` Modal
|
||||
* If true, the wallet will be tagged as "recommended" in [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal
|
||||
*/
|
||||
recommended?: boolean;
|
||||
};
|
||||
@@ -19,7 +19,7 @@ export type BloctoWalletConfigOptions = {
|
||||
/**
|
||||
* A wallet configurator for [Blocto Wallet](https://blocto.io/) which allows integrating the wallet with React.
|
||||
*
|
||||
* It returns a `WalletConfig` object which can be used to connect the wallet to via `ConnectWallet` component or `useConnect` hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/connecting-wallets) guide
|
||||
* It returns a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
@@ -36,7 +36,7 @@ export type BloctoWalletConfigOptions = {
|
||||
* To get advanced features and support from Blocto, you need to create an appId from [blocto dashboard](https://docs.blocto.app/blocto-sdk/register-app-id)
|
||||
*
|
||||
* #### recommended (optional)
|
||||
* If true, the wallet will be tagged as "recommended" in `ConnectWallet` Modal UI
|
||||
* If true, the wallet will be tagged as "recommended" in [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI
|
||||
*
|
||||
* @wallet
|
||||
*/
|
||||
|
||||
@@ -23,7 +23,7 @@ export type Coin98WalletConfigOptions = {
|
||||
/**
|
||||
* A wallet configurator for [Coin98 Wallet](https://coin98.com/) which allows integrating the wallet with React.
|
||||
*
|
||||
* It returns a `WalletConfig` object which can be used to connect the wallet to via `ConnectWallet` component or `useConnect` hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/connecting-wallets) guide
|
||||
* It returns a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
@@ -41,7 +41,7 @@ export type Coin98WalletConfigOptions = {
|
||||
* This project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.
|
||||
*
|
||||
* ### recommended (optional)
|
||||
* If true, the wallet will be tagged as "recommended" in `ConnectWallet` Modal UI
|
||||
* If true, the wallet will be tagged as "recommended" in [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI
|
||||
*
|
||||
* @wallet
|
||||
*/
|
||||
|
||||
@@ -32,7 +32,7 @@ export type CoinbaseWalletConfigOptions = {
|
||||
/**
|
||||
* A wallet configurator for [Coinbase Wallet](https://www.coinbase.com/wallet) which allows integrating the wallet with React.
|
||||
*
|
||||
* It returns a `WalletConfig` object which can be used to connect the wallet to via `ConnectWallet` component or `useConnect` hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/connecting-wallets) guide
|
||||
* It returns a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
@@ -51,7 +51,7 @@ export type CoinbaseWalletConfigOptions = {
|
||||
* The default is `"custom"`
|
||||
*
|
||||
* ### recommended (optional)
|
||||
* If true, the wallet will be tagged as "recommended" in `ConnectWallet` Modal UI
|
||||
* If true, the wallet will be tagged as "recommended" in [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI
|
||||
*
|
||||
* @wallet
|
||||
*/
|
||||
|
||||
@@ -26,7 +26,7 @@ export type CoreWalletConfigOptions = {
|
||||
/**
|
||||
* A wallet configurator for [Core Wallet](https://core.app/) which allows integrating the wallet with React.
|
||||
*
|
||||
* It returns a `WalletConfig` object which can be used to connect the wallet to via `ConnectWallet` component or `useConnect` hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/connecting-wallets) guide
|
||||
* It returns a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
@@ -44,7 +44,7 @@ export type CoreWalletConfigOptions = {
|
||||
* This project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.
|
||||
*
|
||||
* ### recommended (optional)
|
||||
* If true, the wallet will be tagged as "recommended" in `ConnectWallet` Modal UI
|
||||
* If true, the wallet will be tagged as "recommended" in [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI
|
||||
*
|
||||
* @wallet
|
||||
*/
|
||||
|
||||
@@ -8,7 +8,7 @@ import { rainbowWallet } from "./rainbow/RainbowWallet";
|
||||
import { phantomWallet } from "./phantom/phantomWallet";
|
||||
|
||||
/**
|
||||
* The default wallets that are used by the `ThirdwebProvider` if no `supportedWallets` prop is provided.
|
||||
* The default wallets that are used by the [`ThirdwebProvider`](https://portal.thirdweb.com/react/v4/ThirdwebProvider) if no `supportedWallets` prop is provided.
|
||||
*
|
||||
* The defaults wallets are:
|
||||
* - Metamask
|
||||
|
||||
@@ -26,7 +26,7 @@ export type CryptoDefiWalletConfigOptions = {
|
||||
/**
|
||||
* A wallet configurator for [Crypto.com Defi Wallet](https://crypto.com/defi-wallet) which allows integrating the wallet with React.
|
||||
*
|
||||
* It returns a `WalletConfig` object which can be used to connect the wallet to via `ConnectWallet` component or `useConnect` hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/connecting-wallets) guide
|
||||
* It returns a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
@@ -44,7 +44,7 @@ export type CryptoDefiWalletConfigOptions = {
|
||||
* This project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.
|
||||
*
|
||||
* ### recommended (optional)
|
||||
* If true, the wallet will be tagged as "recommended" in `ConnectWallet` Modal UI
|
||||
* If true, the wallet will be tagged as "recommended" in [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI
|
||||
*
|
||||
* @wallet
|
||||
*/
|
||||
|
||||
@@ -32,9 +32,9 @@ const DEFAULT_AUTH_OPTIONS: AuthOption[] = [
|
||||
/**
|
||||
* A wallet configurator for [Embedded Wallet](https://portal.thirdweb.com/wallet/embedded-wallet) which allows integrating the wallet with React.
|
||||
*
|
||||
* It returns a `WalletConfig` object which can be used to connect the wallet to via `ConnectWallet` component or `useConnect` hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/connecting-wallets) guide
|
||||
* It returns a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide
|
||||
*
|
||||
* You can also connect this wallet using the `useEmbeddedWallet` hook
|
||||
* You can also connect this wallet using the [`useEmbeddedWallet`](https://portal.thirdweb.com/references/react/v4/useEmbeddedWallet) hook
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
@@ -60,7 +60,7 @@ const DEFAULT_AUTH_OPTIONS: AuthOption[] = [
|
||||
* ```
|
||||
*
|
||||
* ### recommended (optional)
|
||||
* If true, the wallet will be tagged as "recommended" in `ConnectWallet` Modal UI
|
||||
* If true, the wallet will be tagged as "recommended" in [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI
|
||||
*
|
||||
* ### onAuthSuccess (optional)
|
||||
* A callback function that will be called when the user successfully authenticates with the wallet. The callback is called with the `authResult` object
|
||||
|
||||
@@ -15,7 +15,7 @@ export type FrameWalletConfigOptions = {
|
||||
/**
|
||||
* A wallet configurator for [Frame Wallet](https://frame.sh/) which allows integrating the wallet with React.
|
||||
*
|
||||
* It returns a `WalletConfig` object which can be used to connect the wallet to via `ConnectWallet` component or `useConnect` hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/connecting-wallets) guide
|
||||
* It returns a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
@@ -28,7 +28,7 @@ export type FrameWalletConfigOptions = {
|
||||
* Optional object containing the following properties to configure the wallet
|
||||
*
|
||||
* ### recommended (optional)
|
||||
* If true, the wallet will be tagged as "recommended" in `ConnectWallet` Modal UI
|
||||
* If true, the wallet will be tagged as "recommended" in [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI
|
||||
*
|
||||
* @wallet
|
||||
*/
|
||||
|
||||
@@ -11,7 +11,7 @@ const phoneIcon = `data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODA
|
||||
/**
|
||||
* A wallet configurator for Local wallet which allows integrating a "Guest Login" experience to app.
|
||||
*
|
||||
* It returns a `WalletConfig` object which can be used to connect the wallet to via `ConnectWallet` component or `useConnect` hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/connecting-wallets) guide
|
||||
* It returns a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
|
||||
@@ -56,7 +56,7 @@ export type MagicWalletConfigOptions = MagicLinkAdditionalOptions & {
|
||||
/**
|
||||
* A wallet configurator for [Magic Link](https://magic.link/) which allows integrating the wallet with React.
|
||||
*
|
||||
* It returns a `WalletConfig` object which can be used to connect the wallet to via `ConnectWallet` component or `useConnect` hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/connecting-wallets) guide
|
||||
* It returns a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
@@ -148,7 +148,7 @@ export type MagicWalletConfigOptions = MagicLinkAdditionalOptions & {
|
||||
* ```
|
||||
*
|
||||
* ### recommended (optional)
|
||||
* Show this wallet as "recommended" in the `ConnectWallet` Modal UI
|
||||
* Show this wallet as "recommended" in the [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI
|
||||
*
|
||||
* @wallet
|
||||
*/
|
||||
|
||||
@@ -40,7 +40,7 @@ export type MetamaskWalletConfigOptions = {
|
||||
/**
|
||||
* A wallet configurator for [MetaMask Wallet](https://metamask.io/) which allows integrating the wallet with React.
|
||||
*
|
||||
* It returns a `WalletConfig` object which can be used to connect the wallet to via `ConnectWallet` component or `useConnect` hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/connecting-wallets) guide
|
||||
* It returns a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
@@ -59,7 +59,7 @@ export type MetamaskWalletConfigOptions = {
|
||||
* This project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.
|
||||
*
|
||||
* ### recommended (optional)
|
||||
* If true, the wallet will be tagged as "recommended" in `ConnectWallet` Modal UI
|
||||
* If true, the wallet will be tagged as "recommended" in [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI
|
||||
*
|
||||
* ### connectionMethod (optional)
|
||||
* Specify how the connection to metamask app should be established if the user is on a mobile device.
|
||||
|
||||
@@ -23,7 +23,7 @@ export type OKXWalletConfigOptions = {
|
||||
/**
|
||||
* A wallet configurator for [OKX Wallet](https://www.okx.com/web3) which allows integrating the wallet with React.
|
||||
*
|
||||
* It returns a `WalletConfig` object which can be used to connect the wallet to via `ConnectWallet` component or `useConnect` hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/connecting-wallets) guide
|
||||
* It returns a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
@@ -41,7 +41,7 @@ export type OKXWalletConfigOptions = {
|
||||
* This project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.
|
||||
*
|
||||
* ### recommended (optional)
|
||||
* If true, the wallet will be tagged as "recommended" in `ConnectWallet` Modal UI
|
||||
* If true, the wallet will be tagged as "recommended" in [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI
|
||||
*
|
||||
* @wallet
|
||||
*/
|
||||
|
||||
@@ -23,7 +23,7 @@ export type OneKeyWalletConfigOptions = {
|
||||
/**
|
||||
* A wallet configurator for [Onekey Wallet](https://onekey.so/) which allows integrating the wallet with React.
|
||||
*
|
||||
* It returns a `WalletConfig` object which can be used to connect the wallet to via `ConnectWallet` component or `useConnect` hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/connecting-wallets) guide
|
||||
* It returns a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
@@ -41,7 +41,7 @@ export type OneKeyWalletConfigOptions = {
|
||||
* This project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.
|
||||
*
|
||||
* ### recommended (optional)
|
||||
* If true, the wallet will be tagged as "recommended" in `ConnectWallet` Modal UI
|
||||
* If true, the wallet will be tagged as "recommended" in [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI
|
||||
*
|
||||
* @wallet
|
||||
*/
|
||||
|
||||
@@ -18,7 +18,7 @@ export type PhantomWalletConfigOptions = {
|
||||
/**
|
||||
* A wallet configurator for [Phantom Wallet](https://phantom.app/) which allows integrating the wallet with React.
|
||||
*
|
||||
* It returns a `WalletConfig` object which can be used to connect the wallet to via `ConnectWallet` component or `useConnect` hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/connecting-wallets) guide
|
||||
* It returns a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
@@ -31,7 +31,7 @@ export type PhantomWalletConfigOptions = {
|
||||
* Optional configuration options for the wallet
|
||||
*
|
||||
* ### recommended (optional)
|
||||
* If `true`, the wallet will be tagged as "recommended" in `ConnectWallet` Modal UI. Default is `false`
|
||||
* If `true`, the wallet will be tagged as "recommended" in [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI. Default is `false`
|
||||
*
|
||||
* @wallet
|
||||
*/
|
||||
|
||||
@@ -23,7 +23,7 @@ export type RabbyWalletConfigOptions = {
|
||||
/**
|
||||
* A wallet configurator for [Rabby Wallet](https://rabby.io/) which allows integrating the wallet with React.
|
||||
*
|
||||
* It returns a `WalletConfig` object which can be used to connect the wallet to via `ConnectWallet` component or `useConnect` hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/connecting-wallets) guide
|
||||
* It returns a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
@@ -41,7 +41,7 @@ export type RabbyWalletConfigOptions = {
|
||||
* This project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.
|
||||
*
|
||||
* ### recommended (optional)
|
||||
* If true, the wallet will be tagged as "recommended" in `ConnectWallet` Modal UI
|
||||
* If true, the wallet will be tagged as "recommended" in [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI
|
||||
*
|
||||
* @wallet
|
||||
*/
|
||||
|
||||
@@ -28,7 +28,7 @@ export type RainbowWalletConfigOptions = {
|
||||
/**
|
||||
* A wallet configurator for [Rainbow Wallet](https://rainbow.me/en/) which allows integrating the wallet with React.
|
||||
*
|
||||
* It returns a `WalletConfig` object which can be used to connect the wallet to via `ConnectWallet` component or `useConnect` hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/connecting-wallets) guide
|
||||
* It returns a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
@@ -46,7 +46,7 @@ export type RainbowWalletConfigOptions = {
|
||||
* This project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.
|
||||
*
|
||||
* ### recommended (optional)
|
||||
* If true, the wallet will be tagged as "recommended" in `ConnectWallet` Modal UI
|
||||
* If true, the wallet will be tagged as "recommended" in [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI
|
||||
*
|
||||
* @wallet
|
||||
*/
|
||||
|
||||
@@ -31,7 +31,7 @@ export type SafeWalletConfigOptions = {
|
||||
/**
|
||||
* A wallet configurator for [Safe](https://safe.global/) which allows integrating the wallet with React.
|
||||
*
|
||||
* It returns a `WalletConfig` object which can be used to connect the wallet to via `ConnectWallet` component or `useConnect` hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/connecting-wallets) guide
|
||||
* It returns a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
@@ -48,10 +48,10 @@ export type SafeWalletConfigOptions = {
|
||||
* Optional configuration options for the wallet
|
||||
*
|
||||
* ### personalWallets (optional)
|
||||
* An array of personal wallets to show in `ConnectWallet` Modal for personal wallet selection
|
||||
* An array of personal wallets to show in [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal for personal wallet selection
|
||||
*
|
||||
* ### recommended (optional)
|
||||
* If true, the wallet will be tagged as "recommended" in `ConnectWallet` Modal UI
|
||||
* If true, the wallet will be tagged as "recommended" in [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI
|
||||
*
|
||||
* @wallet
|
||||
*/
|
||||
|
||||
@@ -10,9 +10,9 @@ import { SmartWalletConnecting } from "./SmartWalletConnecting";
|
||||
import { HeadlessConnectUI } from "../headlessConnectUI";
|
||||
|
||||
/**
|
||||
* A wallet configurator for [Smart Wallet](https://portal.thirdweb.com/wallet/smart-wallet) which allows integrating the wallet with React
|
||||
* A wallet configurator for [Smart Wallet](https://portal.thirdweb.com/references/wallets/v2/SmartWallet) which allows integrating the wallet with React
|
||||
*
|
||||
* It returns a `WalletConfig` object which can be used to connect the wallet to via `ConnectWallet` component or `useConnect` hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/connecting-wallets) guide
|
||||
* It returns a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
@@ -26,7 +26,7 @@ import { HeadlessConnectUI } from "../headlessConnectUI";
|
||||
* ```
|
||||
*
|
||||
* @param wallet -
|
||||
* Provide a `WalletConfig` object to use as the personal wallet for the Smart Wallet.
|
||||
* Provide a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object to use as the personal wallet for the Smart Wallet.
|
||||
*
|
||||
* You can get this object by calling a wallet configurator function such as `metamaskWallet()`
|
||||
*
|
||||
|
||||
@@ -25,7 +25,7 @@ export type TrustWalletConfigOptions = {
|
||||
/**
|
||||
* A wallet configurator for [Trust Wallet](https://trustwallet.com/) which allows integrating the wallet with React.
|
||||
*
|
||||
* It returns a `WalletConfig` object which can be used to connect the wallet to via `ConnectWallet` component or `useConnect` hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/connecting-wallets) guide
|
||||
* It returns a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
@@ -43,7 +43,7 @@ export type TrustWalletConfigOptions = {
|
||||
* This project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.
|
||||
*
|
||||
* ### recommended (optional)
|
||||
* If true, the wallet will be tagged as "recommended" in `ConnectWallet` Modal UI
|
||||
* If true, the wallet will be tagged as "recommended" in [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI
|
||||
*
|
||||
* @wallet
|
||||
*/
|
||||
|
||||
@@ -44,7 +44,7 @@ export type walletConnectConfigOptions = {
|
||||
/**
|
||||
* A wallet configurator for [WalletConnect](https://walletconnect.com/) which allows integrating the wallet with React.
|
||||
*
|
||||
* It returns a `WalletConfig` object which can be used to connect the wallet to via `ConnectWallet` component or `useConnect` hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/connecting-wallets) guide
|
||||
* It returns a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
@@ -76,7 +76,7 @@ export type walletConnectConfigOptions = {
|
||||
* The [WalletConnect Modal options](https://docs.walletconnect.com/advanced/walletconnectmodal/options) to customize the official WalletConnect Modal.
|
||||
*
|
||||
* ### recommended (optional)
|
||||
* If true, the wallet will be tagged as "recommended" in `ConnectWallet` Modal UI
|
||||
* If true, the wallet will be tagged as "recommended" in [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI
|
||||
*
|
||||
* @wallet
|
||||
*/
|
||||
|
||||
@@ -25,7 +25,7 @@ export type ZerionkWalletConfigOptions = {
|
||||
/**
|
||||
* A wallet configurator for [Zerion Wallet](https://zerion.io/) which allows integrating the wallet with React.
|
||||
*
|
||||
* It returns a `WalletConfig` object which can be used to connect the wallet to via `ConnectWallet` component or `useConnect` hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/connecting-wallets) guide
|
||||
* It returns a [`WalletConfig`](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [`ConnectWallet`](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [`useConnect`](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @thirdweb-dev/sdk
|
||||
|
||||
## 4.0.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2119](https://github.com/thirdweb-dev/js/pull/2119) [`cf606665`](https://github.com/thirdweb-dev/js/commit/cf606665fcfdad7b08259350d39b60313278a8dc) Thanks [@MananTank](https://github.com/MananTank)! - Update Links to Docs website
|
||||
|
||||
## 4.0.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/sdk",
|
||||
"version": "4.0.24",
|
||||
"version": "4.0.25",
|
||||
"description": "The main thirdweb SDK.",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/sdk",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -252,7 +252,7 @@ export class AuctionHasNotEndedError extends Error {
|
||||
export class ExtensionNotImplementedError extends Error {
|
||||
constructor(feature: Feature) {
|
||||
super(
|
||||
`This functionality is not available because the contract does not implement the '${feature.name}' Extension. Learn how to unlock this functionality at https://portal.thirdweb.com/extensions `,
|
||||
`This functionality is not available because the contract does not implement the '${feature.name}' Extension. Learn how to unlock this functionality at https://portal.thirdweb.com/contracts/build/extensions `,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -314,7 +314,7 @@ export class ThirdwebSDK extends RPCConnectionHandler {
|
||||
get auth() {
|
||||
throw new Error(
|
||||
`The sdk.auth namespace has been moved to the @thirdweb-dev/auth package and is no longer available after @thirdweb-dev/sdk >= 3.7.0.
|
||||
Please visit https://portal.thirdweb.com/auth for instructions on how to switch to using the new auth package (@thirdweb-dev/[email protected]).
|
||||
Please visit https://portal.thirdweb.com/wallets/auth for instructions on how to switch to using the new auth package (@thirdweb-dev/[email protected]).
|
||||
|
||||
If you still want to use the old @thirdweb-dev/auth@2.0.0 package, you can downgrade the SDK to version 3.6.0.`,
|
||||
);
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @thirdweb-dev/unity-js-bridge
|
||||
|
||||
## 0.3.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`cf606665`](https://github.com/thirdweb-dev/js/commit/cf606665fcfdad7b08259350d39b60313278a8dc)]:
|
||||
- @thirdweb-dev/wallets@2.3.4
|
||||
- @thirdweb-dev/sdk@4.0.25
|
||||
- @thirdweb-dev/auth@4.1.21
|
||||
|
||||
## 0.3.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/unity-js-bridge",
|
||||
"version": "0.3.3",
|
||||
"version": "0.3.4",
|
||||
"main": "dist/thirdweb-unity-bridge.js",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/unity-js-bridge",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @thirdweb-dev/wallets
|
||||
|
||||
## 2.3.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2119](https://github.com/thirdweb-dev/js/pull/2119) [`cf606665`](https://github.com/thirdweb-dev/js/commit/cf606665fcfdad7b08259350d39b60313278a8dc) Thanks [@MananTank](https://github.com/MananTank)! - Update Links to Docs website
|
||||
|
||||
- Updated dependencies [[`cf606665`](https://github.com/thirdweb-dev/js/commit/cf606665fcfdad7b08259350d39b60313278a8dc)]:
|
||||
- @thirdweb-dev/sdk@4.0.25
|
||||
|
||||
## 2.3.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/wallets",
|
||||
"version": "2.3.3",
|
||||
"version": "2.3.4",
|
||||
"main": "dist/thirdweb-dev-wallets.cjs.js",
|
||||
"module": "dist/thirdweb-dev-wallets.esm.js",
|
||||
"browser": {
|
||||
|
||||
@@ -63,7 +63,7 @@ export async function checkContractWalletSignature(
|
||||
/**
|
||||
* The base class for any wallet in the Wallet SDK, including backend wallets. It contains the functionality common to all wallets.
|
||||
*
|
||||
* This wallet is not meant to be used directly, but instead be extended to [build your own wallet](https://portal.thirdweb.com/wallet/build-a-wallet)
|
||||
* This wallet is not meant to be used directly, but instead be extended to [build your own wallet](https://portal.thirdweb.com/wallet-sdk/v2/build)
|
||||
*
|
||||
* @abstractWallet
|
||||
*/
|
||||
|
||||
@@ -55,7 +55,7 @@ export type WalletMeta = {
|
||||
* The base class for all client-side wallets (web, mobile) in the Wallet SDK. It extends AbstractWallet and adds client side specific logic.
|
||||
* A client side wallet delegates the wallet-specific connection logic to a Connector.
|
||||
*
|
||||
* This wallet is not meant to be used directly, but instead be extended to [build your own wallet](https://portal.thirdweb.com/wallet/build-a-wallet)
|
||||
* This wallet is not meant to be used directly, but instead be extended to [build your own wallet](https://portal.thirdweb.com/wallet-sdk/v2/build)
|
||||
*
|
||||
* @abstractWallet
|
||||
*/
|
||||
|
||||
@@ -21,7 +21,7 @@ export type {
|
||||
} from "../connectors/embedded-wallet/types";
|
||||
|
||||
/**
|
||||
* Wallet interface to connect [Embedded Wallet](https://portal.thirdweb.com/embedded-wallet) which allows developers to implement seamless onboarding and login flows for their users.
|
||||
* Wallet interface to connect [Embedded Wallet](https://portal.thirdweb.com/wallets/embedded-wallet/overview) which allows developers to implement seamless onboarding and login flows for their users.
|
||||
*
|
||||
* @example
|
||||
* ```javascript
|
||||
|
||||
Reference in New Issue
Block a user