diff --git a/.vscode/settings.json b/.vscode/settings.json index 119c7599e9b..30c9f5c17ea 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -27,5 +27,9 @@ }, "[css]": { "editor.defaultFormatter": "biomejs.biome" - } + }, + "eslint.workingDirectories": [ + { "pattern": "./packages/*/" }, + { "pattern": "./apps/*/" } + ] } diff --git a/apps/portal/.eslintrc.json b/apps/portal/.eslintrc.json index aeaf92062fc..48f93b9653e 100644 --- a/apps/portal/.eslintrc.json +++ b/apps/portal/.eslintrc.json @@ -5,12 +5,20 @@ "eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:@next/next/recommended", - "plugin:storybook/recommended" + "plugin:mdx/recommended", + "plugin:tailwindcss/recommended" ], "rules": { "no-unused-vars": "off", "@typescript-eslint/no-unused-vars": "error", "@typescript-eslint/no-explicit-any": "off", - "svg-jsx/camel-case-dash": "error" - } + "svg-jsx/camel-case-dash": "error", + "tailwindcss/classnames-order": "off" + }, + "overrides": [ + { + "files": ["*.ts", "*.js", "*.tsx", "*.jsx"], + "extends": ["biome"] + } + ] } diff --git a/apps/portal/knip.json b/apps/portal/knip.json new file mode 100644 index 00000000000..1206ae1495a --- /dev/null +++ b/apps/portal/knip.json @@ -0,0 +1,33 @@ +{ + "$schema": "https://unpkg.com/knip@5/schema.json", + "next": true, + "project": ["src/**"], + "ignoreBinaries": ["only-allow", "biome"], + "ignore": ["src/components/ui/**"], + "ignoreDependencies": [ + "@thirdweb-dev/chains", + "@thirdweb-dev/wallets", + "thirdweb", + "@types/mdx" + ], + "entry": [ + "next.config.{js,ts,cjs,mjs}", + "{instrumentation,middleware}.{js,ts}", + "app/global-error.{js,jsx,ts,tsx}", + "app/**/{error,layout,loading,not-found,page,template,default}.{js,jsx,ts,tsx,mdx}", + "app/**/route.{js,jsx,ts,tsx}", + "app/{manifest,sitemap,robots}.{js,ts}", + "app/**/{icon,apple-icon}.{js,jsx,ts,tsx}", + "app/**/{opengraph,twitter}-image.{js,jsx,ts,tsx}", + "pages/**/*.{js,jsx,ts,tsx}", + "src/{instrumentation,middleware}.{js,ts}", + "src/app/global-error.{js,jsx,ts,tsx}", + "src/app/**/{error,layout,loading,not-found,page,template,default}.{js,jsx,ts,tsx,mdx}", + "src/app/**/route.{js,jsx,ts,tsx}", + "src/app/{manifest,sitemap,robots}.{js,ts}", + "src/app/**/{icon,apple-icon}.{js,jsx,ts,tsx}", + "src/app/**/{opengraph,twitter}-image.{js,jsx,ts,tsx}", + "src/pages/**/*.{js,jsx,ts,tsx}", + "scripts/*.ts" + ] +} diff --git a/apps/portal/package.json b/apps/portal/package.json index b2ee6001730..5d4fc32ea7f 100644 --- a/apps/portal/package.json +++ b/apps/portal/package.json @@ -10,10 +10,12 @@ "build": "next build", "postbuild": "pnpm run extract-search-data && pnpm next-sitemap", "start": "next start", - "lint": "biome check ./src && eslint ./src", + "lint": "biome check ./src && knip && eslint ./src", "fix": "biome check ./src --fix && eslint ./src --fix", "create-index": "pnpm tsx scripts/createEmptySearchIndex.ts", - "extract-search-data": "pnpm tsx scripts/extractSearchData.ts" + "extract-search-data": "pnpm tsx scripts/extractSearchData.ts", + "typecheck": "tsc --noEmit", + "knip": "knip" }, "dependencies": { "@dirtycajunrice/klee": "^1.0.6", @@ -30,7 +32,6 @@ "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "date-fns": "4.1.0", - "escape-string-regexp": "^5.0.0", "flexsearch": "^0.7.43", "github-slugger": "^2.0.0", "lucide-react": "0.468.0", @@ -43,7 +44,6 @@ "react-dom": "19.0.0", "react-html-parser": "2.0.2", "remark-gfm": "3.0.1", - "semver": "^7.6.0", "server-only": "^0.0.1", "shiki": "1.27.0", "tailwind-merge": "^2.6.0", @@ -53,6 +53,7 @@ "typedoc-better-json": "0.9.4" }, "devDependencies": { + "@next/eslint-plugin-next": "15.1.3", "@types/flexsearch": "^0.7.6", "@types/mdx": "^2.0.13", "@types/node": "22.10.2", @@ -65,10 +66,10 @@ "autoprefixer": "^10.4.19", "eslint": "8.57.0", "eslint-config-biome": "1.9.4", - "eslint-config-next": "15.1.4", "eslint-plugin-mdx": "^3.1.5", "eslint-plugin-svg-jsx": "^1.2.4", "eslint-plugin-tailwindcss": "^3.17.5", + "knip": "5.41.0", "next-sitemap": "^4.2.3", "postcss": "8.4.49", "tailwindcss": "3.4.17", diff --git a/apps/portal/redirects.mjs b/apps/portal/redirects.mjs index 661ec1126f7..7cb5312fcf5 100644 --- a/apps/portal/redirects.mjs +++ b/apps/portal/redirects.mjs @@ -1,6 +1,11 @@ // @ts-check -import { unrealEngineRedirects } from "./src/app/unreal-engine/redirects.mjs"; +const unrealEngineRedirects = { + "/unreal/:path*": "/unreal-engine/:path*", + "/unreal-engine/cpp/wallet-handle": "/unreal-engine/cpp/wallet-handles", + "/unreal-engine/blueprints/private-key-wallet": + "unreal-engine/blueprints/in-app-wallet", +}; const reactRedirects = { "/react": "/react/v4", @@ -981,6 +986,20 @@ const v5RestructuredRedirects = { "/typescript/v5/react-native/:path*": "/react-native/v5/:path*", }; +const v4ToV5Redirects = { + "/typescript/v4": "/typescript/v5", + "/typescript/v4/:path*": "/typescript/v5", + "/react/v4": "/react/v5", + "/react/v4/:path*": "/react/v5", + "/react-native/v0": "/react-native/v5", + "/react-native/v0/:path*": "/react-native/v5", + "/wallet-sdk/:path*": "/connect", + "/storage-sdk/v2": "/typescript/v5/storage", + "/storage-sdk/v2/:path*": "/typescript/v5/storage", + "/unity/v4": "/unity/v5", + "/unity/v4/:path*": "/unity/v5", +}; + /** * @type {import('next').NextConfig['redirects']} */ @@ -999,18 +1018,7 @@ export const redirects = async () => { ...createRedirects(otherRedirects), ...createRedirects(v5RestructuredRedirects), ...createRedirects(unrealEngineRedirects), - // references docs - latestReference("react", "v4"), - latestReference("react-native", "v0"), - latestReference("typescript", "v5"), - latestReference("wallets", "v2"), - latestReference("storage", "v2"), - // sdk docs - latestSDK("react", "v4"), - latestSDK("react-native", "v0"), - latestSDK("typescript", "v5"), - latestSDK("wallet-sdk", "v2"), - latestSDK("storage-sdk", "v2"), + ...createRedirects(v4ToV5Redirects), ]; }; @@ -1026,31 +1034,3 @@ function createRedirects(linkMap, permanent = true) { } return redirects; } - -/** - * - * @param {string} pkg - * @param {string} latestVersion - * @returns - */ -function latestReference(pkg, latestVersion) { - return { - source: `/references/${pkg}/latest/:path*`, - destination: `/references/${pkg}/${latestVersion}/:path*`, - permanent: false, - }; -} - -/** - * - * @param {string} pkg - * @param {string} latestVersion - * @returns - */ -function latestSDK(pkg, latestVersion) { - return { - source: `/${pkg}/latest/:path*`, - destination: `/${pkg}/${latestVersion}/:path*`, - permanent: false, - }; -} diff --git a/apps/portal/src/app/api/search/extraction/settings.ts b/apps/portal/src/app/api/search/extraction/settings.ts index 55d06354358..b8270ed8114 100644 --- a/apps/portal/src/app/api/search/extraction/settings.ts +++ b/apps/portal/src/app/api/search/extraction/settings.ts @@ -19,5 +19,3 @@ export const ignoreHeadings = new Set( "example", ].map((t) => t.toLowerCase()), ); - -export const minimumParagraphlength = 20; diff --git a/apps/portal/src/app/api/search/indexing/createIndex.ts b/apps/portal/src/app/api/search/indexing/createIndex.ts index 80d014428ff..4cbf6ce3add 100644 --- a/apps/portal/src/app/api/search/indexing/createIndex.ts +++ b/apps/portal/src/app/api/search/indexing/createIndex.ts @@ -3,7 +3,7 @@ import path from "node:path"; import FlexSearch from "flexsearch"; import type { PageData, PageTitleIndex, SectionIndex } from "../types"; -export type Indexes = { +type Indexes = { sectionIndex: SectionIndex; websiteData: PageData[]; pageTitleIndex: PageTitleIndex; diff --git a/apps/portal/src/app/app.zip b/apps/portal/src/app/app.zip deleted file mode 100644 index 39afdaa9ff9..00000000000 Binary files a/apps/portal/src/app/app.zip and /dev/null differ diff --git a/apps/portal/src/app/changelog/ghost.ts b/apps/portal/src/app/changelog/ghost.ts index 591b668e180..3c1a4b103fd 100644 --- a/apps/portal/src/app/changelog/ghost.ts +++ b/apps/portal/src/app/changelog/ghost.ts @@ -1,7 +1,7 @@ import type { PostsOrPages } from "@tryghost/content-api"; import "./[slug]/styles.css"; -export const GHOST_THIRDWEB_BLOG_KEY = "49c62b5137df1c17ab6b9e46e3"; +const GHOST_THIRDWEB_BLOG_KEY = "49c62b5137df1c17ab6b9e46e3"; export async function fetchChangeLogs() { const queryParamsString = Object.entries({ diff --git a/apps/portal/src/app/changelog/page.tsx b/apps/portal/src/app/changelog/page.tsx index ad4ecde97c6..f73113fe053 100644 --- a/apps/portal/src/app/changelog/page.tsx +++ b/apps/portal/src/app/changelog/page.tsx @@ -72,6 +72,7 @@ async function PageContent() {
[options] This command will automatically detect the type of project you are working on and install or update the appropriate thirdweb dependencies. -**Dependencies installed:** - -- **JS/TS** - - **Smart contract projects**: [`@thirdweb/contracts`](/typescript/latest) - - **App projects:** - - **React**: [`@thirdweb/react`](/react/latest), [`@thirdweb/sdk`](/typescript/latest) and [`ethers` v5](https://docs.ethers.org/v5/) - - **React Native**: [`@thirdweb/react-native`](/react-native/latest), [`@thirdweb/react-native-compat`](/react-native/latest) and [`ethers` v5](https://docs.ethers.org/v5/) - - **Other**: [`@thirdweb/sdk`](/typescript/latest) and [`ethers` v5](https://docs.ethers.org/v5/) - -If any thirdweb package _(or Ethers)_ is already installed, they are updated to the latest compatible version. ## Options diff --git a/apps/portal/src/app/connect/account-abstraction/get-started/page.mdx b/apps/portal/src/app/connect/account-abstraction/get-started/page.mdx index b024a0892e2..9297cd95736 100644 --- a/apps/portal/src/app/connect/account-abstraction/get-started/page.mdx +++ b/apps/portal/src/app/connect/account-abstraction/get-started/page.mdx @@ -183,7 +183,7 @@ string address = await sdk.wallet.Connect(connection); -Once setup, you can use the Connect [TypeScript](/typescript/latest), [React](/react/latest) and [Unity SDKs](/unity) to deploy contracts, perform transactions, and manipulate smart accounts like any other wallet. +Once setup, you can use the Connect [TypeScript](/typescript/v5), [React](/react/v5) and [Unity SDKs](/unity) to deploy contracts, perform transactions, and manipulate smart accounts like any other wallet. diff --git a/apps/portal/src/app/connect/account-abstraction/guides/react/page.mdx b/apps/portal/src/app/connect/account-abstraction/guides/react/page.mdx index f823a346b35..00886f9e924 100644 --- a/apps/portal/src/app/connect/account-abstraction/guides/react/page.mdx +++ b/apps/portal/src/app/connect/account-abstraction/guides/react/page.mdx @@ -14,7 +14,7 @@ export const metadata = createMetadata({ # Using Account Abstraction in React -By using the [wallet SDK](/references/wallets/latest) alongside the [React SDK](/react/latest), you can use smart accounts in your front-end applications easily. +By using the [TypeScript SDK](/typescript/v5), you can use smart accounts in your front-end applications easily. diff --git a/apps/portal/src/app/connect/account-abstraction/guides/typescript/page.mdx b/apps/portal/src/app/connect/account-abstraction/guides/typescript/page.mdx index 81b710ca1ef..cae3787bb5d 100644 --- a/apps/portal/src/app/connect/account-abstraction/guides/typescript/page.mdx +++ b/apps/portal/src/app/connect/account-abstraction/guides/typescript/page.mdx @@ -14,7 +14,7 @@ export const metadata = createMetadata({ # Using Account abstraction in Typescript -By using the [wallet SDK](/references/wallets/latest) alongside the [TypeScript SDK](/typescript/latest), you can use smart accounts in your applications easily. +By using the [TypeScript SDK](/typescript/v5), you can use smart accounts in your applications easily. ## Example Use Cases @@ -80,15 +80,18 @@ console.log("Personal account address:", personalAccount.address); -Now, let's create a smart account using the SmartWallet class from the `@thirdweb-dev/wallets` package. -To do this, we need to pass a `SmartWalletConfig` object to the constructor. This object contains the following properties: +Now, let's create a smart account using `smartWallet` from `thirdweb/wallets` package. +To do this, we need to pass an object of type [SmartWalletOptions](/references/typescript/v5/SmartWalletOptions) to the function. + +Some of the important properties in this object are: - `chain`: the chain that the smart account will be deployed on. - `sponsorGas`: whether the smart account should have sponsored transactions or not. -Once we have created the config and instantiated the `SmartWallet` class, we can connect the personal wallet to the smart account using the `connect` method. - +Once we have created the smart wallet interface, we can connect the personal wallet to the smart account using the `connect` method. ```typescript +import { smartWallet } from "thirdweb/wallets"; + // Configure the smart wallet const wallet = smartWallet({ chain: sepolia, diff --git a/apps/portal/src/app/connect/account-abstraction/permissions/page.mdx b/apps/portal/src/app/connect/account-abstraction/permissions/page.mdx index 152f14ff190..38843265598 100644 --- a/apps/portal/src/app/connect/account-abstraction/permissions/page.mdx +++ b/apps/portal/src/app/connect/account-abstraction/permissions/page.mdx @@ -1,6 +1,5 @@ import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs"; import { createMetadata } from "@doc"; -import { V4SDKbanner } from "@/components/others/V4SDKBanner"; export const metadata = createMetadata({ image: { diff --git a/apps/portal/src/app/connect/auth/frameworks/next/page.mdx b/apps/portal/src/app/connect/auth/frameworks/next/page.mdx index 4f36dcbcdb0..3b73086da20 100644 --- a/apps/portal/src/app/connect/auth/frameworks/next/page.mdx +++ b/apps/portal/src/app/connect/auth/frameworks/next/page.mdx @@ -11,7 +11,6 @@ import { TabsTrigger, } from "@doc"; import { GraduationCap } from "lucide-react"; -import { V4SDKbanner } from "@/components/others/V4SDKBanner"; export const metadata = createMetadata({ image: { diff --git a/apps/portal/src/app/connect/auth/frameworks/react-express/page.mdx b/apps/portal/src/app/connect/auth/frameworks/react-express/page.mdx index 7a44592bac9..ff39a664f58 100644 --- a/apps/portal/src/app/connect/auth/frameworks/react-express/page.mdx +++ b/apps/portal/src/app/connect/auth/frameworks/react-express/page.mdx @@ -11,7 +11,6 @@ import { TabsTrigger, } from "@doc"; import { GraduationCap } from "lucide-react"; -import { V4SDKbanner } from "@/components/others/V4SDKBanner"; export const metadata = createMetadata({ image: { diff --git a/apps/portal/src/app/engine/guides/airdrop-nfts/page.mdx b/apps/portal/src/app/engine/guides/airdrop-nfts/page.mdx index d5f30cf469d..341ccf08778 100644 --- a/apps/portal/src/app/engine/guides/airdrop-nfts/page.mdx +++ b/apps/portal/src/app/engine/guides/airdrop-nfts/page.mdx @@ -31,25 +31,27 @@ Engine makes it effortless for any developer to airdrop NFTs at scale. You spons ## Frontend: Add Connect Wallet and Claim buttons -Use [``](/react/latest/components/ConnectWallet) to prompt the user for their wallet. The **Claim** button calls `POST /api/claim`. +Use [`ConnectButton`](/references/typescript/v5/ConnectButton) component to prompt the user for their wallet. The **Claim** button calls `POST /api/claim`. ```tsx +import { useActiveAccount } from "thirdweb/react"; function ClaimPage() { - const userWalletAddress = useAddress(); + const account = useActiveAccount(); + const address = account?.address; const onClick = async () => { await fetch("/api/claim", { method: "POST", - body: JSON.stringify({ userWalletAddress }), + body: JSON.stringify({ address }), }); - alert(`🎉 A reward has been sent to your wallet: ${userWalletAddress}`); + alert(`🎉 A reward has been sent to your wallet: ${address}`); }; return (

Thank you for being a superfan! ❤️

- {userWalletAddress && } + {address && }
); } diff --git a/apps/portal/src/app/engine/guides/nft-checkout/page.mdx b/apps/portal/src/app/engine/guides/nft-checkout/page.mdx index 0c5a4de3cc1..06fcb157e2b 100644 --- a/apps/portal/src/app/engine/guides/nft-checkout/page.mdx +++ b/apps/portal/src/app/engine/guides/nft-checkout/page.mdx @@ -33,12 +33,12 @@ The buyer receives the NFT without requiring wallet signatures or gas funds. ## Frontend: Add Connect Wallet and credit card form -Use [``](/react/latest/components/ConnectWallet) to prompt the buyer for their wallet address. The buyer provides their credit card details and selects **Pay now** to send payment details directly to Stripe. +Use [``](/references/typescript/v5/ConnectButton) to prompt the buyer for their wallet address. The buyer provides their credit card details and selects **Pay now** to send payment details directly to Stripe. ```tsx function Home() { return ( - + ); diff --git a/apps/portal/src/app/glossary/composability/page.mdx b/apps/portal/src/app/glossary/composability/page.mdx index 6a3379c4ff3..41a41d2ff2f 100644 --- a/apps/portal/src/app/glossary/composability/page.mdx +++ b/apps/portal/src/app/glossary/composability/page.mdx @@ -4,7 +4,7 @@ Composability refers to the ability for different protocols and smart contracts It allows for the creation of new products and services without having to build everything from scratch. Thirdweb is completely composable. Each product can be used independently or in combination with other products. -For example, you can use the [SDKs](/typescript/latest) or [Dashboard](https://thirdweb.com/team) with **any** contract. Similarly, you can use the [Solidity SDK](/contracts/build/overview) -without using the [Dashboard](https://thirdweb.com/team) or [TypeScript/JavaScript SDK](/typescript/latest). +For example, you can use the [SDKs](/connect) or [Dashboard](https://thirdweb.com/team) with **any** contract. Similarly, you can use the [Solidity SDK](/contracts/build/overview) +without using the [Dashboard](https://thirdweb.com/team) or [TypeScript/JavaScript SDK](/typescript/v5). So, if you already have your own workflow which works for you, you can pick and choose which products you want to use. diff --git a/apps/portal/src/app/landing-page/CTAs.tsx b/apps/portal/src/app/landing-page/CTAs.tsx deleted file mode 100644 index b98389a5a17..00000000000 --- a/apps/portal/src/app/landing-page/CTAs.tsx +++ /dev/null @@ -1,37 +0,0 @@ -"use client"; - -import Link from "next/link"; -import posthog from "posthog-js"; -import { Button } from "../../components/ui/button"; - -export function LandingPageCTAs() { - return ( -
- - -
- ); -} diff --git a/apps/portal/src/app/nebula/api-reference/common.ts b/apps/portal/src/app/nebula/api-reference/common.ts index 2ea3f409459..335246fecb3 100644 --- a/apps/portal/src/app/nebula/api-reference/common.ts +++ b/apps/portal/src/app/nebula/api-reference/common.ts @@ -66,7 +66,7 @@ export const nebulaAPI422Response = `\ ] }`; -export const nebulaExecuteConfigType = `\ +const nebulaExecuteConfigType = `\ { mode: "engine"; engine_url: string; @@ -82,7 +82,7 @@ export const nebulaExecuteConfigType = `\ signer_wallet_address: string; }`; -export const nebulaContextFilterType = `\ +const nebulaContextFilterType = `\ { chainIds: string[] | null; contractAddresses: string[] | null; diff --git a/apps/portal/src/app/payments/assets/checkouts-overview.png b/apps/portal/src/app/payments/assets/checkouts-overview.png deleted file mode 100644 index 37fe44c85cd..00000000000 Binary files a/apps/portal/src/app/payments/assets/checkouts-overview.png and /dev/null differ diff --git a/apps/portal/src/app/payments/layout.tsx b/apps/portal/src/app/payments/layout.tsx deleted file mode 100644 index 84c927add30..00000000000 --- a/apps/portal/src/app/payments/layout.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { createMetadata } from "@/components/Document"; -import { DocLayout } from "@/components/Layouts/DocLayout"; -import { sidebar } from "./sidebar"; - -export default async function Layout(props: { children: React.ReactNode }) { - return ( - - {props.children} - - ); -} - -export const metadata = createMetadata({ - image: { - title: "thirdweb Payments", - icon: "payment", - }, - title: "thirdweb Payments", - description: - "thirdweb payments delivers the easiest NFT payments experience for you and your buyers", -}); diff --git a/apps/portal/src/app/payments/nft-checkout/api-reference/page.mdx b/apps/portal/src/app/payments/nft-checkout/api-reference/page.mdx deleted file mode 100644 index 4b1e7ebf000..00000000000 --- a/apps/portal/src/app/payments/nft-checkout/api-reference/page.mdx +++ /dev/null @@ -1,63 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "API References | thirdweb Payments", - description: "thirdweb Payments API Reference", -}); - -# Usage - -The Payments API enables all the functionalities needed to create checkouts. - -[View the full API reference.](https://redocly.github.io/redoc/?url=https://payments.thirdweb.com/api/doc) - -You must use an API Secret Key to make authenticated calls. These calls should be -made from your backend. [Create an API Key by creating a project from your thirdweb dashboard.](https://thirdweb.com/team) - -Provide your secret key as a header: `x-secret-key: your_api_secret_key` - ---- - -## API Categories - -### Enable Contracts for Payments - -Enable, edit, and disable contracts for Payments. - -[View API reference.](https://redocly.github.io/redoc/?url=https://payments.thirdweb.com/api/doc#tag/Contracts) - -### Checkout Links - -Create, edit, and delete Checkout Links. - -[View API reference.](https://redocly.github.io/redoc/?url=https://payments.thirdweb.com/api/doc#tag/Checkout-Links) - -### One-time Checkout Links (Advanced) - -Create One-time Checkout Links. - -[View API reference.](https://redocly.github.io/redoc/?url=https://payments.thirdweb.com/api/doc#tag/One-time-Checkout-Links) - -### Embedded Elements - -Create SDK Client Secret used for Embedded Elements. - -[View API reference.](https://redocly.github.io/redoc/?url=https://payments.thirdweb.com/api/doc#tag/Checkout-Embedded-Elements) - -### Transaction Status - -Get the status of a transaction by transaction ID. - -[View API reference.](https://redocly.github.io/redoc/?url=https://payments.thirdweb.com/api/doc#tag/Transaction-Status) - -### Get Estimated Price - -Get the estimated price of a checkout, including fees and gas. - -[View API reference.](https://redocly.github.io/redoc/?url=https://payments.thirdweb.com/api/doc#tag/Estimated-Price) - -### Transaction Holds - -Capture or cancel a transaction hold. - -[View API reference.]() diff --git a/apps/portal/src/app/payments/nft-checkout/assets/checkout-with-card-customization-demo.png b/apps/portal/src/app/payments/nft-checkout/assets/checkout-with-card-customization-demo.png deleted file mode 100644 index 907a9a37cf3..00000000000 Binary files a/apps/portal/src/app/payments/nft-checkout/assets/checkout-with-card-customization-demo.png and /dev/null differ diff --git a/apps/portal/src/app/payments/nft-checkout/assets/checkout-with-card-demo.png b/apps/portal/src/app/payments/nft-checkout/assets/checkout-with-card-demo.png deleted file mode 100644 index 4fe895275e6..00000000000 Binary files a/apps/portal/src/app/payments/nft-checkout/assets/checkout-with-card-demo.png and /dev/null differ diff --git a/apps/portal/src/app/payments/nft-checkout/assets/checkout-with-eth-demo-2.png b/apps/portal/src/app/payments/nft-checkout/assets/checkout-with-eth-demo-2.png deleted file mode 100644 index 687ed9098b2..00000000000 Binary files a/apps/portal/src/app/payments/nft-checkout/assets/checkout-with-eth-demo-2.png and /dev/null differ diff --git a/apps/portal/src/app/payments/nft-checkout/assets/checkout-with-eth-demo.png b/apps/portal/src/app/payments/nft-checkout/assets/checkout-with-eth-demo.png deleted file mode 100644 index 93bbba27774..00000000000 Binary files a/apps/portal/src/app/payments/nft-checkout/assets/checkout-with-eth-demo.png and /dev/null differ diff --git a/apps/portal/src/app/payments/nft-checkout/assets/enable-payments.jpeg b/apps/portal/src/app/payments/nft-checkout/assets/enable-payments.jpeg deleted file mode 100644 index 647b652ff3c..00000000000 Binary files a/apps/portal/src/app/payments/nft-checkout/assets/enable-payments.jpeg and /dev/null differ diff --git a/apps/portal/src/app/payments/nft-checkout/checkout-link/page.mdx b/apps/portal/src/app/payments/nft-checkout/checkout-link/page.mdx deleted file mode 100644 index 96ab03a80fe..00000000000 --- a/apps/portal/src/app/payments/nft-checkout/checkout-link/page.mdx +++ /dev/null @@ -1,39 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Create a Checkout Link | thirdweb Payments", - description: - "Checkout Links are public, reusable URLs that allow buyers to complete a purchase with thirdweb's prebuilt checkout experience.", -}); - -# Create a Checkout Link - -Checkout Links are public, reusable URLs that allow buyers to complete a purchase with thirdweb's prebuilt checkout experience. - -## Prerequisites - -Make sure you've [enabled your contract for Payments](/payments/nft-checkout/enable-contract) first. - -## Use cases - -- Integrate a functional, prebuilt checkout experience quickly. -- Open your NFT's public sale to all buyers. -- Charge your buyers the same price. -- Request your buyer's details (email, wallet address) during checkout. - -## Create a checkout link - -### Dashboard - -1. Navigate into your contract from the [Contracts page](https://thirdweb.com/team/~/~/contracts). -2. Navigate to the "Payments" page from the sidebar. -3. Click the "Create New Checkout" button -4. Customize the look and feel of your checkout experience, and hit "Create" - -### API - -[See the API Reference for creating a checkout link](https://redocly.github.io/redoc/?url=https://payments.thirdweb.com/api/doc#tag/Checkout-Links/paths/~1api~12022-08-12~1shareable-checkout-link/post) - -## Branding - -Creating a Checkout Link is the fastest way to get started with thirdweb Checkouts. If you are looking for complete customization over branding and UX, check out the guide on [Embedded Elements](elements). diff --git a/apps/portal/src/app/payments/nft-checkout/checkout-with-card/assets/checkout-with-card-customization-demo.png b/apps/portal/src/app/payments/nft-checkout/checkout-with-card/assets/checkout-with-card-customization-demo.png deleted file mode 100644 index 907a9a37cf3..00000000000 Binary files a/apps/portal/src/app/payments/nft-checkout/checkout-with-card/assets/checkout-with-card-customization-demo.png and /dev/null differ diff --git a/apps/portal/src/app/payments/nft-checkout/checkout-with-card/assets/checkout-with-card-demo.png b/apps/portal/src/app/payments/nft-checkout/checkout-with-card/assets/checkout-with-card-demo.png deleted file mode 100644 index 4fe895275e6..00000000000 Binary files a/apps/portal/src/app/payments/nft-checkout/checkout-with-card/assets/checkout-with-card-demo.png and /dev/null differ diff --git a/apps/portal/src/app/payments/nft-checkout/checkout-with-card/page.mdx b/apps/portal/src/app/payments/nft-checkout/checkout-with-card/page.mdx deleted file mode 100644 index 38bbbe1ffa5..00000000000 --- a/apps/portal/src/app/payments/nft-checkout/checkout-with-card/page.mdx +++ /dev/null @@ -1,174 +0,0 @@ -import { Steps, Step, DocImage } from "@doc"; -import { createMetadata } from "@doc"; -import checkoutCardDemoImage from "./assets/checkout-with-card-demo.png"; -import checkoutCardCustomizationImage from "./assets/checkout-with-card-customization-demo.png"; - -export const metadata = createMetadata({ - title: "CheckoutWithCard | thirdweb Embedded Elements", - description: - "The CheckoutWithCard element embeds a form on your app that accepts credit/debit card, Apple Pay, and Google Pay.", -}); - -# CheckoutWithCard - -The **CheckoutWithCard** element embeds a form on your app that accepts credit/debit card, Apple Pay, and Google Pay. - -This component also handles: - -- Apple Pay and Google Pay -- Bot and anti-fraud detection -- 3D Secure (if necessary) -- Buyer KYC (if necessary) - - - -## React Integration - - - - Follow our SDK [install guide](/react/latest/getting-started) here. - {/* */} - ```bash - npm install @thirdweb-dev/react - ``` - {/* */} - ```bash - yarn add @thirdweb-dev/react - ``` - - - On your frontend, render the `CheckoutWithCard` component with your configs. - - - -### Example - -```typescript -import { CheckoutWithCard } from "@thirdweb-dev/react"; - - { - console.log("Payment successful:", result); - }} -/>; -``` - -### `CheckoutWithCard` props - -| Name | Type | Description | -| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| clientId **\*** | string | thirdweb client ID (Obtained from an API key which you can generate on the [Dashboard](https://thirdweb.com/team)) | -| configs **\*** | object | A list of configs to create your card checkout element. Fields are the same as the ones found in the [Create Checkout Elements Client Secret](https://docs.withpaper.com/reference/create-checkout-elements-client-secret) API. | -| onPaymentSuccess **\*** | `({ transactionId: string; }) => void` | This method is called after the payment has been submitted for processing. This payment may still be rejected by the cardholder's bank. | -| onError | `(PaperSDKError) => void` | This method is called when an error is encountered. | -| onPriceUpdate | `({ quantity: number; unitPrice: PriceDetail; networkFees: PriceDetail; serviceFees: PriceDetail; total: PriceDetail; }) => void` | This method is called when the price is updated or loaded for the first time. This summary is helpful to show a granular price breakdown. Where PriceDetail is `{ display: string; valueInSubunits: number; currency: string; }` | -| locale | enum Valid values: `en`, `fr`, `es`, `it`, `de`, `ja`, `ko`, `zh` | The language to show text in. Defaults to `en`. | -| options | object | Customize component styling. See [Customization](#customization). | - -## Javascript Integration - - - - Follow our SDK [install guide](/react/latest/getting-started) here. - {/* */} - ```bash - npm install @thirdweb-dev/payments - ``` - {/* */} - ```bash - yarn add @thirdweb-dev/payments - ``` - - - Call `createCheckoutWithCardElement` to insert the iframe on your page. Pass the `configs` to this component. - > If you don't provide `elementOrId`, this call returns an iframe element for you to insert into your page. - - - -### Example code - -```typescript -import { createCheckoutWithCardElement } from "@thirdweb-dev/payments"; - -// Assume a container exists: -// -//
-// -createCheckoutWithCardElement({ - clientId: "YOUR_CLIENT_ID", - configs: { - contractId: "YOUR_CONTRACT_ID", - walletAddress: "0x...", - } - elementOrId: "paper-checkout-container", - appName: "My Web3 App", - options, - onError(error) { - console.error("Payment error:", error); - }, - onPaymentSuccess({ id }) { - console.log("Payment successful."); - }, -}); - -// Alternatively, insert the iframe programmatically: -// -// const iframe = createCheckoutWithCardElement(...) -// document.getElementById('paper-checkout-container').appendChild(iframe); - -``` - -## Customization - -The optional `options` argument allows you to customize the component's styling. All customization fields are optional. - -#### `options` object - -| Name | Type | Description | -| -------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------- | -| colorPrimary | string (In hex, e.g. #cf3781) | The primary brand color for buttons and links. | -| colorBackground | string (In hex, e.g. #cf3781) | The background color of the page. | -| colorText | string (In hex, e.g. #cf3781) | The color for text on the page and UI elements. | -| borderRadius | number (In px, e.g. 0 for sharp corners, 12 for rounded corners, 24 for pill shape) | The roundness of buttons and input elements. | -| inputBorderColor | string (In hex, e.g. #cf3781) | The border color of the input field. | -| inputBackgroundColor | string (In hex, e.g. #cf3781) | The background color of the input field. | - -#### Example - -Here's an example component with the following props: - -```javascript -{ - colorBackground: '#fefae0', - colorPrimary: '#606c38', - colorText: '#283618', - borderRadius: 6, - inputBackgroundColor: '#faedcd', - inputBorderColor: '#d4a373', -} -``` - - diff --git a/apps/portal/src/app/payments/nft-checkout/checkout-with-eth/assets/checkout-with-eth-demo-2.png b/apps/portal/src/app/payments/nft-checkout/checkout-with-eth/assets/checkout-with-eth-demo-2.png deleted file mode 100644 index 687ed9098b2..00000000000 Binary files a/apps/portal/src/app/payments/nft-checkout/checkout-with-eth/assets/checkout-with-eth-demo-2.png and /dev/null differ diff --git a/apps/portal/src/app/payments/nft-checkout/checkout-with-eth/assets/checkout-with-eth-demo.png b/apps/portal/src/app/payments/nft-checkout/checkout-with-eth/assets/checkout-with-eth-demo.png deleted file mode 100644 index 93bbba27774..00000000000 Binary files a/apps/portal/src/app/payments/nft-checkout/checkout-with-eth/assets/checkout-with-eth-demo.png and /dev/null differ diff --git a/apps/portal/src/app/payments/nft-checkout/checkout-with-eth/page.mdx b/apps/portal/src/app/payments/nft-checkout/checkout-with-eth/page.mdx deleted file mode 100644 index a31f7102afe..00000000000 --- a/apps/portal/src/app/payments/nft-checkout/checkout-with-eth/page.mdx +++ /dev/null @@ -1,135 +0,0 @@ -import { DocImage } from "@doc"; -import { createMetadata } from "@doc"; -import checkoutWithEthImage from "./assets/checkout-with-eth-demo.png"; - -export const metadata = createMetadata({ - title: "CheckoutWithEth | thirdweb Embedded Elements", - description: - "CheckoutWithEth embeds a component on your page that accepts ETH payments on Ethereum.", -}); - -# CheckoutWithEth - -**CheckoutWithEth** embeds a component on your page that accepts ETH payments on Ethereum. - -This component also handles: - -- Connecting the payment wallet -- Prompting the payment wallet to switch chain, if necessary -- Informing the payment wallet they have insufficient funds - - - -## React Integration - -1. Install the React SDK with your preferred package manager. - - `npm install @paperxyz/react-client-sdk-checkout-with-eth` - - `yarn add @paperxyz/react-client-sdk-checkout-with-eth` -2. Copy your API key from the [Developer Dashboard: Developers](https://withpaper.com/dashboard/developers) page. -3. When a buyer wants to make a purchase, create a `configs` object (see props table below). You will provide some buyer information and configure behavior via this API. -4. Instantiate a `PaperSDKProvider` provider to store Paper-specific properties. -5. Within the provider, instantiate the `CheckoutWithEth` component to render this component. Pass the SDK Client Secret to this component. - -### Example - -```typescript -import { CheckoutWithEth } from "@paperxyz/react-client-sdk-checkout-with-eth"; - - { - console.log("Payment successful."); - }} -/>; -``` - -### `CheckoutWithEth` props - -| Name | Type | Description | -| --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| configs **\*** | string | A list of configs to create your eth checkout element. Fields are the same as the ones found in the [Create Checkout Elements Client Secret](ref:create-checkout-elements-client-secret) API. | -| onPaymentSuccess **\*** | `(props : { onChainTxReceipt: TransactionReceipt; transactionId: string; }) => void` | This method is called after the payment has succeeded onchain. | -| onPriceUpdate | `({ cryptoToFiatConversionRate: number; quantity: number; unitPrice: PriceDetail; networkFees: PriceDetail; serviceFees: PriceDetail; total: PriceDetail; }) => void` | This method is called when the price is updated or loaded for the first time. This summary is helpful to show a granular price breakdown. \* The `valueInSubunits` type here differs from the subunits for CheckoutWithCard (which is a number) | -| locale | enum (Valid values: `en`, `fr`, `es`, `it`, `de`, `ja`, `ko`, `zh`) | The language to show text in. Defaults to `en`. | -| receivingWalletType | enum (Valid values: `WalletConnect`, `MetaMask`, `Coinbase Wallet`, `Phantom`, `Preset`) | Defaults to `Preset`. The wallet type of the user wallet receiving the NFT to render the appropriate wallet icon in the component. | -| suppressErrorToast | boolean | Defaults to `false`. If `false`, there will be a toast (within the iFrame) that pops up informing the user of what went wrong. This can include canceling transactions, pending transactions, etc. | -| showConnectWalletOptions | boolean | Defaults to `true`. If `true`, a connect wallet screen will be displayed allowing users to connect their wallet. | -| payingWalletSigner | [`ethers.Signer`](https://docs.ethers.io/v5/api/signer/) | If provided, the component will request funds from this signer. | -| onWalletConnected | `(props: { userAddress: string, chainId: number }) => void` | This method is called when a payment wallet is connected. | -| onPageChange | `(currentPage: CheckoutWithEthPage) => void` | This method is called when the buyer transitions between pages. | -| onError | `(error: PaperSDKError) => void` | This method is called when an error is encountered. | -| setUpUserPayingWalletSigner | `(args: { chainId: number }) => void` | This method is called before the `payingWalletSigner` is asked to pay with the `chainId` that the `payingWalletSigner` is supposed to be on. | - -## Javascript Integration - -1. Install the Javascript SDK with your preferred package manager. - - `npm install @paperxyz/js-client-sdk` - - `yarn add @paperxyz/js-client-sdk` -2. Copy your API key from the [Developer Dashboard: Developers](https://withpaper.com/dashboard/developers) page. -3. When a buyer wants to make a purchase, create a `configs` object (see props table below). You will provide some buyer information and configure behavior via this API. -4. Call `createCheckoutWithEthElement` to insert the iframe on your page. Pass the SDK Client Secret to this component. - 1. If you don't provide `elementOrId`, this call returns an iframe element for you to insert into your page. - -### Code example - -```javascript -import type { createCheckoutWithEthElement } from "@paperxyz/js-client-sdk-checkout-with-eth"; - -// Assume a container exists: -// -//
-// -const iframe = await createCheckoutWithEthElement({ - configs: { - contractId: 'CONTRACT_ID', - walletAddress: "0x...", - } - elementOrId: "paper-checkout-container", - payingWalletSigner, - setUpUserPayingWalletSigner, - receivingWalletType, - onError(error) { - console.log("Payment error:", error); - }, - onSuccess({ transactionId }) { - console.log("Payment successful."); - }, -}); - -// Alternatively, insert the iframe programmatically: -// -// const iframe = createCheckoutWithEthElement(...) -// document.getElementById('paper-checkout-container').appendChild(iframe); -``` - -### Props - -| Name | Type | Description | -| --------------------------- | ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| configs **\*** | string | A list of configs to create your eth checkout element. Fields are the same as the ones found in the [Create Checkout Elements Client Secret](ref:create-checkout-elements-client-secret) API. | -| payingWalletSigner **\*** | [ethers.Signer](https://docs.ethers.io/v5/api/signer/) | The connected wallet who is going to be paying the `ETH` required for the checkout | -| locale | enum (Valid values: `en`, `fr`, `es`, `it`, `de`, `ja`, `ko`, `zh`) | The language to show text in. Defaults to `en`. | -| options | object | Customize component styling. See [Customization](#customization). | -| setUpUserPayingWalletSigner | `(args: { chainId: number; }) => void \| Promise` | If provided, the callback will be called before asking buyers to pay with the `chainId` that they are expected to be on. Developers must make sure that users are on the right chain (Goerli for testnets, Eth for mainnets) or risk buyers sending funds into the void. | -| receivingWalletType | enum (Valid values: `WalletConnect`, `MetaMask`, `Coinbase Wallet`, `Phantom`, `Preset`) | Defaults to `Preset`. The wallet type of the user wallet receiving the NFT to render the appropriate wallet icon in the component. | -| onError | `(error: PaperSDKError) => void` | This method is called when anything wrong happens during the checkout process. | -| onPaymentSuccess | `(props: { onChainTxReceipt: TransactionReceipt; transactionId: string; }) => void` | This method is called after the payment has succeeded onchain. | -| suppressErrorToast | boolean | Defaults to `true`. If false, any error thrown will be displayed in a toast. | -| onLoad | `() => void` | This method is called when the iframe loads. | -| elementOrId | `string \| HTMLElement` | If provided, the iframe will be appended this element. You can pass in the DOM element or the `id` associated with the element. A minimum width of 380px is recommended. | - -## Customization - -The optional `options` argument allows you to customize the component's styling. All customization fields are optional. - -#### `options` object - -| Name | Type | Description | -| --------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------- | -| colorPrimary | string (In hex, e.g. #cf3781) | The primary brand color for buttons and links. | -| colorBackground | string (In hex, e.g. #cf3781) | The background color of the page. | -| colorText | string (In hex, e.g. #cf3781) | The color for text on the page and UI elements. | -| borderRadius | number (In px, e.g. 0 for sharp corners, 12 for rounded corners, 24 for pill shape) | The roundness of buttons and input elements. | diff --git a/apps/portal/src/app/payments/nft-checkout/custom-contracts/page.mdx b/apps/portal/src/app/payments/nft-checkout/custom-contracts/page.mdx deleted file mode 100644 index d72d7e23b57..00000000000 --- a/apps/portal/src/app/payments/nft-checkout/custom-contracts/page.mdx +++ /dev/null @@ -1,146 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Custom Contracts | thirdweb NFT Checkout", - description: - "Using your own Custom Contract on Polygon, Ethereum, or another EVM blockchain with thirdweb NFT Checkout", -}); - -# Custom Contracts - -Using your own Custom Contract on Polygon, Ethereum, or another EVM blockchain? The following example shows you how to use it with thirdweb. - -## Example - -Assume that this is your contract's claim function: - -```javascript -function claimTo( - address _to, - uint256 _quantity, - uint256 _tokenId, - string CUSTOM_ARG_1, // Any additional arguments. - bool CUSTOM_ARG_2 -) - external - payable - mintCompliant(_tokenId, _quantity) - priceCompliant(_tokenId, _quantity) - tokenLive(_tokenId) - { - // YOUR MINTING LOGIC HERE - } -``` - -You will then need a **mintMethod** in order for thirdweb to call your claim function. For the example above, your mintMethod should look like this: - -```json -mintMethod: { - name: "claimTo", // Name of the function to call within the smart contract. - args: { - _to: "$WALLET", - _quantity: "$QUANTITY", - _tokenId: 0, - CUSTOM_ARG_1: "xyz", - CUSTOM_ARG_2: false - }, - payment: { - value: "0.1 * $QUANTITY", // Assuming that your NFT costs 0.1 ETH each. - currency: "ETH" - } -} -``` - -This will ensure that when thirdweb calls the smart contract during any checkout flow, under the hood, we would be calling your smart contract like so: - -```javascript -claimTo("0x...", 1, 0, "xyz", false { - value: ethers.utils.parseEther("0.1"), -}); -``` - -## Requirements - -Your smart contract method that mints the NFT must satisfy these requirements: - -1. The method must accept the buyer's wallet address as an argument. -2. The method must allow thirdweb's minter wallets to mint an unlimited amount as the `msg.sender`. Any restrictions on the minting wallet address or quantity is not allowed. -3. (If priced in USDC) The method must explicitly [request USDC token](/payments/nft-checkout/erc20-pricing) from the `msg.sender`. - -## MintMethod - -The **mintMethod** is required when creating [Shareable Checkout Links](/payments/nft-checkout/checkout-link), [One-Time Checkout Links](/payments/nft-checkout/one-time-checkout-link), or [Checkout Elements](/payments/nft-checkout/elements). Think of it as an ABI for thirdweb to know how to call your claim function. - -The generic format of the mintMethod is: - -```json -"mintMethod": { - "name": "claimTo", - "args": { - "_to": "$WALLET", - "_quantity": "$QUANTITY" - }, - "payment": { - "value": "0.1 * $QUANTITY", - "currency": "ETH" - } -} -``` - -## Template variables - -> 🚧 Don't know the values? -> -> thirdweb supports two template variables -`$WALLET` and `$QUANTITY` that you may use if you don't know the buyer's wallet address and quantity. Note that for **all other** fields such as `value` and `currency`, you would need to hardcode the actual values. - -Template variables will be replaced when calling your contract: - -| Variable | Replaced with | -| :---------- | :------------------------------ | -| `$WALLET` | The buyer's wallet address. | -| `$QUANTITY` | The quantity of tokens to mint. | - -## Payment - -The `payment` field should provide the **price per NFT in human-readable form** (not wei). - -Example: `"payment": { "value": "0.1 * $QUANTITY", "currency": "ETH" }` - -### Free NFTs - -Set the price to zero. - -Example: `"payment": { value: "0 * $QUANTITY", currency: "MATIC" }` - -### NFTs priced in USDC - -Ensure your mint method **explicitly requests USDC tokens from msg.sender**. See [USDC Pricing](/payments/nft-checkout/erc20-pricing) for more details. - -### Delegate a different ERC-20 payment address - -> 📘 This is required when interacting with the [Seaport contract](https://docs.opensea.io/reference/seaport-overview). - -By default thirdweb's float wallet approves your NFT contract to request ERC-20 tokens. -To specify a different contract address that will request ERC-20 tokens from thirdweb's float wallet, set that address in the `"spender"` field: - -```json -"payment": { - "value": "100 * $QUANTITY", - "currency": "USDC", - "spender": "" -} -``` - -## FAQ - -### I have multiple methods with the same name. Why isn't my mintMethod isn't working? - -Please provide the full signature as your mintMethod. thirdweb will not try to "guess" the correct method. - -> **Example** -> -> Your contract has methods `mint(address to)` and `mint(address to, string tokenId)` and your checkout will call the former. -> -> Provide your mintMethod as `mint(address)`. - -You **do not** need to modify your contract. diff --git a/apps/portal/src/app/payments/nft-checkout/elements/page.mdx b/apps/portal/src/app/payments/nft-checkout/elements/page.mdx deleted file mode 100644 index 7e758a64862..00000000000 --- a/apps/portal/src/app/payments/nft-checkout/elements/page.mdx +++ /dev/null @@ -1,32 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "thirdweb Embedded Elements", - description: - "Checkout Embedded Elements are modular components that can be embedded directly in your app. This allows you to fully customize the look and feel of the checkout experience within your application.", -}); - -# Embedded Elements - -Checkout Embedded Elements are modular components that can be embedded directly in your app. This allows you to fully customize the look and feel of the checkout experience within your application. - -## Prerequisites - -- Make sure you've [enabled your contract for Payments](enable-contract) -- You have the user's wallet address - - If you do not already a wallet set up for your users, use [Connect](/connect/connect) to create a wallet first. -- Your Content Security Policy is set allowing thirdweb's domain. - - Make sure you enable the [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) directives on your server, please allow the following directives: - - `connect-src https://payments.thirdweb.com;` - - `frame-src https://payments.thirdweb.com;` - - `script-src https://payments.thirdweb.com;` - -## Integration - -#### Accepting fiat payment options (credit/debit card, Apple Pay, Google Pay) - -Embed [CheckoutWithCard](/payments/nft-checkout/checkout-with-card) in your app. - -#### Accepting crypto payment options (ETH) - -Embed [CheckoutWithEth](/payments/nft-checkout/checkout-with-eth) in your app. diff --git a/apps/portal/src/app/payments/nft-checkout/enable-contract/assets/enable-payments.jpeg b/apps/portal/src/app/payments/nft-checkout/enable-contract/assets/enable-payments.jpeg deleted file mode 100644 index 647b652ff3c..00000000000 Binary files a/apps/portal/src/app/payments/nft-checkout/enable-contract/assets/enable-payments.jpeg and /dev/null differ diff --git a/apps/portal/src/app/payments/nft-checkout/enable-contract/page.mdx b/apps/portal/src/app/payments/nft-checkout/enable-contract/page.mdx deleted file mode 100644 index f510512fcc3..00000000000 --- a/apps/portal/src/app/payments/nft-checkout/enable-contract/page.mdx +++ /dev/null @@ -1,35 +0,0 @@ -import { DocImage } from "@doc"; -import { createMetadata } from "@doc"; -import enablePaymentsImage from "./assets/enable-payments.jpeg"; - -export const metadata = createMetadata({ - title: "Enable Contract for Payments | thirdweb Payments", - description: - "Enabling your contract for Payments is required to unlock Checkouts functionality. This can be done on the thirdweb dashboard or with the Payments API.", -}); - -# Enable Contract for Payments - -Enabling your contract for Payments is required to unlock Checkouts functionality. This can be done on the thirdweb dashboard or with the Payments API. - -## Prerequisites - -Before you start, ensure your contract is set up properly for Checkouts. - -- Using a thirdweb contract? [Ensure your contract is configured properly](pre-built-contracts). -- Using your own NFT contract? [Ensure your custom contract is compatible](custom-contracts). -- Selling a token listed on a secondary marketplace? [Visit the marketplaces guide](marketplaces). - -## Enable a contract for Payments - -#### Dashboard - -1. Navigate into your contract by visiting [Contracts page](https://thirdweb.com/team/~/~/contracts). -2. Navigate to the "Payments" page from the sidebar. -3. Click the "Enable Payments" button - - - -#### API - -[See the API Reference for enabling contracts for Payments](https://redocly.github.io/redoc/?url=https://payments.thirdweb.com/api/doc#tag/Contracts/paths/~1api~12022-08-12~1register-contract/post) diff --git a/apps/portal/src/app/payments/nft-checkout/erc20-pricing/page.mdx b/apps/portal/src/app/payments/nft-checkout/erc20-pricing/page.mdx deleted file mode 100644 index e77ef88816a..00000000000 --- a/apps/portal/src/app/payments/nft-checkout/erc20-pricing/page.mdx +++ /dev/null @@ -1,56 +0,0 @@ -import { DocImage } from "@doc"; -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "ERC-20 Pricing | thirdweb NFT Checkout", - description: - "thirdweb supports selling NFTs that accept the USDC token for enterprise customers", -}); - -# ERC-20 Pricing - -> thirdweb supports selling NFTs that accept the USDC token **for enterprise customers only**. -> -> 👉 Read our guide on [How to Price your NFTs in USDC](https://blog.withpaper.com/how-to-price-your-nfts-in-usdc/). - -## Integration - -### For thirdweb contracts - -1. Navigate to the thirdweb dashboard for your contract -2. Set the claim condition to price the NFT in USDC. - - - -### For custom contracts - -1. Add the following snippet to your contract (modify as needed): - - ```solidity - // Replace MY_USDC_ADDRESS with the address based on the blockchain below. - IERC20 public usdc = IERC20("0xe6b8a5CF854791412c1f6EFC7CAf629f5Df1c747"); - uint256 priceInUsdc = 50 * 10 ** 6 - function mintTo(address recipient, uint256 quantity) public { - usdc.transferFrom(msg.sender, address(this), quantity * priceInUsdc); - } - ``` - -2. Configure your checkout to accept USDC payment: - 1. **Shareable Checkout Links:** When creating the checkout set the **Price per NFT** currency to **USDC**. - 2. **One-Time Checkout Links:** When [creating a One-Time Checkout Link](/payments/nft-checkout/one-time-checkout-link) set `mintMethod` with `"payment": { "value": "50 * $QUANTITY", currency: "USDC" }`. - 3. **Checkout Elements:** When [creating a Client Secret](/payments/nft-checkout/elements) set `mintMethod` with `"payment": { "value": "50 * $QUANTITY", currency: "USDC" }`. - -## Accepting the correct USDC token - -Make sure your contract requests the correct USDC token address from thirdweb. These are the supported USDC token addresses. - -- USDC on Polygon: [0x3c499c542cef5e3811e1192ce70d8cc03d5c3359](https://polygonscan.com/address/0x3c499c542cef5e3811e1192ce70d8cc03d5c3359) -- USDC on Goerli: [0x07865c6E87B9F70255377e024ace6630C1Eaa37F](https://goerli.etherscan.io/address/0x07865c6E87B9F70255377e024ace6630C1Eaa37F) -- USDC on Ethereum: [0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48](https://etherscan.io/address/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48) -- USDC on Optimism: [0x7f5c764cbc14f9669b88837ca1490cca17c31607](https://optimistic.etherscan.io/address/0x7f5c764cbc14f9669b88837ca1490cca17c31607) - -## FAQ - -### Do you support other ERC-20 tokens? - -thirdweb supports popular ERC-20 (or ERC20) tokens like USDC and WETH. If your NFT is priced in a different token, [contact us](mailto:support@withpaper.com). diff --git a/apps/portal/src/app/payments/nft-checkout/faq/page.mdx b/apps/portal/src/app/payments/nft-checkout/faq/page.mdx deleted file mode 100644 index 8eba3bc3b1e..00000000000 --- a/apps/portal/src/app/payments/nft-checkout/faq/page.mdx +++ /dev/null @@ -1,151 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "FAQ | thirdweb Payments", - description: "Frequently asked questions about thirdweb Payments.", -}); - -# General - -### How much does thirdweb Checkouts cost? - -There is **no cost to sellers**! Buyers pay a 1% service fee on top of payment processing fees. - -### How long does implementation take? - -A full-featured checkout link **takes minutes to set up**: - -1. [Register your contract](/payments/nft-checkout/enable-contract). -2. Create a [🔗 Checkout Link](/payments/nft-checkout/checkout-link). -3. Send the link to your customers. Done ✨! - -When you're ready to customize further, you can tinker with styling, SDKs, webhooks, dynamic pricing, and more. - -### How scalable is thirdweb Checkouts? How much load can it handle? - -Our product is enterprise-ready with a 99.9% uptime. We are battle-tested with enterprises like Balmain, New York Fashion Week, Unilever, deadmau5 and Tilting Point. We can enqueue transactions up to 200 transactions/minute by default, with higher limits upon request. - -### What platforms are supported? - -Checkout links can be used anywhere webpages are supported. - -The Checkout Embedded Elements SDK is supported on Web and Mobile Web. - -## Smart contract support - -### Which blockchains and currencies are supported? - -See the [overview](/payments) page for a list of supported chains and currencies. We can support any EVM chain upon request. Please contact support@thirdweb.com if the chain or currency you want to sell in is not on our list. - -### Are marketplace contracts supported? - -Yes! See [Marketplace Sales](/payments/nft-checkout/marketplaces) for more details. - -### Can I sell an NFT that is already minted? - -Yes! You'll need to "wrap" your NFT with a marketplace contract like [thirdweb marketplace](/contracts/explore/pre-built-contracts/marketplace) or build your own. This "direct listing" approach works like this: - -- The seller has an NFT already minted and wants to sell it. -- The seller approves the marketplace contract to take this NFT from their wallet once a buyer offers a specified amount. The NFT is not moved until a sale is completed. -- A buyer agrees to pay the specified amount. They pay via your Checkout flow. -- After the buyer's payment is successful, thirdweb calls the "buy" method with the expected amount in crypto to the marketplace contract. This method transfers the NFT to the buyer's wallet. - -## Payments - -### Where does thirdweb send the funds after a customer has paid? - -thirdweb directly calls the smart contract and pays for the mint using the native currency specified in the contract function. If you are looking for FIAT payout, it is available for the enterprise customers. Please [contact sales](mailto:sales@thirdweb.com) . - -### What regions does thirdweb support credit card payments? - -thirdweb uses multiple payment processors and supports credit card payments in most countries (190+) and all 50 US states. Select countries that the US cannot conduct business with are not supported (Cuba, Iran, North Korea, Syria, and the Crimea, Donetsk, and Luhansk Regions). 10+ currencies and languages are supported. - -### What fiat payment options are accepted? - -thirdweb accepts: credit/debit cards (Visa, Mastercard, American Express, Discover, UnionPay, JCB, Diners Club), Apple Pay, Google Pay. - -### What is the price limit for checkouts? - -thirdweb limits checkouts to be priced at $2,000 USD and reserves the right to change this limit based on your checkout's risk profile. For enterprise customers, we can support up to $15,000. - -If you need a higher price limit, please fill out [this form](https://thirdweb.com/contact-us). - -### When does thirdweb require identity verification (KYC)? - -thirdweb combines buyer, merchant, payment method, device, and behavioral signals from multiple vendors to compute the riskiness of a purchase. A small portion of buyers (\< 3% and varies by merchant) will be prompted to submit a photo ID and take a webcam selfie. This step is automated and takes under 1 minute. - -Reminder: thirdweb takes on **all** chargeback liability from the developer! - -## Testing - -### Is there a test credit card? - -Yes, please use the following card numbers. The expiry date, CVV, and postal code do not matter. - -| Card Number | Description | -| :--------------- | :----------------------------------- | -| 4242424242424242 | A "low risk" card. | -| 4000000000009235 | A "high risk" card that prompts KYC. | - -### Where can I get testnet funds? - -Here are some faucets to receive testnet funds: - -| Chain | Currency | Faucet link | -| :----------------- | :------- | :---------------------------------- | -| Sepolia (Ethereum) | ETH | `https://sepoliafaucet.com` | -| Goerli (Optimism) | ETH | `https://faucet.paradigm.xyz` | - -## Customization - -### Can I customize the checkout to match my branding? - -Yes, customize colors and UI elements to fit your theme for [Checkout Links](checkout-link). Or embed [Checkout Elements](elements) in your app with granular control of colors. - -### How do allow my users to redeem utility with their NFT? - -NFTs are a great way to gate content! Once the NFT is purchased, you can provide a link to redeem their utility on the post-purchase page and email. - -Listen to [webhooks](webhooks) to update your database or send a custom email when the NFT has been transferred. - -### Are checkouts translated into different languages? - -Yes, the checkout is localized to the buyer's browser language, or you can force a specific language. See [Translations](translations) for more details. - -### How does checkout support referral codes or discounts? - -You can use our dynamic one-time checkout links to generate payment links with discounts or referral codes for customers. For a full guide to how to implement this, refer [here](one-time-checkout-link). - -## Wallets - -### What if my users don't have a wallet? - -Buyers who don't have a wallet can create one with their email or social login. This uses thirdweb's non-custodial [In-App Wallet](/connect/embedded-wallet/overview) product. - -### How does my user transfer the NFT from the In-App Wallet? - -Buyers can visit [My Wallets](https://ews.thirdweb.com/wallet) to view and transfer NFTs in their In-App Wallets. We cover all gas fees related to transferring and offer a way for users to export their private key. - -## Other - -### Does Checkouts support credit card payments for functions outside of minting like burning and editing NFTs? - -This feature is available upon request. Please contact us at [sales@thirdweb.com](mailto:sales@thirdweb.com). - -### What is the customer support level provided to customers? - -For developers, please [visit our support site](https://thirdweb.com/support). If you are looking for guaranteed support time and SLA, please contact [sales@thirdweb.com](mailto:sales@thirdweb.com). - -For customers, we respond to inquiries on our support center and to [support@thirdweb.com](mailto:support@thirdweb.com) within 24 business hours. - -### How does thirdweb handle compliance? - -We conduct KYC (know your customer) verification with driver's license and liveliness check on suspicious customers (\<3% on average and varies by merchant). We also handle dark wallet checks to ensure that flagged wallets and stolen funds are not being used in any of our transactions. - -We take on all liabilities & chargeback risks as the Merchant of Record. - -thirdweb is currently in the process of receiving our SOC II certification. - -### What are the authorization rates? - -We have industry leading authorization rates at 92%. We are able to maintain a high authorization by only operating with NFTs, and having a proprietary fraud engine that keeps our fraud rate at \<0.5%. diff --git a/apps/portal/src/app/payments/nft-checkout/getting-started/page.mdx b/apps/portal/src/app/payments/nft-checkout/getting-started/page.mdx deleted file mode 100644 index 07dd8676d0b..00000000000 --- a/apps/portal/src/app/payments/nft-checkout/getting-started/page.mdx +++ /dev/null @@ -1,38 +0,0 @@ -import { Steps, Step } from "@doc"; -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Getting Started with NFT Checkout | thirdweb Payments", - description: - "Get an end-to-end NFT checkout experience up and running in a few steps!", -}); - -# Getting Started - -Get an end-to-end NFT checkout experience up and running in a few steps! - - - - -You can create or deploy a smart contract on [thirdweb dashboard](https://thirdweb.com/team/~/~/contracts). - - - - -Visit the Payments dashboard or use the API to enable your contract for Payments. Start with the first step of our integration guide, [Enable Contract for Payments](enable-contract). - - - - -Generate a complete, pre-built checkout experience by [creating a Checkout Link](checkout-link). - -Want a more branded checkout embedded in your app? Visit the guide on [Embedded Checkout Elements](elements) instead. - - - -Make sure to review the [Go Live Checklist](go-live-checklist) prior to launch to ensure your setup is launch-ready. - -**Important note: you must provide personal documents (KYC) and business documents (KYB) at least 48 hours prior to launching on mainnet.** - - - diff --git a/apps/portal/src/app/payments/nft-checkout/go-live-checklist/page.mdx b/apps/portal/src/app/payments/nft-checkout/go-live-checklist/page.mdx deleted file mode 100644 index b08754fb0d0..00000000000 --- a/apps/portal/src/app/payments/nft-checkout/go-live-checklist/page.mdx +++ /dev/null @@ -1,62 +0,0 @@ -import { Steps, Step } from "@doc"; -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Go Live Checklist | thirdweb Payments", - description: - "Before you go live on mainnet, be sure to review this checklist to ensure your production checkout launch goes smoothly.", -}); - -# Go Live Checklist - -Before you go live on mainnet, be sure to review this checklist to ensure your production checkout launch goes smoothly. - - - -Testing on mainnet is costly! Please test your contract and checkout implementation on testnet. - -- For Polygon projects, please test on Amoy. -- For Ethereum projects, please test on Sepolia. -- Visit the [overview page](/payments) to see a list of supported testnets. - -You should be able to test all critical aspects of your smart contract on testnet, including allowlists, signature-based mints, your custom mint method, etc. - - - - - -In order to accept fiat payments (credit cards, debit cards) on mainnet chains, we are required by law to verify your personal (KYC) and business (KYB) information. This information is collected purely for compliance purposes and is not used or shared for any other reason. **You must provide this information at least 48 hours prior to launch.** - - - - - -Testnet and mainnet transactions call a different set of webhook endpoints. Make sure to add your production endpoint(s) in the Webhooks section of the dashboard before going live. - - - - -We currently limit checkouts to be priced under $2,000 USD by default. We may be able to change this at our discretion based on your checkout's risk profile. - -To request a higher price limit, please contact support@thirdweb.com. - - - - - -If you are expecting very high sales volume, please [contact us](https://thirdweb.com/contact-us) in advance so we can make sure the engineering team is aware and ready to support your launch. - - - - -Remember that ERC-20 token addresses differ between testnet and mainnet. Make sure to update your contract to point at the mainnet address for the requested token. - - - - -If your contract is on an L2 chain like Polygon, OpenSea may hide your collection by default from buyers' profiles. To avoid this, please contact OpenSea to verify your collection before your launch. - -Buyers are still able to complete their purchase regardless of OpenSea verification, but may need to manually unhide their purchased token from their OpenSea profile if it is hidden by default. - - - diff --git a/apps/portal/src/app/payments/nft-checkout/marketplaces/page.mdx b/apps/portal/src/app/payments/nft-checkout/marketplaces/page.mdx deleted file mode 100644 index 157d1d1e98b..00000000000 --- a/apps/portal/src/app/payments/nft-checkout/marketplaces/page.mdx +++ /dev/null @@ -1,70 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Marketplaces | thirdweb NFT Checkout", - description: - "thirdweb supports marketplace contracts where a user can list an NFT and receive funds when a buyer purchases it.", -}); - -# Marketplaces - -thirdweb supports marketplace contracts where a user can list an NFT and receive funds when a buyer purchases it. - -Integration is identical to a checkout using a `CUSTOM_CONTRACT` contract type. Follow the guide on integrating [custom contracts](custom-contracts), and ensure the `mintMethod` identifies the method on your smart contract that purchases the NFT (a "buy" method). - -Your contract method should do the following: - -- Accepts the wallet address where the NFT should be delivered. -- Accepts payment in the chain's native coin or [USDC / ERC-20 tokens](erc20-pricing) from the caller (`msg.sender`) of the method. -- Transfers the NFT from the seller to the recipient's wallet address. Remember: `msg.sender` is thirdweb's minter wallet and not the buyer's wallet address. Your function needs to ensure the recipient is specified in the argument list. - -## Third-party marketplaces - -Checkouts also supports purchases of tokens listed on third-party Marketplaces such as OpenSea, LooksRare, or X2Y2. - -Purchases on third-party marketplaces are facilitated by the [Reservoir](https://docs.reservoir.tools/docs) contract. You can create a Checkout for an item listed on any [supported Reservoir marketplace](https://docs.reservoir.tools/docs/supported-marketplaces). - -## Integration - -1. Register a new contract - 1. Set your **Contract Type** to **Reservoir**. - 2. Leave **Contract Address** blank. -2. Create a checkout link with the ID of the registered contract. We recommend using one-time checkout links as the underlying token listed on third-party marketplaces may sell out. - -### Code sample - -```typescript -const body = { - contractId: "REGISTERED_CONTRACT_ID", // this contract should be registered with Reservoir as the contract type - title: "My Checkout", - contractArgs: { - // TIP! You can add more than 1 token to the nfts array and we'll accept all of those listings! - nfts: [ - { token: `COLLECTION_CONTRACT_ADDRESS_1:TOKEN_ID_1` }, - { token: `COLLECTION_CONTRACT_ADDRESS_2:TOKEN_ID_2` } - ] - }, -}; - -const resp = await fetch("https://payments.thirdweb.com/api/2022-08-12/checkout-link-intent", { - method: "POST", - headers: [ - "Authorization": "Bearer MY_THIRDWEB_API_SECRET_KEY", - "Content-Type": "application/json", - ] - body: JSON.stringify(body); -}); -const { checkoutLinkIntentUrl } = await resp.body(); - -// Navigate users to this URL to purchase your NFT. - -``` - -Please update the following variables: - -- `REGISTERED_CONTRACT_ID`: The Contract ID from Step 1. -- `COLLECTION_CONTRACT_ADDRESS`: The contract address of the NFT collection. -- `TOKEN_ID`: The token ID of the NFT from the listing. This listing must exist on one of Reservoir's supported marketplaces. -- `MY_THIRDWEB_API_SECRET_KEY` found on your API Keys dashboard page. - -For a more embedded and branded checkout experience, you may also sell marketplace NFTs with [Checkout Elements](elements). diff --git a/apps/portal/src/app/payments/nft-checkout/one-time-checkout-link/page.mdx b/apps/portal/src/app/payments/nft-checkout/one-time-checkout-link/page.mdx deleted file mode 100644 index 831e4963c41..00000000000 --- a/apps/portal/src/app/payments/nft-checkout/one-time-checkout-link/page.mdx +++ /dev/null @@ -1,32 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "One-Time Checkout Link | thirdweb NFT Checkout", - description: - "A one-time Checkout Link is a prebuilt checkout experience that is customized per buyer by providing a fixed price, email, wallet address, quantity, and more.", -}); - -# One-Time Checkout Link - -A one-time Checkout Link is a prebuilt checkout experience that is customized per buyer by providing a fixed price, email, wallet address, quantity, and more. - -Each unique link allows at most one purchase and expires after the specified duration. - -## Prerequisites - -Make sure you've [enabled your contract for Payments](enable-contract). - -## Use cases - -- Gate purchases via an off-chain allowlist. After verifying the buyer's identity on your app, navigate them to the checkout link. -- Implement dynamic pricing by passing in the price for each checkout. This feature allows you to provide coupon codes, bulk discounts, and loyalty discounts. -- Restrict the quantity of NFTs your buyers can purchase. -- Directly email the checkout URL directly to the buyer's inbox. - -## Create a one-time checkout link - -One-time checkout links can only be created via API. - -### API - -[See the API Reference for creating a one-time checkout link](https://redocly.github.io/redoc/?url=https://payments.thirdweb.com/api/doc#tag/One-time-Checkout-Links/paths/~1api~12022-08-12~1checkout-link-intent/post) diff --git a/apps/portal/src/app/payments/nft-checkout/pre-built-contracts/page.mdx b/apps/portal/src/app/payments/nft-checkout/pre-built-contracts/page.mdx deleted file mode 100644 index f1a05883839..00000000000 --- a/apps/portal/src/app/payments/nft-checkout/pre-built-contracts/page.mdx +++ /dev/null @@ -1,76 +0,0 @@ -import { DocImage } from "@doc"; -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Pre-built Contracts | thirdweb NFT Checkout", - description: "Pre-built Contracts available on thirdweb NFT Checkout", -}); - -# Pre-built Contracts - -## Integration - -For some thirdweb contracts, set `contractArgs` when creating [Shareable Checkout Links](/payments/nft-checkout/checkout-link), [One-Time Checkout Links](/payments/nft-checkout/one-time-checkout-link), or [Checkout Elements](/payments/nft-checkout/elements). - -See guide: [Create an ERC721A NFT Drop with Signature-Based Minting](https://blog.thirdweb.com/guides/signature-drop/) - -### NFT Drop - -This is an ERC-721A contract where the NFT metadata is unique but the claim configuration is identical for all buyers. No `contractArgs` should be set. - -### Edition Drop - -This is an ERC-1155 contract where the NFT metadata and claim configuration is identical for all buyers. Set `contractArgs` with the token ID to mint: - -```typescript -contractArgs = { tokenId: "0" }; -``` - -### Marketplace - -This is a contract that allows other users to purchase already-minted NFTs. Set `contractArgs` with an array of the marketplace listing IDs of each of the direct listing: - -```typescript -contractArgs = { - listings: [ - { listingId: "0" }, - { listingId: "1" }, - ... - ] -} -``` - -## Configure the Claim Condition - -Your thirdweb contract must have at least one active claim condition, meaning the **When will this phase start?** date is in the past. - - - -Helpful tips for each field: - -| Field | Notes | -| ----------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| **When will this phase start?** | thirdweb can only mint NFTs after this date. | -| **How many NFTs will you drop in this phase?** | Remember to create NFTs on the **NFTs** tab for NFT Drop contracts. | -| **How much do you want to charge to claim each NFT?** | For Goerli, this price must be ≤ 0.0001 ETH.

On production, there is a $2,000 price limit. Please fill out [this Typeform](https://fw3786mcxwl.typeform.com/to/B0xIFoiu) to request an increase. | -| **What currency do you want to use?** | Supported currencies on thirdweb: - Polygon: MATIC, USDC, WETH
- Goerli: ETH
- Ethereum: ETH, USDC | -| **Who can claim NFTs during this phase?** | If you have an allowlist, please add thirdweb's minter wallets.
Otherwise leave this blank. | -| **How many NFTs can be claimed per transaction?** | This value must be Unlimited. Otherwise thirdweb's minter wallets will not be able to mint more than this amount. | -| **How many seconds do wallets have to wait in-between claiming?** | This value must be 0. Otherwise thirdweb's minter wallets will fail when many mints occur at once. | - -## Debug common blockchain error responses - -| Error Message | Description | Solution | -| ------------------ | -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `!Qty` | The buyer is attempting to purchase more than allowed per wallet. | **:warning: Your Claim Condition must allow thirdweb Wallets to mint an unlimited amount.**

The **How many NFTs can be claimed per transaction?** setting must be set to Unlimited. Alternatively, allow thirdweb's minter wallets to mint the full supply in a snapshot. | -| `!MaxSupply` | The buyer is attempting to purchase more than the available supply, or the drop is sold out. | Allow more NFTs to be sold, or prevent buyers from navigating to the checkout page if sold out. | -| `cant claim yet` | There is no claim phase, or the claim phase has not started. | Wait until the claim phase has started, or set one claim phase's start date to a past date. | -| `!PriceOrCurrency` | thirdweb sent the incorrect amount or currency to the contract. | thirdweb may be auto-detecting the price incorrectly. | - -_Source: Drop.sol from thirdweb contracts_ - -If your transactions are failing for these reasons, please update the active **Claim Condition** on your thirdweb contract. diff --git a/apps/portal/src/app/payments/nft-checkout/translations/page.mdx b/apps/portal/src/app/payments/nft-checkout/translations/page.mdx deleted file mode 100644 index 2430e9cd810..00000000000 --- a/apps/portal/src/app/payments/nft-checkout/translations/page.mdx +++ /dev/null @@ -1,43 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Translations | thirdweb NFT Checkout", - description: "List of supported languages in thirdweb NFT Checkout", -}); - -# Translations - -Checkouts supports the following languages: - -- English -- French -- Italian -- Spanish -- German -- Japanese -- Korean -- Chinese - -By default, text is shown in the buyer's preferred browser language and defaults to English. Non-English languages are **only supported in the Embedded Elements implementation**. - -## Force a specific language - -To always show text in one language, set the `locale` property to the two-letter [ISO 639-1 code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) when creating the Checkout Element in your frontend code. - -### React example - -```typescript - -``` - -### Javascript SDK example - -```typescript -createCheckoutWithCardElement({ - // ... - locale: "fr", -}); -``` diff --git a/apps/portal/src/app/payments/nft-checkout/webhooks/page.mdx b/apps/portal/src/app/payments/nft-checkout/webhooks/page.mdx deleted file mode 100644 index 1bbdf543e93..00000000000 --- a/apps/portal/src/app/payments/nft-checkout/webhooks/page.mdx +++ /dev/null @@ -1,214 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Webhooks | thirdweb NFT Checkout", - description: - "Configure webhook URLs to have thirdweb notify your backend when successful or failed events occur.", -}); - -# Webhooks - -Configure webhook URLs to have thirdweb notify your backend when successful or failed events occur. - -## Use cases - -- Update your database when a buyer purchases an NFT. -- Send an email to a buyer after their purchase succeeds. -- Inform your team in Slack/Discord when a payment or purchase failed. - -## Events - -The following webhook events are supported. - -| Event | Description | -| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `transfer:succeeded` | The NFT has been delivered to the buyer's wallet. | -| `transfer:failed` | The NFT was unable to be delivered after multiple retries. A refund will automatically be processed. | -| `payment:succeeded` | A buyer's payment has been successfully completed. | -| `payment:failed` | A buyer's payment attempt has been rejected. Extra data fields may be available with information from our payment processor on the failure reason. | -| `payment:refunded` | A buyer's payment has been refunded because the mint failed multiple attempts. Extra data fields may be available with the reason for the refund. | -| `payment:hold_created` | This is only emitted if `capturePaymentLater` is set. A buyer's payment method has a pre-authorization hold created for the given amount. They have not been charged yet. You can capture this hold to complete their purchase, or cancel it. | - -## Request format - -thirdweb will call your backend with an HTTPS `POST` request: - -### Headers - -```text -Content-Type: application/json -x-thirdweb-signature: -``` - -### Request body - -```json -{ - "event": "transfer:succeeded", - "result": { - "id": "5bbbada7-e864-4dac-ae4b-0ee4967f55d8", - "checkoutId": "70e08b7f-c528-46af-8b17-76b0e0ade641", - "walletAddress": "0x2086Fcd5b0B8F4aFAc376873E861DE00c67D7B83", - "walletType": "Preset", - "email": "buyer@example.com", - "quantity": 1, - "paymentMethod": "BUY_WITH_CARD", - "networkFeeUsd": 0.02, - "serviceFeeUsd": 1.79, - "totalPriceUsd": 45.99, - "createdAt": "2022-08-22T19:15:09.755375+00:00", - "paymentCompletedAt": "2022-08-22T19:16:01.673+00:00", - "transferCompletedAt": "2022-08-22T19:16:18.024+00:00", - "claimedTokens": { - "collectionAddress": "0x965550329b91b7c703a527347b613E175f38872d", - "collectionTitle": "My First NFT", - "tokens": [ - { - "transferHash": "0x076d1b496152efd2a97d0db1d558c681188a1a76a8a2c271a33e4c34cc1fa467", - "transferExplorerUrl": "https://polygonscan.com/tx/0x076d1b496152efd2a97d0db1d558c681188a1a76a8a2c271a33e4c34cc1fa467", - "tokenId": "262", - "quantity": 1 - } - ] - }, - "title": "My First Checkout", - "transactionHash": "0x076d1b496152efd2a97d0db1d558c681188a1a76a8a2c271a33e4c34cc1fa467", - "valueInCurrency": "0.05", - "currency": "ETH", - "metadata": { - "myAppUserId": "23a9fj2930gya0" - }, - "mintMethod": { ... }, - "eligibilityMethod": { ... }, - "contractArgs": { ... }, - } -} -``` - -```json JSON (Marketplace) -{ - "event": "transfer:succeeded", - "result": { - "id": "5bbbada7-e864-4dac-ae4b-0ee4967f55d8", - "checkoutId": "70e08b7f-c528-46af-8b17-76b0e0ade641", - "walletAddress": "0x2086Fcd5b0B8F4aFAc376873E861DE00c67D7B83", - "walletType": "Preset", - "email": "buyer@example.com", - "quantity": 1, - "paymentMethod": "BUY_WITH_CARD", - "networkFeeUsd": 0.02, - "serviceFeeUsd": 1.79, - "totalPriceUsd": 45.99, - "createdAt": "2022-08-22T19:15:09.755375+00:00", - "paymentCompletedAt": "2022-08-22T19:16:01.673+00:00", - "transferCompletedAt": "2022-08-22T19:16:18.024+00:00", - "claimedTokens": { - "tokens": [ - { - "transferHash": "0x076d1b496152efd2a97d0db1d558c681188a1a76a8a2c271a33e4c34cc1fa467", - "transferExplorerUrl": "https://polygonscan.com/tx/0x076d1b496152efd2a97d0db1d558c681188a1a76a8a2c271a33e4c34cc1fa467", - "tokenId": "262", - "quantity": 1, - "from": "0xce6913CA121276E550b82844A08aCB4dfDc09178", - "collectionAddress": "0x965550329b91b7c703a527347b613E175f38872d", - "collectionTitle": "My First NFT" - } - ] - }, - "title": "My First Checkout", - "transactionHash": "0x076d1b496152efd2a97d0db1d558c681188a1a76a8a2c271a33e4c34cc1fa467", - "valueInCurrency": "0.05", - "currency": "ETH", - "metadata": { - "myAppUserId": "23a9fj2930gya0" - }, - "mintMethod": { ... }, - "eligibilityMethod": { ... }, - "contractArgs": { ... }, - } -} -``` - -## Usage - -### Provide a webhook handler URL - -Webhooks are configured separately for testnet and production checkout on the dashboard. Webhook URLs must be publicly accessible `https` endpoints. - -Do not provide a `localhost` URL to test your local server. We recommend testing your development server with a service like [ngrok](https://ngrok.io/) to serve a temporary public URL. - -**Please return a `2xx` response for unexpected or unused event types to prevent unnecessary retries.** - -### Verify the signature header - -To ensure the request came from thirdweb, each webhook request signs the payload and provides this signature in the `x-thirdweb-signature` header. - -To verify this signature, create a **SHA-256 HMAC hash** with your **thirdweb payments secret key** that can be found in your Team > Project > Connect > Pay > Settings in [dashboard](https://thirdweb.com/team) and the **body payload as the message** (as a JSON-encoded string). - -### Example implementation - -Here's a simplified HTTP handler in Next.js: - -```typescript -import { createHmac, timingSafeEqual } from "crypto"; - -const thirdwebCheckoutsWebhookHandler = (req, res) => { - const apiKey = ""; // Your thirdweb payments secret key - - // Get the provided signature. - const signature = req.headers["x-thirdweb-signature"]; - // Compute the expected signature. - const hash = createHmac("sha256", apiKey) - .update(JSON.stringify(req.body)) // {"event":"transfer:succeeded","result":{"id":... - .digest("hex"); - // Confirm the provided signature matches. - if (!timingSafeEqual(Buffer.from(signature), Buffer.from(hash))) { - return res.status(400).send("Signature mismatch!"); - } - - switch (req.body.event) { - case "transfer:succeeded": - // Handle when an NFT was delivered. - case "transfer:failed": - // Handle when an NFT could not be delivered. - default: - // Ignore all other events and return 2xx. - } - - return res.status(200).send("OK"); -}; -``` - -### Test the webhook response - -Use the **Test webhook** button to send a dummy payload to your webhook URL and see response status/body. - -### View recent webhook events - -Select the **List events** button to view the recent webhook events, including the request body and response status/body from your backend. This view is useful to debug misconfigured webhook handlers. - -## FAQ - -### Why do I need to verify the signature header? - -If your server is public, a bad actor can spoof a webhook request. Verifying the signature ensures the payload has not been changed. If a bad actor changes the webhook request body, the signature would not match the signed payload. - -### Why is my signature header mismatched? - -Here are common reasons the signature header may be mismatched. - -- Check if the header is set lower-cased. Some server frameworks (e.g. Next.js) use lowercase request header names since they are case-insensitive (RFC 2616). -- Make sure you're passing the entire body as the message in the HMAC signature. Some frameworks require you to configure the HTTP handler to not parse the request body (e.g. [Next.js](https://nextjs.org/docs/api-routes/request-helpers)). -- Make sure your API key is valid. - -### What IP address will webhook requests come from? - -Webhooks will be sent from the IP address `44.225.232.73`. - -### How often will webhook requests be retried? - -Webhooks are retried every five minutes for up to one hour until a `2xx` response is returned. - -### Can I filter which webhook events are sent? - -Currently there is no way to filter which events are sent to your webhook URLs. thirdweb may add new webhook event types without notice. Please ignore events that you don't need by returning a `2xx` response. diff --git a/apps/portal/src/app/payments/page.mdx b/apps/portal/src/app/payments/page.mdx deleted file mode 100644 index ea4909cd902..00000000000 --- a/apps/portal/src/app/payments/page.mdx +++ /dev/null @@ -1,84 +0,0 @@ -import { DocImage } from "@doc"; -import checkoutsOverviewImage from "./assets/checkouts-overview.png"; -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - image: { - title: "thirdweb Payments", - icon: "infra", - }, - title: "thirdweb Payments", - description: - "Checkout delivers the easiest NFT payments experience for you and your buyers. Sell NFTs on any one of our supported EVM chains and allow your users to pay with any supported payment option. You and your buyers can expect instant payouts and instant NFT processing - all done through your smart contract.", -}); - -# thirdweb Payments - -Checkouts delivers the easiest NFT payments experience for you and your buyers. Sell NFTs on any one of our supported EVM chains and allow your users to pay with -any supported payment option. You and your buyers can expect instant payouts and instant NFT processing - all done through your smart contract. - - - -### Accepted payment options for buyers - -thirdweb accepts fiat payments via Credit & Debit Card, Apple Pay, and Google Pay. Card and other fiat payments are accepted from all 50 US states and most countries. We also support crypto payments via ETH. - -### Supported chains and currencies for developers - -thirdweb currently supports checkout for NFTs on any of the following chains with any of the following currencies: - -| Blockchain (Mainnet) | Supported Currencies | -| :------------------- | :------------------------------ | -| Arbitrum Nova | ETH | -| Arbitrum One | ETH, USDC.e\* | -| Avalanche | AVAX, USDC.e\* | -| Ethereum | ETH, USDC\* | -| Optimism | ETH, USDC\* | -| Polygon | MATIC, USDC\*, USDC.e\*, WETH\* | -| Zora | ETH | - -\* - ERC-20 tokens are available for pro or enterprise customers only - -# - -| Blockchain (Testnet) | Supported Currencies | -| :------------------- | :------------------- | -| Arbitrum Sepolia | ETH | -| Avalanche Fuji | AVAX | -| Base Sepolia | ETH | -| Sepolia | ETH | -| Zora Testnet | ETH | -| Polygon Amoy Testnet | MATIC | - -### Fraud prevention & chargeback protection - -thirdweb deters bots and fraudulent activity by using multiple data points about the buyer's device, network, behavior, payment, and more. Only high-risk buyers will need to verify their identity with an ID and selfie. - -We protect you from these concerns by offering **full chargeback protection.** - -### Reliable NFT Delivery - -thirdweb manages a fleet of funded crypto wallets to handle blockchain transactions at scale. Queues are automated to monitor for stuck transactions, failed onchain calls, and low funds. - -### Conversion-optimized UX - -Our checkout flow accounts for many cases to provide buyers a seamless experience with minimal steps: - -- Does the buyer need a crypto wallet or do they already have one? -- Do they exhibit bot-like or suspicious behavior? -- Do they have enough tokens to mint directly from their wallet? -- Is your user trying to purchase more than one NFT? -- Is your user allowlisted to purchase? -- Are there enough NFTs remaining to purchase? - -### Webhooks & custom metadata - -Configure webhooks to notify your backend when payments and transfers are completed. Webhooks allow you to unlock NFT-gated utilities, send customized emails, and more. - -Provide custom metadata to tag purchases with added information. - -### Analytics - -View purchases to your checkouts including breakdowns by payment method and wallet. Export your data with additional details including buyer location, transaction hash, conversion rate, and custom metadata. - -Get visibility into failed transactions to speed up debugging and resolve support questions. diff --git a/apps/portal/src/app/payments/sidebar.tsx b/apps/portal/src/app/payments/sidebar.tsx deleted file mode 100644 index aaa983e1bc3..00000000000 --- a/apps/portal/src/app/payments/sidebar.tsx +++ /dev/null @@ -1,84 +0,0 @@ -import type { SideBar } from "@/components/Layouts/DocLayout"; -import { PaymentsNFTCheckoutIcon } from "@/icons"; - -const checkoutSlug = "/payments/nft-checkout"; - -export const sidebar: SideBar = { - name: "Payments", - links: [ - { - name: "Overview", - href: "/payments", - }, - { separator: true }, - { - name: "NFT Checkout", - icon: , - isCollapsible: false, - links: [ - { - name: "Get Started", - href: `${checkoutSlug}/getting-started`, - links: [ - { - name: "Enable Contract for Payments", - href: `${checkoutSlug}/enable-contract`, - }, - { - name: "Create Checkout Link", - href: `${checkoutSlug}/checkout-link`, - }, - { - name: "Go Live Checklist", - href: `${checkoutSlug}/go-live-checklist`, - }, - ], - }, - - { - name: "Embedded Elements", - - links: [ - { - name: "Overview", - href: `${checkoutSlug}/elements`, - }, - { - name: "CheckoutWithCard", - href: `${checkoutSlug}/checkout-with-card`, - }, - { - name: "CheckoutWithEth", - href: `${checkoutSlug}/checkout-with-eth`, - }, - ], - }, - { - name: "Webhooks", - href: `${checkoutSlug}/webhooks`, - }, - { name: "Translations", href: `${checkoutSlug}/translations` }, - { name: "Marketplaces", href: `${checkoutSlug}/marketplaces` }, - { - name: "One-Time Checkout Link", - href: `${checkoutSlug}/one-time-checkout-link`, - }, - { - name: "Pre-built Contracts", - href: `${checkoutSlug}/pre-built-contracts`, - }, - { - name: "Custom Contracts", - href: `${checkoutSlug}/custom-contracts`, - }, - { - name: "ERC-20 Pricing", - href: `${checkoutSlug}/erc20-pricing`, - }, - ], - }, - { separator: true }, - { name: "API Reference", href: `${checkoutSlug}/api-reference` }, - { name: "FAQ", href: `${checkoutSlug}/faq` }, - ], -}; diff --git a/apps/portal/src/app/react-native/v0/ThirdwebProvider/page.mdx b/apps/portal/src/app/react-native/v0/ThirdwebProvider/page.mdx deleted file mode 100644 index 0912a4736d4..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebProvider/page.mdx +++ /dev/null @@ -1,100 +0,0 @@ -import { Details, Callout, createMetadata } from "@doc"; -import ActiveChainMDX from "./props/activeChain.mdx"; -import ClientIdMDX from "./props/clientId.mdx"; -import AuthConfigMDX from "./props/authConfig.mdx"; -import SupportedWalletsMDX from "./props/supportedWallets.mdx"; -import SupportedChainsMDX from "./props/supportedChains.mdx"; -import AutoConnectMDX from "./props/autoConnect.mdx"; -import LocaleMDX from "./props/locale.mdx"; -import ThemeMDX from "./props/theme.mdx"; -import DappMetaMDX from "./props/dAppMeta.mdx"; -import SDKOptionsMDX from "./props/sdkOptions.mdx"; -import StorageInterfaceMDX from "./props/storageInterface.mdx"; -import QueryClientMDX from "./props/queryClient.mdx"; - -export const metadata = createMetadata({ - image: { - title: "ThirdwebProvider: thirdweb React Native SDK", - icon: "react", - }, - title: "ThirdwebProvider | thirdweb React Native SDK", - description: "API references for the ThirdwebProvider component", -}); - -# ThirdwebProvider - -The `ThirdwebProvider` is a wrapper component that provides access to all of the SDK’s hooks and UI components. - - - -You will require an API key to use thirdweb's infrastructure services with the SDK. - -you need to first obtain an API key from the [dashboard](https://thirdweb.com/team/~/~) by creating a new project and then copy the "Client ID" and pass it to the `ThirdwebProvider` as the `clientId` prop. - - - -## Usage - -Wrap your app in the `ThirdwebProvider` to access the SDK’s functionality from anywhere in your app. - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; - -function Example() { - return ( - - - - ); -} -``` - -## Props - -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
diff --git a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/activeChain.mdx b/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/activeChain.mdx deleted file mode 100644 index 830f19f0f6f..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/activeChain.mdx +++ /dev/null @@ -1,151 +0,0 @@ -import { Details, Callout } from "@doc"; -import DefaultChainsMDX from "../../common/defaultChains.mdx"; - -The `activeChain` prop determines which chain you want your app to be operating on. - -It defaults to `"ethereum"` if `activeChain` prop is not provided. - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; -import { Gnosis } from "@thirdweb-dev/chains"; - -function Example() { - return ( - - - - ); -} -``` - -
- -If you are using one of our default chains, provide the name of the chain as a `string` to the `activeChain` prop. - - - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; - -function App() { - return ( - - - - ); -} -``` - -
- -
- -If the chain you are looking for is not one of default supported chains, you can import a chain from the [@thirdweb-dev/chains](https://github.com/thirdweb-dev/js/tree/v4/legacy_packages/chains) package which has 1000+ chains. - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; -import { } from "@thirdweb-dev/chains"; - -function App() { - return ( - } clientId="your-client-id"> - - - ); -} -``` - -### Override Default Values - -Override the default values (such as an RPC URL) for any given chain. - - -By default, the `@thirdweb-dev/chains` provides free-to-use RPCs. No configuration required! - -[View the default RPC URLs for each network](https://github.com/thirdweb-dev/js/tree/v4/legacy_packages/chains/chains). - - - -Using the [spread syntax](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax), -you can override any properties of a chain, such as the `rpc` field. - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; -import { } from "@thirdweb-dev/chains"; - -const activeChain = { - ..., - rpc: ["https://.com"], // Override the "rpc" field. - // ... Override any other fields you want to customize. -}; - -const App = () => { - return ( - - - - ); -}; -``` - -
- -
- -If your chain is not included in the `@thirdweb-dev/chains` package, -you can provide the chain information yourself to the `activeChain` prop. - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; - -const customChain = { - // Required information for connecting to the network - chainId: 59140, // Chain ID of the network - rpc: [""], // Array of RPC URLs to use - - // Information for adding the network to your wallet (how it will appear for first time users) === \\ - // Information about the chain's native currency (i.e. the currency that is used to pay for gas) - nativeCurrency: { - decimals: 18, - name: "Consensys ETH", - symbol: "crETH", - }, - shortName: "czkevm", // Display value shown in the wallet UI - slug: "consensys", // Display value shown in the wallet UI - testnet: true, // Boolean indicating whether the chain is a testnet or mainnet - chain: "ConsenSys", // Name of the network - name: "ConsenSys zkEVM Testnet", // Name of the network -}; - -const App = () => { - return ( - - - - ); -}; -``` - -
- -
- -If you are running a local node using a tool such as [Hardhat](https://hardhat.org/hardhat-network/docs/overview) or -[Anvil](https://github.com/foundry-rs/foundry/blob/master/anvil/README.md), -provide `"localhost"` as the `activeChain` prop, (or `Localhost` imported from `@thirdweb-dev/chains`). - -[Deploy](/contracts/deploy/overview) or [import](https://thirdweb.com/team/~/~/contracts) your contracts to the dashboard to interact with them. - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; - -function MyApp() { - return ( - - - - ); -} -``` - -
diff --git a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/authConfig.mdx b/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/authConfig.mdx deleted file mode 100644 index 691def345ac..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/authConfig.mdx +++ /dev/null @@ -1,26 +0,0 @@ -The configuration object for setting up [Auth](/connect/auth), allowing users to sign in with their wallet. - -| Property | Type | Description | -| --------------- | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `authUrl` | `string` | 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` | `string` | The frontend domain used to generate the login payload. This domain should match the domain used on your auth backend. | -| `secureStorage` | `ISecureStorage` | Secure storage to use when working with JWT tokens. ** By default auth uses cookies so no need to set this unless you want to specifically use JWT tokens ** | - -#### Example - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; - -function MyApp() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/autoConnect.mdx b/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/autoConnect.mdx deleted file mode 100644 index f05bc3617ff..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/autoConnect.mdx +++ /dev/null @@ -1,16 +0,0 @@ -When the user has connected their wallet to your site, this flag determines -whether or not you want to automatically connect to the last connected wallet when user visits your site again in the future. - -Defaults to `true` - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; - -function MyApp() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/clientId.mdx b/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/clientId.mdx deleted file mode 100644 index c5afbf01e53..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/clientId.mdx +++ /dev/null @@ -1,13 +0,0 @@ -The `clientId` prop is required to use the thirdweb infrastructure services with the SDK. You can get a client ID by creating an API key [on thirdweb dashboard](https://thirdweb.com/create-api-key). - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; - -function MyApp() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/dAppMeta.mdx b/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/dAppMeta.mdx deleted file mode 100644 index 971817cf8a3..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/dAppMeta.mdx +++ /dev/null @@ -1,38 +0,0 @@ -This Metadata is passed to the wallet. Some wallets use this information to display the metadata of the app to the user when a user is connecting the wallet to your app. - -If no `dAppMeta` prop is set, it defaults to below object: - -```js -{ - name: "thirdweb powered dApp", - url: "https://thirdweb.com", -}; -``` - -| Property | Type | Description | -| ------------- | ------- | ----------------------------------------------------------------- | -| `name` | string | the name of your app | -| `description` | string | optional - a description of your app | -| `logoUrl` | string | optional - a URL that points to a logo (or favicon) of your app | -| `url` | string | optional - the URL where your app is hosted | -| `isDarkMode` | boolean | optional - whether to show the connect dialog in dark mode or not | - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; - -function MyApp() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/locale.mdx b/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/locale.mdx deleted file mode 100644 index 74dc7ed3c2b..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/locale.mdx +++ /dev/null @@ -1,17 +0,0 @@ -Object that contains all text used for thirdweb components. - -It allows you to change the language used in UI components or override the texts used in the UI. - -You can add support for any language you want just by passing an object with the required strings. - -## Example - -```javascript -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; - - - -; -``` - -More info in our [Locale Reference](/react-native/v0/ThirdwebProviderProps#locale) diff --git a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/queryClient.mdx b/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/queryClient.mdx deleted file mode 100644 index 37948fc12d2..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/queryClient.mdx +++ /dev/null @@ -1,20 +0,0 @@ -If you are using [React Query](https://react-query.tanstack.com/) and have your own `QueryClient`, -you can pass it as the `queryClient` prop to use this client instead of the SDK's default client. - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; -import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; - -function MyApp() { - // Your React Query client (or client from other library such as wagmi) - const queryClient = new QueryClient(); - - return ( - - - - - - ); -} -``` diff --git a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/sdkOptions.mdx b/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/sdkOptions.mdx deleted file mode 100644 index 280ad725625..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/sdkOptions.mdx +++ /dev/null @@ -1,40 +0,0 @@ -Override any of the default values for the SDK. - -Gas settings, gasless transactions, RPC configuration, and more. - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; - -const sdkOptions = { - readonlySettings: { - rpcUrl: "", // force read calls to go through your own RPC url - chainId: 1, // reduce RPC calls by specifying your chain ID - }, - gasSettings: { - maxPriceInGwei: 123, // Maximum gas price for transactions (default 300 gwei) - speed: "fastest", // the tx speed setting: 'standard'|'fast|'fastest' (default: 'fastest') - }, - gasless: { - // By specifying a gasless configuration - all transactions will get forwarded to enable gasless transactions - openzeppelin: { - relayerUrl: "", // your OZ Defender relayer URL - relayerForwarderAddress: "", // the OZ defender relayer address (defaults to the standard one) - }, - biconomy: { - apiId: "biconomy-api-id", // your Biconomy API Id - apiKey: "biconomy-api-key", // your Biconomy API Key - deadlineSeconds: 123, // your Biconomy timeout preference - }, - }, - infuraApiKey: "", // your Infura API key - alchemyApiKey: "", // your Alchemy API key -}; - -function Example() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/storageInterface.mdx b/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/storageInterface.mdx deleted file mode 100644 index 758f6e15e47..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/storageInterface.mdx +++ /dev/null @@ -1,44 +0,0 @@ -import { Callout } from "@doc"; - -Override the default [Storage](/storage) interface used by the SDK. - -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 about Storage](/storage) - - - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; -import { - ThirdwebStorage, - StorageDownloader, - IpfsUploader, -} from "@thirdweb-dev/storage"; - -// Configure a custom ThirdwebStorage instance -const storage = new ThirdwebStorage({ - uploader: new IpfsUploader(), - downloader: new StorageDownloader(), - gatewayUrls: { - "ipfs://": [ - "https://gateway.ipfscdn.io/ipfs/", - "https://cloudflare-ipfs.com/ipfs/", - "https://ipfs.io/ipfs/", - ], - }, -}); - -// Provide the custom storage instance to the SDK -function MyApp() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/supportedChains.mdx b/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/supportedChains.mdx deleted file mode 100644 index 226de77c0df..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/supportedChains.mdx +++ /dev/null @@ -1,25 +0,0 @@ -import DefaultChainsMDX from "../../common/defaultChains.mdx"; - -An array of chains supported by your app. - -You can import chains from `@thirdweb-dev/chains` which contains 1000+ chains. - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; -import { Ethereum, Polygon } from "@thirdweb-dev/chains"; - -function MyApp() { - return ( - - - - ); -} -``` - -If not provided, It defaults to below shown default chains. - - diff --git a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/supportedWallets.mdx b/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/supportedWallets.mdx deleted file mode 100644 index 26af4818817..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/supportedWallets.mdx +++ /dev/null @@ -1,27 +0,0 @@ -An array of wallets that your app supports. - -Wallets provided here appear in the [ConnectWallet Modal](/react-native/v0/components/ConnectWallet) and allow you to use -the wallet connection hooks. - -[Learn more about connecting wallets](/react-native/v0/connecting-wallets) and the options available. - -```jsx -import { - ThirdwebProvider, - metamaskWallet, - coinbaseWallet, - walletConnect, -} from "@thirdweb-dev/react-native"; - -function MyApp() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/theme.mdx b/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/theme.mdx deleted file mode 100644 index 9f634c6acab..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebProvider/props/theme.mdx +++ /dev/null @@ -1,19 +0,0 @@ -Sets the theme for all thirdweb components. - -By default it is set to "dark". - -theme can be set to either "dark" or "light" or a custom theme object. - -You can also import the `lightTheme` or `darkTheme` functions from `@thirdweb-dev/react-native` to use the default themes as base and overrides parts of it. - -## Example - -```javascript -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; - - - -; -``` - -More info in our [Theme Reference](/react-native/v0/ThirdwebProviderProps#theme) diff --git a/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/page.mdx b/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/page.mdx deleted file mode 100644 index be1e4811bfe..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/page.mdx +++ /dev/null @@ -1,79 +0,0 @@ -import { Details, createMetadata } from "@doc"; -import SignerMDX from "./props/signer.mdx"; -import ClientIDMDX from "./props/clientId.mdx"; -import ActiveChainMDX from "./props/activeChain.mdx"; -import AuthConfigMDX from "./props/authConfig.mdx"; -import SDKOptionsMDX from "./props/sdkOptions.mdx"; -import StorageInterfaceMDX from "./props/storageInterface.mdx"; -import QueyrClientMDX from "./props/queryClient.mdx"; - -export const metadata = createMetadata({ - image: { - title: "ThirdwebSDKProvider: thirdweb React Native SDK", - icon: "react", - }, - title: "ThirdwebSDKProvider | thirdweb React Native SDK", - description: "API references for the ThirdwebSDKProvider component", -}); - -# ThirdwebSDKProvider - -The `ThirdwebSDKProvider` is used when you want to provide your own wallet connection logic and just use the thirdweb SDK to -interact with smart contracts and the blockchain. This means you can use everything in the SDK except for wallet connection-related components and hooks. - -Wrap your app in the `ThirdwebSDKProvider` to access the SDK's functionality from anywhere in your app. Provide a `signer` -prop to inform the SDK of the wallet you want to use, among other configuration options. - -## Usage - -Wrap your app in the `ThirdwebSDKProvider` to access the SDK's functionality from anywhere in your app. - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react-native"; -import { ethers } from "ethers"; - -function MyApp() { - // Example: Use ethers to get the signer from the window.ethereum object - const signer = new ethers.providers.Web3Provider(window.ethereum).getSigner(); - - return ( - - - - ); -} -``` - -## Props - -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
diff --git a/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/activeChain.mdx b/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/activeChain.mdx deleted file mode 100644 index 770c5feb670..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/activeChain.mdx +++ /dev/null @@ -1,151 +0,0 @@ -import { Details, InstallTabs, Callout } from "@doc"; -import DefaultChainsMDX from "../../common/defaultChains.mdx"; - -The `activeChain` prop determines which chain you want your app to be operating on. - -It defaults to `"ethereum"` if `activeChain` prop is not provided. - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react-native"; -import { Gnosis } from "@thirdweb-dev/chains"; - -function Example() { - return ( - - - - ); -} -``` - -
- -If you are using one of our default chains, provide the name of the chain as a `string` to the `activeChain` prop. - - - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react-native"; - -function App() { - return ( - - - - ); -} -``` - -
- -
- -If the chain you are looking for is not one of default supported chains, you can import a chain from the [@thirdweb-dev/chains](https://github.com/thirdweb-dev/js/tree/v4/legacy_packages/chains) package which has 1000+ chains. - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react-native"; -import { } from "@thirdweb-dev/chains"; - -function App() { - return ( - } clientId="your-client-id"> - - - ); -} -``` - -### Override Default Values - -Override the default values (such as an RPC URL) for any given chain. - - -By default, the `@thirdweb-dev/chains` provides free-to-use RPCs. No configuration required! - -[View the default RPC URLs for each network](https://github.com/thirdweb-dev/js/tree/v4/legacy_packages/chains/chains). - - - -Using the [spread syntax](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax), -you can override any properties of a chain, such as the `rpc` field. - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react-native"; -import { } from "@thirdweb-dev/chains"; - -const activeChain = { - ..., - rpc: ["https://.com"], // Override the "rpc" field. - // ... Override any other fields you want to customize. -}; - -const App = () => { - return ( - - - - ); -}; -``` - -
- -
- -If your chain is not included in the `@thirdweb-dev/chains` package, -you can provide the chain information yourself to the `activeChain` prop. - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react-native"; - -const customChain = { - // Required information for connecting to the network - chainId: 59140, // Chain ID of the network - rpc: [""], // Array of RPC URLs to use - - // Information for adding the network to your wallet (how it will appear for first time users) === \\ - // Information about the chain's native currency (i.e. the currency that is used to pay for gas) - nativeCurrency: { - decimals: 18, - name: "Consensys ETH", - symbol: "crETH", - }, - shortName: "czkevm", // Display value shown in the wallet UI - slug: "consensys", // Display value shown in the wallet UI - testnet: true, // Boolean indicating whether the chain is a testnet or mainnet - chain: "ConsenSys", // Name of the network - name: "ConsenSys zkEVM Testnet", // Name of the network -}; - -const App = () => { - return ( - - - - ); -}; -``` - -
- -
- -If you are running a local node using a tool such as [Hardhat](https://hardhat.org/hardhat-network/docs/overview) or -[Anvil](https://github.com/foundry-rs/foundry/blob/master/anvil/README.md), -provide `"localhost"` as the `activeChain` prop, (or `Localhost` imported from `@thirdweb-dev/chains`). - -[Deploy](/contracts/deploy/overview) or [import](https://thirdweb.com/team/~/~/contracts) your contracts to the dashboard to interact with them. - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react-native"; - -function MyApp() { - return ( - - - - ); -} -``` - -
diff --git a/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/authConfig.mdx b/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/authConfig.mdx deleted file mode 100644 index d396a9dac0b..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/authConfig.mdx +++ /dev/null @@ -1,26 +0,0 @@ -The configuration object for setting up [Auth](/connect/auth), allowing users to sign in with their wallet. - -| Property | Type | Description | -| --------------- | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `authUrl` | `string` | 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` | `string` | The frontend domain used to generate the login payload. This domain should match the domain used on your auth backend. | -| `secureStorage` | `ISecureStorage` | Secure storage to use when working with JWT tokens. ** By default auth uses cookies so no need to set this unless you want to specifically use JWT tokens ** | - -#### Example - -```tsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react-native"; - -function MyApp() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/clientId.mdx b/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/clientId.mdx deleted file mode 100644 index 82f8e66b00d..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/clientId.mdx +++ /dev/null @@ -1,11 +0,0 @@ -The `clientId` prop is required to use the thirdweb infrastructure services with the SDK. You can get a client ID by creating an API key on [thirdweb dashboard](https://thirdweb.com/create-api-key). - -```jsx -function MyApp() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/queryClient.mdx b/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/queryClient.mdx deleted file mode 100644 index 9adf9c6897f..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/queryClient.mdx +++ /dev/null @@ -1,20 +0,0 @@ -If you are using [React Query](https://react-query.tanstack.com/) and have your own `QueryClient`, -you can pass it as the `queryClient` prop to use this client instead of the SDK's default client. - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react-native"; -import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; - -function MyApp() { - // Your React Query client (or client from other library such as wagmi) - const queryClient = new QueryClient(); - - return ( - - - - - - ); -} -``` diff --git a/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/sdkOptions.mdx b/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/sdkOptions.mdx deleted file mode 100644 index 48056e0dd15..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/sdkOptions.mdx +++ /dev/null @@ -1,40 +0,0 @@ -Override any of the default values for the SDK. - -Gas settings, gasless transactions, RPC configuration, and more. - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react-native"; - -const sdkOptions = { - readonlySettings: { - rpcUrl: "", // force read calls to go through your own RPC url - chainId: 1, // reduce RPC calls by specifying your chain ID - }, - gasSettings: { - maxPriceInGwei: 123, // Maximum gas price for transactions (default 300 gwei) - speed: "fastest", // the tx speed setting: 'standard'|'fast|'fastest' (default: 'fastest') - }, - gasless: { - // By specifying a gasless configuration - all transactions will get forwarded to enable gasless transactions - openzeppelin: { - relayerUrl: "", // your OZ Defender relayer URL - relayerForwarderAddress: "", // the OZ defender relayer address (defaults to the standard one) - }, - biconomy: { - apiId: "biconomy-api-id", // your Biconomy API Id - apiKey: "biconomy-api-key", // your Biconomy API Key - deadlineSeconds: 123, // your Biconomy timeout preference - }, - }, - infuraApiKey: "", // your Infura API key - alchemyApiKey: "", // your Alchemy API key -}; - -function Example() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/signer.mdx b/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/signer.mdx deleted file mode 100644 index a29988b7da7..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/signer.mdx +++ /dev/null @@ -1,31 +0,0 @@ -A signer is an abstraction of an Ethereum Account, -which can be used to sign messages and initiate transactions. - -Since the `ThirdwebSDKProvider` is used when you want to provide your own wallet connection logic, -you will need to provide a `signer` prop to inform the SDK of the wallet you want to use to sign transactions. - -Libraries such as [ethers.js](https://docs.ethers.io/v5/), [web3.js](https://web3js.readthedocs.io/en/v1.5.2/), [wagmi](https://wagmi.sh), etc. -all provide ways to get a signer. - -To use this signer with the SDK, pass it to the `signer` prop. If the signer is connected, the SDK will use this wallet -to sign transactions for all write operations on the blockchain. - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react-native"; -import { ethers } from "ethers"; - -function MyApp() { - // Example: Use ethers to get the signer from the window.ethereum object - const signer = new ethers.providers.Web3Provider(window.ethereum).getSigner(); - - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/storageInterface.mdx b/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/storageInterface.mdx deleted file mode 100644 index 48a79f05475..00000000000 --- a/apps/portal/src/app/react-native/v0/ThirdwebSDKProvider/props/storageInterface.mdx +++ /dev/null @@ -1,44 +0,0 @@ -import { Callout } from "@doc"; - -Override the default [Storage](/storage) interface used by the SDK. - -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 about Storage](/storage) - - - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react-native"; -import { - ThirdwebStorage, - StorageDownloader, - IpfsUploader, -} from "@thirdweb-dev/storage"; - -// Configure a custom ThirdwebStorage instance -const storage = new ThirdwebStorage({ - uploader: new IpfsUploader(), - downloader: new StorageDownloader(), - gatewayUrls: { - "ipfs://": [ - "https://gateway.ipfscdn.io/ipfs/", - "https://cloudflare-ipfs.com/ipfs/", - "https://ipfs.io/ipfs/", - ], - }, -}); - -// Provide the custom storage instance to the SDK -function MyApp() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react-native/v0/common/defaultChains.mdx b/apps/portal/src/app/react-native/v0/common/defaultChains.mdx deleted file mode 100644 index a045cb56d2e..00000000000 --- a/apps/portal/src/app/react-native/v0/common/defaultChains.mdx +++ /dev/null @@ -1,24 +0,0 @@ -import { Details } from "@doc"; - -
- -```js -[ - "ethereum", - "goerli", - "polygon", - "arbitrum", - "arbitrum-goerli", - "optimism", - "optimism-goerli", - "binance", - "binance-testnet", - "fantom", - "fantom-testnet", - "avalanche-fuji", - "avalanche-fuji-testnet", - "localhost", -]; -``` - -
diff --git a/apps/portal/src/app/react-native/v0/components/ConnectEmbed/_assets/ConnectEmbedDefaultImg.png b/apps/portal/src/app/react-native/v0/components/ConnectEmbed/_assets/ConnectEmbedDefaultImg.png deleted file mode 100644 index e1cbc397726..00000000000 Binary files a/apps/portal/src/app/react-native/v0/components/ConnectEmbed/_assets/ConnectEmbedDefaultImg.png and /dev/null differ diff --git a/apps/portal/src/app/react-native/v0/components/ConnectEmbed/_assets/ConnectEmbedLight.png b/apps/portal/src/app/react-native/v0/components/ConnectEmbed/_assets/ConnectEmbedLight.png deleted file mode 100644 index 538ba81b1b3..00000000000 Binary files a/apps/portal/src/app/react-native/v0/components/ConnectEmbed/_assets/ConnectEmbedLight.png and /dev/null differ diff --git a/apps/portal/src/app/react-native/v0/components/ConnectEmbed/page.mdx b/apps/portal/src/app/react-native/v0/components/ConnectEmbed/page.mdx deleted file mode 100644 index e838a160b4b..00000000000 --- a/apps/portal/src/app/react-native/v0/components/ConnectEmbed/page.mdx +++ /dev/null @@ -1,226 +0,0 @@ -import { - Details, - Breadcrumb, - GithubTemplateCard, - Steps, - Step, - DocImage, - createMetadata, -} from "@doc"; -import ConnectEmbedDefaultImg from "./_assets/ConnectEmbedDefaultImg.png"; -import ConnectEmbedLight from "./_assets/ConnectEmbedLight.png"; - -export const metadata = createMetadata({ - image: { - title: "ConnectEmbed component", - icon: "react", - }, - title: "ConnectEmbed | thirdweb React Native SDK", - description: "API Reference for the ConnectEmbed component", -}); - - - -# ConnectEmbed - -ConnectEmbed component renders a UI to connect to various wallets. it renders the same UI as the [`ConnectWallet`](/react-native/v0/components/ConnectWallet) component's Modal UI. -This is really useful for Implementing a "Sign in" / "Welcome" page. - - - -You can start writing code with our [React Native Connect Embed template](https://github.com/thirdweb-example/react-native-connect-embed). - -## Usage - - - - -To Configure which wallets to show in the `ConnectEmbed` UI, you need to configure the `supportedWallets` prop in the [`ThirdwebProvider`](/react/v4/ThirdwebProvider) component which wraps your entire application. - -To display a `Recommended` tag below a wallet provider, pass in the `recommended: true` property in the wallet configurator function. - -```jsx -import { - ThirdwebProvider, - metamaskWallet, - coinbaseWallet, - walletConnect, -} from "@thirdweb-dev/react-native"; - -function AppWithProviders() { - return ( - - - - ); -} -``` - -If `supportedWallets` is not configured in the `ThirdwebProvider`, the ConnectWallet Modal show the default wallets: - -
- -- [MetaMask](/references/react-native/v0/metamaskWallet) -- [Rainbow](/references/react-native/v0/rainbowWallet) -- [Trust Wallet](/references/react-native/v0/trustWallet) - -
- -
- - - -Render the `ConnectEmbed` component anywhere in your application. Refer to [Props](#props) to see the configuration options available - -```tsx -import { ConnectEmbed } from "@thirdweb-dev/react-native"; - -function Example() { - return ; -} -``` - - - -
- -## Props - -
- -Sets the modal title - -```tsx - -``` - -
- -
- -Sets the modal icon. - -You can pass empty string to hide the icon. - -```tsx - -``` - -
- -
- -Custom styles to be added to the root container of `ConnectEmbed` component. - -```tsx - -``` - -
- -
- -theme to apply on the `ConnectEmbed` component. - -If a theme is set on the [`ThirdWebProvider`](/react-native/v0/ThirdwebProvider) component, it will be used as the default theme for all thirdweb components, else the default will be `"dark"` - -theme can be set to either `"dark"` or `"light"` or a custom theme object. - -```tsx -function Example() { - return ; -} -``` - - - -You can also import [`lightTheme`](/references/react-native/v0/lightTheme) or [`darkTheme`](/references/react-native/v0/darkTheme) functions from `@thirdweb-dev/react-native` to use the default themes as base and overrides parts of it. - -```tsx -import { lightTheme, ConnectEmbed } from "@thirdweb-dev/react-native"; - -const customTheme = lightTheme({ - colors: { - background: "red", - }, -}); - -function Example() { - return ; -} -``` - -
- -
- -If provided, Embed will show a Terms of Service message at the bottom with below link - -```tsx -function Example() { - return ; -} -``` - -
- -
- -If provided, Embed will show a Terms of Service message at the bottom with below link - -```tsx -function Example() { - return ( - - ); -} -``` - -
- -
- -Callback to be called on successful connection of wallet - -```tsx - { - console.log("wallet connected"); - }} -/> -``` - -
- -## Templates - - diff --git a/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/balance-btc-dark.png b/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/balance-btc-dark.png deleted file mode 100644 index c74730de31f..00000000000 Binary files a/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/balance-btc-dark.png and /dev/null differ diff --git a/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/connect-wallet-dark-compact.png b/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/connect-wallet-dark-compact.png deleted file mode 100644 index 2b68b0539f9..00000000000 Binary files a/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/connect-wallet-dark-compact.png and /dev/null differ diff --git a/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/connect-wallet-dark-wide.png b/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/connect-wallet-dark-wide.png deleted file mode 100644 index 66407ae772f..00000000000 Binary files a/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/connect-wallet-dark-wide.png and /dev/null differ diff --git a/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/connect-wallet-hero.webp b/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/connect-wallet-hero.webp deleted file mode 100644 index 96f06ae5b76..00000000000 Binary files a/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/connect-wallet-hero.webp and /dev/null differ diff --git a/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/custom-token-list-dark.png b/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/custom-token-list-dark.png deleted file mode 100644 index 832f3ccd743..00000000000 Binary files a/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/custom-token-list-dark.png and /dev/null differ diff --git a/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/details-open-faucet-dark.png b/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/details-open-faucet-dark.png deleted file mode 100644 index 933d44cdbf2..00000000000 Binary files a/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/details-open-faucet-dark.png and /dev/null differ diff --git a/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/select-token-dark.png b/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/select-token-dark.png deleted file mode 100644 index 65625b9ca75..00000000000 Binary files a/apps/portal/src/app/react-native/v0/components/ConnectWallet/images/select-token-dark.png and /dev/null differ diff --git a/apps/portal/src/app/react-native/v0/components/ConnectWallet/page.mdx b/apps/portal/src/app/react-native/v0/components/ConnectWallet/page.mdx deleted file mode 100644 index 9bb002efcd2..00000000000 --- a/apps/portal/src/app/react-native/v0/components/ConnectWallet/page.mdx +++ /dev/null @@ -1,107 +0,0 @@ -import { Details, Breadcrumb, Callout, DocImage, createMetadata } from "@doc"; -// images -import ConnectWalletHeroImage from "./images/connect-wallet-hero.webp"; -// mdx -import ThemeMDX from "./props/theme.mdx"; -import BtnTitleMDX from "./props/btnTitle.mdx"; -import ModalTitleMdx from "./props/modalTitle.mdx"; -import DetailsBtnMDX from "./props/detailsBtn.mdx"; -import HideTestnetFaucetMDX from "./props/hideTestnetFaucet.mdx"; -import TOSMDX from "./props/tos.mdx"; -import SupportedTokensMDX from "./props/supportedTokens.mdx"; -import DisplayBalanceTokenMDX from "./props/displayBalanceToken.mdx"; -import SwitchToActiveChainMDX from "./props/switchToActiveChain.mdx"; - -export const metadata = createMetadata({ - image: { - title: "ConnectWallet component", - icon: "react", - }, - title: "ConnectWallet | thirdweb React Native SDK", - description: "API Reference for the ConnectWallet component", -}); - - - -# ConnectWallet - -ConnectWallet component renders a button which when clicked opens a modal to allow users to connect to wallets specified in the [ThirdwebProvider's supportedWallets](/react-native/v0/connecting-wallets#supported-wallets) prop. - -If `supportedWallets` is not configured in the [`ThirdwebProvider`](/react-native/v0/ThirdwebProvider), the ConnectWallet Modal shows the below shown default wallets: - -- [MetaMask](/react-native/v0/wallets/metamask) -- [WalletConnect](/react-native/v0/wallets/walletconnect) -- [Rainbow](/react-native/v0/wallets/rainbow) -- [Trust Wallet](/react-native/v0/wallets/trust) - - - -## Usage - -```jsx -import { ConnectWallet } from "@thirdweb-dev/react-native"; - -function App() { - return ; -} -``` - - - -Try out ConnectWallet in action on [ConnectWallet Playground!](https://playground.thirdweb.com/connect/sign-in/button) - - - -## Props - -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -## Localizing the component - -We support localization of our SDK with support for a few languages. -You can pass a `locale` prop to our `ThirdwebProvider`, see more info in [Localizing our UI components](/react-native/v0/ThirdwebProvider#localizing-our-ui-components). diff --git a/apps/portal/src/app/react-native/v0/components/ConnectWallet/props/auth.mdx b/apps/portal/src/app/react-native/v0/components/ConnectWallet/props/auth.mdx deleted file mode 100644 index 737d433bd5e..00000000000 --- a/apps/portal/src/app/react-native/v0/components/ConnectWallet/props/auth.mdx +++ /dev/null @@ -1,17 +0,0 @@ -Enforce that users must sign in with their wallet using [auth](/connect/auth) after connecting their wallet. - -Requires the [`authConfig`](/react/v4/ThirdwebProvider#authConfig) prop to be set on the [`ThirdWebProvider`](/react/v4/ThirdwebProvider) component. - -```jsx - -``` diff --git a/apps/portal/src/app/react-native/v0/components/ConnectWallet/props/btnTitle.mdx b/apps/portal/src/app/react-native/v0/components/ConnectWallet/props/btnTitle.mdx deleted file mode 100644 index 165f087f1f5..00000000000 --- a/apps/portal/src/app/react-native/v0/components/ConnectWallet/props/btnTitle.mdx +++ /dev/null @@ -1,7 +0,0 @@ -Change the text on button when the ConnectWallet button is in the disconnected state. - -The default is `"Connect Wallet"` - -```tsx - -``` diff --git a/apps/portal/src/app/react-native/v0/components/ConnectWallet/props/detailsBtn.mdx b/apps/portal/src/app/react-native/v0/components/ConnectWallet/props/detailsBtn.mdx deleted file mode 100644 index 72bbb23f507..00000000000 --- a/apps/portal/src/app/react-native/v0/components/ConnectWallet/props/detailsBtn.mdx +++ /dev/null @@ -1,9 +0,0 @@ -Render a custom button to display connected wallet details instead of the default one - -```jsx - { - return ; -} -``` - -## Advanced method - -But if you need to create wallet instance and call some methods on the wallet instance before connecting the wallet, -you can do these steps manually as shown below using the [useCreateWalletInstance](/references/react-native/v0/useCreateWalletInstance), [useSetConnectionStatus](/references/react-native/v0/useSetConnectionStatus) and [useSetConnectedWallet](/references/react-native/v0/useSetConnectedWallet) hooks. - -There are 3 steps to connect your wallet manually: - -- create an instance of your wallet using `useCreateWalletInstance` -- connect your wallet using the `connect` method of the wallet -- once the wallet is connected, set the wallet instance as connected using `useSetConnectedWallet` - -Make sure to update the `connectionStatus` using `useSetConnectionStatus` to `"connecting"` before connecting your wallet and `"disconnected"` if the connection fails. - -### Example - -We will use [`localWallet`](/references/react-native/v0/localWallet) as an example because it can not be connected using the `useConnect` hook because it requires additional steps after creating the wallet instance - like generating a random wallet or importing a wallet. We will generate a random wallet in this example. - -```tsx -import { - useCreateWalletInstance, - useSetConnectionStatus, - useSetConnectedWallet, - // import the wallet you want to connect - localWallet, -} from "@thirdweb-dev/react-native"; - -const walletConfig = localWallet(); - -function Example() { - const createWalletInstance = useCreateWalletInstance(); - const setConnectionStatus = useSetConnectionStatus(); - const setConnectedWallet = useSetConnectedWallet(); - - const handleConnect = async () => { - // 1. create wallet instance - const wallet = createWalletInstance(walletConfig); - - // perform additional steps that needs to be done before connecting the wallet - // here, we will generate a random wallet - await wallet.generate(); - - try { - setConnectionStatus("connecting"); - - // 2. Call `connect` method on wallet instance - await wallet.connect( - connectOptions, // pass options required by the wallet (if any) - ); - - // 3. Set wallet instance as the connected wallet - setConnectedWallet(wallet); - } catch (e) { - setConnectionStatus("disconnected"); - console.error("failed to connect", e); - // show error UI or close modal using props.close() - } - }; - - return ; -} -``` - -## Useful hooks to build custom UI - -Once the wallet is connected, you can use React SDK's [100+ hooks](/references/react/v4/hooks) to show connected wallet's Details, send transactions, interact with smart contracts, sign messages and utilize common standards such as tokens, NFTs, marketplaces; all with built-in caching, [RPC URLs](/glossary/rpc), [IPFS gateways](/glossary/ipfs), and more! - -Here is a list of few hooks that will be useful when creating custom UI - -| Hook | Description | -| ---------------------------------------------------------------------- | -------------------------------------- | -| [useAddress](/references/react-native/v0/useAddress) | get connected wallet's account address | -| [useDisconnect](/references/react-native/v0/useDisconnect) | disconnect the connected wallet | -| [useWallet](/references/react-native/v0/useWallet) | get connected wallet instance | -| [useWalletConfig](/references/react-native/v0/useWalletConfig) | get connected wallet's config | -| [useConnectionStatus](/references/react-native/v0/useConnectionStatus) | get status of wallet connection | -| [useSigner](/references/react-native/v0/useSigner) | get signer of connected wallet | diff --git a/apps/portal/src/app/react-native/v0/connecting-wallets/page.mdx b/apps/portal/src/app/react-native/v0/connecting-wallets/page.mdx deleted file mode 100644 index d228cf33ece..00000000000 --- a/apps/portal/src/app/react-native/v0/connecting-wallets/page.mdx +++ /dev/null @@ -1,24 +0,0 @@ -import { ArticleIconCard, createMetadata } from "@doc"; -import { Wallet2Icon } from "lucide-react"; - -export const metadata = createMetadata({ - image: { - title: "Connecting Wallets in thirdweb React Native SDK", - icon: "react", - }, - title: "Connecting Wallets | thirdweb React Native SDK", - description: "Connecting Wallets in thirdweb React Native SDK", -}); - -# Connecting Wallets - -There are two ways you connect user's wallet to your application using thirdweb's React SDK - -1. Using the [`ConnectWallet`](/react-native/v0/components/ConnectWallet) component for a quick, easy and customizable UI -2. Create a completely custom UI using [wallet connection hooks](/react-native/v0/connecting-wallets/custom-ui) - - diff --git a/apps/portal/src/app/react-native/v0/faq/page.mdx b/apps/portal/src/app/react-native/v0/faq/page.mdx deleted file mode 100644 index 33fa33c1b1e..00000000000 --- a/apps/portal/src/app/react-native/v0/faq/page.mdx +++ /dev/null @@ -1,96 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - image: { - title: "FAQs: thirdweb React Native SDK", - icon: "react", - }, - title: "FAQs | thirdweb React Native SDK", - description: - "Get answers to frequently asked questions about the thirdweb React Native SDK.", -}); - -# FAQ - -## How to enable Deep Links in your apps - -To be able to use some wallets in your application, they require a way to redirect back to your app via deep linkin. This short guide will give the practical steps to achieve it on both Android and iOS. - -If you want to learn more about deep linking please check the official documentation for [Android](https://developer.android.com/training/app-links/deep-linking) and [iOS](https://developer.apple.com/ios/universal-links/). - -### Android - -The short version is that you need to tell the Android OS that your application can manage certain urls. You define this URL in your `AndroidManifest.xml` and when another app (e.g. a wallet) asks the Android OS to open the url, the OS will check which apps can open it and send you the request. - -Open your `AndroidManifest.xml` and add the following code inside your main `` block: - -```xml - - - - - - - -``` - -To understand how this works, please refer to the [Android's developer official documentation.](https://developer.android.com/training/app-links/deep-linking) - -### iOS - -Open your `Info.plist` file and add a new `CFBundleURLTypes` key: - -```xml -CFBundleURLTypes - - - CFBundleURLSchemes - - your.scheme - - - -``` - -Next, open your `AppDelegate.mm` file and import the `RCTLinkingManager` header file and add the following method: - -```plaintext -#import - -... - -// Linking API -- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary *)options { - return [super application:application openURL:url options:options] || [RCTLinkingManager application:application openURL:url options:options]; -} -``` - -To understand how this works, please refer to the [iOS's developer official documentation.](https://developer.apple.com/ios/universal-links/) - -## Does this library support tree shaking? - -Metro currently does not implement tree shaking, i.e. it does not attempt to remove unused code from the JS bundle. For instance, given this code snippet: - -```js -import { partition } from "lodash"; -``` - -Metro will bundle all of lodash in your bundle even though you're only using a small part of it. For more details, see issues [#227](https://github.com/facebook/metro/issues/227) and [#632](https://github.com/facebook/metro/issues/632). - -For this reason we recommend using a tool like [`metro-serializer-esbuild`](https://www.npmjs.com/package/@rnx-kit/metro-serializer-esbuild). - -`metro-serializer-esbuild` is designed to be used at the React Native app level. It is a custom serializer for Metro, the React Native bundler, that leverages esbuild for faster JavaScript transformations. - -### Here's why it's more suitable for the app level: - -1. **Integration with Build Process:** The serializer integrates with your app's build process, which is managed at the app level, not the SDK level. - -2. **App-Specific Configuration:** Since it affects how your JavaScript code is transformed and bundled, it's more appropriate to configure this as part of your specific app's build setup, where you have control over the bundler's behavior. - -3. **SDK Independence:** SDKs (Software Development Kits) are generally designed to be independent of specific build tools or serializers. They provide functionality to apps but don't dictate how the app should be built or bundled. - -4. **Flexibility for App Developers:** Using it at the app level allows individual app developers to decide whether they want to use `metro-serializer-esbuild` based on their specific needs and setup. - -In summary, you should use `metro-serializer-esbuild` at the React Native app level for better integration with the build process and to keep the SDK independent of specific build tools. diff --git a/apps/portal/src/app/react-native/v0/getting-started/page.mdx b/apps/portal/src/app/react-native/v0/getting-started/page.mdx deleted file mode 100644 index ce2c1052585..00000000000 --- a/apps/portal/src/app/react-native/v0/getting-started/page.mdx +++ /dev/null @@ -1,214 +0,0 @@ -import { Callout } from "@doc"; -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - image: { - title: "Getting Started with thirdweb React Native SDK", - icon: "react", - }, - title: "Getting Started with thirdweb React Native SDK", - description: "Getting Started with thirdweb React Native SDK", -}); - -# Getting Started - -Our SDK uses a [Provider Pattern](https://flexiple.com/react/provider-pattern-with-react-context-api/), meaning any component within the `ThirdwebProvider` will have access to the SDK. - - - -You will require an API key to use thirdweb's infrastructure services with the SDK. - -you need to first obtain an API key from the [dashboard](https://thirdweb.com/team) by creating a new project and then copy the "Client ID" and pass it to the `ThirdwebPovider` as the `clientId` prop. - - - -Let's take a look at a typical setup. - -## Configure the ThirdwebProvider - -Specify the network your smart contracts are deployed to in the `activeChain` prop and wrap your application like so: - -```tsx title="App.tsx" -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; - -const App = () => { - return ( - - - - ); -}; -``` - -Below is an example of where to set this up in your application: - -

- [Create React Native - App](https://github.com/thirdweb-example/react-native-typescript-starter/blob/main/App.tsx) -

- -Finally, we can run our app! - -```sh -yarn android -``` - -```sh -yarn ios -``` - -## Connect to a wallet using ConnectWallet component - -```javascript -import React from "react"; -import { SafeAreaView } from "react-native"; -import { ConnectWallet } from "@thirdweb-dev/react-native"; - -const AppInner = () => { - return ( - - - - ); -}; -``` - -## Interact With Contracts - -Connect to your smart contract using the [`useContract`](/references/react-native/v0/useContract) hook like so: - -```jsx title="pages/index.jsx" -import { useContract } from "@thirdweb-dev/react-native"; - -export default function Home() { - const { contract } = useContract(""); - - // Now you can use the contract in the rest of the component! -} -``` - -You can then use [`useContractRead`](/references/react-native/v0/useContractRead) and [`useContractWrite`](/references/react-native/v0/useContractWrite) to read data and write transactions to the contract. - -You pass the `contract` object returned from [`useContract`](/references/react-native/v0/useContract) to these hooks as the first parameter and the name of the function (or view/mapping, etc.) on your smart contract as the second parameter. If your function requires parameters, you can pass them as additional arguments. - -For example, we can read the `name` of our contract like so: - -```jsx title="pages/index.jsx" -import { - useContract, - useContractRead, - useContractWrite, -} from "@thirdweb-dev/react-native"; - -export default function Home() { - const { contract } = useContract(""); - const { data: name, isLoading: loadingName } = useContractRead( - contract, - "name", // The name of the view/mapping/variable on your contract - ); - const { mutate: setName, isLoading: settingName } = useContractWrite( - contract, - "setName", // The name of the function on your contract - ); -} -``` - -## Using Extensions - -Each extension you implement in your smart contract unlocks new functionality in the SDK. - -These hooks make it easy to interact with your smart contracts by implementing the complex logic for you under the hood. - -For example, if your smart contract implements [ERC721Supply](/contracts/build/extensions/erc-721/ERC721Supply), you unlock the ability to view all NFTs on that contract using the SDK; which fetches all of your NFT metadata and the current owner of each NFT in parallel. In the React SDK, that is available using `useNFTs`: - -```jsx -import { useContract, useNFTs } from "@thirdweb-dev/react-native"; - -export default function Home() { - const { contract } = useContract(""); - const { data: nfts, isLoading: isReadingNfts } = useNFTs(contract); -} -``` - -If we want to mint an NFT and our contract implements [ERC721Mintable](/contracts/build/extensions/erc-721/ERC721Mintable), we can use the [`useMintNFT`](/references/react-native/v0/useMintNFT) hook to mint an NFT from the connected wallet; handling all of the logic of uploading and pinning the metadata to IPFS for us behind the scenes. - -```jsx -import { useContract, useNFTs, useMintNFT } from "@thirdweb-dev/react-native"; - -export default function Home() { - const { contract } = useContract(""); - const { data: nfts, isLoading: isReadingNfts } = useNFTs(contract); - const { mutate: mintNFT, isLoading: isMintingNFT } = useMintNFT(contract); -} -``` - -## Advanced Configuration - -The `ThirdwebProvider` offers a number of configuration options to control the behavior of the React Native and Typescript SDK. -We provide defaults for all of them, but you customize them to suit your needs. For more info see the [ThirdwebProvider reference](/references/react-native/v0/ThirdwebProvider). - -### Supported Wallets Behavior - -1. We render `localWallet` as "Continue as Guest" in our ConnectWallet modal. -2. When a single `supportedWallet` is defined, we try to auto-connect to that wallet instead of showing the wallets modal with a single wallet. - -### Localizing our UI components - -You can pass a `locale` prop to the `ThirdwebProvider` with the strings in the language of your preference. See the list of strings to translate [here](https://github.com/thirdweb-dev/js/blob/main/packages/react-native/src/evm/i18n/en.ts). - -We support 'en' (English), 'es' (Spanish) and 'ja' (Japanese) out of the box. The default value is 'en'. - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; -import React from "react"; - -const App = () => { - return ( - - - - ); -}; -``` - -You can pass your own strings: - -```jsx -import { ThirdwebProvider, en } from "@thirdweb-dev/react-native"; -import React from "react"; - -const App = () => { - return ( - - - - ); -}; -``` - -Note that you can also use this prop to replace any string in our UI components. - -```jsx -import { ThirdwebProvider, en } from "@thirdweb-dev/react-native"; -import React from "react"; - -const App = () => { - return ( - - - - ); -}; -``` diff --git a/apps/portal/src/app/react-native/v0/installation/page.mdx b/apps/portal/src/app/react-native/v0/installation/page.mdx deleted file mode 100644 index 1ff1328915d..00000000000 --- a/apps/portal/src/app/react-native/v0/installation/page.mdx +++ /dev/null @@ -1,227 +0,0 @@ -import { InstallTabs, Tabs, TabsList, TabsTrigger, TabsContent } from "@doc"; -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - image: { - title: "Installing thirdweb React Native SDK", - icon: "react", - }, - title: "Installing thirdweb React Native SDK", - description: - "Steps to install the thirdweb React Native SDK in your existing or new project.", -}); - -# Installation - -## Requirements - -- Android minSdkVersion = 26 -- iOS platform >= 13 -- XCode > 14 - - - - - Existing Projects - New Projects - - - - - - -React Native CLI Project - React Native Expo Project - - - - - -Our wallets package uses the Expo Modules API, please [configure it](https://docs.expo.dev/modules/overview/) in your app: - -```bash -npx install-expo-modules@latest -``` - -Move into your `/ios` folder and run the following command to install ios required pods: - -```bash -cd ios/ && pod install -``` - -## Add shims for the crypto nodejs' libraries - -React Native is based on [JavaScriptCore](https://developer.apple.com/documentation/javascriptcore?language=objc) (part of WebKit) and does not use Node.js or the common Web and DOM APIs. As such, there are many operations missing that a normal web environment or Node.js instance would provide. [[1]](https://docs.ethers.org/v5/cookbook/react-native/#cookbook-reactnative-security). - -For this reason we need to add shims for some of the operations not available in closed out environments like React Native: - -In your `metro.config.js` (please, create one if you don’t have it) add the following to shim the nodejs modules needed: - - - - - React Native CLI Project - React Native Expo Project - - - - -```javascript -const { getDefaultConfig } = require("expo/metro-config"); -const { mergeConfig } = require("@react-native/metro-config"); - -/** - * Metro configuration - * https://facebook.github.io/metro/docs/configuration - * - * @type {import('metro-config').MetroConfig} - */ -const extraNodeModules = require("node-libs-browser"); - -const config = { - resolver: { - extraNodeModules: extraNodeModules, - }, -}; - -module.exports = mergeConfig(getDefaultConfig(__dirname), config); -``` - - - - - -```javascript -// Learn more https://docs.expo.io/guides/customizing-metro -const { getDefaultConfig } = require("expo/metro-config"); -const extraNodeModules = require("node-libs-browser"); - -const config = getDefaultConfig(\_\_dirname); - -config.resolver.extraNodeModules = extraNodeModules; -config.transformer.getTransformOptions = async () => ({ - transform: { - experimentalImportSupport: false, - inlineRequires: true, - }, -}); - -module.exports = config; -``` - - - - - - - - -We have a dependency on the [Coinbase Wallet Mobile SDK](https://github.com/coinbase/wallet-mobile-sdk) to support connecting with Coinbase, this dependency contains custom native code, **which breaks support for Expo Go** ([see issue here](https://github.com/coinbase/wallet-mobile-sdk/issues/206)). We are working on turning this into an optional dependency but for now you need to prebuild the Expo project: - -```bash -npx expo prebuild -``` - -Now, we can add the dependencies: - - - -Our wallets package uses the Expo Modules API, please [configure it](https://docs.expo.dev/modules/overview/) in your app: - -```bash -npx install-expo-modules@latest -``` - - - - -We provide a package that imports all the necessary polyfills for you, please, import this package into your `index.js` file. Make sure it is at the top of your imports. - -```javascript -// Import polyfills -import "@thirdweb-dev/react-native-compat"; -``` - -### Why are all these packages needed? - -As explained in the intro of this doc, we need to shim some of the packages available in Node and web environments. Find below who’s using these packages: - -#### WalletConnect - -- WalletConnect uses Node's `crypto` package when signing transactions. Since this package is not available in React Native we need an alternative implementation for it and its dependencies, the following packages accomplishes this: - - - `node-libs-browser` - - `react-native-crypto` - - `react-native-randombytes` - - `react-native-get-random-values` - -- Coinbase wallet connector package depends on `react-native-mmkv` and `expo-modules`. - -- WalletConnect V2 connectors depend on `@react-native-async-storage/async-storage`. - - - - -Make sure to have your React Native environment setup before using the template. Please follow React Native's [Setting up the development environment](https://reactnative.dev/docs/environment-setup) - - - - - thirdweb CLI - thirdweb CLI Expo - React Native CLI - Expo CLI - - - - -```bash -npx thirdweb create --template react-native-typescript-starter -``` - - - - -Note that running through Expo Go app currently isn't supported. You - need to connect your device and build manually. Use the following command to - create an Expo React Native app using thirdweb CLI: - -```bash -npx thirdweb create --template react-native-expo-starter -``` - - - - -Alternatively you can use the React Native CLI. Note that you need to follow - the "Existing Projects -> React Native CLI Project" steps in this guide - after executing the following command: - -```bash -npx react-native init MyRNApp --template react-native-template-typescript -``` - - - - -Alternatively you can use the Expo CLI. -Note that you need to follow the "Existing Projects -> React Native Expo Project" steps in this guide after executing the following command: - -```bash -npx create-expo-app AwesomeProject -``` - - - - - - - diff --git a/apps/portal/src/app/react-native/v0/layout.tsx b/apps/portal/src/app/react-native/v0/layout.tsx deleted file mode 100644 index c73378d3e50..00000000000 --- a/apps/portal/src/app/react-native/v0/layout.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import { DocLayout } from "@/components/Layouts/DocLayout"; -import { TypeScriptVersionSelector } from "../../../components/others/VersionSelector"; -import { typescriptV4Sidebar } from "../../typescript/v4/sidebar"; - -export default async function Layout(props: { children: React.ReactNode }) { - return ( - } - > - {props.children} - - ); -} diff --git a/apps/portal/src/app/react-native/v0/page.mdx b/apps/portal/src/app/react-native/v0/page.mdx deleted file mode 100644 index 1291c937e58..00000000000 --- a/apps/portal/src/app/react-native/v0/page.mdx +++ /dev/null @@ -1,89 +0,0 @@ -import { OpenSourceCard, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - image: { - title: "thirdweb React Native SDK", - icon: "react", - }, - title: "thirdweb React Native SDK", - description: - "A collection of React hooks and UI components for your React Native apps, for any EVM-compatible blockchain.", -}); - -# React Native SDK - -A collection of [100+ React hooks](/references/react-native/v0/hooks) and React Native UI components for your web3 mobile apps, for any EVM-compatible blockchain. - -Connect to user’s wallets, interact with smart contracts, sign -messages, and utilize common standards such as tokens, NFTs, marketplaces; all with built-in caching, [RPC URLs](/glossary/rpc), [IPFS gateways](/glossary/ipfs), and more. - - - -## How It Works - -The React Native SDK uses [React Query](https://tanstack.com/query/v4/docs/react/overview) under the hood to -expose a collection of [query](https://tanstack.com/query/v4/docs/react/guides/queries) and [mutation](https://tanstack.com/query/v4/docs/react/guides/mutations) -hooks, each with built-in [caching](https://tanstack.com/query/v4/docs/react/guides/caching), -[query invalidation](https://tanstack.com/query/v4/docs/react/guides/query-invalidation), [query retries](https://tanstack.com/query/v4/docs/react/guides/query-retries), -and more. - -Each hook _(except for wallet/network management)_ wraps some functionality of the [TypeScript SDK](/typescript/latest), -which are made available as either a [query](https://tanstack.com/query/v4/docs/react/guides/queries) hook to read data, -or as a [mutation](https://tanstack.com/query/v4/docs/react/guides/mutations) hook to write transactions to the blockchain. - -When mutations are called (when a user executes a transaction), [query invalidation](https://tanstack.com/query/v4/docs/react/guides/query-invalidation) is automatically triggered -to update the relevant queries that depend on the data that was changed. For example, when minting a new NFT, queries that view information about -NFTs are re-fetched to load the new NFT automatically. - -### Queries - -All query hooks are used to **read** data from the blockchain, smart contracts, a user’s wallet, etc. - -Each one comes with some helpful properties to create a powerful user experience: - -- `data` - The data returned from the query (e.g. the NFTs of a contract). -- `isLoading` - Whether the query is currently loading. -- `error` - The error returned from the query, if any. - -```tsx -import { useContractRead, useContract } from "@thirdweb-dev/react-native"; - -function App() { - const { data: contract } = useContract("{{contract_address}}"); - const { data, isLoading, error } = useContractRead(contract, "functionName"); -} -``` - -### Mutations - -Mutations are used to **write** data to the blockchain when a transaction is required. - -They require a wallet to be connected, and by default, are executed from the currently connected wallet. - -Each mutation comes with similar properties to queries: - -- `mutate` - The function to execute the mutation (e.g. mint a new NFT). -- `mutateAsync` - The function to execute the mutation, but returns a promise (allowing `await` to be used). -- `isLoading` - Whether the mutation is currently executing. -- `error` - The error returned from the mutation, if any. - -```tsx -import { - useContractWrite, - useContract, - Web3Button, -} from "@thirdweb-dev/react-native"; - -function App() { - const { data: contract } = useContract("{{contract_address}}"); - const { mutateAsync, isLoading, error } = useContractWrite( - contract, - "functionName", - ); -} -``` - -Upon execution of a mutation, the relevant queries are automatically invalidated to fetch the latest data. diff --git a/apps/portal/src/app/react-native/v0/wallets/_components/CustomizeWalletConfigurator.tsx b/apps/portal/src/app/react-native/v0/wallets/_components/CustomizeWalletConfigurator.tsx deleted file mode 100644 index 83c3c58a037..00000000000 --- a/apps/portal/src/app/react-native/v0/wallets/_components/CustomizeWalletConfigurator.tsx +++ /dev/null @@ -1,67 +0,0 @@ -import { - CodeBlock, - Details, - InlineCode, - Paragraph, -} from "@/components/Document"; -import Link from "next/link"; - -type Props = { - configurator: string; - config: string; - connectUI: string; - selectUI: string; -}; - -export function CustomizeWalletConfigurator({ - configurator, - config, - connectUI, - selectUI, -}: Props) { - return ( -
- - The contains the default config for - metadata and UI. you can optionally choose to override the defaults to - customize the wallet. - - Learn more about these configs - - - - - - Once the config is ready, you can use it with ConnectWallet - component or useConnect hook as shown below - - - ; - -// or use it with useConnect hook -const connect = useConnect(); -connect(${config}, { ... });`} - /> -
- ); -} diff --git a/apps/portal/src/app/react-native/v0/wallets/_components/WalletsBreadcrumb.tsx b/apps/portal/src/app/react-native/v0/wallets/_components/WalletsBreadcrumb.tsx deleted file mode 100644 index 138c26d97ba..00000000000 --- a/apps/portal/src/app/react-native/v0/wallets/_components/WalletsBreadcrumb.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import { Breadcrumb } from "@/components/Document"; - -export function WalletsBreadcrumb(props: { name: string; slug: string }) { - return ( - - ); -} diff --git a/apps/portal/src/app/react-native/v0/wallets/_components/index.tsx b/apps/portal/src/app/react-native/v0/wallets/_components/index.tsx deleted file mode 100644 index 9e15a63a41d..00000000000 --- a/apps/portal/src/app/react-native/v0/wallets/_components/index.tsx +++ /dev/null @@ -1,2 +0,0 @@ -export { WalletsBreadcrumb } from "./WalletsBreadcrumb"; -export { CustomizeWalletConfigurator } from "./CustomizeWalletConfigurator"; diff --git a/apps/portal/src/app/react-native/v0/wallets/coinbase/page.mdx b/apps/portal/src/app/react-native/v0/wallets/coinbase/page.mdx deleted file mode 100644 index a6bf9e979b7..00000000000 --- a/apps/portal/src/app/react-native/v0/wallets/coinbase/page.mdx +++ /dev/null @@ -1,91 +0,0 @@ -import { Details, createMetadata } from "@doc"; -import { WalletsBreadcrumb, CustomizeWalletConfigurator } from "../_components"; - -export const metadata = createMetadata({ - image: { - title: "Coinbase Wallet", - icon: "react", - }, - title: "Coinbase Wallet | thirdweb React Native SDK", - description: "API reference for coinbaseWallet function", -}); - - - -# Coinbase Wallet - -A wallet configurator for [Coinbase Wallet](/references/wallets/v2/CoinbaseWallet) which allows integrating the wallet with React Native - -```tsx -import { coinbaseWallet } from "@thirdweb-dev/react-native"; - -const coinbaseConfig = coinbaseWallet(options); -``` - - - -## options - -
- -The Coinbase Wallet Mobile SDK uses Universal Links to communicate between Coinbase Wallet and your application. -We wrote [a short guide](/react-native/v0/faq#how-to-enable-deep-links-in-your-apps) to help you enable deep links support in your mobile app or -you can check the [Coinbase setup](https://docs.cloud.coinbase.com/wallet-sdk/docs/ios-setup). - -```ts -coinbaseWallet({ - callbackURL: new URL("your.scheme://"), -}); -``` - -
- - - -## Usage with ConnectWallet - -To allow users to connect to this wallet using the [ConnectWallet](/react-native/v0/connecting-wallets#connect-wallet) component, you can add it to [ThirdwebProvider's supportedWallets](/react-native/v0/connecting-wallets#supported-wallets) prop. - -```tsx - - - -``` - -## Usage with useConnect - -you can use the [`useConnect`](/references/react-native/v0/useConnect) hook to programmatically connect to the wallet without using the [ConnectWallet](/react-native/v0/connecting-wallets#connect-wallet) component. - -The wallet also needs to be added in [ThirdwebProvider's supportedWallets](/react-native/v0/connecting-wallets#supported-wallets) if you want the wallet to auto-connect on next page load. - -```tsx -const coinbaseConfig = coinbaseWallet(); - -function App() { - const connect = useConnect(); - - const handleConnect = async () => { - await connect(coinbaseConfig, connectOptions); - }; - - return
...
; -} -``` diff --git a/apps/portal/src/app/react-native/v0/wallets/in-app-wallet/page.mdx b/apps/portal/src/app/react-native/v0/wallets/in-app-wallet/page.mdx deleted file mode 100644 index b041fbeeafb..00000000000 --- a/apps/portal/src/app/react-native/v0/wallets/in-app-wallet/page.mdx +++ /dev/null @@ -1,223 +0,0 @@ -import { Details, InstallTabs, createMetadata } from "@doc"; -import { WalletsBreadcrumb, CustomizeWalletConfigurator } from "../_components"; -import { DocLink } from "@/components/Document"; - -export const metadata = createMetadata({ - image: { - title: "In-App Wallet", - icon: "react", - }, - title: "In-App Wallet | thirdweb React Native SDK", - description: "API reference for inAppWallet function", -}); - - - -# InAppWallet - -A wallet configurator for [In-App Wallet](/connect/in-app-wallet/overview) which allows integrating the wallet with React Native - -```tsx -import { inAppWallet } from "@thirdweb-dev/react-native"; - -const inAppWalletConfig = inAppWallet(); -``` - - - -## Options - -
- -Whether to show the Sign In with different providers. - -To use this feature you will need to enable the `In-App Wallets` service for your `clientId` -in your [Dashboard Settings](https://thirdweb.com/team/~/~/settings) and you will need to allowlist -your app's `redirectUrl` (more on this below). - -`redirectUrl`: The `redirectUrl` must be a deeplink your app supports. This -is going to be used to redirect back from the browser when using socials sign in options (Google, Apple, etc). - -We wrote [a short guide](/react-native/v0/faq) to help you enable deep links support in your mobile app. - -```ts -inAppWallet({ - auth: { - options: ["email", "google", "apple", "facebook"], - redirectUrl: "deep-link-to-your-app://", - }, -}); -``` - -
- -
- -Allows your wallet to be connected to an external applicatoin via WalletConnect. - -Defaults to `undefined`. - -``` -export type WalletConnectReceiverConfig = { - walletConnectReceiver?: - | { - walletConnectWalletMetadata?: WCMetadata; - walletConnectV2ProjectId?: string; - walletConnectV2RelayUrl?: string; - } - | true; -}; -``` - -
- -## Installation - -To use the `inAppWallet` you need to add the following dependencies to your project. Find the -command to add them all for convenience below. - - - -Here are the dependencies added: - -- amazon-cognito-identity-js: "^6.3.3" -- react-native-quick-base64 -- react-native-quick-crypto -- react-native-aes-gcm-crypto - - This package requires minSdkVersion = 26 on Android -- @react-native-community/netinfo -- react-native-inappbrowser-reborn: "^3.7.0" (for Socials Sign In) - - - There's an open issue on RN > 0.72: https://github.com/margelo/react-native-quick-crypto/issues/186 which you can [fix by](https://github.com/margelo/react-native-quick-crypto/issues/186#issuecomment-1663666739) adding the following to your `android/app/build.gradle` file: - - ``` - packagingOptions { - pickFirst 'lib/x86/libcrypto.so' - pickFirst 'lib/x86_64/libcrypto.so' - pickFirst 'lib/armeabi-v7a/libcrypto.so' - pickFirst 'lib/arm64-v8a/libcrypto.so' - } - ``` - - - When building the iOS app in release mode for RN 0.71 you need to enable the OpenSSL framework in XCode. There are several solutions for this here: - - https://github.com/margelo/react-native-quick-crypto/issues/121#issuecomment-1369924076 - - https://github.com/margelo/react-native-quick-crypto/issues/121#issuecomment-1537576444 - -## Usage with ConnectWallet - -To allow users to connect to this wallet using the [ConnectWallet](/react-native/v0/connecting-wallets#connect-wallet) component, you can add it to [ThirdwebProvider's supportedWallets](/react-native/v0/connecting-wallets#supported-wallets) prop. - -```tsx - - - -``` - -## Usage with useInAppWallet - -You can use the [`useInAppWallet`](/references/react-native/v0/useInAppWallet) hook to programmatically connect to the wallet without using the [ConnectWallet](/react-native/v0/connecting-wallets#connect-wallet) component. - -The wallet also needs to be added in [ThirdwebProvider's supportedWallets](/react-native/v0/connecting-wallets#supported-wallets) if you want the wallet to auto-connect on next page load. - -The hook will return all the necessary functions you'll need to authenticate and connect to the ina-- wallet. - -### Connecting with Google sign in - -```tsx -function App() { - const { connect } = useInAppWallet(); - - const handleConnect = async () => { - await connect({ - strategy: "google", - redirectUrl: "redirect-url-to-your-app://", - }); - }; - - return ... ; -} -``` - -### Connecting with email verification - -```tsx -function App() { - const { connect, sendVerificationEmail } = useInAppWallet(); - - const preLogin = async (email: string) => { - // send email verification code - await sendVerificationEmail({ email }); - }; - - const handleLogin = async (email: string, verificationCode: string) => { - // verify email and connect - await connect({ - strategy: "email", - email, - verificationCode, - }); - }; - - return ... ; -} -``` - -## Available connection strategies - -```ts -// email verification -type EmailVerificationAuthParams = { - strategy: "email"; - email: string; - verificationCode: string; - recoveryCode?: string; -}; - -type SocialAuthParams = { - strategy: "google" | "facebook" | "apple"; - redirectUrl: string; -}; - -// bring your own authentication -type JwtAuthParams = { - strategy: "jwt"; - jwt: string; - encryptionKey: string; -}; -``` - -## Deleting an Account - -You can delete an account by calling, `deleteActiveAccount` from the InAppWallet instance: - -```tsx -function App() { - const activeWallet = useWallet(); - - const deleteAccount = async () => { - await (activeWallet as InAppWallet).deleteActiveAccount(); - }; - - return ... ; -} -``` - -### Apple App Store Guidelines - -If you want to publish your app to the App Store you will need to allow users to delete their account as per [Apple's Guidelines](https://developer.apple.com/support/offering-account-deletion-in-your-app). -You can use the `deleteActiveAccount` method for this purpose. - -### Try it out in our published apps - -[Android Google Play](https://play.google.com/store/search?q=thirdweb&c=apps&hl=en_US&gl=US) - -[Apple App Store](https://apps.apple.com/us/app/thirdweb-connect/id6471451064) diff --git a/apps/portal/src/app/react-native/v0/wallets/local-wallet/page.mdx b/apps/portal/src/app/react-native/v0/wallets/local-wallet/page.mdx deleted file mode 100644 index caef195f96f..00000000000 --- a/apps/portal/src/app/react-native/v0/wallets/local-wallet/page.mdx +++ /dev/null @@ -1,60 +0,0 @@ -import { createMetadata } from "@doc"; -import { WalletsBreadcrumb, CustomizeWalletConfigurator } from "../_components"; - -export const metadata = createMetadata({ - image: { - title: "Local Wallet", - icon: "react", - }, - title: "Local Wallet | thirdweb React Native SDK", - description: "API reference for localWallet function", -}); - - - -# Local Wallet - -A wallet configurator for [Local Wallet](/references/wallets/v2/LocalWallet) which allows integrating the wallet with React Native - -```tsx -import { localWallet } from "@thirdweb-dev/react-native"; - -const localWalletConfig = localWallet(options); -``` - - - -## Usage with ConnectWallet - -To allow users to connect to this wallet using the [ConnectWallet](/react-native/v0/connecting-wallets#connect-wallet) component, you can add it to [ThirdwebProvider's supportedWallets](/react-native/v0/connecting-wallets#supported-wallets) prop. - -```tsx - - - -``` - -## Usage with useConnect - -You can use the [`useConnect`](/references/react-native/v0/useConnect) hook to programmatically connect to the wallet without using the [ConnectWallet](/react-native/v0/connecting-wallets#connect-wallet) component. - -The wallet also needs to be added in [ThirdwebProvider's supportedWallets](/react-native/v0/connecting-wallets#supported-wallets) if you want the wallet to auto-connect on next page load. - -```tsx -const localWalletConfig = localWallet(); - -function App() { - const connect = useConnect(); - - const handleConnect = async () => { - await connect(localWalletConfig, connectOptions); - }; - - return
...
; -} -``` diff --git a/apps/portal/src/app/react-native/v0/wallets/magiclink/page.mdx b/apps/portal/src/app/react-native/v0/wallets/magiclink/page.mdx deleted file mode 100644 index 0bdc2264e40..00000000000 --- a/apps/portal/src/app/react-native/v0/wallets/magiclink/page.mdx +++ /dev/null @@ -1,72 +0,0 @@ -import { InstallTabs, Callout, createMetadata } from "@doc"; -import { WalletsBreadcrumb } from "../_components"; - -export const metadata = createMetadata({ - image: { - title: "Magic Link", - icon: "react", - }, - title: "Magic Link | thirdweb React Native SDK", - description: "API reference for magicLink function", -}); - - - -# Magic Link - - - -This wallet is deprecated. Please use [In-App Wallet](/react-native/v0/wallets/embedded-wallet) instead for adding Social Login to your app. - - - -#### Add Magic's dependencies - -The `@magic-sdk` has a few dependencies you need to add to your app before using the SDK in React Native. For convenience you can run: - - - -which will install the following dependencies: - -- [react-native-safe-area-context](https://www.npmjs.com/package/react-native-safe-area-context?ref=blog.thirdweb.com) - - **Note**: The magic wallet requires the app to be wrapped in a `SafeAreaProvider`. This is something we handle in the SDK so please, if your app already has a `SafeAreaProvider` you can remove it and just wrap your app in our `ThirdwebProvider`, this will take care of the safe area context for you. -- [react-native-webview](https://www.npmjs.com/package/react-native-webview?ref=blog.thirdweb.com) -- [react-native-device-info](https://www.npmjs.com/package/react-native-device-info?ref=blog.thirdweb.com) - -You also need a [Magic api-key](https://dashboard.magic.link/signup?ref=blog.thirdweb.com) to pass it as part of the wallet config. - -#### Using the new wallet - -**NOTE**: `magicWallet` has been deprecated starting in version `@thirdweb-dev/react-native@0.2.49` in favor of `magicLink` for consistency with our React SDK. - -We suggest you add `magicLink` as the first wallet in your `supportedWallets` list since the UI for it is a TextInput field: - -```tsx -import { Goerli } from "@thirdweb-dev/chains"; -import { - ThirdwebProvider, - magicLink, - metamaskWallet, -} from "@thirdweb-dev/react-native"; - -function AppWithProviders() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react-native/v0/wallets/metamask/page.mdx b/apps/portal/src/app/react-native/v0/wallets/metamask/page.mdx deleted file mode 100644 index 2ab8e4f54b0..00000000000 --- a/apps/portal/src/app/react-native/v0/wallets/metamask/page.mdx +++ /dev/null @@ -1,116 +0,0 @@ -import { CustomizeWalletConfigurator, WalletsBreadcrumb } from "../_components"; -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - image: { - title: "MetaMask Wallet", - icon: "react", - }, - title: "MetaMask wallet | thirdweb React Native SDK", - description: "API reference for metamaskWallet function", -}); - - - -# Metamask Wallet - -A wallet configurator for [MetaMask](/references/wallets/v2/MetaMaskWallet) to integrate the wallet with the React Native SDK - -```tsx -import { metamaskWallet } from "@thirdweb-dev/react-native"; - -const metamaskConfig = metamaskWallet(options); -``` - - - -## options - -
- -This `projectId` can be obtained at [cloud.walletconnect.com](https://cloud.walletconnect.com/). It is highly recommended to use your own project id and only use the default one for testing purposes. - -```ts -metamaskWallet({ - projectId: "your-wallet-connect-project-id", -}); -``` - -
- -
- -Show this wallet as "recommended" in the [ConnectWallet Modal](/react-native/v0/connecting-wallets#connect-wallet). - -```ts -metamaskWallet({ - recommended: true, -}); -``` - -
- -## Usage with ConnectWallet - -To allow users to connect to this wallet using the [ConnectWallet](/react-native/v0/connecting-wallets#connect-wallet) component, you can add it to [ThirdwebProvider's supportedWallets](/react-native/v0/connecting-wallets#supported-wallets) prop. - -```tsx - - - -``` - -## Usage with useConnect - -You can use the [`useConnect`](/references/react-native/v0/useConnect) hook to programmatically connect to the wallet without using the [ConnectWallet](/react-native/v0/connecting-wallets#connect-wallet) component. - -The wallet also needs to be added in [ThirdwebProvider's supportedWallets](/react-native/v0/connecting-wallets#supported-wallets) if you want the wallet to auto-connect on next page load. - -```tsx -const metamaskConfig = metamaskWallet(); - -function App() { - const connect = useConnect(); - - const handleConnect = async () => { - await connect(metamaskConfig, connectOptions); - }; - - return ... ; -} -``` - -### connectOptions - -```ts -{ chainId?: number } | undefined -``` - -
- -If `chainId` is provided, wallet will be connected and immediately switch to network with given `chainId`. - -`Chain` object corresponding to this chainId from [@thirdweb-dev/chains](https://www.npmjs.com/package/@thirdweb-dev/chains) package must be specified in ThirdwebProvider's supportedChains prop as shown below - -```tsx -import { Polygon } from "@thirdweb-dev/chains"; -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; - -export function YourApp() { - return ( - - - - ); -} -``` - -
diff --git a/apps/portal/src/app/react-native/v0/wallets/page.mdx b/apps/portal/src/app/react-native/v0/wallets/page.mdx deleted file mode 100644 index 7728450ac88..00000000000 --- a/apps/portal/src/app/react-native/v0/wallets/page.mdx +++ /dev/null @@ -1,82 +0,0 @@ -import { Breadcrumb, createMetadata } from "@doc"; -import { WalletCard, WalletCardGrid } from "@/components/others/WalletCard"; -// icons -import MetaMaskIcon from "@public/icons/wallets/metamask.svg"; -import CoinbaseIcon from "@public/icons/wallets/coinbase.svg"; -import WalletConnectIcon from "@public/icons/wallets/walletconnect.svg"; -import SmartWalletIcon from "@public/icons/wallets/smartwallet.svg"; -import EmbeddedWalletIcon from "@public/icons/wallets/embeddedwallet.svg"; -import LocalWalletIcon from "@public/icons/wallets/localwallet.svg"; -import MagicLinkIcon from "@public/icons/wallets/magiclink.svg"; -import RainbowIcon from "@public/icons/wallets/rainbow.svg"; - -export const metadata = createMetadata({ - image: { - title: "Supported Wallets in thirdweb React Native SDK", - icon: "react", - }, - title: "Supported wallets | thirdweb React Native SDK", - description: "List of supported wallets for thirdweb React Native SDK", -}); - - - -# Wallets - -thirdweb React Naive SDK comes out of the box with support for below listed wallets: - -You can also easily integrate _any_ other wallet provider by a [Building a wallet interface](/wallet-sdk/v2/build) for it. - - - - - - - - - - - diff --git a/apps/portal/src/app/react-native/v0/wallets/rainbow/page.mdx b/apps/portal/src/app/react-native/v0/wallets/rainbow/page.mdx deleted file mode 100644 index 8b9392de38d..00000000000 --- a/apps/portal/src/app/react-native/v0/wallets/rainbow/page.mdx +++ /dev/null @@ -1,116 +0,0 @@ -import { CustomizeWalletConfigurator, WalletsBreadcrumb } from "../_components"; -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - image: { - title: "Rainbow Wallet", - icon: "react", - }, - title: "Rainbow Wallet | thirdweb React Native SDK", - description: "API reference for rainbowWallet function", -}); - - - -# Rainbow Wallet - -A wallet configurator for [Rainbow](/references/wallets/v2/RainbowWallet) to integrate the wallet with the React Native SDK - -```tsx -import { rainbowWallet } from "@thirdweb-dev/react-native"; - -const rainbowConfig = rainbowWallet(options); -``` - - - -## options - -
- -This `projectId` can be obtained at [cloud.walletconnect.com](https://cloud.walletconnect.com/). It is highly recommended to use your own project id and only use the default one for testing purposes. - -```ts -rainbowWallet({ - projectId: "your-wallet-connect-project-id", -}); -``` - -
- -
- -Show this wallet as "recommended" in the [ConnectWallet Modal](/react-native/v0/connecting-wallets#connect-wallet). - -```ts -rainbowWallet({ - recommended: true, -}); -``` - -
- -## Usage with ConnectWallet - -To allow users to connect to this wallet using the [ConnectWallet](/react-native/v0/connecting-wallets#connect-wallet) component, you can add it to [ThirdwebProvider's supportedWallets](/react-native/v0/connecting-wallets#supported-wallets) prop. - -```tsx - - - -``` - -## Usage with useConnect - -You can use the [`useConnect`](/references/react-native/v0/useConnect) hook to programmatically connect to the wallet without using the [ConnectWallet](/react-native/v0/connecting-wallets#connect-wallet) component. - -The wallet also needs to be added in [ThirdwebProvider's supportedWallets](/react-native/v0/connecting-wallets#supported-wallets) if you want the wallet to auto-connect on next page load. - -```tsx -const rainbowConfig = rainbowWallet(); - -function App() { - const connect = useConnect(); - - const handleConnect = async () => { - await connect(rainbowConfig, connectOptions); - }; - - return ... ; -} -``` - -### connectOptions - -```ts -{ chainId?: number } | undefined -``` - -
- -If `chainId` is provided, wallet will be connected and immediately switch to network with given `chainId`. - -`Chain` object corresponding to this chainId from [@thirdweb-dev/chains](https://www.npmjs.com/package/@thirdweb-dev/chains) package must be specified in ThirdwebProvider's supportedChains prop as shown below - -```tsx -import { Polygon } from "@thirdweb-dev/chains"; -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; - -export function YourApp() { - return ( - - - - ); -} -``` - -
diff --git a/apps/portal/src/app/react-native/v0/wallets/smartwallet/page.mdx b/apps/portal/src/app/react-native/v0/wallets/smartwallet/page.mdx deleted file mode 100644 index d221e008760..00000000000 --- a/apps/portal/src/app/react-native/v0/wallets/smartwallet/page.mdx +++ /dev/null @@ -1,117 +0,0 @@ -import { Details, createMetadata } from "@doc"; -import { WalletsBreadcrumb } from "../_components"; - -export const metadata = createMetadata({ - image: { - title: "Smart Wallet", - icon: "react", - }, - title: "Smart Wallet | thirdweb React Native SDK", - description: "API reference for smartWallet function", -}); - - - -# SmartWallet - -A wallet configurator for [Smart Accounts](/connect/acoount-abstraction) which allows integrating the wallet with React Native - -```tsx -import { smartWallet, metamaskWallet } from "@thirdweb-dev/react-native"; - -const walletConfig = metamaskWallet(); // or use any other wallet - -const smartWalletConfig = smartWallet(walletConfig, { - factoryAddress: "0x...", - gasless: true, -}); -``` - -## options - -
- -Provide a `WalletConfig` object to use as the personal wallet for the Smart Account. You can get this object by calling a wallet configurator function such as `metamaskWallet()` - -You can see the list of available wallet configurators for React Native [here](/react-native/v0/connecting-wallets). - -
- -
- -The address of the Smart Account Factory contract. - -Must be a `string`. - -
- -
- -Whether to turn on or off gasless transactions. - -- If set to `true`, all gas fees will be paid by a paymaster. -- If set to `false`, all gas fees will be paid by the Smart Account itself (needs to be funded). - -Must be a `boolean`. - -
- -## Usage with ConnectWallet - -To allow users to connect to this wallet using the [ConnectWallet](/references/react-native/v0/ConnectWallet) component, you can add it to [ThirdwebProvider's supportedWallets](/react-native/v0/connecting-wallets#supported-wallets) prop. - -```tsx -import { - smartWallet, - metamaskWallet, - walletConnect, -} from "@thirdweb-dev/react-native"; - -const config = { - factoryAddress: "0x...", - gasless: true, -} - - - -; -``` - -## Usage with `useSmartWallet` - -you can use the [`useSmartWallet`](/references/react-native/v0/useSmartWallet) hook to programmatically connect to the smart wallet without using the [ConnectWallet](/references/react-native/v0/ConnectWallet) component. - -`smartWallet()` also needs to be added in [ThirdwebProvider's supportedWallets](/react-native/v0/connecting-wallets#supported-wallets) if you want the wallet to auto-connect on next page load. - -```tsx -import { useSmartWallet, metamaskWallet } from "@thirdweb-dev/react-native"; - -function Example() { - // here we're using metamask as the personal wallet - // can be any other wallet, including localWallet(), inAppWallet(), etc - const { connect } = useSmartWallet(metamaskWallet(), { - factoryAddress: "your-factory-address", - gasless: true, - }); - - return ( - - ); -} -``` diff --git a/apps/portal/src/app/react-native/v0/wallets/trust/page.mdx b/apps/portal/src/app/react-native/v0/wallets/trust/page.mdx deleted file mode 100644 index 8c64acc722d..00000000000 --- a/apps/portal/src/app/react-native/v0/wallets/trust/page.mdx +++ /dev/null @@ -1,113 +0,0 @@ -import { CustomizeWalletConfigurator, WalletsBreadcrumb } from "../_components"; -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - image: { - title: "Trust Wallet", - icon: "react", - }, - title: "Trust Wallet | thirdweb React Native SDK", - description: "API reference for trustWallet function", -}); - - - -# TrustWallet - -A wallet configurator for [Trust](/references/wallets/v2/TrustWallet) to integrate the wallet with the React Native SDK - -```tsx -import { trustWallet } from "@thirdweb-dev/react-native"; - -const trustConfig = trustWallet(options); -``` - - - -## options - -
- -This `projectId` can be obtained at [cloud.walletconnect.com](https://cloud.walletconnect.com/). It is highly recommended to use your own project id and only use the default one for testing purposes. - -```ts -trustWallet({ - projectId: "your-wallet-connect-project-id", -}); -``` - -
- -
- -Show this wallet as "recommended" in the [ConnectWallet Modal](/react-native/v0/connecting-wallets#connect-wallet). - -```ts -trustWallet({ - recommended: true, -}); -``` - -
- -## Usage with ConnectWallet - -To allow users to connect to this wallet using the [ConnectWallet](/react-native/v0/connecting-wallets#connect-wallet) component, you can add it to [ThirdwebProvider's supportedWallets](/react-native/v0/connecting-wallets#supported-wallets) prop. - -```tsx - - - -``` - -## Usage with useConnect - -you can use the [`useConnect`](/references/react-native/v0/useConnect) hook to programmatically connect to the wallet without using the [ConnectWallet](/react-native/v0/connecting-wallets#connect-wallet) component. - -The wallet also needs to be added in [ThirdwebProvider's supportedWallets](/react-native/v0/connecting-wallets#supported-wallets) if you want the wallet to auto-connect on next page load. - -```tsx -const trustConfig = trustWallet(); - -function App() { - const connect = useConnect(); - - const handleConnect = async () => { - await connect(trustConfig, connectOptions); - }; - - return ... ; -} -``` - -### connectOptions - -```ts -{ chainId?: number } | undefined -``` - -
- -If `chainId` is provided, wallet will be connected and immediately switch to network with given `chainId`. - -`Chain` object corresponding to this chainId from [@thirdweb-dev/chains](https://www.npmjs.com/package/@thirdweb-dev/chains) package must be specified in ThirdwebProvider's supportedChains prop as shown below - -```tsx -import { Polygon } from "@thirdweb-dev/chains"; -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; - -export function YourApp() { - return ( - - - - ); -} -``` - -
diff --git a/apps/portal/src/app/react-native/v0/wallets/walletconnect/page.mdx b/apps/portal/src/app/react-native/v0/wallets/walletconnect/page.mdx deleted file mode 100644 index 280ccddd585..00000000000 --- a/apps/portal/src/app/react-native/v0/wallets/walletconnect/page.mdx +++ /dev/null @@ -1,126 +0,0 @@ -import { CustomizeWalletConfigurator, WalletsBreadcrumb } from "../_components"; -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - image: { - title: "WalletConnect", - icon: "react", - }, - title: "WalletConnect | thirdweb React Native SDK", - description: "API reference for walletConnect function", -}); - - - -# WalletConnect - -A wallet configurator for [Wallet Connect](/references/wallets/v2/WalletConnect) which allows integrating the wallet with React Native - -```tsx -import { walletConnect } from "@thirdweb-dev/react-native"; - -const walletConnectConfig = walletConnect(options); -``` - - - -## options - -
- -Your project's unique identifier that can be obtained at [cloud.walletconnect.com](https://cloud.walletconnect.com). It is highly recommended to use your own project id and only use the default one for testing purposes. - -It Enables following functionalities within Web3Modal: - -- wallet and chain logos, -- optional WalletConnect RPC, -- support for all wallets from our Explorer and WalletConnect v2 support. - -Defaults to thirdweb's common project id. - -```javascript -import { WalletConnect } from "@thirdweb-dev/wallets"; - -const wallet = new WalletConnect({ - projectId: "", -}); -``` - -
- - - -## Usage with ConnectWallet - -To allow users to connect to this wallet using the [ConnectWallet](/react-native/v0/components/ConnectWallet) component, you can add it to [ThirdwebProvider's supportedWallets](/react-native/v0/connecting-wallets#supported-wallets) prop. - -```tsx - - - -``` - -## Usage with useConnect - -You can use the [`useConnect`](/references/react-native/v0/useConnect) hook to programmatically connect to the wallet without using the [ConnectWallet](/react-native/v0/components/ConnectWallet) component. - -The wallet also needs to be added in [ThirdwebProvider's supportedWallets](/react-native/v0/connecting-wallets#supported-wallets) if you want the wallet to auto-connect on next page load. - -```tsx -const walletConnectConfig = walletConnect(); - -function App() { - const connect = useConnect(); - - const handleConnect = async () => { - await connect(walletConnectConfig, connectOptions); - }; - - return
...
; -} -``` - -### connectOptions - -```ts -{ chainId?: number } | undefined -``` - -
- -If `chainId` is provided, wallet will be connected and immediately switch to network with given `chainId`. - -`Chain` object corresponding to this chainId from [@thirdweb-dev/chains](https://www.npmjs.com/package/@thirdweb-dev/chains) package must be specified in [ThirdwebProvider's supportedWallets](/react-native/v0/connecting-wallets#supported-wallets) prop as shown below - -```tsx -import { Polygon } from "@thirdweb-dev/chains"; -import { ThirdwebProvider } from "@thirdweb-dev/react-native"; - -export function YourApp() { - return ( - - - - ); -} -``` - -
diff --git a/apps/portal/src/app/react-native/v5/[...slug]/page.tsx b/apps/portal/src/app/react-native/v5/[...slug]/page.tsx index 4f0e2fc9d54..588c390b517 100644 --- a/apps/portal/src/app/react-native/v5/[...slug]/page.tsx +++ b/apps/portal/src/app/react-native/v5/[...slug]/page.tsx @@ -6,7 +6,7 @@ import { getSlugToDocMap } from "../../../references/components/TDoc/utils/slugs type PageProps = { params: Promise<{ slug: string[] }> }; export default async function Page(props: PageProps) { - const doc = await fetchTypeScriptDoc("v5"); + const doc = await fetchTypeScriptDoc(); const slugToDoc = getSlugToDocMap(doc); const docSlug = (await props.params).slug?.join("/"); diff --git a/apps/portal/src/app/react/v4/ThirdwebProvider/page.mdx b/apps/portal/src/app/react/v4/ThirdwebProvider/page.mdx deleted file mode 100644 index 1807d065f1e..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebProvider/page.mdx +++ /dev/null @@ -1,101 +0,0 @@ -import { Details, Callout, createMetadata } from "@doc"; -import ActiveChainMDX from "./props/activeChain.mdx"; -import ClientIdMDX from "./props/clientId.mdx"; -import AuthConfigMDX from "./props/authConfig.mdx"; -import SupportedWalletsMDX from "./props/supportedWallets.mdx"; -import SupportedChainsMDX from "./props/supportedChains.mdx"; -import AutoConnectMDX from "./props/autoConnect.mdx"; -import DappMetaMDX from "./props/dAppMeta.mdx"; -import SDKOptionsMDX from "./props/sdkOptions.mdx"; -import StorageInterfaceMDX from "./props/storageInterface.mdx"; -import QueryClientMDX from "./props/queryClient.mdx"; -import LocaleMDX from "./props/locale.mdx"; -import ThemeMDX from "./props/theme.mdx"; -import DefaultChainsMDX from "../common/defaultChains.mdx"; - -export const metadata = createMetadata({ - title: "ThirdwebProvider | thirdweb React SDK", - description: "API Reference for the ThirdwebProvider component", -}); - -# ThirdwebProvider - -The `ThirdwebProvider` is a wrapper component that provides access to all of the SDK’s hooks and UI components. - - - -You will require an API key to use thirdweb's infrastructure services with the SDK. - -you need to first obtain an API key from the [dashboard](https://thirdweb.com/team) by creating a new project and then copy the "Client ID" and pass it to the `ThirdwebProvider` as the `clientId` prop. - - - -## Usage - -Wrap your app in the `ThirdwebProvider` to access the SDK’s functionality from anywhere in your app. - -If you are using one of [default supported chains](#default-chains), provide the name of the chain as a `string` to the `activeChain` prop. - - - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react"; - -function Example() { - return ( - - - - ); -} -``` - -## Props - -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
diff --git a/apps/portal/src/app/react/v4/ThirdwebProvider/props/activeChain.mdx b/apps/portal/src/app/react/v4/ThirdwebProvider/props/activeChain.mdx deleted file mode 100644 index 321e44fc881..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebProvider/props/activeChain.mdx +++ /dev/null @@ -1,151 +0,0 @@ -import { Details, Callout } from "@doc"; -import DefaultChainsMDX from "../../common/defaultChains.mdx"; - -The `activeChain` prop determines which chain you want your app to be operating on. - -It defaults to `"ethereum"` if `activeChain` prop is not provided. - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react"; -import { Gnosis } from "@thirdweb-dev/chains"; - -function Example() { - return ( - - - - ); -} -``` - -
- -If you are using one of [default supported chains](#default-chains), provide the name of the chain as a `string` to the `activeChain` prop. - - - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react"; - -function App() { - return ( - - - - ); -} -``` - -
- -
- -If the chain you are looking for is not one of default supported chains, you can import a chain from the [@thirdweb-dev/chains](https://github.com/thirdweb-dev/js/tree/v4/legacy_packages/chains) package which has 1000+ chains. - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react"; -import { } from "@thirdweb-dev/chains"; - -function App() { - return ( - } clientId="your-client-id"> - - - ); -} -``` - -### Override Default Values - -Override the default values (such as an RPC URL) for any given chain. - - -By default, the `@thirdweb-dev/chains` provides free-to-use RPCs. No configuration required! - -[View the default RPC URLs for each network](https://github.com/thirdweb-dev/js/tree/v4/legacy_packages/chains/chains). - - - -Using the [spread syntax](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax), -you can override any properties of a chain, such as the `rpc` field. - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react"; -import { } } from "@thirdweb-dev/chains"; - -const activeChain = { - ..., - rpc: ["https://.com"], // Override the "rpc" field. - // ... Override any other fields you want to customize. -}; - -const App = () => { - return ( - - - - ); -}; -``` - -
- -
- -If your chain is not included in the `@thirdweb-dev/chains` package, -you can provide the chain information yourself to the `activeChain` prop. - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react"; - -const customChain = { - // Required information for connecting to the network - chainId: 59140, // Chain ID of the network - rpc: [""], // Array of RPC URLs to use - - // Information for adding the network to your wallet (how it will appear for first time users) === \\ - // Information about the chain's native currency (i.e. the currency that is used to pay for gas) - nativeCurrency: { - decimals: 18, - name: "Consensys ETH", - symbol: "crETH", - }, - shortName: "czkevm", // Display value shown in the wallet UI - slug: "consensys", // Display value shown in the wallet UI - testnet: true, // Boolean indicating whether the chain is a testnet or mainnet - chain: "ConsenSys", // Name of the network - name: "ConsenSys zkEVM Testnet", // Name of the network -}; - -const App = () => { - return ( - - - - ); -}; -``` - -
- -
- -If you are running a local node using a tool such as [Hardhat](https://hardhat.org/hardhat-network/docs/overview) or -[Anvil](https://github.com/foundry-rs/foundry/blob/master/anvil/README.md), -provide `"localhost"` as the `activeChain` prop, (or `Localhost` imported from `@thirdweb-dev/chains`). - -[Deploy](/contracts/deploy/overview) or [import](https://thirdweb.com/team/~/~/contracts) your contracts to the dashboard to interact with them. - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react"; - -function MyApp() { - return ( - - - - ); -} -``` - -
diff --git a/apps/portal/src/app/react/v4/ThirdwebProvider/props/authConfig.mdx b/apps/portal/src/app/react/v4/ThirdwebProvider/props/authConfig.mdx deleted file mode 100644 index cb18822cad3..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebProvider/props/authConfig.mdx +++ /dev/null @@ -1,26 +0,0 @@ -The configuration object for setting up [Auth](/connect/auth), allowing users to sign in with their wallet. - -| Property | Type | Description | -| --------------- | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `authUrl` | `string` | 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` | `string` | The frontend domain used to generate the login payload. This domain should match the domain used on your auth backend. | -| `secureStorage` | `ISecureStorage` | Secure storage to use when working with JWT tokens. ** By default auth uses cookies so no need to set this unless you want to specifically use JWT tokens ** | - -#### Example - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react"; - -function MyApp() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/ThirdwebProvider/props/autoConnect.mdx b/apps/portal/src/app/react/v4/ThirdwebProvider/props/autoConnect.mdx deleted file mode 100644 index b53e73628ff..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebProvider/props/autoConnect.mdx +++ /dev/null @@ -1,16 +0,0 @@ -When the user has connected their wallet to your site, this flag determines -whether or not you want to automatically connect to the last connected wallet when user visits your site again in the future. - -Defaults to `true` - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react"; - -function MyApp() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/ThirdwebProvider/props/clientId.mdx b/apps/portal/src/app/react/v4/ThirdwebProvider/props/clientId.mdx deleted file mode 100644 index 95807f3ee2c..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebProvider/props/clientId.mdx +++ /dev/null @@ -1,13 +0,0 @@ -The `clientId` prop is required to use the thirdweb infrastructure services with the SDK. You can get a client ID by creating an API key [on thirdweb dashboard](https://thirdweb.com/create-api-key). - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react"; - -function MyApp() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/ThirdwebProvider/props/dAppMeta.mdx b/apps/portal/src/app/react/v4/ThirdwebProvider/props/dAppMeta.mdx deleted file mode 100644 index 8404c11246d..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebProvider/props/dAppMeta.mdx +++ /dev/null @@ -1,38 +0,0 @@ -This Metadata is passed to the wallet. Some wallets use this information to display the metadata of the app to the user when a user is connecting the wallet to your app. - -If no `dAppMeta` prop is set, it defaults to below object: - -```js -{ - name: "thirdweb powered dApp", - url: "https://thirdweb.com", -}; -``` - -| Property | Type | Description | -| ------------- | ------- | ----------------------------------------------------------------- | -| `name` | string | the name of your app | -| `description` | string | optional - a description of your app | -| `logoUrl` | string | optional - a URL that points to a logo (or favicon) of your app | -| `url` | string | optional - the URL where your app is hosted | -| `isDarkMode` | boolean | optional - whether to show the connect dialog in dark mode or not | - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react"; - -function MyApp() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/ThirdwebProvider/props/locale.mdx b/apps/portal/src/app/react/v4/ThirdwebProvider/props/locale.mdx deleted file mode 100644 index 1e93a100ecb..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebProvider/props/locale.mdx +++ /dev/null @@ -1,78 +0,0 @@ -locale object contains text used for all thirdweb components - -it allows you to change the language used in UI components or override the texts used in the UI - -React SDK comes out of the box with Spanish and Japanese locale functions, but you can add support for any language you want just by passing an object with the required strings - -### Using Built-in Locales - -#### Using English locale ( default ) - -```tsx -import { ThirdwebProvider, en } from "@thirdweb-dev/react"; - -const english = en(); - - - -; -``` - -#### Using the Spanish locale - -```tsx -import { ThirdwebProvider, es } from "@thirdweb-dev/react"; - -const spanish = es(); - - - -; -``` - -#### Using the Japanese locale - -```tsx -import { ThirdwebProvider, jp } from "@thirdweb-dev/react"; - -const japanese = jp(); - - - -; -``` - -#### Overriding the locale - -```tsx -import { ThirdwebProvider, en } from "@thirdweb-dev/react"; - -// override some texts -const english = en({ - connectWallet: { - confirmInWallet: "Confirm in your wallet", - }, - wallets: { - metamaskWallet: { - connectionScreen: { - inProgress: "Awaiting Confirmation", - instruction: "Accept connection request in your MetaMask wallet", - }, - }, - }, -}); - - - -; -``` - -### Custom locale object - -```tsx -import { ThirdwebProvider } from "@thirdweb-dev/react"; - - - -; -``` diff --git a/apps/portal/src/app/react/v4/ThirdwebProvider/props/queryClient.mdx b/apps/portal/src/app/react/v4/ThirdwebProvider/props/queryClient.mdx deleted file mode 100644 index eca067001a5..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebProvider/props/queryClient.mdx +++ /dev/null @@ -1,20 +0,0 @@ -If you are using [React Query](https://react-query.tanstack.com/) and have your own `QueryClient`, -you can pass it as the `queryClient` prop to use this client instead of the SDK's default client. - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react"; -import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; - -function MyApp() { - // Your React Query client (or client from other library such as wagmi) - const queryClient = new QueryClient(); - - return ( - - - - - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/ThirdwebProvider/props/sdkOptions.mdx b/apps/portal/src/app/react/v4/ThirdwebProvider/props/sdkOptions.mdx deleted file mode 100644 index 2ee7f6e7367..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebProvider/props/sdkOptions.mdx +++ /dev/null @@ -1,40 +0,0 @@ -Override any of the default values for the SDK. - -Gas settings, gasless transactions, RPC configuration, and more. - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react"; - -const sdkOptions = { - readonlySettings: { - rpcUrl: "", // force read calls to go through your own RPC url - chainId: 1, // reduce RPC calls by specifying your chain ID - }, - gasSettings: { - maxPriceInGwei: 123, // Maximum gas price for transactions (default 300 gwei) - speed: "fastest", // the tx speed setting: 'standard'|'fast|'fastest' (default: 'fastest') - }, - gasless: { - // By specifying a gasless configuration - all transactions will get forwarded to enable gasless transactions - openzeppelin: { - relayerUrl: "", // your OZ Defender relayer URL - relayerForwarderAddress: "", // the OZ defender relayer address (defaults to the standard one) - }, - biconomy: { - apiId: "biconomy-api-id", // your Biconomy API Id - apiKey: "biconomy-api-key", // your Biconomy API Key - deadlineSeconds: 123, // your Biconomy timeout preference - }, - }, - infuraApiKey: "", // your Infura API key - alchemyApiKey: "", // your Alchemy API key -}; - -function Example() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/ThirdwebProvider/props/storageInterface.mdx b/apps/portal/src/app/react/v4/ThirdwebProvider/props/storageInterface.mdx deleted file mode 100644 index e87eaac1235..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebProvider/props/storageInterface.mdx +++ /dev/null @@ -1,44 +0,0 @@ -import { Callout } from "@doc"; - -Override the default [Storage](/storage) interface used by the SDK. - -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 about Storage](/storage) - - - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react"; -import { - ThirdwebStorage, - StorageDownloader, - IpfsUploader, -} from "@thirdweb-dev/storage"; - -// Configure a custom ThirdwebStorage instance -const storage = new ThirdwebStorage({ - uploader: new IpfsUploader(), - downloader: new StorageDownloader(), - gatewayUrls: { - "ipfs://": [ - "https://gateway.ipfscdn.io/ipfs/", - "https://cloudflare-ipfs.com/ipfs/", - "https://ipfs.io/ipfs/", - ], - }, -}); - -// Provide the custom storage instance to the SDK -function MyApp() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/ThirdwebProvider/props/supportedChains.mdx b/apps/portal/src/app/react/v4/ThirdwebProvider/props/supportedChains.mdx deleted file mode 100644 index 2357d3f334b..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebProvider/props/supportedChains.mdx +++ /dev/null @@ -1,25 +0,0 @@ -import DefaultChainsMDX from "../../common/defaultChains.mdx"; - -An array of chains supported by your app. - -You can import chains from `@thirdweb-dev/chains` which contains 1000+ chains. - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react"; -import { Ethereum, Polygon } from "@thirdweb-dev/chains"; - -function MyApp() { - return ( - - - - ); -} -``` - -If not provided, It defaults to below shown default chains. - - diff --git a/apps/portal/src/app/react/v4/ThirdwebProvider/props/supportedWallets.mdx b/apps/portal/src/app/react/v4/ThirdwebProvider/props/supportedWallets.mdx deleted file mode 100644 index 663e32f2a0a..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebProvider/props/supportedWallets.mdx +++ /dev/null @@ -1,27 +0,0 @@ -An array of wallets that your app supports. - -Wallets provided here appear in the [ConnectWallet Modal](/react/v4/components/ConnectWallet) and allow you to use -the wallet connection hooks. - -[Learn more about connecting wallets](/react/v4/connecting-wallets) and the options available. - -```jsx -import { - ThirdwebProvider, - metamaskWallet, - coinbaseWallet, - walletConnect, -} from "@thirdweb-dev/react"; - -function MyApp() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/ThirdwebProvider/props/theme.mdx b/apps/portal/src/app/react/v4/ThirdwebProvider/props/theme.mdx deleted file mode 100644 index 9dd61eb4fc9..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebProvider/props/theme.mdx +++ /dev/null @@ -1,33 +0,0 @@ -Sets the theme for all thirdweb components. - -By default it is set to `"dark"` - -theme can be set to either `"dark"` or `"light"` or a custom [`Theme`](/references/react/v4/Theme) object. - -You can also import the [`lightTheme`](/references/react/v4/lightTheme) or [`darkTheme`](/references/react/v4/lightTheme) functions from `@thirdweb-dev/react` to use the default themes as base and overrides parts of it. - -### Using default themes - -```tsx -import { ThirdwebProvider } from "@thirdweb-dev/react"; - - - -; -``` - -### Overriding theme - -```tsx -import { ThirdwebProvider, lightTheme } from "@thirdweb-dev/react"; - -const customTheme = lightTheme({ - colors: { - modalBg: "red", - }, -}); - - - -; -``` diff --git a/apps/portal/src/app/react/v4/ThirdwebSDKProvider/page.mdx b/apps/portal/src/app/react/v4/ThirdwebSDKProvider/page.mdx deleted file mode 100644 index a3c94ec3941..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebSDKProvider/page.mdx +++ /dev/null @@ -1,79 +0,0 @@ -import { Details, createMetadata } from "@doc"; -import SignerMDX from "./props/signer.mdx"; -import ClientIDMDX from "./props/clientId.mdx"; -import ActiveChainMDX from "./props/activeChain.mdx"; -import AuthConfigMDX from "./props/authConfig.mdx"; -import SDKOptionsMDX from "./props/sdkOptions.mdx"; -import StorageInterfaceMDX from "./props/storageInterface.mdx"; -import QueyrClientMDX from "./props/queryClient.mdx"; - -export const metadata = createMetadata({ - image: { - title: "ThirdwebSDKProvider component", - icon: "react", - }, - title: "ThirdwebSDKProvider | thirdweb React SDK", - description: "API Reference for the ThirdwebSDKProvider component", -}); - -# ThirdwebSDKProvider - -The `ThirdwebSDKProvider` is used when you want to provide your own wallet connection logic and just use the thirdweb SDK to -interact with smart contracts and the blockchain. This means you can use everything in the SDK except for wallet connection-related components and hooks. - -Wrap your app in the `ThirdwebSDKProvider` to access the SDK’s functionality from anywhere in your app. Provide a `signer` -prop to inform the SDK of the wallet you want to use, among other configuration options. - -## Usage - -Wrap your app in the `ThirdwebSDKProvider` to access the SDK's functionality from anywhere in your app. - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react"; -import { ethers } from "ethers"; - -function MyApp() { - // Example: Use ethers to get the signer from the window.ethereum object - const signer = new ethers.providers.Web3Provider(window.ethereum).getSigner(); - - return ( - - - - ); -} -``` - -## Props - -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
diff --git a/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/activeChain.mdx b/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/activeChain.mdx deleted file mode 100644 index d5114ab274f..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/activeChain.mdx +++ /dev/null @@ -1,151 +0,0 @@ -import { Details, Callout } from "@doc"; -import DefaultChainsMDX from "../../common/defaultChains.mdx"; - -The `activeChain` prop determines which chain you want your app to be operating on. - -It defaults to `"ethereum"` if `activeChain` prop is not provided. - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react"; -import { Gnosis } from "@thirdweb-dev/chains"; - -function Example() { - return ( - - - - ); -} -``` - -
- -If you are using one of our default chains, provide the name of the chain as a `string` to the `activeChain` prop. - - - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react"; - -function App() { - return ( - - - - ); -} -``` - -
- -
- -If the chain you are looking for is not one of default supported chains, you can import a chain from the [@thirdweb-dev/chains](https://github.com/thirdweb-dev/js/tree/v4/legacy_packages/chains) package which has 1000+ chains. - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react"; -import { } from "@thirdweb-dev/chains"; - -function App() { - return ( - } clientId="your-client-id"> - - - ); -} -``` - -### Override Default Values - -Override the default values (such as an RPC URL) for any given chain. - - -By default, the `@thirdweb-dev/chains` provides free-to-use RPCs. No configuration required! - -[View the default RPC URLs for each network](https://github.com/thirdweb-dev/js/tree/v4/legacy_packages/chains/chains). - - - -Using the [spread syntax](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax), -you can override any properties of a chain, such as the `rpc` field. - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react"; -import { } from "@thirdweb-dev/chains"; - -const activeChain = { - ..., - rpc: ["https://.com"], // Override the "rpc" field. - // ... Override any other fields you want to customize. -}; - -const App = () => { - return ( - - - - ); -}; -``` - -
- -
- -If your chain is not included in the `@thirdweb-dev/chains` package, -you can provide the chain information yourself to the `activeChain` prop. - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react"; - -const customChain = { - // Required information for connecting to the network - chainId: 59140, // Chain ID of the network - rpc: [""], // Array of RPC URLs to use - - // Information for adding the network to your wallet (how it will appear for first time users) === \\ - // Information about the chain's native currency (i.e. the currency that is used to pay for gas) - nativeCurrency: { - decimals: 18, - name: "Consensys ETH", - symbol: "crETH", - }, - shortName: "czkevm", // Display value shown in the wallet UI - slug: "consensys", // Display value shown in the wallet UI - testnet: true, // Boolean indicating whether the chain is a testnet or mainnet - chain: "ConsenSys", // Name of the network - name: "ConsenSys zkEVM Testnet", // Name of the network -}; - -const App = () => { - return ( - - - - ); -}; -``` - -
- -
- -If you are running a local node using a tool such as [Hardhat](https://hardhat.org/hardhat-network/docs/overview) or -[Anvil](https://github.com/foundry-rs/foundry/blob/master/anvil/README.md), -provide `"localhost"` as the `activeChain` prop, (or `Localhost` imported from `@thirdweb-dev/chains`). - -[Deploy](/contracts/deploy/overview) or [import](https://thirdweb.com/team/~/~/contracts) your contracts to the dashboard to interact with them. - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react"; - -function MyApp() { - return ( - - - - ); -} -``` - -
diff --git a/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/authConfig.mdx b/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/authConfig.mdx deleted file mode 100644 index f3914c419ac..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/authConfig.mdx +++ /dev/null @@ -1,26 +0,0 @@ -The configuration object for setting up [Auth](/connect/auth), allowing users to sign in with their wallet. - -| Property | Type | Description | -| --------------- | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `authUrl` | `string` | 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` | `string` | The frontend domain used to generate the login payload. This domain should match the domain used on your auth backend. | -| `secureStorage` | `ISecureStorage` | Secure storage to use when working with JWT tokens. ** By default auth uses cookies so no need to set this unless you want to specifically use JWT tokens ** | - -#### Example - -```tsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react"; - -function MyApp() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/clientId.mdx b/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/clientId.mdx deleted file mode 100644 index 82f8e66b00d..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/clientId.mdx +++ /dev/null @@ -1,11 +0,0 @@ -The `clientId` prop is required to use the thirdweb infrastructure services with the SDK. You can get a client ID by creating an API key on [thirdweb dashboard](https://thirdweb.com/create-api-key). - -```jsx -function MyApp() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/queryClient.mdx b/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/queryClient.mdx deleted file mode 100644 index e78a37a4d13..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/queryClient.mdx +++ /dev/null @@ -1,20 +0,0 @@ -If you are using [React Query](https://react-query.tanstack.com/) and have your own `QueryClient`, -you can pass it as the `queryClient` prop to use this client instead of the SDK's default client. - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react"; -import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; - -function MyApp() { - // Your React Query client (or client from other library such as wagmi) - const queryClient = new QueryClient(); - - return ( - - - - - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/sdkOptions.mdx b/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/sdkOptions.mdx deleted file mode 100644 index d9a72f06901..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/sdkOptions.mdx +++ /dev/null @@ -1,43 +0,0 @@ -Override any of the default values for the SDK. - -Gas settings, gasless transactions, RPC configuration, and more. - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react"; - -const sdkOptions = { - readonlySettings: { - rpcUrl: "", // force read calls to go through your own RPC url - chainId: 1, // reduce RPC calls by specifying your chain ID - }, - gasSettings: { - maxPriceInGwei: 123, // Maximum gas price for transactions (default 300 gwei) - speed: "fastest", // the tx speed setting: 'standard'|'fast|'fastest' (default: 'fastest') - }, - gasless: { - // By specifying a gasless configuration - all transactions will get forwarded to enable gasless transactions - engine: { - relayerUrl:"", // your thirdweb Engine relayer URL - }, - openzeppelin: { - relayerUrl: "", // your OZ Defender relayer URL - relayerForwarderAddress: "", // the OZ defender relayer address (defaults to the standard one) - }, - biconomy: { - apiId: "biconomy-api-id", // your Biconomy API Id - apiKey: "biconomy-api-key", // your Biconomy API Key - deadlineSeconds: 123, // your Biconomy timeout preference - }, - }, - infuraApiKey: "", // your Infura API key - alchemyApiKey: "", // your Alchemy API key -}; - -function Example() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/signer.mdx b/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/signer.mdx deleted file mode 100644 index 7ed08f2abe3..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/signer.mdx +++ /dev/null @@ -1,31 +0,0 @@ -A signer is an abstraction of an Ethereum Account, -which can be used to sign messages and initiate transactions. - -Since the `ThirdwebSDKProvider` is used when you want to provide your own wallet connection logic, -you will need to provide a `signer` prop to inform the SDK of the wallet you want to use to sign transactions. - -Libraries such as [ethers.js](https://docs.ethers.io/v5/), [web3.js](https://web3js.readthedocs.io/en/v1.5.2/), [wagmi](https://wagmi.sh), etc. -all provide ways to get a signer. - -To use this signer with the SDK, pass it to the `signer` prop. If the signer is connected, the SDK will use this wallet -to sign transactions for all write operations on the blockchain. - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react"; -import { ethers } from "ethers"; - -function MyApp() { - // Example: Use ethers to get the signer from the window.ethereum object - const signer = new ethers.providers.Web3Provider(window.ethereum).getSigner(); - - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/storageInterface.mdx b/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/storageInterface.mdx deleted file mode 100644 index b7b4725acf6..00000000000 --- a/apps/portal/src/app/react/v4/ThirdwebSDKProvider/props/storageInterface.mdx +++ /dev/null @@ -1,44 +0,0 @@ -import { Callout } from "@doc"; - -Override the default [Storage](/storage) interface used by the SDK. - -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 about Storage](/storage) - - - -```jsx -import { ThirdwebSDKProvider } from "@thirdweb-dev/react"; -import { - ThirdwebStorage, - StorageDownloader, - IpfsUploader, -} from "@thirdweb-dev/storage"; - -// Configure a custom ThirdwebStorage instance -const storage = new ThirdwebStorage({ - uploader: new IpfsUploader(), - downloader: new StorageDownloader(), - gatewayUrls: { - "ipfs://": [ - "https://gateway.ipfscdn.io/ipfs/", - "https://cloudflare-ipfs.com/ipfs/", - "https://ipfs.io/ipfs/", - ], - }, -}); - -// Provide the custom storage instance to the SDK -function MyApp() { - return ( - - - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/common/defaultChains.mdx b/apps/portal/src/app/react/v4/common/defaultChains.mdx deleted file mode 100644 index a045cb56d2e..00000000000 --- a/apps/portal/src/app/react/v4/common/defaultChains.mdx +++ /dev/null @@ -1,24 +0,0 @@ -import { Details } from "@doc"; - -
- -```js -[ - "ethereum", - "goerli", - "polygon", - "arbitrum", - "arbitrum-goerli", - "optimism", - "optimism-goerli", - "binance", - "binance-testnet", - "fantom", - "fantom-testnet", - "avalanche-fuji", - "avalanche-fuji-testnet", - "localhost", -]; -``` - -
diff --git a/apps/portal/src/app/react/v4/components/ConnectEmbed/_assets/ConnectEmbed-default.png b/apps/portal/src/app/react/v4/components/ConnectEmbed/_assets/ConnectEmbed-default.png deleted file mode 100644 index 8be9a415f47..00000000000 Binary files a/apps/portal/src/app/react/v4/components/ConnectEmbed/_assets/ConnectEmbed-default.png and /dev/null differ diff --git a/apps/portal/src/app/react/v4/components/ConnectEmbed/_assets/ConnectEmbed-embedded.png b/apps/portal/src/app/react/v4/components/ConnectEmbed/_assets/ConnectEmbed-embedded.png deleted file mode 100644 index 5a0c2dab59a..00000000000 Binary files a/apps/portal/src/app/react/v4/components/ConnectEmbed/_assets/ConnectEmbed-embedded.png and /dev/null differ diff --git a/apps/portal/src/app/react/v4/components/ConnectEmbed/_assets/ConnectEmbed-light.png b/apps/portal/src/app/react/v4/components/ConnectEmbed/_assets/ConnectEmbed-light.png deleted file mode 100644 index 0ae28478929..00000000000 Binary files a/apps/portal/src/app/react/v4/components/ConnectEmbed/_assets/ConnectEmbed-light.png and /dev/null differ diff --git a/apps/portal/src/app/react/v4/components/ConnectEmbed/_assets/ConnectEmbed-privacy.png b/apps/portal/src/app/react/v4/components/ConnectEmbed/_assets/ConnectEmbed-privacy.png deleted file mode 100644 index 2d3c2b4ed91..00000000000 Binary files a/apps/portal/src/app/react/v4/components/ConnectEmbed/_assets/ConnectEmbed-privacy.png and /dev/null differ diff --git a/apps/portal/src/app/react/v4/components/ConnectEmbed/_assets/ConnectEmbed-signin.png b/apps/portal/src/app/react/v4/components/ConnectEmbed/_assets/ConnectEmbed-signin.png deleted file mode 100644 index b34acfea235..00000000000 Binary files a/apps/portal/src/app/react/v4/components/ConnectEmbed/_assets/ConnectEmbed-signin.png and /dev/null differ diff --git a/apps/portal/src/app/react/v4/components/ConnectEmbed/_assets/ConnectEmbed-tos.png b/apps/portal/src/app/react/v4/components/ConnectEmbed/_assets/ConnectEmbed-tos.png deleted file mode 100644 index f78fdff4a74..00000000000 Binary files a/apps/portal/src/app/react/v4/components/ConnectEmbed/_assets/ConnectEmbed-tos.png and /dev/null differ diff --git a/apps/portal/src/app/react/v4/components/ConnectEmbed/page.mdx b/apps/portal/src/app/react/v4/components/ConnectEmbed/page.mdx deleted file mode 100644 index 744418137dd..00000000000 --- a/apps/portal/src/app/react/v4/components/ConnectEmbed/page.mdx +++ /dev/null @@ -1,316 +0,0 @@ -import { - Details, - Breadcrumb, - Callout, - Steps, - Step, - DocImage, - GithubTemplateCard, - createMetadata, -} from "@doc"; -import ConnectEmbedDefaultImg from "./_assets/ConnectEmbed-default.png"; -import ConnectEmbedSigninImg from "./_assets/ConnectEmbed-signin.png"; -import ConnectEmbedLight from "./_assets/ConnectEmbed-light.png"; -import ConnectEmbedTOS from "./_assets/ConnectEmbed-tos.png"; -import ConnectEmbedPrivacy from "./_assets/ConnectEmbed-privacy.png"; - -export const metadata = createMetadata({ - image: { - title: "ConnectEmbed component", - icon: "react", - }, - title: "ConnectEmbed | thirdweb React SDK", - description: "API Reference for the ConnectEmbed component", -}); - - - -# ConnectEmbed - -ConnectEmbed component renders a UI to connect to various wallets. it renders the same UI as the [`ConnectWallet`](/react/v4/components/ConnectWallet) component's Modal UI. -This is really useful for Implementing a "Sign in" page. - - - -See the ConnectWallet in action on [ConnectWallet Playground!](https://playground.thirdweb.com/connect/sign-in/button) - - - - - -It also renders a UI to [Sign in with wallet](/connect/auth/how-it-works/siwe) if it is enabled by setting [`authConfig`](/react/v4/ThirdwebProvider#authConfig) in [`ThirdwebProvider`](/react/v4/ThirdwebProvider) component and `loginOptional` prop is either not provided or set to `false` in `ConnectEmbed` component - - - -Because of this use case, It only renders UI if either one of the following conditions are true: - -- wallet is not connected - -- wallet is connected but the user is not signed in and sign in is required - -## Usage - - - - -To Configure which wallets to show in the `ConnectEmbed` UI, you need to configure the `supportedWallets` prop in the [`ThirdwebProvider`](/react/v4/ThirdwebProvider) component which wraps your entire application. - -To display a `Recommended` tag below a wallet provider, pass in the `recommended: true` property in the wallet configurator function. - -```jsx -import { - ThirdwebProvider, - metamaskWallet, - coinbaseWallet, - walletConnect, -} from "@thirdweb-dev/react"; - -function AppWithProviders() { - return ( - - - - ); -} -``` - -If `supportedWallets` is not configured in the `ThirdwebProvider`, the ConnectWallet Modal show the default wallets: - -
- -- [MetaMask](/references/react/v4/metamaskWallet) -- [Coinbase Wallet](/references/react/v4/coinbaseWallet) -- [WalletConnect](/references/react/v4/walletConnect) -- [Rainbow](/references/react/v4/rainbowWallet) -- [Trust Wallet](/references/react/v4/trustWallet) -- [Zerion Wallet](/references/react/v4/zerionWallet) -- [Phantom](/references/react/v4/phantomWallet) - -
- -
- - - -Render the `ConnectEmbed` component anywhere in your application. Refer to [Props](#props) to see the configuration options available - -```tsx -import { ConnectEmbed } from "@thirdweb-dev/react"; - -function Example() { - return ( -
- -
- ); -} -``` - -You can use the [`useShowConnectEmbed`](/references/react/v4/useShowConnectEmbed) hook to check if the `ConnectEmbed` is rendering a UI or not and render something else if it is not rendering anything. It takes an optional `loginOptional` boolean argument to specify whether the `` you want to render has auth enabled or not. If not specified, it is assumed to be `false` ( sign in is required ) - -```tsx -import { ConnectEmbed } from "@thirdweb-dev/react"; - -const loginOptional = false; - -function Example() { - const showConnectEmbed = useShowConnectEmbed(loginOptional); - - return ( -
- {showConnectEmbed ? ( - - ) : ( -
...
- )} -
- ); -} -``` - -
- -
- -## Props - -
- -Class name to be added to the root element of `ConnectEmbed` component for adding custom styles. - -```tsx - -``` - -
- -
- -theme to apply on the `ConnectEmbed` component. - -If a theme is set on the [`ThirdWebProvider`](/react/v4/ThirdwebProvider) component, it will be used as the default theme for all thirdweb components, else the default will be `"dark"` - -theme can be set to either `"dark"` or `"light"` or a custom theme object. - -```tsx -function Example() { - return ; -} -``` - - - -You can also import [`lightTheme`](/references/react/v4/lightTheme) or [`darkTheme`](/references/react/v4/darkTheme) functions from `@thirdweb-dev/react` to use the default themes as base and overrides parts of it. - -```tsx -import { lightTheme } from "@thirdweb-dev/react"; - -const customTheme = lightTheme({ - colors: { - modalBg: "red", - }, -}); - -function Example() { - return ; -} -``` - -
- -
- -CSS styles to be applied to the root element of ConnectEmbed - -```tsx -function Example() { - return ; -} -``` - -
- -
- -If provided, Embed will show a Terms of Service message at the bottom with below link - -```tsx -function Example() { - return ; -} -``` - - - -
- -
- -If provided, Embed will show a Terms of Service message at the bottom with below link - -```tsx -function Example() { - return ( - - ); -} -``` - - - -
- -
- -Enforce that users must [sign in with their wallet](/connect/auth/how-it-works/siwe) using [auth](/connect/auth) after connecting their wallet. -This requires the [`authConfig`](/react/v4/ThirdwebProvider#authConfig) prop in [`ThirdwebProvider`](/react/v4/ThirdwebProvider) component - - - -The `auth` prop accepts an object with the following properties: - -- `loginOptional` - specify whether signing in is optional or not. By default it is `false` ( sign in is required ) if `authConfig` is set on `ThirdWebProvider` - -- `onLogin` - Callback to be called after user signs in with their wallet - -- `onLogout` - Callback to be called after user signs out - -```tsx -function Example() { - return ( - - ); -} -``` - -
- -
- -Callback to be called on successful connection of wallet - -```tsx - { - console.log("wallet connected"); - }} -/> -``` - -Note that this does not include the sign in, If you want to call a callback after user connects AND signs in with their wallet, use `auth.onLogin` prop instead - -```tsx - { - console.log("wallet connected"); - }} - auth={{ - onLogin() { - console.log("wallet connected and signed in"); - }, - }} -/> -``` - -
- -## Templates - - diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/images/balance-btc-dark.png b/apps/portal/src/app/react/v4/components/ConnectWallet/images/balance-btc-dark.png deleted file mode 100644 index c74730de31f..00000000000 Binary files a/apps/portal/src/app/react/v4/components/ConnectWallet/images/balance-btc-dark.png and /dev/null differ diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/images/connect-wallet-dark-compact.png b/apps/portal/src/app/react/v4/components/ConnectWallet/images/connect-wallet-dark-compact.png deleted file mode 100644 index 2b68b0539f9..00000000000 Binary files a/apps/portal/src/app/react/v4/components/ConnectWallet/images/connect-wallet-dark-compact.png and /dev/null differ diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/images/connect-wallet-dark-wide.png b/apps/portal/src/app/react/v4/components/ConnectWallet/images/connect-wallet-dark-wide.png deleted file mode 100644 index 66407ae772f..00000000000 Binary files a/apps/portal/src/app/react/v4/components/ConnectWallet/images/connect-wallet-dark-wide.png and /dev/null differ diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/images/connect-wallet-hero.webp b/apps/portal/src/app/react/v4/components/ConnectWallet/images/connect-wallet-hero.webp deleted file mode 100644 index 96f06ae5b76..00000000000 Binary files a/apps/portal/src/app/react/v4/components/ConnectWallet/images/connect-wallet-hero.webp and /dev/null differ diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/images/custom-token-list-dark.png b/apps/portal/src/app/react/v4/components/ConnectWallet/images/custom-token-list-dark.png deleted file mode 100644 index 832f3ccd743..00000000000 Binary files a/apps/portal/src/app/react/v4/components/ConnectWallet/images/custom-token-list-dark.png and /dev/null differ diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/images/details-open-faucet-dark.png b/apps/portal/src/app/react/v4/components/ConnectWallet/images/details-open-faucet-dark.png deleted file mode 100644 index 18e1bc28e87..00000000000 Binary files a/apps/portal/src/app/react/v4/components/ConnectWallet/images/details-open-faucet-dark.png and /dev/null differ diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/images/details-open-switch-to-personal.png b/apps/portal/src/app/react/v4/components/ConnectWallet/images/details-open-switch-to-personal.png deleted file mode 100644 index a744a478ee6..00000000000 Binary files a/apps/portal/src/app/react/v4/components/ConnectWallet/images/details-open-switch-to-personal.png and /dev/null differ diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/images/select-token-dark.png b/apps/portal/src/app/react/v4/components/ConnectWallet/images/select-token-dark.png deleted file mode 100644 index 65625b9ca75..00000000000 Binary files a/apps/portal/src/app/react/v4/components/ConnectWallet/images/select-token-dark.png and /dev/null differ diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/page.mdx b/apps/portal/src/app/react/v4/components/ConnectWallet/page.mdx deleted file mode 100644 index 1ffc6424606..00000000000 --- a/apps/portal/src/app/react/v4/components/ConnectWallet/page.mdx +++ /dev/null @@ -1,244 +0,0 @@ -import { - Details, - Breadcrumb, - Callout, - Steps, - Step, - DocImage, - createMetadata, -} from "@doc"; -// images -import ConnectWalletHeroImage from "./images/connect-wallet-hero.webp"; -// mdx -import ModalSizeMDX from "./props/modalSize.mdx"; -import ThemeMDX from "./props/theme.mdx"; -import BtnTitleMDX from "./props/btnTitle.mdx"; -import WelcomeScreenMDX from "./props/welcomeScreen.mdx"; -import ModalTitleMdx from "./props/modalTitle.mdx"; -import DetailsBtnMDX from "./props/detailsBtn.mdx"; -import ClassNameMDX from "./props/className.mdx"; -import HideTestnetFaucetMDX from "./props/hideTestnetFaucet.mdx"; -import TOSMDX from "./props/tos.mdx"; -import SupportedTokensMDX from "./props/supportedTokens.mdx"; -import DisplayBalanceTokenMDX from "./props/displayBalanceToken.mdx"; -import AuthMDX from "./props/auth.mdx"; -import SwitchToActiveChainMDX from "./props/switchToActiveChain.mdx"; -import HideSwitchToPersonalWalletMDX from "./props/hideSwitchToPersonalWallet.mdx"; - -export const metadata = createMetadata({ - image: { - title: "ConnectWallet component", - icon: "react", - }, - title: "ConnectWallet | thirdweb React SDK", - description: "API Reference for the ConnectWallet component", -}); - - - -# ConnectWallet - -ConnectWallet component renders a button which when clicked opens a modal to allow users to connect to various wallets. It is extremely customizable and very easy to use. - - - -See the ConnectWallet in action on [ConnectWallet Playground!](https://playground.thirdweb.com/connect/sign-in/button) - - - - - -## Usage - - - - -To Configure which wallets to show in the ConnectWallet Modal, you need to configure the `supportedWallets` prop in the [`ThirdwebProvider`](/react/v4/ThirdwebProvider) component which wraps your entire application. - -To display a `Recommended` tag below a wallet provider, pass in the `recommended: true` property in the wallet configurator function. - -```jsx -import { - ThirdwebProvider, - metamaskWallet, - coinbaseWallet, - walletConnect, -} from "@thirdweb-dev/react"; - -function AppWithProviders() { - return ( - - - - ); -} -``` - -If `supportedWallets` is not configured in the `ThirdwebProvider`, the ConnectWallet Modal show the default wallets: - -
- -- [MetaMask](/references/react/v4/metamaskWallet) -- [Coinbase Wallet](/references/react/v4/coinbaseWallet) -- [WalletConnect](/references/react/v4/walletConnect) -- [Rainbow](/references/react/v4/rainbowWallet) -- [Trust Wallet](/references/react/v4/trustWallet) -- [Zerion Wallet](/references/react/v4/zerionWallet) -- [Phantom](/references/react/v4/phantomWallet) - -
- -
- - - -Render the `ConnectWallet` component anywhere in your application. Refer to [Props](#props) to see the configuration options available - -```jsx -import { ConnectWallet } from "@thirdweb-dev/react"; - -function Example() { - return ( -
- -
- ); -} -``` - -
- -
- -## Props - -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -## Localization - -You can set the [`locale`](/react/v4/ThirdwebProvider#locale) prop of `ThirdwebProvider` component to change the language used in the ConnectWallet Modal. - -## Override UI and Metadata of wallets - -Each [Wallet Configurator](/react/v4/wallets) function returns an object. This object contains the metadata and UI of the Wallet. You can choose to override them according to your needs. - -```jsx -import { metamaskWallet } from "@thirdweb-dev/react"; - -const metamaskConfig = metamaskWallet({ ... }); - -// override metadata -metamaskConfig.meta.name = "..."; // change the name -metamaskConfig.meta.iconURL = "..."; // change the icon -metamaskConfig.meta.urls = { - // change urls to download the wallet on various platforms - android: "https://...", - ios: "https://...", - chrome: "https://...", -}; - -// override connection UI by passing a react component -metamaskConfig.connectUI = () => { - return
...
; -}; - -// custom selection UI by passing a react component -metamaskConfig.selectUI = () => { - return
...
; -}; - -// custom logic to check if the wallet extension is installed or not -metamaskConfig.isInstalled = () => { - if (window.ethereum) { - return true; - } -}; - -``` - -You can then pass the modified config to the `supportedWallets` prop in the `ThirdwebProvider` component. - -```jsx - -``` - -## Embed Modal UI in page - -If you want to embed the ConnectWallet Modal UI directly in page instead of opening a Modal, you can use the [`ConnectEmbed`](/react/v4/components/ConnectEmbed) component instead. diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/props/auth.mdx b/apps/portal/src/app/react/v4/components/ConnectWallet/props/auth.mdx deleted file mode 100644 index 737d433bd5e..00000000000 --- a/apps/portal/src/app/react/v4/components/ConnectWallet/props/auth.mdx +++ /dev/null @@ -1,17 +0,0 @@ -Enforce that users must sign in with their wallet using [auth](/connect/auth) after connecting their wallet. - -Requires the [`authConfig`](/react/v4/ThirdwebProvider#authConfig) prop to be set on the [`ThirdWebProvider`](/react/v4/ThirdwebProvider) component. - -```jsx - -``` diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/props/btnTitle.mdx b/apps/portal/src/app/react/v4/components/ConnectWallet/props/btnTitle.mdx deleted file mode 100644 index 1925e60a792..00000000000 --- a/apps/portal/src/app/react/v4/components/ConnectWallet/props/btnTitle.mdx +++ /dev/null @@ -1,7 +0,0 @@ -Change the text on button when the ConnectWallet button is in the disconnected state. - -The default is `"Connect Wallet"` - -```tsx - -``` diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/props/className.mdx b/apps/portal/src/app/react/v4/components/ConnectWallet/props/className.mdx deleted file mode 100644 index 95b9a33dd84..00000000000 --- a/apps/portal/src/app/react/v4/components/ConnectWallet/props/className.mdx +++ /dev/null @@ -1,8 +0,0 @@ -This class is applied to the ConnectWallet button ( not the modal ). Using this className, you can further customize the button's styles using custom CSS. - -For some CSS properties, you may need to use the [`!important`](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity#the_!important_exception) -to override the default styles - -```jsx - -``` diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/props/detailsBtn.mdx b/apps/portal/src/app/react/v4/components/ConnectWallet/props/detailsBtn.mdx deleted file mode 100644 index ecad7fd940d..00000000000 --- a/apps/portal/src/app/react/v4/components/ConnectWallet/props/detailsBtn.mdx +++ /dev/null @@ -1,9 +0,0 @@ -Render a custom button to display connected wallet details instead of the default one - -```jsx - { - return ; - }} -/> -``` diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/props/displayBalanceToken.mdx b/apps/portal/src/app/react/v4/components/ConnectWallet/props/displayBalanceToken.mdx deleted file mode 100644 index 43e6d7a44e5..00000000000 --- a/apps/portal/src/app/react/v4/components/ConnectWallet/props/displayBalanceToken.mdx +++ /dev/null @@ -1,28 +0,0 @@ -import balanceTokenImage from "../images/balance-btc-dark.png"; -import { DocImage } from "@doc"; - -Display the balance of a token instead of the native token in ConnectWallet details button. - -```tsx -import { Base } from "@thirdweb-dev/chains"; - -// show Wrapped BTC balance when connected to Ethereum mainnet -// Show Dai Stablecoin balance when connected to the Base mainnet - -const displayBalanceToken = { - // 1 is chain id of Ethereum mainnet - 1: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599", // contract address of Wrapped BTC token - - // you can also import the chain object from @thirdweb-dev/chains to get the chain id - [Base.chainId]: "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb", // contract address of Dai Stablecoin token -}; - -// pass an object with chain id as key and token address as value -function Example() { - return ; -} -``` - -
- -
diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/props/hideSwitchToPersonalWallet.mdx b/apps/portal/src/app/react/v4/components/ConnectWallet/props/hideSwitchToPersonalWallet.mdx deleted file mode 100644 index cb159d10996..00000000000 --- a/apps/portal/src/app/react/v4/components/ConnectWallet/props/hideSwitchToPersonalWallet.mdx +++ /dev/null @@ -1,12 +0,0 @@ -import { DocImage } from "@doc"; -import SwitchToPersonalImage from "../images/details-open-switch-to-personal.png"; - -Hide the "Switch to Personal wallet" option in the wallet details modal which is shown when wallet is connected to either Smart Account or Safe. - -By default it is `false`. If you want to hide it, set it to `true`. - -```tsx - -``` - - diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/props/hideTestnetFaucet.mdx b/apps/portal/src/app/react/v4/components/ConnectWallet/props/hideTestnetFaucet.mdx deleted file mode 100644 index e471a21000b..00000000000 --- a/apps/portal/src/app/react/v4/components/ConnectWallet/props/hideTestnetFaucet.mdx +++ /dev/null @@ -1,12 +0,0 @@ -import { DocImage } from "@doc"; -import OpenFaucetImage from "../images/details-open-faucet-dark.png"; - -Hide the "Request Testnet funds" link in ConnectWallet details modal when user is connected to a testnet. - -Default is `true`, If you want to show the link, set it to `false`. - -```jsx - -``` - - diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/props/modalSize.mdx b/apps/portal/src/app/react/v4/components/ConnectWallet/props/modalSize.mdx deleted file mode 100644 index 12915b7c55a..00000000000 --- a/apps/portal/src/app/react/v4/components/ConnectWallet/props/modalSize.mdx +++ /dev/null @@ -1,39 +0,0 @@ -import { Tabs, TabsList, TabsContent, TabsTrigger, DocImage } from "@doc"; -// images -import ConnectWalletDarkCompactImage from "../images/connect-wallet-dark-compact.png"; -import ConnectWalletDarkWideImage from "../images/connect-wallet-dark-wide.png"; - -ConnectWallet component's Modal has two size variants - "wide" and "compact" - -The default is `"wide"` for desktop and `"compact"` for mobile devices - -Note that it is always `"compact"` on mobile even if you set it as `"wide"` because of size constraints on mobile devices. - - - - wide - compact - - - - -```tsx - -``` - -The wide modal shows a Welcome Screen on the right side of the Modal which is fully customize via the `welcomeScreen` prop. - - - - - - - -```tsx - -``` - - - - - diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/props/modalTitle.mdx b/apps/portal/src/app/react/v4/components/ConnectWallet/props/modalTitle.mdx deleted file mode 100644 index 9efc4925234..00000000000 --- a/apps/portal/src/app/react/v4/components/ConnectWallet/props/modalTitle.mdx +++ /dev/null @@ -1,7 +0,0 @@ -Change the title of ConnectWallet Modal - -The default is `"Connect"` - -```jsx - -``` diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/props/supportedTokens.mdx b/apps/portal/src/app/react/v4/components/ConnectWallet/props/supportedTokens.mdx deleted file mode 100644 index 58e93e35668..00000000000 --- a/apps/portal/src/app/react/v4/components/ConnectWallet/props/supportedTokens.mdx +++ /dev/null @@ -1,35 +0,0 @@ -import { DocImage } from "@doc"; -import SelectTokenImage from "../images/select-token-dark.png"; -import CustomTokenList from "../images/custom-token-list-dark.png"; - -Customize the tokens shown in the "Send Funds" screen for various networks. - -By default, The "Send Funds" screen shows a few popular tokens for default chains and the native token. For other chains it only shows the native token. - - - -`supportedTokens` prop allows you to customize this list as shown below. - -```tsx -import { Base } from "@thirdweb-dev/chains"; - -const supportedTokens = { - // use chain id of the network as key and pass an array of tokens to show - // you can directly pass the number or import the chain object from @thirdweb-dev/chains to get the chain id - [Base.chainId]: [ - { - address: "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb", // token contract address - name: "Dai Stablecoin", - symbol: "DAI", - icon: "https://assets.coingecko.com/coins/images/9956/small/Badge_Dai.png?1687143508", - }, - ], -}; - -// Show "Dai Stablecoin" when connected to the "Base" mainnet -function Example() { - return ; -} -``` - - diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/props/switchToActiveChain.mdx b/apps/portal/src/app/react/v4/components/ConnectWallet/props/switchToActiveChain.mdx deleted file mode 100644 index 90b01148308..00000000000 --- a/apps/portal/src/app/react/v4/components/ConnectWallet/props/switchToActiveChain.mdx +++ /dev/null @@ -1,9 +0,0 @@ -Specify whether to show a "Switch Network" button after the wallet is connected and it is not connected to the [activeChain](/react/v4/ThirdwebProvider#activeChain) set in [ThirdwebProvider](react/react.thirdwebprovider) to encourage the user to switch to the correct network in their wallet. - -[activeChain](/react/v4/ThirdwebProvider#activeChain) must be explicitly set in [ThirdwebProvider](react/react.thirdwebprovider) for this to work. - -default is `false`. - -```jsx - -``` diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/props/theme.mdx b/apps/portal/src/app/react/v4/components/ConnectWallet/props/theme.mdx deleted file mode 100644 index b7c7e2cb5bd..00000000000 --- a/apps/portal/src/app/react/v4/components/ConnectWallet/props/theme.mdx +++ /dev/null @@ -1,26 +0,0 @@ -Set the theme to either `"light"` or `"dark"` or pass a custom theme object to completely customize the look and feel of the ConnectWallet Modal. - -The default is `"dark"` - -```jsx - -``` - -#### Create a custom theme - -Instead of passing an object along with all the required colors, you can use the `darkTheme` or `lightTheme` functions to use light / dark theme as base and override just the parts you want to change. - -```tsx -import { darkTheme, lightTheme } from "@thirdweb-dev/react"; - -const customDarkTheme = darkTheme({ - fontFamily: "Inter, sans-serif", - colors: { - modalBg: "#000000", - accentText: "red", - // ... etc - }, -}); - -; -``` diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/props/tos.mdx b/apps/portal/src/app/react/v4/components/ConnectWallet/props/tos.mdx deleted file mode 100644 index 719ed50c141..00000000000 --- a/apps/portal/src/app/react/v4/components/ConnectWallet/props/tos.mdx +++ /dev/null @@ -1,10 +0,0 @@ -You can show a "Terms of Service" and/or "Privacy Policy" link in the ConnectWallet Modal by passing the `termsOfServiceUrl` and/or `privacyPolicyUrl` props - -```tsx - -``` - - diff --git a/apps/portal/src/app/react/v4/components/ConnectWallet/props/welcomeScreen.mdx b/apps/portal/src/app/react/v4/components/ConnectWallet/props/welcomeScreen.mdx deleted file mode 100644 index 1bb48a12ce8..00000000000 --- a/apps/portal/src/app/react/v4/components/ConnectWallet/props/welcomeScreen.mdx +++ /dev/null @@ -1,31 +0,0 @@ -This prop is only applicable when `modalSize` prop is set to `"wide"`. - -On `"wide"` Modal size, a welcome screen is shown on the right side of the modal. - -This screen can be customized in two ways - -1. ### Customize Metadata and Image - - ```tsx - - ``` - -2. ### Render Custom Component - - ```tsx - { - return ; - }} - /> - ``` diff --git a/apps/portal/src/app/react/v4/components/MediaRenderer/page.mdx b/apps/portal/src/app/react/v4/components/MediaRenderer/page.mdx deleted file mode 100644 index 3ba4712b690..00000000000 --- a/apps/portal/src/app/react/v4/components/MediaRenderer/page.mdx +++ /dev/null @@ -1,212 +0,0 @@ -import { createMetadata, Callout } from "@doc"; - -export const metadata = createMetadata({ - image: { - title: "MediaRenderer", - icon: "react", - }, - title: "MediaRenderer | thirdweb React SDK", - description: "API Reference for the MediaRenderer component", -}); - -# MediaRenderer - -Component that renders any asset stored on IPFS (or anywhere else), given the IPFS URI / URL. - -Under the hood, the asset is fetched from IPFS through the thirdweb IPFS gateway (or just -a regular fetch if the `src` is not an IPFS URI). -The [mime type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the -asset is determined and the appropriate component is rendered on the UI. - -For example, if the URI points to an image, the `img` tag will be used. If it is a video, the `video` tag will be used, etc. -The component currently supports: - -- Images -- Videos -- Audio files -- 3D Models -- SVGs (for [onchain NFTs](https://blog.thirdweb.com/guides/how-to-create-onchain-nfts-with-thirdweb/)) -- `iframes` and `HTML` -- If none of these are appropriate, the fallback is a link to the asset - -```jsx -import { MediaRenderer } from "@thirdweb-dev/react"; -``` - -## Usage - -Provide the IPFS URI (or any URL that points to media) to the `src` prop to render the asset. - -```jsx -import { MediaRenderer } from "@thirdweb-dev/react"; - -function Home() { - return ( - // Any URL that points to media (IPFS URI, HTTP URL, etc.) - - ); -} -``` - - - -You can use `npx thirdweb upload ` to upload any file to IPFS and get the IPFS URI. - - - -## Configuration - -### src (required) - -The [src](https://www.w3schools.com/tags/att_img_src.asp) attribute specifies the URL of the media. - -This can be an IPFS URI, or any URL that points to media (e.g. HTTP URL, etc.). - -```jsx -import { MediaRenderer } from "@thirdweb-dev/react"; - -function Home() { - return ( - - ); -} -``` - -### alt (recommended) - -The [alt](https://www.w3schools.com/tags/att_img_alt.asp) attributes provides alternative -information for the media, if a user for some reason cannot view it -(due to slow connection, an error in the `src` attribute, or if the user is visually impaired). - -The default value is `""`. - -```jsx -import { MediaRenderer } from "@thirdweb-dev/react"; - -function Home() { - return ( - // Any URL that points to media (IPFS URI, HTTP URL, etc.) - - ); -} -``` - -### poster (optional) - -The [poster](https://www.w3schools.com/tags/att_video_poster.asp) is the image -that is shown before the video is played. - -The default value is the first frame of the video. - -If the `src` is not a video, this prop is ignored. - -```jsx -import { MediaRenderer } from "@thirdweb-dev/react"; - -function Home() { - return ( - // Any URL that points to media (IPFS URI, HTTP URL, etc.) - - ); -} -``` - -### controls (optional) - -Show the media controls (play, pause, etc.) for the media, where applicable. - -The default value is `false`. - -```jsx -import { ThirdwebNftMedia } from "@thirdweb-dev/react"; - -function Home() { - // ... Get the NFT metadata - - return ; -} -``` - -### height (optional) - -The height of the rendered media. - -The default value is `auto`. - -```jsx -import { ThirdwebNftMedia } from "@thirdweb-dev/react"; - -function Home() { - // ... Get the NFT metadata - - return ; -} -``` - -### width (optional) - -The width of the rendered media. - -The default value is `auto`. - -```jsx -import { ThirdwebNftMedia } from "@thirdweb-dev/react"; - -function Home() { - // ... Get the NFT metadata - - return ; -} -``` - -### requireInteraction (optional) - -Require user interaction to play the media (i.e. disable autoplay). - -The default value is `false`. - -```jsx -import { ThirdwebNftMedia } from "@thirdweb-dev/react"; - -function Home() { - // ... Get the NFT metadata - - return ; -} -``` - -### className (optional) - -Apply custom CSS styles to the button using a class name. - -```jsx -import { ThirdwebNftMedia } from "@thirdweb-dev/react"; - -function Home() { - // ... Get the NFT metadata - - return ; -} -``` - -### style (optional) - -Apply custom CSS styles to the button using an inline style. - -```jsx -import { ThirdwebNftMedia } from "@thirdweb-dev/react"; - -function Home() { - // ... Get the NFT metadata - - return ( - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/components/ThirdwebNftMedia/page.mdx b/apps/portal/src/app/react/v4/components/ThirdwebNftMedia/page.mdx deleted file mode 100644 index f9cb2f02051..00000000000 --- a/apps/portal/src/app/react/v4/components/ThirdwebNftMedia/page.mdx +++ /dev/null @@ -1,162 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - image: { - title: "ThirdwebNFTMedia", - icon: "react", - }, - title: "ThirdwebNFTMedia | thirdweb React SDK", - description: "API Reference for the ThirdwebNFTMedia component", -}); - -# ThirdwebNftMedia - -Component that renders an NFT from given a `metadata` object. - -Under the hood, if the `image` property of the metadata is an URL/IPFS URI, it is fetched from the source. -The [mime type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the -asset is determined and the appropriate component is rendered on the UI. - -For example, if your NFT is an image, the `img` tag will be used. If it is a video, the `video` tag will be used, etc. - -The component currently supports: - -- Images -- Videos -- Audio files -- 3D Models -- SVGs (for [onchain NFTs](https://blog.thirdweb.com/guides/how-to-create-onchain-nfts-with-thirdweb/)) -- `iframes` and `HTML` -- If none of these are appropriate, the fallback is a link to the asset - -```jsx -import { ThirdwebNftMedia } from "@thirdweb-dev/react"; -``` - -## Usage - -Provide the `metadata` object to the component to render the NFT. - -The NFT’s `image` is used as the media, and the `name` is used as the alt text for the media. - -```jsx -import { ThirdwebNftMedia, useContract, useNFT } from "@thirdweb-dev/react"; - -function Home() { - // Connect to your NFT contract - const { contract } = useContract("{{contract_address}}"); - // Load the NFT metadata from the contract using a hook - const { data: nft, isLoading, error } = useNFT(contract, "0"); - - // Render the NFT onto the UI - if (isLoading) return
Loading...
; - if (error || !nft) return
NFT not found
; - - return ; -} -``` - -## Props - -
-Show the media controls (play, pause, etc.) for the media, where applicable. - -The default value is `false`. - -```jsx -import { ThirdwebNftMedia } from "@thirdweb-dev/react"; - -function Home() { - return ; -} -``` - -
- -
- -The height of the rendered media. - -The default value is `auto`. - -```jsx -import { ThirdwebNftMedia } from "@thirdweb-dev/react"; - -function Home() { - // ... Get the NFT metadata - - return ; -} -``` - -
- -
- -The width of the rendered media. - -The default value is `auto`. - -```jsx -import { ThirdwebNftMedia } from "@thirdweb-dev/react"; - -function Home() { - // ... Get the NFT metadata - - return ; -} -``` - -
- -
- -Require user interaction to play the media (i.e. disable autoplay). - -The default value is `false`. - -```jsx -import { ThirdwebNftMedia } from "@thirdweb-dev/react"; - -function Home() { - // ... Get the NFT metadata - - return ; -} -``` - -
- -
- -Apply custom CSS styles to the button using a class name. - -```jsx -import { ThirdwebNftMedia } from "@thirdweb-dev/react"; - -function Home() { - // ... Get the NFT metadata - - return ; -} -``` - -
- -
- -Apply custom CSS styles to the button using an inline style. - -```jsx -import { ThirdwebNftMedia } from "@thirdweb-dev/react"; - -function Home() { - // ... Get the NFT metadata - - return ( - - ); -} -``` - -
diff --git a/apps/portal/src/app/react/v4/components/Web3Button/page.mdx b/apps/portal/src/app/react/v4/components/Web3Button/page.mdx deleted file mode 100644 index 14909fd5765..00000000000 --- a/apps/portal/src/app/react/v4/components/Web3Button/page.mdx +++ /dev/null @@ -1,133 +0,0 @@ -import { Breadcrumb, Callout, Details, createMetadata } from "@doc"; -// props -import ActionMDX from "./props/action.mdx"; -import ContractAddressMDX from "./props/contractAddress.mdx"; -import ConnectWalletMDX from "./props/connectWallet.mdx"; -import ThemeMDX from "./props/theme.mdx"; -import ContractAbi from "./props/contractAbi.mdx"; -import OnSuccessMDX from "./props/onSuccess.mdx"; -import OnErrorMDX from "./props/onError.mdx"; -import OnSubmitMDX from "./props/onSubmit.mdx"; -import IsDisabledMDX from "./props/isDisabled.mdx"; -import ClassNameMDX from "./props/className.mdx"; -import StyleMDX from "./props/style.mdx"; - -export const metadata = createMetadata({ - icon: { - title: "Web3Button", - icon: "react", - }, - title: "Web3Button | thirdweb React SDK", - description: "API Reference for the Web3Button component", -}); - - - -# Web3Button - -Button that executes a function on a smart contract from the connected wallet when clicked. - -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 Button](/react/v4/components/ConnectWallet) instead). -2. The connected wallet is on the **correct network** which is specified in the `activeChain` prop of [ThirdwebProvider](/react/v4/ThirdwebProvider#activeChain) component. if wallet is connected to any other network, it renders a switch network button instead. - -```jsx -import { Web3Button } from "@thirdweb-dev/react"; -``` - -## Usage - -Render the `Web3Button` component with two required props to display the button: - -1. `contractAddress`: The address of the smart contract to interact with. -2. `action`: The logic to execute when the button is clicked. - -```jsx -import { Web3Button } from "@thirdweb-dev/react"; - -function App() { - return ( - { - await someAction(contract); - }} - > - Execute Action - - ); -} -``` - - - -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 directly returning a `Promise`. - - - -## Props - -### Functionality - -
- -
- -
- -
- -
- -
- -
- -
- -### Callbacks - -
- -
- -
- -
- -
- -
- -### Appearance - -
- -
- -
- -
- -
- -
- -
- -
diff --git a/apps/portal/src/app/react/v4/components/Web3Button/props/ContractAbiMDX.mdx b/apps/portal/src/app/react/v4/components/Web3Button/props/ContractAbiMDX.mdx deleted file mode 100644 index 87d74874f10..00000000000 --- a/apps/portal/src/app/react/v4/components/Web3Button/props/ContractAbiMDX.mdx +++ /dev/null @@ -1,19 +0,0 @@ -The [Application Binary Interface](https://docs.soliditylang.org/en/v0.8.17/abi-spec.html) (ABI) of the contract. - -This is only required if you have _not_ imported your contract to the [dashboard](https://thirdweb.com/team). - -```jsx -import { Web3Button } from "@thirdweb-dev/react"; - -function App() { - return ( - console.log(contract)} // Logic to execute when clicked - > - Execute Action - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/components/Web3Button/props/action.mdx b/apps/portal/src/app/react/v4/components/Web3Button/props/action.mdx deleted file mode 100644 index feeb8e37ca3..00000000000 --- a/apps/portal/src/app/react/v4/components/Web3Button/props/action.mdx +++ /dev/null @@ -1,24 +0,0 @@ -The logic to execute when the button is clicked. - -The contract instance is available as the first argument of the function -for you to interact with. - -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 - -```jsx -import { Web3Button } from "@thirdweb-dev/react"; - -// For example, claim an NFT from this contract when the button is clicked -function App() { - return ( - { - await contract.erc721.claim(1); - }} - > - Claim NFT - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/components/Web3Button/props/className.mdx b/apps/portal/src/app/react/v4/components/Web3Button/props/className.mdx deleted file mode 100644 index cec79a83aa8..00000000000 --- a/apps/portal/src/app/react/v4/components/Web3Button/props/className.mdx +++ /dev/null @@ -1,27 +0,0 @@ -import { Callout } from "@doc"; - -Apply custom CSS classes to the button. - - - -For some specific CSS properties you may need to apply the -[`!important`](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity#the_!important_exception) -CSS rule to override the default styles of the button. - - - -```jsx -import { Web3Button } from "@thirdweb-dev/react"; - -function App() { - return ( - console.log(contract)} // Logic to execute when clicked - className="my-custom-class" - > - Execute Action - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/components/Web3Button/props/connectWallet.mdx b/apps/portal/src/app/react/v4/components/Web3Button/props/connectWallet.mdx deleted file mode 100644 index 1ecf712badc..00000000000 --- a/apps/portal/src/app/react/v4/components/Web3Button/props/connectWallet.mdx +++ /dev/null @@ -1,19 +0,0 @@ -Web3Button renders a [ConnectWallet](/react/v4/components/ConnectWallet) if no wallet is connected. - -You can pass props for that `ConnectWallet` component by passing them in the `connectWallet` prop on `Web3Button` - -```tsx -import { Web3Button } from "@thirdweb-dev/react"; - - console.log(contract)} // Logic to execute when clicked -> - Execute Action -; -``` diff --git a/apps/portal/src/app/react/v4/components/Web3Button/props/contractAbi.mdx b/apps/portal/src/app/react/v4/components/Web3Button/props/contractAbi.mdx deleted file mode 100644 index 87d74874f10..00000000000 --- a/apps/portal/src/app/react/v4/components/Web3Button/props/contractAbi.mdx +++ /dev/null @@ -1,19 +0,0 @@ -The [Application Binary Interface](https://docs.soliditylang.org/en/v0.8.17/abi-spec.html) (ABI) of the contract. - -This is only required if you have _not_ imported your contract to the [dashboard](https://thirdweb.com/team). - -```jsx -import { Web3Button } from "@thirdweb-dev/react"; - -function App() { - return ( - console.log(contract)} // Logic to execute when clicked - > - Execute Action - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/components/Web3Button/props/contractAddress.mdx b/apps/portal/src/app/react/v4/components/Web3Button/props/contractAddress.mdx deleted file mode 100644 index 4707cc86547..00000000000 --- a/apps/portal/src/app/react/v4/components/Web3Button/props/contractAddress.mdx +++ /dev/null @@ -1,21 +0,0 @@ -The address of the smart contract to interact with. - -If you have _not_ imported your contract to [thirdweb's dashboard](https://thirdweb.com/team), you must additionally specify the [`contractAbi`](#contractabi-optional) prop. - -```jsx -import { Web3Button } from "@thirdweb-dev/react"; - -function App() { - return ( - { - // Logic to execute when clicked - await someAction(contract); - }} - > - Execute Action - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/components/Web3Button/props/isDisabled.mdx b/apps/portal/src/app/react/v4/components/Web3Button/props/isDisabled.mdx deleted file mode 100644 index 696e332f9e5..00000000000 --- a/apps/portal/src/app/react/v4/components/Web3Button/props/isDisabled.mdx +++ /dev/null @@ -1,19 +0,0 @@ -Option to disable the button. - -By default, the button is disabled and shows a spinner icon while the transaction is executing. - -```jsx -import { Web3Button } from "@thirdweb-dev/react"; - -function App() { - return ( - console.log(contract)} // Logic to execute when clicked - isDisabled - > - Execute Action - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/components/Web3Button/props/onError.mdx b/apps/portal/src/app/react/v4/components/Web3Button/props/onError.mdx deleted file mode 100644 index 777b0567e3e..00000000000 --- a/apps/portal/src/app/react/v4/components/Web3Button/props/onError.mdx +++ /dev/null @@ -1,17 +0,0 @@ -Callback function to be run when the contract method call fails. - -```jsx -import { Web3Button } from "@thirdweb-dev/react"; - -function App() { - return ( - console.log(contract)} // Logic to execute when clicked - onError={(error) => alert("Something went wrong!")} - > - Execute Action - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/components/Web3Button/props/onSubmit.mdx b/apps/portal/src/app/react/v4/components/Web3Button/props/onSubmit.mdx deleted file mode 100644 index 3984fbcf4f8..00000000000 --- a/apps/portal/src/app/react/v4/components/Web3Button/props/onSubmit.mdx +++ /dev/null @@ -1,17 +0,0 @@ -Callback function to be run after the user has confirmed the transaction. - -```jsx -import { Web3Button } from "@thirdweb-dev/react"; - -function App() { - return ( - console.log(contract)} // Logic to execute when clicked - onSubmit={() => console.log("Transaction submitted")} - > - Execute Action - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/components/Web3Button/props/onSuccess.mdx b/apps/portal/src/app/react/v4/components/Web3Button/props/onSuccess.mdx deleted file mode 100644 index bbd083e0420..00000000000 --- a/apps/portal/src/app/react/v4/components/Web3Button/props/onSuccess.mdx +++ /dev/null @@ -1,17 +0,0 @@ -Callback function to be run when the contract method call is successful. - -```jsx -import { Web3Button } from "@thirdweb-dev/react"; - -function App() { - return ( - console.log(contract)} // Logic to execute when clicked - onSuccess={(result) => alert("Success!")} - > - Execute Action - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/components/Web3Button/props/style.mdx b/apps/portal/src/app/react/v4/components/Web3Button/props/style.mdx deleted file mode 100644 index be36c6e9996..00000000000 --- a/apps/portal/src/app/react/v4/components/Web3Button/props/style.mdx +++ /dev/null @@ -1,17 +0,0 @@ -Apply custom CSS styles to the button. - -```jsx -import { Web3Button } from "@thirdweb-dev/react"; - -function App() { - return ( - console.log(contract)} // Logic to execute when clicked - style={{ color: "red" }} - > - Execute Action - - ); -} -``` diff --git a/apps/portal/src/app/react/v4/components/Web3Button/props/theme.mdx b/apps/portal/src/app/react/v4/components/Web3Button/props/theme.mdx deleted file mode 100644 index a128bd7995e..00000000000 --- a/apps/portal/src/app/react/v4/components/Web3Button/props/theme.mdx +++ /dev/null @@ -1,37 +0,0 @@ -Change the theme of the button to `light` or `dark` mode, to match the theme of your app. - -The default value is `dark`. - -```tsx -import { Web3Button } from "@thirdweb-dev/react"; - - console.log(contract)} // Logic to execute when clicked -> - Execute Action -; -``` - -You can also create a custom theme by passing an object. To do this, you can use `darkTheme` -or `lightTheme` functions to use light / dark theme as base and override it - -```tsx -import { darkTheme, lightTheme } from "@thirdweb-dev/react"; - - console.log(contract)} // Logic to execute when clicked -> - Execute Action -; -``` diff --git a/apps/portal/src/app/react/v4/connecting-wallets/custom-ui/page.mdx b/apps/portal/src/app/react/v4/connecting-wallets/custom-ui/page.mdx deleted file mode 100644 index cec26cb3ffe..00000000000 --- a/apps/portal/src/app/react/v4/connecting-wallets/custom-ui/page.mdx +++ /dev/null @@ -1,128 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - image: { - title: "Create custom UI for connecting wallets", - icon: "react", - }, - title: "Create custom UI for connecting wallets", - description: "Create custom UI for connecting wallets", -}); - -# Custom UI for connecting wallet - -Connecting a wallet involves a few steps: - -1. Create a wallet instance -2. Call the `connect` method on the wallet instance -3. Set the connected wallet instance as "connected wallet" in thidweb's React SDK - -## Simple method - -If you just want to connect a wallet as mentioned above - there's a simple way to do it using the [useConnect](/references/react/v4/useConnect) hook which does all the above steps for you. - -```tsx -import { - useConnect, - // import the wallet you want to connect - metamaskWallet, -} from "@thirdweb-dev/react"; - -const walletConfig = metamaskWallet(); - -function Example() { - const connect = useConnect(); - - async function handleConnect() { - try { - const wallet = await connect( - walletConfig, // pass the wallet config object - connectOptions, // pass options required by the wallet (if any) - ); - - console.log("connected to", wallet); - } catch (e) { - console.error("failed to connect", e); - } - } - - return ; -} -``` - -## Advanced method - -But if you need to create wallet instance and call some methods on the wallet instance before connecting the wallet, -you can do these steps manually as shown below using the [useCreateWalletInstance](/references/react/v4/useCreateWalletInstance), [useSetConnectionStatus](/references/react/v4/useSetConnectionStatus) and [useSetConnectedWallet](/references/react/v4/useSetConnectedWallet) hooks. - -There are 3 steps to connect your wallet manually: - -- create an instance of your wallet using `useCreateWalletInstance` -- connect your wallet using the `connect` method of the wallet -- once the wallet is connected, set the wallet instance as connected using `useSetConnectedWallet` - -Make sure to update the `connectionStatus` using `useSetConnectionStatus` to `"connecting"` before connecting your wallet and `"disconnected"` if the connection fails. - -### Example - -We will use [`localWallet`](/references/react/v4/localWallet) as an example because it can not be connected using the `useConnect` hook because it requires additional steps after creating the wallet instance - like generating a random wallet or importing a wallet. We will generate a random wallet in this example. - -```tsx -import { - useCreateWalletInstance, - useSetConnectionStatus, - useSetConnectedWallet, - // import the wallet you want to connect - localWallet, -} from "@thirdweb-dev/react"; - -const walletConfig = localWallet(); - -function Example() { - const createWalletInstance = useCreateWalletInstance(); - const setConnectionStatus = useSetConnectionStatus(); - const setConnectedWallet = useSetConnectedWallet(); - - const handleConnect = async () => { - // 1. create wallet instance - const wallet = createWalletInstance(walletConfig); - - // perform additional steps that needs to be done before connecting the wallet - // here, we will generate a random wallet - await wallet.generate(); - - try { - setConnectionStatus("connecting"); - - // 2. Call `connect` method on wallet instance - await wallet.connect( - connectOptions, // pass options required by the wallet (if any) - ); - - // 3. Set wallet instance as the connected wallet - setConnectedWallet(wallet); - } catch (e) { - setConnectionStatus("disconnected"); - console.error("failed to connect", e); - // show error UI or close modal using props.close() - } - }; - - return ; -} -``` - -## Useful hooks to build custom UI - -Once the wallet is connected, you can use React SDK's [100+ hooks](/references/react/v4/hooks) to show connected wallet's Details, send transactions, interact with smart contracts, sign messages and utilize common standards such as tokens, NFTs, marketplaces; all with built-in caching, [RPC URLs](/glossary/rpc), [IPFS gateways](/glossary/ipfs), and more! - -Here is a list of few hooks that will be useful when creating custom UI - -| Hook | Description | -| --------------------------------------------------------------- | -------------------------------------- | -| [useAddress](/references/react/v4/useAddress) | get connected wallet's account address | -| [useDisconnect](/references/react/v4/useDisconnect) | disconnect the connected wallet | -| [useWallet](/references/react/v4/useWallet) | get connected wallet instance | -| [useWalletConfig](/references/react/v4/useWalletConfig) | get connected wallet's config | -| [useConnectionStatus](/references/react/v4/useConnectionStatus) | get status of wallet connection | -| [useSigner](/references/react/v4/useSigner) | get signer of connected wallet | diff --git a/apps/portal/src/app/react/v4/connecting-wallets/page.mdx b/apps/portal/src/app/react/v4/connecting-wallets/page.mdx deleted file mode 100644 index 771f9843303..00000000000 --- a/apps/portal/src/app/react/v4/connecting-wallets/page.mdx +++ /dev/null @@ -1,25 +0,0 @@ -import { ArticleIconCard, createMetadata } from "@doc"; -import { Wallet2Icon } from "lucide-react"; - -export const metadata = createMetadata({ - image: { - title: "Connecting Wallets with thirdweb React SDK", - icon: "react", - }, - title: "Connecting Wallets in thirdweb React SDK", - description: - "Connect wallets using ConnectWallet, ConnectEmbed or useConnect hook", -}); - -# Connecting Wallets - -There are two ways you connect user's wallet to your application using thirdweb's React SDK - -1. Using the [`ConnectWallet`](/react/v4/components/ConnectWallet) or [`ConnectEmbed`](/react/v4/components/ConnectEmbed) component for a quick, easy and customizable UI -2. Create a completely custom UI using [wallet connection hooks](/react/v4/connecting-wallets/custom-ui) - - diff --git a/apps/portal/src/app/react/v4/getting-started/page.mdx b/apps/portal/src/app/react/v4/getting-started/page.mdx deleted file mode 100644 index 6f974571a85..00000000000 --- a/apps/portal/src/app/react/v4/getting-started/page.mdx +++ /dev/null @@ -1,171 +0,0 @@ -import { Details, InstallTabs, Callout, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - image: { - title: "Getting started with thirdweb React SDK", - icon: "react", - }, - title: "Getting started with thirdweb React SDK", - description: - "Install thirdweb react SDK in your existing project or create a new project using the thirdweb CLI.", -}); - -# Getting Started - -You can get started by creating a new project or adding thirdweb to an existing project. - -## Existing Projects - -Install the thirdweb packages in your project - - - -And follow the framework specific instructions below. - -
- -1. Install the vite plugins - - - -2. In the `vite.config.js` file, add the following configuration: - - ```js - import react from "@vitejs/plugin-react"; - import { defineConfig } from "vite"; - import { nodePolyfills } from "vite-plugin-node-polyfills"; - - export default defineConfig({ - plugins: [react(), nodePolyfills()], - define: { - "process.env": {}, - }, - }); - ``` - -
- -
- -### Pages Router - -No additional configuration is required if you are using the [pages router](https://nextjs.org/docs/pages) - -### App Router - -If you are using the new [app router](https://nextjs.org/docs/app), and If you import a component such as `ThirdwebProvider` in a server component, Next.js will throw an error saying that the component is not marked with `"use client"` directive. - -You will need to create an alias for that component in a separate file with `"use client"` directive on top (before all the imports) and import that instead of using the component directly from `@thirdweb-dev/react` in server components. - -#### Example - -```tsx -"use client"; - -export { ThirdwebProvider } from "@thirdweb-dev/react"; - -// app/components/ThirdwebProvider.tsx -``` - -```tsx -import { ThirdwebProvider } from "./components/ThirdwebProvider"; - -export default function Home() { - return ... ; -} - -// app/page.tsx -``` - -
- -
- -1. Add below packages as dependencies in your package.json - - ```json - { - ... - "dependencies": { - ... - "url": "latest", - "http": "npm:http-browserify", - "https": "npm:https-browserify", - "zlib": "npm:browserify-zlib", - "http-browserify": "latest", - "https-browserify": "latest", - "browserify-zlib": "latest", - "assert": "^2.0.0", - "stream": "^0.0.2" - } - } - ``` - -2. Install them from NPM using the following command - - - -To ignore the sourcemap warnings, create a `.env` file with the following in your root directory: - -```text -GENERATE_SOURCEMAP=false -``` - -
- -## New Projects - -Create a new project using the thirdweb CLI - -```bash -npx thirdweb create app -``` - - - -You will require an API key to use thirdweb's infrastructure services with the SDK. If you haven't created a key yet you can do so for **free** from the [thirdweb dashboard](https://thirdweb.com/create-api-key). - - - -## Wrap your application in ThirdwebProvider - -Wrap your application in the [`ThirdwebProvider`](/react/v4/ThirdwebProvider) component to start using the SDK. - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react"; - -const App = () => { - return ( - - - - ); -}; -``` - -With the provider set up, all of the SDK’s hooks and components work out of the box! - -Now you can connect to the user’s wallet and start calling functions on your smart contracts like so: - -```jsx -import { Web3Button } from "@thirdweb-dev/react"; - -const Home = () => { - return ( - contract.call("myFunctionName")} - > - Call myFunctionName from the connected wallet - - ); -}; -``` diff --git a/apps/portal/src/app/react/v4/layout.tsx b/apps/portal/src/app/react/v4/layout.tsx deleted file mode 100644 index abc39c7b2f4..00000000000 --- a/apps/portal/src/app/react/v4/layout.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import { createMetadata } from "@/components/Document"; -import { DocLayout } from "@/components/Layouts/DocLayout"; -import { TypeScriptVersionSelector } from "../../../components/others/VersionSelector"; -import { typescriptV4Sidebar } from "../../typescript/v4/sidebar"; - -export default async function Layout(props: { children: React.ReactNode }) { - return ( - } - > - {props.children} - - ); -} - -export const metadata = createMetadata({ - title: "thirdweb React SDK", - description: - "A collection of 100+ React hooks and UI components for your web3 apps, for any EVM-compatible blockchain.", -}); diff --git a/apps/portal/src/app/react/v4/page.mdx b/apps/portal/src/app/react/v4/page.mdx deleted file mode 100644 index 291bc5711a7..00000000000 --- a/apps/portal/src/app/react/v4/page.mdx +++ /dev/null @@ -1,116 +0,0 @@ -import { - OpenSourceCard, - ArticleIconCard, - InstallTabs, - createMetadata, -} from "@doc"; -import { GraduationCap } from "lucide-react"; - -export const metadata = createMetadata({ - image: { - title: "thirdweb React SDK", - icon: "react", - }, - title: "thirdweb React SDK", - description: - "A collection of 100+ React hooks and UI components for your web3 apps, for any EVM-compatible blockchain.", -}); - -# React SDK - -A collection of [100+ React hooks](/references/react/v4/hooks) and UI components for your web3 apps, for any EVM-compatible blockchain. - -Connect to user’s wallets, interact with smart contracts, sign -messages, and utilize common standards such as tokens, NFTs, marketplaces; all with built-in caching, [RPC URLs](/glossary/rpc), [IPFS gateways](/glossary/ipfs), and more. - - - -## Installation - - - -
- [Starter Kits](https://github.com/thirdweb-example#starter-kits) • - [Templates](https://thirdweb.com/templates) • - [GitHub](https://github.com/thirdweb-dev/js) -
- -## Get Started - -Check out the [getting started](/react/v4/getting-started) guide to learn how to use the SDK in less than 2 minutes. - - - -## How It Works - -The React SDK uses [React Query](https://tanstack.com/query/v4/docs/react/overview) under the hood to -expose a collection of [query](https://tanstack.com/query/v4/docs/react/guides/queries) and [mutation](https://tanstack.com/query/v4/docs/react/guides/mutations) -hooks, each with built-in [caching](https://tanstack.com/query/v4/docs/react/guides/caching), -[query invalidation](https://tanstack.com/query/v4/docs/react/guides/query-invalidation), [query retries](https://tanstack.com/query/v4/docs/react/guides/query-retries), -and more. - -Each hook _(except for wallet/network management)_ wraps some functionality of the [TypeScript SDK](/typescript/latest), -which are made available as either a [query](https://tanstack.com/query/v4/docs/react/guides/queries) hook to read data, -or as a [mutation](https://tanstack.com/query/v4/docs/react/guides/mutations) hook to write transactions to the blockchain. - -When mutations are called (when a user executes a transaction), [query invalidation](https://tanstack.com/query/v4/docs/react/guides/query-invalidation) is automatically triggered -to update the relevant queries that depend on the data that was changed. For example, when minting a new NFT, queries that view information about -NFTs are re-fetched to load the new NFT automatically. - -### Queries - -All query hooks are used to **read** data from the blockchain, smart contracts, a user’s wallet, etc. - -Each one comes with some helpful properties to create a powerful user experience: - -- `data` - The data returned from the query (e.g. the NFTs of a contract). -- `isLoading` - Whether the query is currently loading. -- `error` - The error returned from the query, if any. - -```tsx -import { useContractRead, useContract } from "@thirdweb-dev/react"; - -function App() { - const { data: contract } = useContract("{{contract_address}}"); - const { data, isLoading, error } = useContractRead(contract, "functionName"); -} -``` - -### Mutations - -Mutations are used to **write** data to the blockchain when a transaction is required. - -They require a wallet to be connected, and by default, are executed from the currently connected wallet. - -Each mutation comes with similar properties to queries: - -- `mutate` - The function to execute the mutation (e.g. mint a new NFT). -- `mutateAsync` - The function to execute the mutation, but returns a promise (allowing `await` to be used). -- `isLoading` - Whether the mutation is currently executing. -- `error` - The error returned from the mutation, if any. - -```tsx -import { useContractWrite, useContract, Web3Button } from "@thirdweb-dev/react"; - -function App() { - const { data: contract } = useContract("{{contract_address}}"); - const { mutateAsync, isLoading, error } = useContractWrite( - contract, - "functionName", - ); -} -``` - -Upon execution of a mutation, the relevant queries are automatically invalidated to fetch the latest data. diff --git a/apps/portal/src/app/react/v4/wallets/page.mdx b/apps/portal/src/app/react/v4/wallets/page.mdx deleted file mode 100644 index 95bb0988f94..00000000000 --- a/apps/portal/src/app/react/v4/wallets/page.mdx +++ /dev/null @@ -1,154 +0,0 @@ -import { Breadcrumb, createMetadata } from "@doc"; -import { WalletCard, WalletCardGrid } from "@/components/others/WalletCard"; -// icons -import MetaMaskIcon from "@public/icons/wallets/metamask.svg"; -import CoinbaseIcon from "@public/icons/wallets/coinbase.svg"; -import WalletConnectIcon from "@public/icons/wallets/walletconnect.svg"; -import SmartWalletIcon from "@public/icons/wallets/smartwallet.svg"; -import EmbeddedWalletIcon from "@public/icons/wallets/embeddedwallet.svg"; -import SafeIcon from "@public/icons/wallets/safe.svg"; -import LocalWalletIcon from "@public/icons/wallets/localwallet.svg"; -import MagicLinkIcon from "@public/icons/wallets/magiclink.svg"; -import RainbowIcon from "@public/icons/wallets/rainbow.svg"; -import ZerionIcon from "@public/icons/wallets/zerion.svg"; -import BloctoIcon from "@public/icons/wallets/blocto.svg"; -import FrameIcon from "@public/icons/wallets/frame.svg"; -import PhantomIcon from "@public/icons/wallets/phantom.svg"; -import Coin98Icon from "@public/icons/wallets/coin98.png"; -import CoreWalletIcon from "@public/icons/wallets/coreWallet.png"; -import CryptoDefiIcon from "@public/icons/wallets/cryptoDefi.png"; -import OKXIcon from "@public/icons/wallets/okx.svg"; -import OneKeyIcon from "@public/icons/wallets/oneKey.png"; -import RabbyIcon from "@public/icons/wallets/rabby.svg"; -import XDEFIIcon from "@public/icons/wallets/xdefi.svg"; - -export const metadata = createMetadata({ - image: { - title: "Supported Wallets in thirdweb React SDK", - icon: "react", - }, - title: "Supported Wallets | thirdweb React SDK", - description: "List of all the supported wallets in thirdweb React SDK.", -}); - - - -# Wallets - -thirdweb React SDK comes out of the box with support for below listed wallets: - -You can also easily integrate _any_ other wallet provider by a [Building a wallet interface](/wallet-sdk/v2/build) for it. - - - - - - - - - - - - - - - - - - - - - - - diff --git a/apps/portal/src/app/react/v5/[...slug]/page.tsx b/apps/portal/src/app/react/v5/[...slug]/page.tsx index 4f0e2fc9d54..588c390b517 100644 --- a/apps/portal/src/app/react/v5/[...slug]/page.tsx +++ b/apps/portal/src/app/react/v5/[...slug]/page.tsx @@ -6,7 +6,7 @@ import { getSlugToDocMap } from "../../../references/components/TDoc/utils/slugs type PageProps = { params: Promise<{ slug: string[] }> }; export default async function Page(props: PageProps) { - const doc = await fetchTypeScriptDoc("v5"); + const doc = await fetchTypeScriptDoc(); const slugToDoc = getSlugToDocMap(doc); const docSlug = (await props.params).slug?.join("/"); diff --git a/apps/portal/src/app/react/v5/account-abstraction/permissions/page.mdx b/apps/portal/src/app/react/v5/account-abstraction/permissions/page.mdx index ac10316bcc3..4893886d0f1 100644 --- a/apps/portal/src/app/react/v5/account-abstraction/permissions/page.mdx +++ b/apps/portal/src/app/react/v5/account-abstraction/permissions/page.mdx @@ -1,6 +1,5 @@ import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs"; import { createMetadata, Stack, ArticleIconCard } from "@doc"; -import { V4SDKbanner } from "@/components/others/V4SDKBanner"; import { TypeScriptIcon } from "@/icons"; export const metadata = createMetadata({ diff --git a/apps/portal/src/app/references/components/TDoc/Variable.tsx b/apps/portal/src/app/references/components/TDoc/Variable.tsx index 32f07e38a1e..72e160d6ace 100644 --- a/apps/portal/src/app/references/components/TDoc/Variable.tsx +++ b/apps/portal/src/app/references/components/TDoc/Variable.tsx @@ -96,7 +96,7 @@ export async function VariableTDoc(props: { ); } -export function getVariableSignatureCode(doc: VariableDoc): TypeInfo { +function getVariableSignatureCode(doc: VariableDoc): TypeInfo { return { code: doc.type?.code || "", tokens: doc.type?.tokens, diff --git a/apps/portal/src/app/references/components/TDoc/fetchDocs/fetchDocBySlug.ts b/apps/portal/src/app/references/components/TDoc/fetchDocs/fetchDocBySlug.ts index 6d90e60669b..eefd2707b16 100644 --- a/apps/portal/src/app/references/components/TDoc/fetchDocs/fetchDocBySlug.ts +++ b/apps/portal/src/app/references/components/TDoc/fetchDocs/fetchDocBySlug.ts @@ -2,7 +2,7 @@ import { getSlugToDocMap } from "../utils/slugs"; import { fetchTypeScriptDoc } from "./fetchTypeScriptDoc"; export default async function fetchDocBySlug(slug: string) { - const doc = await fetchTypeScriptDoc("v5"); + const doc = await fetchTypeScriptDoc(); const slugToDoc = getSlugToDocMap(doc); const selectedDoc = slug && slugToDoc[slug]; diff --git a/apps/portal/src/app/references/components/TDoc/fetchDocs/fetchReactCoreDoc.ts b/apps/portal/src/app/references/components/TDoc/fetchDocs/fetchReactCoreDoc.ts deleted file mode 100644 index 979c2051e41..00000000000 --- a/apps/portal/src/app/references/components/TDoc/fetchDocs/fetchReactCoreDoc.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { transform } from "typedoc-better-json"; - -let prom: Promise> | null = null; -export async function fetchReactCoreDoc() { - if (prom) { - return prom; - } - prom = (async () => { - const doc = await import("./v4-legacy-docs/react-core.json"); - - // @ts-expect-error - works fine! - return transform(doc); - })(); - return prom; -} diff --git a/apps/portal/src/app/references/components/TDoc/fetchDocs/fetchReactDoc.ts b/apps/portal/src/app/references/components/TDoc/fetchDocs/fetchReactDoc.ts deleted file mode 100644 index 18584ab375f..00000000000 --- a/apps/portal/src/app/references/components/TDoc/fetchDocs/fetchReactDoc.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { transform } from "typedoc-better-json"; -import { fetchReactCoreDoc } from "./fetchReactCoreDoc"; -import { mergeDocs } from "./mergeDocs"; - -let prom: Promise> | null = null; -export async function fetchReactDoc() { - if (prom) { - return prom; - } - prom = (async () => { - const [doc, reactCoreDoc] = await Promise.all([ - import("./v4-legacy-docs/react.json"), - fetchReactCoreDoc(), - ]); - // @ts-expect-error - works fine! - return mergeDocs(reactCoreDoc, transform(doc)); - })(); - return prom; -} diff --git a/apps/portal/src/app/references/components/TDoc/fetchDocs/fetchStorageDoc.ts b/apps/portal/src/app/references/components/TDoc/fetchDocs/fetchStorageDoc.ts deleted file mode 100644 index 7999d49cc93..00000000000 --- a/apps/portal/src/app/references/components/TDoc/fetchDocs/fetchStorageDoc.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { transform } from "typedoc-better-json"; - -let prom: Promise> | null = null; -export async function fetchStorageDoc() { - if (prom) { - return prom; - } - prom = (async () => { - const doc = await import("./v4-legacy-docs/storage.json"); - - // @ts-expect-error - works fine! - return transform(doc); - })(); - return prom; -} diff --git a/apps/portal/src/app/references/components/TDoc/fetchDocs/fetchTypeScriptDoc.ts b/apps/portal/src/app/references/components/TDoc/fetchDocs/fetchTypeScriptDoc.ts index a7d73715bf4..6c3e05bd878 100644 --- a/apps/portal/src/app/references/components/TDoc/fetchDocs/fetchTypeScriptDoc.ts +++ b/apps/portal/src/app/references/components/TDoc/fetchDocs/fetchTypeScriptDoc.ts @@ -1,20 +1,8 @@ import { transform } from "typedoc-better-json"; -let v4Prom: Promise> | null = null; let v5Prom: Promise> | null = null; -export async function fetchTypeScriptDoc(version: string) { - // v4 case - if (version === "v4") { - if (v4Prom) { - return v4Prom; - } - v4Prom = (async () => { - const doc = await import("./v4-legacy-docs/sdk.json"); - // @ts-expect-error - works fine! - return transform(doc); - })(); - return v4Prom; - } + +export async function fetchTypeScriptDoc() { // v5 case (default) if (v5Prom) { return v5Prom; diff --git a/apps/portal/src/app/references/components/TDoc/fetchDocs/fetchWalletsDoc.ts b/apps/portal/src/app/references/components/TDoc/fetchDocs/fetchWalletsDoc.ts deleted file mode 100644 index cb76808b0f9..00000000000 --- a/apps/portal/src/app/references/components/TDoc/fetchDocs/fetchWalletsDoc.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { transform } from "typedoc-better-json"; - -let prom: Promise> | null = null; -export async function fetchWalletsDoc() { - if (prom) { - return prom; - } - prom = (async () => { - const doc = await import("./v4-legacy-docs/wallets.json"); - - // @ts-expect-error - works fine! - return transform(doc); - })(); - return prom; -} diff --git a/apps/portal/src/app/references/components/TDoc/fetchDocs/mergeDocs.ts b/apps/portal/src/app/references/components/TDoc/fetchDocs/mergeDocs.ts deleted file mode 100644 index 21c46f341b8..00000000000 --- a/apps/portal/src/app/references/components/TDoc/fetchDocs/mergeDocs.ts +++ /dev/null @@ -1,24 +0,0 @@ -import type { TransformedDoc } from "typedoc-better-json"; - -export function mergeDocs(doc1: TransformedDoc, doc2: TransformedDoc) { - const mergedDoc: TransformedDoc = { - meta: doc1.meta, - functions: mergeArrays(doc1.functions, doc2.functions), - classes: mergeArrays(doc1.classes, doc2.classes), - components: mergeArrays(doc1.components, doc2.components), - enums: mergeArrays(doc1.enums, doc2.enums), - hooks: mergeArrays(doc1.hooks, doc2.hooks), - types: mergeArrays(doc1.types, doc2.types), - variables: mergeArrays(doc1.variables, doc2.variables), - }; - - return mergedDoc; -} - -function mergeArrays(arr1?: T[], arr2?: T[]) { - const arr = [...(arr1 || []), ...(arr2 || [])]; - if (arr.length === 0) { - return undefined; - } - return arr; -} diff --git a/apps/portal/src/app/references/components/TDoc/fetchDocs/v4-legacy-docs/react-core.json b/apps/portal/src/app/references/components/TDoc/fetchDocs/v4-legacy-docs/react-core.json deleted file mode 100644 index ab2e501bcd9..00000000000 --- a/apps/portal/src/app/references/components/TDoc/fetchDocs/v4-legacy-docs/react-core.json +++ /dev/null @@ -1,45429 +0,0 @@ -{ - "id": 0, - "name": "@thirdweb-dev/react-core", - "variant": "project", - "kind": 1, - "flags": {}, - "children": [ - { - "id": 258, - "name": "ISecureStorage", - "variant": "declaration", - "kind": 256, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Secure storage interface for storing auth tokens.\n\nThe implementation of this interface should provide a secure way to store values. Either by encrypting the values or by storing them in a secure location." - } - ], - "blockTags": [ - { - "tag": "@auth", - "content": [] - } - ] - }, - "children": [ - { - "id": 259, - "name": "getItem", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx", - "line": 10, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx#L10" - } - ], - "signatures": [ - { - "id": 260, - "name": "getItem", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx", - "line": 10, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx#L10" - } - ], - "parameters": [ - { - "id": 261, - "name": "key", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - }, - { - "id": 266, - "name": "removeItem", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx", - "line": 12, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx#L12" - } - ], - "signatures": [ - { - "id": 267, - "name": "removeItem", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx", - "line": 12, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx#L12" - } - ], - "parameters": [ - { - "id": 268, - "name": "key", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - }, - { - "id": 262, - "name": "setItem", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx", - "line": 11, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx#L11" - } - ], - "signatures": [ - { - "id": 263, - "name": "setItem", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx", - "line": 11, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx#L11" - } - ], - "parameters": [ - { - "id": 264, - "name": "key", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 265, - "name": "value", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "children": [ - 259, - 266, - 262 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx", - "line": 9, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx#L9" - } - ] - }, - { - "id": 254, - "name": "ThirdwebAuthConfig", - "variant": "declaration", - "kind": 256, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The configuration to use by the React and React Native SDKs with an [auth](https://portal.thirdweb.com/wallets/auth) server." - } - ], - "blockTags": [ - { - "tag": "@auth", - "content": [] - } - ] - }, - "children": [ - { - "id": 255, - "name": "authUrl", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The backend URL of the authentication endoints. For example, if your endpoints are\nat " - }, - { - "kind": "code", - "text": "`/api/auth/login`" - }, - { - "kind": "text", - "text": ", " - }, - { - "kind": "code", - "text": "`/api/auth/logout`" - }, - { - "kind": "text", - "text": ", etc. then this should be set to " - }, - { - "kind": "code", - "text": "`/api/auth`" - }, - { - "kind": "text", - "text": "." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx", - "line": 24, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx#L24" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 256, - "name": "domain", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The frontend domain used to generate the login payload.\nThis domain should match the domain used on your auth backend." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx", - "line": 30, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx#L30" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 257, - "name": "secureStorage", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Secure storage to use for storing the auth token when using JWT tokens.\n\nDo not use a storage option that stores values accessible outside\nyour application (like localStorage on web environments) since you may\nbe exposing your auth token to malicious actors.\n\n** By default auth uses cookies so no need to set this unless you want to specifically use JWT tokens **" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx", - "line": 41, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx#L41" - } - ], - "type": { - "type": "reference", - "target": 258, - "name": "ISecureStorage", - "package": "@thirdweb-dev/react-core" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 255, - 256, - 257 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx", - "line": 19, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/contexts/thirdweb-auth.tsx#L19" - } - ] - }, - { - "id": 9, - "name": "ThirdwebProviderCoreProps", - "variant": "declaration", - "kind": 256, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The possible props for the ThirdwebProvider." - } - ] - }, - "children": [ - { - "id": 19, - "name": "activeChain", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The activeChain prop determines which chain you want your app to be operating on.\n\nThere are 1000+ chains available in the " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/chains`" - }, - { - "kind": "text", - "text": " package. Import the chain you want and pass it to the " - }, - { - "kind": "code", - "text": "`activeChain`" - }, - { - "kind": "text", - "text": " prop.\n\nYou can override the imported object or pass a custom chain object with required properties." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/providers/types.ts", - "line": 103, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/providers/types.ts#L103" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../chains/src/types.ts", - "qualifiedName": "Chain" - }, - "name": "Chain", - "package": "@thirdweb-dev/chains" - }, - { - "type": "intersection", - "types": [ - { - "type": "intrinsic", - "name": "number" - }, - { - "type": "reflection", - "declaration": { - "id": 20, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {} - } - } - ] - }, - { - "type": "intersection", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "reflection", - "declaration": { - "id": 21, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {} - } - } - ] - }, - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "chainId" - }, - "objectType": { - "type": "indexedAccess", - "indexType": { - "type": "intrinsic", - "name": "number" - }, - "objectType": { - "type": "reference", - "target": 29, - "name": "TChains", - "package": "@thirdweb-dev/react-core", - "qualifiedName": "ThirdwebProviderCoreProps.TChains", - "refersToTypeParameter": true - } - } - }, - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "slug" - }, - "objectType": { - "type": "indexedAccess", - "indexType": { - "type": "intrinsic", - "name": "number" - }, - "objectType": { - "type": "reference", - "target": 29, - "name": "TChains", - "package": "@thirdweb-dev/react-core", - "qualifiedName": "ThirdwebProviderCoreProps.TChains", - "refersToTypeParameter": true - } - } - } - ] - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "Omit.activeChain" - } - }, - { - "id": 27, - "name": "authConfig", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The configuration object for setting up [Auth](https://portal.thirdweb.com/wallets/auth); allowing users to sign in with their wallet." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/providers/types.ts", - "line": 94, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/providers/types.ts#L94" - } - ], - "type": { - "type": "reference", - "target": 254, - "name": "ThirdwebAuthConfig", - "package": "@thirdweb-dev/react-core" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "Omit.authConfig" - } - }, - { - "id": 12, - "name": "autoConnect", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Whether or not to attempt auto-connect to a wallet." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-provider.tsx", - "line": 55, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-provider.tsx#L55" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 16, - "name": "autoConnectTimeout", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Timeout for auto-connecting wallet in milliseconds\n\nIf wallet fails to connect in this time, it will stop trying to connect and user will have to manually connect\n\nBy default, it is set to " - }, - { - "kind": "code", - "text": "`15000`" - }, - { - "kind": "text", - "text": " milliseconds (15 seconds)" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-provider.tsx", - "line": 76, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-provider.tsx#L76" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 15, - "name": "autoSwitch", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Whether or not to automatically switch to wallet's network to active chain" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-provider.tsx", - "line": 67, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-provider.tsx#L67" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 18, - "name": "clientId", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The clientId prop is required to use the thirdweb infrastructure services with the SDK.\n\nYou can get a client ID by creating an API key on [thirdweb dashboard](https://thirdweb.com/dashboard/settings/api-keys)" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/providers/types.ts", - "line": 119, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/providers/types.ts#L119" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "Omit.clientId" - } - }, - { - "id": 11, - "name": "dAppMeta", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Metadata to pass to wallet connect and walletlink wallet connect. (Used to show *which* dApp is being connected to in mobile wallets that support it)\nDefaults to just the name being passed as " - }, - { - "kind": "code", - "text": "`thirdweb powered dApp`" - }, - { - "kind": "text", - "text": "." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-provider.tsx", - "line": 50, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-provider.tsx#L50" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/core/types/dAppMeta.ts", - "qualifiedName": "DAppMetaData" - }, - "name": "DAppMetaData", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 22, - "name": "queryClient", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If you are using React Query and have your own " - }, - { - "kind": "code", - "text": "`QueryClient`" - }, - { - "kind": "text", - "text": ", you can pass it as the queryClient prop to use that instead of the SDK's default client." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/query-client.tsx", - "line": 9, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/query-client.tsx#L9" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/queryClient.ts", - "qualifiedName": "QueryClient" - }, - "name": "QueryClient", - "package": "@tanstack/query-core" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "Omit.queryClient" - } - }, - { - "id": 24, - "name": "sdkOptions", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The thirdweb SDK Options to pass to the thirdweb SDK which includes Gas settings, gasless transactions, RPC configuration, and more.\n\nThis Overrides any of the default values for the SDK. If not provided, it uses sensible defaults." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/providers/types.ts", - "line": 47, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/providers/types.ts#L47" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 25, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/schema/sdk-options.d.ts", - "line": 237, - "character": 3 - } - ] - } - } - ] - }, - { - "type": "literal", - "value": "chains" - } - ], - "name": "Omit", - "package": "typescript" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "Omit.sdkOptions" - } - }, - { - "id": 28, - "name": "secretKey", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "secretKey for thirdweb services\nThis is only required if server side rendering is being used." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/providers/types.ts", - "line": 125, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/providers/types.ts#L125" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "Omit.secretKey" - } - }, - { - "id": 26, - "name": "storageInterface", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Override the default [Storage](https://portal.thirdweb.com/infrastructure/storage/overview) interface used by the SDK.\n\nIt allows you to create an instance of " - }, - { - "kind": "code", - "text": "`ThirdwebStorage`" - }, - { - "kind": "text", - "text": " with your own customized config, and pass it to the SDK.\n\n*This requires the " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/storage`" - }, - { - "kind": "text", - "text": " package to be installed.*" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nimport { ThirdwebSDKProvider } from \"@thirdweb-dev/react\";\nimport {\n ThirdwebStorage,\n StorageDownloader,\n IpfsUploader,\n} from \"@thirdweb-dev/storage\";\n\n// Configure a custom ThirdwebStorage instance\nconst gatewayUrls = {\n \"ipfs://\": [\n \"https://gateway.ipfscdn.io/ipfs/\",\n \"https://cloudflare-ipfs.com/ipfs/\",\n \"https://ipfs.io/ipfs/\",\n ],\n};\nconst downloader = new StorageDownloader();\nconst uploader = new IpfsUploader();\nconst storage = new ThirdwebStorage({ uploader, downloader, gatewayUrls });\n\n// Provide the custom storage instance to the SDK\nfunction MyApp() {\n return (\n \n \n \n );\n}\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/providers/types.ts", - "line": 89, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/providers/types.ts#L89" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../storage/src/types/index.ts", - "qualifiedName": "IThirdwebStorage" - }, - "name": "IThirdwebStorage", - "package": "@thirdweb-dev/storage" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "Omit.storageInterface" - } - }, - { - "id": 23, - "name": "supportedChains", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "An array of chains supported by your app.\nThere are 1000+ chains available in the " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/chains`" - }, - { - "kind": "text", - "text": " package. You can import the chain you want and pass it to the " - }, - { - "kind": "code", - "text": "`supportedChains`" - }, - { - "kind": "text", - "text": " prop in an array.\n\nIf not provided, it will default to the default supported chains supported by the thirdweb SDK." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nimport { Ethereum, Polygon } from \"@thirdweb-dev/chains\";\n\nfunction Example() {\n return (\n \n \n \n )\n}\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/providers/types.ts", - "line": 29, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/providers/types.ts#L29" - } - ], - "type": { - "type": "reference", - "target": 29, - "name": "TChains", - "package": "@thirdweb-dev/react-core", - "qualifiedName": "ThirdwebProviderCoreProps.TChains", - "refersToTypeParameter": true - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "Omit.supportedChains" - } - }, - { - "id": 10, - "name": "supportedWallets", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "An array of wallets that the dApp supports\nIf not provided, will default to Metamask (injected), Coinbase wallet and Device wallet" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "You can Import the wallets you want to support from " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/wallets`" - }, - { - "kind": "text", - "text": " and pass them to " - }, - { - "kind": "code", - "text": "`supportedWallets`" - }, - { - "kind": "text", - "text": "\n\n" - }, - { - "kind": "code", - "text": "```jsx title=\"App.jsx\"\nimport { ThirdwebProvider } from \"@thirdweb-dev/react\";\n\nconst App = () => {\n return (\n \n \n \n );\n};\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-provider.tsx", - "line": 44, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-provider.tsx#L44" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": 144, - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - }, - { - "id": 13, - "name": "theme", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-provider.tsx", - "line": 57, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-provider.tsx#L57" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "light" - }, - { - "type": "literal", - "value": "dark" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 19, - 27, - 12, - 16, - 15, - 18, - 11, - 22, - 24, - 28, - 26, - 23, - 10, - 13 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-provider.tsx", - "line": 23, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-provider.tsx#L23" - } - ], - "typeParameters": [ - { - "id": 29, - "name": "TChains", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../chains/src/index.ts", - "qualifiedName": "Chain" - }, - "name": "Chain", - "package": "@thirdweb-dev/chains" - } - } - } - ], - "extendedTypes": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1113, - "typeArguments": [ - { - "type": "reference", - "target": 29, - "name": "TChains", - "package": "@thirdweb-dev/react-core", - "qualifiedName": "ThirdwebProviderCoreProps.TChains", - "refersToTypeParameter": true - } - ], - "name": "ThirdwebSDKProviderProps", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "literal", - "value": "signer" - } - ], - "name": "Omit", - "package": "typescript" - } - ] - }, - { - "id": 1113, - "name": "ThirdwebSDKProviderProps", - "variant": "declaration", - "kind": 256, - "flags": {}, - "children": [ - { - "id": 1120, - "name": "activeChain", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The activeChain prop determines which chain you want your app to be operating on.\n\nThere are 1000+ chains available in the " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/chains`" - }, - { - "kind": "text", - "text": " package. Import the chain you want and pass it to the " - }, - { - "kind": "code", - "text": "`activeChain`" - }, - { - "kind": "text", - "text": " prop.\n\nYou can override the imported object or pass a custom chain object with required properties." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/providers/types.ts", - "line": 103, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/providers/types.ts#L103" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../chains/src/types.ts", - "qualifiedName": "Chain" - }, - "name": "Chain", - "package": "@thirdweb-dev/chains" - }, - { - "type": "intersection", - "types": [ - { - "type": "intrinsic", - "name": "number" - }, - { - "type": "reflection", - "declaration": { - "id": 1121, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {} - } - } - ] - }, - { - "type": "intersection", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "reflection", - "declaration": { - "id": 1122, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {} - } - } - ] - }, - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "chainId" - }, - "objectType": { - "type": "indexedAccess", - "indexType": { - "type": "intrinsic", - "name": "number" - }, - "objectType": { - "type": "reference", - "target": 1126, - "name": "TChains", - "package": "@thirdweb-dev/react-core", - "qualifiedName": "ThirdwebSDKProviderProps.TChains", - "refersToTypeParameter": true - } - } - }, - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "slug" - }, - "objectType": { - "type": "indexedAccess", - "indexType": { - "type": "intrinsic", - "name": "number" - }, - "objectType": { - "type": "reference", - "target": 1126, - "name": "TChains", - "package": "@thirdweb-dev/react-core", - "qualifiedName": "ThirdwebSDKProviderProps.TChains", - "refersToTypeParameter": true - } - } - } - ] - } - }, - { - "id": 1119, - "name": "authConfig", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The configuration object for setting up [Auth](https://portal.thirdweb.com/wallets/auth); allowing users to sign in with their wallet." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/providers/types.ts", - "line": 94, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/providers/types.ts#L94" - } - ], - "type": { - "type": "reference", - "target": 254, - "name": "ThirdwebAuthConfig", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 1123, - "name": "clientId", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The clientId prop is required to use the thirdweb infrastructure services with the SDK.\n\nYou can get a client ID by creating an API key on [thirdweb dashboard](https://thirdweb.com/dashboard/settings/api-keys)" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/providers/types.ts", - "line": 119, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/providers/types.ts#L119" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1125, - "name": "queryClient", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If you are using React Query and have your own " - }, - { - "kind": "code", - "text": "`QueryClient`" - }, - { - "kind": "text", - "text": ", you can pass it as the queryClient prop to use that instead of the SDK's default client." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/query-client.tsx", - "line": 9, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/query-client.tsx#L9" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/queryClient.ts", - "qualifiedName": "QueryClient" - }, - "name": "QueryClient", - "package": "@tanstack/query-core" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "QueryClientProviderProps.queryClient" - } - }, - { - "id": 1116, - "name": "sdkOptions", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The thirdweb SDK Options to pass to the thirdweb SDK which includes Gas settings, gasless transactions, RPC configuration, and more.\n\nThis Overrides any of the default values for the SDK. If not provided, it uses sensible defaults." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/providers/types.ts", - "line": 47, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/providers/types.ts#L47" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 1117, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/schema/sdk-options.d.ts", - "line": 237, - "character": 3 - } - ] - } - } - ] - }, - { - "type": "literal", - "value": "chains" - } - ], - "name": "Omit", - "package": "typescript" - } - }, - { - "id": 1124, - "name": "secretKey", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "secretKey for thirdweb services\nThis is only required if server side rendering is being used." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/providers/types.ts", - "line": 125, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/providers/types.ts#L125" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1115, - "name": "signer", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A signer is an abstraction of an Ethereum Account, which can be used to sign messages and initiate transactions.\n\nSince the ThirdwebSDKProvider is used when you want to provide your own wallet connection logic, you will need to provide a signer prop to inform the SDK of the wallet you want to use to sign transactions.\n\nLibraries such as ethers.js, web3.js, wagmi, etc. all provide ways to get a signer.\n\nTo use this signer with the SDK, pass it to the " - }, - { - "kind": "code", - "text": "`signer`" - }, - { - "kind": "text", - "text": " prop. If the signer is connected, the SDK will use this wallet to sign transactions for all write operations on the blockchain." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/providers/types.ts", - "line": 40, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/providers/types.ts#L40" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+abstract-signer@5.7.0/node_modules/@ethersproject/abstract-signer/src.ts/index.ts", - "qualifiedName": "Signer" - }, - "name": "Signer", - "package": "@ethersproject/abstract-signer" - } - }, - { - "id": 1118, - "name": "storageInterface", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Override the default [Storage](https://portal.thirdweb.com/infrastructure/storage/overview) interface used by the SDK.\n\nIt allows you to create an instance of " - }, - { - "kind": "code", - "text": "`ThirdwebStorage`" - }, - { - "kind": "text", - "text": " with your own customized config, and pass it to the SDK.\n\n*This requires the " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/storage`" - }, - { - "kind": "text", - "text": " package to be installed.*" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nimport { ThirdwebSDKProvider } from \"@thirdweb-dev/react\";\nimport {\n ThirdwebStorage,\n StorageDownloader,\n IpfsUploader,\n} from \"@thirdweb-dev/storage\";\n\n// Configure a custom ThirdwebStorage instance\nconst gatewayUrls = {\n \"ipfs://\": [\n \"https://gateway.ipfscdn.io/ipfs/\",\n \"https://cloudflare-ipfs.com/ipfs/\",\n \"https://ipfs.io/ipfs/\",\n ],\n};\nconst downloader = new StorageDownloader();\nconst uploader = new IpfsUploader();\nconst storage = new ThirdwebStorage({ uploader, downloader, gatewayUrls });\n\n// Provide the custom storage instance to the SDK\nfunction MyApp() {\n return (\n \n \n \n );\n}\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/providers/types.ts", - "line": 89, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/providers/types.ts#L89" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../storage/src/types/index.ts", - "qualifiedName": "IThirdwebStorage" - }, - "name": "IThirdwebStorage", - "package": "@thirdweb-dev/storage" - } - }, - { - "id": 1114, - "name": "supportedChains", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "An array of chains supported by your app.\nThere are 1000+ chains available in the " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/chains`" - }, - { - "kind": "text", - "text": " package. You can import the chain you want and pass it to the " - }, - { - "kind": "code", - "text": "`supportedChains`" - }, - { - "kind": "text", - "text": " prop in an array.\n\nIf not provided, it will default to the default supported chains supported by the thirdweb SDK." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nimport { Ethereum, Polygon } from \"@thirdweb-dev/chains\";\n\nfunction Example() {\n return (\n \n \n \n )\n}\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/providers/types.ts", - "line": 29, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/providers/types.ts#L29" - } - ], - "type": { - "type": "reference", - "target": 1126, - "name": "TChains", - "package": "@thirdweb-dev/react-core", - "qualifiedName": "ThirdwebSDKProviderProps.TChains", - "refersToTypeParameter": true - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1120, - 1119, - 1123, - 1125, - 1116, - 1124, - 1115, - 1118, - 1114 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/providers/types.ts", - "line": 8, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/providers/types.ts#L8" - } - ], - "typeParameters": [ - { - "id": 1126, - "name": "TChains", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../chains/src/index.ts", - "qualifiedName": "Chain" - }, - "name": "Chain", - "package": "@thirdweb-dev/chains" - } - } - } - ], - "extendedTypes": [ - { - "type": "reference", - "target": { - "sourceFileName": "src/core/providers/query-client.tsx", - "qualifiedName": "QueryClientProviderProps" - }, - "name": "QueryClientProviderProps", - "package": "@thirdweb-dev/react-core" - } - ] - }, - { - "id": 1023, - "name": "UserWithData", - "variant": "declaration", - "kind": 256, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@auth", - "content": [] - } - ] - }, - "children": [ - { - "id": 1025, - "name": "address", - "variant": "declaration", - "kind": 1024, - "flags": { - "isInherited": true - }, - "sources": [ - { - "fileName": "legacy_packages/auth/dist/declarations/src/core/schema/common.d.ts", - "line": 12, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "User.address" - } - }, - { - "id": 1024, - "name": "data", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useUser.ts", - "line": 15, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useUser.ts#L15" - } - ], - "type": { - "type": "reference", - "target": 1027, - "name": "TData", - "package": "@thirdweb-dev/react-core", - "qualifiedName": "UserWithData.TData", - "refersToTypeParameter": true - } - }, - { - "id": 1026, - "name": "session", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "sources": [ - { - "fileName": "legacy_packages/auth/dist/declarations/src/core/schema/common.d.ts", - "line": 13, - "character": 4 - } - ], - "type": { - "type": "reference", - "target": 1028, - "name": "TContext", - "package": "@thirdweb-dev/react-core", - "qualifiedName": "UserWithData.TContext", - "refersToTypeParameter": true - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "User.session" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1025, - 1024, - 1026 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useUser.ts", - "line": 11, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useUser.ts#L11" - } - ], - "typeParameters": [ - { - "id": 1027, - "name": "TData", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../auth/src/core/schema/common.ts", - "qualifiedName": "Json" - }, - "name": "Json", - "package": "@thirdweb-dev/auth" - }, - "default": { - "type": "reference", - "target": { - "sourceFileName": "../auth/src/core/schema/common.ts", - "qualifiedName": "Json" - }, - "name": "Json", - "package": "@thirdweb-dev/auth" - } - }, - { - "id": 1028, - "name": "TContext", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../auth/src/core/schema/common.ts", - "qualifiedName": "Json" - }, - "name": "Json", - "package": "@thirdweb-dev/auth" - }, - "default": { - "type": "reference", - "target": { - "sourceFileName": "../auth/src/core/schema/common.ts", - "qualifiedName": "Json" - }, - "name": "Json", - "package": "@thirdweb-dev/auth" - } - } - ], - "extendedTypes": [ - { - "type": "reference", - "target": { - "sourceFileName": "../auth/src/core/schema/common.ts", - "qualifiedName": "User" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1028, - "name": "TContext", - "package": "@thirdweb-dev/react-core", - "qualifiedName": "UserWithData.TContext", - "refersToTypeParameter": true - } - ], - "name": "User", - "package": "@thirdweb-dev/auth" - } - ] - }, - { - "id": 1225, - "name": "AcceptDirectOffer", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 258, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L258" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1226, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1228, - "name": "addressOfOfferor", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The wallet address of the user who made the offer you wish to accept.\n\nThe " - }, - { - "kind": "code", - "text": "`useContractEvents`" - }, - { - "kind": "text", - "text": " hook can be used to read all " - }, - { - "kind": "code", - "text": "`\"NewOffer\"`" - }, - { - "kind": "text", - "text": " events on your " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contract." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 268, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L268" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1227, - "name": "listingId", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The " - }, - { - "kind": "code", - "text": "`listingId`" - }, - { - "kind": "text", - "text": " of the listing you wish to accept. Each listing has a unique " - }, - { - "kind": "code", - "text": "`listingId`" - }, - { - "kind": "text", - "text": " on the " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contract." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 262, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L262" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1228, - 1227 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 258, - "character": 32, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L258" - } - ] - } - } - }, - { - "id": 1178, - "name": "AirdropNFTParams", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The params to pass to " - }, - { - "kind": "code", - "text": "`useTransferBatchNFT`" - }, - { - "kind": "text", - "text": "." - } - ], - "blockTags": [ - { - "tag": "@nft", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 123, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L123" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1179, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1181, - "name": "addresses", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 125, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L125" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/airdrop/airdrop.ts", - "qualifiedName": "AirdropInput" - }, - "name": "AirdropInput", - "package": "@thirdweb-dev/sdk" - } - }, - { - "id": 1180, - "name": "tokenId", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 124, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L124" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1181, - 1180 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 123, - "character": 31, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L123" - } - ] - } - } - }, - { - "id": 1194, - "name": "BurnNFTParams", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The params for the " - }, - { - "kind": "code", - "text": "`useBurnNFT`" - }, - { - "kind": "text", - "text": " hook mutation." - } - ], - "blockTags": [ - { - "tag": "@nft", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 163, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L163" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1195, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1197, - "name": "amount", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 163, - "character": 53, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L163" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/currency.ts", - "qualifiedName": "Amount" - }, - "name": "Amount", - "package": "@thirdweb-dev/sdk" - } - }, - { - "id": 1196, - "name": "tokenId", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 163, - "character": 30, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L163" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1197, - 1196 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 163, - "character": 28, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L163" - } - ] - } - } - }, - { - "id": 1232, - "name": "BuyNowParams", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 281, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L281" - } - ], - "typeParameters": [ - { - "id": 1241, - "name": "TListingType", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "default": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/enums/marketplace/ListingType.ts", - "qualifiedName": "ListingType" - }, - "name": "ListingType", - "package": "@thirdweb-dev/sdk" - } - } - ], - "type": { - "type": "conditional", - "checkType": { - "type": "reference", - "target": 1241, - "name": "TListingType", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - }, - "extendsType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/enums/marketplace/ListingType.ts", - "qualifiedName": "ListingType.Direct" - }, - "name": "ListingType.Direct", - "package": "@thirdweb-dev/sdk" - }, - "trueType": { - "type": "reflection", - "declaration": { - "id": 1233, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1236, - "name": "buyAmount", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The amount of tokens you want to buy from the listing.\n\nApplicable for ERC1155 listings only, should always be " - }, - { - "kind": "code", - "text": "`1`" - }, - { - "kind": "text", - "text": " for ERC721 listings." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 297, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L297" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - }, - { - "id": 1237, - "name": "buyForWallet", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optionally, specify a different wallet address to buy the listing for." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 301, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L301" - } - ], - "type": { - "type": "reference", - "target": 1162, - "name": "WalletAddress", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 1234, - "name": "id", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The ID of the listing you want to buy." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 287, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L287" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - }, - { - "id": 1235, - "name": "type", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The type of listing. Either ListingType.Direct (0) or ListingType.Auction (1)." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 291, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L291" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/enums/marketplace/ListingType.ts", - "qualifiedName": "ListingType.Direct" - }, - "name": "ListingType.Direct", - "package": "@thirdweb-dev/sdk" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1236, - 1237, - 1234, - 1235 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 283, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L283" - } - ] - } - }, - "falseType": { - "type": "reflection", - "declaration": { - "id": 1238, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1239, - "name": "id", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The ID of the listing you want to buy." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 307, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L307" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - }, - { - "id": 1240, - "name": "type", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The type of listing. Either ListingType.Direct (0) or ListingType.Auction (1)." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 311, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L311" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/enums/marketplace/ListingType.ts", - "qualifiedName": "ListingType.Auction" - }, - "name": "ListingType.Auction", - "package": "@thirdweb-dev/sdk" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1239, - 1240 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 303, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L303" - } - ] - } - } - } - }, - { - "id": 301, - "name": "ClaimIneligibilityParams", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The options to be passed as the second parameter to the " - }, - { - "kind": "code", - "text": "`useClaimIneligibilityReasons`" - }, - { - "kind": "text", - "text": " hook." - } - ], - "blockTags": [ - { - "tag": "@claimConditions", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 34, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L34" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 302, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 304, - "name": "quantity", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 38, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L38" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, - { - "id": 303, - "name": "walletAddress", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 36, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L36" - } - ], - "type": { - "type": "reference", - "target": 1162, - "name": "WalletAddress", - "package": "@thirdweb-dev/react-core" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 304, - 303 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 34, - "character": 39, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L34" - } - ] - } - } - }, - { - "id": 1209, - "name": "ClaimNFTParams", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The params for the " - }, - { - "kind": "code", - "text": "`useClaimNFT`" - }, - { - "kind": "text", - "text": " hook mutation." - } - ], - "blockTags": [ - { - "tag": "@nftDrop", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 221, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L221" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1210, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1213, - "name": "options", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 224, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L224" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/claim-conditions/claim-conditions.ts", - "qualifiedName": "ClaimOptions" - }, - "name": "ClaimOptions", - "package": "@thirdweb-dev/sdk" - } - }, - { - "id": 1212, - "name": "quantity", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 223, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L223" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - }, - { - "id": 1211, - "name": "to", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 222, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L222" - } - ], - "type": { - "type": "reference", - "target": 1162, - "name": "WalletAddress", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 1214, - "name": "tokenId", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "tokenId is only used for ERC1155 tokens" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 228, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L228" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1213, - 1212, - 1211, - 1214 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 221, - "character": 29, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L221" - } - ] - } - } - }, - { - "id": 1215, - "name": "ClaimNFTReturnType", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The return type of the " - }, - { - "kind": "code", - "text": "`useClaimNFT`" - }, - { - "kind": "text", - "text": " hook." - } - ], - "blockTags": [ - { - "tag": "@nftDrop", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 235, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L235" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Awaited" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "ReturnType" - }, - "typeArguments": [ - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "claimTo" - }, - "objectType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/classes/erc-721.ts", - "qualifiedName": "Erc721" - }, - "name": "Erc721", - "package": "@thirdweb-dev/sdk" - } - } - ], - "name": "ReturnType", - "package": "typescript" - } - ], - "name": "Awaited", - "package": "typescript" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Awaited" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "ReturnType" - }, - "typeArguments": [ - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "claimTo" - }, - "objectType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/classes/erc-1155.ts", - "qualifiedName": "Erc1155" - }, - "name": "Erc1155", - "package": "@thirdweb-dev/sdk" - } - } - ], - "name": "ReturnType", - "package": "typescript" - } - ], - "name": "Awaited", - "package": "typescript" - } - ] - } - }, - { - "id": 1242, - "name": "ClaimTokenParams", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@token", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 336, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L336" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1243, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1245, - "name": "amount", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 338, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L338" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/currency.ts", - "qualifiedName": "Amount" - }, - "name": "Amount", - "package": "@thirdweb-dev/sdk" - } - }, - { - "id": 1246, - "name": "checkERC20Allowance", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 339, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L339" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 1244, - "name": "to", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 337, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L337" - } - ], - "type": { - "type": "reference", - "target": 1162, - "name": "WalletAddress", - "package": "@thirdweb-dev/react-core" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1245, - 1246, - 1244 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 336, - "character": 31, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L336" - } - ] - } - } - }, - { - "id": 109, - "name": "ConnectionStatus", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx", - "line": 51, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx#L51" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "unknown" - }, - { - "type": "literal", - "value": "connected" - }, - { - "type": "literal", - "value": "disconnected" - }, - { - "type": "literal", - "value": "connecting" - } - ] - } - }, - { - "id": 162, - "name": "ConnectUIProps", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 78, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L78" - } - ], - "typeParameters": [ - { - "id": 204, - "name": "I", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": 234, - "name": "WalletInstance", - "package": "@thirdweb-dev/react-core" - }, - "default": { - "type": "reference", - "target": 234, - "name": "WalletInstance", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 163, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 186, - "name": "connect", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "connect wallet" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nconst { connect } = props;\n\nasync function handleConnect() {\n const wallet = await connect(someOptions);\n console.log('connected to', wallet);\n}\n```" - }, - { - "kind": "text", - "text": "\n\nIf you need more control over the connection process, you can manually create wallet instance and call the " - }, - { - "kind": "code", - "text": "`connect`" - }, - { - "kind": "text", - "text": " method of the wallet instance instead and use " - }, - { - "kind": "code", - "text": "`setConnectedWallet`" - }, - { - "kind": "text", - "text": " and " - }, - { - "kind": "code", - "text": "`setConnectionStatus`" - }, - { - "kind": "text", - "text": " to set the connected wallet and connection status." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 153, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L153" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 187, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 153, - "character": 11, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L153" - } - ], - "signatures": [ - { - "id": 188, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "parameters": [ - { - "id": 189, - "name": "args", - "variant": "param", - "kind": 32768, - "flags": { - "isRest": true - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "ConnectArgs" - }, - "typeArguments": [ - { - "type": "reference", - "target": 204, - "name": "I", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "ConnectArgs", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "reference", - "target": 204, - "name": "I", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - }, - { - "id": 167, - "name": "connected", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "when the wallet is connected, call this function to indicate that the wallet is connected and it is safe to close the Modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 88, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L88" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 168, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 88, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L88" - } - ], - "signatures": [ - { - "id": 169, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 202, - "name": "connectedWallet", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Connected wallet instance\nThis is set by " - }, - { - "kind": "code", - "text": "`connect`" - }, - { - "kind": "text", - "text": " if connection succeeds or it can be set manually by using " - }, - { - "kind": "code", - "text": "`setConnectedWallet`" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 229, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L229" - } - ], - "type": { - "type": "reference", - "target": 204, - "name": "I", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - }, - { - "id": 203, - "name": "connectedWalletAddress", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Address of the connected wallet instance" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 234, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L234" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 194, - "name": "connectionStatus", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Connection status of the wallet" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 180, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L180" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "ConnectionStatus" - }, - "name": "ConnectionStatus", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 199, - "name": "createWalletInstance", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Create an instance of the wallet. This is only relevant if you are manually creating wallet instance and calling the " - }, - { - "kind": "code", - "text": "`wallet.connect`" - }, - { - "kind": "text", - "text": " method. If you are using the " - }, - { - "kind": "code", - "text": "`connect`" - }, - { - "kind": "text", - "text": " function, this is done automatically." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nconst { createWalletInstance, setConnectionStatus, setConnectedWallet } = props;\n\nasync function handleConnect() {\n const wallet = createWalletInstance(); // <--\n setConnectionStatus('connecting');\n try {\n await wallet.connect(someOptions);\n setConnectedWallet(wallet);\n } catch {\n setConnectionStatus('disconnected');\n }\n}\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 223, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L223" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 200, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 223, - "character": 24, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L223" - } - ], - "signatures": [ - { - "id": 201, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "reference", - "target": 204, - "name": "I", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - } - ] - } - } - }, - { - "id": 174, - "name": "goBack", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "go back to the wallet selector screen in connect wallet modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 103, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L103" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 175, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 103, - "character": 10, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L103" - } - ], - "signatures": [ - { - "id": 176, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 164, - "name": "hide", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "temporarily hide the ConnectModal\nThis is useful when you want to open another modal and do not want to show the ConnectModal in the background" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 83, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L83" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 165, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 83, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L83" - } - ], - "signatures": [ - { - "id": 166, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 170, - "name": "isOpen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "indicates whether the connect wallet modal is open or not" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 93, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L93" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 185, - "name": "modalSize", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Size of the modal\n\nThis is always " - }, - { - "kind": "code", - "text": "`compact`" - }, - { - "kind": "text", - "text": " on React Native" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 136, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L136" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "compact" - }, - { - "type": "literal", - "value": "wide" - } - ] - } - }, - { - "id": 179, - "name": "selectionData", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "selectionData passed from " - }, - { - "kind": "code", - "text": "`selectUI`" - }, - { - "kind": "text", - "text": "'s " - }, - { - "kind": "code", - "text": "`onSelect`" - }, - { - "kind": "text", - "text": " function" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 118, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L118" - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 195, - "name": "setConnectedWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Set a wallet instance as connected in thirdweb context\nThis is only relevant if you are manually creating wallet instance and calling the " - }, - { - "kind": "code", - "text": "`wallet.connect`" - }, - { - "kind": "text", - "text": " method. If you are using the " - }, - { - "kind": "code", - "text": "`connect`" - }, - { - "kind": "text", - "text": " function, this is done automatically." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nconst { createWalletInstance, setConnectionStatus, setConnectedWallet } = props;\n\nasync function handleConnect() {\n const wallet = createWalletInstance();\n setConnectionStatus('connecting');\n try {\n await wallet.connect(someOptions);\n setConnectedWallet(wallet); // <--\n } catch {\n setConnectionStatus('disconnected');\n }\n}\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 202, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L202" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 196, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 202, - "character": 22, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L202" - } - ], - "signatures": [ - { - "id": 197, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "parameters": [ - { - "id": 198, - "name": "walletInstance", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 204, - "name": "I", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 190, - "name": "setConnectionStatus", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Set the connection status of the wallet.\nThis is only relevant if you are manually creating wallet instance and calling the " - }, - { - "kind": "code", - "text": "`wallet.connect`" - }, - { - "kind": "text", - "text": " method. If you are using the " - }, - { - "kind": "code", - "text": "`connect`" - }, - { - "kind": "text", - "text": " function, this is done automatically." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nconst { createWalletInstance, setConnectionStatus, setConnectedWallet } = props;\n\nasync function handleConnect() {\n const wallet = createWalletInstance();\n setConnectionStatus('connecting'); // <--\n try {\n await wallet.connect(someOptions);\n setConnectedWallet(wallet);\n } catch {\n setConnectionStatus('disconnected'); // <--\n }\n}\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 175, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L175" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 191, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 175, - "character": 23, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L175" - } - ], - "signatures": [ - { - "id": 192, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "parameters": [ - { - "id": 193, - "name": "status", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "ConnectionStatus" - }, - "name": "ConnectionStatus", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 180, - "name": "setSelectionData", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "set selectionData" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 124, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L124" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 181, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 124, - "character": 20, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L124" - } - ], - "signatures": [ - { - "id": 182, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@returns", - "content": [] - } - ] - }, - "parameters": [ - { - "id": 183, - "name": "data", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 171, - "name": "show", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "show the hidden connect wallet modal again" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 98, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L98" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 172, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 98, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L98" - } - ], - "signatures": [ - { - "id": 173, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 184, - "name": "supportedWallets", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Array of supported wallets including this wallet." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 129, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L129" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": 144, - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - }, - { - "id": 177, - "name": "theme", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "theme of the connect wallet modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 108, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L108" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "dark" - }, - { - "type": "literal", - "value": "light" - } - ] - } - }, - { - "id": 178, - "name": "walletConfig", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": " object of the wallet" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 113, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L113" - } - ], - "type": { - "type": "reference", - "target": 144, - "typeArguments": [ - { - "type": "reference", - "target": 204, - "name": "I", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 186, - 167, - 202, - 203, - 194, - 199, - 174, - 164, - 170, - 185, - 179, - 195, - 190, - 180, - 171, - 184, - 177, - 178 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 78, - "character": 72, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L78" - } - ] - } - } - }, - { - "id": 1200, - "name": "DelayedRevealLazyMintInput", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The params for the " - }, - { - "kind": "inline-tag", - "tag": "@link", - "text": "useDelayedRevealLazyMint", - "target": 529 - }, - { - "kind": "text", - "text": " hook mutation." - } - ], - "blockTags": [ - { - "tag": "@delayedReveal", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 189, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L189" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1201, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1203, - "name": "metadatas", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "An array of metadata objects, representing the metadata of the NFTs to be lazy-minted.\n\nEach metadata object must conform to the [standard metadata properties](https://docs.opensea.io/docs/metadata-standards)." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 199, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L199" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/core/schema/nft.ts", - "qualifiedName": "NFTMetadataInput" - }, - "name": "NFTMetadataInput", - "package": "@thirdweb-dev/sdk" - } - } - }, - { - "id": 1204, - "name": "password", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The password used to encrypt the metadatas.\n\n__The password CANNOT be recovered once it is set. If you lose the password, you will not be able to reveal the metadata.__" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 205, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L205" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1202, - "name": "placeholder", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The placeholder object represents the metadata the NFTs will have until the owner reveals the metadata." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 193, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L193" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/core/schema/nft.ts", - "qualifiedName": "NFTMetadataInput" - }, - "name": "NFTMetadataInput", - "package": "@thirdweb-dev/sdk" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1203, - 1204, - 1202 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 189, - "character": 41, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L189" - } - ] - } - } - }, - { - "id": 1198, - "name": "DropContract", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The possible DROP contract types." - } - ], - "blockTags": [ - { - "tag": "@nftDrop", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 171, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L171" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/nft-drop.ts", - "qualifiedName": "NFTDrop" - }, - "name": "NFTDrop", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/edition-drop.ts", - "qualifiedName": "EditionDrop" - }, - "name": "EditionDrop", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/signature-drop.ts", - "qualifiedName": "SignatureDrop" - }, - "name": "SignatureDrop", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/token-drop.ts", - "qualifiedName": "TokenDrop" - }, - "name": "TokenDrop", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "literal", - "value": null - } - ] - } - }, - { - "id": 1229, - "name": "ExecuteAuctionSale", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 274, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L274" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1230, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1231, - "name": "listingId", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 275, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L275" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1231 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 274, - "character": 33, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L274" - } - ] - } - } - }, - { - "id": 1216, - "name": "MakeBidParams", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 244, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L244" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1217, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1219, - "name": "bid", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 244, - "character": 55, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L244" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/currency.ts", - "qualifiedName": "Price" - }, - "name": "Price", - "package": "@thirdweb-dev/sdk" - } - }, - { - "id": 1218, - "name": "listingId", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 244, - "character": 30, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L244" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1219, - 1218 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 244, - "character": 28, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L244" - } - ] - } - } - }, - { - "id": 1220, - "name": "MakeOfferParams", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 249, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L249" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1221, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1222, - "name": "listingId", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 250, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L250" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - }, - { - "id": 1223, - "name": "pricePerToken", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 251, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L251" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/currency.ts", - "qualifiedName": "Price" - }, - "name": "Price", - "package": "@thirdweb-dev/sdk" - } - }, - { - "id": 1224, - "name": "quantity", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 252, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L252" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/currency.ts", - "qualifiedName": "Amount" - }, - "name": "Amount", - "package": "@thirdweb-dev/sdk" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1222, - 1223, - 1224 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 249, - "character": 30, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L249" - } - ] - } - } - }, - { - "id": 1187, - "name": "MintNFTParams", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The params for the " - }, - { - "kind": "code", - "text": "`useMintNFT`" - }, - { - "kind": "text", - "text": " hook mutation." - } - ], - "blockTags": [ - { - "tag": "@nft", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 142, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L142" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1188, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1189, - "name": "metadata", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 143, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L143" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/core/schema/nft.ts", - "qualifiedName": "NFTMetadataOrUri" - }, - "name": "NFTMetadataOrUri", - "package": "@thirdweb-dev/sdk" - } - }, - { - "id": 1191, - "name": "supply", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 145, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L145" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/currency.ts", - "qualifiedName": "Amount" - }, - "name": "Amount", - "package": "@thirdweb-dev/sdk" - } - }, - { - "id": 1190, - "name": "to", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 144, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L144" - } - ], - "type": { - "type": "reference", - "target": 1162, - "name": "WalletAddress", - "package": "@thirdweb-dev/react-core" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1189, - 1191, - 1190 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 142, - "character": 28, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L142" - } - ] - } - } - }, - { - "id": 1192, - "name": "MintNFTReturnType", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The return type of the " - }, - { - "kind": "code", - "text": "`useMintNFT`" - }, - { - "kind": "text", - "text": " hook." - } - ], - "blockTags": [ - { - "tag": "@nft", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 152, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L152" - } - ], - "typeParameters": [ - { - "id": 1193, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {} - } - ], - "type": { - "type": "conditional", - "checkType": { - "type": "reference", - "target": 1193, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - }, - "extendsType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/classes/erc-721.ts", - "qualifiedName": "Erc721" - }, - "name": "Erc721", - "package": "@thirdweb-dev/sdk" - }, - "trueType": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Awaited" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "ReturnType" - }, - "typeArguments": [ - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "mintTo" - }, - "objectType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/classes/erc-721.ts", - "qualifiedName": "Erc721" - }, - "name": "Erc721", - "package": "@thirdweb-dev/sdk" - } - } - ], - "name": "ReturnType", - "package": "typescript" - } - ], - "name": "Awaited", - "package": "typescript" - }, - "falseType": { - "type": "conditional", - "checkType": { - "type": "reference", - "target": 1193, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - }, - "extendsType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/classes/erc-1155.ts", - "qualifiedName": "Erc1155" - }, - "name": "Erc1155", - "package": "@thirdweb-dev/sdk" - }, - "trueType": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Awaited" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "ReturnType" - }, - "typeArguments": [ - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "mintTo" - }, - "objectType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/classes/erc-1155.ts", - "qualifiedName": "Erc1155" - }, - "name": "Erc1155", - "package": "@thirdweb-dev/sdk" - } - } - ], - "name": "ReturnType", - "package": "typescript" - } - ], - "name": "Awaited", - "package": "typescript" - }, - "falseType": { - "type": "intrinsic", - "name": "never" - } - } - } - }, - { - "id": 1182, - "name": "MintNFTSupplyParams", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The params to pass to " - }, - { - "kind": "code", - "text": "`useMintNFTSupply`" - }, - { - "kind": "text", - "text": "." - } - ], - "blockTags": [ - { - "tag": "@nft", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 132, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L132" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1183, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1185, - "name": "additionalSupply", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 134, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L134" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/currency.ts", - "qualifiedName": "Amount" - }, - "name": "Amount", - "package": "@thirdweb-dev/sdk" - } - }, - { - "id": 1186, - "name": "to", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 135, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L135" - } - ], - "type": { - "type": "reference", - "target": 1162, - "name": "WalletAddress", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 1184, - "name": "tokenId", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 133, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L133" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1185, - 1186, - 1184 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 132, - "character": 34, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L132" - } - ] - } - } - }, - { - "id": 1170, - "name": "NFTContract", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The possible NFT contract types." - } - ], - "blockTags": [ - { - "tag": "@nft", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 90, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L90" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/nft-collection.ts", - "qualifiedName": "NFTCollection" - }, - "name": "NFTCollection", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/edition.ts", - "qualifiedName": "Edition" - }, - "name": "Edition", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/pack.ts", - "qualifiedName": "Pack" - }, - "name": "Pack", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/multiwrap.ts", - "qualifiedName": "Multiwrap" - }, - "name": "Multiwrap", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Exclude" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1198, - "name": "DropContract", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "literal", - "value": "TokenDrop" - } - ], - "name": "Exclude", - "package": "typescript" - } - ] - } - }, - { - "id": 1199, - "name": "RevealableContract", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The possible revealable contract types." - } - ], - "blockTags": [ - { - "tag": "@delayedReveal", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 183, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L183" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/nft-drop.ts", - "qualifiedName": "NFTDrop" - }, - "name": "NFTDrop", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/signature-drop.ts", - "qualifiedName": "SignatureDrop" - }, - "name": "SignatureDrop", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "literal", - "value": null - } - ] - } - }, - { - "id": 1205, - "name": "RevealLazyMintInput", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The params for the " - }, - { - "kind": "inline-tag", - "tag": "@link", - "text": "useRevealLazyMint", - "target": 537 - }, - { - "kind": "text", - "text": " hook mutation." - } - ], - "blockTags": [ - { - "tag": "@delayedReveal", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 212, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L212" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1206, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1207, - "name": "batchId", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 213, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L213" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - }, - { - "id": 1208, - "name": "password", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 214, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L214" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1207, - 1208 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 212, - "character": 34, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L212" - } - ] - } - } - }, - { - "id": 913, - "name": "RolesForContract", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@permissionControl", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/roles.ts", - "line": 31, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/roles.ts#L31" - } - ], - "typeParameters": [ - { - "id": 915, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "ContractWithRoles" - }, - "name": "ContractWithRoles", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "conditional", - "checkType": { - "type": "reference", - "target": 915, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - }, - "extendsType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - }, - "trueType": { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/common/role.ts", - "qualifiedName": "Role" - }, - "name": "Role", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "intersection", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "reflection", - "declaration": { - "id": 914, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/roles.ts", - "line": 34, - "character": 23, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/roles.ts#L34" - } - ] - } - } - ] - } - ] - }, - "falseType": { - "type": "indexedAccess", - "indexType": { - "type": "intrinsic", - "name": "number" - }, - "objectType": { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "roles" - }, - "objectType": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "NonNullable" - }, - "typeArguments": [ - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "roles" - }, - "objectType": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Exclude" - }, - "typeArguments": [ - { - "type": "reference", - "target": 915, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "Exclude", - "package": "typescript" - } - } - ], - "name": "NonNullable", - "package": "typescript" - } - } - } - } - }, - { - "id": 205, - "name": "SelectUIProps", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 240, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L240" - } - ], - "typeParameters": [ - { - "id": 233, - "name": "I", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": 234, - "name": "WalletInstance", - "package": "@thirdweb-dev/react-core" - }, - "default": { - "type": "reference", - "target": 234, - "name": "WalletInstance", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 206, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 215, - "name": "connect", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "connect wallet" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nconst { connect } = props;\n\nasync function handleConnect() {\n const wallet = await connect(someOptions);\n console.log('connected to', wallet);\n}\n```" - }, - { - "kind": "text", - "text": "\n\nIf you need more control over the connection process, you can manually create wallet instance and call the " - }, - { - "kind": "code", - "text": "`connect`" - }, - { - "kind": "text", - "text": " method of the wallet instance instead and use " - }, - { - "kind": "code", - "text": "`setConnectedWallet`" - }, - { - "kind": "text", - "text": " and " - }, - { - "kind": "code", - "text": "`setConnectionStatus`" - }, - { - "kind": "text", - "text": " to set the connected wallet and connection status." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 288, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L288" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 216, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 288, - "character": 11, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L288" - } - ], - "signatures": [ - { - "id": 217, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "parameters": [ - { - "id": 218, - "name": "args", - "variant": "param", - "kind": 32768, - "flags": { - "isRest": true - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "ConnectArgs" - }, - "typeArguments": [ - { - "type": "reference", - "target": 233, - "name": "I", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "ConnectArgs", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "reference", - "target": 233, - "name": "I", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - }, - { - "id": 231, - "name": "connectedWallet", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Connected wallet instance\nThis is set by " - }, - { - "kind": "code", - "text": "`connect`" - }, - { - "kind": "text", - "text": " if connection succeeds or it can be set manually by using " - }, - { - "kind": "code", - "text": "`setConnectedWallet`" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 364, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L364" - } - ], - "type": { - "type": "reference", - "target": 233, - "name": "I", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - }, - { - "id": 232, - "name": "connectedWalletAddress", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Address of the connected wallet instance" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 369, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L369" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 223, - "name": "connectionStatus", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Connection status of the wallet" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 315, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L315" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "ConnectionStatus" - }, - "name": "ConnectionStatus", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 228, - "name": "createWalletInstance", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Create an instance of the wallet. This is only relevant if you are manually creating wallet instance and calling the " - }, - { - "kind": "code", - "text": "`wallet.connect`" - }, - { - "kind": "text", - "text": " method. If you are using the " - }, - { - "kind": "code", - "text": "`connect`" - }, - { - "kind": "text", - "text": " function, this is done automatically." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nconst { createWalletInstance, setConnectionStatus, setConnectedWallet } = props;\n\nasync function handleConnect() {\n const wallet = createWalletInstance(); // <--\n setConnectionStatus('connecting');\n try {\n await wallet.connect(someOptions);\n setConnectedWallet(wallet);\n } catch {\n setConnectionStatus('disconnected');\n }\n}\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 358, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L358" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 229, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 358, - "character": 24, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L358" - } - ], - "signatures": [ - { - "id": 230, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "reference", - "target": 233, - "name": "I", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - } - ] - } - } - }, - { - "id": 214, - "name": "modalSize", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Size of the modal\n\nThis is always " - }, - { - "kind": "code", - "text": "`compact`" - }, - { - "kind": "text", - "text": " on React Native" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 271, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L271" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "compact" - }, - { - "type": "literal", - "value": "wide" - } - ] - } - }, - { - "id": 207, - "name": "onSelect", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Call this function to \"select\" your wallet and render the screen for connecting the wallet" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 246, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L246" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 208, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 246, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L246" - } - ], - "signatures": [ - { - "id": 209, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@returns", - "content": [] - } - ] - }, - "parameters": [ - { - "id": 210, - "name": "selectionData", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "selectionData to be passed to " - }, - { - "kind": "code", - "text": "`connectUI`" - }, - { - "kind": "text", - "text": "'s " - }, - { - "kind": "code", - "text": "`selectionData`" - }, - { - "kind": "text", - "text": " prop" - } - ] - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 224, - "name": "setConnectedWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Set a wallet instance as connected in thirdweb context\nThis is only relevant if you are manually creating wallet instance and calling the " - }, - { - "kind": "code", - "text": "`wallet.connect`" - }, - { - "kind": "text", - "text": " method. If you are using the " - }, - { - "kind": "code", - "text": "`connect`" - }, - { - "kind": "text", - "text": " function, this is done automatically." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nconst { createWalletInstance, setConnectionStatus, setConnectedWallet } = props;\n\nasync function handleConnect() {\n const wallet = createWalletInstance();\n setConnectionStatus('connecting');\n try {\n await wallet.connect(someOptions);\n setConnectedWallet(wallet); // <--\n } catch {\n setConnectionStatus('disconnected');\n }\n}\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 337, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L337" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 225, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 337, - "character": 22, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L337" - } - ], - "signatures": [ - { - "id": 226, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "parameters": [ - { - "id": 227, - "name": "walletInstance", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 233, - "name": "I", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 219, - "name": "setConnectionStatus", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Set the connection status of the wallet.\nThis is only relevant if you are manually creating wallet instance and calling the " - }, - { - "kind": "code", - "text": "`wallet.connect`" - }, - { - "kind": "text", - "text": " method. If you are using the " - }, - { - "kind": "code", - "text": "`connect`" - }, - { - "kind": "text", - "text": " function, this is done automatically." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nconst { createWalletInstance, setConnectionStatus, setConnectedWallet } = props;\n\nasync function handleConnect() {\n const wallet = createWalletInstance();\n setConnectionStatus('connecting'); // <--\n try {\n await wallet.connect(someOptions);\n setConnectedWallet(wallet);\n } catch {\n setConnectionStatus('disconnected'); // <--\n }\n}\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 310, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L310" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 220, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 310, - "character": 23, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L310" - } - ], - "signatures": [ - { - "id": 221, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "parameters": [ - { - "id": 222, - "name": "status", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "ConnectionStatus" - }, - "name": "ConnectionStatus", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 212, - "name": "supportedWallets", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "List of all supported wallets including your wallet.\n\nYou can use this to conditionally render UI based on how many wallets are supported.\nFor example: You can render a larger UI if only one wallet (your wallet) is supported." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 259, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L259" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": 144, - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - }, - { - "id": 213, - "name": "theme", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "theme of the connect wallet modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 264, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L264" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "dark" - }, - { - "type": "literal", - "value": "light" - } - ] - } - }, - { - "id": 211, - "name": "walletConfig", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": " object of your wallet" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 251, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L251" - } - ], - "type": { - "type": "reference", - "target": 144, - "typeArguments": [ - { - "type": "reference", - "target": 233, - "name": "I", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 215, - 231, - 232, - 223, - 228, - 214, - 207, - 224, - 219, - 212, - 213, - 211 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 240, - "character": 71, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L240" - } - ] - } - } - }, - { - "id": 305, - "name": "SetClaimConditionsParams", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The params for the " - }, - { - "kind": "inline-tag", - "tag": "@link", - "text": "useSetClaimConditions", - "target": 341, - "tsLinkText": "" - }, - { - "kind": "text", - "text": " hook mutation." - } - ], - "blockTags": [ - { - "tag": "@claimConditions", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 45, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L45" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 306, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 307, - "name": "phases", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "An array of phases that occur in chronological order." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 49, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L49" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/claim-conditions/claim-conditions.ts", - "qualifiedName": "ClaimConditionInput" - }, - "name": "ClaimConditionInput", - "package": "@thirdweb-dev/sdk" - } - } - }, - { - "id": 308, - "name": "reset", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A boolean value that determines whether to reset the claim conditions or to keep the existing state.\nBy resetting them, any previous claims that were made will be ignored by the claim condition restrictions.\n\nFor example, if you had a limit of 1 token per wallet, and a user claimed a token, then you reset the claim conditions, that user will be able to claim another token.\n\nDefault value is " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": "." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 59, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L59" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 307, - 308 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 45, - "character": 39, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L45" - } - ] - } - } - }, - { - "id": 1167, - "name": "TokenBurnParams", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The parameters to pass to the burn function." - } - ], - "blockTags": [ - { - "tag": "@token", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 80, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L80" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1168, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1169, - "name": "amount", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 81, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L81" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/currency.ts", - "qualifiedName": "Amount" - }, - "name": "Amount", - "package": "@thirdweb-dev/sdk" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1169 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 80, - "character": 30, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L80" - } - ] - } - } - }, - { - "id": 1171, - "name": "TokenContract", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The possible Token contract types." - } - ], - "blockTags": [ - { - "tag": "@token", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 101, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L101" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/token-drop.ts", - "qualifiedName": "TokenDrop" - }, - "name": "TokenDrop", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/token.ts", - "qualifiedName": "Token" - }, - "name": "Token", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "literal", - "value": null - } - ] - } - }, - { - "id": 1163, - "name": "TokenParams", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The parameters to pass to the mint and transfer functions." - } - ], - "blockTags": [ - { - "tag": "@token", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 71, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L71" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1164, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1166, - "name": "amount", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 73, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L73" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/currency.ts", - "qualifiedName": "Amount" - }, - "name": "Amount", - "package": "@thirdweb-dev/sdk" - } - }, - { - "id": 1165, - "name": "to", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 72, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L72" - } - ], - "type": { - "type": "reference", - "target": 1162, - "name": "WalletAddress", - "package": "@thirdweb-dev/react-core" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1166, - 1165 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 71, - "character": 26, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L71" - } - ] - } - } - }, - { - "id": 1173, - "name": "TransferNFTParams", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The params to pass to " - }, - { - "kind": "code", - "text": "`useTransferNFT`" - }, - { - "kind": "text", - "text": "." - } - ], - "blockTags": [ - { - "tag": "@nft", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 113, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L113" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1174, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1177, - "name": "amount", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 116, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L116" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/currency.ts", - "qualifiedName": "Amount" - }, - "name": "Amount", - "package": "@thirdweb-dev/sdk" - } - }, - { - "id": 1175, - "name": "to", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 114, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L114" - } - ], - "type": { - "type": "reference", - "target": 1162, - "name": "WalletAddress", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 1176, - "name": "tokenId", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 115, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L115" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1177, - 1175, - 1176 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 113, - "character": 32, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L113" - } - ] - } - } - }, - { - "id": 493, - "name": "UseContractResult", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@contract", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 187, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L187" - } - ], - "typeParameters": [ - { - "id": 496, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ValidContractInstance" - }, - "name": "ValidContractInstance", - "package": "@thirdweb-dev/sdk" - }, - "default": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - } - } - ], - "type": { - "type": "intersection", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reference", - "target": 496, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - }, - { - "type": "reflection", - "declaration": { - "id": 494, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 495, - "name": "contract", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 190, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L190" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "target": 496, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 495 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 189, - "character": 44, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L189" - } - ] - } - } - ] - } - }, - { - "id": 1266, - "name": "UseWatchTransactionsParams", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/useTransactions.ts", - "line": 8, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/useTransactions.ts#L8" - } - ], - "type": { - "type": "intersection", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Partial" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/functions/watchTransactions.ts", - "qualifiedName": "WatchTransactionsParams" - }, - "name": "WatchTransactionsParams", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "literal", - "value": "onTransactions" - } - ], - "name": "Omit", - "package": "typescript" - } - ], - "name": "Partial", - "package": "typescript" - }, - { - "type": "reflection", - "declaration": { - "id": 1267, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1268, - "name": "limit", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/useTransactions.ts", - "line": 10, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/useTransactions.ts#L10" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1268 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/useTransactions.ts", - "line": 10, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/useTransactions.ts#L10" - } - ] - } - } - ] - } - }, - { - "id": 1162, - "name": "WalletAddress", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A wallet address." - } - ], - "blockTags": [ - { - "tag": "@walletConnection", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/types.ts", - "line": 60, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/types.ts#L60" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/schema/shared/AddressOrEnsSchema.ts", - "qualifiedName": "AddressOrEns" - }, - "name": "AddressOrEns", - "package": "@thirdweb-dev/sdk" - } - }, - { - "id": 144, - "name": "WalletConfig", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 24, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L24" - } - ], - "typeParameters": [ - { - "id": 161, - "name": "I", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": 234, - "name": "WalletInstance", - "package": "@thirdweb-dev/react-core" - }, - "default": { - "type": "reference", - "target": 234, - "name": "WalletInstance", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 145, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 146, - "name": "category", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 25, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L25" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "socialLogin" - }, - { - "type": "literal", - "value": "walletLogin" - } - ] - } - }, - { - "id": 153, - "name": "connectUI", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "UI for connecting wallet" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 32, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L32" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.FC" - }, - "typeArguments": [ - { - "type": "reference", - "target": 162, - "typeArguments": [ - { - "type": "reference", - "target": 161, - "name": "I", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "ConnectUIProps", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "React.FC", - "package": "@types/react" - } - }, - { - "id": 149, - "name": "create", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 28, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L28" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 150, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 28, - "character": 10, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L28" - } - ], - "signatures": [ - { - "id": 151, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "parameters": [ - { - "id": 152, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 235, - "name": "WalletOptions", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": 161, - "name": "I", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - } - ] - } - } - }, - { - "id": 147, - "name": "id", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 26, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L26" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 160, - "name": "isHeadless", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If the wallet can sign transactions without user interaction, set this to true.\n\nBy default is set to " - }, - { - "kind": "code", - "text": "`false`" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 61, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L61" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 155, - "name": "isInstalled", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 37, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L37" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 156, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 37, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L37" - } - ], - "signatures": [ - { - "id": 157, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - } - } - }, - { - "id": 148, - "name": "meta", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 27, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L27" - } - ], - "type": { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "meta" - }, - "objectType": { - "type": "query", - "queryType": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/base.ts", - "qualifiedName": "AbstractClientWallet" - }, - "name": "AbstractClientWallet", - "package": "@thirdweb-dev/wallets", - "preferValues": true - } - } - } - }, - { - "id": 158, - "name": "personalWallets", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "An array of " - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": " that users can use as a personal wallet to connect to your wallet\n\nThis is only required if your wallet requires a personal wallet to be connected such as a Safe Wallet or Smart Wallet\n\nproviding the " - }, - { - "kind": "code", - "text": "`personalWallets`" - }, - { - "kind": "text", - "text": " ensures that autoconnect and ConnectWallet modal works properly for your wallet.\n* autoconnect will connect the last connected personal wallet first and then connect your wallet\n* ConnectWallet modal will reopen once the personal wallet is connected so that you can render UI for connecting your wallet as the next step" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 47, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L47" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": 144, - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - }, - { - "id": 159, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If true, this wallet will be tagged as \"recommended\" in ConnectWallet Modal and will be shown at the top of the list\n\nBy default is set to " - }, - { - "kind": "code", - "text": "`false`" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 54, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L54" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 154, - "name": "selectUI", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "UI for selecting wallet - this UI is rendered in the wallet selection screen" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 36, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L36" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.FC" - }, - "typeArguments": [ - { - "type": "reference", - "target": 205, - "typeArguments": [ - { - "type": "reference", - "target": 161, - "name": "I", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "SelectUIProps", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "React.FC", - "package": "@types/react" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 146, - 153, - 149, - 147, - 160, - 155, - 148, - 158, - 159, - 154 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 24, - "character": 70, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L24" - } - ] - } - } - }, - { - "id": 31, - "name": "WalletIdToWalletTypeMap", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 37, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L37" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 32, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 38, - "name": "blocto", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 43, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L43" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/blocto.ts", - "qualifiedName": "BloctoWallet" - }, - "name": "BloctoWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 34, - "name": "coin98", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 39, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L39" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/coin98.ts", - "qualifiedName": "Coin98Wallet" - }, - "name": "Coin98Wallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 35, - "name": "coinbase", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 40, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L40" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/coinbase-wallet.ts", - "qualifiedName": "CoinbaseWallet" - }, - "name": "CoinbaseWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 36, - "name": "coreWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 41, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L41" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/core-wallet.ts", - "qualifiedName": "CoreWallet" - }, - "name": "CoreWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 54, - "name": "cryptoDefiWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 59, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L59" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/crypto-defi-wallet.ts", - "qualifiedName": "CryptoDefiWallet" - }, - "name": "CryptoDefiWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 48, - "name": "embeddedWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 53, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L53" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/embedded-wallet.ts", - "qualifiedName": "EmbeddedWallet" - }, - "name": "EmbeddedWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 39, - "name": "frame", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 44, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L44" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/frame.ts", - "qualifiedName": "FrameWallet" - }, - "name": "FrameWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 40, - "name": "imToken", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 45, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L45" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/imtoken.ts", - "qualifiedName": "ImTokenWallet" - }, - "name": "ImTokenWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 41, - "name": "localWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 46, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L46" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/local-wallet.ts", - "qualifiedName": "LocalWallet" - }, - "name": "LocalWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 57, - "name": "magicEden", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 62, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L62" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/magic-eden.ts", - "qualifiedName": "MagicEdenWallet" - }, - "name": "MagicEdenWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 42, - "name": "magicLink", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 47, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L47" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/magic.ts", - "qualifiedName": "MagicLink" - }, - "name": "MagicLink", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 33, - "name": "metamask", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 38, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L38" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/metamask.ts", - "qualifiedName": "MetaMaskWallet" - }, - "name": "MetaMaskWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 52, - "name": "okx", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 57, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L57" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/okx.ts", - "qualifiedName": "OKXWallet" - }, - "name": "OKXWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 53, - "name": "oneKey", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 58, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L58" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/onekey.ts", - "qualifiedName": "OneKeyWallet" - }, - "name": "OneKeyWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 43, - "name": "paper", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 48, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L48" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/paper-wallet.ts", - "qualifiedName": "PaperWallet" - }, - "name": "PaperWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 50, - "name": "phantom", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 55, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L55" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/phantom.ts", - "qualifiedName": "PhantomWallet" - }, - "name": "PhantomWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 55, - "name": "rabby", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 60, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L60" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/rabby.ts", - "qualifiedName": "RabbyWallet" - }, - "name": "RabbyWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 37, - "name": "rainbowWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 42, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L42" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/rainbow-wallet.ts", - "qualifiedName": "RainbowWallet" - }, - "name": "RainbowWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 46, - "name": "safe", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 51, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L51" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/safe.ts", - "qualifiedName": "SafeWallet" - }, - "name": "SafeWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 44, - "name": "smartWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 49, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L49" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/smart-wallet.ts", - "qualifiedName": "SmartWallet" - }, - "name": "SmartWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 45, - "name": "tokenBoundSmartWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 50, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L50" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/token-bound-smart-wallet.ts", - "qualifiedName": "TokenBoundSmartWallet" - }, - "name": "TokenBoundSmartWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 47, - "name": "trust", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 52, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L52" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/trust.ts", - "qualifiedName": "TrustWallet" - }, - "name": "TrustWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 49, - "name": "walletConnect", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 54, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L54" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/wallet-connect.ts", - "qualifiedName": "WalletConnect" - }, - "name": "WalletConnect", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 51, - "name": "walletConnectV1", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 56, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L56" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/wallet-connect.ts", - "qualifiedName": "WalletConnect" - }, - "name": "WalletConnect", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 56, - "name": "xdefi", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 61, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L61" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/xdefi.ts", - "qualifiedName": "XDEFIWallet" - }, - "name": "XDEFIWallet", - "package": "@thirdweb-dev/wallets" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 38, - 34, - 35, - 36, - 54, - 48, - 39, - 40, - 41, - 57, - 42, - 33, - 52, - 53, - 43, - 50, - 55, - 37, - 46, - 44, - 45, - 47, - 49, - 51, - 56 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 37, - "character": 38, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L37" - } - ] - } - } - }, - { - "id": 234, - "name": "WalletInstance", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 19, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L19" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/base.ts", - "qualifiedName": "AbstractClientWallet" - }, - "name": "AbstractClientWallet", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 235, - "name": "WalletOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 12, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L12" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/base.ts", - "qualifiedName": "WalletOptions" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 236, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 237, - "name": "chain", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 13, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L13" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../chains/src/index.ts", - "qualifiedName": "Chain" - }, - "name": "Chain", - "package": "@thirdweb-dev/chains" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 237 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/types/wallet.ts", - "line": 12, - "character": 43, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/types/wallet.ts#L12" - } - ] - } - } - ], - "name": "WalletOptions_", - "package": "@thirdweb-dev/wallets", - "qualifiedName": "WalletOptions" - } - }, - { - "id": 1139, - "name": "shortenAddress", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/utils/addresses.ts", - "line": 28, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/utils/addresses.ts#L28" - } - ], - "signatures": [ - { - "id": 1140, - "name": "shortenAddress", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "This function shortens an address if it is a valid EVM address." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The shortened address" - } - ] - }, - { - "tag": "@remarks", - "content": [ - { - "kind": "text", - "text": "Note that this function will not check if the address is an ENS." - } - ] - }, - { - "tag": "@example", - "name": "Calling shortenAddress with extraShort set to true", - "content": [ - { - "kind": "code", - "text": "```ts\nconst address = shortenIfAddress(\"0x1234567890123456789012345678901234567890\", true); // result will be \"0x1234...890\"\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/utils/addresses.ts", - "line": 28, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/utils/addresses.ts#L28" - } - ], - "parameters": [ - { - "id": 1141, - "name": "address", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The address to shorten" - } - ] - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1142, - "name": "extraShort", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If true, show the first 4 and last 3 characters" - } - ] - }, - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "true" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 1105, - "name": "ThirdwebSDKProvider", - "variant": "declaration", - "kind": 64, - "flags": { - "isPublic": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The " - }, - { - "kind": "code", - "text": "`ThirdwebSDKProvider`" - }, - { - "kind": "text", - "text": " is used when you want to provide your own wallet connection logic and just use the thirdweb SDK to interact with smart contracts and the blockchain.\nThis means you can use everything in the SDK except for wallet connection-related components and hooks. if you need those please use the " - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": " instead.\n\n" - }, - { - "kind": "code", - "text": "`ThirdwebSDKProvider`" - }, - { - "kind": "text", - "text": " allows you to set a provider & signer to the thirdweb SDK." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "Wrap your app in the ThirdwebSDKProvider to access the SDK’s functionality from anywhere in your app.\n\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { ThirdwebSDKProvider } from \"@thirdweb-dev/react\";\nimport { ethers } from \"ethers\";\n\n// Example shows how to get the signer from the injected provider ( wallet extension )\nfunction Example() {\n return (\n \n \n \n )\n}\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/providers/thirdweb-sdk-provider.tsx", - "line": 277, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/providers/thirdweb-sdk-provider.tsx#L277" - } - ], - "signatures": [ - { - "id": 1106, - "name": "ThirdwebSDKProvider", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/providers/thirdweb-sdk-provider.tsx", - "line": 277, - "character": 35, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/providers/thirdweb-sdk-provider.tsx#L277" - } - ], - "typeParameters": [ - { - "id": 1107, - "name": "TChains", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../chains/src/types.ts", - "qualifiedName": "Chain" - }, - "name": "Chain", - "package": "@thirdweb-dev/chains" - } - } - } - ], - "parameters": [ - { - "id": 1108, - "name": "props", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The props for the ThirdwebSDKProvider component\n\n### clientId (optional)\nThe clientId prop is required to use the thirdweb infrastructure services with the SDK.\n\n### activeChain (optional)\nThe activeChain prop determines which chain you want your app to be operating on.\n\nThere are 1000+ chains available in the " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/chains`" - }, - { - "kind": "text", - "text": " package. Import the chain you want and pass it to the " - }, - { - "kind": "code", - "text": "`activeChain`" - }, - { - "kind": "text", - "text": " prop.\n\nYou can override the imported object or pass a custom chain object with required properties.\n\nYou can get a client ID by creating an API key on [thirdweb dashboard](https://thirdweb.com/dashboard/settings/api-keys)\n\n### supportedChains (optional)\nAn array of chains supported by your app.\nThere are 1000+ chains available in the " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/chains`" - }, - { - "kind": "text", - "text": " package. You can import the chain you want and pass it to the " - }, - { - "kind": "code", - "text": "`supportedChains`" - }, - { - "kind": "text", - "text": " prop in an array.\n\nIf not provided, it will default to the default supported chains supported by the thirdweb SDK.\n\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { Ethereum, Polygon } from \"@thirdweb-dev/chains\";\n\nfunction Example() {\n return (\n \n \n \n )\n}\n```" - }, - { - "kind": "text", - "text": "\n\n### signer (optional)\nA signer is an abstraction of an Ethereum Account, which can be used to sign messages and initiate transactions.\n\nSince the ThirdwebSDKProvider is used when you want to provide your own wallet connection logic, you will need to provide a signer prop to inform the SDK of the wallet you want to use to sign transactions.\n\nLibraries such as ethers.js, web3.js, wagmi, etc. all provide ways to get a signer.\n\nTo use this signer with the SDK, pass it to the " - }, - { - "kind": "code", - "text": "`signer`" - }, - { - "kind": "text", - "text": " prop. If the signer is connected, the SDK will use this wallet to sign transactions for all write operations on the blockchain.\n\n### sdkOptions (optional)\nThe thirdweb SDK Options to pass to the thirdweb SDK which includes Gas settings, gasless transactions, RPC configuration, and more.\n\nThis Overrides any of the default values for the SDK. If not provided, it uses sensible defaults.\n\n### storageInterface (optional)\nOverride the default [Storage](https://portal.thirdweb.com/infrastructure/storage/overview) interface used by the SDK.\n\nIt allows you to create an instance of " - }, - { - "kind": "code", - "text": "`ThirdwebStorage`" - }, - { - "kind": "text", - "text": " with your own customized config, and pass it to the SDK.\n\n*This requires the " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/storage`" - }, - { - "kind": "text", - "text": " package to be installed.*\n\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { ThirdwebSDKProvider } from \"@thirdweb-dev/react\";\nimport {\n ThirdwebStorage,\n StorageDownloader,\n IpfsUploader,\n} from \"@thirdweb-dev/storage\";\n\n// Configure a custom ThirdwebStorage instance\nconst gatewayUrls = {\n \"ipfs://\": [\n \"https://gateway.ipfscdn.io/ipfs/\",\n \"https://cloudflare-ipfs.com/ipfs/\",\n \"https://ipfs.io/ipfs/\",\n ],\n};\nconst downloader = new StorageDownloader();\nconst uploader = new IpfsUploader();\nconst storage = new ThirdwebStorage({ uploader, downloader, gatewayUrls });\n\n// Provide the custom storage instance to the SDK\nfunction MyApp() {\n return (\n \n \n \n );\n}\n```" - }, - { - "kind": "text", - "text": "\n\n### authConfig (optional)\nThe configuration object for setting up [Auth](https://portal.thirdweb.com/wallets/auth); allowing users to sign in with their wallet.\n\n### secretKey (optional)\nsecretKey for thirdweb services. This is only required if server side rendering is being used." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.PropsWithChildren" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1113, - "typeArguments": [ - { - "type": "reference", - "target": 1107, - "name": "TChains", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "ThirdwebSDKProviderProps", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "PropsWithChildren", - "package": "@types/react", - "qualifiedName": "React.PropsWithChildren" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/jsx-runtime.d.ts", - "qualifiedName": "JSX.Element" - }, - "name": "Element", - "package": "@types/react", - "qualifiedName": "JSX.Element" - } - } - ] - }, - { - "id": 651, - "name": "useAcceptDirectListingOffer", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2706, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2706" - } - ], - "signatures": [ - { - "id": 652, - "name": "useAcceptDirectListingOffer", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for accepting an offer from a direct listing on a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contract.\n\nAllows the seller (the user who listed the NFT for sale) to accept an offer on their listing, triggering a sale event, meaning the:\n- NFT(s) are transferred from the seller to the buyer.\n- Funds from the offeror are sent to the seller." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nimport {\n useAcceptDirectListingOffer,\n useContract,\n Web3Button,\n} from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace\");\n const {\n mutateAsync: acceptDirectOffer,\n isLoading,\n error,\n } = useAcceptDirectListingOffer(contract);\n\n return (\n \n acceptDirectOffer({\n listingId: \"{{listing_id}}\",\n addressOfOfferor: \"{{offeror_address}}\",\n })\n }\n >\n Accept Offer\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Mutation object to accept an offer on a direct listing\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useAcceptDirectListingOffer(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\n\nThe mutation function accepts an object as argument with the following properties:\n\n#### listingId\nThe " - }, - { - "kind": "code", - "text": "`listingId`" - }, - { - "kind": "text", - "text": " of the listing you wish to accept.\n\n#### addressOfOfferor\nThe wallet address of the user who made the offer you wish to accept.\n\nThe " - }, - { - "kind": "code", - "text": "`useContractEvents`" - }, - { - "kind": "text", - "text": " hook can be used to read all " - }, - { - "kind": "code", - "text": "`NewOffer`" - }, - { - "kind": "text", - "text": " events on your " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contract." - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2706, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2706" - } - ], - "parameters": [ - { - "id": 653, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplace.ts", - "qualifiedName": "Marketplace" - }, - "name": "Marketplace", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 654, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/core/classes/internal/marketplace/marketplace-direct.d.ts", - "line": 146, - "character": 74 - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": 1225, - "name": "AcceptDirectOffer", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 990, - "name": "useAccountAdmins", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account.ts", - "line": 70, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account.ts#L70" - } - ], - "signatures": [ - { - "id": 991, - "name": "useAccountAdmins", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Get all the admins on a smart wallet account" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nconst { data: accounts, isLoading, error } = useAccountAdmins(contract);\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, contains an array of all admins of the provided account" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "Account" - } - ] - }, - { - "tag": "@smartWallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account.ts", - "line": 70, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account.ts#L70" - } - ], - "parameters": [ - { - "id": 992, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of " - }, - { - "kind": "code", - "text": "`SmartContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+contracts@5.7.0/node_modules/@ethersproject/contracts/src.ts/index.ts", - "qualifiedName": "BaseContract" - }, - "name": "BaseContract", - "package": "@ethersproject/contracts" - } - ], - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": 1162, - "name": "WalletAddress", - "package": "@thirdweb-dev/react-core" - } - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 993, - "name": "useAccountAdminsAndSigners", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account.ts", - "line": 103, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account.ts#L103" - } - ], - "signatures": [ - { - "id": 994, - "name": "useAccountAdminsAndSigners", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Get all signers and admins on a smart wallet account.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useAccountAdminsAndSigners } from \"@thirdweb-dev/react\";\n\nconst { data: accounts, isLoading, error } = useAccountAdminsAndSigners(contract);\n```" - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property containing an array of all admins and signers" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "Account" - } - ] - }, - { - "tag": "@smartWallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account.ts", - "line": 103, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account.ts#L103" - } - ], - "parameters": [ - { - "id": 995, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of " - }, - { - "kind": "code", - "text": "`SmartContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+contracts@5.7.0/node_modules/@ethersproject/contracts/src.ts/index.ts", - "qualifiedName": "BaseContract" - }, - "name": "BaseContract", - "package": "@ethersproject/contracts" - } - ], - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/account.ts", - "qualifiedName": "SignerWithPermissions" - }, - "name": "SignerWithPermissions", - "package": "@thirdweb-dev/sdk" - } - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 969, - "name": "useAccounts", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account-factory.ts", - "line": 38, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account-factory.ts#L38" - } - ], - "signatures": [ - { - "id": 970, - "name": "useAccounts", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Get all accounts" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nconst { data: accounts, isLoading, error } = useAccounts(contract);\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Query result object that includes an array of all accounts with their associated admin" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "AccountFactory" - } - ] - }, - { - "tag": "@smartWallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account-factory.ts", - "line": 38, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account-factory.ts#L38" - } - ], - "parameters": [ - { - "id": 971, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a account factory contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+contracts@5.7.0/node_modules/@ethersproject/contracts/src.ts/index.ts", - "qualifiedName": "BaseContract" - }, - "name": "BaseContract", - "package": "@ethersproject/contracts" - } - ], - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 975, - "name": "useAccountsForAddress", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account-factory.ts", - "line": 71, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account-factory.ts#L71" - } - ], - "signatures": [ - { - "id": 976, - "name": "useAccountsForAddress", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Get all accounts associated with the provided address" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nconst { data: accountsForAddress, isLoading, error } = useAccountsForAddress(contract, \"{{account_address}}\");\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Query result object that includes an array of all accounts associated with the address" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "AccountFactory" - } - ] - }, - { - "tag": "@smartWallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account-factory.ts", - "line": 71, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account-factory.ts#L71" - } - ], - "parameters": [ - { - "id": 977, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a account factory contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+contracts@5.7.0/node_modules/@ethersproject/contracts/src.ts/index.ts", - "qualifiedName": "BaseContract" - }, - "name": "BaseContract", - "package": "@ethersproject/contracts" - } - ], - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 978, - "name": "address", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The address to get associated accounts for" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 979, - "name": "useAccountSigners", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account.ts", - "line": 39, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account.ts#L39" - } - ], - "signatures": [ - { - "id": 980, - "name": "useAccountSigners", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Get all signers of account" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nconst { data: accounts, isLoading, error } = useAccountSigners(contract);\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property contains an array of all signers" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "Account" - } - ] - }, - { - "tag": "@smartWallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account.ts", - "line": 39, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account.ts#L39" - } - ], - "parameters": [ - { - "id": 981, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`SmartContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+contracts@5.7.0/node_modules/@ethersproject/contracts/src.ts/index.ts", - "qualifiedName": "BaseContract" - }, - "name": "BaseContract", - "package": "@ethersproject/contracts" - } - ], - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/account.ts", - "qualifiedName": "SignerWithPermissions" - }, - "name": "SignerWithPermissions", - "package": "@thirdweb-dev/sdk" - } - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 309, - "name": "useActiveClaimCondition", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 135, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L135" - } - ], - "signatures": [ - { - "id": 310, - "name": "useActiveClaimCondition", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for getting the active claim condition for a given drop contract.\n\nAvailable for contracts that implement the \"ClaimConditions\" interface;\nsuch as [NFT Drop](https://thirdweb.com/thirdweb.eth/DropERC721), [Edition Drop](https://thirdweb.com/thirdweb.eth/DropERC1155), and [Token Drop](https://thirdweb.com/thirdweb.eth/DropERC20)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nimport { useActiveClaimCondition, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = useActiveClaimCondition(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A query result object with the currently active claim condition" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC20ClaimPhasesV2 | ERC20ClaimPhasesV1 | ERC20ClaimConditionsV2 | ERC20ClaimConditionsV1 | ERC721ClaimPhasesV2 | ERC721ClaimPhasesV1 | ERC721ClaimConditionsV2 | ERC721ClaimConditionsV1 | ERC1155ClaimPhasesV2 | ERC1155ClaimPhasesV1 | ERC1155ClaimConditionsV2 | ERC1155ClaimConditionsV1" - } - ] - }, - { - "tag": "@claimConditions", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 135, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L135" - } - ], - "parameters": [ - { - "id": 311, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of contract that implement the \"ClaimConditions\" interface;\nsuch as [NFT Drop](https://thirdweb.com/thirdweb.eth/DropERC721), [Edition Drop](https://thirdweb.com/thirdweb.eth/DropERC1155), and [Token Drop](https://thirdweb.com/thirdweb.eth/DropERC20)." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1198, - "name": "DropContract", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 312, - "name": "tokenId", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "When using the hook with ERC1155 contracts such as the [Edition Drop](https://thirdweb.com/thirdweb.eth/DropERC1155), pass the " - }, - { - "kind": "code", - "text": "`tokenId`" - }, - { - "kind": "text", - "text": " as the second parameter; as each token can have unique claim conditions.\n\nPass " - }, - { - "kind": "code", - "text": "`undefined`" - }, - { - "kind": "text", - "text": ", or leave this field out if you are using ERC721 or ERC20 drop contracts.\n\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { useActiveClaimCondition, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n\n // \"data\" now includes a \"snapshot\" property that contains the allowlist.\n const { data, isLoading, error } = useActiveClaimCondition(\n contract,\n 0, // Token ID required for ERC1155 contracts here.\n );\n}\n```" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - }, - { - "id": 313, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Additional options to pass to the claim condition fetch\n\n#### withAllowlist\n\nBy default, the hook will not include the allowlist or \"snapshot\" in the returned data. To include the allowlist in the returned data, pass " - }, - { - "kind": "code", - "text": "`withAllowlist: true`" - }, - { - "kind": "text", - "text": " in options object.\n\nThis will add a snapshot property to the returned data, which contains the allowlist in an array.\n\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { useActiveClaimCondition, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n\n // \"data\" now includes a \"snapshot\" property that contains the allowlist.\n const { data, isLoading, error } = useActiveClaimCondition(\n contract,\n undefined, // Token ID required for ERC1155 contracts here.\n {\n withAllowlist: true,\n },\n );\n}\n```" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/claim-conditions/claim-conditions.ts", - "qualifiedName": "ClaimConditionFetchOptions" - }, - "name": "ClaimConditionFetchOptions", - "package": "@thirdweb-dev/sdk" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/claim-conditions/claim-conditions.ts", - "qualifiedName": "ClaimCondition" - }, - "name": "ClaimCondition", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 336, - "name": "useActiveClaimConditionForWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 533, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L533" - } - ], - "signatures": [ - { - "id": 337, - "name": "useActiveClaimConditionForWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for getting the active claim condition on a drop contract for a specific wallet address.\n\nEach wallet address can have unique claim conditions at any given time. This hook allows you to get the active claim condition for a specific wallet address at this time.\n\nThis is available for available for contracts that implement the \"ClaimConditions\" interface; such as [NFT Drop](https://thirdweb.com/thirdweb.eth/DropERC721), [Edition Drop](https://thirdweb.com/thirdweb.eth/DropERC1155), and [Token Drop](https://thirdweb.com/thirdweb.eth/DropERC20).\n\n ---\n\n- Returns the claim condition specific to the wallet address if found in the claimer snapshot.\n- Returns the default claim condition on the contract if the address is not found in the claimer snapshot.\n- Populates the error field if there is no active claim condition on the contract." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nimport {\n useActiveClaimConditionForWallet,\n useContract,\n useAddress,\n} from \"@thirdweb-dev/react\";\n\nfunction App() {\n const address = useAddress();\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = useActiveClaimConditionForWallet(\n contract,\n address,\n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The active claim condition for the wallet address or " - }, - { - "kind": "code", - "text": "`null`" - }, - { - "kind": "text", - "text": " if there is no active claim condition" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC20ClaimPhasesV2 | ERC20ClaimPhasesV1 | ERC20ClaimConditionsV2 | ERC20ClaimConditionsV1 | ERC721ClaimPhasesV2 | ERC721ClaimPhasesV1 | ERC721ClaimConditionsV2 | ERC721ClaimConditionsV1 | ERC1155ClaimPhasesV2 | ERC1155ClaimPhasesV1 | ERC1155ClaimConditionsV2 | ERC1155ClaimConditionsV1" - } - ] - }, - { - "tag": "@claimConditions", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 533, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L533" - } - ], - "parameters": [ - { - "id": 338, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a contract that extends the ERC20, ERC721 or ERC1155 spec and implements the \"ClaimConditions\" extension." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1198, - "name": "DropContract", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 339, - "name": "walletAddress", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The wallet address to check the active claim condition for. You can use the " - }, - { - "kind": "code", - "text": "`useAddress`" - }, - { - "kind": "text", - "text": " hook to get the currently connected wallet's address." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 340, - "name": "tokenId", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "When using the hook with ERC1155 contracts, pass the " - }, - { - "kind": "code", - "text": "`tokenId`" - }, - { - "kind": "text", - "text": " as the third parameter; as each token can have unique claim conditions.\n\nPass " - }, - { - "kind": "code", - "text": "`undefined`" - }, - { - "kind": "text", - "text": ", or leave this field out if you are using ERC721 or ERC20 drop contracts." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/claim-conditions/claim-conditions.ts", - "qualifiedName": "ClaimCondition" - }, - "name": "ClaimCondition", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "literal", - "value": null - } - ] - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 587, - "name": "useActiveListings", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1340, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1340" - } - ], - "signatures": [ - { - "id": 588, - "name": "useActiveListings", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for fetching all active listings from a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contract.\n\n__Note: This hook is only for Marketplace contracts. For Marketplace V3 contracts, use " - }, - { - "kind": "code", - "text": "`useValidDirectListings`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`useValidEnglishAuctions`" - }, - { - "kind": "text", - "text": " instead__" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nimport { useActiveListings, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace\");\n const { data, isLoading, error } = useActiveListings(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, returns an array containing both " - }, - { - "kind": "code", - "text": "`AuctionListing`" - }, - { - "kind": "text", - "text": " and " - }, - { - "kind": "code", - "text": "`DirectListing`" - }, - { - "kind": "text", - "text": " objects.\n\nUse the " - }, - { - "kind": "code", - "text": "`type`" - }, - { - "kind": "text", - "text": " property to determine which type of listing each one is.\n\n#### AuctionListing\n\n" - }, - { - "kind": "code", - "text": "```ts\n{\n // The id of the listing\n id: string;\n\n // The address of the asset being listed.\n assetContractAddress: string;\n\n // The ID of the token to list.\n tokenId: BigNumberish;\n\n // The asset being listed.\n asset: NFTMetadata;\n\n // The start time of the listing.\n startTimeInEpochSeconds: BigNumberish;\n\n // Number of seconds until the auction expires.\n endTimeInEpochSeconds: BigNumberish;\n\n // The quantity of tokens in the listing.\n // For ERC721s, this value should always be 1\n quantity: BigNumberish;\n\n // The address of the currency to accept for the listing.\n currencyContractAddress: string;\n\n // The reserve price is the minimum price that a bid must be in order to be accepted.\n reservePrice: BigNumber;\n\n // The buyout price of the listing.\n buyoutPrice: BigNumber;\n\n // The `CurrencyValue` of the buyout price listing.\n // Useful for displaying the price information.\n buyoutCurrencyValuePerToken: CurrencyValue;\n\n // The `CurrencyValue` of the reserve price.\n // Useful for displaying the price information.\n reservePriceCurrencyValuePerToken: CurrencyValue;\n\n // The address of the seller.\n sellerAddress: string;\n\n // Listing type Enum\n type: ListingType.Auction;\n}\n```" - }, - { - "kind": "text", - "text": "\n\n### DirectListing\n\n" - }, - { - "kind": "code", - "text": "```ts\n{\n // The id of the listing.\n id: string;\n\n //The address of the asset being listed.\n assetContractAddress: string;\n\n // The ID of the token to list.\n tokenId: BigNumberish;\n\n //The asset being listed.\n asset: NFTMetadata;\n\n //The start time of the listing.\n startTimeInSeconds: BigNumberish;\n\n //Number of seconds until the listing expires.\n secondsUntilEnd: BigNumberish;\n\n // The quantity of tokens to include in the listing.\n // For ERC721s, this value should always be 1\n quantity: BigNumberish;\n\n // The address of the currency to accept for the listing.\n currencyContractAddress: string;\n\n // The `CurrencyValue` of the listing. Useful for displaying the price information.\n buyoutCurrencyValuePerToken: CurrencyValue;\n\n // The buyout price of the listing.\n buyoutPrice: BigNumber;\n\n // The address of the seller.\n sellerAddress: string;\n\n // Listing type Enum\n type: ListingType.Direct;\n}\n```" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1340, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1340" - } - ], - "parameters": [ - { - "id": 589, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplace.ts", - "qualifiedName": "Marketplace" - }, - "name": "Marketplace", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 590, - "name": "filter", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "By default, the hook returns all active listings from the marketplace.\n\nYou can filter the results by providing a filter object as the second argument for the sake of pagination & filtering\n\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { useActiveListings, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace\");\n\n const { data, isLoading, error } = useActiveListings(\n contract,\n {\n seller: \"{{wallet_address}}\", // Filter by seller\n tokenContract: \"{{contract_address}}\", // Filter by token contract\n offeror: \"{{wallet_address}}\", // Filter by offeror\n tokenId: \"{{token_id}}\", // Filter by token ID\n count: 10, // Limit the number of results\n start: 0, // Start from the nth result (useful for pagination)\n },\n );\n}\n```" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplace/MarketPlaceFilter.ts", - "qualifiedName": "MarketplaceFilter" - }, - "name": "MarketplaceFilter", - "package": "@thirdweb-dev/sdk" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplace/AuctionListing.ts", - "qualifiedName": "AuctionListing" - }, - "name": "AuctionListing", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplace/DirectListing.ts", - "qualifiedName": "DirectListing" - }, - "name": "DirectListing", - "package": "@thirdweb-dev/sdk" - } - ] - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 982, - "name": "useAddAdmin", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account.ts", - "line": 284, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account.ts#L284" - } - ], - "signatures": [ - { - "id": 983, - "name": "useAddAdmin", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Add an additional admin on the smart wallet account" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useAddAdmin } from \"@thirdweb-dev/react\";\n\nconst adminAddress = \"{{admin_address}}\";\n\nconst Component = () => {\n const { mutate: addAdmin, isLoading, error } = useAddAdmin();\n\n if (error) {\n console.error(\"failed to add admin\", error);\n }\n\n return (\n \n );\n};\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "mutation object to add given address as an admin" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "Account" - } - ] - }, - { - "tag": "@smartWallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account.ts", - "line": 284, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account.ts#L284" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/types.ts", - "qualifiedName": "TransactionResult" - }, - "name": "TransactionResult", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 121, - "name": "useAddress", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 155, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L155" - } - ], - "signatures": [ - { - "id": 122, - "name": "useAddress", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Get the address of the connected wallet.\n\nReturns " - }, - { - "kind": "code", - "text": "`undefined`" - }, - { - "kind": "text", - "text": " if no wallet is connected." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nimport { useAddress } from \"@thirdweb-dev/react\"\n\nfunction Example() {\n const address = useAddress()\n\n return
{address}
\n}\n```" - } - ] - }, - { - "tag": "@walletConnection", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 155, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L155" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - } - ] - }, - { - "id": 851, - "name": "useAirdropNFT", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 910, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L910" - } - ], - "signatures": [ - { - "id": 852, - "name": "useAirdropNFT", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for airdropping [" - }, - { - "kind": "code", - "text": "`ERC1155`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155) NFT tokens to multiple wallet addresses at once.\n\nAvailable to use on smart contracts that implement the " - }, - { - "kind": "code", - "text": "`ERC1155`" - }, - { - "kind": "text", - "text": " standard.\n\nPerforms a batch transfer from the connected wallet to the specified addresses.\nThis means you need to have the total number of tokens you wish to airdrop available in the wallet that performs this transaction." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useAirdropNFT, useContract, Web3Button } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { mutateAsync: airdropNft, isLoading, error } = useAirdropNFT(contract);\n\n return (\n \n airdropNft({\n addresses: [\n {\n address: \"0x123\",\n quantity: 1,\n },\n ],\n tokenId: tokenId,\n })\n }\n >\n Airdrop NFT\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Mutation object that to transfer batch NFTs\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useAirdropNFT(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\nThe mutation function takes an object with the following properties:\n\n#### tokenId\nThe token ID of the NFT to airdrop.\n\n#### addresses\nAn array of objects containing an " - }, - { - "kind": "code", - "text": "`address`" - }, - { - "kind": "text", - "text": " and " - }, - { - "kind": "code", - "text": "`quantity`" - }, - { - "kind": "text", - "text": " of NFTs to airdrop to each address." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC1155" - } - ] - }, - { - "tag": "@nft", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 910, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L910" - } - ], - "parameters": [ - { - "id": 853, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`Erc1155`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/classes/erc-1155.ts", - "qualifiedName": "Erc1155" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/eips.ts", - "qualifiedName": "BaseERC1155" - }, - "name": "BaseERC1155", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/eips.ts", - "qualifiedName": "BaseSignatureMintERC1155" - }, - "name": "BaseSignatureMintERC1155", - "package": "@thirdweb-dev/sdk" - } - ] - } - ], - "name": "Erc1155", - "package": "@thirdweb-dev/sdk" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 854, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/core/classes/erc-1155.d.ts", - "line": 233, - "character": 91 - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": 1178, - "name": "AirdropNFTParams", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 879, - "name": "useAllRoleMembers", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/roles.ts", - "line": 98, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/roles.ts#L98" - } - ], - "signatures": [ - { - "id": 880, - "name": "useAllRoleMembers", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for getting all wallet addresses that have a role in a smart contract.\n\nAvailable to use on contracts that implement [" - }, - { - "kind": "code", - "text": "`Permissions`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/general/Permissions)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useAllRoleMembers, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = useAllRoleMembers(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, is an object, where the keys are the role names and the values are arrays of wallet addresses that have that role.\n\nFor example, if the contract has two roles, " - }, - { - "kind": "code", - "text": "`admin`" - }, - { - "kind": "text", - "text": " and " - }, - { - "kind": "code", - "text": "`transfer`" - }, - { - "kind": "text", - "text": ", and the " - }, - { - "kind": "code", - "text": "`admin`" - }, - { - "kind": "text", - "text": " role has two members, the " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property will look like this:\n\n" - }, - { - "kind": "code", - "text": "```ts\n{\n admin: [\"0x1234\", \"0x5678\"],\n transfer: [],\n}\n```" - }, - { - "kind": "text", - "text": "\n\n#### Type\n\n" - }, - { - "kind": "code", - "text": "```ts\nRecord<\n | \"admin\"\n | \"transfer\"\n | \"minter\"\n | \"pauser\"\n | \"lister\"\n | \"asset\"\n | \"unwrap\"\n | \"factory\"\n | (string & {}),\n string[]\n> | undefined;\n```" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "PermissionsEnumerable" - } - ] - }, - { - "tag": "@permissionControl", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/roles.ts", - "line": 98, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/roles.ts#L98" - } - ], - "typeParameters": [ - { - "id": 881, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "ContractWithRoles" - }, - "name": "ContractWithRoles", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 882, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`SmartContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 881, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Awaited" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "reference", - "target": 913, - "typeArguments": [ - { - "type": "reference", - "target": 881, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RolesForContract", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - ], - "name": "Record", - "package": "typescript" - } - ], - "name": "Awaited", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 1086, - "name": "useAppURI", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/app.ts", - "line": 33, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/app.ts#L33" - } - ], - "signatures": [ - { - "id": 1087, - "name": "useAppURI", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Get App URI of the contract" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nconst { data: contractMetadata, isLoading, error } = useAppURI(contract);\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Query result object that includes the appURI of the contract" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "AppURI" - } - ] - }, - { - "tag": "@appURI", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/app.ts", - "line": 33, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/app.ts#L33" - } - ], - "typeParameters": [ - { - "id": 1088, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ValidContractInstance" - }, - "name": "ValidContractInstance", - "package": "@thirdweb-dev/sdk" - } - } - ], - "parameters": [ - { - "id": 1089, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The " - }, - { - "kind": "code", - "text": "`SmartContract`" - }, - { - "kind": "text", - "text": " instance of the contract to get the appURI of" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1088, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 599, - "name": "useAuctionWinner", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1539, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1539" - } - ], - "signatures": [ - { - "id": 600, - "name": "useAuctionWinner", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for getting the winner of an auction (or english auction) on a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " or [MarketplaceV3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contract." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nimport { useAuctionWinner, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace\");\n const { data, isLoading, error } = useAuctionWinner(\n contract,\n listingId, // The listing id of the item that you want to get the auction winner for\n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, contains a " - }, - { - "kind": "code", - "text": "`string`" - }, - { - "kind": "text", - "text": " representing the address of the auction winner, or " - }, - { - "kind": "code", - "text": "`undefined`" - }, - { - "kind": "text", - "text": " if there is no winner." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "EnglishAuctions" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1539, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1539" - } - ], - "parameters": [ - { - "id": 601, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`MarketplaceV3`" - }, - { - "kind": "text", - "text": " contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplace.ts", - "qualifiedName": "Marketplace" - }, - "name": "Marketplace", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplacev3.ts", - "qualifiedName": "MarketplaceV3" - }, - "name": "MarketplaceV3", - "package": "@thirdweb-dev/sdk" - } - ] - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 602, - "name": "listingId", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The listing ID of the item that you want to get the auction winner for.\n\nThe listing must be an auction (or english auction) listing, the hook will populate the error property if it is not." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 996, - "name": "useAuth", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useAuth.ts", - "line": 10, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useAuth.ts#L10" - } - ], - "signatures": [ - { - "id": 997, - "name": "useAuth", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to get " - }, - { - "kind": "code", - "text": "`ThirdwebAuth`" - }, - { - "kind": "text", - "text": " instance" - } - ], - "blockTags": [ - { - "tag": "@auth", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useAuth.ts", - "line": 10, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useAuth.ts#L10" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../auth/src/core/auth.ts", - "qualifiedName": "ThirdwebAuth" - }, - "name": "ThirdwebAuth", - "package": "@thirdweb-dev/auth" - } - ] - } - } - ] - }, - { - "id": 110, - "name": "useBalance", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 51, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L51" - } - ], - "signatures": [ - { - "id": 111, - "name": "useBalance", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for getting a wallet's current balance of native or (optional) ERC20 token balance" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "### get the balance of the native token\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useBalance } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { data, isLoading } = useBalance();\n}\n```" - }, - { - "kind": "text", - "text": "\n\n### get the balance of any other token\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useBalance } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { data, isLoading } = useBalance(tokenAddress);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property contains the token's balance in the " - }, - { - "kind": "code", - "text": "`value`" - }, - { - "kind": "text", - "text": " property as a " - }, - { - "kind": "code", - "text": "`BigNumber`" - }, - { - "kind": "text", - "text": " object." - } - ] - }, - { - "tag": "@token", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 51, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L51" - } - ], - "parameters": [ - { - "id": 112, - "name": "tokenAddress", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The address of the token contract, if not provided, it defaults to the native token" - } - ] - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 113, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 117, - "name": "decimals", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 56, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L56" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 118, - "name": "displayValue", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 57, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L57" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 116, - "name": "name", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 55, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L55" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 114, - "name": "symbol", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 53, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L53" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 115, - "name": "value", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 54, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L54" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumber" - }, - "name": "BigNumber", - "package": "@ethersproject/bignumber" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 117, - 118, - 116, - 114, - 115 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 52, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L52" - } - ] - } - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 129, - "name": "useBalanceForAddress", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 101, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L101" - } - ], - "signatures": [ - { - "id": 130, - "name": "useBalanceForAddress", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "This hook is similar to the " - }, - { - "kind": "code", - "text": "`useBalance`" - }, - { - "kind": "text", - "text": " hook, but it for fetching the native token balance of any given wallet address.\n\nThis hook only fetches the native token balance of the given wallet address. If you want to get the ERC20 balance from a given wallet, use " - }, - { - "kind": "code", - "text": "`useTokenBalance`" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nconst { data, isLoading } = useBalanceForAddress(walletAddress)\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property contains the native token's balance in the " - }, - { - "kind": "code", - "text": "`value`" - }, - { - "kind": "text", - "text": " property as a " - }, - { - "kind": "code", - "text": "`BigNumber`" - }, - { - "kind": "text", - "text": " object." - } - ] - }, - { - "tag": "@token", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 101, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L101" - } - ], - "parameters": [ - { - "id": 131, - "name": "walletAddress", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The address of the wallet that you want to get the native balance" - } - ] - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 132, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 136, - "name": "decimals", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 106, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L106" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 137, - "name": "displayValue", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 107, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L107" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 135, - "name": "name", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 105, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L105" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 133, - "name": "symbol", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 103, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L103" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 134, - "name": "value", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 104, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L104" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumber" - }, - "name": "BigNumber", - "package": "@ethersproject/bignumber" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 136, - 137, - 135, - 133, - 134 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 102, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L102" - } - ] - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 513, - "name": "useBatchesToReveal", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 299, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L299" - } - ], - "signatures": [ - { - "id": 514, - "name": "useBatchesToReveal", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for fetching batches of lazy-minted NFTs that were set to be revealed at a later date, but have not yet been revealed.\n\nAvailable to use on contracts that implement the [ERC721Revealable](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721Revealable)\nor [ERC1155Revealable](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155Revealable) interfaces,\nsuch as the [NFT Drop](https://thirdweb.com/thirdweb.eth/DropERC721)\nand [Edition Drop](https://thirdweb.com/thirdweb.eth/DropERC1155) smart contracts." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nimport { useBatchesToReveal, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data: batches, isLoading, error } = useBatchesToReveal(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, contains an array of batches that need to be revealed.\n\nEach batch is an object with the following properties:\n\n" - }, - { - "kind": "code", - "text": "```ts\n{\n batchId: BigNumber;\n batchUri: string;\n placeholderMetadata: NFTMetadata;\n}\n```" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC721Revealable | ERC1155Revealable" - } - ] - }, - { - "tag": "@delayedReveal", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 299, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L299" - } - ], - "typeParameters": [ - { - "id": 515, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": 1199, - "name": "RevealableContract", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 516, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`RevealableContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 515, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/delayed-reveal.ts", - "qualifiedName": "BatchToReveal" - }, - "name": "BatchToReveal", - "package": "@thirdweb-dev/sdk" - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 603, - "name": "useBidBuffer", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1609, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1609" - } - ], - "signatures": [ - { - "id": 604, - "name": "useBidBuffer", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for determining the current bid buffer on a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " or [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contract.\n\nThe bid buffer is what percentage higher the next bid must be than the current highest bid, or the starting price if there are no bids." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nimport { useBidBuffer, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace\");\n const {\n data: bidBuffer,\n isLoading,\n error,\n } = useBidBuffer(contract, listingId);\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, returns a " - }, - { - "kind": "code", - "text": "`BigNumber`" - }, - { - "kind": "text", - "text": " value representing the current bid buffer.\n\nThe " - }, - { - "kind": "code", - "text": "`bidBuffer`" - }, - { - "kind": "text", - "text": " value returned is in percentage format.\nFor example, a value of " - }, - { - "kind": "code", - "text": "`500`" - }, - { - "kind": "text", - "text": " means that the next bid must be 5% higher than the current highest bid." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "EnglishAuctions" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1609, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1609" - } - ], - "parameters": [ - { - "id": 605, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`MarketplaceV3`" - }, - { - "kind": "text", - "text": " contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplace.ts", - "qualifiedName": "Marketplace" - }, - "name": "Marketplace", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplacev3.ts", - "qualifiedName": "MarketplaceV3" - }, - "name": "MarketplaceV3", - "package": "@thirdweb-dev/sdk" - } - ] - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 606, - "name": "listingId", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The listing ID of the item that you want to get the bid buffer for.\nThe listing must be an auction (or english auction) listing, the hook will populate the " - }, - { - "kind": "code", - "text": "`error`" - }, - { - "kind": "text", - "text": " property if it is not." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumber" - }, - "name": "BigNumber", - "package": "@ethersproject/bignumber" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 855, - "name": "useBurnNFT", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 990, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L990" - } - ], - "signatures": [ - { - "id": 856, - "name": "useBurnNFT", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for burning a NFT on a smart contract.\n\nAvailable to use on smart contracts that implement the [" - }, - { - "kind": "code", - "text": "`ERC721`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721)\nor [" - }, - { - "kind": "code", - "text": "`ERC1155`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155) standard." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useBurnNFT, useContract, Web3Button } from \"@thirdweb-dev/react\";\n\nconst contractAddress = \"{{contract_address}}\";\n// The tokenId of the NFT you want to burn\nconst tokenIdToBurn = \"{{tokenId}}}}\";\nconst amount = 1;\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { mutateAsync: burnNft, isLoading, error } = useBurnNFT(contract);\n\n return (\n \n burnNft({\n tokenId: tokenIdToBurn,\n amount: amount,\n })\n }\n >\n Burn NFT\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Mutation object that to burn an NFT token from the connected wallet\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useBurnNFT(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\nThe mutation function takes an object with the following properties:\n\n#### tokenId\nThe token ID of the NFT you want to burn.\n\n#### amount (optional)\nWhen using ERC1155 NFTs, you can specify the quantity you want to burn.\n\nDefaults value is " - }, - { - "kind": "code", - "text": "`1`" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC721Burnable | ERC1155Burnable" - } - ] - }, - { - "tag": "@nft", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 990, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L990" - } - ], - "typeParameters": [ - { - "id": 857, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": 1170, - "name": "NFTContract", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 858, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`NFTContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 857, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 859, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/core/classes/erc-1155.d.ts", - "line": 823, - "character": 68 - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": 1194, - "name": "BurnNFTParams", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 958, - "name": "useBurnToken", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 669, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L669" - } - ], - "signatures": [ - { - "id": 959, - "name": "useBurnToken", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for burning ERC20 tokens on a smart contract.\n\nAvailable to use on smart contracts that implement the [ERC20](https://portal.thirdweb.com/contracts/build/extensions/erc-20/ERC20) standard." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useBurnToken, useContract, Web3Button } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { mutateAsync: burnToken, isLoading, error } = useBurnToken(contract);\n\n return (\n \n burnToken({\n amount: \"10\", // Amount of tokens to burn\n })\n }\n >\n Burn Token\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A mutation object to burn tokens from the connected wallet\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useBurnToken(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\nThe mutation function takes an object as an argument with the following properties:\n\n#### amount (required)\nThe amount of tokens to burn.\n\nThe wallet initiating this transaction must have at least this amount of tokens." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC20Burnable" - } - ] - }, - { - "tag": "@token", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 669, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L669" - } - ], - "parameters": [ - { - "id": 960, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`TokenContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1171, - "name": "TokenContract", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 961, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/core/classes/erc-20.d.ts", - "line": 355, - "character": 48 - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": 1167, - "name": "TokenBurnParams", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 795, - "name": "useBuyDirectListing", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2990, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2990" - } - ], - "signatures": [ - { - "id": 796, - "name": "useBuyDirectListing", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for buying a direct listing on a [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) smart contract.\n\nIf the listing is in a currency that is not native to the chain (e.g. not Ether on Ethereum), the hook will prompt the user\nto approve the marketplace contract to spend the currency on their behalf before performing the buy.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useBuyDirectListing } from \"@thirdweb-dev/react\";\n\nconst { mutateAsync, isLoading, error } = useBuyDirectListing(contract);\n```" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport {\n useBuyDirectListing,\n useContract,\n Web3Button,\n} from \"@thirdweb-dev/react\";\nimport { ListingType } from \"@thirdweb-dev/sdk\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace-v3\");\n const {\n mutateAsync: buyDirectListing,\n isLoading,\n error,\n } = useBuyDirectListing(contract);\n\n return (\n \n buyDirectListing({\n listingId: \"{{listing_id}}\", // ID of the listing to buy\n quantity: \"1\",\n buyer: \"{{wallet_address}}\", // Wallet to buy for\n })\n }\n >\n Buy Now\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Mutation object to buy out a direct listing\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useBuyDirectListing(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n## Options\n\nThe mutation function accepts an object as argument with the following properties:\n\n### listingId\n\nThe ID of the direct listing you want to buy.\n\n### quantity\n\nThe amount of tokens you want to buy from the listing.\n\nApplicable for ERC1155 listings only, should always be " - }, - { - "kind": "code", - "text": "`1`" - }, - { - "kind": "text", - "text": " for ERC721 listings.\n\n### buyer\n\nSpecify a different wallet address to buy the listing for." - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2990, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2990" - } - ], - "parameters": [ - { - "id": 797, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`MarketplaceV3`" - }, - { - "kind": "text", - "text": " contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplacev3.ts", - "qualifiedName": "MarketplaceV3" - }, - "name": "MarketplaceV3", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 798, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/core/classes/marketplacev3-direct-listings.d.ts", - "line": 331, - "character": 110 - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "BuyFromListingParams" - }, - "name": "BuyFromListingParams", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 791, - "name": "useBuyNow", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2880, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2880" - } - ], - "signatures": [ - { - "id": 792, - "name": "useBuyNow", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for buying a listing on a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " smart contract.\n\nIf the listing is in a currency that is not native to the chain (e.g. not Ether on Ethereum), the hook will prompt the user\nto approve the marketplace contract to spend the currency on their behalf before performing the buy.\n\n__This hook is only for " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contracts. Not for " - }, - { - "kind": "code", - "text": "`MarketplaceV3`" - }, - { - "kind": "text", - "text": "__" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useBuyNow, useContract, Web3Button } from \"@thirdweb-dev/react\";\nimport { ListingType } from \"@thirdweb-dev/sdk\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace\");\n const { mutateAsync: buyNow, isLoading, error } = useBuyNow(contract);\n\n return (\n \n buyNow({\n id: \"{{listing_id}}\", // ID of the listing to buy\n type: ListingType.Direct, // Direct (0) or Auction (1)\n buyAmount: \"{{buy_amount}}\", // Amount to buy\n buyForWallet: \"{{wallet_address}}\", // Wallet to buy for, defaults to current wallet\n })\n }\n >\n Buy Now\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Mutation object to buy out an auction listing\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useBuyNow(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n## Options\n\nThe mutation function accepts an object as argument with the following properties:\n\n### id\n\nThe ID of the listing you want to buy.\n\n### type\n\nThe type of listing. Either " - }, - { - "kind": "code", - "text": "`ListingType.Direct`" - }, - { - "kind": "text", - "text": " (0) or " - }, - { - "kind": "code", - "text": "`ListingType.Auction`" - }, - { - "kind": "text", - "text": " (1).\n\n### buyAmount\n\nThe amount of tokens you want to buy from the listing.\n\nApplicable for ERC1155 listings only, should always be 1 for ERC721 listings.\n\n### buyForWallet (optional)\n\nOptionally, specify a different wallet address to buy the listing for." - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2880, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2880" - } - ], - "parameters": [ - { - "id": 793, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplace.ts", - "qualifiedName": "Marketplace" - }, - "name": "Marketplace", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 794, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/core/classes/internal/marketplace/marketplace-direct.d.ts", - "line": 175, - "character": 110 - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": 1232, - "name": "BuyNowParams", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 1269, - "name": "useBuyWithCryptoHistory", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/pay/useBuyWithCryptoHistory.ts", - "line": 36, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/pay/useBuyWithCryptoHistory.ts#L36" - } - ], - "signatures": [ - { - "id": 1270, - "name": "useBuyWithCryptoHistory", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to get the history of purchases a given wallet has performed.\n\nThis hook is a React Query wrapper of the [" - }, - { - "kind": "code", - "text": "`getBuyWithCryptoHistory`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/typescript/v4/getBuyWithCryptoHistory) function.\nYou can also use that function directly" - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A React Query object which contains the data of type [" - }, - { - "kind": "code", - "text": "`BuyWithCryptoHistoryData`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/typescript/v4/BuyWithCryptoHistoryData)" - } - ] - }, - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nimport { useBuyWithCryptoHistory } from \"@thirdweb-dev/react\";\n\nfunction Component() {\n const buyWithCryptoHistory = useBuyWithCryptoHistory(params);\n console.log(buyWithCryptoHistory.data);\n return
...
;\n}\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/pay/useBuyWithCryptoHistory.ts", - "line": 36, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/pay/useBuyWithCryptoHistory.ts#L36" - } - ], - "parameters": [ - { - "id": 1271, - "name": "params", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "object of type [" - }, - { - "kind": "code", - "text": "`BuyWithCryptoHistoryParams`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/typescript/v4/BuyWithCryptoHistoryParams)" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/pay/buyWithCrypto/actions/getHistory.ts", - "qualifiedName": "BuyWithCryptoHistoryParams" - }, - "name": "BuyWithCryptoHistoryParams", - "package": "@thirdweb-dev/sdk" - } - }, - { - "id": 1272, - "name": "queryParams", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "options to configure the react query" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/evm/hooks/pay/useBuyWithCryptoHistory.ts", - "qualifiedName": "BuyWithCryptoHistoryQueryOptions" - }, - "name": "BuyWithCryptoHistoryQueryOptions", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../packages/thirdweb/src/pay/buyWithCrypto/getHistory.ts", - "qualifiedName": "BuyWithCryptoHistoryData" - }, - "name": "BuyWithCryptoHistoryData", - "package": "thirdweb" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 1273, - "name": "useBuyWithCryptoQuote", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/pay/useBuyWithCryptoQuote.ts", - "line": 68, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/pay/useBuyWithCryptoQuote.ts#L68" - } - ], - "signatures": [ - { - "id": 1274, - "name": "useBuyWithCryptoQuote", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to get a quote of type [" - }, - { - "kind": "code", - "text": "`BuyWithCryptoQuote`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/typescript/v4/BuyWithCryptoQuote) for buying tokens with crypto.\nThis quote contains the information about the purchase such as token amounts, processing fees, estimated time etc.\n\nThis hook is a React Query wrapper of the [" - }, - { - "kind": "code", - "text": "`getBuyWithCryptoQuote`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/typescript/v4/getBuyWithCryptoQuote) function.\nYou can also use that function directly\n\nOnce you have the quote, you can use the [" - }, - { - "kind": "code", - "text": "`useBuyWithCryptoStatus`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useBuyWithCryptoStatus) function to get the status of the swap transaction." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A React Query object which contains the data of type [" - }, - { - "kind": "code", - "text": "`BuyWithCryptoQuote`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/typescript/v4/BuyWithCryptoQuote)" - } - ] - }, - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nimport { useSigner, useBuyWithCryptoQuote, useBuyWithCryptoStatus } from \"@thirdweb-dev/react\";\n\nfunction Component() {\n const buyWithCryptoQuoteQuery = useBuyWithCryptoQuote* (swapParams);\n const signer = useSigner();\n const [buyTxHash, setBuyTxHash] = useState();\n const buyWithCryptoStatusQuery = useBuyWithCryptoStatus* (buyTxHash ? {\n clientId: \"YOUR_CLIENT_ID\",\n transactionHash: buyTxHash,\n }: undefined);\n\n async function handleBuyWithCrypto() {\n if (!buyWithCryptoQuoteQuery.data || !signer) {\n return;\n }\n\n // if approval is required\n if (buyWithCryptoQuoteQuery.data.approval) {\n const approveTx = await signer.sendTransaction* (buyWithCryptoQuoteQuery.data.approval);\n await approveTx.wait();\n }\n\n // send the transaction to buy crypto\n // this promise is resolved when user confirms the transaction * in the wallet and the transaction is sent to the blockchain\n const buyTx = await signer.sendTransaction* (buyWithCryptoQuoteQuery.data.transactionRequest);\n await buyTx.wait();\n\n // set buyTx.hash to poll the status of the swap * transaction\n setBuyTxHash(buyTx.hash);\n }\n\n if (buyWithCryptoStatusQuery.data) {\n console.log('buyWithCryptoStatusQuery.data', * buyWithCryptoStatusQuery.data)\n }\n return \n }\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/pay/useBuyWithCryptoQuote.ts", - "line": 68, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/pay/useBuyWithCryptoQuote.ts#L68" - } - ], - "parameters": [ - { - "id": 1275, - "name": "params", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "object of type [" - }, - { - "kind": "code", - "text": "`GetBuyWithCryptoQuoteParams`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/GetBuyWithCryptoQuoteParams)" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/pay/buyWithCrypto/actions/getQuote.ts", - "qualifiedName": "GetBuyWithCryptoQuoteParams" - }, - "name": "GetBuyWithCryptoQuoteParams", - "package": "@thirdweb-dev/sdk" - } - }, - { - "id": 1276, - "name": "queryParams", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "options to configure the react query" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/evm/hooks/pay/useBuyWithCryptoQuote.ts", - "qualifiedName": "BuyWithCryptoQuoteQueryOptions" - }, - "name": "BuyWithCryptoQuoteQueryOptions", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/pay/buyWithCrypto/actions/getQuote.ts", - "qualifiedName": "BuyWithCryptoQuote" - }, - "name": "BuyWithCryptoQuote", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 1277, - "name": "useBuyWithCryptoStatus", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/pay/useBuyWithCryptoStatus.ts", - "line": 59, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/pay/useBuyWithCryptoStatus.ts#L59" - } - ], - "signatures": [ - { - "id": 1278, - "name": "useBuyWithCryptoStatus", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A hook to get a status of Buy with Crypto transaction.\n\nThis hook is a React Query wrapper of the [" - }, - { - "kind": "code", - "text": "`getBuyWithCryptoStatus`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/typescript/v4/getBuyWithCryptoStatus) function.\nYou can also use that function directly." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A react query object which contains the data of type [" - }, - { - "kind": "code", - "text": "`BuyWithCryptoStatus`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/typescript/v4/BuyWithCryptoStatus)" - } - ] - }, - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nimport { useSigner, useBuyWithCryptoQuote, useBuyWithCryptoStatus } from \"@thirdweb-dev/react\";\n\nfunction Component() {\n const buyWithCryptoQuoteQuery = useBuyWithCryptoQuote(swapParams);\n const signer = useSigner();\n const [buyTxHash, setBuyTxHash] = useState();\n const buyWithCryptoStatusQuery = useBuyWithCryptoStatus* (buyTxHash ? {\n clientId: \"YOUR_CLIENT_ID\",\n transactionHash: buyTxHash,\n }: undefined);\n\n async function handleBuyWithCrypto() {\n if (!buyWithCryptoQuoteQuery.data || !signer) {\n return;\n }\n\n // if approval is required\n if (buyWithCryptoQuoteQuery.data.approval) {\n const approveTx = await signer.sendTransaction(buyWithCryptoQuoteQuery.data.approval);\n await approveTx.wait();\n }\n\n // send the transaction to buy crypto\n // this promise is resolved when user confirms the transaction * in the wallet and the transaction is sent to the blockchain\n const buyTx = await signer.sendTransaction(buyWithCryptoQuoteQuery.data.transactionRequest);\n await buyTx.wait();\n\n // set buyTx.transactionHash to poll the status of the swap * transaction\n setBuyTxHash(buyTx.hash);\n }\n\n if (buyWithCryptoStatusQuery.data) {\n console.log('buyWithCryptoStatusQuery.data', * buyWithCryptoStatusQuery.data)\n }\n return \n }\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/pay/useBuyWithCryptoStatus.ts", - "line": 59, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/pay/useBuyWithCryptoStatus.ts#L59" - } - ], - "parameters": [ - { - "id": 1279, - "name": "params", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "object of type [" - }, - { - "kind": "code", - "text": "`BuyWithCryptoTransaction`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/BuyWithCryptoTransaction)" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/pay/buyWithCrypto/actions/getStatus.ts", - "qualifiedName": "BuyWithCryptoTransaction" - }, - "name": "BuyWithCryptoTransaction", - "package": "@thirdweb-dev/sdk" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../packages/thirdweb/src/pay/buyWithCrypto/getStatus.ts", - "qualifiedName": "BuyWithCryptoStatus" - }, - "name": "BuyWithCryptoStatus", - "package": "thirdweb" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Error" - }, - "name": "Error", - "package": "typescript" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 635, - "name": "useCancelDirectListing", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2351, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2351" - } - ], - "signatures": [ - { - "id": 636, - "name": "useCancelDirectListing", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for canceling a direct listing on a [MarketplaceV3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contract.\n\nDirect listings can be canceled at any time, (unless the listing has already been sold).\nOnly the creator of the listing can cancel it.\n\n__Note: This hook is only for [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contracts.__\n\nFor " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contracts, use " - }, - { - "kind": "code", - "text": "`useCancelListing`" - }, - { - "kind": "text", - "text": " instead." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport {\n useCancelDirectListing,\n useContract,\n Web3Button,\n} from \"@thirdweb-dev/react\";\nimport { ListingType } from \"@thirdweb-dev/sdk\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace-v3\");\n const {\n mutateAsync: cancelDirectListing,\n isLoading,\n error,\n } = useCancelDirectListing(contract);\n\n return (\n cancelDirectListing(listingId)}\n >\n Cancel Direct Listing\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Mutation object to cancel a direct listing by passing the ID of the listing you want to cancel.\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useCancelDirectListing(contract);\n```" - }, - { - "kind": "text", - "text": "\n\nThe mutation function takes the " - }, - { - "kind": "code", - "text": "`listingId`" - }, - { - "kind": "text", - "text": " as an argument.\n\nThe " - }, - { - "kind": "code", - "text": "`error`" - }, - { - "kind": "text", - "text": " property is set if the listing is not active, or was not created by the wallet\n\n### listingId\n\nThe ID of the listing you want to cancel." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "DirectListings" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2351, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2351" - } - ], - "parameters": [ - { - "id": 637, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`MarketplaceV3`" - }, - { - "kind": "text", - "text": " contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplacev3.ts", - "qualifiedName": "MarketplaceV3" - }, - "name": "MarketplaceV3", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 638, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/core/classes/marketplacev3-direct-listings.d.ts", - "line": 301, - "character": 48 - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 639, - "name": "useCancelEnglishAuction", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2435, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2435" - } - ], - "signatures": [ - { - "id": 640, - "name": "useCancelEnglishAuction", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for canceling an english auction on a [MarketplaceV3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contract.\n\n__English auctions cannot be canceled if a bid has been placed__\n\n__This hook is only for [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contracts.__\n\nFor " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contracts, use " - }, - { - "kind": "code", - "text": "`useCancelListing`" - }, - { - "kind": "text", - "text": " instead." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport {\n useCancelEnglishAuction,\n useContract,\n Web3Button,\n} from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace-v3\");\n const {\n mutateAsync: cancelEnglishAuction,\n isLoading,\n error,\n } = useCancelEnglishAuction(contract);\n\n return (\n cancelEnglishAuction(listingId)}\n >\n Cancel English Auction\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Mutation object to cancel an english auction\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useCancelEnglishAuction(contract);\n```" - }, - { - "kind": "text", - "text": "\n\nThe mutation function takes the " - }, - { - "kind": "code", - "text": "`listingId`" - }, - { - "kind": "text", - "text": " as an argument.\n\nThe " - }, - { - "kind": "code", - "text": "`error`" - }, - { - "kind": "text", - "text": " property is set if the listing is not active, cannot be canceled, or was not created by the wallet.\n\n### listingId\n\nThe ID of the listing you want to cancel." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "EnglishAuctions" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2435, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2435" - } - ], - "parameters": [ - { - "id": 641, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`MarketplaceV3`" - }, - { - "kind": "text", - "text": " contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplacev3.ts", - "qualifiedName": "MarketplaceV3" - }, - "name": "MarketplaceV3", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 642, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/core/classes/marketplacev3-english-auction.d.ts", - "line": 311, - "character": 48 - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 627, - "name": "useCancelListing", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2247, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2247" - } - ], - "signatures": [ - { - "id": 628, - "name": "useCancelListing", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for canceling an existing auction or listing on a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contract.\n\n__Auction listings cannot be canceled if a bid has been placed__\n\n__This hook is only for " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contracts.__\n\nFor [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3)\ncontracts, use " - }, - { - "kind": "code", - "text": "`useCancelDirectListing`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`useCancelEnglishAuction`" - }, - { - "kind": "text", - "text": " instead." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useCancelListing, useContract, Web3Button } from \"@thirdweb-dev/react\";\nimport { ListingType } from \"@thirdweb-dev/sdk\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace\");\n const {\n mutateAsync: cancelListing,\n isLoading,\n error,\n } = useCancelListing(contract);\n\n return (\n \n cancelListing({\n id: \"{{listing_id}}\",\n type: ListingType.Direct, // Direct (0) or Auction (1)\n })\n }\n >\n Cancel Listing\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Mutation object to cancel a listing.\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useCancelListing(contract);\n```" - }, - { - "kind": "text", - "text": "\n\nThe " - }, - { - "kind": "code", - "text": "`error`" - }, - { - "kind": "text", - "text": " property is set if the listing is not active, or was not created by the wallet.\n\n### options\n\nThe mutation function takes an object with the following properties as an argument:\n\n#### listingId\nThe ID of the listing you want to cancel.\n\n#### listingType\nThe type of listing you are canceling. Either " - }, - { - "kind": "code", - "text": "`ListingType.Direct`" - }, - { - "kind": "text", - "text": " (0) or " - }, - { - "kind": "code", - "text": "`ListingType.Auction`" - }, - { - "kind": "text", - "text": " (1)." - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2247, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2247" - } - ], - "parameters": [ - { - "id": 629, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a Marketplace contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplace.ts", - "qualifiedName": "Marketplace" - }, - "name": "Marketplace", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 630, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 632, - "name": "data", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2253, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2253" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 633, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2253, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2253" - } - ], - "signatures": [ - { - "id": 634, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - }, - { - "id": 631, - "name": "receipt", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2252, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2252" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+abstract-provider@5.7.0/node_modules/@ethersproject/abstract-provider/src.ts/index.ts", - "qualifiedName": "TransactionReceipt" - }, - "name": "providers.TransactionReceipt", - "package": "@ethersproject/abstract-provider", - "qualifiedName": "TransactionReceipt" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 632, - 631 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2251, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2251" - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Pick" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplace/AuctionListing.ts", - "qualifiedName": "AuctionListing" - }, - "name": "AuctionListing", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplace/DirectListing.ts", - "qualifiedName": "DirectListing" - }, - "name": "DirectListing", - "package": "@thirdweb-dev/sdk" - } - ] - }, - { - "type": "union", - "types": [ - { - "type": "literal", - "value": "type" - }, - { - "type": "literal", - "value": "id" - } - ] - } - ], - "name": "Pick", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 127, - "name": "useChain", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 254, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L254" - } - ], - "signatures": [ - { - "id": 128, - "name": "useChain", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for getting the " - }, - { - "kind": "code", - "text": "`Chain`" - }, - { - "kind": "text", - "text": " object of the network that the user is connected - but only if\nit's a supported network (added in the " - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "'s " - }, - { - "kind": "code", - "text": "`supportedChains`" - }, - { - "kind": "text", - "text": " or one of default chains\n\nReturns " - }, - { - "kind": "code", - "text": "`undefined`" - }, - { - "kind": "text", - "text": " if the network is not supported or the user is not connected to a wallet. You can use the " - }, - { - "kind": "code", - "text": "`useConnectionStatus`" - }, - { - "kind": "text", - "text": " hook to check if the user is connected to a wallet or not to differentiate between the two cases.\n\nIf you only want to get the chain id of the network the user is connected to regardless of whether it's supported or not, use " - }, - { - "kind": "code", - "text": "`useChainId`" - }, - { - "kind": "text", - "text": " instead.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useChain } from \"@thirdweb-dev/react\";\n\nconst chain = useChain();\n```" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useChain, useConnectionStatus } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const chain = useChain();\n const status = useConnectionStatus();\n\n if (status === \"unknown\") return
Loading...
;\n if (status === \"disconnected\") return
disconnected
;\n if (status === \"connecting\") return
connecting...
;\n\n if (chain) {\n return

Connected to {chain.name}

;\n }\n\n return

Connected to an unsupported network

;\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "An object of type " - }, - { - "kind": "code", - "text": "`Chain`" - }, - { - "kind": "text", - "text": " from [" - }, - { - "kind": "code", - "text": "`@thirdweb-dev/chains`" - }, - { - "kind": "text", - "text": "](https://www.npmjs.com/package/@thirdweb-dev/chains) package containing various information about the network, or " - }, - { - "kind": "code", - "text": "`undefined`" - }, - { - "kind": "text", - "text": " if the network is not supported or user is not connected to a wallet." - } - ] - }, - { - "tag": "@networkConnection", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 254, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L254" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../chains/src/index.ts", - "qualifiedName": "Chain" - }, - "name": "Chain", - "package": "@thirdweb-dev/chains" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - } - ] - }, - { - "id": 123, - "name": "useChainId", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 197, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L197" - } - ], - "signatures": [ - { - "id": 124, - "name": "useChainId", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for accessing the chain ID of the network the current wallet is connected to\n\n" - }, - { - "kind": "code", - "text": "```javascript\nimport { useChainId } from \"@thirdweb-dev/react\"\n```" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nimport { useChainId } from \"@thirdweb-dev/react\"\n\nconst App = () => {\n const chainId = useChainId()\n\n return
{chainId}
\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A " - }, - { - "kind": "code", - "text": "`number`" - }, - { - "kind": "text", - "text": " representing the current chain id, or " - }, - { - "kind": "code", - "text": "`undefined`" - }, - { - "kind": "text", - "text": " if the user is not connected to a wallet.\n\nFor Example, if the user is connected to the Ethereum Mainnet, the return value will be " - }, - { - "kind": "code", - "text": "`1`" - }, - { - "kind": "text", - "text": "." - } - ] - }, - { - "tag": "@networkConnection", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/wallet.ts", - "line": 197, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/wallet.ts#L197" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "number" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - } - ] - }, - { - "id": 326, - "name": "useClaimConditions", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 340, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L340" - } - ], - "signatures": [ - { - "id": 327, - "name": "useClaimConditions", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for fetching all claim conditions for a given drop contract.\n\nThis is available for available for contracts that implement the \"ClaimConditions\" interface; such as [NFT Drop](https://thirdweb.com/thirdweb.eth/DropERC721), [Edition Drop](https://thirdweb.com/thirdweb.eth/DropERC1155), and [Token Drop](https://thirdweb.com/thirdweb.eth/DropERC20)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nimport { useClaimConditions, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = useClaimConditions(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Query Result object with the list of claim conditions" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC20ClaimPhasesV2 | ERC20ClaimPhasesV1 | ERC20ClaimConditionsV2 | ERC20ClaimConditionsV1 | ERC721ClaimPhasesV2 | ERC721ClaimPhasesV1 | ERC721ClaimConditionsV2 | ERC721ClaimConditionsV1 | ERC1155ClaimPhasesV2 | ERC1155ClaimPhasesV1 | ERC1155ClaimConditionsV2 | ERC1155ClaimConditionsV1" - } - ] - }, - { - "tag": "@claimConditions", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 340, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L340" - } - ], - "parameters": [ - { - "id": 328, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a contract that extends the ERC721, ERC1155 or ERC20 spec and implements the \"ClaimConditions\" extension." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1198, - "name": "DropContract", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 329, - "name": "tokenId", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "When using the hook with ERC1155 contracts, pass the " - }, - { - "kind": "code", - "text": "`tokenId`" - }, - { - "kind": "text", - "text": " parameter; as each token can have unique claim conditions.\n\nPass " - }, - { - "kind": "code", - "text": "`undefined`" - }, - { - "kind": "text", - "text": ", or leave this field out if you are using ERC721 or ERC20 drop contracts.\n\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { useClaimConditions, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n\n const { data, isLoading, error } = useClaimConditions(\n contract,\n 0, // Token ID required for ERC1155 contracts here.\n );\n}\n```" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - }, - { - "id": 330, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "additional options to pass to the claim condition fetch\n\n#### withAllowlist\n\nBy default, the hook will not include the allowlist in the returned data. To include the allowlist in the returned data, set the " - }, - { - "kind": "code", - "text": "`withAllowlist`" - }, - { - "kind": "text", - "text": " option to true.\n\nThis will add a " - }, - { - "kind": "code", - "text": "`snapshot`" - }, - { - "kind": "text", - "text": " property to the returned data, which contains the allowlist in an array.\n\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { useClaimConditions, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n\n // \"data\" now includes a \"snapshot\" property that contains the allowlist.\n const { data, isLoading, error } = useClaimConditions(\n contract,\n undefined, // Token ID required for ERC1155 contracts here.\n {\n withAllowlist: true,\n },\n );\n}\n```" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/claim-conditions/claim-conditions.ts", - "qualifiedName": "ClaimConditionFetchOptions" - }, - "name": "ClaimConditionFetchOptions", - "package": "@thirdweb-dev/sdk" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/claim-conditions/claim-conditions.ts", - "qualifiedName": "ClaimCondition" - }, - "name": "ClaimCondition", - "package": "@thirdweb-dev/sdk" - } - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 502, - "name": "useClaimedNFTs", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 154, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L154" - } - ], - "signatures": [ - { - "id": 503, - "name": "useClaimedNFTs", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for fetching all claimed NFTs from a given NFT Drop contract.\n\nAvailable to use on contracts that implement [" - }, - { - "kind": "code", - "text": "`ERC721Claimable`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721Claimable),\nsuch as the [NFT Drop](https://thirdweb.com/thirdweb.eth/DropERC721)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useClaimedNFTs, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"nft-drop\");\n const { data: nfts, isLoading, error } = useClaimedNFTs(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Query Result object that includes an array of NFTs that are claimed in the " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC721LazyMintable" - } - ] - }, - { - "tag": "@nftDrop", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 154, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L154" - } - ], - "parameters": [ - { - "id": 504, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a contract that extends the ERC721 spec (NFT drop, Signature Drop, or any custom contract that extends the ERC721 spec)" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/nft-drop.ts", - "qualifiedName": "NFTDrop" - }, - "name": "NFTDrop", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 505, - "name": "queryParams", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "By default, the hook will return the first " - }, - { - "kind": "code", - "text": "`100`" - }, - { - "kind": "text", - "text": " claimed NFTs\n\nYou can use the " - }, - { - "kind": "code", - "text": "`queryParams`" - }, - { - "kind": "text", - "text": " argument to paginate the NFTs that are returned.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useClaimedNFTs, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"nft-drop\");\n const { data, isLoading, error } = useClaimedNFTs(\n contract,\n {\n // For example, to only return the first 50 claimed NFTs in the collection\n // in order of token ID\n count: 50,\n start: 0,\n },\n );\n}\n```" - } - ] - }, - "type": { - "type": "reflection", - "declaration": { - "id": 506, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/core/schema/QueryParams.d.ts", - "line": 12, - "character": 3 - } - ] - } - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/core/schema/nft.ts", - "qualifiedName": "NFT" - }, - "name": "NFT", - "package": "@thirdweb-dev/sdk" - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 510, - "name": "useClaimedNFTSupply", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 246, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L246" - } - ], - "signatures": [ - { - "id": 511, - "name": "useClaimedNFTSupply", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for retrieving the total supply of NFTs claimed from an NFT Drop contract.\n\nAvailable to use on contracts that implement [" - }, - { - "kind": "code", - "text": "`ERC721Claimable`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721Claimable)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useClaimedNFTSupply, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data, isLoading } = useClaimedNFTSupply(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, is a " - }, - { - "kind": "code", - "text": "`BigNumber`" - }, - { - "kind": "text", - "text": " representing the total supply of NFTs claimed from the NFT drop contract so far." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC721LazyMintable" - } - ] - }, - { - "tag": "@nftDrop", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 246, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L246" - } - ], - "parameters": [ - { - "id": 512, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a contract that extends the ERC721 spec (NFT drop, Signature Drop, or any custom contract that extends the ERC721 spec)" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/nft-drop.ts", - "qualifiedName": "NFTDrop" - }, - "name": "NFTDrop", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/signature-drop.ts", - "qualifiedName": "SignatureDrop" - }, - "name": "SignatureDrop", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+contracts@5.7.0/node_modules/@ethersproject/contracts/src.ts/index.ts", - "qualifiedName": "BaseContract" - }, - "name": "BaseContract", - "package": "@ethersproject/contracts" - } - ], - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - } - ] - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumber" - }, - "name": "BigNumber", - "package": "@ethersproject/bignumber" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 314, - "name": "useClaimerProofs", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 217, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L217" - } - ], - "signatures": [ - { - "id": 315, - "name": "useClaimerProofs", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "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.\n\nA 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.\n\nThis is available for available for contracts that implement the \"ClaimConditions\" interface; such as [NFT Drop](https://thirdweb.com/thirdweb.eth/DropERC721), [Edition Drop](https://thirdweb.com/thirdweb.eth/DropERC1155), and [Token Drop](https://thirdweb.com/thirdweb.eth/DropERC20)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nimport { useClaimerProofs, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n\n const {\n data: proof,\n isLoading,\n error,\n } = useClaimerProofs(contract, \"{{claimer_address}}\");\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Query result object with the snapshot for the provided address" - } - ] - }, - { - "tag": "@claimConditions", - "content": [] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC20ClaimPhasesV2 | ERC20ClaimPhasesV1 | ERC20ClaimConditionsV2 | ERC20ClaimConditionsV1 | ERC721ClaimPhasesV2 | ERC721ClaimPhasesV1 | ERC721ClaimConditionsV2 | ERC721ClaimConditionsV1 | ERC1155ClaimPhasesV2 | ERC1155ClaimPhasesV1 | ERC1155ClaimConditionsV2 | ERC1155ClaimConditionsV1" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 217, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L217" - } - ], - "parameters": [ - { - "id": 316, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a contract that extends the ERC721, ERC1155 or ERC20 spec and implements the \"ClaimConditions\" extension." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1198, - "name": "DropContract", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 317, - "name": "claimerAddress", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "This is the address of the user you want to get the proof for.\n\nLikely, you will want to check proofs of the currently connected wallet address. You can use the " - }, - { - "kind": "code", - "text": "`useAddress`" - }, - { - "kind": "text", - "text": " hook to get this value." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 318, - "name": "tokenId", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "When using the hook with ERC1155 contracts, pass the " - }, - { - "kind": "code", - "text": "`tokenId`" - }, - { - "kind": "text", - "text": "; as each token can have unique claim conditions.\n\nPass " - }, - { - "kind": "code", - "text": "`undefined`" - }, - { - "kind": "text", - "text": ", or leave this field out if you are using ERC721 or ERC20 drop contracts." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - }, - { - "id": 319, - "name": "claimConditionId", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "This is the ID of the claim condition you want to get the proof for." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 320, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 321, - "name": "address", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 224, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L224" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 325, - "name": "currencyAddress", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 228, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L228" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 323, - "name": "maxClaimable", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 226, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L226" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 324, - "name": "price", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 227, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L227" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 322, - "name": "proof", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 225, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L225" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 321, - 325, - 323, - 324, - 322 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 223, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L223" - } - ] - } - }, - { - "type": "literal", - "value": null - } - ] - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 331, - "name": "useClaimIneligibilityReasons", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 433, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L433" - } - ], - "signatures": [ - { - "id": 332, - "name": "useClaimIneligibilityReasons", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for fetching the reasons a wallet is not eligible to claim tokens from a drop, if any.\n\nThis is available for available for contracts that implement the \"ClaimConditions\" interface; such as [NFT Drop](https://thirdweb.com/thirdweb.eth/DropERC721), [Edition Drop](https://thirdweb.com/thirdweb.eth/DropERC1155), and [Token Drop](https://thirdweb.com/thirdweb.eth/DropERC20)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nimport { useClaimIneligibilityReasons, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = useClaimIneligibilityReasons(contract, {\n walletAddress: \"0x123...\", // Use useAddress hook to get the user's wallet address\n quantity: 1, // Quantity to check eligibility for\n });\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, contains an array of " - }, - { - "kind": "code", - "text": "`ClaimEligibility`" - }, - { - "kind": "text", - "text": " strings, which may be empty.\n\nFor example, if the user is not in the allowlist, this hook will return " - }, - { - "kind": "code", - "text": "`[\"This address is not on the allowlist.\"]`" - }, - { - "kind": "text", - "text": ".\n\nIf the user is eligible to claim tokens, the hook will return an empty array." - } - ] - }, - { - "tag": "@claimConditions", - "content": [] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC20ClaimPhasesV2 | ERC20ClaimPhasesV1 | ERC20ClaimConditionsV2 | ERC20ClaimConditionsV1 | ERC721ClaimPhasesV2 | ERC721ClaimPhasesV1 | ERC721ClaimConditionsV2 | ERC721ClaimConditionsV1 | ERC1155ClaimPhasesV2 | ERC1155ClaimPhasesV1 | ERC1155ClaimConditionsV2 | ERC1155ClaimConditionsV1" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 433, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L433" - } - ], - "parameters": [ - { - "id": 333, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a contract that extends the ERC20, ERC721 or ERC1155 spec and implements the \"ClaimConditions\" extension." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1198, - "name": "DropContract", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 334, - "name": "params", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The conditions to check eligibility for. The " - }, - { - "kind": "code", - "text": "`walletAddress`" - }, - { - "kind": "text", - "text": " and " - }, - { - "kind": "code", - "text": "`quantity`" - }, - { - "kind": "text", - "text": " properties are required.\n\nUse the " - }, - { - "kind": "code", - "text": "`useAddress`" - }, - { - "kind": "text", - "text": " hook to get the connected wallet address." - } - ] - }, - "type": { - "type": "reference", - "target": 301, - "name": "ClaimIneligibilityParams", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 335, - "name": "tokenId", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "When using ERC1155 contracts, provide a third argument to specify the token ID.\n\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { useClaimIneligibilityReasons, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = useClaimIneligibilityReasons(\n contract,\n {\n walletAddress: \"0x123..\",\n quantity: 1,\n },\n tokenId,\n );\n}\n```" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/enums/ClaimEligibility.ts", - "qualifiedName": "ClaimEligibility" - }, - "name": "ClaimEligibility", - "package": "@thirdweb-dev/sdk" - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 517, - "name": "useClaimNFT", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 421, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L421" - } - ], - "signatures": [ - { - "id": 518, - "name": "useClaimNFT", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for claiming an NFT from a smart contract.\n\nAvailable to use on smart contracts that implement a " - }, - { - "kind": "code", - "text": "`Claimable`" - }, - { - "kind": "text", - "text": " interface, and follow either the " - }, - { - "kind": "code", - "text": "`ERC721`" - }, - { - "kind": "text", - "text": "or " - }, - { - "kind": "code", - "text": "`ERC1155`" - }, - { - "kind": "text", - "text": " standard." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useContract, useClaimNFT, Web3Button } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { mutateAsync: claimNft, isLoading, error } = useClaimNFT(contract);\n\n return (\n \n claimNft({\n to: \"{{wallet_address}}\", // Use useAddress hook to get current wallet address\n quantity: 1,\n })\n }\n >\n Claim NFT\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A mutation object to claim a NFT to the wallet specified in the params\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useClaimNFT(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\n\nThe mutation function takes an object as argument with below properties:\n\n#### to\n\nThe wallet address to mint the NFT(s) to.\n\nUse the " - }, - { - "kind": "code", - "text": "`useAddress`" - }, - { - "kind": "text", - "text": " hook to get the currently connected wallet address.\n\n#### quantity\n\nThe number of NFTs you wish to claim.\n\n- With ERC721 contracts, this represents the number of unique tokens you wish to claim.\n- With ERC1155 contracts, this represents the quantity of the specific " - }, - { - "kind": "code", - "text": "`tokenId`" - }, - { - "kind": "text", - "text": " you wish to claim.\n\n#### tokenId\n\nFor ERC1155 contracts, you must specify a specific " - }, - { - "kind": "code", - "text": "`tokenId`" - }, - { - "kind": "text", - "text": " to claim.\n\n#### options (optional)\n\nCustomizable " - }, - { - "kind": "code", - "text": "`ClaimOptions`" - }, - { - "kind": "text", - "text": " object to override the default behaviour of the hook.\n\nThere are three options available:\n\n- " - }, - { - "kind": "code", - "text": "`checkERC20Allowance`" - }, - { - "kind": "text", - "text": " - Whether to check the ERC20 allowance of the sender, defaults to true.\n- " - }, - { - "kind": "code", - "text": "`currencyAddress`" - }, - { - "kind": "text", - "text": " - The currency to pay for each token claimed, defaults to " - }, - { - "kind": "code", - "text": "`NATIVE_TOKEN_ADDRESS`" - }, - { - "kind": "text", - "text": " for native currency.\n- " - }, - { - "kind": "code", - "text": "`pricePerToken`" - }, - { - "kind": "text", - "text": " - The price to pay for each token claimed. Not relevant when using claim conditions.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useContract, useClaimNFT, Web3Button } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { mutate: claimNft, isLoading, error } = useClaimNFT(contract);\n\n return (\n \n claimNft({\n to: \"{{wallet_address}}\",\n quantity: 1,\n options: {\n checkERC20Allowance: true,\n currencyAddress: \"{{erc20_address}}\",\n pricePerToken: 0,\n },\n })\n }\n >\n Claim NFT\n \n );\n}\n```" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC721Claimable | ERC1155Claimable | ERC721ClaimPhasesV2 | ERC721ClaimPhasesV1 | ERC721ClaimConditionsV2 | ERC721ClaimConditionsV1 | ERC1155ClaimPhasesV2 | ERC1155ClaimPhasesV1 | ERC1155ClaimConditionsV2 | ERC1155ClaimConditionsV1" - } - ] - }, - { - "tag": "@nftDrop", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 421, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L421" - } - ], - "typeParameters": [ - { - "id": 519, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": 1198, - "name": "DropContract", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 520, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`DropContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 519, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1215, - "name": "ClaimNFTReturnType", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": 1209, - "name": "ClaimNFTParams", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 946, - "name": "useClaimToken", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 347, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L347" - } - ], - "signatures": [ - { - "id": 947, - "name": "useClaimToken", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for claiming a ERC20 tokens from a smart contract.\n\nAvailable to use on smart contracts that implement both the [ERC20](https://portal.thirdweb.com/contracts/build/extensions/erc-20/ERC20) interface\nand the [" - }, - { - "kind": "code", - "text": "`claim`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721Claimable) function,\nsuch as the [Token Drop](https://thirdweb.com/thirdweb.eth/DropERC20)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useClaimToken, useContract, Web3Button } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { mutateAsync: claimToken, isLoading, error } = useClaimToken(contract);\n\n return (\n \n claimToken({\n to: \"{{wallet_address}}\", // Use useAddress hook to get current wallet address\n amount: 100, // Amount of token to claim\n })\n }\n >\n Claim Token\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A mutation object to tokens to the wallet specified in the params\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useClaimToken(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\nThe mutation function takes an object as an argument with the following properties:\n\n#### to (required)\nLikely, you will want to claim the token to the currently connected wallet address.\n\nYou can use the " - }, - { - "kind": "code", - "text": "`useAddress`" - }, - { - "kind": "text", - "text": " hook to get this value.\n\n#### amount (required)\nThe amount of tokens to be claimed.\n\n#### checkERC20Allowance (optional)\nBoolean value to check whether the current wallet has enough allowance to pay for claiming the tokens before\nattempting to claim the tokens.\n\nDefaults to " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": "." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC20ClaimPhasesV2 | ERC20ClaimPhasesV1 | ERC20ClaimConditionsV2 | ERC20ClaimConditionsV1" - } - ] - }, - { - "tag": "@token", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 347, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L347" - } - ], - "parameters": [ - { - "id": 948, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`TokenContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1171, - "name": "TokenContract", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 949, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/core/classes/erc-20.d.ts", - "line": 444, - "character": 112 - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": 1242, - "name": "ClaimTokenParams", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 411, - "name": "useCompilerMetadata", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 147, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L147" - } - ], - "signatures": [ - { - "id": 412, - "name": "useCompilerMetadata", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for retrieving information such as the ABI, license, and metadata of a smart contract using it's contract address." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useCompilerMetadata } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { data, isLoading, error } = useCompilerMetadata(contractAddress);\n}\n\nexport default App;\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Query result containing the compiler metadata of the deployed contract in the " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property" - } - ] - }, - { - "tag": "@metadata", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 147, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L147" - } - ], - "parameters": [ - { - "id": 413, - "name": "contractAddress", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The address of the deployed contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/schema/contracts/custom.ts", - "qualifiedName": "PublishedMetadata" - }, - "name": "PublishedMetadata", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "literal", - "value": null - } - ] - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 63, - "name": "useConnect", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 222, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L222" - } - ], - "signatures": [ - { - "id": 64, - "name": "useConnect", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for connecting a wallet to your app.\n\nThe wallet also needs to be added in " - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "'s " - }, - { - "kind": "code", - "text": "`supportedWallets`" - }, - { - "kind": "text", - "text": " prop to enable auto-connection on page load." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useConnect, metamaskWallet } from \"@thirdweb-dev/react\";\n\nconst metamaskConfig = metamaskWallet();\n\nfunction App() {\n const connect = useConnect();\n\n return (\n {\n const wallet = await connect(metamaskConfig, connectOptions);\n console.log(\"connected to \", wallet);\n }}\n >\n Connect to MetaMask\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A function to connect a wallet\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst connect = useConnect();\n\nfunction handleConnect() {\n const wallet = await connect(walletConfig, connectOptions);\n}\n```" - }, - { - "kind": "text", - "text": "\n\nThe function accepts two arguments: " - }, - { - "kind": "code", - "text": "`walletConfig`" - }, - { - "kind": "text", - "text": " and " - }, - { - "kind": "code", - "text": "`connectOptions`" - }, - { - "kind": "text", - "text": "\n\n#### walletConfig\nThe wallet to connect. Must be of type " - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": ".\n\n[Learn more about the available wallet options](https://portal.thirdweb.com/react/v4/connecting-wallets).\n\n#### connectOptions\nThe typeof " - }, - { - "kind": "code", - "text": "`connectOptions`" - }, - { - "kind": "text", - "text": " object depends on the wallet you are connecting. For some wallets, it may be optional\n\nIf you are using typescript, " - }, - { - "kind": "code", - "text": "`connect`" - }, - { - "kind": "text", - "text": " will automatically infer the type of " - }, - { - "kind": "code", - "text": "`connectOptions`" - }, - { - "kind": "text", - "text": " based on the " - }, - { - "kind": "code", - "text": "`walletConfig`" - }, - { - "kind": "text", - "text": " you pass in as the first argument and will show type errors if you pass in invalid options." - } - ] - }, - { - "tag": "@walletConnection", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 222, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L222" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 65, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx", - "line": 99, - "character": 11, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx#L99" - } - ], - "signatures": [ - { - "id": 66, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx", - "line": 99, - "character": 11, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx#L99" - } - ], - "typeParameters": [ - { - "id": 67, - "name": "I", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": 234, - "name": "WalletInstance", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 68, - "name": "args", - "variant": "param", - "kind": 32768, - "flags": { - "isRest": true - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "ConnectFnArgs" - }, - "typeArguments": [ - { - "type": "reference", - "target": 67, - "name": "I", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "ConnectFnArgs", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "reference", - "target": 67, - "name": "I", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - } - ] - }, - { - "id": 69, - "name": "useConnectionStatus", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 285, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L285" - } - ], - "signatures": [ - { - "id": 70, - "name": "useConnectionStatus", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for checking whether your app is connected to a wallet or not." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useConnectionStatus } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const connectionStatus = useConnectionStatus();\n\n if (connectionStatus === \"unknown\") return

Loading...

;\n if (connectionStatus === \"connecting\") return

Connecting...

;\n if (connectionStatus === \"connected\") return

You are connected

;\n if (connectionStatus === \"disconnected\")\n return

You are not connected to a wallet

;\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The wallet connection status\n\nIt can be one of the following:\n- " - }, - { - "kind": "code", - "text": "`unknown`" - }, - { - "kind": "text", - "text": ": connection status is not known yet. This is the initial state.\n- " - }, - { - "kind": "code", - "text": "`connecting`" - }, - { - "kind": "text", - "text": ": wallet is being connected. Either because of a user action, or when the wallet is auto-connecting on page load.\n- " - }, - { - "kind": "code", - "text": "`connected`" - }, - { - "kind": "text", - "text": ": the wallet is connected and ready to be used.\n- " - }, - { - "kind": "code", - "text": "`disconnected`" - }, - { - "kind": "text", - "text": ": the wallet is not connected." - } - ] - }, - { - "tag": "@walletConnection", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 285, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L285" - } - ], - "type": { - "type": "reference", - "target": 109, - "name": "ConnectionStatus", - "package": "@thirdweb-dev/react-core" - } - } - ] - }, - { - "id": 430, - "name": "useContract", - "variant": "declaration", - "kind": 64, - "flags": { - "isPublic": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 214, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L214" - }, - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 249, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L249" - }, - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 275, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L275" - }, - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 281, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L281" - }, - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 291, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L291" - } - ], - "signatures": [ - { - "id": 431, - "name": "useContract", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for connecting to a smart contract.\n\nProvide your smart contract address as the first parameter. Once connected, the " - }, - { - "kind": "code", - "text": "`contract`" - }, - { - "kind": "text", - "text": " will be an instance of your smart contract.\n\nThe ABI of the smart contract is resolved automatically for contracts deployed or imported using the [thirdweb dashboard](https://thirdweb.com/dashboard)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nconst { contract, isLoading, error } = useContract(contractAddress);\n```" - } - ] - }, - { - "tag": "@remarks", - "content": [ - { - "kind": "text", - "text": "To cache the ABI of the smart contract, use [thirdweb generate](https://portal.thirdweb.com/cli/generate). This is recommended to improve performance and provide type-safety when interacting with your smart contract." - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Query result object that includes the contract once it is resolved" - } - ] - }, - { - "tag": "@contract", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 214, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L214" - } - ], - "parameters": [ - { - "id": 432, - "name": "contractAddress", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The address of the deployed contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": 493, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "UseContractResult", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 433, - "name": "useContract", - "variant": "signature", - "kind": 4096, - "flags": { - "isPublic": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If your contract is a prebuilt contract, it is strongly recommended you provide the contract's name as the second argument to gain access to improved top-level functions and type inference.\n\nAvailable contract types are:\n- " - }, - { - "kind": "code", - "text": "`\"nft-drop\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"signature-drop\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"edition-drop\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"nft-collection\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"edition\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"multiwrap\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"pack\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"token-drop\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"token\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"marketplace\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"marketplace-v3\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"split\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"vote\"`" - }, - { - "kind": "text", - "text": "\n\nWhen a contract type is provided, the contract object will be typed as the contract's class.\nFor example, if you provide the contract type " - }, - { - "kind": "code", - "text": "`\"pack\"`" - }, - { - "kind": "text", - "text": ", the contract object will be returned typed as an instance of the " - }, - { - "kind": "code", - "text": "`Pack`" - }, - { - "kind": "text", - "text": " class, unlocking all of the top-level functions specific to the pack." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nconst { contract, isLoading, error } = useContract(contractAddress, \"pack\");\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Query result object that includes the contract once it is resolved" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 249, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L249" - } - ], - "typeParameters": [ - { - "id": 434, - "name": "TContractType", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "split" - }, - { - "type": "literal", - "value": "edition-drop" - }, - { - "type": "literal", - "value": "edition" - }, - { - "type": "literal", - "value": "marketplace" - }, - { - "type": "literal", - "value": "marketplace-v3" - }, - { - "type": "literal", - "value": "multiwrap" - }, - { - "type": "literal", - "value": "nft-collection" - }, - { - "type": "literal", - "value": "nft-drop" - }, - { - "type": "literal", - "value": "pack" - }, - { - "type": "literal", - "value": "signature-drop" - }, - { - "type": "literal", - "value": "token-drop" - }, - { - "type": "literal", - "value": "token" - }, - { - "type": "literal", - "value": "vote" - }, - { - "type": "literal", - "value": "custom" - } - ] - } - } - ], - "parameters": [ - { - "id": 435, - "name": "contractAddress", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The address of the deployed contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 436, - "name": "_contractType", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The type of the contract" - } - ] - }, - "type": { - "type": "reference", - "target": 434, - "name": "TContractType", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - } - ], - "type": { - "type": "reference", - "target": 493, - "typeArguments": [ - { - "type": "conditional", - "checkType": { - "type": "reference", - "target": 434, - "name": "TContractType", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - }, - "extendsType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "PrebuiltContractType" - }, - "name": "PrebuiltContractType", - "package": "@thirdweb-dev/sdk" - }, - "trueType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ContractForPrebuiltContractType" - }, - "typeArguments": [ - { - "type": "reference", - "target": 434, - "name": "TContractType", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "ContractForPrebuiltContractType", - "package": "@thirdweb-dev/sdk" - }, - "falseType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - } - } - ], - "name": "UseContractResult", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 437, - "name": "useContract", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optionally, (if you don’t want to use the dashboard import feature),\nyou can provide your smart contract’s ABI to the second parameter of the useContract hook.\nThis is useful when developing on a local node, where it may be faster to use the ABI than to import the contract using the dashboard.\n\nThe ABI is only necessary if you have not deployed your contract with, or imported your contract to the [thirdweb dashboard](https://thirdweb.com/dashboard)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nconst { contract, isLoading, error } = useContract(contractAddress, contractAbi);\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Query result object that includes the contract once it is resolved" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 275, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L275" - } - ], - "parameters": [ - { - "id": 438, - "name": "contractAddress", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The address of the deployed contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 439, - "name": "_abi", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The ABI of the contract to use" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+contracts@5.7.0/node_modules/@ethersproject/contracts/src.ts/index.ts", - "qualifiedName": "ContractInterface" - }, - "name": "ContractInterface", - "package": "@ethersproject/contracts" - } - } - ], - "type": { - "type": "reference", - "target": 493, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "UseContractResult", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 440, - "name": "useContract", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 281, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L281" - } - ], - "typeParameters": [ - { - "id": 441, - "name": "TContractAddress", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "parameters": [ - { - "id": 442, - "name": "contractAddress", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 441, - "name": "TContractAddress", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": 493, - "typeArguments": [ - { - "type": "conditional", - "checkType": { - "type": "reference", - "target": 441, - "name": "TContractAddress", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - }, - "extendsType": { - "type": "reference", - "target": { - "sourceFileName": "../generated-abis/src/index.ts", - "qualifiedName": "ContractAddress" - }, - "name": "GeneratedContractAddress", - "package": "@thirdweb-dev/generated-abis", - "qualifiedName": "ContractAddress" - }, - "trueType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/contract.ts", - "qualifiedName": "BaseContractForAddress" - }, - "typeArguments": [ - { - "type": "reference", - "target": 441, - "name": "TContractAddress", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "BaseContractForAddress", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - }, - "falseType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - } - } - ], - "name": "UseContractResult", - "package": "@thirdweb-dev/react-core" - } - } - ] - }, - { - "id": 461, - "name": "useContractEvents", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 543, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L543" - } - ], - "signatures": [ - { - "id": 462, - "name": "useContractEvents", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for reading events emitted by a smart contract, including new events as they are emitted (optional).\n\nBy default, it reads all events emitted by the smart contract." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nimport { useContractEvents, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = useContractEvents(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, contains an array of " - }, - { - "kind": "code", - "text": "`ContractEvent`" - }, - { - "kind": "text", - "text": " objects" - } - ] - }, - { - "tag": "@contract", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 543, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L543" - } - ], - "parameters": [ - { - "id": 463, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The contract instance of the contract to listen to events for" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ValidContractInstance" - }, - "name": "ValidContractInstance", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 464, - "name": "eventName", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The name of the event to query for.\n\nFor example, if your smart contract emits an event called " - }, - { - "kind": "code", - "text": "`MyEvent`" - }, - { - "kind": "text", - "text": ", you would pass " - }, - { - "kind": "code", - "text": "`\"MyEvent\"`" - }, - { - "kind": "text", - "text": " to this parameter.\n\nOmit this parameter or provide undefined to query for all events emitted by the smart contract." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 465, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "An object containing options to filter the events being queried.\n\nAvailable options include\n- " - }, - { - "kind": "code", - "text": "`queryFilter`" - }, - { - "kind": "text", - "text": " to refine which events you want to read,\n- a boolean " - }, - { - "kind": "code", - "text": "`subscribe`" - }, - { - "kind": "text", - "text": " flag to subscribe to new events as they are emitted.\n\n### Example\n" - }, - { - "kind": "code", - "text": "```tsx\nimport {\n useContractEvents,\n useContract,\n Web3Button,\n} from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = useContractEvents(\n contract,\n \"MyEvent\",\n {\n queryFilter: {\n filters: {\n tokenId: 123, // e.g. Only events where tokenId = 123\n },\n fromBlock: 0, // Events starting from this block\n toBlock: 100, // Events up to this block\n order: \"asc\", // Order of events (\"asc\" or \"desc\")\n },\n subscribe: true, // Subscribe to new events\n },\n );\n```" - } - ] - }, - "type": { - "type": "reflection", - "declaration": { - "id": 466, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 467, - "name": "queryFilter", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 546, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L546" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/events.ts", - "qualifiedName": "EventQueryOptions" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Record", - "package": "typescript" - } - ], - "name": "EventQueryOptions", - "package": "@thirdweb-dev/sdk" - } - }, - { - "id": 468, - "name": "subscribe", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 546, - "character": 46, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L546" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 467, - 468 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 546, - "character": 11, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L546" - } - ] - } - }, - "defaultValue": "..." - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/events.ts", - "qualifiedName": "ContractEvent" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Record", - "package": "typescript" - } - ], - "name": "ContractEvent", - "package": "@thirdweb-dev/sdk" - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 443, - "name": "useContractMetadata", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 386, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L386" - } - ], - "signatures": [ - { - "id": 444, - "name": "useContractMetadata", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Get the metadata of given contract" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nconst { data: contractMetadata, isLoading } = useContractMetadata(contract);\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A Query result object that includes the contract metadata of the deployed contract" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ContractMetadata" - } - ] - }, - { - "tag": "@metadata", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 386, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L386" - } - ], - "typeParameters": [ - { - "id": 445, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ValidContractInstance" - }, - "name": "ValidContractInstance", - "package": "@thirdweb-dev/sdk" - } - } - ], - "parameters": [ - { - "id": 446, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The " - }, - { - "kind": "code", - "text": "`ValidContractInstance`" - }, - { - "kind": "text", - "text": " instance of the contract to get the metadata for" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 445, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "conditional", - "checkType": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 445, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - }, - "extendsType": { - "type": "intrinsic", - "name": "undefined" - }, - "trueType": { - "type": "intrinsic", - "name": "undefined" - }, - "falseType": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Awaited" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "ReturnType" - }, - "typeArguments": [ - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "get" - }, - "objectType": { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "metadata" - }, - "objectType": { - "type": "reference", - "target": 445, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - } - } - ], - "name": "ReturnType", - "package": "typescript" - } - ], - "name": "Awaited", - "package": "typescript" - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 447, - "name": "useContractMetadataUpdate", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 438, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L438" - } - ], - "signatures": [ - { - "id": 448, - "name": "useContractMetadataUpdate", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Update the metadata of the given contract" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nconst Component = () => {\n const { contract } = useContract(\"{{contract_address}}\");\n const {\n mutate: updateContractMetadata,\n isLoading,\n error,\n } = useContractMetadataUpdate(contract);\n\n if (error) {\n console.error(\"failed to update contract metadata\", error);\n }\n\n return (\n updateContractMetadata({ name: \"New name\", description: \"New description\" })}\n >\n Update contract metadata\n \n );\n};\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Mutation object to update the contract metadata" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ContractMetadata" - } - ] - }, - { - "tag": "@metadata", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 438, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L438" - } - ], - "parameters": [ - { - "id": 449, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The " - }, - { - "kind": "code", - "text": "`ValidContractInstance`" - }, - { - "kind": "text", - "text": " instance of the contract to get the metadata for" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ValidContractInstance" - }, - "name": "ValidContractInstance", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 450, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 452, - "name": "data", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 443, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L443" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 453, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 443, - "character": 10, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L443" - } - ], - "signatures": [ - { - "id": 454, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - }, - { - "id": 451, - "name": "receipt", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 442, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L442" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+abstract-provider@5.7.0/node_modules/@ethersproject/abstract-provider/src.ts/index.ts", - "qualifiedName": "TransactionReceipt" - }, - "name": "providers.TransactionReceipt", - "package": "@ethersproject/abstract-provider", - "qualifiedName": "TransactionReceipt" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 452, - 451 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 441, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L441" - } - ] - } - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reflection", - "declaration": { - "id": 455, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 460, - "name": "app_uri", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 451, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L451" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 457, - "name": "description", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 448, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L448" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 459, - "name": "external_link", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 450, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L450" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 458, - "name": "image", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 449, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L449" - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 456, - "name": "name", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 447, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L447" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 460, - 457, - 459, - 458, - 456 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 446, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L446" - } - ] - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 469, - "name": "useContractRead", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 671, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L671" - } - ], - "signatures": [ - { - "id": 470, - "name": "useContractRead", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Generic hook for reading any data from a smart contract via it’s function/view/variable name.\n\n" - }, - { - "kind": "code", - "text": "```javascript\nconst { contract } = useContract(\"{{contract_address}}\");\nconst { data, isLoading, error } = useContractRead(contract, \"functionName\", args);\n```" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "Provide your smart contract instance from " - }, - { - "kind": "code", - "text": "`useContract`" - }, - { - "kind": "text", - "text": ", a function name and the arguments to pass to the function (if any).\n\nFor example, to read the value of a view on your smart contract called " - }, - { - "kind": "code", - "text": "`getName`" - }, - { - "kind": "text", - "text": " you would do the following:\n\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { useContractRead, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = useContractRead(contract, \"getName\");\n}\n```" - } - ] - }, - { - "tag": "@remarks", - "content": [ - { - "kind": "text", - "text": "If you have cached the ABI of your smart contract using [thirdweb generate](https://portal.thirdweb.com/cli/generate), the functionName and args parameters are strongly typed according to your smart contract’s ABI." - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Query result object that includes the data returned by the function call" - } - ] - }, - { - "tag": "@contract", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 671, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L671" - } - ], - "typeParameters": [ - { - "id": 471, - "name": "TContractAddress", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 472, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ValidContractInstance" - }, - "name": "ValidContractInstance", - "package": "@thirdweb-dev/sdk" - } - }, - { - "id": 473, - "name": "TContractInstance", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ValidContractInstance" - }, - "name": "ValidContractInstance", - "package": "@thirdweb-dev/sdk" - } - }, - { - "id": 474, - "name": "TFunctionName", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 475, - "name": "TArgs", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "unknown" - } - } - }, - { - "id": 476, - "name": "TReturnType", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "parameters": [ - { - "id": 477, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The contract instance of the contract to call a function on" - } - ] - }, - "type": { - "type": "conditional", - "checkType": { - "type": "reference", - "target": 473, - "name": "TContractInstance", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - }, - "extendsType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ValidContractInstance" - }, - "name": "ValidContractInstance", - "package": "@thirdweb-dev/sdk" - }, - "trueType": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 473, - "typeArguments": [ - { - "type": "reference", - "target": 473, - "name": "TContractInstance", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "TContractInstance", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - }, - "falseType": { - "type": "conditional", - "checkType": { - "type": "reference", - "target": 471, - "name": "TContractAddress", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - }, - "extendsType": { - "type": "intrinsic", - "name": "never" - }, - "trueType": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/contract.ts", - "qualifiedName": "BaseContractForAddress" - }, - "typeArguments": [ - { - "type": "reference", - "target": 471, - "typeArguments": [ - { - "type": "reference", - "target": 471, - "name": "TContractAddress", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "TContractAddress", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "BaseContractForAddress", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - }, - "falseType": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+contracts@5.7.0/node_modules/@ethersproject/contracts/src.ts/index.ts", - "qualifiedName": "BaseContract" - }, - "name": "BaseContract", - "package": "@ethersproject/contracts" - } - ], - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - } - }, - { - "id": 478, - "name": "functionName", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The name of the function to call in the smart contract. This can be any function, view, variable, etc. that does not require a transaction to occur." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 474, - "name": "TFunctionName", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 479, - "name": "args", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The arguments to pass to the function (if any)" - } - ] - }, - "type": { - "type": "reference", - "target": 475, - "name": "TArgs", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - }, - { - "id": 480, - "name": "overrides", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "code", - "text": "`CallOverrides`" - }, - { - "kind": "text", - "text": " object to send with your request.\n\nTo include the sender's address (msg.sender) when calling view functions within your smart contract, include the property " - }, - { - "kind": "code", - "text": "`{from: 0X123}`" - }, - { - "kind": "text", - "text": " passing the relevant address.\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { data, isLoading, error } = useContractRead(contract, \"getName\", [\"arg1\", \"arg2\"], {\n blockTag: 123,\n from: \"0x123\",\n });\n```" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+contracts@5.7.0/node_modules/@ethersproject/contracts/src.ts/index.ts", - "qualifiedName": "CallOverrides" - }, - "name": "CallOverrides", - "package": "@ethersproject/contracts" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": 476, - "name": "TReturnType", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 392, - "name": "useContractType", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 77, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L77" - } - ], - "signatures": [ - { - "id": 393, - "name": "useContractType", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for determining the type of contract for a contract address.\n\nThis is useful if you want to determine if a contract is a [prebuilt contract](https://portal.thirdweb.com/pre-built-contracts)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useContractType } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { data, isLoading, error } = useContractType(contractAddress);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Query result containing the type of the contract in the " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property" - } - ] - }, - { - "tag": "@metadata", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 77, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L77" - } - ], - "parameters": [ - { - "id": 394, - "name": "contractAddress", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The address of the contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "literal", - "value": "split" - }, - { - "type": "literal", - "value": "edition-drop" - }, - { - "type": "literal", - "value": "edition" - }, - { - "type": "literal", - "value": "marketplace" - }, - { - "type": "literal", - "value": "marketplace-v3" - }, - { - "type": "literal", - "value": "multiwrap" - }, - { - "type": "literal", - "value": "nft-collection" - }, - { - "type": "literal", - "value": "nft-drop" - }, - { - "type": "literal", - "value": "pack" - }, - { - "type": "literal", - "value": "signature-drop" - }, - { - "type": "literal", - "value": "token-drop" - }, - { - "type": "literal", - "value": "token" - }, - { - "type": "literal", - "value": "vote" - }, - { - "type": "literal", - "value": "custom" - } - ] - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 481, - "name": "useContractWrite", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 776, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L776" - } - ], - "signatures": [ - { - "id": 482, - "name": "useContractWrite", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Generic hook for calling any smart contract function that requires a transaction to take place.\n\nProvide your smart contract instance returned from the " - }, - { - "kind": "code", - "text": "`useContract`" - }, - { - "kind": "text", - "text": " hook, along with the name of the function you wish to call on your smart contract as arguments to the hook.\n\nThen call the " - }, - { - "kind": "code", - "text": "`mutate`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`mutateAsync`" - }, - { - "kind": "text", - "text": " function returned by the hook, providing an array of arguments to send to your smart contract function.\n\nIf you provide too many or too few arguments, the " - }, - { - "kind": "code", - "text": "`error`" - }, - { - "kind": "text", - "text": " property will be populated with an error message.\n\nIf your function has no arguments, provide an empty array by calling the function with " - }, - { - "kind": "code", - "text": "`{ args: [] }`" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nimport { useContractWrite, useContract, Web3Button } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { mutateAsync, isLoading, error } = useContractWrite(\n contract,\n \"setName\",\n );\n\n return (\n mutateAsync({ args: [\"My Name\"] })}\n >\n Send Transaction\n \n );\n}\n```" - } - ] - }, - { - "tag": "@remarks", - "content": [ - { - "kind": "text", - "text": "If you have cached the ABI of your smart contract using [thirdweb generate](https://portal.thirdweb.com/cli/generate), the functionName and args parameters are strongly typed according to your smart contract’s ABI." - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A mutation object that includes the write function to call" - } - ] - }, - { - "tag": "@contract", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 776, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L776" - } - ], - "typeParameters": [ - { - "id": 483, - "name": "TContractAddress", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 484, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ValidContractInstance" - }, - "name": "ValidContractInstance", - "package": "@thirdweb-dev/sdk" - } - }, - { - "id": 485, - "name": "TContractInstance", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ValidContractInstance" - }, - "name": "ValidContractInstance", - "package": "@thirdweb-dev/sdk" - } - }, - { - "id": 486, - "name": "TFunctionName", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 487, - "name": "TArgs", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "parameters": [ - { - "id": 488, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The contract instance of the contract to call a function on" - } - ] - }, - "type": { - "type": "conditional", - "checkType": { - "type": "reference", - "target": 485, - "name": "TContractInstance", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - }, - "extendsType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ValidContractInstance" - }, - "name": "ValidContractInstance", - "package": "@thirdweb-dev/sdk" - }, - "trueType": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 485, - "typeArguments": [ - { - "type": "reference", - "target": 485, - "name": "TContractInstance", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "TContractInstance", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - }, - "falseType": { - "type": "conditional", - "checkType": { - "type": "reference", - "target": 483, - "name": "TContractAddress", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - }, - "extendsType": { - "type": "intrinsic", - "name": "never" - }, - "trueType": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/contract.ts", - "qualifiedName": "BaseContractForAddress" - }, - "typeArguments": [ - { - "type": "reference", - "target": 483, - "typeArguments": [ - { - "type": "reference", - "target": 483, - "name": "TContractAddress", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "TContractAddress", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "BaseContractForAddress", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - }, - "falseType": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+contracts@5.7.0/node_modules/@ethersproject/contracts/src.ts/index.ts", - "qualifiedName": "BaseContract" - }, - "name": "BaseContract", - "package": "@ethersproject/contracts" - } - ], - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - } - }, - { - "id": 489, - "name": "functionName", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The name of the function to call in the smart contract." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 486, - "name": "TFunctionName", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/types.ts", - "qualifiedName": "TransactionResultWithMetadata" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "TransactionResultWithMetadata", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reflection", - "declaration": { - "id": 490, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 491, - "name": "args", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 817, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L817" - } - ], - "type": { - "type": "reference", - "target": 487, - "name": "TArgs", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - }, - { - "id": 492, - "name": "overrides", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 818, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L818" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+contracts@5.7.0/node_modules/@ethersproject/contracts/src.ts/index.ts", - "qualifiedName": "CallOverrides" - }, - "name": "CallOverrides", - "package": "@ethersproject/contracts" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 491, - 492 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contracts.ts", - "line": 816, - "character": 7, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contracts.ts#L816" - } - ] - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 972, - "name": "useCreateAccount", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account-factory.ts", - "line": 163, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account-factory.ts#L163" - } - ], - "signatures": [ - { - "id": 973, - "name": "useCreateAccount", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Create a account in the account factory contract" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nconst Component = () => {\n const { contract } = useContract(\"{{contract_address}}\");\n const {\n mutate: createAccount,\n isLoading,\n error,\n } = useCreateAccount(contract);\n\n if (error) {\n console.error(\"failed to create account\", error);\n }\n\n return (\n createAccount(\"0x...\")}\n >\n Create Account\n \n );\n};\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A mutation object to create a account" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "AccountFactory" - } - ] - }, - { - "tag": "@smartWallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account-factory.ts", - "line": 163, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account-factory.ts#L163" - } - ], - "parameters": [ - { - "id": 974, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a account factory contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+contracts@5.7.0/node_modules/@ethersproject/contracts/src.ts/index.ts", - "qualifiedName": "BaseContract" - }, - "name": "BaseContract", - "package": "@ethersproject/contracts" - } - ], - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/types.ts", - "qualifiedName": "TransactionResultWithAddress" - }, - "name": "TransactionResultWithAddress", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 622, - "name": "useCreateAuctionListing", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2140, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2140" - } - ], - "signatures": [ - { - "id": 623, - "name": "useCreateAuctionListing", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for creating an auction listing on a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " or\n[MarketplaceV3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) smart contract.\n\nAuction listings hold the NFTs in escrow; requiring the seller to transfer the NFTs to the marketplace contract\nas part of the listing creation process.\n\nProvide your " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": "\nor\n[MarketplaceV3](https://thirdweb.com/thirdweb.eth/MarketplaceV3)\ncontract as the argument to the hook.\n\nThen, provide the information about the listing you want to create as the argument to the mutation." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport {\n useCreateAuctionListing,\n useContract,\n Web3Button,\n} from \"@thirdweb-dev/react\";\nimport { NATIVE_TOKEN_ADDRESS } from \"@thirdweb-dev/sdk\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace-v3\");\n const {\n mutateAsync: createAuctionListing,\n isLoading,\n error,\n } = useCreateAuctionListing(contract);\n\n return (\n \n createAuctionListing({\n tokenId: \"{{token_id}}\", // The ID of the token to list.\n assetContractAddress: \"{{asset_contract_address}}\", // The contract address of the asset being listed.\n currencyContractAddress: NATIVE_TOKEN_ADDRESS, // The address of the currency to accept for the listing.\n quantity: \"{{quantity}}\",\n startTimestamp: new Date(),\n buyoutBidAmount: \"{{buyout_bid_amount}}\",\n minimumBidAmount: \"{{minimum_bid_amount}}\",\n endTimestamp: new Date(),\n bidBufferBps: \"{{bid_buffer_bps}}\",\n timeBufferInSeconds: \"{{time_buffer_in_seconds}}\",\n })\n }\n >\n Create Auction Listing\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A mutation object to create a new auction listing.\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useCreateAuctionListing(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\n\nThe mutation function takes an object of type " - }, - { - "kind": "code", - "text": "`NewAuctionListing`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`EnglishAuctionInputParams`" - }, - { - "kind": "text", - "text": " as its argument which contains the following properties:\n\n#### tokenId (required)\nThe token ID of the NFT you are listing for auction.\n\n#### assetContractAddress (required)\nThe smart contract address of the NFT you are listing for auction.\n\n#### buyoutBidAmount (required)\nThe price to **buy** each token in the listing.\n\n- For ERC721 NFTs, this is the price to buy the NFT outright.\n- For ERC1155 NFTs, this is the price to " - }, - { - "kind": "code", - "text": "`1`" - }, - { - "kind": "text", - "text": " quantity of the NFT.\n\n#### currencyContractAddress (optional)\nThe address of the currency you want users to pay with and make bids in.\n\nYou likely want to use the token native to the chain you are on, e.g. Ether on Ethereum.\n\nTo do that, you can import the " - }, - { - "kind": "code", - "text": "`NATIVE_TOKEN_ADDRESS`" - }, - { - "kind": "text", - "text": " constant from " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/sdk`" - }, - { - "kind": "text", - "text": ".\n\nThe default value is " - }, - { - "kind": "code", - "text": "`NATIVE_TOKEN_ADDRESS`" - }, - { - "kind": "text", - "text": ".\n\n\n#### quantity (optional)\nHow many tokens to include in the listing.\n\n- For ERC721 NFTs, this is always " - }, - { - "kind": "code", - "text": "`1`" - }, - { - "kind": "text", - "text": ".\n- For ERC1155 NFTs, this is the quantity of tokens to include in the listing.\n\nThe default value is " - }, - { - "kind": "code", - "text": "`1`" - }, - { - "kind": "text", - "text": ".\n\n#### minimumBidAmount (required)\nThe minimum price that a bid must be in order to be placed on the listing, per token.\n\nBids that are lower than the reserve price will be rejected by the contract.\n\nThe default value is " - }, - { - "kind": "code", - "text": "`0`" - }, - { - "kind": "text", - "text": ".\n\n\n#### startTimestamp (optional)\nA " - }, - { - "kind": "code", - "text": "`Date`" - }, - { - "kind": "text", - "text": " object for the start time of the listing.\n\nThe default value is " - }, - { - "kind": "code", - "text": "`new Date()`" - }, - { - "kind": "text", - "text": ", which is the current time.\n\n\n#### endTimestamp (optional)\nA " - }, - { - "kind": "code", - "text": "`Date`" - }, - { - "kind": "text", - "text": " object for the end time of the listing (when the listing will expire).\n\n#### bidBufferBps (optional)\nBid buffer in basis points (1/100th of a percent).\n\nThe bid buffer is what percentage higher the next bid must be than the current highest bid.\n\nFor example, if you set a bid buffer of " - }, - { - "kind": "code", - "text": "`100`" - }, - { - "kind": "text", - "text": ", then the next bid must be at least " - }, - { - "kind": "code", - "text": "`1%`" - }, - { - "kind": "text", - "text": " higher than the current highest bid.\n\n#### timeBufferInSeconds (optional)\nTime buffer in seconds.\n\nThe time buffer is how much time is added to the listing when a new bid is placed.\n\nThis is to prevent users from placing a bid at the last second and winning the auction." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "EnglishAuctions" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2140, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2140" - } - ], - "typeParameters": [ - { - "id": 624, - "name": "TMarketplace", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplace.ts", - "qualifiedName": "Marketplace" - }, - "name": "Marketplace", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplacev3.ts", - "qualifiedName": "MarketplaceV3" - }, - "name": "MarketplaceV3", - "package": "@thirdweb-dev/sdk" - } - ] - } - } - ], - "parameters": [ - { - "id": 625, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 624, - "name": "TMarketplace", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/types.ts", - "qualifiedName": "TransactionResultWithId" - }, - "name": "TransactionResultWithId", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "conditional", - "checkType": { - "type": "reference", - "target": 624, - "name": "TMarketplace", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - }, - "extendsType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplace.ts", - "qualifiedName": "Marketplace" - }, - "name": "Marketplace", - "package": "@thirdweb-dev/sdk" - }, - "trueType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplace/NewAuctionListing.ts", - "qualifiedName": "NewAuctionListing" - }, - "name": "NewAuctionListing", - "package": "@thirdweb-dev/sdk" - }, - "falseType": { - "type": "reflection", - "declaration": { - "id": 626, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/schema/marketplacev3/english-auctions.d.ts", - "line": 65, - "character": 3 - } - ] - } - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 617, - "name": "useCreateDirectListing", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1885, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1885" - } - ], - "signatures": [ - { - "id": 618, - "name": "useCreateDirectListing", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for creating a new direct listing on a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": "\nor [MarketplaceV3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) smart contract.\n\nDirect listings require the user to approve the marketplace to transfer the NFTs on their behalf as part of the listing creation process.\nThis is because the marketplace needs permission to execute sales and transfer the NFTs to the buyer when a sale is made." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport {\n useCreateDirectListing,\n useContract,\n Web3Button,\n} from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace-v3\");\n const {\n mutateAsync: createDirectListing,\n isLoading,\n error,\n } = useCreateDirectListing(contract);\n\n return (\n \n createDirectListing({\n assetContractAddress: \"{{asset_contract_address}}\",\n tokenId: \"{{token_id}}\",\n pricePerToken: \"{{price_per_token}}\",\n currencyContractAddress: \"{{currency_contract_address}}\",\n isReservedListing: false,\n quantity: \"{{quantity}}\",\n startTimestamp: new Date(),\n endTimestamp: new Date(\n new Date().getTime() + 7 * 24 * 60 * 60 * 1000,\n ),\n })\n }\n >\n Create Direct Listing\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Mutation object to create a new direct listing\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useCreateDirectListing(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\nThe mutation function takes an object as an argument with the following properties:\n\n#### assetContractAddress (required)\nThe address of the NFT smart contract that you want to list.\n\n#### tokenId (required)\nThe token ID of the NFT that you want to list.\n\n#### pricePerToken (required)\nThe price to **buy** each token in the listing.\n\n- For ERC721 NFTs, this is the price to buy the NFT outright.\n- For ERC1155 NFTs, this is the price to " - }, - { - "kind": "code", - "text": "`1`" - }, - { - "kind": "text", - "text": " quantity of the NFT.\n\n#### currencyContractAddress (optional)\nThe address of the currency you want users to pay with and make bids in.\n\nYou likely want to use the token native to the chain you are on, e.g. Ether on Ethereum.\n\nTo do that, you can import the " - }, - { - "kind": "code", - "text": "`NATIVE_TOKEN_ADDRESS`" - }, - { - "kind": "text", - "text": " constant from " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/sdk`" - }, - { - "kind": "text", - "text": ".\n\nThe default value is " - }, - { - "kind": "code", - "text": "`NATIVE_TOKEN_ADDRESS`" - }, - { - "kind": "text", - "text": ".\n\n#### isReservedListing (optional)\nWhen set to true, the seller must explicitly approve which wallet addresses can buy the NFT.\n\n#### quantity (optional)\nHow many tokens to include in the listing.\n\n- For ERC721 NFTs, this is always " - }, - { - "kind": "code", - "text": "`1`" - }, - { - "kind": "text", - "text": ".\n- For ERC1155 NFTs, this is the quantity of tokens to include in the listing.\n\n#### startTimestamp (optional)\nA " - }, - { - "kind": "code", - "text": "`Date`" - }, - { - "kind": "text", - "text": " object for the start time of the listing.\n\nThe default value is " - }, - { - "kind": "code", - "text": "`new Date()`" - }, - { - "kind": "text", - "text": ", which is the current time.\n\n#### endTimestamp (optional)\nA " - }, - { - "kind": "code", - "text": "`Date`" - }, - { - "kind": "text", - "text": " object for the end time of the listing (when the listing will expire)." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "DirectListings" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1885, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1885" - } - ], - "typeParameters": [ - { - "id": 619, - "name": "TMarketplace", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplace.ts", - "qualifiedName": "Marketplace" - }, - "name": "Marketplace", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplacev3.ts", - "qualifiedName": "MarketplaceV3" - }, - "name": "MarketplaceV3", - "package": "@thirdweb-dev/sdk" - } - ] - } - } - ], - "parameters": [ - { - "id": 620, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a Marketplace contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 619, - "name": "TMarketplace", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/types.ts", - "qualifiedName": "TransactionResultWithId" - }, - "name": "TransactionResultWithId", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "conditional", - "checkType": { - "type": "reference", - "target": 619, - "name": "TMarketplace", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - }, - "extendsType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplace.ts", - "qualifiedName": "Marketplace" - }, - "name": "Marketplace", - "package": "@thirdweb-dev/sdk" - }, - "trueType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplace/NewDirectListing.ts", - "qualifiedName": "NewDirectListing" - }, - "name": "NewDirectListing", - "package": "@thirdweb-dev/sdk" - }, - "falseType": { - "type": "reflection", - "declaration": { - "id": 621, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/schema/marketplacev3/direct-listings.d.ts", - "line": 49, - "character": 3 - } - ] - } - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 799, - "name": "useCreateDirectListingBatch", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1980, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1980" - } - ], - "signatures": [ - { - "id": 800, - "name": "useCreateDirectListingBatch", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Create multiple direct listings in one batch" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nconst Component = () => {\n const { contract } = useContract(\"{{contract_address}}\");\n const {\n mutate: createDirectListingBatch,\n isLoading,\n error,\n } = useCreateDirectListingBatch(contract);\n\n if (error) {\n console.error(\"failed to create direct listing batch\", error);\n }\n\n // Sample data\n const directListingData = [\n {\n assetContractAddress: \"nft-contract-address\",\n tokenId: \"token-id-1\",\n quantity: \"quantity-1\",\n currencyContractAddress: \"currency-address\",\n pricePerToken: 1\n },\n {\n assetContractAddress: \"nft-contract-address\",\n tokenId: \"token-id-2\",\n quantity: 1,\n currencyContractAddress: \"currency-address\",\n pricePerToken: 0\n },\n ];\n return (\n createDirectListingBatch(directListingData)}\n >\n Create batch Direct Listing!\n \n );\n};\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "a mutation object that can be used to create a new batch of direct listings" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "DirectListings" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1980, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1980" - } - ], - "typeParameters": [ - { - "id": 801, - "name": "TMarketplaceV3", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplacev3.ts", - "qualifiedName": "MarketplaceV3" - }, - "name": "MarketplaceV3", - "package": "@thirdweb-dev/sdk" - } - } - ], - "parameters": [ - { - "id": 802, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "an instance of a Marketplace contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 801, - "name": "TMarketplaceV3", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/types.ts", - "qualifiedName": "TransactionResultWithId" - }, - "name": "TransactionResultWithId", - "package": "@thirdweb-dev/sdk" - } - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "array", - "elementType": { - "type": "reflection", - "declaration": { - "id": 803, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/schema/marketplacev3/direct-listings.d.ts", - "line": 49, - "character": 3 - } - ] - } - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 986, - "name": "useCreateSessionKey", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account.ts", - "line": 194, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account.ts#L194" - } - ], - "signatures": [ - { - "id": 987, - "name": "useCreateSessionKey", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Create and add a session key for the smart wallet account" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\n const Component = () => {\n const {\n mutate: createSessionKey,\n isLoading,\n error,\n } = useCreateSessionKey();\n\n if (error) {\n console.error(\"failed to create session key\", error);\n }\n\n return (\n createSessionKey(\n keyAddress,\n {\n approvedCallTargets: [\"0x...\"], // the addresses of contracts that the session key can call\n nativeTokenLimitPerTransaction: 0.1, // the maximum amount of native token (in ETH) that the session key can spend per transaction\n startDate: new Date(), // the date when the session key becomes active\n expirationDate = new Date(Date.now() + 24 * 60 * 60 * 1000); // the date when the session key expires\n }\n )}\n >\n Create Session Key\n \n );\n };\n```" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "Account" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Mutation object to create and add a session key for the smart wallet\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useCreateSessionKey();\n```" - }, - { - "kind": "text", - "text": "\n\n### options\nThe mutation function takes an object with the following properties as argument:\n\n#### address\nThe address to add as an admin on the account as a " - }, - { - "kind": "code", - "text": "`string`" - }, - { - "kind": "text", - "text": ".\n\n#### approvedCallTargets\nAn array of addresses that the session key can call as a " - }, - { - "kind": "code", - "text": "`string[]`" - }, - { - "kind": "text", - "text": ".\n\n#### nativeTokenLimitPerTransaction\nThe maximum amount of native token (in ETH) that the session key can spend per transaction as a " - }, - { - "kind": "code", - "text": "`number`" - }, - { - "kind": "text", - "text": ".\n\n#### startDate\nThe date when the session key becomes active as a " - }, - { - "kind": "code", - "text": "`Date`" - }, - { - "kind": "text", - "text": ".\n\n#### startDate\nThe date when the session key expires as a " - }, - { - "kind": "code", - "text": "`Date`" - }, - { - "kind": "text", - "text": "." - } - ] - }, - { - "tag": "@smartWallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account.ts", - "line": 194, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account.ts#L194" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/types.ts", - "qualifiedName": "TransactionResult" - }, - "name": "TransactionResult", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": { - "sourceFileName": "src/evm/hooks/async/account.ts", - "qualifiedName": "CreateSessionKeyInput" - }, - "name": "CreateSessionKeyInput", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 71, - "name": "useCreateWalletInstance", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 385, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L385" - } - ], - "signatures": [ - { - "id": 72, - "name": "useCreateWalletInstance", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for creating a wallet instance from given " - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": " object.\n\nIf you just want to connect the wallet and don't need the wallet instance before connecting the wallet, use the " - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": " hook instead." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useConnect, metamaskWallet } from \"@thirdweb-dev/react\";\n\nconst metamaskConfig = metamaskWallet();\n\nfunction App() {\n const createWalletInstance = useCreateWalletInstance();\n\n return (\n {\n const metamaskWalletInstance = createWalletInstance(metamaskConfig);\n console.log(metamaskWalletInstance);\n }}\n >\n create wallet instance\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A function that creates a wallet instance for given " - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": " object." - } - ] - }, - { - "tag": "@walletConnection", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 385, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L385" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 73, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx", - "line": 103, - "character": 24, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx#L103" - } - ], - "signatures": [ - { - "id": 74, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx", - "line": 103, - "character": 24, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx#L103" - } - ], - "typeParameters": [ - { - "id": 75, - "name": "I", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": 234, - "name": "WalletInstance", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 76, - "name": "Wallet", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 144, - "typeArguments": [ - { - "type": "reference", - "target": 75, - "name": "I", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": 75, - "name": "I", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - } - ] - } - } - } - ] - }, - { - "id": 529, - "name": "useDelayedRevealLazyMint", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 679, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L679" - } - ], - "signatures": [ - { - "id": 530, - "name": "useDelayedRevealLazyMint", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to lazy-mint a batch of NFTs with [delayed reveal](https://portal.thirdweb.com/glossary/delayed-reveal);\nallowing the owner to set placeholder metadata and reveal the metadata of the NFTs at a later time.\n\nAvailable to use on contracts that implement the\n[ERC721Revealable](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721Revealable)\nor [ERC1155Revealable](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155Revealable)\ninterfaces." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nimport {\n useDelayedRevealLazyMint,\n useContract,\n Web3Button,\n} from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const {\n mutateAsync: mintNft,\n isLoading,\n error,\n } = useDelayedRevealLazyMint(contract);\n\n const nftData = {\n placeholder: {\n name: \"My NFT\",\n description: \"This is my NFT\",\n image: \"ipfs://example.com/my-nft.png\", // Accepts any URL or File type\n },\n metadatas: [\n {\n name: \"My NFT\",\n description: \"This is my NFT\",\n image: \"ipfs://example.com/my-nft.png\", // Accepts any URL or File type\n },\n ],\n password: \"{{password}}\", // Password to be used for encryption\n };\n\n return (\n mintNft(nftData)}\n >\n Mint NFTs\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Mutation object to lazy mint a batch of NFTs\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useDelayedRevealLazyMint(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\nThe mutation function takes an object as argument with below properties:\n\n#### metadatas\nAn array of metadata objects, representing the metadata of the NFTs to be lazy-minted. Each metadata object must conform to the [standard metadata properties](https://docs.opensea.io/docs/metadata-standards).\n\n#### password\nThe password used to encrypt the metadatas.\n\n__The password CANNOT be recovered once it is set. If you lose the password, you will not be able to reveal the metadata.__" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC721Revealable | ERC1155Revealable" - } - ] - }, - { - "tag": "@delayedReveal", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 679, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L679" - } - ], - "typeParameters": [ - { - "id": 531, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": 1199, - "name": "RevealableContract", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 532, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "inline-tag", - "tag": "@link", - "text": "DropContract", - "target": 1198, - "tsLinkText": "" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 531, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 533, - "name": "onProgress", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "an optional callback that will be called with the progress of the upload" - } - ] - }, - "type": { - "type": "reflection", - "declaration": { - "id": 534, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 681, - "character": 15, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L681" - } - ], - "signatures": [ - { - "id": 535, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 681, - "character": 15, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L681" - } - ], - "parameters": [ - { - "id": 536, - "name": "progress", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/events.ts", - "qualifiedName": "UploadProgressEvent" - }, - "name": "UploadProgressEvent", - "package": "@thirdweb-dev/sdk" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/types.ts", - "qualifiedName": "TransactionResultWithId" - }, - "name": "TransactionResultWithId", - "package": "@thirdweb-dev/sdk" - } - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": 1200, - "name": "DelayedRevealLazyMintInput", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 550, - "name": "useDirectListing", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 259, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L259" - } - ], - "signatures": [ - { - "id": 551, - "name": "useDirectListing", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to get a specific direct listing from a [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contract.\n\n__This hook is only for [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contracts.__\n\nFor " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contracts, use " - }, - { - "kind": "code", - "text": "`useListing`" - }, - { - "kind": "text", - "text": " instead." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useDirectListing, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace-v3\");\n const {\n data: directListing,\n isLoading,\n error,\n } = useDirectListing(contract, listingId);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's data property, once loaded, is a " - }, - { - "kind": "code", - "text": "`DirectListingV3`" - }, - { - "kind": "text", - "text": " object, containing the following properties:\n\n" - }, - { - "kind": "code", - "text": "```ts\n{\n // The id of the listing.\n id: string;\n // The address of the creator of listing.\n creatorAddress: string;\n // The address of the asset being listed.\n assetContractAddress: string;\n // The ID of the token to list.\n tokenId: string;\n // The quantity of tokens to include in the listing.\n // For ERC721s, this value should always be 1 (and will be forced internally regardless of what is passed here).\n quantity: string;\n // The address of the currency to accept for the listing.\n currencyContractAddress: string;\n // The `CurrencyValue` of the listing. Useful for displaying the price information.\n currencyValuePerToken: CurrencyValue;\n // The price to pay per unit of NFTs listed.\n pricePerToken: string;\n // The asset being listed.\n asset: NFTMetadata;\n // The start time of the listing.\n startTimeInSeconds: number;\n // The end time of the listing.\n endTimeInSeconds: number;\n // Whether the listing is reserved to be bought from a specific set of buyers.\n isReservedListing: boolean;\n // Whether the listing is CREATED, COMPLETED, or CANCELLED.\n status: Status;\n}\n```" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "DirectListings" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 259, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L259" - } - ], - "parameters": [ - { - "id": 552, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a marketplace v3 contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplacev3.ts", - "qualifiedName": "MarketplaceV3" - }, - "name": "MarketplaceV3", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 553, - "name": "listingId", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The ID of the listing to get. If the listing is not found (or is not a direct listing), the " - }, - { - "kind": "code", - "text": "`error`" - }, - { - "kind": "text", - "text": " property will be set in the return value of the hook." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplacev3/DirectListingV3.ts", - "qualifiedName": "DirectListingV3" - }, - "name": "DirectListingV3", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 562, - "name": "useDirectListings", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 632, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L632" - } - ], - "signatures": [ - { - "id": 563, - "name": "useDirectListings", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to get all the direct listings from a [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contract.\n\n__This hook is only for [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contracts.__\n\nFor " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contracts, use " - }, - { - "kind": "code", - "text": "`useListings`" - }, - { - "kind": "text", - "text": " instead." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useDirectListings, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace-v3\");\n const {\n data: directListings,\n isLoading,\n error,\n } = useDirectListings(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's data property, once loaded, is a " - }, - { - "kind": "code", - "text": "`DirectListingV3`" - }, - { - "kind": "text", - "text": " object, containing the following properties:\n\n" - }, - { - "kind": "code", - "text": "```ts\n{\n // The id of the listing.\n id: string;\n // The address of the creator of listing.\n creatorAddress: string;\n // The address of the asset being listed.\n assetContractAddress: string;\n // The ID of the token to list.\n tokenId: string;\n // The quantity of tokens to include in the listing.\n // For ERC721s, this value should always be 1 (and will be forced internally regardless of what is passed here).\n quantity: string;\n // The address of the currency to accept for the listing.\n currencyContractAddress: string;\n // The `CurrencyValue` of the listing. Useful for displaying the price information.\n currencyValuePerToken: CurrencyValue;\n // The price to pay per unit of NFTs listed.\n pricePerToken: string;\n // The asset being listed.\n asset: NFTMetadata;\n // The start time of the listing.\n startTimeInSeconds: number;\n // The end time of the listing.\n endTimeInSeconds: number;\n // Whether the listing is reserved to be bought from a specific set of buyers.\n isReservedListing: boolean;\n // Whether the listing is CREATED, COMPLETED, or CANCELLED.\n status: Status;\n}\n```" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "DirectListings" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 632, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L632" - } - ], - "parameters": [ - { - "id": 564, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`MarketplaceV3`" - }, - { - "kind": "text", - "text": " contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplacev3.ts", - "qualifiedName": "MarketplaceV3" - }, - "name": "MarketplaceV3", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 565, - "name": "filter", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "filter to pass to the query for the sake of pagination & filtering\n\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { useDirectListings, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace-v3\");\n const {\n data: directListings,\n isLoading,\n error,\n } = useDirectListings(\n contract,\n {\n count: 100, // Number of listings to fetch\n offeror: \"{{offeror_address}}\", // Has offers from this address\n seller: \"{{seller_address}}\", // Being sold by this address\n start: 0, // Start from this index (pagination)\n tokenContract: \"{{token_contract_address}}\", // Only show listings for NFTs from this collection\n tokenId: \"{{token_id}}\", // Only show listings with this NFT ID\n },\n );\n}\n```" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplace/MarketPlaceFilter.ts", - "qualifiedName": "MarketplaceFilter" - }, - "name": "MarketplaceFilter", - "package": "@thirdweb-dev/sdk" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplacev3/DirectListingV3.ts", - "qualifiedName": "DirectListingV3" - }, - "name": "DirectListingV3", - "package": "@thirdweb-dev/sdk" - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 581, - "name": "useDirectListingsCount", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1134, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1134" - } - ], - "signatures": [ - { - "id": 582, - "name": "useDirectListingsCount", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to get the total number of direct listings on a [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contract.\n\n__This hook is only for [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contracts.__\n\nFor " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contracts, use " - }, - { - "kind": "code", - "text": "`useListingsCount`" - }, - { - "kind": "text", - "text": " instead." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useDirectListingsCount, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace-v3\");\n const {\n data: listingsCount,\n isLoading,\n error,\n } = useDirectListingsCount(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, is a " - }, - { - "kind": "code", - "text": "`BigNumber`" - }, - { - "kind": "text", - "text": " containing the number of direct listings on the Marketplace V3 contract." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "DirectListings" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1134, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1134" - } - ], - "parameters": [ - { - "id": 583, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`MarketplaceV3`" - }, - { - "kind": "text", - "text": " contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplacev3.ts", - "qualifiedName": "MarketplaceV3" - }, - "name": "MarketplaceV3", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumber" - }, - "name": "BigNumber", - "package": "@ethersproject/bignumber" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 77, - "name": "useDisconnect", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 248, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L248" - } - ], - "signatures": [ - { - "id": 78, - "name": "useDisconnect", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for disconnecting the currently connected wallet." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useDisconnect } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const disconnect = useDisconnect();\n\n return ;\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A function to disconnect from current connected wallet" - } - ] - }, - { - "tag": "@walletConnection", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 248, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L248" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 79, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx", - "line": 100, - "character": 14, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx#L100" - } - ], - "signatures": [ - { - "id": 80, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx", - "line": 100, - "character": 14, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx#L100" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - } - ] - }, - { - "id": 554, - "name": "useEnglishAuction", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 357, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L357" - } - ], - "signatures": [ - { - "id": 555, - "name": "useEnglishAuction", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to get an english auction listing from a [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contract.\n\n**Note: This hook is only for [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contracts.**\n\nFor " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": "\ncontracts, use " - }, - { - "kind": "code", - "text": "`useListing`" - }, - { - "kind": "text", - "text": " instead." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useEnglishAuction, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace-v3\");\n const {\n data: englishAuction,\n isLoading,\n error,\n } = useEnglishAuction(contract, listingId);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, will be an " - }, - { - "kind": "code", - "text": "`EnglishAuction`" - }, - { - "kind": "text", - "text": " object, containing the following properties:\n\n" - }, - { - "kind": "code", - "text": "```ts\n{\n // The id of the auction\n id: string;\n // The address of the creator of auction.\n creatorAddress: string;\n // The address of the asset being auctioned.\n assetContractAddress: string;\n // The ID of the token to auction.\n tokenId: string;\n // The quantity of tokens to include in the auction.\n // For ERC721s, this value should always be 1 (and will be forced internally regardless of what is passed here).\n quantity: string;\n // The address of the currency to accept for the auction.\n currencyContractAddress: string;\n // The minimum price that a bid must be in order to be accepted.\n minimumBidAmount: string;\n // The `CurrencyValue` of the minimum bid amount.\n // Useful for displaying the price information.\n minimumBidCurrencyValue: CurrencyValue;\n // The buyout price of the auction.\n buyoutBidAmount: string;\n // The `CurrencyValue` of the buyout price.\n // Useful for displaying the price information.\n buyoutCurrencyValue: CurrencyValue;\n // This is a buffer e.g. x seconds.\n // If a new winning bid is made less than x seconds before expirationTimestamp, the\n // expirationTimestamp is increased by x seconds.\n timeBufferInSeconds: number;\n // This is a buffer in basis points e.g. x%.\n // To be considered as a new winning bid, a bid must be at least x% greater than\n // the current winning bid.\n bidBufferBps: number;\n // The start time of the auction.\n startTimeInSeconds: number;\n // The end time of the auction.\n endTimeInSeconds: number;\n // The asset being auctioned.\n asset: NFTMetadata;\n // Whether the listing is CREATED, COMPLETED, or CANCELLED.\n status: Status;\n}\n```" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "EnglishAuctions" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 357, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L357" - } - ], - "parameters": [ - { - "id": 556, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a marketplace v3 contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplacev3.ts", - "qualifiedName": "MarketplaceV3" - }, - "name": "MarketplaceV3", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 557, - "name": "auctionId", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "the auction id to check. If the listing with this ID cannot be found (or is not an auction), the " - }, - { - "kind": "code", - "text": "`error`" - }, - { - "kind": "text", - "text": " property will be set." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplacev3/EnglishAuction.ts", - "qualifiedName": "EnglishAuction" - }, - "name": "EnglishAuction", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 570, - "name": "useEnglishAuctions", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 893, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L893" - } - ], - "signatures": [ - { - "id": 571, - "name": "useEnglishAuctions", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to get a list of all English auctions from a [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contract.\n\n**Note: This hook is only for [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contracts.**\n\nFor " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contracts, use " - }, - { - "kind": "code", - "text": "`useListings`" - }, - { - "kind": "text", - "text": " instead." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useEnglishAuctions, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace-v3\");\n const {\n data: englishAuctions,\n isLoading,\n error,\n } = useEnglishAuctions(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's data property, once loaded, is an array of EnglishAuction objects, each containing the following properties:\n\n" - }, - { - "kind": "code", - "text": "```ts\nArray<{\n // The id of the auction\n id: string;\n\n // The address of the creator of auction.\n creatorAddress: string;\n\n // The address of the asset being auctioned.\n assetContractAddress: string;\n\n // The ID of the token to auction.\n tokenId: string;\n\n // The quantity of tokens to include in the auction.\n // For ERC721s, this value should always be 1 (and will be forced internally regardless of what is passed here).\n quantity: string;\n\n // The address of the currency to accept for the auction.\n currencyContractAddress: string;\n\n // The minimum price that a bid must be in order to be accepted.\n minimumBidAmount: string;\n\n // The `CurrencyValue` of the minimum bid amount.\n // Useful for displaying the price information.\n minimumBidCurrencyValue: CurrencyValue;\n\n // The buyout price of the auction.\n buyoutBidAmount: string;\n\n // The `CurrencyValue` of the buyout price.\n // Useful for displaying the price information.\n buyoutCurrencyValue: CurrencyValue;\n\n // This is a buffer e.g. x seconds.\n // If a new winning bid is made less than x seconds before expirationTimestamp, the\n // expirationTimestamp is increased by x seconds.\n timeBufferInSeconds: number;\n\n // This is a buffer in basis points e.g. x%.\n // To be considered as a new winning bid, a bid must be at least x% greater than\n // the current winning bid.\n bidBufferBps: number;\n\n // The start time of the auction.\n startTimeInSeconds: number;\n\n // The end time of the auction.\n endTimeInSeconds: number;\n\n // The asset being auctioned.\n asset: NFTMetadata;\n\n // Whether the listing is CREATED, COMPLETED, or CANCELLED.\n status: Status;\n}>;\n```" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "EnglishAuctions" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 893, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L893" - } - ], - "parameters": [ - { - "id": 572, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a marketplace v3 contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplacev3.ts", - "qualifiedName": "MarketplaceV3" - }, - "name": "MarketplaceV3", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 573, - "name": "filter", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "filter to pass to the query for the sake of pagination & filtering\n\n" - }, - { - "kind": "code", - "text": "```ts\nimport { useEnglishAuctions, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace-v3\");\n const {\n data: englishAuctions,\n isLoading,\n error,\n } = useEnglishAuctions(\n contract,\n {\n count: 100, // Number of auctions to fetch\n offeror: \"{{offeror_address}}\", // Has offers from this address\n seller: \"{{seller_address}}\", // Being sold by this address\n start: 0, // Start from this index (pagination)\n tokenContract: \"{{token_contract_address}}\", // Only show NFTs from this collection\n tokenId: \"{{token_id}}\", // Only show NFTs with this ID\n },\n );\n}\n```" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplace/MarketPlaceFilter.ts", - "qualifiedName": "MarketplaceFilter" - }, - "name": "MarketplaceFilter", - "package": "@thirdweb-dev/sdk" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplacev3/EnglishAuction.ts", - "qualifiedName": "EnglishAuction" - }, - "name": "EnglishAuction", - "package": "@thirdweb-dev/sdk" - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 584, - "name": "useEnglishAuctionsCount", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1179, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1179" - } - ], - "signatures": [ - { - "id": 585, - "name": "useEnglishAuctionsCount", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to get the total number of direct listings on a [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contract.\n\n__This hook is only for [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contracts.__\n\nFor " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contracts, use " - }, - { - "kind": "code", - "text": "`useListingsCount`" - }, - { - "kind": "text", - "text": " instead." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useEnglishAuctionsCount, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace-v3\");\n const {\n data: englishAuctionsCount,\n isLoading,\n error,\n } = useEnglishAuctionsCount(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, is a " - }, - { - "kind": "code", - "text": "`BigNumber`" - }, - { - "kind": "text", - "text": " representing the number of direct listings on the Marketplace V3 contract." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "EnglishAuctions" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1179, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1179" - } - ], - "parameters": [ - { - "id": 586, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`MarketplaceV3`" - }, - { - "kind": "text", - "text": " contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplacev3.ts", - "qualifiedName": "MarketplaceV3" - }, - "name": "MarketplaceV3", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumber" - }, - "name": "BigNumber", - "package": "@ethersproject/bignumber" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 595, - "name": "useEnglishAuctionWinningBid", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1485, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1485" - } - ], - "signatures": [ - { - "id": 596, - "name": "useEnglishAuctionWinningBid", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to get the winning bid for an English auction listing from a\n[Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contract." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useEnglishAuctionWinningBid, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace-v3\");\n const {\n data: winningBid,\n isLoading,\n error,\n } = useEnglishAuctionWinningBid(contract, listingId);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "If there are no bids, the " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property will be " - }, - { - "kind": "code", - "text": "`undefined`" - }, - { - "kind": "text", - "text": ". Use the " - }, - { - "kind": "code", - "text": "`isLoading`" - }, - { - "kind": "text", - "text": " property to differentiate between\nthe loading state and the no bids state.\n\nIf there is a bid, the hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, will be an object of type " - }, - { - "kind": "code", - "text": "`Bid`" - }, - { - "kind": "text", - "text": ", containing the following properties:\n\n" - }, - { - "kind": "code", - "text": "```ts\n{\n // The id of the auction.\n auctionId: string;\n // The address of the buyer who made the offer.\n bidderAddress: string;\n // The currency contract address of the offer token.\n currencyContractAddress: string;\n // The amount of coins offered per token.\n bidAmount: string;\n // The `CurrencyValue` of the listing. Useful for displaying the price information.\n bidAmountCurrencyValue: {\n symbol: string;\n value: BigNumber;\n name: string;\n decimals: number;\n displayValue: string;\n }\n}\n```" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "EnglishAuctions" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1485, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1485" - } - ], - "parameters": [ - { - "id": 597, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a marketplace contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplacev3.ts", - "qualifiedName": "MarketplaceV3" - }, - "name": "MarketplaceV3", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 598, - "name": "auctionId", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The auction id to check\nIf the listing cannot be found, or is not an English auction, the " - }, - { - "kind": "code", - "text": "`error`" - }, - { - "kind": "text", - "text": " property will be set." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplacev3/Bid.ts", - "qualifiedName": "Bid" - }, - "name": "Bid", - "package": "@thirdweb-dev/sdk" - } - ] - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 655, - "name": "useExecuteAuctionSale", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2790, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2790" - } - ], - "signatures": [ - { - "id": 656, - "name": "useExecuteAuctionSale", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for executing a sale of an auction listing on a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contract.\n\nTriggers a new sale, transferring the NFT(s) to the buyer and the funds to the seller.\n\nA sale must be executed when an auction ends, and the auction has a winning bid that was below the buyout price. This means the\nauction has finished, and the highest bidder has won the auction. **Any wallet** can now execute the sale, transferring the NFT(s)\nto the buyer and the funds to the seller." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport {\n useExecuteAuctionSale,\n useContract,\n Web3Button,\n} from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace\");\n const {\n mutateAsync: executeAuctionSale,\n isLoading,\n error,\n } = useExecuteAuctionSale(contract);\n\n return (\n \n executeAuctionSale({\n // The listingId of the auction to execute\n listingId: \"{{listing_id}}\",\n })\n }\n >\n Execute Auction Sale\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Mutation object to accept an offer on a direct listing\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useExecuteAuctionSale(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\nThe mutation function accepts an object as argument with the following properties:\n\n#### listingId\nThe ID of the auction listing to execute the sale on. If the listing cannot be found, is not an auction, or is not ready to be executed, the " - }, - { - "kind": "code", - "text": "`error`" - }, - { - "kind": "text", - "text": " property will be set." - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2790, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2790" - } - ], - "parameters": [ - { - "id": 657, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplace.ts", - "qualifiedName": "Marketplace" - }, - "name": "Marketplace", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 658, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/core/classes/internal/marketplace/marketplace-auction.d.ts", - "line": 232, - "character": 48 - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": 1229, - "name": "ExecuteAuctionSale", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 898, - "name": "useGrantRole", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/roles.ts", - "line": 378, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/roles.ts#L378" - } - ], - "signatures": [ - { - "id": 899, - "name": "useGrantRole", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for granting a role on a smart contract.\n\nAvailable to use on smart contracts that implement the [" - }, - { - "kind": "code", - "text": "`Permissions`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/general/Permissions) interface." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useGrantRole, useContract, Web3Button } from \"@thirdweb-dev/react\";\n\nconst contractAddress = \"{{contract_address}}\";\nconst roleToGrant = \"{{role}}\";\nconst walletAddressToGrant = \"{{wallet_address}}\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { mutateAsync: grantRole, isLoading, error } = useGrantRole(contract);\n\n return (\n \n grantRole({\n role: roleToGrant, // name of your role.\n address: walletAddressToGrant, // address to grant the role to.\n })\n }\n >\n Grant Role\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A mutation object to grant a member of a role on the contract\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useGrantRole(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\nThe mutation function accepts an object with the following properties:\n\n#### role\nThe name of the role to grant the address.\n\nAccepts any " - }, - { - "kind": "code", - "text": "`string`" - }, - { - "kind": "text", - "text": " value to include custom-defined roles.\n\nAlso accepts the default roles available on the [prebuilt contracts](https://portal.thirdweb.com/pre-built-contracts):\n\n" - }, - { - "kind": "code", - "text": "```ts\n string |\n \"admin\" |\n \"minter\" |\n \"transfer\" |\n \"lister\" |\n \"asset\" |\n \"unwrap\" |\n \"pauser\" |\n \"factory\";\n```" - }, - { - "kind": "text", - "text": "\n\n#### address\nThe address to grant the role to.\n\nTo use the address of the connected wallet, use the " - }, - { - "kind": "code", - "text": "`useAddress`" - }, - { - "kind": "text", - "text": " hook." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "Permissions | PermissionsEnumerable" - } - ] - }, - { - "tag": "@permissionControl", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/roles.ts", - "line": 378, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/roles.ts#L378" - } - ], - "typeParameters": [ - { - "id": 900, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "ContractWithRoles" - }, - "name": "ContractWithRoles", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 901, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`SmartContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 900, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reflection", - "declaration": { - "id": 902, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 904, - "name": "address", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/roles.ts", - "line": 388, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/roles.ts#L388" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 903, - "name": "role", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/roles.ts", - "line": 387, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/roles.ts#L387" - } - ], - "type": { - "type": "reference", - "target": 913, - "typeArguments": [ - { - "type": "reference", - "target": 900, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RolesForContract", - "package": "@thirdweb-dev/react-core" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 904, - 903 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/roles.ts", - "line": 386, - "character": 19, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/roles.ts#L386" - } - ] - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 964, - "name": "useIsAccountDeployed", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account-factory.ts", - "line": 106, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account-factory.ts#L106" - } - ], - "signatures": [ - { - "id": 965, - "name": "useIsAccountDeployed", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Check if a account has been deployed for the given admin in the account factory contract" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nconst { data: isAccountDeployed, isLoading, error } = useIsAccountDeployed(contract);\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A boolean indicating if a account has been deployed for the given admin" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "AccountFactory" - } - ] - }, - { - "tag": "@smartWallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account-factory.ts", - "line": 106, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account-factory.ts#L106" - } - ], - "parameters": [ - { - "id": 966, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a account factory contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+contracts@5.7.0/node_modules/@ethersproject/contracts/src.ts/index.ts", - "qualifiedName": "BaseContract" - }, - "name": "BaseContract", - "package": "@ethersproject/contracts" - } - ], - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 967, - "name": "admin", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 968, - "name": "extraData", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bytes@5.7.0/node_modules/@ethersproject/bytes/src.ts/index.ts", - "qualifiedName": "BytesLike" - }, - "name": "BytesLike", - "package": "@ethersproject/bytes" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "boolean" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 888, - "name": "useIsAddressRole", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/roles.ts", - "line": 216, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/roles.ts#L216" - } - ], - "signatures": [ - { - "id": 889, - "name": "useIsAddressRole", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to check if an address is a member of a role on a smart contract.\n\nAvailable to use on contracts that implement [" - }, - { - "kind": "code", - "text": "`Permissions`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/general/Permissions) interface\n\nProvide the following arguments to the hook:\n\n1. " - }, - { - "kind": "code", - "text": "`contract`" - }, - { - "kind": "text", - "text": " - The contract instance to check the role on.\n2. " - }, - { - "kind": "code", - "text": "`roleName`" - }, - { - "kind": "text", - "text": " - The name of the role to check.\n3. " - }, - { - "kind": "code", - "text": "`address`" - }, - { - "kind": "text", - "text": " - The wallet address to see if it is a member of the role." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useIsAddressRole, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const isMember = useIsAddressRole(contract, roleName, walletAddress);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": " if the address is a member of the role, or " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": " if not" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "PermissionsEnumerable" - } - ] - }, - { - "tag": "@permissionControl", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/roles.ts", - "line": 216, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/roles.ts#L216" - } - ], - "typeParameters": [ - { - "id": 890, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "ContractWithRoles" - }, - "name": "ContractWithRoles", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 891, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`SmartContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 890, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 892, - "name": "role", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The name of the role to check. Can be any custom role, or a built-in role, such as:\n- " - }, - { - "kind": "code", - "text": "`\"admin\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"transfer\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"minter\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"pauser\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"lister\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"asset\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"unwrap\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"factory\"`" - } - ] - }, - "type": { - "type": "reference", - "target": 913, - "typeArguments": [ - { - "type": "reference", - "target": 890, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RolesForContract", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 893, - "name": "walletAddress", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The wallet address to check if it is a member of the role.\nUse the " - }, - { - "kind": "code", - "text": "`useAddress`" - }, - { - "kind": "text", - "text": " hook to get the current wallet address." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 521, - "name": "useLazyMint", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 567, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L567" - } - ], - "signatures": [ - { - "id": 522, - "name": "useLazyMint", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for lazy minting a batch of NFTs on a drop contract.\n\nAvailable to use on smart contracts that implement the \"Drop\" extension, and\nfollow either the " - }, - { - "kind": "code", - "text": "`ERC721`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`ERC1155`" - }, - { - "kind": "text", - "text": " standard." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "Provide your drop contract (ERC721 or ERC1155) as the argument to the hook, and an array\nof metadata objects to lazy-mint.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useContract, useLazyMint, Web3Button } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { mutateAsync: lazyMint, isLoading, error } = useLazyMint(contract);\n\n return (\n \n lazyMint({\n // Metadata of the NFTs to upload\n metadatas: [\n {\n name: \"My NFT\",\n description: \"An example NFT\",\n image: \"{{image_url}}\",\n },\n ],\n })\n }\n >\n Lazy Mint NFTs\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A mutation object to lazy mint a batch of NFTs\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useLazyMint(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\n\nThe mutation function takes an object as argument with below properties:\n\n#### metadatas\nAn array of objects containing the metadata of the NFTs to lazy mint.\n\nYour metadata objects must follow the [Metadata standards](https://docs.opensea.io/docs/metadata-standards#metadata-structure).\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useContract, useLazyMint, Web3Button } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { mutateAsync: lazyMint, isLoading, error } = useLazyMint(contract);\n\n return (\n \n lazyMint({\n // Metadata of the NFTs to upload\n metadatas: [\n {\n name: \"My NFT\",\n description: \"An example NFT\",\n image: \"{{image_url}}\",\n },\n ],\n })\n }\n >\n Lazy Mint NFTs\n \n );\n}\n```" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC721LazyMintable | ERC1155LazyMintable" - } - ] - }, - { - "tag": "@nftDrop", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 567, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L567" - } - ], - "typeParameters": [ - { - "id": 523, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": 1198, - "name": "DropContract", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 524, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`NFTContract`" - }, - { - "kind": "text", - "text": " with the drop extension" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 523, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 525, - "name": "onProgress", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optional callback that will be called with the progress of the upload" - } - ] - }, - "type": { - "type": "reflection", - "declaration": { - "id": 526, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 569, - "character": 15, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L569" - } - ], - "signatures": [ - { - "id": 527, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 569, - "character": 15, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L569" - } - ], - "parameters": [ - { - "id": 528, - "name": "progress", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/events.ts", - "qualifiedName": "UploadProgressEvent" - }, - "name": "UploadProgressEvent", - "package": "@thirdweb-dev/sdk" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "intrinsic", - "name": "any" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 546, - "name": "useListing", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 179, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L179" - } - ], - "signatures": [ - { - "id": 547, - "name": "useListing", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for getting a specific listing on a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contract.\n\n__This hook is only available for " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contracts__\n\nIf you are using [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3),\nuse " - }, - { - "kind": "code", - "text": "`useDirectListing`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`useEnglishAuction`" - }, - { - "kind": "text", - "text": " instead." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useContract, useListing } from \"@thirdweb-dev/react\";\n\nconst listingId = 0;\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace\");\n const { data, isLoading, error } = useListing(contract, listingId);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Query Result object that includes the desired listing.\n\nThe hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, is an object containing the desired listing data.\n\nThe exact shape of the object depends on the type of listing.\n\nFor auctions, it will be a\n" - }, - { - "kind": "code", - "text": "`AuctionListing`" - }, - { - "kind": "text", - "text": " object.\nFor direct listings, it will be a " - }, - { - "kind": "code", - "text": "`DirectListing`" - }, - { - "kind": "text", - "text": " object.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nAuctionListing | DirectListing | undefined;\n```" - }, - { - "kind": "text", - "text": "\n\nYou can use the shared " - }, - { - "kind": "code", - "text": "`type`" - }, - { - "kind": "text", - "text": " property to determine which type of listing is being returned.\n\n" - }, - { - "kind": "code", - "text": "```ts\ninterface AuctionListing {\n // The id of the listing\n id: string;\n\n // The address of the asset being listed.\n assetContractAddress: string;\n\n // The ID of the token to list.\n tokenId: BigNumberish;\n\n // The asset being listed.\n asset: NFTMetadata;\n\n // The start time of the listing.\n startTimeInEpochSeconds: BigNumberish;\n\n // Number of seconds until the auction expires.\n endTimeInEpochSeconds: BigNumberish;\n\n // The quantity of tokens to include in the listing.\n // For ERC721s, this value should always be 1 (and will be forced internally regardless of what is passed here).\n quantity: BigNumberish;\n\n // The address of the currency to accept for the listing.\n currencyContractAddress: string;\n\n // The reserve price is the minimum price that a bid must be in order to be accepted.\n reservePrice: BigNumber;\n\n // The buyout price of the listing.\n buyoutPrice: BigNumber;\n\n // The `CurrencyValue` of the buyout price listing.\n // Useful for displaying the price information.\n buyoutCurrencyValuePerToken: CurrencyValue;\n\n // The `CurrencyValue` of the reserve price.\n // Useful for displaying the price information.\n reservePriceCurrencyValuePerToken: CurrencyValue;\n\n // The address of the seller.\n sellerAddress: string;\n\n // The type of listing.\n type: ListingType.Auction;\n}\n\ninterface DirectListing {\n // The id of the listing.\n id: string;\n\n // The address of the asset being listed.\n assetContractAddress: string;\n\n // The ID of the token to list.\n tokenId: BigNumberish;\n\n // The asset being listed.\n asset: NFTMetadata;\n\n // The start time of the listing.\n startTimeInSeconds: BigNumberish;\n\n // Number of seconds until the listing expires.\n secondsUntilEnd: BigNumberish;\n\n // The quantity of tokens to include in the listing.\n // For ERC721s, this value should always be 1 (and will be forced internally regardless of what is passed here).\n quantity: BigNumberish;\n\n // The address of the currency to accept for the listing.\n currencyContractAddress: string;\n\n // The `CurrencyValue` of the listing. Useful for displaying the price information.\n buyoutCurrencyValuePerToken: CurrencyValue;\n\n // The buyout price of the listing.\n buyoutPrice: BigNumber;\n\n // The address of the seller.\n sellerAddress: string;\n\n // The type of listing.\n type: ListingType.Direct;\n}\n```" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 179, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L179" - } - ], - "parameters": [ - { - "id": 548, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a marketplace contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplace.ts", - "qualifiedName": "Marketplace" - }, - "name": "Marketplace", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 549, - "name": "listingId", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The listing id to check" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplace/AuctionListing.ts", - "qualifiedName": "AuctionListing" - }, - "name": "AuctionListing", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplace/DirectListing.ts", - "qualifiedName": "DirectListing" - }, - "name": "DirectListing", - "package": "@thirdweb-dev/sdk" - } - ] - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 558, - "name": "useListings", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 526, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L526" - } - ], - "signatures": [ - { - "id": 559, - "name": "useListings", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for getting all listings (including expired ones) from a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contract.\n\n__This hook is only available for " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contracts__\n\nIf you are using [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3),\nuse " - }, - { - "kind": "code", - "text": "`useDirectListings`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`useEnglishAuctions`" - }, - { - "kind": "text", - "text": " instead." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useContract, useListings } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace\");\n const { data, isLoading, error } = useListings(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Query result object that includes an array of listings\n\nThe hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, is an array of listing objects.\n\nThe exact shape of each object depends on the type of listing.\n\nFor auctions, it will be a\n" - }, - { - "kind": "code", - "text": "`AuctionListing`" - }, - { - "kind": "text", - "text": " object.\nFor direct listings, it will be a " - }, - { - "kind": "code", - "text": "`DirectListing`" - }, - { - "kind": "text", - "text": " object.\n\n" - }, - { - "kind": "code", - "text": "```ts\n(AuctionListing | DirectListing)[] | undefined;\n```" - }, - { - "kind": "text", - "text": "\n\nYou can use the shared " - }, - { - "kind": "code", - "text": "`type`" - }, - { - "kind": "text", - "text": " property to determine which type of listing is being returned.\n\n" - }, - { - "kind": "code", - "text": "```ts\ninterface AuctionListing {\n\n // The id of the listing\n id: string;\n\n // The address of the asset being listed.\n assetContractAddress: string;\n\n // The ID of the token to list.\n tokenId: BigNumberish;\n\n // The asset being listed.\n asset: NFTMetadata;\n\n // The start time of the listing.\n startTimeInEpochSeconds: BigNumberish;\n\n // Number of seconds until the auction expires.\n endTimeInEpochSeconds: BigNumberish;\n\n // The quantity of tokens to include in the listing.\n // For ERC721s, this value should always be 1 (and will be forced internally regardless of what is passed here).\n quantity: BigNumberish;\n\n // The address of the currency to accept for the listing.\n currencyContractAddress: string;\n\n // The reserve price is the minimum price that a bid must be in order to be accepted.\n reservePrice: BigNumber;\n\n // The buyout price of the listing.\n buyoutPrice: BigNumber;\n\n // The `CurrencyValue` of the buyout price listing.\n // Useful for displaying the price information.\n buyoutCurrencyValuePerToken: CurrencyValue;\n\n // The `CurrencyValue` of the reserve price.\n // Useful for displaying the price information.\n reservePriceCurrencyValuePerToken: CurrencyValue;\n\n // The address of the seller.\n sellerAddress: string;\n\n // type of listing\n type: ListingType.Auction;\n}\n\ninterface DirectListing {\n\n // The id of the listing.\n id: string;\n\n // The address of the asset being listed.\n assetContractAddress: string;\n\n // The ID of the token to list.\n tokenId: BigNumberish;\n\n // The asset being listed.\n asset: NFTMetadata;\n\n // The start time of the listing.\n startTimeInSeconds: BigNumberish;\n\n // Number of seconds until the listing expires.\n secondsUntilEnd: BigNumberish;\n\n // The quantity of tokens to include in the listing.\n // For ERC721s, this value should always be 1 (and will be forced internally regardless of what is passed here).\n quantity: BigNumberish;\n\n // The address of the currency to accept for the listing.\n currencyContractAddress: string;\n\n // The `CurrencyValue` of the listing. Useful for displaying the price information.\n buyoutCurrencyValuePerToken: CurrencyValue;\n\n // The buyout price of the listing.\n buyoutPrice: BigNumber;\n\n // The address of the seller.\n sellerAddress: string;\n\n // type of listing\n type: ListingType.Direct;\n```" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 526, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L526" - } - ], - "parameters": [ - { - "id": 560, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a marketplace contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplace.ts", - "qualifiedName": "Marketplace" - }, - "name": "Marketplace", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 561, - "name": "filter", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "filter to pass to the query for the sake of pagination & filtering\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useContract, useListings } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace\");\n const { data, isLoading, error } = useListings(\n contract,\n {\n count: 100, // number of listings to fetch\n offeror: \"{{offeror_address}}\", // only show listings with offers from this address\n seller: \"{{seller_address}}\", // only show listings where this address is the seller\n start: 0, // start at this listing index (pagination)\n tokenContract: \"{{token_contract_address}}\", // only show listings from this collection\n tokenId: \"{{token_id}}\", // only show listings for this token\n },\n );\n}\n```" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplace/MarketPlaceFilter.ts", - "qualifiedName": "MarketplaceFilter" - }, - "name": "MarketplaceFilter", - "package": "@thirdweb-dev/sdk" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplace/AuctionListing.ts", - "qualifiedName": "AuctionListing" - }, - "name": "AuctionListing", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplace/DirectListing.ts", - "qualifiedName": "DirectListing" - }, - "name": "DirectListing", - "package": "@thirdweb-dev/sdk" - } - ] - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 578, - "name": "useListingsCount", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1091, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1091" - } - ], - "signatures": [ - { - "id": 579, - "name": "useListingsCount", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for getting the total number of listings on a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contract.\n\n__This hook is only available for " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contracts__\n\nIf you are using [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3),\nuse " - }, - { - "kind": "code", - "text": "`useDirectListingsCount`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`useEnglishAuctionsCount`" - }, - { - "kind": "text", - "text": " instead." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useContract, useListingsCount } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace\");\n const { data: listingsCount, isLoading, error } = useListingsCount(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, is a " - }, - { - "kind": "code", - "text": "`BigNumber`" - }, - { - "kind": "text", - "text": " containing the total number of listings on the contract." - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1091, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1091" - } - ], - "parameters": [ - { - "id": 580, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a marketplace contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplace.ts", - "qualifiedName": "Marketplace" - }, - "name": "Marketplace", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumber" - }, - "name": "BigNumber", - "package": "@ethersproject/bignumber" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 998, - "name": "useLogin", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useLogin.ts", - "line": 62, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useLogin.ts#L62" - } - ], - "signatures": [ - { - "id": 999, - "name": "useLogin", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to prompt the user to sign in with their wallet using [auth](https://portal.thirdweb.com/wallets/auth)\n\nRequires the " - }, - { - "kind": "code", - "text": "`authConfig`" - }, - { - "kind": "text", - "text": " prop to be configured on the " - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useLogin } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { isLoading, login } = useLogin();\n\n return (\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A function to invoke to login with the connected wallet, and an " - }, - { - "kind": "code", - "text": "`isLoading`" - }, - { - "kind": "text", - "text": " state that indicates if the login request is in progress\n\n### login\n\nThe " - }, - { - "kind": "code", - "text": "`login`" - }, - { - "kind": "text", - "text": " function accepts an optional " - }, - { - "kind": "code", - "text": "`LoginOptions`" - }, - { - "kind": "text", - "text": " object as an argument.\n\nThis configuration follows the [EIP-4361](https://eips.ethereum.org/EIPS/eip-4361) Sign in with Ethereum standard.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useLogin, Web3Button } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { login, isLoading } = useLogin();\n\n const loginOptions = {\n domain: \"https://your-domain.com\", // Your dapp domain\n statement: \"My statement\", // Text that the user will sign\n uri: \"https://your-domain.com/login\", // RFC 3986 URI referring to the resource that is the subject of the signing\n version: \"1.0\", // The current version of the message, which MUST be 1 for this specification.\n chainId: \"mainnet\", // Chain ID to which the session is bound\n nonce: \"my-nonce\", // randomized token typically used to prevent replay attacks\n expirationTime: new Date(2021, 1, 1), // When this message expires\n invalidBefore: new Date(2020, 12, 1), // When this message becomes valid\n resources: [\"balance\", \"history\", \"info\"], // A list of information or references to information the user wishes to have resolved\n };\n\n return login(loginOptions)}>Login;\n}\n```" - } - ] - }, - { - "tag": "@auth", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useLogin.ts", - "line": 62, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useLogin.ts#L62" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1000, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1004, - "name": "isLoading", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useLogin.ts", - "line": 131, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useLogin.ts#L131" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "login.isLoading" - }, - { - "id": 1001, - "name": "login", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useLogin.ts", - "line": 130, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useLogin.ts#L130" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1002, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useLogin.ts", - "line": 130, - "character": 11, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useLogin.ts#L130" - } - ], - "signatures": [ - { - "id": 1003, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useLogin.ts", - "line": 130, - "character": 11, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useLogin.ts#L130" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1004, - 1001 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useLogin.ts", - "line": 129, - "character": 9, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useLogin.ts#L129" - } - ] - } - } - } - ] - }, - { - "id": 1005, - "name": "useLogout", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useLogout.ts", - "line": 29, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useLogout.ts#L29" - } - ], - "signatures": [ - { - "id": 1006, - "name": "useLogout", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for signing out of a wallet after a user has logged in using " - }, - { - "kind": "code", - "text": "`useLogin`" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useLogout } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { logout, isLoading } = useLogout();\n\n return (\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "object containing a " - }, - { - "kind": "code", - "text": "`logout`" - }, - { - "kind": "text", - "text": " function and an " - }, - { - "kind": "code", - "text": "`isLoading`" - }, - { - "kind": "text", - "text": " state that indicates if the logout request is in progress" - } - ] - }, - { - "tag": "@auth", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useLogout.ts", - "line": 29, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useLogout.ts#L29" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1007, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1009, - "name": "isLoading", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useLogout.ts", - "line": 54, - "character": 39, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useLogout.ts#L54" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "logout.isLoading" - }, - { - "id": 1008, - "name": "logout", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useLogout.ts", - "line": 54, - "character": 11, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useLogout.ts#L54" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutateAsyncFunction" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "intrinsic", - "name": "void" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutateAsyncFunction", - "package": "@tanstack/react-query" - }, - "defaultValue": "logout.mutateAsync" - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1009, - 1008 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useLogout.ts", - "line": 54, - "character": 9, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useLogout.ts#L54" - } - ] - } - } - } - ] - }, - { - "id": 643, - "name": "useMakeBid", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2532, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2532" - } - ], - "signatures": [ - { - "id": 644, - "name": "useMakeBid", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for placing a bid on a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " auction listing.\n\nBids have several important properties:\n\n- Cannot be canceled once placed.\n- Are automatically refunded if they are outbid.\n- Must be higher than the current highest bid by the percentage defined in the bid buffer.\n- Must be higher than the reserve price (if there is no bid yet)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useMakeBid, useContract, Web3Button } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace\");\n const { mutateAsync: makeBid, isLoading, error } = useMakeBid(contract);\n\n return (\n \n makeBid({\n listingId: \"1\", // ID of the listing to bid on. Must be an auction.\n bid: \"1\", // Uses the currencyContractAddress of the listing.\n })\n }\n >\n Make Bid\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Mutation object to make a bid on an auction listing\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useMakeBid(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\nThe mutation function takes an object as an argument with the following properties:\n\n#### listingId\nThe ID of the listing to bid on. Must be an auction type listing.\n(Use " - }, - { - "kind": "code", - "text": "`useMakeOffer`" - }, - { - "kind": "text", - "text": " for direct listings).\n\nIf the listing cannot be found, is not an auction, or is not active, the " - }, - { - "kind": "code", - "text": "`error`" - }, - { - "kind": "text", - "text": " property will be set.\n\n#### bid\nThe amount to bid on the listing. Uses the " - }, - { - "kind": "code", - "text": "`currencyContractAddress`" - }, - { - "kind": "text", - "text": " of the listing.\n\nFor example, if the listing uses the " - }, - { - "kind": "code", - "text": "`NATIVE_TOKEN_ADDRESS`" - }, - { - "kind": "text", - "text": " on Ethereum, the bid amount is the amount of ETH to bid. Can be\nin the form of a number, string, or BigNumber.\n\nThe bid value **must** be either:\n\n- Greater than or equal to the reserve price if there is no current bid.\n- Greater than the current highest bid by the percentage defined in the bid buffer.\n\nUse the " - }, - { - "kind": "code", - "text": "`useNextMinimumBid`" - }, - { - "kind": "text", - "text": " hook to get the next minimum bid amount required." - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2532, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2532" - } - ], - "parameters": [ - { - "id": 645, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplace.ts", - "qualifiedName": "Marketplace" - }, - "name": "Marketplace", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 646, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/core/classes/internal/marketplace/marketplace-auction.d.ts", - "line": 160, - "character": 80 - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": 1216, - "name": "MakeBidParams", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 647, - "name": "useMakeOffer", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2621, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2621" - } - ], - "signatures": [ - { - "id": 648, - "name": "useMakeOffer", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for placing an offer on a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " direct listing." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useMakeOffer, useContract, Web3Button } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace\");\n const { mutateAsync: makeOffer, isLoading, error } = useMakeOffer(contract);\n\n return (\n \n makeOffer({\n listingId: 1, // ID of the listing to make an offer on\n pricePerToken: 1, // Price per token to offer (in the listing's currency)\n quantity: 1, // Number of NFTs you want to buy (used for ERC1155 NFTs)\n })\n }\n >\n Make Bid\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Mutation object to make a bid on an auction listing\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useMakeOffer(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\nThe mutation function takes an object as an argument with the following properties:\n\n#### listingId (required)\nThe ID of the listing to make an offer on.\n\nIf the listing cannot be found, is not a direct listing, or is not active, the " - }, - { - "kind": "code", - "text": "`error`" - }, - { - "kind": "text", - "text": " property will be set.\n\n#### pricePerToken (required)\nThe price to offer per token.\n\n- For ERC1155, this is the price to offer per quantity of the NFT (see [" - }, - { - "kind": "code", - "text": "`quantity`" - }, - { - "kind": "text", - "text": "](#quantity) below).\n- For ERC721, this is the price to offer to buy the NFT.\n\n#### quantity (optional)\nUsed for ERC1155 NFTs, where multiple quantity of the same NFT can be bought at once.\n\nThis field works with the " - }, - { - "kind": "code", - "text": "`pricePerToken`" - }, - { - "kind": "text", - "text": " field to calculate the total price of the offer.\nFor example, if you want to buy 5 NFTs at a price of 1 ETH each, you would set " - }, - { - "kind": "code", - "text": "`pricePerToken`" - }, - { - "kind": "text", - "text": " to " - }, - { - "kind": "code", - "text": "`1`" - }, - { - "kind": "text", - "text": " and " - }, - { - "kind": "code", - "text": "`quantity`" - }, - { - "kind": "text", - "text": " to " - }, - { - "kind": "code", - "text": "`5`" - }, - { - "kind": "text", - "text": ", for a total of " - }, - { - "kind": "code", - "text": "`5`" - }, - { - "kind": "text", - "text": " ETH as the offer.\n\nFor ERC721 NFTs, this value is ignored and " - }, - { - "kind": "code", - "text": "`1`" - }, - { - "kind": "text", - "text": " is used instead.\n\nThe default value is " - }, - { - "kind": "code", - "text": "`1`" - }, - { - "kind": "text", - "text": "." - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 2621, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L2621" - } - ], - "parameters": [ - { - "id": 649, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplace.ts", - "qualifiedName": "Marketplace" - }, - "name": "Marketplace", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 650, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/contracts/prebuilt-implementations/marketplace.d.ts", - "line": 259, - "character": 117 - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": 1220, - "name": "MakeOfferParams", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 386, - "name": "useMetadata", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 506, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L506" - } - ], - "signatures": [ - { - "id": 387, - "name": "useMetadata", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for getting the metadata associated with a smart contract.\n\nAvailable to use on contracts that implement the [Contract Metadata](https://portal.thirdweb.com/contracts/build/extensions/general/ContractMetadata) interface." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useContract, useMetadata } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = useMetadata(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A " - }, - { - "kind": "code", - "text": "`CustomContractMetadata`" - }, - { - "kind": "text", - "text": " object containing the metadata\n\nThe hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, is an object containing the contract's metadata.\n\n" - }, - { - "kind": "code", - "text": "```ts\nCustomContractMetadata | undefined;\n```" - }, - { - "kind": "text", - "text": "\n\n" - }, - { - "kind": "code", - "text": "```ts\ninterface CustomContractMetadata {\n // The name of the contract.\n name: string;\n // A description of the contract.\n description?: string;\n // The image associated with the contract.\n image?: any;\n // An external link associated with the contract.\n external_link?: string;\n}\n```" - } - ] - }, - { - "tag": "@metadata", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 506, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L506" - } - ], - "parameters": [ - { - "id": 388, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`SmartContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ValidContractInstance" - }, - "name": "ValidContractInstance", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 607, - "name": "useMinimumNextBid", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1677, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1677" - } - ], - "signatures": [ - { - "id": 608, - "name": "useMinimumNextBid", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for getting the minimum value a bid must be to be valid\nin an auction listing on a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " or\n[MarketplaceV3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contract.\n\nTakes into account the current highest bid, or the reserve price if there is no bid,\nand increments it by the bid buffer to calculate the minimum next bid." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useContract, useMinimumNextBid } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace\");\n const { data, isLoading, error } = useMinimumNextBid(contract, listingId);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Query result object that includes the minimum next bid for the auction listing" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "EnglishAuction" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1677, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1677" - } - ], - "parameters": [ - { - "id": 609, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a marketplace contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplace.ts", - "qualifiedName": "Marketplace" - }, - "name": "Marketplace", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplacev3.ts", - "qualifiedName": "MarketplaceV3" - }, - "name": "MarketplaceV3", - "package": "@thirdweb-dev/sdk" - } - ] - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 610, - "name": "listingId", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The ID of the listing to get the minimum next bid for.\n\nIf the listing cannot be found, is not an auction listing, or is not active, the " - }, - { - "kind": "code", - "text": "`error`" - }, - { - "kind": "text", - "text": " property will be set." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 611, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 615, - "name": "decimals", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1685, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1685" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 616, - "name": "displayValue", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1686, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1686" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 614, - "name": "name", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1684, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1684" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 612, - "name": "symbol", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1682, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1682" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 613, - "name": "value", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1683, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1683" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumber" - }, - "name": "BigNumber", - "package": "@ethersproject/bignumber" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 615, - 616, - 614, - 612, - 613 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1681, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1681" - } - ] - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 835, - "name": "useMintNFT", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 586, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L586" - } - ], - "signatures": [ - { - "id": 836, - "name": "useMintNFT", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for minting a new NFT on a smart contract.\n\nAvailable to use on smart contracts that implement the [" - }, - { - "kind": "code", - "text": "`ERC721`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721)\nor [" - }, - { - "kind": "code", - "text": "`ERC1155`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155) standard.\n\nBy default, the process uploads and pins the NFT metadata to IPFS before minting." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useMintNFT, useContract, Web3Button } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { mutateAsync: mintNft, isLoading, error } = useMintNFT(contract);\n\n return (\n \n mintNft({\n metadata: {\n name: \"My NFT\",\n description: \"This is my NFT\",\n image: \"ipfs://example.com/my-nft.png\", // Accepts any URL or File type\n },\n to: \"{{wallet_address}}\", // Use useAddress hook to get current wallet address\n })\n }\n >\n Mint NFT\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Mutation object that to mint a new NFT token to the connected wallet\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useMintNFT(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\nThe mutation function takes an object with the following properties:\n\n#### metadata\nThe metadata of the NFT to mint.\n\nBy default, the " - }, - { - "kind": "code", - "text": "`metadata`" - }, - { - "kind": "text", - "text": " object is uploaded and pinned to IPFS before minting.\n\nYou can override this behavior by providing a " - }, - { - "kind": "code", - "text": "`string`" - }, - { - "kind": "text", - "text": " to the metadata property. The string must be a URL that points to a valid JSON object containing [standard metadata properties](https://docs.opensea.io/docs/metadata-standards)\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useMintNFT, useContract, Web3Button } from \"@thirdweb-dev/react\";\n\n// Your smart contract address\nconst contractAddress = \"{{contract_address}}\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { mutateAsync: mintNft, isLoading, error } = useMintNFT(contract);\n\n return (\n \n mintNft({\n // Any valid IPFS or HTTP URL that points to a JSON object\n metadata: \"https://///.json\",\n to: \"{{wallet_address}}\",\n })\n }\n >\n Mint NFT\n \n );\n}\n```" - }, - { - "kind": "text", - "text": "\n\n#### to (required)\nThe wallet address to mint the NFT to.\n\nLikely, you will want to mint the NFT to the currently connected wallet address.\nUse the " - }, - { - "kind": "code", - "text": "`useAddress`" - }, - { - "kind": "text", - "text": " hook to get this value." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC721Mintable | ERC1155Mintable" - } - ] - }, - { - "tag": "@nft", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 586, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L586" - } - ], - "typeParameters": [ - { - "id": 837, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": 1170, - "name": "NFTContract", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 838, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`NFTContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 837, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1192, - "typeArguments": [ - { - "type": "reference", - "target": 837, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "MintNFTReturnType", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": 1187, - "name": "MintNFTParams", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 839, - "name": "useMintNFTSupply", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 704, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L704" - } - ], - "signatures": [ - { - "id": 840, - "name": "useMintNFTSupply", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for minting additional supply to an _existing_ ERC-1155 token.\n\nAvailable to use on contracts that implement the\n[ERC1155Mintable](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155Mintable)\ninterface, such as the [Edition](https://thirdweb.com/thirdweb.eth/TokenERC1155) or [Edition Drop](https://thirdweb.com/thirdweb.eth/DropERC1155).\n\nThe wallet address that initiates this transaction must have minting permissions on the contract." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useContract, useMintNFTSupply, Web3Button } from \"@thirdweb-dev/react\";\n\nconst contractAddress = \"{{contract_address}}\";\nconst walletAddress = \"{{wallet_address}}\";\nconst tokenId = \"{{token_id}}\";\nconst additionalSupply = \"{{additional_supply}}\";\n\nfunction App() {\n // Contract must be an ERC-1155 contract that implements the ERC1155Mintable interface\n const { contract } = useContract(contractAddress);\n const {\n mutateAsync: mintNftSupply,\n isLoading,\n error,\n } = useMintNFTSupply(contract);\n\n return (\n \n mintNftSupply({\n additionalSupply: additionalSupply, // Quantity to mint\n to: walletAddress, // Address to mint to\n tokenId: tokenId, // Token ID to add supply to\n })\n }\n >\n Mint NFT Supply\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Mutation object to mint a more supply of a token id to the provided wallet\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useMintNFTSupply(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\n\nThe mutation function takes an object with the following properties:\n\n#### additionalSupply\nThe quantity of additional supply to mint.\n\nFor example, if you have 10 quantity so far, and you want to mint 5 more, set " - }, - { - "kind": "code", - "text": "`additionalSupply`" - }, - { - "kind": "text", - "text": " to " - }, - { - "kind": "code", - "text": "`5`" - }, - { - "kind": "text", - "text": ".\n\nCan be a " - }, - { - "kind": "code", - "text": "`string`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`number`" - }, - { - "kind": "text", - "text": ".\n\n\n#### to\nThe wallet address to mint the new supply to.\n\nTo use the connected wallet address, use the " - }, - { - "kind": "code", - "text": "`useAddress`" - }, - { - "kind": "text", - "text": " hook.\n\n\n#### tokenId\nThe token ID of the NFT to mint additional supply to.\n\nCan be a " - }, - { - "kind": "code", - "text": "`string`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`number`" - }, - { - "kind": "text", - "text": "." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC1155Mintable" - } - ] - }, - { - "tag": "@nft", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 704, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L704" - } - ], - "parameters": [ - { - "id": 841, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`Erc1155`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/classes/erc-1155.ts", - "qualifiedName": "Erc1155" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/eips.ts", - "qualifiedName": "BaseERC1155" - }, - "name": "BaseERC1155", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/eips.ts", - "qualifiedName": "BaseSignatureMintERC1155" - }, - "name": "BaseSignatureMintERC1155", - "package": "@thirdweb-dev/sdk" - } - ] - } - ], - "name": "Erc1155", - "package": "@thirdweb-dev/sdk" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/types.ts", - "qualifiedName": "TransactionResultWithId" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/core/schema/nft.ts", - "qualifiedName": "NFT" - }, - "name": "NFT", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "TransactionResultWithId", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": 1182, - "name": "MintNFTSupplyParams", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 938, - "name": "useMintToken", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 248, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L248" - } - ], - "signatures": [ - { - "id": 939, - "name": "useMintToken", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for minting new tokens in an ERC20 smart contract.\n\nAvailable to use on contracts that implement the [ERC20Mintable](https://portal.thirdweb.com/contracts/build/extensions/erc-20/ERC20BatchMintable)\ninterface, such as the [Token](https://thirdweb.com/thirdweb.eth/TokenERC20) contract.\n\nThe wallet address that initiates this transaction must have minting permissions on the contract." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useContract, useMintToken, Web3Button } from \"@thirdweb-dev/react\";\n\nconst contractAddress = \"{{contract_address}}\";\nconst walletAddress = \"{{wallet_address}}\";\nconst tokenAmount = \"{{token_amount}}\";\n\nfunction App() {\n // Contract must be an ERC-20 contract that implements the ERC20Mintable interface\n const { contract } = useContract(contractAddress, \"token\");\n const { mutateAsync: mintToken, isLoading, error } = useMintToken(contract);\n\n return (\n \n mintToken({\n amount: tokenAmount, // Quantity to mint\n to: walletAddress, // Address to mint to\n })\n }\n >\n Mint Token\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A mutation object to mint new tokens to the connected wallet\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useMintToken(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\nThe mutation function takes an object as an argument with the following properties:\n\n#### amount\nThe quantity of tokens to mint. Can be a " - }, - { - "kind": "code", - "text": "`string`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`number`" - }, - { - "kind": "text", - "text": ".\n\n#### to\nThe wallet address to mint the new tokens to.\n\nTo use the connected wallet address, use the " - }, - { - "kind": "code", - "text": "`useAddress`" - }, - { - "kind": "text", - "text": " hook." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC20Mintable" - } - ] - }, - { - "tag": "@token", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 248, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L248" - } - ], - "parameters": [ - { - "id": 940, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`TokenContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1171, - "name": "TokenContract", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 941, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 943, - "name": "data", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 254, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L254" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 944, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 254, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L254" - } - ], - "signatures": [ - { - "id": 945, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - }, - { - "id": 942, - "name": "receipt", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 253, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L253" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+abstract-provider@5.7.0/node_modules/@ethersproject/abstract-provider/src.ts/index.ts", - "qualifiedName": "TransactionReceipt" - }, - "name": "providers.TransactionReceipt", - "package": "@ethersproject/abstract-provider", - "qualifiedName": "TransactionReceipt" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 943, - 942 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 252, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L252" - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": 1163, - "name": "TokenParams", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 1071, - "name": "useNetworkMismatch", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/useNetworkMismatch.ts", - "line": 25, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/useNetworkMismatch.ts#L25" - } - ], - "signatures": [ - { - "id": 1072, - "name": "useNetworkMismatch", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for checking whether the connected wallet is currently on the correct chain,\ni.e. the chain specified in the " - }, - { - "kind": "code", - "text": "`activeChain`" - }, - { - "kind": "text", - "text": " on the " - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useNetworkMismatch } from \"@thirdweb-dev/react\";\n\nconst App = () => {\n const isMismatched = useNetworkMismatch();\n};\n```" - }, - { - "kind": "text", - "text": "\n\nUsing this value, you can prompt users to switch their network using the " - }, - { - "kind": "code", - "text": "`useSwitchChain`" - }, - { - "kind": "text", - "text": " hook." - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Returns " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": " if the " - }, - { - "kind": "code", - "text": "`chainId`" - }, - { - "kind": "text", - "text": " of the connected wallet is different from the " - }, - { - "kind": "code", - "text": "`chainId`" - }, - { - "kind": "text", - "text": " of the " - }, - { - "kind": "code", - "text": "`activeChain`" - }, - { - "kind": "text", - "text": " on the " - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": " component" - } - ] - }, - { - "tag": "@networkConnection", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/useNetworkMismatch.ts", - "line": 25, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/useNetworkMismatch.ts#L25" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 804, - "name": "useNFT", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 94, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L94" - } - ], - "signatures": [ - { - "id": 805, - "name": "useNFT", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for fetching information about an NFT from a smart contract.\n\nAvailable to use on smart contracts that implement the [" - }, - { - "kind": "code", - "text": "`ERC721`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721)\nor [" - }, - { - "kind": "code", - "text": "`ERC1155`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155) standard.\n\nNFT metadata is automatically fetched from where the " - }, - { - "kind": "code", - "text": "`tokenUri`" - }, - { - "kind": "text", - "text": " is hosted (e.g. IPFS), and makes the " - }, - { - "kind": "code", - "text": "`image`" - }, - { - "kind": "text", - "text": "\nproperty available as a URL through our IPFS gateway (if the image is hosted on IPFS)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "Provide your NFT collection contract object and the token ID of the NFT you want to fetch as\narguments.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useContract, useNFT } from \"@thirdweb-dev/react\";\n\n// The token ID of the NFT you want to fetch\nconst tokenId = 0;\n\nfunction App() {\n const { contract } = useContract(\"{{contract_address}}\");\n const { data: nft, isLoading, error } = useNFT(contract, tokenId);\n\n if (isLoading) return
Fetching NFT…
;\n if (error) return
Error fetching NFT
;\n if (!nft) return
NFT not found
;\n return
NFT: {nft.metadata.name}
;\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Query result object that includes the metadata for the given tokenId in " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC721 | ERC1155" - } - ] - }, - { - "tag": "@nft", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 94, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L94" - } - ], - "typeParameters": [ - { - "id": 806, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": 1170, - "name": "NFTContract", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 807, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`NFTContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 806, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 808, - "name": "tokenId", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The token ID of the NFT you want to fetch.\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useContract, useNFT } from \"@thirdweb-dev/react\";\n\n// The token ID of the NFT you want to fetch\nconst tokenId = 0;\n\nfunction App() {\n const { contract } = useContract(\"{{contract_address}}\");\n const {\n data: nft,\n isLoading,\n error,\n } = useNFT(\n contract,\n tokenId,\n );\n}\n```" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/core/schema/nft.ts", - "qualifiedName": "NFT" - }, - "name": "NFT", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 830, - "name": "useNFTBalance", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 416, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L416" - } - ], - "signatures": [ - { - "id": 831, - "name": "useNFTBalance", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to get the quantity a user owns of a specific [ERC1155](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155) NFT.\n\nAvailable to use on smart contracts that implement the [" - }, - { - "kind": "code", - "text": "`ERC1155`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155) standard." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useNFTBalance, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { isLoading, data, error } = useNFTBalance(\n contract,\n \"{{wallet_address}}\",\n \"{{token_id}}\",\n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, returns a " - }, - { - "kind": "code", - "text": "`BigNumber`" - }, - { - "kind": "text", - "text": " representing the quantity of the NFT owned by the wallet." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC721 | ERC1155" - } - ] - }, - { - "tag": "@nft", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 416, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L416" - } - ], - "parameters": [ - { - "id": 832, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`NFTContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1170, - "name": "NFTContract", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 833, - "name": "ownerWalletAddress", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The wallet address to check the balance of. Use the " - }, - { - "kind": "code", - "text": "`useAddress`" - }, - { - "kind": "text", - "text": " hook to get the current wallet address." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 834, - "name": "tokenId", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Required for ERC1155, the tokenId to look up" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumber" - }, - "name": "BigNumber", - "package": "@ethersproject/bignumber" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 809, - "name": "useNFTs", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 156, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L156" - } - ], - "signatures": [ - { - "id": 810, - "name": "useNFTs", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to query all NFTs associated with a smart contract.\n\nAvailable to use on smart contracts that implement the [" - }, - { - "kind": "code", - "text": "`ERC721`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721)\nor [" - }, - { - "kind": "code", - "text": "`ERC1155`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155) standard.\n\nNFT metadata is automatically fetched from where the " - }, - { - "kind": "code", - "text": "`tokenUri`" - }, - { - "kind": "text", - "text": " is hosted (e.g. IPFS), and makes the " - }, - { - "kind": "code", - "text": "`image`" - }, - { - "kind": "text", - "text": "\nproperty available as a URL through our IPFS gateway (if the image is hosted on IPFS).\n\nBy default, only returns the first " - }, - { - "kind": "code", - "text": "`100`" - }, - { - "kind": "text", - "text": " NFTs in the collection. You can use the " - }, - { - "kind": "code", - "text": "`queryParams`" - }, - { - "kind": "text", - "text": " argument to\nfilter the NFTs that are returned or to paginate through the collection." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useNFTs, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = useNFTs(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Query result object that includes an array of " - }, - { - "kind": "code", - "text": "`NFT`" - }, - { - "kind": "text", - "text": " objects" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC721Supply | ERC721Enumerable | ERC1155Enumerable" - } - ] - }, - { - "tag": "@nft", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 156, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L156" - } - ], - "typeParameters": [ - { - "id": 811, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": 1170, - "name": "NFTContract", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 812, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`NFTContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 811, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 813, - "name": "queryParams", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "By default, the hook will return the first 100 NFTs associated with the contract.\n\nYou can use the " - }, - { - "kind": "code", - "text": "`queryParams`" - }, - { - "kind": "text", - "text": " argument to paginate the NFTs that are returned." - } - ] - }, - "type": { - "type": "reflection", - "declaration": { - "id": 814, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/core/schema/QueryParams.d.ts", - "line": 12, - "character": 3 - } - ] - } - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/core/schema/nft.ts", - "qualifiedName": "NFT" - }, - "name": "NFT", - "package": "@thirdweb-dev/sdk" - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 659, - "name": "useOffers", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1769, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1769" - } - ], - "signatures": [ - { - "id": 660, - "name": "useOffers", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for getting all of the offers made on a\ndirect listing on a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contract." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useOffers, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace\");\n const { data: offers, isLoading, error } = useOffers(contract, listingId);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "This hook uses the " - }, - { - "kind": "code", - "text": "`useEvents`" - }, - { - "kind": "text", - "text": " hook under the hood to fetch " - }, - { - "kind": "code", - "text": "`NewOffer`" - }, - { - "kind": "text", - "text": " events for the given listing ID.\n\nThe return value is an array of " - }, - { - "kind": "code", - "text": "`NewOffer`" - }, - { - "kind": "text", - "text": " event objects. Each event object has the following properties:\n\n" - }, - { - "kind": "code", - "text": "```ts\n{\n offeror: string;\n offerId: BigNumber;\n assetContract: string;\n offer: {\n offerId: BigNumber;\n offeror: string;\n assetContract: string;\n tokenId: BigNumber;\n quantity: BigNumber;\n currency: string;\n totalPrice: BigNumber;\n expirationTimestamp: BigNumber;\n tokenType: \"ERC721\" | \"ERC1155\";\n status: \"UNSET\" | \"CREATED\" | \"COMPLETED\" | \"CANCELLED\";\n }\n}\n```" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1769, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1769" - } - ], - "parameters": [ - { - "id": 661, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a Marketplace contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplace.ts", - "qualifiedName": "Marketplace" - }, - "name": "Marketplace", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 662, - "name": "listingId", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The id of the listing to fetch offers for\nIf the listing cannot be found, is not a direct listing, or is not active, the " - }, - { - "kind": "code", - "text": "`error`" - }, - { - "kind": "text", - "text": " property will be set." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 663, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 664, - "name": "data", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1776, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1776" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Record", - "package": "typescript" - } - } - ] - }, - "defaultValue": "..." - }, - { - "id": 672, - "name": "dataUpdatedAt", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 231, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 665, - "name": "error", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 278, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "id": 676, - "name": "errorUpdateCount", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 236, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 673, - "name": "errorUpdatedAt", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 233, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 674, - "name": "failureCount", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 234, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 675, - "name": "failureReason", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 235, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "id": 694, - "name": "fetchStatus", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 254, - "character": 4 - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "FetchStatus" - }, - "name": "FetchStatus", - "package": "@tanstack/query-core" - } - }, - { - "id": 666, - "name": "isError", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 279, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": true - } - }, - { - "id": 677, - "name": "isFetched", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 238, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 678, - "name": "isFetchedAfterMount", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 239, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 679, - "name": "isFetching", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 240, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 680, - "name": "isInitialLoading", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 243, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 667, - "name": "isLoading", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 280, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": false - } - }, - { - "id": 668, - "name": "isLoadingError", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 281, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": false - } - }, - { - "id": 681, - "name": "isPaused", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 244, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 682, - "name": "isPlaceholderData", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 245, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 683, - "name": "isPreviousData", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 246, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 669, - "name": "isRefetchError", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 282, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": true - } - }, - { - "id": 684, - "name": "isRefetching", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 248, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 685, - "name": "isStale", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 249, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 670, - "name": "isSuccess", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 283, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": false - } - }, - { - "id": 686, - "name": "refetch", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 251, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 687, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 251, - "character": 13 - } - ], - "signatures": [ - { - "id": 688, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 251, - "character": 13 - } - ], - "typeParameters": [ - { - "id": 689, - "name": "TPageData", - "variant": "typeParam", - "kind": 131072, - "flags": { - "isExternal": true - } - } - ], - "parameters": [ - { - "id": 690, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intersection", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "RefetchOptions" - }, - "name": "RefetchOptions", - "package": "@tanstack/query-core" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "RefetchQueryFilters" - }, - "typeArguments": [ - { - "type": "reference", - "target": 689, - "name": "TPageData", - "package": "@tanstack/query-core", - "refersToTypeParameter": true - } - ], - "name": "RefetchQueryFilters", - "package": "@tanstack/query-core" - } - ] - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/events.ts", - "qualifiedName": "ContractEvent" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Record", - "package": "typescript" - } - ], - "name": "ContractEvent", - "package": "@thirdweb-dev/sdk" - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "QueryObserverResult", - "package": "@tanstack/query-core" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - }, - { - "id": 691, - "name": "remove", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 252, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 692, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 252, - "character": 12 - } - ], - "signatures": [ - { - "id": 693, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 252, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 671, - "name": "status", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 284, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": "error" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 664, - 672, - 665, - 676, - 673, - 674, - 675, - 694, - 666, - 677, - 678, - 679, - 680, - 667, - 668, - 681, - 682, - 683, - 669, - 684, - 685, - 670, - 686, - 691, - 671 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1774, - "character": 9, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1774" - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 695, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 696, - "name": "data", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1776, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1776" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Record", - "package": "typescript" - } - } - ] - }, - "defaultValue": "..." - }, - { - "id": 704, - "name": "dataUpdatedAt", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 231, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 697, - "name": "error", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 288, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 708, - "name": "errorUpdateCount", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 236, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 705, - "name": "errorUpdatedAt", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 233, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 706, - "name": "failureCount", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 234, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 707, - "name": "failureReason", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 235, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "id": 726, - "name": "fetchStatus", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 254, - "character": 4 - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "FetchStatus" - }, - "name": "FetchStatus", - "package": "@tanstack/query-core" - } - }, - { - "id": 698, - "name": "isError", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 289, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": false - } - }, - { - "id": 709, - "name": "isFetched", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 238, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 710, - "name": "isFetchedAfterMount", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 239, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 711, - "name": "isFetching", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 240, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 712, - "name": "isInitialLoading", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 243, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 699, - "name": "isLoading", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 290, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": false - } - }, - { - "id": 700, - "name": "isLoadingError", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 291, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": false - } - }, - { - "id": 713, - "name": "isPaused", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 244, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 714, - "name": "isPlaceholderData", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 245, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 715, - "name": "isPreviousData", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 246, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 701, - "name": "isRefetchError", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 292, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": false - } - }, - { - "id": 716, - "name": "isRefetching", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 248, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 717, - "name": "isStale", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 249, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 702, - "name": "isSuccess", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 293, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": true - } - }, - { - "id": 718, - "name": "refetch", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 251, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 719, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 251, - "character": 13 - } - ], - "signatures": [ - { - "id": 720, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 251, - "character": 13 - } - ], - "typeParameters": [ - { - "id": 721, - "name": "TPageData", - "variant": "typeParam", - "kind": 131072, - "flags": { - "isExternal": true - } - } - ], - "parameters": [ - { - "id": 722, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intersection", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "RefetchOptions" - }, - "name": "RefetchOptions", - "package": "@tanstack/query-core" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "RefetchQueryFilters" - }, - "typeArguments": [ - { - "type": "reference", - "target": 689, - "name": "TPageData", - "package": "@tanstack/query-core", - "refersToTypeParameter": true - } - ], - "name": "RefetchQueryFilters", - "package": "@tanstack/query-core" - } - ] - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/events.ts", - "qualifiedName": "ContractEvent" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Record", - "package": "typescript" - } - ], - "name": "ContractEvent", - "package": "@thirdweb-dev/sdk" - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "QueryObserverResult", - "package": "@tanstack/query-core" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - }, - { - "id": 723, - "name": "remove", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 252, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 724, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 252, - "character": 12 - } - ], - "signatures": [ - { - "id": 725, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 252, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 703, - "name": "status", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 294, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": "success" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 696, - 704, - 697, - 708, - 705, - 706, - 707, - 726, - 698, - 709, - 710, - 711, - 712, - 699, - 700, - 713, - 714, - 715, - 701, - 716, - 717, - 702, - 718, - 723, - 703 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1774, - "character": 9, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1774" - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 727, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 728, - "name": "data", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1776, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1776" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Record", - "package": "typescript" - } - } - ] - }, - "defaultValue": "..." - }, - { - "id": 736, - "name": "dataUpdatedAt", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 231, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 729, - "name": "error", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 268, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "id": 740, - "name": "errorUpdateCount", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 236, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 737, - "name": "errorUpdatedAt", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 233, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 738, - "name": "failureCount", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 234, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 739, - "name": "failureReason", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 235, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "id": 758, - "name": "fetchStatus", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 254, - "character": 4 - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "FetchStatus" - }, - "name": "FetchStatus", - "package": "@tanstack/query-core" - } - }, - { - "id": 730, - "name": "isError", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 269, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": true - } - }, - { - "id": 741, - "name": "isFetched", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 238, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 742, - "name": "isFetchedAfterMount", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 239, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 743, - "name": "isFetching", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 240, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 744, - "name": "isInitialLoading", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 243, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 731, - "name": "isLoading", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 270, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": false - } - }, - { - "id": 732, - "name": "isLoadingError", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 271, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": true - } - }, - { - "id": 745, - "name": "isPaused", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 244, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 746, - "name": "isPlaceholderData", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 245, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 747, - "name": "isPreviousData", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 246, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 733, - "name": "isRefetchError", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 272, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": false - } - }, - { - "id": 748, - "name": "isRefetching", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 248, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 749, - "name": "isStale", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 249, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 734, - "name": "isSuccess", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 273, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": false - } - }, - { - "id": 750, - "name": "refetch", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 251, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 751, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 251, - "character": 13 - } - ], - "signatures": [ - { - "id": 752, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 251, - "character": 13 - } - ], - "typeParameters": [ - { - "id": 753, - "name": "TPageData", - "variant": "typeParam", - "kind": 131072, - "flags": { - "isExternal": true - } - } - ], - "parameters": [ - { - "id": 754, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intersection", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "RefetchOptions" - }, - "name": "RefetchOptions", - "package": "@tanstack/query-core" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "RefetchQueryFilters" - }, - "typeArguments": [ - { - "type": "reference", - "target": 689, - "name": "TPageData", - "package": "@tanstack/query-core", - "refersToTypeParameter": true - } - ], - "name": "RefetchQueryFilters", - "package": "@tanstack/query-core" - } - ] - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/events.ts", - "qualifiedName": "ContractEvent" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Record", - "package": "typescript" - } - ], - "name": "ContractEvent", - "package": "@thirdweb-dev/sdk" - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "QueryObserverResult", - "package": "@tanstack/query-core" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - }, - { - "id": 755, - "name": "remove", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 252, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 756, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 252, - "character": 12 - } - ], - "signatures": [ - { - "id": 757, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 252, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 735, - "name": "status", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 274, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": "error" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 728, - 736, - 729, - 740, - 737, - 738, - 739, - 758, - 730, - 741, - 742, - 743, - 744, - 731, - 732, - 745, - 746, - 747, - 733, - 748, - 749, - 734, - 750, - 755, - 735 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1774, - "character": 9, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1774" - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 759, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 760, - "name": "data", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1776, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1776" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Record", - "package": "typescript" - } - } - ] - }, - "defaultValue": "..." - }, - { - "id": 768, - "name": "dataUpdatedAt", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 231, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 761, - "name": "error", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 258, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 772, - "name": "errorUpdateCount", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 236, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 769, - "name": "errorUpdatedAt", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 233, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 770, - "name": "failureCount", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 234, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 771, - "name": "failureReason", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 235, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "id": 790, - "name": "fetchStatus", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 254, - "character": 4 - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "FetchStatus" - }, - "name": "FetchStatus", - "package": "@tanstack/query-core" - } - }, - { - "id": 762, - "name": "isError", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 259, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": false - } - }, - { - "id": 773, - "name": "isFetched", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 238, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 774, - "name": "isFetchedAfterMount", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 239, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 775, - "name": "isFetching", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 240, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 776, - "name": "isInitialLoading", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 243, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 763, - "name": "isLoading", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 260, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": true - } - }, - { - "id": 764, - "name": "isLoadingError", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 261, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": false - } - }, - { - "id": 777, - "name": "isPaused", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 244, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 778, - "name": "isPlaceholderData", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 245, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 779, - "name": "isPreviousData", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 246, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 765, - "name": "isRefetchError", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 262, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": false - } - }, - { - "id": 780, - "name": "isRefetching", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 248, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 781, - "name": "isStale", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 249, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 766, - "name": "isSuccess", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 263, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": false - } - }, - { - "id": 782, - "name": "refetch", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 251, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 783, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 251, - "character": 13 - } - ], - "signatures": [ - { - "id": 784, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 251, - "character": 13 - } - ], - "typeParameters": [ - { - "id": 785, - "name": "TPageData", - "variant": "typeParam", - "kind": 131072, - "flags": { - "isExternal": true - } - } - ], - "parameters": [ - { - "id": 786, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intersection", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "RefetchOptions" - }, - "name": "RefetchOptions", - "package": "@tanstack/query-core" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "RefetchQueryFilters" - }, - "typeArguments": [ - { - "type": "reference", - "target": 689, - "name": "TPageData", - "package": "@tanstack/query-core", - "refersToTypeParameter": true - } - ], - "name": "RefetchQueryFilters", - "package": "@tanstack/query-core" - } - ] - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/events.ts", - "qualifiedName": "ContractEvent" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Record", - "package": "typescript" - } - ], - "name": "ContractEvent", - "package": "@thirdweb-dev/sdk" - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "QueryObserverResult", - "package": "@tanstack/query-core" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - }, - { - "id": 787, - "name": "remove", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 252, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 788, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 252, - "character": 12 - } - ], - "signatures": [ - { - "id": 789, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 252, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 767, - "name": "status", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/build/lib/types.d.ts", - "line": 264, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": "loading" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 760, - 768, - 761, - 772, - 769, - 770, - 771, - 790, - 762, - 773, - 774, - 775, - 776, - 763, - 764, - 777, - 778, - 779, - 765, - 780, - 781, - 766, - 782, - 787, - 767 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1774, - "character": 9, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1774" - } - ] - } - } - ] - } - } - ] - }, - { - "id": 823, - "name": "useOwnedNFTs", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 363, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L363" - } - ], - "signatures": [ - { - "id": 824, - "name": "useOwnedNFTs", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for accessing a list of NFTs owned by a single wallet address.\n\nAvailable to use on smart contracts that implement either ERC721Enumerable, ERC1155Enumerable, or ERC721Supply extensions." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useOwnedNFTs, useContract, useAddress } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const address = useAddress();\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = useOwnedNFTs(contract, address);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Query result object that includes the list of owned " - }, - { - "kind": "code", - "text": "`NFT`" - }, - { - "kind": "text", - "text": " objects" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC721Enumerable | ERC1155Enumerable | ERC721Supply" - } - ] - }, - { - "tag": "@nft", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 363, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L363" - } - ], - "typeParameters": [ - { - "id": 825, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": 1170, - "name": "NFTContract", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 826, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`NFTContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 825, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 827, - "name": "ownerWalletAddress", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The wallet address to get owned tokens for. Likely, you will want to view the connected wallet’s NFTs. use the " - }, - { - "kind": "code", - "text": "`useAddress`" - }, - { - "kind": "text", - "text": " hook to get this value." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 828, - "name": "queryParams", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Paginate the results by providing a " - }, - { - "kind": "code", - "text": "`queryParams`" - }, - { - "kind": "text", - "text": " object as an argument.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useOwnedNFTs, useContract, useAddress } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const address = useAddress();\n const { data, isLoading, error } = useOwnedNFTs(\n contract,\n address\n {\n count: 10, // Limit the number of results\n start: 0, // Start from the nth result (useful for pagination)\n },\n );\n}\n```" - } - ] - }, - "type": { - "type": "reflection", - "declaration": { - "id": 829, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/core/schema/QueryParams.d.ts", - "line": 12, - "character": 3 - } - ] - } - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/core/schema/nft.ts", - "qualifiedName": "NFT" - }, - "name": "NFT", - "package": "@thirdweb-dev/sdk" - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 105, - "name": "usePersonalWalletAddress", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for getting the address of the personal wallet connected to the current wallet connection.\n\nThis is only relevant if the current connected wallet uses a personal wallet - For Example - Smart Wallet and Safe." - } - ], - "blockTags": [ - { - "tag": "@walletConnection", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/usePersonalWalletAddress.ts", - "line": 10, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/usePersonalWalletAddress.ts#L10" - } - ], - "signatures": [ - { - "id": 106, - "name": "usePersonalWalletAddress", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/usePersonalWalletAddress.ts", - "line": 10, - "character": 40, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/usePersonalWalletAddress.ts#L10" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ] - }, - { - "id": 373, - "name": "usePlatformFees", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 346, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L346" - } - ], - "signatures": [ - { - "id": 374, - "name": "usePlatformFees", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for getting the platform fee settings of a contract.\n\nAvailable to use on contracts that implement the [" - }, - { - "kind": "code", - "text": "`PlatformFee`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/general/PlatformFee) interface." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useContract, usePlatformFees } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = usePlatformFees(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, is an object containing two fields:\n\n- " - }, - { - "kind": "code", - "text": "`platform_fee_basis_points`" - }, - { - "kind": "text", - "text": ": the platform fee basis points set on the contract\n- " - }, - { - "kind": "code", - "text": "`platform_fee_recipient`" - }, - { - "kind": "text", - "text": ": the wallet address of the platform fee recipient\n\n_Note_: The basis points are in percentage format, meaning that a value of " - }, - { - "kind": "code", - "text": "`500`" - }, - { - "kind": "text", - "text": " is equivalent to a " - }, - { - "kind": "code", - "text": "`5%`" - }, - { - "kind": "text", - "text": " fee.\n\n" - }, - { - "kind": "code", - "text": "```ts\n{\n platform_fee_basis_points: number;\n platform_fee_recipient: string;\n}\n```" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "PlatformFee" - } - ] - }, - { - "tag": "@platformFees", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 346, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L346" - } - ], - "parameters": [ - { - "id": 375, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`SmartContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ValidContractInstance" - }, - "name": "ValidContractInstance", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 376, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 377, - "name": "platform_fee_basis_points", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 350, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L350" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 378, - "name": "platform_fee_recipient", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 351, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L351" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 377, - 378 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 349, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L349" - } - ] - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 352, - "name": "usePrimarySaleRecipient", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 49, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L49" - } - ], - "signatures": [ - { - "id": 353, - "name": "usePrimarySaleRecipient", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for getting the primary sales recipient of a smart contract.\n\nAvailable to use on contracts that implement the [" - }, - { - "kind": "code", - "text": "`PrimarySale`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/general/PrimarySale) interface." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useContract, usePrimarySaleRecipient } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = usePrimarySaleRecipient(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, is a " - }, - { - "kind": "code", - "text": "`string`" - }, - { - "kind": "text", - "text": " with the wallet address of the primary sales recipient." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "PrimarySale" - } - ] - }, - { - "tag": "@platformFees", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 49, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L49" - } - ], - "parameters": [ - { - "id": 354, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`SmartContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ValidContractInstance" - }, - "name": "ValidContractInstance", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 984, - "name": "useRemoveAdmin", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account.ts", - "line": 323, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account.ts#L323" - } - ], - "signatures": [ - { - "id": 985, - "name": "useRemoveAdmin", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Remove an admin on the smart wallet account. This action has to be performed by an admin on the account.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useRemoveAdmin } from \"@thirdweb-dev/react\";\n\nconst adminAddress = \"{{admin_address}}\";\n\nconst Component = () => {\n const { mutate: removeAdmin, isLoading, error } = useRemoveAdmin();\n\n if (error) {\n console.error(\"failed to remove admin\", error);\n }\n\n return (\n \n );\n};\n```" - } - ], - "blockTags": [ - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "Account" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "mutation object to remove given address as an admin" - } - ] - }, - { - "tag": "@smartWallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account.ts", - "line": 323, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account.ts#L323" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/types.ts", - "qualifiedName": "TransactionResult" - }, - "name": "TransactionResult", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 347, - "name": "useResetClaimConditions", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 915, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L915" - } - ], - "signatures": [ - { - "id": 348, - "name": "useResetClaimConditions", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for resetting the claim conditions on a drop contract.\n\nAvailable to use on contracts that implement\n[" - }, - { - "kind": "code", - "text": "`ERC721ClaimableWithConditions`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721ClaimConditions),\n[" - }, - { - "kind": "code", - "text": "`ERC1155ClaimableWithConditions`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155ClaimConditions) or\n[" - }, - { - "kind": "code", - "text": "`ERC20ClaimableWithConditions`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/erc-20/ERC20ClaimConditions)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport {\n useContract,\n useResetClaimConditions,\n Web3Button,\n} from \"@thirdweb-dev/react\";\n\nfunction App() {\n // Contract must be a drop contract that implements claim conditions\n const { contract } = useContract(contractAddress);\n const {\n mutateAsync: resetClaimConditions,\n isLoading,\n error,\n } = useResetClaimConditions(contract);\n\n return (\n resetClaimConditions()}\n >\n Reset Claim Conditions\n \n );\n}\n```" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC20ClaimPhasesV2 | ERC20ClaimPhasesV1 | ERC20ClaimConditionsV2 | ERC20ClaimConditionsV1 | ERC721ClaimPhasesV2 | ERC721ClaimPhasesV1 | ERC721ClaimConditionsV2 | ERC721ClaimConditionsV1 | ERC1155ClaimPhasesV2 | ERC1155ClaimPhasesV1 | ERC1155ClaimConditionsV2 | ERC1155ClaimConditionsV1" - } - ] - }, - { - "tag": "@nftDrop", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 915, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L915" - } - ], - "parameters": [ - { - "id": 349, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`DropContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1198, - "name": "DropContract", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 350, - "name": "tokenId", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "For ERC1155 NFTs, provide the token ID of the NFT as the second argument to the hook." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 351, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/core/classes/drop-erc1155-claim-conditions.d.ts", - "line": 132, - "character": 62 - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "intrinsic", - "name": "void" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 537, - "name": "useRevealLazyMint", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 777, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L777" - } - ], - "signatures": [ - { - "id": 538, - "name": "useRevealLazyMint", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for revealing a batch of delayed reveal NFTs using [delayed reveal](https://portal.thirdweb.com/glossary/delayed-reveal).\n\nAvailable to use on contracts that implement the\n[ERC721Revealable](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721Revealable)\nor [ERC1155Revealable](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155Revealable)\ninterfaces.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useRevealLazyMint } from \"@thirdweb-dev/react\";\n\nconst { mutateAsync, isLoading, error } = useRevealLazyMint(contract);\n```" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nimport {\n useContract,\n useRevealLazyMint,\n Web3Button,\n} from \"@thirdweb-dev/react\";\n\nfunction App() {\n // Contract must be an ERC-721 or ERC-1155 contract that implements the ERC721Revealable or ERC1155Revealable interface\n const { contract } = useContract(contractAddress);\n const {\n mutateAsync: revealLazyMint,\n isLoading,\n error,\n } = useRevealLazyMint(contract);\n\n return (\n \n revealLazyMint({\n batchId: \"{{batch_id}}\", // ID of the batch to reveal (use useBatchesToReveal to get the batch IDs)\n password: \"{{password}}\", // Password to reveal the batch\n })\n }\n >\n Reveal Lazy Mint\n \n );\n}\n```" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC721Revealable | ERC1155Revealable" - } - ] - }, - { - "tag": "@delayedReveal", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 777, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L777" - } - ], - "typeParameters": [ - { - "id": 539, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": 1199, - "name": "RevealableContract", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 540, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`RevealableContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 539, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 541, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 543, - "name": "data", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 783, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L783" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 544, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 783, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L783" - } - ], - "signatures": [ - { - "id": 545, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - }, - { - "id": 542, - "name": "receipt", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 782, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L782" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+abstract-provider@5.7.0/node_modules/@ethersproject/abstract-provider/src.ts/index.ts", - "qualifiedName": "TransactionReceipt" - }, - "name": "providers.TransactionReceipt", - "package": "@ethersproject/abstract-provider", - "qualifiedName": "TransactionReceipt" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 543, - 542 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 781, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L781" - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": 1205, - "name": "RevealLazyMintInput", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 905, - "name": "useRevokeRole", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/roles.ts", - "line": 466, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/roles.ts#L466" - } - ], - "signatures": [ - { - "id": 906, - "name": "useRevokeRole", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for revoking a wallet address from a role on a smart contract.\n\nAvailable to use on contracts that implement [" - }, - { - "kind": "code", - "text": "`Permissions`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/general/Permissions) interface\n\nThe wallet address that initiates this transaction must have the relevant permissions on the contract to remove the role from the wallet address (typically " - }, - { - "kind": "code", - "text": "`\"admin\"`" - }, - { - "kind": "text", - "text": " level required).\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useContract, useRevokeRole, Web3Button } from \"@thirdweb-dev/react\";\n\n// Your smart contract address (must implement permission controls)\nconst contractAddress = \"{{contract_address}}\";\nconst walletAddress = \"{{wallet_address}}\";\n\nfunction App() {\n // Contract must be a contract that implements the Permission Controls interface\n const { contract } = useContract(contractAddress);\n const { mutateAsync: revokeRole, isLoading, error } = useRevokeRole(contract);\n\n return (\n \n revokeRole({\n role: \"admin\",\n address: walletAddress,\n })\n }\n >\n Revoke Role\n \n );\n}\n```" - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A mutation object to revoke a role from a member on the contract\n#### role (required)\n\nThe role to revoke from the wallet address.\n\nCan be any custom role, or a built-in role, such as:\n- " - }, - { - "kind": "code", - "text": "`\"admin\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"transfer\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"minter\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"pauser\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"lister\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"asset\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"unwrap\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"factory\"`" - }, - { - "kind": "text", - "text": "\n\n#### address\n\nThe wallet address to revoke the role from.\n\nTo use the connected wallet address, use the " - }, - { - "kind": "code", - "text": "`useAddress`" - }, - { - "kind": "text", - "text": " hook." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "Permissions | PermissionsEnumerable" - } - ] - }, - { - "tag": "@permissionControl", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/roles.ts", - "line": 466, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/roles.ts#L466" - } - ], - "typeParameters": [ - { - "id": 907, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "ContractWithRoles" - }, - "name": "ContractWithRoles", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 908, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`SmartContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 907, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reflection", - "declaration": { - "id": 909, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 911, - "name": "address", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/roles.ts", - "line": 475, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/roles.ts#L475" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 910, - "name": "role", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/roles.ts", - "line": 474, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/roles.ts#L474" - } - ], - "type": { - "type": "reference", - "target": 913, - "typeArguments": [ - { - "type": "reference", - "target": 907, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RolesForContract", - "package": "@thirdweb-dev/react-core" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 911, - 910 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/roles.ts", - "line": 473, - "character": 19, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/roles.ts#L473" - } - ] - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 988, - "name": "useRevokeSessionKey", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account.ts", - "line": 243, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account.ts#L243" - } - ], - "signatures": [ - { - "id": 989, - "name": "useRevokeSessionKey", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Revoke a session key (or signer) on the smart wallet account" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useRevokeSessionKey } from \"@thirdweb-dev/react\";\n\n// Your ERC20 token smart contract address\nconst keyAddress = \"{{key_address}}\";\n\nconst Component = () => {\n const { mutate: revokeSessionKey, isLoading, error } = useRevokeSessionKey();\n\n if (error) {\n console.error(\"failed to revoke session key\", error);\n }\n\n return (\n \n );\n};\n```" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "Account" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Mutation object to revoke a session key (or signer) on the smart wallet\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useRevokeSessionKey();\n```" - }, - { - "kind": "text", - "text": "\n\nThe mutation function takes an address of type " - }, - { - "kind": "code", - "text": "`string`" - }, - { - "kind": "text", - "text": " to remove as an admin." - } - ] - }, - { - "tag": "@smartWallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/account.ts", - "line": 243, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/account.ts#L243" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/types.ts", - "qualifiedName": "TransactionResult" - }, - "name": "TransactionResult", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 883, - "name": "useRoleMembers", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/roles.ts", - "line": 155, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/roles.ts#L155" - } - ], - "signatures": [ - { - "id": 884, - "name": "useRoleMembers", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for getting all wallet addresses that have a specific role in a smart contract.\n\nAvailable to use on contracts that implement the [" - }, - { - "kind": "code", - "text": "`Permissions`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/general/Permissions) interface." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useContract, useRoleMembers } from \"@thirdweb-dev/react\";\n\n// Your smart contract address (must implement permission controls)\nconst contractAddress = \"{{contract_address}}\";\n\nconst roleName = \"admin\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = useRoleMembers(contract, roleName);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, is an array of wallet addresses that have the specified role" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "Permissions" - } - ] - }, - { - "tag": "@permissionControl", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/roles.ts", - "line": 155, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/roles.ts#L155" - } - ], - "typeParameters": [ - { - "id": 885, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "ContractWithRoles" - }, - "name": "ContractWithRoles", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 886, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`SmartContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 885, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 887, - "name": "role", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The name of the role to get the members of\n\nCan be any custom role, or a built-in role, such as:\n- " - }, - { - "kind": "code", - "text": "`\"admin\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"transfer\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"minter\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"pauser\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"lister\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"asset\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"unwrap\"`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`\"factory\"`" - } - ] - }, - "type": { - "type": "reference", - "target": 913, - "typeArguments": [ - { - "type": "reference", - "target": 885, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RolesForContract", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 360, - "name": "useRoyaltySettings", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 190, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L190" - } - ], - "signatures": [ - { - "id": 361, - "name": "useRoyaltySettings", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for retrieving royalty settings of a smart contract.\n\nAvailable to use on contracts that implement the [" - }, - { - "kind": "code", - "text": "`Royalty`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/general/Royalty) interface." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useContract, useRoyaltySettings } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = useRoyaltySettings(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, is an object with two properties:\n\n" - }, - { - "kind": "code", - "text": "```ts\n{\n seller_fee_basis_points: number;\n fee_recipient: string;\n}\n```" - }, - { - "kind": "text", - "text": "\n\n- The " - }, - { - "kind": "code", - "text": "`seller_fee_basis_points`" - }, - { - "kind": "text", - "text": " is the royalty amount (in basis points) that the seller\n will receive for each token sale on secondary markets.\n- The " - }, - { - "kind": "code", - "text": "`fee_recipient`" - }, - { - "kind": "text", - "text": " is the wallet address that will receive the royalty payments." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "Royalty" - } - ] - }, - { - "tag": "@platformFees", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 190, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L190" - } - ], - "parameters": [ - { - "id": 362, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`SmartContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ValidContractInstance" - }, - "name": "ValidContractInstance", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 363, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 365, - "name": "fee_recipient", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 195, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L195" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 364, - "name": "seller_fee_basis_points", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 194, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L194" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 365, - 364 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 193, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L193" - } - ] - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 1109, - "name": "useSDK", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/useSDK.ts", - "line": 44, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/useSDK.ts#L44" - } - ], - "signatures": [ - { - "id": 1110, - "name": "useSDK", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to get the instance of the " - }, - { - "kind": "code", - "text": "`ThirdwebSDK`" - }, - { - "kind": "text", - "text": " class being used by the " - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": " component.\n\nThis gives access to all of the functionality of the TypeScript SDK in your React app.\n\n- If there is a connected wallet, the SDK is instantiated from the connected wallet’s signer. Meaning all transactions are initiated from the connected wallet.\n- If there is no connected wallet, the SDK is in read-only mode on the activeChain." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nimport { useSDK } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const sdk = useSDK();\n\n // Now you use all of the TypeScript SDK functionality\n // For example, deploy a new contract from the connected wallet.\n async function deployContract() {\n sdk?.deployer.deployNFTDrop({\n name: \"My NFT Drop\",\n primary_sale_recipient: \"{{wallet_address}}\",\n });\n }\n}\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/useSDK.ts", - "line": 44, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/useSDK.ts#L44" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/sdk.ts", - "qualifiedName": "ThirdwebSDK" - }, - "name": "ThirdwebSDK", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - } - ] - }, - { - "id": 894, - "name": "useSetAllRoleMembers", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/roles.ts", - "line": 279, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/roles.ts#L279" - } - ], - "signatures": [ - { - "id": 895, - "name": "useSetAllRoleMembers", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Overwrite the list of members for specific roles" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nconst Component = () => {\n const { contract } = useContract(\"{{contract_address}}\");\n const {\n mutate: overwriteRoles,\n isLoading,\n error,\n } = useSetAllRoleMembers(contract);\n\n if (error) {\n console.error(\"failed to overwrite roles\", error);\n }\n\n return (\n overwriteRoles({ rolesWithAddresses: { minter: [\"{{wallet_address}\"] } })}\n >\n Overwrite Roles\n \n );\n};\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A mutation object to overwrite all roles on the contract" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "Permissions" - } - ] - }, - { - "tag": "@permissionControl", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/roles.ts", - "line": 279, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/roles.ts#L279" - } - ], - "typeParameters": [ - { - "id": 896, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "ContractWithRoles" - }, - "name": "ContractWithRoles", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 897, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`SmartContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 896, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "mapped", - "parameter": "role", - "parameterType": { - "type": "intrinsic", - "name": "any" - }, - "templateType": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 1090, - "name": "useSetAppURI", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/app.ts", - "line": 81, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/app.ts#L81" - } - ], - "signatures": [ - { - "id": 1091, - "name": "useSetAppURI", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Set App URI of the contract" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nconst Component = () => {\n const {\n mutate: useSetAppURI,\n isLoading,\n error,\n } = useSetAppURI(contract);\n\n if (error) {\n console.error(\"failed to update appURI\", error);\n }\n\n return (\n useSetAppURI({ uri })}\n >\n Update App URI\n \n );\n};\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A mutation object to update the appURI of a contract" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "AppURI" - } - ] - }, - { - "tag": "@appURI", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/app.ts", - "line": 81, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/app.ts#L81" - } - ], - "parameters": [ - { - "id": 1092, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`SmartContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ValidContractInstance" - }, - "name": "ValidContractInstance", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 1093, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1095, - "name": "data", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/app.ts", - "line": 87, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/app.ts#L87" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1096, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/app.ts", - "line": 87, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/app.ts#L87" - } - ], - "signatures": [ - { - "id": 1097, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - }, - { - "id": 1094, - "name": "receipt", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/app.ts", - "line": 86, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/app.ts#L86" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+abstract-provider@5.7.0/node_modules/@ethersproject/abstract-provider/src.ts/index.ts", - "qualifiedName": "TransactionReceipt" - }, - "name": "providers.TransactionReceipt", - "package": "@ethersproject/abstract-provider", - "qualifiedName": "TransactionReceipt" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1095, - 1094 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/app.ts", - "line": 85, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/app.ts#L85" - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reflection", - "declaration": { - "id": 1098, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1099, - "name": "uri", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/app.ts", - "line": 93, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/app.ts#L93" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1099 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/app.ts", - "line": 92, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/app.ts#L92" - } - ] - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 341, - "name": "useSetClaimConditions", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 828, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L828" - } - ], - "signatures": [ - { - "id": 342, - "name": "useSetClaimConditions", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for setting claim conditions on a drop contract.\n\nThis is available for available for contracts that implement the \"ClaimConditions\" interface; such as [NFT Drop](https://thirdweb.com/thirdweb.eth/DropERC721), [Edition Drop](https://thirdweb.com/thirdweb.eth/DropERC1155), and [Token Drop](https://thirdweb.com/thirdweb.eth/DropERC20).\n\nWhen using an ERC1155 contract, you must also provide the token ID of the NFT you want to set claim conditions on as the second parameter to the hook." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nimport {\n useSetClaimConditions,\n useContract,\n Web3Button,\n} from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const {\n mutateAsync: setClaimConditions,\n isLoading,\n error,\n } = useSetClaimConditions(contract);\n\n const claimConditions = {\n phases: [\n {\n metadata: {\n name: \"Phase 1\", // The name of the phase\n },\n currencyAddress: \"0x...\", // The address of the currency you want users to pay in\n price: 1, // The price of the token in the currency specified above\n maxClaimablePerWallet: 1, // The maximum number of tokens a wallet can claim\n maxClaimableSupply: 100, // The total number of tokens that can be claimed in this phase\n startTime: new Date(), // When the phase starts (i.e. when users can start claiming tokens)\n waitInSeconds: 60 * 60 * 24 * 7, // The period of time users must wait between repeat claims\n snapshot: [\n {\n address: \"0x...\", // The address of the wallet\n currencyAddress: \"0x...\", // Override the currency address this wallet pays in\n maxClaimable: 5, // Override the maximum number of tokens this wallet can claim\n price: 0.5, // Override the price this wallet pays\n },\n ],\n merkleRootHash: \"0x...\", // The merkle root hash of the snapshot\n },\n ],\n }\n\n return (\n setClaimConditions(claimConditions)}\n >\n Set Claim Conditions\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A Mutation object to set claim conditions\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useSetClaimConditions(contract);\n\nfunction setPhases(phases) {\n mutateAsync({\n phases,\n });\n}\n\nfunction reset() {\n mutateAsync({\n reset: true,\n })\n}\n```" - }, - { - "kind": "text", - "text": "\n\n### options\n\nThe mutation function takes an object with two possible properties:\n\n1. " - }, - { - "kind": "code", - "text": "`reset`" - }, - { - "kind": "text", - "text": " - A boolean that determines whether to reset the claim conditions. This means you reset any previous claim conditions that existed and allow users to claim again as if the drop had just started.\n2. " - }, - { - "kind": "code", - "text": "`phases`" - }, - { - "kind": "text", - "text": " - An array of claim phases that occur in chronological order. You can only have one phase occur at a time. All properties of a phase are optional, with the default being a free, open, unlimited claim, in the native currency, starting immediately.\n\n---\n\n#### reset (optional)\n\nA boolean value that determines whether to reset the claim conditions or to keep the existing state.\n\nBy resetting them, any previous claims that were made will be ignored by the claim condition restrictions.\n\nFor example, if you had a limit of 1 token per wallet, and a user claimed a token, then you reset the claim conditions, that user will be able to claim another token.\n\nDefault value is " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": ".\n\n---\n\n#### phases (required)\n\nProvide an array of phases that occur in chronological order. All properties of a phase are optional and are described below:\n\n##### metadata\n\nAn object representing the metadata of the phase. This is only for display purposes in the dashboard and isn’t used elsewhere.\n\n" - }, - { - "kind": "code", - "text": "```js\n{\n name: string;\n}\n```" - }, - { - "kind": "text", - "text": "\n\n##### currencyAddress\n\nThe address of the currency you want users to pay in.\n\nThis can be any ERC20 token value. If you want users to pay in the native currency (e.g. Ether on Ethereum), you can import the " - }, - { - "kind": "code", - "text": "`NATIVE_TOKEN_ADDRESS`" - }, - { - "kind": "text", - "text": " constant from " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/sdk`" - }, - { - "kind": "text", - "text": ". The default value is " - }, - { - "kind": "code", - "text": "`NATIVE_TOKEN_ADDRESS`" - }, - { - "kind": "text", - "text": ".\n\n##### price\n\nThe price per token in the currency specified above. The default value is " - }, - { - "kind": "code", - "text": "`0`" - }, - { - "kind": "text", - "text": ".\n\n##### maxClaimablePerWallet\n\nThe maximum number of tokens a wallet can claim. The default value is " - }, - { - "kind": "code", - "text": "`\"unlimited\"`" - }, - { - "kind": "text", - "text": "\n\n##### maxClaimableSupply\n\nThe total number of tokens that can be claimed in this phase.\n\nFor example, if you lazy mint 1000 tokens and set the " - }, - { - "kind": "code", - "text": "`maxClaimableSupply`" - }, - { - "kind": "text", - "text": " to 100, then only 100 tokens will be claimable in this phase, leaving 900 tokens to be claimed in the next phases (if you have any).\n\nThis is useful for \"early bird\" use cases, where you allow users to claim a limited number of tokens at a discounted price during the first X amount of time.\n\n##### startTime\n\nWhen the phase starts (i.e. when users can start claiming tokens).\n\nThe default value is " - }, - { - "kind": "code", - "text": "`\"immediately\"`" - }, - { - "kind": "text", - "text": ".\n\n##### waitInSeconds\n\nThe amount of time between claims a wallet must wait before they can claim again.\n\nThe default value is " - }, - { - "kind": "code", - "text": "`0`" - }, - { - "kind": "text", - "text": ", meaning users can claim again immediately after claiming.\n\n##### snapshot\n\nA list of wallets that you want to override the default claim conditions for.\n\nWallet addresses within this list can be set to pay in a different currency, have a different price, and have a different maximum claimable amount.\n\n" - }, - { - "kind": "code", - "text": "```jsx\n{\n address: string;\n currencyAddress?: string;\n maxClaimable?: number;\n price?: number;\n}\n```" - }, - { - "kind": "text", - "text": "\n\n[Learn more about improving claim conditions](https://blog.thirdweb.com/announcing-improved-claim-conditions/)\n\n##### merkleRootHash\n\nIf you want to provide your own merkle tree for your snapshot, provide the merkle root hash here. This is only recommended for advanced use cases." - } - ] - }, - { - "tag": "@claimConditions", - "content": [] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC20ClaimPhasesV2 | ERC20ClaimPhasesV1 | ERC20ClaimConditionsV2 | ERC20ClaimConditionsV1 | ERC721ClaimPhasesV2 | ERC721ClaimPhasesV1 | ERC721ClaimConditionsV2 | ERC721ClaimConditionsV1 | ERC1155ClaimPhasesV2 | ERC1155ClaimPhasesV1 | ERC1155ClaimConditionsV2 | ERC1155ClaimConditionsV1" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 828, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L828" - } - ], - "parameters": [ - { - "id": 343, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "inline-tag", - "tag": "@link", - "text": "DropContract", - "target": 1198, - "tsLinkText": "" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1198, - "name": "DropContract", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 344, - "name": "tokenId", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 345, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 346, - "name": "receipt", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 832, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L832" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+abstract-provider@5.7.0/node_modules/@ethersproject/abstract-provider/src.ts/index.ts", - "qualifiedName": "TransactionReceipt" - }, - "name": "providers.TransactionReceipt", - "package": "@ethersproject/abstract-provider", - "qualifiedName": "TransactionReceipt" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 346 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts", - "line": 832, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/claim-conditions.ts#L832" - } - ] - } - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": 305, - "name": "SetClaimConditionsParams", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 95, - "name": "useSetConnectedWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 474, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L474" - } - ], - "signatures": [ - { - "id": 96, - "name": "useSetConnectedWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for setting a wallet instance as \"connected\" - once done, the wallet connection hooks like " - }, - { - "kind": "code", - "text": "`useWallet`" - }, - { - "kind": "text", - "text": ", " - }, - { - "kind": "code", - "text": "`useAddress`" - }, - { - "kind": "text", - "text": ", " - }, - { - "kind": "code", - "text": "`useSigner`" - }, - { - "kind": "text", - "text": ", " - }, - { - "kind": "code", - "text": "`useConnectionStatus`" - }, - { - "kind": "text", - "text": " etc will return the data for that wallet instance\n\nThis 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)" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nimport {\n useCreateWalletInstance,\n useSetConnectionStatus,\n useSetConnectedWallet,\n metamaskWallet\n} from \"@thirdweb-dev/react\";\n\nconst walletConfig = metamaskWallet();\n\nfunction Example() {\n const createWalletInstance = useCreateWalletInstance();\n const setConnectionStatus = useSetConnectionStatus();\n const setConnectedWallet = useSetConnectedWallet();\n\n // Call this function to connect your wallet\n const handleConnect = async () => {\n // 1. create instance\n const walletInstance = createWalletInstance(walletConfig);\n setConnectionStatus(\"connecting\");\n\n try {\n // 2. Call `connect` method of your wallet\n await walletInstance.connect(\n connectOptions, // if your wallet.connect method accepts any options, specify it here\n );\n\n // 3. Set connected wallet\n setConnectedWallet(walletInstance);\n props.close();\n } catch (e) {\n setConnectionStatus(\"disconnected\");\n console.error(\"failed to connect\", e);\n }\n };\n\n return
...
;\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A function to set a wallet instance as \"connected\"." - } - ] - }, - { - "tag": "@walletConnection", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 474, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L474" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 97, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx", - "line": 111, - "character": 22, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx#L111" - } - ], - "signatures": [ - { - "id": 98, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx", - "line": 111, - "character": 22, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx#L111" - } - ], - "parameters": [ - { - "id": 99, - "name": "wallet", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 234, - "name": "WalletInstance", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 100, - "name": "params", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/interfaces/connector.ts", - "qualifiedName": "ConnectParams" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Record", - "package": "typescript" - } - ], - "name": "ConnectParams", - "package": "@thirdweb-dev/wallets" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - } - ] - }, - { - "id": 90, - "name": "useSetConnectionStatus", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 344, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L344" - } - ], - "signatures": [ - { - "id": 91, - "name": "useSetConnectionStatus", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for setting the " - }, - { - "kind": "code", - "text": "`connectionStatus`" - }, - { - "kind": "text", - "text": " of the wallet which is returned by the " - }, - { - "kind": "code", - "text": "`useConnectionStatus`" - }, - { - "kind": "text", - "text": " hook\n\nThis 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)" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nimport {\n useCreateWalletInstance,\n useSetConnectionStatus,\n useSetConnectedWallet,\n metamaskWallet\n} from \"@thirdweb-dev/react\";\n\nconst walletConfig = metamaskWallet();\n\nfunction Example() {\n const createWalletInstance = useCreateWalletInstance();\n const setConnectionStatus = useSetConnectionStatus();\n const setConnectedWallet = useSetConnectedWallet();\n\n // Call this function to connect your wallet\n const handleConnect = async () => {\n // 1. create instance\n const walletInstance = createWalletInstance(walletConfig);\n setConnectionStatus(\"connecting\");\n\n try {\n // 2. Call `connect` method of your wallet\n await walletInstance.connect(\n connectOptions, // if your wallet.connect method accepts any options, specify it here\n );\n\n // 3. Set connected wallet\n setConnectedWallet(walletInstance);\n props.close();\n } catch (e) {\n setConnectionStatus(\"disconnected\");\n console.error(\"failed to connect\", e);\n }\n };\n\n return
...
;\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A function that sets the " - }, - { - "kind": "code", - "text": "`connectionStatus`" - }, - { - "kind": "text", - "text": " of the wallet" - } - ] - }, - { - "tag": "@walletConnection", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 344, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L344" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 92, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx", - "line": 102, - "character": 23, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx#L102" - } - ], - "signatures": [ - { - "id": 93, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx", - "line": 102, - "character": 23, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx#L102" - } - ], - "parameters": [ - { - "id": 94, - "name": "status", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 109, - "name": "ConnectionStatus", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - } - ] - }, - { - "id": 860, - "name": "useSharedMetadata", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 469, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L469" - } - ], - "signatures": [ - { - "id": 861, - "name": "useSharedMetadata", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Get the shared metadata of an Open Edition NFT contract" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```javascript\nconst { data: sharedMetadata, isLoading, error } = useSharedMetadata(contract);\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Query result object that includes the shared metadata of the contract" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC721SharedMetadata" - } - ] - }, - { - "tag": "@nft", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 469, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L469" - } - ], - "parameters": [ - { - "id": 862, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`NFTContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1170, - "name": "NFTContract", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/core/schema/nft.ts", - "qualifiedName": "BasicNFTInput" - }, - "name": "BasicNFTInput", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 1079, - "name": "useSigner", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/useSigner.ts", - "line": 26, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/useSigner.ts#L26" - } - ], - "signatures": [ - { - "id": 1080, - "name": "useSigner", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for getting the [ethers signer](https://docs.ethers.org/v5/api/signer/) of the connected wallet." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useSigner, Web3Button } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const signer = useSigner();\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "code", - "text": "`Signer`" - }, - { - "kind": "text", - "text": " if wallet is connected, otherwise " - }, - { - "kind": "code", - "text": "`undefined`" - }, - { - "kind": "text", - "text": "." - } - ] - }, - { - "tag": "@walletConnection", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/useSigner.ts", - "line": 26, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/useSigner.ts#L26" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+abstract-signer@5.7.0/node_modules/@ethersproject/abstract-signer/src.ts/index.ts", - "qualifiedName": "Signer" - }, - "name": "Signer", - "package": "@ethersproject/abstract-signer" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - } - ] - }, - { - "id": 1065, - "name": "useStorage", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/storage/useStorage.ts", - "line": 47, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/storage/useStorage.ts#L47" - } - ], - "signatures": [ - { - "id": 1066, - "name": "useStorage", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Get the instance of the " - }, - { - "kind": "code", - "text": "`ThirdwebStorage`" - }, - { - "kind": "text", - "text": " class being used by the " - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "\n\nAllows you to use the TypeScript SDK functionality of [Storage](https://portal.thirdweb.com/infrastructure/storage/overview) in your React app." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useStorage } from \"@thirdweb-dev/react\";\n\nexport default function Component() {\n const storage = useStorage();\n\n // Now you can use the functionality of the ThirdwebStorage class:\n storage?.download(); // Download a file from IPFS\n storage?.upload(); // Upload a file to IPFS\n}\n```" - } - ] - }, - { - "tag": "@remarks", - "content": [ - { - "kind": "text", - "text": "### API Key\n\nYou will require an API key to use thirdweb’s storage services with the SDK. If you haven’t created a key yet you can do so for free from the [**thirdweb dashboard**](https://thirdweb.com/create-api-key).\n\nYou can then obtain a " - }, - { - "kind": "code", - "text": "`clientId`" - }, - { - "kind": "text", - "text": " from the API key which you will need to pass to the " - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": " component:\n\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { ThirdwebProvider } from \"@thirdweb-dev/react\";\n\nconst App = () => {\n return (\n \n \n \n );\n};\n```" - }, - { - "kind": "text", - "text": "\n\nStorage can also be configured using the " - }, - { - "kind": "code", - "text": "`storageInterface`" - }, - { - "kind": "text", - "text": " prop on " - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - } - ] - }, - { - "tag": "@storage", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/storage/useStorage.ts", - "line": 47, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/storage/useStorage.ts#L47" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../storage/src/core/storage.ts", - "qualifiedName": "ThirdwebStorage" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../storage/src/types/upload.ts", - "qualifiedName": "IpfsUploadBatchOptions" - }, - "name": "IpfsUploadBatchOptions", - "package": "@thirdweb-dev/storage" - } - ], - "name": "ThirdwebStorage", - "package": "@thirdweb-dev/storage" - } - ] - } - } - ] - }, - { - "id": 1067, - "name": "useStorageUpload", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/storage/useStorageUpload.ts", - "line": 119, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/storage/useStorageUpload.ts#L119" - } - ], - "signatures": [ - { - "id": 1068, - "name": "useStorageUpload", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for uploading files to IPFS and retrieving the IPFS URI." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useStorageUpload } from \"@thirdweb-dev/react\";\n\nexport default function Component() {\n const { mutateAsync: upload, isLoading } = useStorageUpload();\n\n async function uploadData() {\n const filesToUpload = [...];\n const uris = await upload({ data: files });\n console.log(uris);\n }\n\n return (\n \n )\n}\n```" - } - ] - }, - { - "tag": "@remarks", - "content": [ - { - "kind": "text", - "text": "### API key\n\nYou will require an API key to use thirdweb’s storage services with the SDK. If you haven’t created a key yet you can do so for free from the [**thirdweb dashboard**](https://thirdweb.com/create-api-key).\n\nYou can then obtain a " - }, - { - "kind": "code", - "text": "`clientId`" - }, - { - "kind": "text", - "text": " from the API key which you will need to pass to the [" - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "](/react/react.thirdwebprovider) component:\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { ThirdwebProvider } from \"@thirdweb/react\";\n\nconst App = () => {\n return (\n \n \n \n );\n};\n```" - } - ] - }, - { - "tag": "@storage", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/storage/useStorageUpload.ts", - "line": 119, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/storage/useStorageUpload.ts#L119" - } - ], - "typeParameters": [ - { - "id": 1069, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../storage/src/types/upload.ts", - "qualifiedName": "UploadOptions" - }, - "name": "UploadOptions", - "package": "@thirdweb-dev/storage" - }, - "default": { - "type": "reference", - "target": { - "sourceFileName": "../storage/src/types/upload.ts", - "qualifiedName": "IpfsUploadBatchOptions" - }, - "name": "IpfsUploadBatchOptions", - "package": "@thirdweb-dev/storage" - } - } - ], - "parameters": [ - { - "id": 1070, - "name": "uploadOptions", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "target": 1069, - "name": "T", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": { - "sourceFileName": "src/evm/hooks/storage/useStorageUpload.ts", - "qualifiedName": "StorageUploadOptions" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1069, - "name": "T", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "StorageUploadOptions", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 1081, - "name": "useSupportedChains", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/useSupportedChains.ts", - "line": 11, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/useSupportedChains.ts#L11" - } - ], - "signatures": [ - { - "id": 1082, - "name": "useSupportedChains", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to get the " - }, - { - "kind": "code", - "text": "`supportedChains`" - }, - { - "kind": "text", - "text": " which returns the array passed to the " - }, - { - "kind": "code", - "text": "`supportedChains`" - }, - { - "kind": "text", - "text": " prop of the " - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": " or the default supported chains if not specified.\n\nIf " - }, - { - "kind": "code", - "text": "`activeChain`" - }, - { - "kind": "text", - "text": " is set in the " - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": " then it is also added to the " - }, - { - "kind": "code", - "text": "`supportedChains`" - }, - { - "kind": "text", - "text": " array" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/useSupportedChains.ts", - "line": 11, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/useSupportedChains.ts#L11" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../chains/src/types.ts", - "qualifiedName": "Chain" - }, - "name": "Chain", - "package": "@thirdweb-dev/chains" - } - } - } - ] - }, - { - "id": 1018, - "name": "useSwitchAccount", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useSwitchAccount.ts", - "line": 22, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useSwitchAccount.ts#L22" - } - ], - "signatures": [ - { - "id": 1019, - "name": "useSwitchAccount", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to switch the account of the active wallet" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nconst { switchAccount, isLoading } = useSwitchAccount();\n\nconst handleSwitchAccount = async (address: string) => {\n await switchAccount(address);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A function to invoke to switch account and a boolean to indicate if it is in progress" - } - ] - }, - { - "tag": "@auth", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useSwitchAccount.ts", - "line": 22, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useSwitchAccount.ts#L22" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1020, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1022, - "name": "isLoading", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useSwitchAccount.ts", - "line": 54, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useSwitchAccount.ts#L54" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "switchAccount.isLoading" - }, - { - "id": 1021, - "name": "switchAccount", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useSwitchAccount.ts", - "line": 53, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useSwitchAccount.ts#L53" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutateAsyncFunction" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutateAsyncFunction", - "package": "@tanstack/react-query" - }, - "defaultValue": "switchAccount.mutateAsync" - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1022, - 1021 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useSwitchAccount.ts", - "line": 52, - "character": 9, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useSwitchAccount.ts#L52" - } - ] - } - } - } - ] - }, - { - "id": 81, - "name": "useSwitchChain", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 415, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L415" - } - ], - "signatures": [ - { - "id": 82, - "name": "useSwitchChain", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for switching to a different network." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useSwitchChain } from \"@thirdweb-dev/react\";\nimport { Goerli } from \"@thirdweb-dev/chains\";\n\nfunction App() {\n const switchChain = useSwitchChain();\n return (\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A function to switch the network in the currently connected wallet to network with given " - }, - { - "kind": "code", - "text": "`chainId`" - } - ] - }, - { - "tag": "@networkConnection", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 415, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L415" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 83, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx", - "line": 108, - "character": 15, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx#L108" - } - ], - "signatures": [ - { - "id": 84, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx", - "line": 108, - "character": 15, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx#L108" - } - ], - "parameters": [ - { - "id": 85, - "name": "chain", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - } - ] - }, - { - "id": 925, - "name": "useTokenBalance", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 108, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L108" - } - ], - "signatures": [ - { - "id": 926, - "name": "useTokenBalance", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for fetching the balance a wallet has for a specific ERC20 token.\n\n__This hook is for _custom_ ERC20 tokens. For native tokens such as Ether, use " - }, - { - "kind": "code", - "text": "`useBalance`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`useBalanceForAddress`" - }, - { - "kind": "text", - "text": "__\n\nAvailable to use on contracts that implement the ERC20 interface." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useTokenBalance, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"token\");\n const { data, isLoading, error } = useTokenBalance(contract, walletAddress);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " object includes the token balance for given wallet address" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC20" - } - ] - }, - { - "tag": "@token", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 108, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L108" - } - ], - "parameters": [ - { - "id": 927, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`TokenContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1171, - "name": "TokenContract", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 928, - "name": "walletAddress", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 929, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 933, - "name": "decimals", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 116, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L116" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 934, - "name": "displayValue", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 117, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L117" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 932, - "name": "name", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 115, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L115" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 930, - "name": "symbol", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 113, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L113" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 931, - "name": "value", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 114, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L114" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumber" - }, - "name": "BigNumber", - "package": "@ethersproject/bignumber" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 933, - 934, - 932, - 930, - 931 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 112, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L112" - } - ] - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 935, - "name": "useTokenDecimals", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 165, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L165" - } - ], - "signatures": [ - { - "id": 936, - "name": "useTokenDecimals", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for fetching the [decimals](https://docs.openzeppelin.com/contracts/3.x/erc20#a-note-on-decimals)\nof an [ERC20](https://portal.thirdweb.com/contracts/build/extensions/erc-20/ERC20) token.\n\nTokens usually opt for a value of " - }, - { - "kind": "code", - "text": "`18`" - }, - { - "kind": "text", - "text": ", imitating the relationship between Ether and Wei.\nTherefore, " - }, - { - "kind": "code", - "text": "`18`" - }, - { - "kind": "text", - "text": " is the default value returned by this function, unless your ERC20 contract explicitly overrides it." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useTokenDecimals, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"token\");\n const { data, isLoading, error } = useTokenDecimals(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, contains the " - }, - { - "kind": "code", - "text": "`number`" - }, - { - "kind": "text", - "text": " that represents the number of decimals of the ERC20 token." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC20" - } - ] - }, - { - "tag": "@token", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 165, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L165" - } - ], - "parameters": [ - { - "id": 937, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`TokenContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1171, - "name": "TokenContract", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "number" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 916, - "name": "useTokenSupply", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 55, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L55" - } - ], - "signatures": [ - { - "id": 917, - "name": "useTokenSupply", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for fetching the total supply of an ERC20 token.\n\nThis takes into account the increase and decrease in supply when tokens are minted and burned." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useTokenSupply } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = useTokenSupply(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " object includes the total supply of the token in the " - }, - { - "kind": "code", - "text": "`value`" - }, - { - "kind": "text", - "text": " property as a " - }, - { - "kind": "code", - "text": "`BigNumber`" - }, - { - "kind": "text", - "text": " object." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC20" - } - ] - }, - { - "tag": "@token", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 55, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L55" - } - ], - "parameters": [ - { - "id": 918, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`TokenContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1171, - "name": "TokenContract", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 919, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 923, - "name": "decimals", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 62, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L62" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 924, - "name": "displayValue", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 63, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L63" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 922, - "name": "name", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 61, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L61" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 920, - "name": "symbol", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 59, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L59" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 921, - "name": "value", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 60, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L60" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumber" - }, - "name": "BigNumber", - "package": "@ethersproject/bignumber" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 923, - 924, - 922, - 920, - 921 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 58, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L58" - } - ] - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 819, - "name": "useTotalCirculatingSupply", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 279, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L279" - } - ], - "signatures": [ - { - "id": 820, - "name": "useTotalCirculatingSupply", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for fetching the total number of NFTs in circulation for a given smart contract.\n\nThis takes into account the increase in supply due to minting and the decrease in supply due to burning.\n\nAvailable to use on contracts that implement either the [ERC721](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721)\nor [ERC1155](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155) standard." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useTotalCirculatingSupply, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = useTotalCirculatingSupply(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A " - }, - { - "kind": "code", - "text": "`BigNumber`" - }, - { - "kind": "text", - "text": " representing the total circulating supply." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC721Supply | ERC1155Enumerable" - } - ] - }, - { - "tag": "@nft", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 279, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L279" - } - ], - "parameters": [ - { - "id": 821, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`NFTContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1170, - "name": "NFTContract", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 822, - "name": "tokenId", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Required for ERC1155, the tokenId to look up. This will return the total quantity of the given token ID in circulation.\n" - }, - { - "kind": "code", - "text": "```ts\nimport { useTotalCirculatingSupply, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = useTotalCirculatingSupply(\n contract,\n \"{{token_id}}\",\n );\n}\n```" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumber" - }, - "name": "BigNumber", - "package": "@ethersproject/bignumber" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 815, - "name": "useTotalCount", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 207, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L207" - } - ], - "signatures": [ - { - "id": 816, - "name": "useTotalCount", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to get the total count of **unique** NFTs minted on a smart contract.\n\nAvailable to use on smart contracts that implement the [" - }, - { - "kind": "code", - "text": "`ERC721`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721)\nor [" - }, - { - "kind": "code", - "text": "`ERC1155`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155) standard.\n\nWhen used for ERC1155 contracts, the total count is the number of unique token IDs minted, _not_ the total supply of all tokens in circulation." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useTotalCount, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data: totalCount, isLoading, error } = useTotalCount(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A " - }, - { - "kind": "code", - "text": "`BigNumber`" - }, - { - "kind": "text", - "text": " that includes the total count of NFTs" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC721Supply | ERC1155Enumerable" - } - ] - }, - { - "tag": "@nft", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 207, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L207" - } - ], - "typeParameters": [ - { - "id": 817, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": 1170, - "name": "NFTContract", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 818, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`NFTContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 817, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumber" - }, - "name": "BigNumber", - "package": "@ethersproject/bignumber" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 954, - "name": "useTransferBatchToken", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 588, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L588" - } - ], - "signatures": [ - { - "id": 955, - "name": "useTransferBatchToken", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for transferring ERC20 tokens to multiple recipients in a single transaction (i.e. airdrop).\n\nAvailable to use on contracts that implement the [ERC20](https://portal.thirdweb.com/contracts/build/extensions/erc-20/ERC20) interface.\n\nThe wallet that initiates this transaction must have sufficient balance to cover the total amount of tokens being transferred\nand must have transfer permissions on the contract, i.e. tokens are not soulbound." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "Provide your token contract instance from the " - }, - { - "kind": "code", - "text": "`useContract`" - }, - { - "kind": "text", - "text": " hook to the hook.\n\nThen, provide an array of objects with the " - }, - { - "kind": "code", - "text": "`to`" - }, - { - "kind": "text", - "text": " and " - }, - { - "kind": "code", - "text": "`amount`" - }, - { - "kind": "text", - "text": " properties to the function.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport {\n useTransferBatchToken,\n useContract,\n Web3Button,\n} from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"token\");\n const {\n mutateAsync: transferBatchToken,\n isLoading,\n error,\n } = useTransferBatchToken(contract);\n\n return (\n \n transferBatchToken([\n {\n to: \"{{wallet_address}}\", // Transfer 10 tokens to a wallet\n amount: 10,\n },\n {\n to: \"{{wallet_address}}\", // Transfer 20 tokens to another wallet\n amount: 20,\n },\n ])\n }\n >\n Transfer Batch Tokens\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A Mutation object to transfer batch tokens\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useTransferBatchToken(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\n\nThe mutation function takes an array of objects containing " - }, - { - "kind": "code", - "text": "`to`" - }, - { - "kind": "text", - "text": " and " - }, - { - "kind": "code", - "text": "`amount`" - }, - { - "kind": "text", - "text": " properties.\n\n- " - }, - { - "kind": "code", - "text": "`to`" - }, - { - "kind": "text", - "text": " - The wallet address to transfer tokens to. Must be a " - }, - { - "kind": "code", - "text": "`string`" - }, - { - "kind": "text", - "text": ".\n- " - }, - { - "kind": "code", - "text": "`amount`" - }, - { - "kind": "text", - "text": " - The amount of tokens to transfer. Must be a " - }, - { - "kind": "code", - "text": "`number`" - }, - { - "kind": "text", - "text": "." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC20" - } - ] - }, - { - "tag": "@token", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 588, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L588" - } - ], - "parameters": [ - { - "id": 956, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`TokenContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1171, - "name": "TokenContract", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 957, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/core/classes/erc-20.d.ts", - "line": 234, - "character": 27 - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "target": 1163, - "name": "TokenParams", - "package": "@thirdweb-dev/react-core" - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 962, - "name": "useTransferNativeToken", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 503, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L503" - } - ], - "signatures": [ - { - "id": 963, - "name": "useTransferNativeToken", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A hook to transfer native token (of the active chain) to another wallet" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nconst Component = () => {\n const {\n mutate: transferNativeToken,\n isLoading,\n error,\n } = useTransferNativeToken();\n\n if (error) {\n console.error(\"failed to transfer tokens\", error);\n }\n\n return (\n transferNativeToken({ to: \"{{wallet_address}}\", amount: \"0.1\" })}\n >\n Transfer\n \n );\n};\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A Mutation object to transfer native tokens\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useTransferNativeToken();\n```" - }, - { - "kind": "text", - "text": "\n\n### options\nThe mutation function takes an object containing " - }, - { - "kind": "code", - "text": "`to`" - }, - { - "kind": "text", - "text": " and " - }, - { - "kind": "code", - "text": "`amount`" - }, - { - "kind": "text", - "text": " properties.\n\n- " - }, - { - "kind": "code", - "text": "`to`" - }, - { - "kind": "text", - "text": " - The wallet address to transfer tokens to. Must be a " - }, - { - "kind": "code", - "text": "`string`" - }, - { - "kind": "text", - "text": ".\n- " - }, - { - "kind": "code", - "text": "`amount`" - }, - { - "kind": "text", - "text": " - The amount of tokens to transfer. Must be a " - }, - { - "kind": "code", - "text": "`number`" - }, - { - "kind": "text", - "text": "." - } - ] - }, - { - "tag": "@token", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 503, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L503" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/core/types.ts", - "qualifiedName": "TransactionResultWithMetadata" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "TransactionResultWithMetadata", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": 1163, - "name": "TokenParams", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 842, - "name": "useTransferNFT", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 809, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L809" - } - ], - "signatures": [ - { - "id": 843, - "name": "useTransferNFT", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for transferring ERC721 or ERC1155 NFTs to another wallet address.\n\nAvailable to use on contracts that implement either the\n[ERC721](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721)\nand [ERC1155](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155)\ninterfaces, such as the [Edition](https://thirdweb.com/thirdweb.eth/TokenERC1155)\nor [NFT Collection](https://thirdweb.com/thirdweb.eth/TokenERC721).\n\nThe wallet address that initiates this transaction must have transfer permissions on the contract (i.e. the tokens are not soulbound).\nIt also must have the required amount of token(s) available to transfer." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useContract, useTransferNFT, Web3Button } from \"@thirdweb-dev/react\";\n\n// Your NFT collection contract address\nconst contractAddress = \"{{contract_address}}\";\nconst walletAddress = \"{{wallet_address}}\";\nconst tokenId = \"{{token_id}}\";\n\nfunction App() {\n // Contract must be an ERC-721 or ERC-1155 contract\n const { contract } = useContract(contractAddress);\n const {\n mutateAsync: transferNFT,\n isLoading,\n error,\n } = useTransferNFT(contract);\n\n return (\n \n transferNFT({\n to: walletAddress, // Address to transfer the token to\n tokenId: tokenId, // Token ID to transfer\n })\n }\n >\n Transfer\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Mutation object to transfer NFTs\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useTransferNFT(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\nThe mutation function takes an object with the following properties:\n\n#### to\nThe wallet address to transfer the token(s) to.\n\nTo use the connected wallet address, use the " - }, - { - "kind": "code", - "text": "`useAddress`" - }, - { - "kind": "text", - "text": " hook.\n\n\n#### tokenId\nThe token ID of the NFT to transfer.\n\nCan be a " - }, - { - "kind": "code", - "text": "`string`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`number`" - }, - { - "kind": "text", - "text": ".\n\n#### amount (ERC1155 only)\nIf you are using an ERC1155 contract, specify the amount of tokens to transfer." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC721 | ERC1155" - } - ] - }, - { - "tag": "@nft", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 809, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L809" - } - ], - "typeParameters": [ - { - "id": 844, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": 1170, - "name": "NFTContract", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 845, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`NFTContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 844, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 846, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 848, - "name": "data", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 815, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L815" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 849, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 815, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L815" - } - ], - "signatures": [ - { - "id": 850, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - }, - { - "id": 847, - "name": "receipt", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 814, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L814" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+abstract-provider@5.7.0/node_modules/@ethersproject/abstract-provider/src.ts/index.ts", - "qualifiedName": "TransactionReceipt" - }, - "name": "providers.TransactionReceipt", - "package": "@ethersproject/abstract-provider", - "qualifiedName": "TransactionReceipt" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 848, - 847 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 813, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L813" - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": 1173, - "name": "TransferNFTParams", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 950, - "name": "useTransferToken", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 436, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L436" - } - ], - "signatures": [ - { - "id": 951, - "name": "useTransferToken", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for transferring tokens on an ERC20 contract.\n\nAvailable to use on contracts that implement the [ERC20](https://portal.thirdweb.com/contracts/build/extensions/erc-20/ERC20)\ninterface, such as the [Token](https://thirdweb.com/thirdweb.eth/TokenERC20) contract.\n\nThe wallet address that initiates this transaction must have a balance of tokens\ngreater than or equal to the amount being transferred." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useContract, useTransferToken, Web3Button } from \"@thirdweb-dev/react\";\n\nconst contractAddress = \"{{contract_address}}\";\nconst toAddress = \"{{to_address}}\";\nconst amount = \"{{amount}}\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const {\n mutate: transferTokens,\n isLoading,\n error,\n } = useTransferToken(contract);\n\n return (\n \n transferTokens({\n to: toAddress, // Address to transfer to\n amount: amount, // Amount to transfer\n })\n }\n >\n Transfer\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A mutation object to transfer tokens\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useTransferToken(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\nThe mutation function takes an object as an argument with the following properties:\n\n#### to\nThe wallet address to transfer tokens to.\n\n#### amount\nThe quantity of tokens to transfer. Can be a " - }, - { - "kind": "code", - "text": "`string`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`number`" - }, - { - "kind": "text", - "text": "." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC20" - } - ] - }, - { - "tag": "@token", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/token.ts", - "line": 436, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/token.ts#L436" - } - ], - "parameters": [ - { - "id": 952, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`TokenContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1171, - "name": "TokenContract", - "package": "@thirdweb-dev/react-core" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 953, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/core/classes/erc-20.d.ts", - "line": 148, - "character": 60 - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": 1163, - "name": "TokenParams", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 497, - "name": "useUnclaimedNFTs", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 87, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L87" - } - ], - "signatures": [ - { - "id": 498, - "name": "useUnclaimedNFTs", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for fetching information about all NFTs that haven't been claimed yet from an NFT Drop contract.\n\nAvailable to use on contracts that extends the ERC721 spec" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useUnclaimedNFTs, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = useUnclaimedNFTs(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, contains an array of " - }, - { - "kind": "code", - "text": "`NFT`" - }, - { - "kind": "text", - "text": " objects." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC721LazyMintable" - } - ] - }, - { - "tag": "@nftDrop", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 87, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L87" - } - ], - "parameters": [ - { - "id": 499, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a contract that extends the ERC721 spec (NFT drop, Signature Drop, or any custom contract that extends the ERC721 spec)" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/nft-drop.ts", - "qualifiedName": "NFTDrop" - }, - "name": "NFTDrop", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 500, - "name": "queryParams", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "query params to pass to the query for the sake of pagination\nBy default, the hook returns the first 100 unclaimed NFTs from the contract.\n\nPaginate the results by providing a " - }, - { - "kind": "code", - "text": "`queryParams`" - }, - { - "kind": "text", - "text": " object as the second argument.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useUnclaimedNFTs, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const { data, isLoading, error } = useUnclaimedNFTs(\n contract,\n {\n count: 10, // Limit the number of results\n start: 0, // Start from the nth result (useful for pagination)\n },\n );\n}\n```" - } - ] - }, - "type": { - "type": "reflection", - "declaration": { - "id": 501, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/core/schema/QueryParams.d.ts", - "line": 12, - "character": 3 - } - ] - } - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/core/schema/nft.ts", - "qualifiedName": "NFTMetadata" - }, - "name": "NFTMetadata", - "package": "@thirdweb-dev/sdk" - } - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 507, - "name": "useUnclaimedNFTSupply", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 203, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L203" - } - ], - "signatures": [ - { - "id": 508, - "name": "useUnclaimedNFTSupply", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for fetching the number of unclaimed NFTs from an NFT/Edition Drop contract.\n\nUnclaimed NFTs are tokens that were lazy-minted but have not yet been claimed by a user.\n\nAvailable to use on contracts that implement the [" - }, - { - "kind": "code", - "text": "`LazyMint`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/general/LazyMint) extension;\nsuch as the [NFT Drop](https://thirdweb.com/thirdweb.eth/DropERC721) contract." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useUnclaimedNFTSupply, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"nftDrop\");\n const { data, isLoading, error } = useUnclaimedNFTSupply(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, contains a " - }, - { - "kind": "code", - "text": "`BigNumber`" - }, - { - "kind": "text", - "text": " representing the number of unclaimed NFTs." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC721LazyMintable" - } - ] - }, - { - "tag": "@nftDrop", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/drop.ts", - "line": 203, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/drop.ts#L203" - } - ], - "parameters": [ - { - "id": 509, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a contract that extends the ERC721 spec (NFT drop, Signature Drop, or any custom contract that extends the ERC721 spec)" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/nft-drop.ts", - "qualifiedName": "NFTDrop" - }, - "name": "NFTDrop", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/signature-drop.ts", - "qualifiedName": "SignatureDrop" - }, - "name": "SignatureDrop", - "package": "@thirdweb-dev/sdk" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+contracts@5.7.0/node_modules/@ethersproject/contracts/src.ts/index.ts", - "qualifiedName": "BaseContract" - }, - "name": "BaseContract", - "package": "@ethersproject/contracts" - } - ], - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - } - ] - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumber" - }, - "name": "BigNumber", - "package": "@ethersproject/bignumber" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 389, - "name": "useUpdateMetadata", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 580, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L580" - } - ], - "signatures": [ - { - "id": 390, - "name": "useUpdateMetadata", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for updating the metadata of a smart contract.\n\nAvailable to use on smart contracts that implement the " - }, - { - "kind": "code", - "text": "`ContractMetadata`" - }, - { - "kind": "text", - "text": " interface.\n\nThe wallet initiating this transaction must have the required permissions to update the metadata, (" - }, - { - "kind": "code", - "text": "`admin`" - }, - { - "kind": "text", - "text": " permissions required by default).\n\nProvide your contract instance from the " - }, - { - "kind": "code", - "text": "`useContract`" - }, - { - "kind": "text", - "text": " hook as the first argument, and\nan object fitting the [contract-level metadata standards](https://docs.opensea.io/docs/contract-level-metadata) of\nthe new metadata as the second argument, including:\n\n- " - }, - { - "kind": "code", - "text": "`name`" - }, - { - "kind": "text", - "text": ": A " - }, - { - "kind": "code", - "text": "`string`" - }, - { - "kind": "text", - "text": " for the name of the smart contract (required).\n- " - }, - { - "kind": "code", - "text": "`description`" - }, - { - "kind": "text", - "text": ": A " - }, - { - "kind": "code", - "text": "`string`" - }, - { - "kind": "text", - "text": " to describe the smart contract (optional).\n- " - }, - { - "kind": "code", - "text": "`image`" - }, - { - "kind": "text", - "text": ": A " - }, - { - "kind": "code", - "text": "`string`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`File`" - }, - { - "kind": "text", - "text": " object containing the URL or file data of an image to associate with the contract (optional).\n- " - }, - { - "kind": "code", - "text": "`external_link`" - }, - { - "kind": "text", - "text": ": A " - }, - { - "kind": "code", - "text": "`string`" - }, - { - "kind": "text", - "text": " containing a URL to view the smart contract on your website (optional)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport {\n useUpdateMetadata,\n useContract,\n Web3Button,\n} from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const {\n mutateAsync: updateMetadata,\n isLoading,\n error,\n } = useUpdateMetadata(contract);\n\n return (\n \n updateMetadata({\n name: \"My App\",\n description: \"My awesome Ethereum App\",\n image: \"/path/to/image.jpg\", // URL, URI, or File object\n external_link: \"https://myapp.com\",\n })\n }\n >\n Update Metadata\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Mutation object that to update the metadata" - } - ] - }, - { - "tag": "@metadata", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 580, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L580" - } - ], - "parameters": [ - { - "id": 391, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`SmartContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ValidContractInstance" - }, - "name": "ValidContractInstance", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - }, - { - "type": "intrinsic", - "name": "any" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 869, - "name": "useUpdateNFTMetadata", - "variant": "declaration", - "kind": 64, - "flags": { - "isPublic": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 1064, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L1064" - } - ], - "signatures": [ - { - "id": 870, - "name": "useUpdateNFTMetadata", - "variant": "signature", - "kind": 4096, - "flags": { - "isPublic": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Update nft metadata" - } - ], - "blockTags": [ - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "ERC721UpdatableMetadata | ERC1155UpdatableMetadata" - } - ] - }, - { - "tag": "@nft", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 1064, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L1064" - } - ], - "typeParameters": [ - { - "id": 871, - "name": "TContract", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": 1170, - "name": "NFTContract", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 872, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`NFTContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": 871, - "name": "TContract", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 873, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/core/classes/erc-721.d.ts", - "line": 1001, - "character": 365 - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reflection", - "declaration": { - "id": 874, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 876, - "name": "metadata", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 1073, - "character": 42, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L1073" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts", - "qualifiedName": "objectInputType" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/helpers/util.d.ts", - "qualifiedName": "objectUtil.extendShape" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 877, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/core/schema/nft.d.ts", - "line": 116, - "character": 329 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 878, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/core/schema/nft.d.ts", - "line": 139, - "character": 3 - } - ] - } - } - ], - "name": "extendShape", - "package": "zod", - "qualifiedName": "objectUtil.extendShape" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts", - "qualifiedName": "ZodUnion" - }, - "typeArguments": [ - { - "type": "tuple", - "elements": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts", - "qualifiedName": "ZodEffects" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts", - "qualifiedName": "ZodUnion" - }, - "typeArguments": [ - { - "type": "tuple", - "elements": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts", - "qualifiedName": "ZodBigInt" - }, - "name": "ZodBigInt", - "package": "zod" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts", - "qualifiedName": "ZodType" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumber" - }, - "name": "BigNumber", - "package": "@ethersproject/bignumber" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts", - "qualifiedName": "ZodTypeDef" - }, - "name": "ZodTypeDef", - "package": "zod" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumber" - }, - "name": "BigNumber", - "package": "@ethersproject/bignumber" - } - ], - "name": "ZodType", - "package": "zod" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts", - "qualifiedName": "ZodType" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+bn.js@5.1.5/node_modules/@types/bn.js/index.d.ts", - "qualifiedName": "BN" - }, - "name": "BN", - "package": "@types/bn.js" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts", - "qualifiedName": "ZodTypeDef" - }, - "name": "ZodTypeDef", - "package": "zod" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+bn.js@5.1.5/node_modules/@types/bn.js/index.d.ts", - "qualifiedName": "BN" - }, - "name": "BN", - "package": "@types/bn.js" - } - ], - "name": "ZodType", - "package": "zod" - } - ] - } - ], - "name": "ZodUnion", - "package": "zod" - }, - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "bigint" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumber" - }, - "name": "BigNumber", - "package": "@ethersproject/bignumber" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+bn.js@5.1.5/node_modules/@types/bn.js/index.d.ts", - "qualifiedName": "BN" - }, - "name": "BN", - "package": "@types/bn.js" - } - ] - } - ], - "name": "ZodEffects", - "package": "zod" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts", - "qualifiedName": "ZodUnknown" - }, - "name": "ZodUnknown", - "package": "zod" - } - ] - } - ], - "name": "ZodUnion", - "package": "zod" - }, - { - "type": "literal", - "value": "strip" - } - ], - "name": "objectInputType", - "package": "zod" - } - }, - { - "id": 875, - "name": "tokenId", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 1073, - "character": 19, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L1073" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 876, - 875 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/nft.ts", - "line": 1073, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/nft.ts#L1073" - } - ] - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 379, - "name": "useUpdatePlatformFees", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 433, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L433" - } - ], - "signatures": [ - { - "id": 380, - "name": "useUpdatePlatformFees", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for updating platform fees on a smart contract.\n\nAvailable to use on smart contracts that implement the [" - }, - { - "kind": "code", - "text": "`PlatformFee`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/general/PlatformFee) interface.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport {\n useUpdatePlatformFees,\n useContract,\n Web3Button,\n} from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const {\n mutateAsync: updatePlatformFees,\n isLoading,\n error,\n } = useUpdatePlatformFees(contract);\n\n return (\n \n updatePlatformFees({\n platform_fee_basis_points: 0,\n fee_recipient: \"{{wallet_address}}\",\n })\n }\n >\n Update Platform Fees\n \n );\n}\n```" - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A mutation object to update the platform fees settings\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useUpdatePlatformFees(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\n\nThe mutation function takes an object with below properties:\n\n#### platform_fee_basis_points\n\nThe " - }, - { - "kind": "code", - "text": "`platform_fee_basis_points`" - }, - { - "kind": "text", - "text": " property is a " - }, - { - "kind": "code", - "text": "`number`" - }, - { - "kind": "text", - "text": " between " - }, - { - "kind": "code", - "text": "`0`" - }, - { - "kind": "text", - "text": " - " - }, - { - "kind": "code", - "text": "`10000`" - }, - { - "kind": "text", - "text": " that defines the fee rate.\n\nThis number is in percentage points. i.e. " - }, - { - "kind": "code", - "text": "`100`" - }, - { - "kind": "text", - "text": " is a 1% fee and " - }, - { - "kind": "code", - "text": "`10000`" - }, - { - "kind": "text", - "text": " is a 100% fee.\n\n#### fee_recipient\n\nThe " - }, - { - "kind": "code", - "text": "`fee_recipient`" - }, - { - "kind": "text", - "text": " property is the address of the wallet that will receive the fees.\n\nUse the " - }, - { - "kind": "code", - "text": "`useAddress`" - }, - { - "kind": "text", - "text": " hook to get the current wallet address." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "PlatformFee" - } - ] - }, - { - "tag": "@platformFees", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 433, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L433" - } - ], - "parameters": [ - { - "id": 381, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`SmartContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ValidContractInstance" - }, - "name": "ValidContractInstance", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 382, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/core/classes/contract-platform-fee.d.ts", - "line": 56, - "character": 25 - } - ] - } - }, - { - "type": "literal", - "value": "data" - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reflection", - "declaration": { - "id": 383, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 385, - "name": "fee_recipient", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 442, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L442" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 384, - "name": "platform_fee_basis_points", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 441, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L441" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 385, - 384 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 440, - "character": 20, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L440" - } - ] - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 355, - "name": "useUpdatePrimarySaleRecipient", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 119, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L119" - } - ], - "signatures": [ - { - "id": 356, - "name": "useUpdatePrimarySaleRecipient", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for updating the primary sale recipient on a smart contract.\n\nAvailable to use on smart contracts that implement the [" - }, - { - "kind": "code", - "text": "`PrimarySale`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/general/PrimarySale) interface.\n\nThe wallet that initiates this transaction must have the required permissions to change the primary sale recipient (defaults to " - }, - { - "kind": "code", - "text": "`\"admin\"`" - }, - { - "kind": "text", - "text": " level)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport {\n useUpdatePrimarySaleRecipient,\n useContract,\n Web3Button,\n} from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const {\n mutateAsync: updatePrimarySaleRecipient,\n isLoading,\n error,\n } = useUpdatePrimarySaleRecipient(contract);\n\n return (\n updatePrimarySaleRecipient(\"{{wallet_address}}\")}\n >\n Update Primary Sale Recipient\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A mutation object to update the primary sales recipient\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useUpdatePrimarySaleRecipient(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\n\nThe mutation function takes a " - }, - { - "kind": "code", - "text": "`walletAddress`" - }, - { - "kind": "text", - "text": " as argument:\n\n#### walletAddress\n\nThe wallet address to set as the primary sale recipient." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "PrimarySale" - } - ] - }, - { - "tag": "@platformFees", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 119, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L119" - } - ], - "parameters": [ - { - "id": 357, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`SmartContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ValidContractInstance" - }, - "name": "ValidContractInstance", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 358, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 359, - "name": "receipt", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 123, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L123" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+abstract-provider@5.7.0/node_modules/@ethersproject/abstract-provider/src.ts/index.ts", - "qualifiedName": "TransactionReceipt" - }, - "name": "providers.TransactionReceipt", - "package": "@ethersproject/abstract-provider", - "qualifiedName": "TransactionReceipt" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 359 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 122, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L122" - } - ] - } - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 366, - "name": "useUpdateRoyaltySettings", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 277, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L277" - } - ], - "signatures": [ - { - "id": 367, - "name": "useUpdateRoyaltySettings", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for updating royalty settings on a smart contract.\n\nAvailable to use on smart contracts that implement the [" - }, - { - "kind": "code", - "text": "`Royalty`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/contracts/build/extensions/general/Royalty) interface." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport {\n useUpdateRoyaltySettings,\n useContract,\n Web3Button,\n} from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress);\n const {\n mutateAsync: updateRoyaltySettings,\n isLoading,\n error,\n } = useUpdateRoyaltySettings(contract);\n\n return (\n \n updateRoyaltySettings({\n seller_fee_basis_points: 0,\n fee_recipient: \"{{wallet_address}}\",\n })\n }\n >\n Update Royalty Settings\n \n );\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A mutation object to update the royalty settings\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst { mutateAsync, isLoading, error } = useUpdateRoyaltySettings(contract);\n```" - }, - { - "kind": "text", - "text": "\n\n### options\n\nThe mutation function takes an object with below properties:\n\n#### seller_fee_basis_points\n\nThe " - }, - { - "kind": "code", - "text": "`seller_fee_basis_points`" - }, - { - "kind": "text", - "text": " property is a " - }, - { - "kind": "code", - "text": "`number`" - }, - { - "kind": "text", - "text": " between " - }, - { - "kind": "code", - "text": "`0`" - }, - { - "kind": "text", - "text": " - " - }, - { - "kind": "code", - "text": "`10000`" - }, - { - "kind": "text", - "text": " that defines the fee rate.\n\nThis number is in percentage points. i.e. " - }, - { - "kind": "code", - "text": "`100`" - }, - { - "kind": "text", - "text": " is a 1% fee and " - }, - { - "kind": "code", - "text": "`10000`" - }, - { - "kind": "text", - "text": " is a 100% fee.\n\n#### fee_recipient\n\nThe " - }, - { - "kind": "code", - "text": "`fee_recipient`" - }, - { - "kind": "text", - "text": " property is the address of the wallet that will receive the fees." - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "Royalty" - } - ] - }, - { - "tag": "@platformFees", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 277, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L277" - } - ], - "parameters": [ - { - "id": 368, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a " - }, - { - "kind": "code", - "text": "`SmartContract`" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/index.ts", - "qualifiedName": "ValidContractInstance" - }, - "name": "ValidContractInstance", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseMutationResult" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 369, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/evm/core/classes/contract-royalty.d.ts", - "line": 75, - "character": 20 - } - ] - } - }, - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reflection", - "declaration": { - "id": 370, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 372, - "name": "fee_recipient", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 286, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L286" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 371, - "name": "seller_fee_basis_points", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 285, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L285" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 372, - 371 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts", - "line": 284, - "character": 20, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/contract-settings.ts#L284" - } - ] - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseMutationResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 1010, - "name": "useUser", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useUser.ts", - "line": 34, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useUser.ts#L34" - } - ], - "signatures": [ - { - "id": 1011, - "name": "useUser", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for retrieving information about the currently signed-in user using [auth](https://portal.thirdweb.com/wallets/auth).\n\nUseful to get the user's address and session data, or " - }, - { - "kind": "code", - "text": "`undefined`" - }, - { - "kind": "text", - "text": " if no user is signed in.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useUser } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { user, isLoggedIn, isLoading } = useUser();\n}\n```" - } - ], - "blockTags": [ - { - "tag": "@auth", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useUser.ts", - "line": 34, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useUser.ts#L34" - } - ], - "typeParameters": [ - { - "id": 1012, - "name": "TData", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../auth/src/core/schema/common.ts", - "qualifiedName": "Json" - }, - "name": "Json", - "package": "@thirdweb-dev/auth" - }, - "default": { - "type": "reference", - "target": { - "sourceFileName": "../auth/src/core/schema/common.ts", - "qualifiedName": "Json" - }, - "name": "Json", - "package": "@thirdweb-dev/auth" - } - }, - { - "id": 1013, - "name": "TContext", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../auth/src/core/schema/common.ts", - "qualifiedName": "Json" - }, - "name": "Json", - "package": "@thirdweb-dev/auth" - }, - "default": { - "type": "reference", - "target": { - "sourceFileName": "../auth/src/core/schema/common.ts", - "qualifiedName": "Json" - }, - "name": "Json", - "package": "@thirdweb-dev/auth" - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1014, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1017, - "name": "isLoading", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useUser.ts", - "line": 79, - "character": 37, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useUser.ts#L79" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 1016, - "name": "isLoggedIn", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useUser.ts", - "line": 79, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useUser.ts#L79" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "!!user" - }, - { - "id": 1015, - "name": "user", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useUser.ts", - "line": 79, - "character": 11, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useUser.ts#L79" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reference", - "target": 1023, - "typeArguments": [ - { - "type": "reference", - "target": 1012, - "name": "TData", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - }, - { - "type": "reference", - "target": 1013, - "name": "TContext", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - ], - "name": "UserWithData", - "package": "@thirdweb-dev/react-core" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1017, - 1016, - 1015 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/auth/useUser.ts", - "line": 79, - "character": 9, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/auth/useUser.ts#L79" - } - ] - } - } - } - ] - }, - { - "id": 566, - "name": "useValidDirectListings", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 758, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L758" - } - ], - "signatures": [ - { - "id": 567, - "name": "useValidDirectListings", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to get a list of valid direct listings from a [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contract.\n\nA listing is considered valid if the:\n\n- Seller still owns the NFT\n- Listing has not expired (time is before " - }, - { - "kind": "code", - "text": "`endTimeInSeconds`" - }, - { - "kind": "text", - "text": ")\n- Listing has not been canceled\n- Listing has not been bought out (all " - }, - { - "kind": "code", - "text": "`quantity`" - }, - { - "kind": "text", - "text": " of the NFTs have not been purchased)\n\n\n**Note: This hook is only for [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contracts.**\n\nFor " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contracts, use " - }, - { - "kind": "code", - "text": "`useActiveListings`" - }, - { - "kind": "text", - "text": " instead." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useValidDirectListings, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace-v3\");\n const {\n data: directListings,\n isLoading,\n error,\n } = useValidDirectListings(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, is an array of " - }, - { - "kind": "code", - "text": "`DirectListingV3`" - }, - { - "kind": "text", - "text": " objects, each containing the following properties:\n\n" - }, - { - "kind": "code", - "text": "```ts\nArray<{\n // The id of the listing.\n id: string;\n\n // The address of the creator of listing.\n creatorAddress: string;\n\n // The address of the asset being listed.\n assetContractAddress: string;\n\n // The ID of the token to list.\n tokenId: string;\n\n // The quantity of tokens to include in the listing.\n // For ERC721s, this value should always be 1 (and will be forced internally regardless of what is passed here).\n quantity: string;\n\n // The address of the currency to accept for the listing.\n currencyContractAddress: string;\n\n // The `CurrencyValue` of the listing. Useful for displaying the price information.\n currencyValuePerToken: CurrencyValue;\n\n // The price to pay per unit of NFTs listed.\n pricePerToken: string;\n\n // The asset being listed.\n asset: NFTMetadata;\n\n // The start time of the listing.\n startTimeInSeconds: number;\n\n // The end time of the listing.\n endTimeInSeconds: number;\n\n // Whether the listing is reserved to be bought from a specific set of buyers.\n isReservedListing: boolean;\n\n // Whether the listing is CREATED, COMPLETED, or CANCELLED.\n status: Status;\n}>;\n```" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "DirectListings" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 758, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L758" - } - ], - "parameters": [ - { - "id": 568, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a marketplace v3 contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplacev3.ts", - "qualifiedName": "MarketplaceV3" - }, - "name": "MarketplaceV3", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 569, - "name": "filter", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "filter to pass to the query for the sake of pagination & filtering\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useValidDirectListings, useContract } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace-v3\");\n const {\n data: directListings,\n isLoading,\n error,\n } = useValidDirectListings(\n contract,\n {\n count: 100, // Number of listings to fetch\n offeror: \"{{offeror_address}}\", // Has offers from this address\n seller: \"{{seller_address}}\", // Being sold by this address\n start: 0, // Start from this index (pagination)\n tokenContract: \"{{token_contract_address}}\", // Only show NFTs from this collection\n tokenId: \"{{token_id}}\", // Only show NFTs with this token ID\n },\n );\n}\n```" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplace/MarketPlaceFilter.ts", - "qualifiedName": "MarketplaceFilter" - }, - "name": "MarketplaceFilter", - "package": "@thirdweb-dev/sdk" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplacev3/DirectListingV3.ts", - "qualifiedName": "DirectListingV3" - }, - "name": "DirectListingV3", - "package": "@thirdweb-dev/sdk" - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 574, - "name": "useValidEnglishAuctions", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1045, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1045" - } - ], - "signatures": [ - { - "id": 575, - "name": "useValidEnglishAuctions", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to get all valid English auctions from a [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contract.\n\nA listing is considered valid if the:\n\n- Auction has not expired (i.e. current time is before the end time of the auction)\n- Auction has not been canceled\n- Auction has not been bought out (all quantity has been sold)\n\n__This hook is only for [Marketplace V3](https://thirdweb.com/thirdweb.eth/MarketplaceV3) contracts.__\n\nFor [Marketplace](https://thirdweb.com/thirdweb.eth/Marketplace)\ncontracts, use [useActiveListings](/react/react.useactivelistings) instead." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useValidEnglishAuctions, useContract } from \"@thirdweb-dev/react\";\n\n// Your smart contract address\nconst contractAddress = \"{{contract_address}}\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace-v3\");\n const {\n data: englishAuctions,\n isLoading,\n error,\n } = useValidEnglishAuctions(contract);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A Query Result object that includes an array of english auctions\nThe hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, is an\narray of " - }, - { - "kind": "code", - "text": "`EnglishAuction`" - }, - { - "kind": "text", - "text": " objects, each containing the following properties:\n\n" - }, - { - "kind": "code", - "text": "```ts\nArray<{\n // The id of the auction\n id: string;\n\n // The address of the creator of auction.\n creatorAddress: string;\n\n // The address of the asset being auctioned.\n assetContractAddress: string;\n\n // The ID of the token to auction.\n tokenId: string;\n\n // The quantity of tokens to include in the auction.\n // For ERC721s, this value should always be 1 (and will be forced internally regardless of what is passed here).\n quantity: string;\n\n // The address of the currency to accept for the auction.\n currencyContractAddress: string;\n\n // The minimum price that a bid must be in order to be accepted.\n minimumBidAmount: string;\n\n // The `CurrencyValue` of the minimum bid amount.\n // Useful for displaying the price information.\n minimumBidCurrencyValue: CurrencyValue;\n\n // The buyout price of the auction.\n buyoutBidAmount: string;\n\n // The `CurrencyValue` of the buyout price.\n // Useful for displaying the price information.\n buyoutCurrencyValue: CurrencyValue;\n\n // This is a buffer e.g. x seconds.\n // If a new winning bid is made less than x seconds before expirationTimestamp, the\n // expirationTimestamp is increased by x seconds.\n timeBufferInSeconds: number;\n\n // This is a buffer in basis points e.g. x%.\n // To be considered as a new winning bid, a bid must be at least x% greater than\n // the current winning bid.\n bidBufferBps: number;\n\n // The start time of the auction.\n startTimeInSeconds: number;\n\n // The end time of the auction.\n endTimeInSeconds: number;\n\n // The asset being auctioned.\n asset: NFTMetadata;\n\n // Whether the listing is CREATED, COMPLETED, or CANCELLED.\n status: Status;\n}>;\n```" - } - ] - }, - { - "tag": "@twfeature", - "content": [ - { - "kind": "text", - "text": "EnglishAuctions" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1045, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1045" - } - ], - "parameters": [ - { - "id": 576, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a marketplace v3 contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplacev3.ts", - "qualifiedName": "MarketplaceV3" - }, - "name": "MarketplaceV3", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 577, - "name": "filter", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The " - }, - { - "kind": "code", - "text": "`filter`" - }, - { - "kind": "text", - "text": " object allows you to filter the auctions returned by the hook.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useEnglishAuctions, useContract } from \"@thirdweb-dev/react\";\n\n// Your smart contract address\nconst contractAddress = \"{{contract_address}}\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace-v3\");\n const {\n data: englishAuctions,\n isLoading,\n error,\n } = useEnglishAuctions(\n contract,\n // highlight-start\n {\n count: 100, // Number of auctions to fetch\n offeror: \"{{offeror_address}}\", // Has offers from this address\n seller: \"{{seller_address}}\", // Being sold by this address\n start: 0, // Start from this index (pagination)\n tokenContract: \"{{token_contract_address}}\", // Only show NFTs from this collection\n tokenId: \"{{token_id}}\", // Only show NFTs with this ID\n },\n // highlight-end\n );\n}\n```" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplace/MarketPlaceFilter.ts", - "qualifiedName": "MarketplaceFilter" - }, - "name": "MarketplaceFilter", - "package": "@thirdweb-dev/sdk" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplacev3/EnglishAuction.ts", - "qualifiedName": "EnglishAuction" - }, - "name": "EnglishAuction", - "package": "@thirdweb-dev/sdk" - } - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 58, - "name": "useWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 79, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L79" - }, - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 96, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L96" - }, - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 100, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L100" - } - ], - "signatures": [ - { - "id": 59, - "name": "useWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to get the instance of the currently connected wallet." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useWallet } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const walletInstance = useWallet();\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Currently connected " - }, - { - "kind": "code", - "text": "`WalletInstance`" - }, - { - "kind": "text", - "text": " , or " - }, - { - "kind": "code", - "text": "`undefined`" - }, - { - "kind": "text", - "text": " if no wallet is connected." - } - ] - }, - { - "tag": "@walletConnection", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 79, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L79" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "target": 234, - "name": "WalletInstance", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - }, - { - "id": 60, - "name": "useWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to get the instance of the currently connected wallet if it matches the given " - }, - { - "kind": "code", - "text": "`walletId`" - }, - { - "kind": "text", - "text": "." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useWallet } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const metamaskWalletInstance = useWallet('metamask');\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Currently connected " - }, - { - "kind": "code", - "text": "`WalletInstance`" - }, - { - "kind": "text", - "text": " with given " - }, - { - "kind": "code", - "text": "`walletId`" - }, - { - "kind": "text", - "text": " , or " - }, - { - "kind": "code", - "text": "`undefined`" - }, - { - "kind": "text", - "text": " if no wallet is connected or if the connected wallet does not match the given " - }, - { - "kind": "code", - "text": "`walletId`" - }, - { - "kind": "text", - "text": "." - } - ] - }, - { - "tag": "@walletConnection", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 96, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L96" - } - ], - "typeParameters": [ - { - "id": 61, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "WalletId" - }, - "name": "WalletId", - "package": "@thirdweb-dev/react-core" - } - } - ], - "parameters": [ - { - "id": 62, - "name": "walletId", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 61, - "name": "T", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "indexedAccess", - "indexType": { - "type": "reference", - "target": 61, - "name": "T", - "package": "@thirdweb-dev/react-core", - "refersToTypeParameter": true - }, - "objectType": { - "type": "reference", - "target": 31, - "name": "WalletIdToWalletTypeMap", - "package": "@thirdweb-dev/react-core" - } - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - } - ] - }, - { - "id": 88, - "name": "useWalletConfig", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 148, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L148" - } - ], - "signatures": [ - { - "id": 89, - "name": "useWalletConfig", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to get the " - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": " object of the currently connected wallet.\n\nThis is useful to get metadata about the connected wallet, such as the wallet name, logo, etc" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useWalletConfig } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const walletConfig = useWalletConfig();\n\n const walletName = walletConfig?.meta.name;\n const walletLogo = walletConfig?.meta.iconURL;\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The current connected wallet's configuration object or " - }, - { - "kind": "code", - "text": "`undefined`" - }, - { - "kind": "text", - "text": " if no wallet is connected." - } - ] - }, - { - "tag": "@walletConnection", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/hooks/wallet-hooks.ts", - "line": 148, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/hooks/wallet-hooks.ts#L148" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reference", - "target": 144, - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - ] - } - } - ] - }, - { - "id": 107, - "name": "useWalletConnectHandler", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx", - "line": 780, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx#L780" - } - ], - "signatures": [ - { - "id": 108, - "name": "useWalletConnectHandler", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Get WalletConnect handler instance" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx", - "line": 780, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/core/providers/thirdweb-wallet-provider.tsx#L780" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/core/types/walletConnect.ts", - "qualifiedName": "WalletConnectHandler" - }, - "name": "WalletConnectHandler", - "package": "@thirdweb-dev/wallets" - } - ] - } - } - ] - }, - { - "id": 1263, - "name": "useWatchTransactions", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/useTransactions.ts", - "line": 40, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/useTransactions.ts#L40" - } - ], - "signatures": [ - { - "id": 1264, - "name": "useWatchTransactions", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook that listens to transactions on a given chain for a given address.\n\n" - }, - { - "kind": "code", - "text": "```javascript\nimport { useWatchTransactions } from \"@thirdweb-dev/react\"\n```" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```js\nconst transactions = useWatchTransactions({\n address: \"0x1234\",\n network: \"ethereum\",\n});\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "An array of " - }, - { - "kind": "code", - "text": "`Transaction`" - }, - { - "kind": "text", - "text": " objects" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/useTransactions.ts", - "line": 40, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/useTransactions.ts#L40" - } - ], - "parameters": [ - { - "id": 1265, - "name": "watchTransactionParams", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Options for watching transactions\n\n#### address\nThe address to watch transactions for\n\n#### network\nThe network to watch transactions on\n\n#### sdkOptions\nOptions to pass to the thirdweb SDK" - } - ] - }, - "type": { - "type": "reference", - "target": 1266, - "name": "UseWatchTransactionsParams", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+transactions@5.7.0/node_modules/@ethersproject/transactions/src.ts/index.ts", - "qualifiedName": "Transaction" - }, - "name": "Transaction", - "package": "@ethersproject/transactions" - } - } - } - ] - }, - { - "id": 591, - "name": "useWinningBid", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1407, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1407" - } - ], - "signatures": [ - { - "id": 592, - "name": "useWinningBid", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for getting the winning bid of an auction listing on a " - }, - { - "kind": "code", - "text": "`Marketplace`" - }, - { - "kind": "text", - "text": " contract." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```jsx\nimport { useContract, useWinningBid } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { contract } = useContract(contractAddress, \"marketplace\");\n const { data, isLoading, error } = useWinningBid(contract, listingId);\n}\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Query result object that includes the " - }, - { - "kind": "code", - "text": "`Offer`" - }, - { - "kind": "text", - "text": " that is winning the auction\nThe hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property, once loaded, is an object of type " - }, - { - "kind": "code", - "text": "`Offer`" - }, - { - "kind": "text", - "text": ", or " - }, - { - "kind": "code", - "text": "`undefined`" - }, - { - "kind": "text", - "text": " if no winning bid exists.\n\n" - }, - { - "kind": "code", - "text": "```ts\n{\n // The id of the listing.\n listingId: BigNumberish;\n\n // The address of the buyer who made the offer.\n buyerAddress: string;\n\n // The quantity of tokens to be bought.\n quantityDesired: BigNumberish;\n\n // The amount of coins offered per token.\n pricePerToken: BigNumber;\n\n // The `CurrencyValue` of the listing. Useful for displaying the price information.\n currencyValue: CurrencyValue;\n\n // The currency contract address of the offer token.\n currencyContractAddress: string;\n} | undefined;\n```" - } - ] - }, - { - "tag": "@marketplace", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react-core/src/evm/hooks/async/marketplace.ts", - "line": 1407, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react-core/src/evm/hooks/async/marketplace.ts#L1407" - } - ], - "parameters": [ - { - "id": 593, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Instance of a marketplace contract" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplace.ts", - "qualifiedName": "Marketplace" - }, - "name": "Marketplace", - "package": "@thirdweb-dev/sdk" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 594, - "name": "listingId", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The ID of the listing to get the winning bid for.\nIf the listing cannot be found, is not an auction listing, or is not active, the " - }, - { - "kind": "code", - "text": "`error`" - }, - { - "kind": "text", - "text": " property will be set." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/core/query-utils/required-param.ts", - "qualifiedName": "RequiredParam" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumberish" - }, - "name": "BigNumberish", - "package": "@ethersproject/bignumber" - } - ], - "name": "RequiredParam", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/types/marketplace/Offer.ts", - "qualifiedName": "Offer" - }, - "name": "Offer", - "package": "@thirdweb-dev/sdk" - } - ] - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - } - ], - "groups": [ - { - "title": "Interfaces", - "children": [ - 258, - 254, - 9, - 1113, - 1023 - ] - }, - { - "title": "Type Aliases", - "children": [ - 1225, - 1178, - 1194, - 1232, - 301, - 1209, - 1215, - 1242, - 109, - 162, - 1200, - 1198, - 1229, - 1216, - 1220, - 1187, - 1192, - 1182, - 1170, - 1199, - 1205, - 913, - 205, - 305, - 1167, - 1171, - 1163, - 1173, - 493, - 1266, - 1162, - 144, - 31, - 234, - 235 - ] - }, - { - "title": "Functions", - "children": [ - 1139, - 1105, - 651, - 990, - 993, - 969, - 975, - 979, - 309, - 336, - 587, - 982, - 121, - 851, - 879, - 1086, - 599, - 996, - 110, - 129, - 513, - 603, - 855, - 958, - 795, - 791, - 1269, - 1273, - 1277, - 635, - 639, - 627, - 127, - 123, - 326, - 502, - 510, - 314, - 331, - 517, - 946, - 411, - 63, - 69, - 430, - 461, - 443, - 447, - 469, - 392, - 481, - 972, - 622, - 617, - 799, - 986, - 71, - 529, - 550, - 562, - 581, - 77, - 554, - 570, - 584, - 595, - 655, - 898, - 964, - 888, - 521, - 546, - 558, - 578, - 998, - 1005, - 643, - 647, - 386, - 607, - 835, - 839, - 938, - 1071, - 804, - 830, - 809, - 659, - 823, - 105, - 373, - 352, - 984, - 347, - 537, - 905, - 988, - 883, - 360, - 1109, - 894, - 1090, - 341, - 95, - 90, - 860, - 1079, - 1065, - 1067, - 1081, - 1018, - 81, - 925, - 935, - 916, - 819, - 815, - 954, - 962, - 842, - 950, - 497, - 507, - 389, - 869, - 379, - 355, - 366, - 1010, - 566, - 574, - 58, - 88, - 107, - 1263, - 591 - ] - } - ], - "packageName": "@thirdweb-dev/react-core", - "readme": [ - { - "kind": "text", - "text": "

\n
\n\"\"/\n
\n

\n

thirdweb React Core SDK

\n

\n\"npm\n\"Build\n\"Join\n\n

\n

Proudly powering react and react-native.

\n
\n\n
\n\nYou are likely looking for [@thirdweb-dev/react](https://www.npmjs.com/package/@thirdweb-dev/react)." - } - ], - "symbolIdMap": { - "0": { - "sourceFileName": "src/index.ts", - "qualifiedName": "" - }, - "9": { - "sourceFileName": "src/core/providers/thirdweb-provider.tsx", - "qualifiedName": "ThirdwebProviderCoreProps" - }, - "10": { - "sourceFileName": "src/core/providers/thirdweb-provider.tsx", - "qualifiedName": "ThirdwebProviderCoreProps.supportedWallets" - }, - "11": { - "sourceFileName": "src/core/providers/thirdweb-provider.tsx", - "qualifiedName": "ThirdwebProviderCoreProps.dAppMeta" - }, - "12": { - "sourceFileName": "src/core/providers/thirdweb-provider.tsx", - "qualifiedName": "ThirdwebProviderCoreProps.autoConnect" - }, - "13": { - "sourceFileName": "src/core/providers/thirdweb-provider.tsx", - "qualifiedName": "ThirdwebProviderCoreProps.theme" - }, - "15": { - "sourceFileName": "src/core/providers/thirdweb-provider.tsx", - "qualifiedName": "ThirdwebProviderCoreProps.autoSwitch" - }, - "16": { - "sourceFileName": "src/core/providers/thirdweb-provider.tsx", - "qualifiedName": "ThirdwebProviderCoreProps.autoConnectTimeout" - }, - "18": { - "sourceFileName": "src/evm/providers/types.ts", - "qualifiedName": "clientId" - }, - "19": { - "sourceFileName": "src/evm/providers/types.ts", - "qualifiedName": "activeChain" - }, - "20": { - "sourceFileName": "", - "qualifiedName": "__type" - }, - "21": { - "sourceFileName": "", - "qualifiedName": "__type" - }, - "22": { - "sourceFileName": "src/core/providers/query-client.tsx", - "qualifiedName": "queryClient" - }, - "23": { - "sourceFileName": "src/evm/providers/types.ts", - "qualifiedName": "supportedChains" - }, - "24": { - "sourceFileName": "src/evm/providers/types.ts", - "qualifiedName": "sdkOptions" - }, - "25": { - "sourceFileName": "../sdk/src/evm/schema/sdk-options.ts", - "qualifiedName": "__type" - }, - "26": { - "sourceFileName": "src/evm/providers/types.ts", - "qualifiedName": "storageInterface" - }, - "27": { - "sourceFileName": "src/evm/providers/types.ts", - "qualifiedName": "authConfig" - }, - "28": { - "sourceFileName": "src/evm/providers/types.ts", - "qualifiedName": "secretKey" - }, - "29": { - "sourceFileName": "src/core/providers/thirdweb-provider.tsx", - "qualifiedName": "ThirdwebProviderCoreProps.TChains" - }, - "31": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "WalletIdToWalletTypeMap" - }, - "32": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type" - }, - "33": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.metamask" - }, - "34": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.coin98" - }, - "35": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.coinbase" - }, - "36": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.coreWallet" - }, - "37": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.rainbowWallet" - }, - "38": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.blocto" - }, - "39": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.frame" - }, - "40": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.imToken" - }, - "41": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.localWallet" - }, - "42": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.magicLink" - }, - "43": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.paper" - }, - "44": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.smartWallet" - }, - "45": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.tokenBoundSmartWallet" - }, - "46": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.safe" - }, - "47": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.trust" - }, - "48": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.embeddedWallet" - }, - "49": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.walletConnect" - }, - "50": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.phantom" - }, - "51": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.walletConnectV1" - }, - "52": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.okx" - }, - "53": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.oneKey" - }, - "54": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.cryptoDefiWallet" - }, - "55": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.rabby" - }, - "56": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.xdefi" - }, - "57": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "__type.magicEden" - }, - "58": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "useWallet" - }, - "59": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "useWallet" - }, - "60": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "useWallet" - }, - "61": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "T" - }, - "62": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "walletId" - }, - "63": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "useConnect" - }, - "64": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "useConnect" - }, - "65": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "__type" - }, - "66": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "__type" - }, - "67": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "I" - }, - "68": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "args" - }, - "69": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "useConnectionStatus" - }, - "70": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "useConnectionStatus" - }, - "71": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "useCreateWalletInstance" - }, - "72": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "useCreateWalletInstance" - }, - "73": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "__type" - }, - "74": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "__type" - }, - "75": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "I" - }, - "76": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "Wallet" - }, - "77": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "useDisconnect" - }, - "78": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "useDisconnect" - }, - "79": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "__type" - }, - "80": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "__type" - }, - "81": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "useSwitchChain" - }, - "82": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "useSwitchChain" - }, - "83": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "__type" - }, - "84": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "__type" - }, - "85": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "chain" - }, - "88": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "useWalletConfig" - }, - "89": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "useWalletConfig" - }, - "90": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "useSetConnectionStatus" - }, - "91": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "useSetConnectionStatus" - }, - "92": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "__type" - }, - "93": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "__type" - }, - "94": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "status" - }, - "95": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "useSetConnectedWallet" - }, - "96": { - "sourceFileName": "src/core/hooks/wallet-hooks.ts", - "qualifiedName": "useSetConnectedWallet" - }, - "97": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "__type" - }, - "98": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "__type" - }, - "99": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "wallet" - }, - "100": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "params" - }, - "105": { - "sourceFileName": "src/evm/hooks/usePersonalWalletAddress.ts", - "qualifiedName": "usePersonalWalletAddress" - }, - "106": { - "sourceFileName": "src/evm/hooks/usePersonalWalletAddress.ts", - "qualifiedName": "usePersonalWalletAddress" - }, - "107": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "useWalletConnectHandler" - }, - "108": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "useWalletConnectHandler" - }, - "109": { - "sourceFileName": "src/core/providers/thirdweb-wallet-provider.tsx", - "qualifiedName": "ConnectionStatus" - }, - "110": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "useBalance" - }, - "111": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "useBalance" - }, - "112": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "tokenAddress" - }, - "113": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "__type" - }, - "114": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "__type.symbol" - }, - "115": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "__type.value" - }, - "116": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "__type.name" - }, - "117": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "__type.decimals" - }, - "118": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "__type.displayValue" - }, - "121": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "useAddress" - }, - "122": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "useAddress" - }, - "123": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "useChainId" - }, - "124": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "useChainId" - }, - "127": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "useChain" - }, - "128": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "useChain" - }, - "129": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "useBalanceForAddress" - }, - "130": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "useBalanceForAddress" - }, - "131": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "walletAddress" - }, - "132": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "__type" - }, - "133": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "__type.symbol" - }, - "134": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "__type.value" - }, - "135": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "__type.name" - }, - "136": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "__type.decimals" - }, - "137": { - "sourceFileName": "src/evm/hooks/wallet.ts", - "qualifiedName": "__type.displayValue" - }, - "144": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "145": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "146": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.category" - }, - "147": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.id" - }, - "148": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.meta" - }, - "149": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.create" - }, - "150": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "151": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "152": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "options" - }, - "153": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.connectUI" - }, - "154": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.selectUI" - }, - "155": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.isInstalled" - }, - "156": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "157": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "158": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.personalWallets" - }, - "159": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.recommended" - }, - "160": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.isHeadless" - }, - "161": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "I" - }, - "162": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "ConnectUIProps" - }, - "163": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "164": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.hide" - }, - "165": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "166": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "167": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.connected" - }, - "168": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "169": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "170": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.isOpen" - }, - "171": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.show" - }, - "172": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "173": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "174": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.goBack" - }, - "175": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "176": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "177": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.theme" - }, - "178": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.walletConfig" - }, - "179": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.selectionData" - }, - "180": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.setSelectionData" - }, - "181": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "182": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "183": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "data" - }, - "184": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.supportedWallets" - }, - "185": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.modalSize" - }, - "186": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.connect" - }, - "187": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "188": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "189": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "args" - }, - "190": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.setConnectionStatus" - }, - "191": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "192": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "193": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "status" - }, - "194": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.connectionStatus" - }, - "195": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.setConnectedWallet" - }, - "196": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "197": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "198": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "walletInstance" - }, - "199": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.createWalletInstance" - }, - "200": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "201": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "202": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.connectedWallet" - }, - "203": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.connectedWalletAddress" - }, - "204": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "I" - }, - "205": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "SelectUIProps" - }, - "206": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "207": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.onSelect" - }, - "208": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "209": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "210": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "selectionData" - }, - "211": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.walletConfig" - }, - "212": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.supportedWallets" - }, - "213": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.theme" - }, - "214": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.modalSize" - }, - "215": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.connect" - }, - "216": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "217": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "218": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "args" - }, - "219": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.setConnectionStatus" - }, - "220": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "221": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "222": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "status" - }, - "223": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.connectionStatus" - }, - "224": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.setConnectedWallet" - }, - "225": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "226": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "227": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "walletInstance" - }, - "228": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.createWalletInstance" - }, - "229": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "230": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "231": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.connectedWallet" - }, - "232": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.connectedWalletAddress" - }, - "233": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "I" - }, - "234": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "WalletInstance" - }, - "235": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "WalletOptions" - }, - "236": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type" - }, - "237": { - "sourceFileName": "src/core/types/wallet.ts", - "qualifiedName": "__type.chain" - }, - "254": { - "sourceFileName": "src/evm/contexts/thirdweb-auth.tsx", - "qualifiedName": "ThirdwebAuthConfig" - }, - "255": { - "sourceFileName": "src/evm/contexts/thirdweb-auth.tsx", - "qualifiedName": "ThirdwebAuthConfig.authUrl" - }, - "256": { - "sourceFileName": "src/evm/contexts/thirdweb-auth.tsx", - "qualifiedName": "ThirdwebAuthConfig.domain" - }, - "257": { - "sourceFileName": "src/evm/contexts/thirdweb-auth.tsx", - "qualifiedName": "ThirdwebAuthConfig.secureStorage" - }, - "258": { - "sourceFileName": "src/evm/contexts/thirdweb-auth.tsx", - "qualifiedName": "ISecureStorage" - }, - "259": { - "sourceFileName": "src/evm/contexts/thirdweb-auth.tsx", - "qualifiedName": "ISecureStorage.getItem" - }, - "260": { - "sourceFileName": "src/evm/contexts/thirdweb-auth.tsx", - "qualifiedName": "ISecureStorage.getItem" - }, - "261": { - "sourceFileName": "src/evm/contexts/thirdweb-auth.tsx", - "qualifiedName": "key" - }, - "262": { - "sourceFileName": "src/evm/contexts/thirdweb-auth.tsx", - "qualifiedName": "ISecureStorage.setItem" - }, - "263": { - "sourceFileName": "src/evm/contexts/thirdweb-auth.tsx", - "qualifiedName": "ISecureStorage.setItem" - }, - "264": { - "sourceFileName": "src/evm/contexts/thirdweb-auth.tsx", - "qualifiedName": "key" - }, - "265": { - "sourceFileName": "src/evm/contexts/thirdweb-auth.tsx", - "qualifiedName": "value" - }, - "266": { - "sourceFileName": "src/evm/contexts/thirdweb-auth.tsx", - "qualifiedName": "ISecureStorage.removeItem" - }, - "267": { - "sourceFileName": "src/evm/contexts/thirdweb-auth.tsx", - "qualifiedName": "ISecureStorage.removeItem" - }, - "268": { - "sourceFileName": "src/evm/contexts/thirdweb-auth.tsx", - "qualifiedName": "key" - }, - "301": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "ClaimIneligibilityParams" - }, - "302": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "__type" - }, - "303": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "__type.walletAddress" - }, - "304": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "__type.quantity" - }, - "305": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "SetClaimConditionsParams" - }, - "306": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "__type" - }, - "307": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "__type.phases" - }, - "308": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "__type.reset" - }, - "309": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "useActiveClaimCondition" - }, - "310": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "useActiveClaimCondition" - }, - "311": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "contract" - }, - "312": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "tokenId" - }, - "313": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "options" - }, - "314": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "useClaimerProofs" - }, - "315": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "useClaimerProofs" - }, - "316": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "contract" - }, - "317": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "claimerAddress" - }, - "318": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "tokenId" - }, - "319": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "claimConditionId" - }, - "320": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "__type" - }, - "321": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "__type.address" - }, - "322": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "__type.proof" - }, - "323": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "__type.maxClaimable" - }, - "324": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "__type.price" - }, - "325": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "__type.currencyAddress" - }, - "326": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "useClaimConditions" - }, - "327": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "useClaimConditions" - }, - "328": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "contract" - }, - "329": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "tokenId" - }, - "330": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "options" - }, - "331": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "useClaimIneligibilityReasons" - }, - "332": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "useClaimIneligibilityReasons" - }, - "333": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "contract" - }, - "334": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "params" - }, - "335": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "tokenId" - }, - "336": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "useActiveClaimConditionForWallet" - }, - "337": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "useActiveClaimConditionForWallet" - }, - "338": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "contract" - }, - "339": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "walletAddress" - }, - "340": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "tokenId" - }, - "341": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "useSetClaimConditions" - }, - "342": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "useSetClaimConditions" - }, - "343": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "contract" - }, - "344": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "tokenId" - }, - "345": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "__type" - }, - "346": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "__type.receipt" - }, - "347": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "useResetClaimConditions" - }, - "348": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "useResetClaimConditions" - }, - "349": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "contract" - }, - "350": { - "sourceFileName": "src/evm/hooks/async/claim-conditions.ts", - "qualifiedName": "tokenId" - }, - "351": { - "sourceFileName": "../sdk/src/evm/core/classes/drop-erc1155-claim-conditions.ts", - "qualifiedName": "__type" - }, - "352": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "usePrimarySaleRecipient" - }, - "353": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "usePrimarySaleRecipient" - }, - "354": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "contract" - }, - "355": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "useUpdatePrimarySaleRecipient" - }, - "356": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "useUpdatePrimarySaleRecipient" - }, - "357": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "contract" - }, - "358": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "__type" - }, - "359": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "__type.receipt" - }, - "360": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "useRoyaltySettings" - }, - "361": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "useRoyaltySettings" - }, - "362": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "contract" - }, - "363": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "__type" - }, - "364": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "__type.seller_fee_basis_points" - }, - "365": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "__type.fee_recipient" - }, - "366": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "useUpdateRoyaltySettings" - }, - "367": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "useUpdateRoyaltySettings" - }, - "368": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "contract" - }, - "369": { - "sourceFileName": "../sdk/src/evm/core/classes/contract-royalty.ts", - "qualifiedName": "__type" - }, - "370": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "__type" - }, - "371": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "__type.seller_fee_basis_points" - }, - "372": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "__type.fee_recipient" - }, - "373": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "usePlatformFees" - }, - "374": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "usePlatformFees" - }, - "375": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "contract" - }, - "376": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "__type" - }, - "377": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "__type.platform_fee_basis_points" - }, - "378": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "__type.platform_fee_recipient" - }, - "379": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "useUpdatePlatformFees" - }, - "380": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "useUpdatePlatformFees" - }, - "381": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "contract" - }, - "382": { - "sourceFileName": "../sdk/src/evm/core/classes/contract-platform-fee.ts", - "qualifiedName": "__type" - }, - "383": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "__type" - }, - "384": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "__type.platform_fee_basis_points" - }, - "385": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "__type.fee_recipient" - }, - "386": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "useMetadata" - }, - "387": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "useMetadata" - }, - "388": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "contract" - }, - "389": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "useUpdateMetadata" - }, - "390": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "useUpdateMetadata" - }, - "391": { - "sourceFileName": "src/evm/hooks/async/contract-settings.ts", - "qualifiedName": "contract" - }, - "392": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "useContractType" - }, - "393": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "useContractType" - }, - "394": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "contractAddress" - }, - "411": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "useCompilerMetadata" - }, - "412": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "useCompilerMetadata" - }, - "413": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "contractAddress" - }, - "430": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "useContract" - }, - "431": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "useContract" - }, - "432": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "contractAddress" - }, - "433": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "useContract" - }, - "434": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "TContractType" - }, - "435": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "contractAddress" - }, - "436": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "_contractType" - }, - "437": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "useContract" - }, - "438": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "contractAddress" - }, - "439": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "_abi" - }, - "440": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "useContract" - }, - "441": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "TContractAddress" - }, - "442": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "contractAddress" - }, - "443": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "useContractMetadata" - }, - "444": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "useContractMetadata" - }, - "445": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "TContract" - }, - "446": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "contract" - }, - "447": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "useContractMetadataUpdate" - }, - "448": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "useContractMetadataUpdate" - }, - "449": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "contract" - }, - "450": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "__type" - }, - "451": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "__type.receipt" - }, - "452": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "__type.data" - }, - "453": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "__type" - }, - "454": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "__type" - }, - "455": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "__type" - }, - "456": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "__type.name" - }, - "457": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "__type.description" - }, - "458": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "__type.image" - }, - "459": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "__type.external_link" - }, - "460": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "__type.app_uri" - }, - "461": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "useContractEvents" - }, - "462": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "useContractEvents" - }, - "463": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "contract" - }, - "464": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "eventName" - }, - "465": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "options" - }, - "466": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "__type" - }, - "467": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "__type.queryFilter" - }, - "468": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "__type.subscribe" - }, - "469": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "useContractRead" - }, - "470": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "useContractRead" - }, - "471": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "TContractAddress" - }, - "472": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "TContract" - }, - "473": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "TContractInstance" - }, - "474": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "TFunctionName" - }, - "475": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "TArgs" - }, - "476": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "TReturnType" - }, - "477": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "contract" - }, - "478": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "functionName" - }, - "479": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "args" - }, - "480": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "overrides" - }, - "481": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "useContractWrite" - }, - "482": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "useContractWrite" - }, - "483": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "TContractAddress" - }, - "484": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "TContract" - }, - "485": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "TContractInstance" - }, - "486": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "TFunctionName" - }, - "487": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "TArgs" - }, - "488": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "contract" - }, - "489": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "functionName" - }, - "490": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "__type" - }, - "491": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "__type.args" - }, - "492": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "__type.overrides" - }, - "493": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "UseContractResult" - }, - "494": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "__type" - }, - "495": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "__type.contract" - }, - "496": { - "sourceFileName": "src/evm/hooks/async/contracts.ts", - "qualifiedName": "TContract" - }, - "497": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "useUnclaimedNFTs" - }, - "498": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "useUnclaimedNFTs" - }, - "499": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "contract" - }, - "500": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "queryParams" - }, - "501": { - "sourceFileName": "../sdk/src/core/schema/QueryParams.ts", - "qualifiedName": "__type" - }, - "502": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "useClaimedNFTs" - }, - "503": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "useClaimedNFTs" - }, - "504": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "contract" - }, - "505": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "queryParams" - }, - "506": { - "sourceFileName": "../sdk/src/core/schema/QueryParams.ts", - "qualifiedName": "__type" - }, - "507": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "useUnclaimedNFTSupply" - }, - "508": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "useUnclaimedNFTSupply" - }, - "509": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "contract" - }, - "510": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "useClaimedNFTSupply" - }, - "511": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "useClaimedNFTSupply" - }, - "512": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "contract" - }, - "513": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "useBatchesToReveal" - }, - "514": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "useBatchesToReveal" - }, - "515": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "TContract" - }, - "516": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "contract" - }, - "517": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "useClaimNFT" - }, - "518": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "useClaimNFT" - }, - "519": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "TContract" - }, - "520": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "contract" - }, - "521": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "useLazyMint" - }, - "522": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "useLazyMint" - }, - "523": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "TContract" - }, - "524": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "contract" - }, - "525": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "onProgress" - }, - "526": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "__type" - }, - "527": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "__type" - }, - "528": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "progress" - }, - "529": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "useDelayedRevealLazyMint" - }, - "530": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "useDelayedRevealLazyMint" - }, - "531": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "TContract" - }, - "532": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "contract" - }, - "533": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "onProgress" - }, - "534": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "__type" - }, - "535": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "__type" - }, - "536": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "progress" - }, - "537": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "useRevealLazyMint" - }, - "538": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "useRevealLazyMint" - }, - "539": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "TContract" - }, - "540": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "contract" - }, - "541": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "__type" - }, - "542": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "__type.receipt" - }, - "543": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "__type.data" - }, - "544": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "__type" - }, - "545": { - "sourceFileName": "src/evm/hooks/async/drop.ts", - "qualifiedName": "__type" - }, - "546": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useListing" - }, - "547": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useListing" - }, - "548": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "549": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "listingId" - }, - "550": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useDirectListing" - }, - "551": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useDirectListing" - }, - "552": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "553": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "listingId" - }, - "554": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useEnglishAuction" - }, - "555": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useEnglishAuction" - }, - "556": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "557": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "auctionId" - }, - "558": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useListings" - }, - "559": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useListings" - }, - "560": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "561": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "filter" - }, - "562": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useDirectListings" - }, - "563": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useDirectListings" - }, - "564": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "565": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "filter" - }, - "566": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useValidDirectListings" - }, - "567": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useValidDirectListings" - }, - "568": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "569": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "filter" - }, - "570": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useEnglishAuctions" - }, - "571": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useEnglishAuctions" - }, - "572": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "573": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "filter" - }, - "574": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useValidEnglishAuctions" - }, - "575": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useValidEnglishAuctions" - }, - "576": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "577": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "filter" - }, - "578": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useListingsCount" - }, - "579": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useListingsCount" - }, - "580": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "581": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useDirectListingsCount" - }, - "582": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useDirectListingsCount" - }, - "583": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "584": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useEnglishAuctionsCount" - }, - "585": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useEnglishAuctionsCount" - }, - "586": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "587": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useActiveListings" - }, - "588": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useActiveListings" - }, - "589": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "590": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "filter" - }, - "591": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useWinningBid" - }, - "592": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useWinningBid" - }, - "593": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "594": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "listingId" - }, - "595": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useEnglishAuctionWinningBid" - }, - "596": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useEnglishAuctionWinningBid" - }, - "597": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "598": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "auctionId" - }, - "599": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useAuctionWinner" - }, - "600": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useAuctionWinner" - }, - "601": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "602": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "listingId" - }, - "603": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useBidBuffer" - }, - "604": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useBidBuffer" - }, - "605": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "606": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "listingId" - }, - "607": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useMinimumNextBid" - }, - "608": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useMinimumNextBid" - }, - "609": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "610": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "listingId" - }, - "611": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "__type" - }, - "612": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "__type.symbol" - }, - "613": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "__type.value" - }, - "614": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "__type.name" - }, - "615": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "__type.decimals" - }, - "616": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "__type.displayValue" - }, - "617": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useCreateDirectListing" - }, - "618": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useCreateDirectListing" - }, - "619": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "TMarketplace" - }, - "620": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "621": { - "sourceFileName": "../sdk/src/evm/schema/marketplacev3/direct-listings.ts", - "qualifiedName": "__type" - }, - "622": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useCreateAuctionListing" - }, - "623": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useCreateAuctionListing" - }, - "624": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "TMarketplace" - }, - "625": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "626": { - "sourceFileName": "../sdk/src/evm/schema/marketplacev3/english-auctions.ts", - "qualifiedName": "__type" - }, - "627": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useCancelListing" - }, - "628": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useCancelListing" - }, - "629": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "630": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "__type" - }, - "631": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "__type.receipt" - }, - "632": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "__type.data" - }, - "633": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "__type" - }, - "634": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "__type" - }, - "635": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useCancelDirectListing" - }, - "636": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useCancelDirectListing" - }, - "637": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "638": { - "sourceFileName": "../sdk/src/evm/core/classes/marketplacev3-direct-listings.ts", - "qualifiedName": "__type" - }, - "639": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useCancelEnglishAuction" - }, - "640": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useCancelEnglishAuction" - }, - "641": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "642": { - "sourceFileName": "../sdk/src/evm/core/classes/marketplacev3-english-auction.ts", - "qualifiedName": "__type" - }, - "643": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useMakeBid" - }, - "644": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useMakeBid" - }, - "645": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "646": { - "sourceFileName": "../sdk/src/evm/core/classes/internal/marketplace/marketplace-auction.ts", - "qualifiedName": "__type" - }, - "647": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useMakeOffer" - }, - "648": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useMakeOffer" - }, - "649": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "650": { - "sourceFileName": "../sdk/src/evm/contracts/prebuilt-implementations/marketplace.ts", - "qualifiedName": "__type" - }, - "651": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useAcceptDirectListingOffer" - }, - "652": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useAcceptDirectListingOffer" - }, - "653": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "654": { - "sourceFileName": "../sdk/src/evm/core/classes/internal/marketplace/marketplace-direct.ts", - "qualifiedName": "__type" - }, - "655": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useExecuteAuctionSale" - }, - "656": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useExecuteAuctionSale" - }, - "657": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "658": { - "sourceFileName": "../sdk/src/evm/core/classes/internal/marketplace/marketplace-auction.ts", - "qualifiedName": "__type" - }, - "659": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useOffers" - }, - "660": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useOffers" - }, - "661": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "662": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "listingId" - }, - "663": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "__object" - }, - "664": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "__object.data" - }, - "665": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverRefetchErrorResult.error" - }, - "666": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverRefetchErrorResult.isError" - }, - "667": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverRefetchErrorResult.isLoading" - }, - "668": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverRefetchErrorResult.isLoadingError" - }, - "669": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverRefetchErrorResult.isRefetchError" - }, - "670": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverRefetchErrorResult.isSuccess" - }, - "671": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverRefetchErrorResult.status" - }, - "672": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.dataUpdatedAt" - }, - "673": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.errorUpdatedAt" - }, - "674": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.failureCount" - }, - "675": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.failureReason" - }, - "676": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.errorUpdateCount" - }, - "677": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isFetched" - }, - "678": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isFetchedAfterMount" - }, - "679": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isFetching" - }, - "680": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isInitialLoading" - }, - "681": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isPaused" - }, - "682": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isPlaceholderData" - }, - "683": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isPreviousData" - }, - "684": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isRefetching" - }, - "685": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isStale" - }, - "686": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.refetch" - }, - "687": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "__type" - }, - "688": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "__type" - }, - "689": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "TPageData" - }, - "690": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "options" - }, - "691": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.remove" - }, - "692": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "__type" - }, - "693": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "__type" - }, - "694": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.fetchStatus" - }, - "695": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "__object" - }, - "696": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "__object.data" - }, - "697": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverSuccessResult.error" - }, - "698": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverSuccessResult.isError" - }, - "699": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverSuccessResult.isLoading" - }, - "700": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverSuccessResult.isLoadingError" - }, - "701": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverSuccessResult.isRefetchError" - }, - "702": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverSuccessResult.isSuccess" - }, - "703": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverSuccessResult.status" - }, - "704": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.dataUpdatedAt" - }, - "705": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.errorUpdatedAt" - }, - "706": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.failureCount" - }, - "707": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.failureReason" - }, - "708": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.errorUpdateCount" - }, - "709": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isFetched" - }, - "710": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isFetchedAfterMount" - }, - "711": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isFetching" - }, - "712": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isInitialLoading" - }, - "713": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isPaused" - }, - "714": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isPlaceholderData" - }, - "715": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isPreviousData" - }, - "716": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isRefetching" - }, - "717": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isStale" - }, - "718": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.refetch" - }, - "719": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "__type" - }, - "720": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "__type" - }, - "721": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "TPageData" - }, - "722": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "options" - }, - "723": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.remove" - }, - "724": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "__type" - }, - "725": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "__type" - }, - "726": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.fetchStatus" - }, - "727": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "__object" - }, - "728": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "__object.data" - }, - "729": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverLoadingErrorResult.error" - }, - "730": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverLoadingErrorResult.isError" - }, - "731": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverLoadingErrorResult.isLoading" - }, - "732": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverLoadingErrorResult.isLoadingError" - }, - "733": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverLoadingErrorResult.isRefetchError" - }, - "734": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverLoadingErrorResult.isSuccess" - }, - "735": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverLoadingErrorResult.status" - }, - "736": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.dataUpdatedAt" - }, - "737": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.errorUpdatedAt" - }, - "738": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.failureCount" - }, - "739": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.failureReason" - }, - "740": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.errorUpdateCount" - }, - "741": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isFetched" - }, - "742": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isFetchedAfterMount" - }, - "743": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isFetching" - }, - "744": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isInitialLoading" - }, - "745": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isPaused" - }, - "746": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isPlaceholderData" - }, - "747": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isPreviousData" - }, - "748": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isRefetching" - }, - "749": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isStale" - }, - "750": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.refetch" - }, - "751": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "__type" - }, - "752": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "__type" - }, - "753": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "TPageData" - }, - "754": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "options" - }, - "755": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.remove" - }, - "756": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "__type" - }, - "757": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "__type" - }, - "758": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.fetchStatus" - }, - "759": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "__object" - }, - "760": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "__object.data" - }, - "761": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverLoadingResult.error" - }, - "762": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverLoadingResult.isError" - }, - "763": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverLoadingResult.isLoading" - }, - "764": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverLoadingResult.isLoadingError" - }, - "765": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverLoadingResult.isRefetchError" - }, - "766": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverLoadingResult.isSuccess" - }, - "767": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverLoadingResult.status" - }, - "768": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.dataUpdatedAt" - }, - "769": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.errorUpdatedAt" - }, - "770": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.failureCount" - }, - "771": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.failureReason" - }, - "772": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.errorUpdateCount" - }, - "773": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isFetched" - }, - "774": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isFetchedAfterMount" - }, - "775": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isFetching" - }, - "776": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isInitialLoading" - }, - "777": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isPaused" - }, - "778": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isPlaceholderData" - }, - "779": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isPreviousData" - }, - "780": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isRefetching" - }, - "781": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.isStale" - }, - "782": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.refetch" - }, - "783": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "__type" - }, - "784": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "__type" - }, - "785": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "TPageData" - }, - "786": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "options" - }, - "787": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.remove" - }, - "788": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "__type" - }, - "789": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "__type" - }, - "790": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+query-core@4.36.1/node_modules/@tanstack/query-core/src/types.ts", - "qualifiedName": "QueryObserverBaseResult.fetchStatus" - }, - "791": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useBuyNow" - }, - "792": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useBuyNow" - }, - "793": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "794": { - "sourceFileName": "../sdk/src/evm/core/classes/internal/marketplace/marketplace-direct.ts", - "qualifiedName": "__type" - }, - "795": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useBuyDirectListing" - }, - "796": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useBuyDirectListing" - }, - "797": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "798": { - "sourceFileName": "../sdk/src/evm/core/classes/marketplacev3-direct-listings.ts", - "qualifiedName": "__type" - }, - "799": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useCreateDirectListingBatch" - }, - "800": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "useCreateDirectListingBatch" - }, - "801": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "TMarketplaceV3" - }, - "802": { - "sourceFileName": "src/evm/hooks/async/marketplace.ts", - "qualifiedName": "contract" - }, - "803": { - "sourceFileName": "../sdk/src/evm/schema/marketplacev3/direct-listings.ts", - "qualifiedName": "__type" - }, - "804": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useNFT" - }, - "805": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useNFT" - }, - "806": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "TContract" - }, - "807": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "contract" - }, - "808": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "tokenId" - }, - "809": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useNFTs" - }, - "810": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useNFTs" - }, - "811": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "TContract" - }, - "812": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "contract" - }, - "813": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "queryParams" - }, - "814": { - "sourceFileName": "../sdk/src/core/schema/QueryParams.ts", - "qualifiedName": "__type" - }, - "815": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useTotalCount" - }, - "816": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useTotalCount" - }, - "817": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "TContract" - }, - "818": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "contract" - }, - "819": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useTotalCirculatingSupply" - }, - "820": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useTotalCirculatingSupply" - }, - "821": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "contract" - }, - "822": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "tokenId" - }, - "823": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useOwnedNFTs" - }, - "824": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useOwnedNFTs" - }, - "825": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "TContract" - }, - "826": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "contract" - }, - "827": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "ownerWalletAddress" - }, - "828": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "queryParams" - }, - "829": { - "sourceFileName": "../sdk/src/core/schema/QueryParams.ts", - "qualifiedName": "__type" - }, - "830": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useNFTBalance" - }, - "831": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useNFTBalance" - }, - "832": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "contract" - }, - "833": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "ownerWalletAddress" - }, - "834": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "tokenId" - }, - "835": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useMintNFT" - }, - "836": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useMintNFT" - }, - "837": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "TContract" - }, - "838": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "contract" - }, - "839": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useMintNFTSupply" - }, - "840": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useMintNFTSupply" - }, - "841": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "contract" - }, - "842": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useTransferNFT" - }, - "843": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useTransferNFT" - }, - "844": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "TContract" - }, - "845": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "contract" - }, - "846": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "__type" - }, - "847": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "__type.receipt" - }, - "848": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "__type.data" - }, - "849": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "__type" - }, - "850": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "__type" - }, - "851": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useAirdropNFT" - }, - "852": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useAirdropNFT" - }, - "853": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "contract" - }, - "854": { - "sourceFileName": "../sdk/src/evm/core/classes/erc-1155.ts", - "qualifiedName": "__type" - }, - "855": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useBurnNFT" - }, - "856": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useBurnNFT" - }, - "857": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "TContract" - }, - "858": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "contract" - }, - "859": { - "sourceFileName": "../sdk/src/evm/core/classes/erc-1155.ts", - "qualifiedName": "__type" - }, - "860": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useSharedMetadata" - }, - "861": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useSharedMetadata" - }, - "862": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "contract" - }, - "869": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useUpdateNFTMetadata" - }, - "870": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "useUpdateNFTMetadata" - }, - "871": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "TContract" - }, - "872": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "contract" - }, - "873": { - "sourceFileName": "../sdk/src/evm/core/classes/erc-721.ts", - "qualifiedName": "__type" - }, - "874": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "__type" - }, - "875": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "__type.tokenId" - }, - "876": { - "sourceFileName": "src/evm/hooks/async/nft.ts", - "qualifiedName": "__type.metadata" - }, - "877": { - "sourceFileName": "../sdk/src/core/schema/nft.ts", - "qualifiedName": "__type" - }, - "878": { - "sourceFileName": "../sdk/src/core/schema/nft.ts", - "qualifiedName": "__type" - }, - "879": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "useAllRoleMembers" - }, - "880": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "useAllRoleMembers" - }, - "881": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "TContract" - }, - "882": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "contract" - }, - "883": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "useRoleMembers" - }, - "884": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "useRoleMembers" - }, - "885": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "TContract" - }, - "886": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "contract" - }, - "887": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "role" - }, - "888": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "useIsAddressRole" - }, - "889": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "useIsAddressRole" - }, - "890": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "TContract" - }, - "891": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "contract" - }, - "892": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "role" - }, - "893": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "walletAddress" - }, - "894": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "useSetAllRoleMembers" - }, - "895": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "useSetAllRoleMembers" - }, - "896": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "TContract" - }, - "897": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "contract" - }, - "898": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "useGrantRole" - }, - "899": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "useGrantRole" - }, - "900": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "TContract" - }, - "901": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "contract" - }, - "902": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "__type" - }, - "903": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "__type.role" - }, - "904": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "__type.address" - }, - "905": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "useRevokeRole" - }, - "906": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "useRevokeRole" - }, - "907": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "TContract" - }, - "908": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "contract" - }, - "909": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "__type" - }, - "910": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "__type.role" - }, - "911": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "__type.address" - }, - "913": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "RolesForContract" - }, - "914": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "__type" - }, - "915": { - "sourceFileName": "src/evm/hooks/async/roles.ts", - "qualifiedName": "TContract" - }, - "916": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "useTokenSupply" - }, - "917": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "useTokenSupply" - }, - "918": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "contract" - }, - "919": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "__type" - }, - "920": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "__type.symbol" - }, - "921": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "__type.value" - }, - "922": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "__type.name" - }, - "923": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "__type.decimals" - }, - "924": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "__type.displayValue" - }, - "925": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "useTokenBalance" - }, - "926": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "useTokenBalance" - }, - "927": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "contract" - }, - "928": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "walletAddress" - }, - "929": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "__type" - }, - "930": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "__type.symbol" - }, - "931": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "__type.value" - }, - "932": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "__type.name" - }, - "933": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "__type.decimals" - }, - "934": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "__type.displayValue" - }, - "935": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "useTokenDecimals" - }, - "936": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "useTokenDecimals" - }, - "937": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "contract" - }, - "938": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "useMintToken" - }, - "939": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "useMintToken" - }, - "940": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "contract" - }, - "941": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "__type" - }, - "942": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "__type.receipt" - }, - "943": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "__type.data" - }, - "944": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "__type" - }, - "945": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "__type" - }, - "946": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "useClaimToken" - }, - "947": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "useClaimToken" - }, - "948": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "contract" - }, - "949": { - "sourceFileName": "../sdk/src/evm/core/classes/erc-20.ts", - "qualifiedName": "__type" - }, - "950": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "useTransferToken" - }, - "951": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "useTransferToken" - }, - "952": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "contract" - }, - "953": { - "sourceFileName": "../sdk/src/evm/core/classes/erc-20.ts", - "qualifiedName": "__type" - }, - "954": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "useTransferBatchToken" - }, - "955": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "useTransferBatchToken" - }, - "956": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "contract" - }, - "957": { - "sourceFileName": "../sdk/src/evm/core/classes/erc-20.ts", - "qualifiedName": "__type" - }, - "958": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "useBurnToken" - }, - "959": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "useBurnToken" - }, - "960": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "contract" - }, - "961": { - "sourceFileName": "../sdk/src/evm/core/classes/erc-20.ts", - "qualifiedName": "__type" - }, - "962": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "useTransferNativeToken" - }, - "963": { - "sourceFileName": "src/evm/hooks/async/token.ts", - "qualifiedName": "useTransferNativeToken" - }, - "964": { - "sourceFileName": "src/evm/hooks/async/account-factory.ts", - "qualifiedName": "useIsAccountDeployed" - }, - "965": { - "sourceFileName": "src/evm/hooks/async/account-factory.ts", - "qualifiedName": "useIsAccountDeployed" - }, - "966": { - "sourceFileName": "src/evm/hooks/async/account-factory.ts", - "qualifiedName": "contract" - }, - "967": { - "sourceFileName": "src/evm/hooks/async/account-factory.ts", - "qualifiedName": "admin" - }, - "968": { - "sourceFileName": "src/evm/hooks/async/account-factory.ts", - "qualifiedName": "extraData" - }, - "969": { - "sourceFileName": "src/evm/hooks/async/account-factory.ts", - "qualifiedName": "useAccounts" - }, - "970": { - "sourceFileName": "src/evm/hooks/async/account-factory.ts", - "qualifiedName": "useAccounts" - }, - "971": { - "sourceFileName": "src/evm/hooks/async/account-factory.ts", - "qualifiedName": "contract" - }, - "972": { - "sourceFileName": "src/evm/hooks/async/account-factory.ts", - "qualifiedName": "useCreateAccount" - }, - "973": { - "sourceFileName": "src/evm/hooks/async/account-factory.ts", - "qualifiedName": "useCreateAccount" - }, - "974": { - "sourceFileName": "src/evm/hooks/async/account-factory.ts", - "qualifiedName": "contract" - }, - "975": { - "sourceFileName": "src/evm/hooks/async/account-factory.ts", - "qualifiedName": "useAccountsForAddress" - }, - "976": { - "sourceFileName": "src/evm/hooks/async/account-factory.ts", - "qualifiedName": "useAccountsForAddress" - }, - "977": { - "sourceFileName": "src/evm/hooks/async/account-factory.ts", - "qualifiedName": "contract" - }, - "978": { - "sourceFileName": "src/evm/hooks/async/account-factory.ts", - "qualifiedName": "address" - }, - "979": { - "sourceFileName": "src/evm/hooks/async/account.ts", - "qualifiedName": "useAccountSigners" - }, - "980": { - "sourceFileName": "src/evm/hooks/async/account.ts", - "qualifiedName": "useAccountSigners" - }, - "981": { - "sourceFileName": "src/evm/hooks/async/account.ts", - "qualifiedName": "contract" - }, - "982": { - "sourceFileName": "src/evm/hooks/async/account.ts", - "qualifiedName": "useAddAdmin" - }, - "983": { - "sourceFileName": "src/evm/hooks/async/account.ts", - "qualifiedName": "useAddAdmin" - }, - "984": { - "sourceFileName": "src/evm/hooks/async/account.ts", - "qualifiedName": "useRemoveAdmin" - }, - "985": { - "sourceFileName": "src/evm/hooks/async/account.ts", - "qualifiedName": "useRemoveAdmin" - }, - "986": { - "sourceFileName": "src/evm/hooks/async/account.ts", - "qualifiedName": "useCreateSessionKey" - }, - "987": { - "sourceFileName": "src/evm/hooks/async/account.ts", - "qualifiedName": "useCreateSessionKey" - }, - "988": { - "sourceFileName": "src/evm/hooks/async/account.ts", - "qualifiedName": "useRevokeSessionKey" - }, - "989": { - "sourceFileName": "src/evm/hooks/async/account.ts", - "qualifiedName": "useRevokeSessionKey" - }, - "990": { - "sourceFileName": "src/evm/hooks/async/account.ts", - "qualifiedName": "useAccountAdmins" - }, - "991": { - "sourceFileName": "src/evm/hooks/async/account.ts", - "qualifiedName": "useAccountAdmins" - }, - "992": { - "sourceFileName": "src/evm/hooks/async/account.ts", - "qualifiedName": "contract" - }, - "993": { - "sourceFileName": "src/evm/hooks/async/account.ts", - "qualifiedName": "useAccountAdminsAndSigners" - }, - "994": { - "sourceFileName": "src/evm/hooks/async/account.ts", - "qualifiedName": "useAccountAdminsAndSigners" - }, - "995": { - "sourceFileName": "src/evm/hooks/async/account.ts", - "qualifiedName": "contract" - }, - "996": { - "sourceFileName": "src/evm/hooks/auth/useAuth.ts", - "qualifiedName": "useAuth" - }, - "997": { - "sourceFileName": "src/evm/hooks/auth/useAuth.ts", - "qualifiedName": "useAuth" - }, - "998": { - "sourceFileName": "src/evm/hooks/auth/useLogin.ts", - "qualifiedName": "useLogin" - }, - "999": { - "sourceFileName": "src/evm/hooks/auth/useLogin.ts", - "qualifiedName": "useLogin" - }, - "1000": { - "sourceFileName": "src/evm/hooks/auth/useLogin.ts", - "qualifiedName": "__object" - }, - "1001": { - "sourceFileName": "src/evm/hooks/auth/useLogin.ts", - "qualifiedName": "__object.login" - }, - "1002": { - "sourceFileName": "src/evm/hooks/auth/useLogin.ts", - "qualifiedName": "__function" - }, - "1003": { - "sourceFileName": "src/evm/hooks/auth/useLogin.ts", - "qualifiedName": "__function" - }, - "1004": { - "sourceFileName": "src/evm/hooks/auth/useLogin.ts", - "qualifiedName": "__object.isLoading" - }, - "1005": { - "sourceFileName": "src/evm/hooks/auth/useLogout.ts", - "qualifiedName": "useLogout" - }, - "1006": { - "sourceFileName": "src/evm/hooks/auth/useLogout.ts", - "qualifiedName": "useLogout" - }, - "1007": { - "sourceFileName": "src/evm/hooks/auth/useLogout.ts", - "qualifiedName": "__object" - }, - "1008": { - "sourceFileName": "src/evm/hooks/auth/useLogout.ts", - "qualifiedName": "__object.logout" - }, - "1009": { - "sourceFileName": "src/evm/hooks/auth/useLogout.ts", - "qualifiedName": "__object.isLoading" - }, - "1010": { - "sourceFileName": "src/evm/hooks/auth/useUser.ts", - "qualifiedName": "useUser" - }, - "1011": { - "sourceFileName": "src/evm/hooks/auth/useUser.ts", - "qualifiedName": "useUser" - }, - "1012": { - "sourceFileName": "src/evm/hooks/auth/useUser.ts", - "qualifiedName": "TData" - }, - "1013": { - "sourceFileName": "src/evm/hooks/auth/useUser.ts", - "qualifiedName": "TContext" - }, - "1014": { - "sourceFileName": "src/evm/hooks/auth/useUser.ts", - "qualifiedName": "__object" - }, - "1015": { - "sourceFileName": "src/evm/hooks/auth/useUser.ts", - "qualifiedName": "__object.user" - }, - "1016": { - "sourceFileName": "src/evm/hooks/auth/useUser.ts", - "qualifiedName": "__object.isLoggedIn" - }, - "1017": { - "sourceFileName": "src/evm/hooks/auth/useUser.ts", - "qualifiedName": "__object.isLoading" - }, - "1018": { - "sourceFileName": "src/evm/hooks/auth/useSwitchAccount.ts", - "qualifiedName": "useSwitchAccount" - }, - "1019": { - "sourceFileName": "src/evm/hooks/auth/useSwitchAccount.ts", - "qualifiedName": "useSwitchAccount" - }, - "1020": { - "sourceFileName": "src/evm/hooks/auth/useSwitchAccount.ts", - "qualifiedName": "__object" - }, - "1021": { - "sourceFileName": "src/evm/hooks/auth/useSwitchAccount.ts", - "qualifiedName": "__object.switchAccount" - }, - "1022": { - "sourceFileName": "src/evm/hooks/auth/useSwitchAccount.ts", - "qualifiedName": "__object.isLoading" - }, - "1023": { - "sourceFileName": "src/evm/hooks/auth/useUser.ts", - "qualifiedName": "UserWithData" - }, - "1024": { - "sourceFileName": "src/evm/hooks/auth/useUser.ts", - "qualifiedName": "UserWithData.data" - }, - "1025": { - "sourceFileName": "../auth/src/core/schema/common.ts", - "qualifiedName": "__type.address" - }, - "1026": { - "sourceFileName": "../auth/src/core/schema/common.ts", - "qualifiedName": "__type.session" - }, - "1027": { - "sourceFileName": "src/evm/hooks/auth/useUser.ts", - "qualifiedName": "UserWithData.TData" - }, - "1028": { - "sourceFileName": "src/evm/hooks/auth/useUser.ts", - "qualifiedName": "UserWithData.TContext" - }, - "1065": { - "sourceFileName": "src/evm/hooks/storage/useStorage.ts", - "qualifiedName": "useStorage" - }, - "1066": { - "sourceFileName": "src/evm/hooks/storage/useStorage.ts", - "qualifiedName": "useStorage" - }, - "1067": { - "sourceFileName": "src/evm/hooks/storage/useStorageUpload.ts", - "qualifiedName": "useStorageUpload" - }, - "1068": { - "sourceFileName": "src/evm/hooks/storage/useStorageUpload.ts", - "qualifiedName": "useStorageUpload" - }, - "1069": { - "sourceFileName": "src/evm/hooks/storage/useStorageUpload.ts", - "qualifiedName": "T" - }, - "1070": { - "sourceFileName": "src/evm/hooks/storage/useStorageUpload.ts", - "qualifiedName": "uploadOptions" - }, - "1071": { - "sourceFileName": "src/evm/hooks/useNetworkMismatch.ts", - "qualifiedName": "useNetworkMismatch" - }, - "1072": { - "sourceFileName": "src/evm/hooks/useNetworkMismatch.ts", - "qualifiedName": "useNetworkMismatch" - }, - "1079": { - "sourceFileName": "src/evm/hooks/useSigner.ts", - "qualifiedName": "useSigner" - }, - "1080": { - "sourceFileName": "src/evm/hooks/useSigner.ts", - "qualifiedName": "useSigner" - }, - "1081": { - "sourceFileName": "src/evm/hooks/useSupportedChains.ts", - "qualifiedName": "useSupportedChains" - }, - "1082": { - "sourceFileName": "src/evm/hooks/useSupportedChains.ts", - "qualifiedName": "useSupportedChains" - }, - "1086": { - "sourceFileName": "src/evm/hooks/async/app.ts", - "qualifiedName": "useAppURI" - }, - "1087": { - "sourceFileName": "src/evm/hooks/async/app.ts", - "qualifiedName": "useAppURI" - }, - "1088": { - "sourceFileName": "src/evm/hooks/async/app.ts", - "qualifiedName": "TContract" - }, - "1089": { - "sourceFileName": "src/evm/hooks/async/app.ts", - "qualifiedName": "contract" - }, - "1090": { - "sourceFileName": "src/evm/hooks/async/app.ts", - "qualifiedName": "useSetAppURI" - }, - "1091": { - "sourceFileName": "src/evm/hooks/async/app.ts", - "qualifiedName": "useSetAppURI" - }, - "1092": { - "sourceFileName": "src/evm/hooks/async/app.ts", - "qualifiedName": "contract" - }, - "1093": { - "sourceFileName": "src/evm/hooks/async/app.ts", - "qualifiedName": "__type" - }, - "1094": { - "sourceFileName": "src/evm/hooks/async/app.ts", - "qualifiedName": "__type.receipt" - }, - "1095": { - "sourceFileName": "src/evm/hooks/async/app.ts", - "qualifiedName": "__type.data" - }, - "1096": { - "sourceFileName": "src/evm/hooks/async/app.ts", - "qualifiedName": "__type" - }, - "1097": { - "sourceFileName": "src/evm/hooks/async/app.ts", - "qualifiedName": "__type" - }, - "1098": { - "sourceFileName": "src/evm/hooks/async/app.ts", - "qualifiedName": "__type" - }, - "1099": { - "sourceFileName": "src/evm/hooks/async/app.ts", - "qualifiedName": "__type.uri" - }, - "1105": { - "sourceFileName": "src/evm/providers/thirdweb-sdk-provider.tsx", - "qualifiedName": "ThirdwebSDKProvider" - }, - "1106": { - "sourceFileName": "src/evm/providers/thirdweb-sdk-provider.tsx", - "qualifiedName": "ThirdwebSDKProvider" - }, - "1107": { - "sourceFileName": "src/evm/providers/thirdweb-sdk-provider.tsx", - "qualifiedName": "TChains" - }, - "1108": { - "sourceFileName": "src/evm/providers/thirdweb-sdk-provider.tsx", - "qualifiedName": "props" - }, - "1109": { - "sourceFileName": "src/evm/hooks/useSDK.ts", - "qualifiedName": "useSDK" - }, - "1110": { - "sourceFileName": "src/evm/hooks/useSDK.ts", - "qualifiedName": "useSDK" - }, - "1113": { - "sourceFileName": "src/evm/providers/types.ts", - "qualifiedName": "ThirdwebSDKProviderProps" - }, - "1114": { - "sourceFileName": "src/evm/providers/types.ts", - "qualifiedName": "ThirdwebSDKProviderProps.supportedChains" - }, - "1115": { - "sourceFileName": "src/evm/providers/types.ts", - "qualifiedName": "ThirdwebSDKProviderProps.signer" - }, - "1116": { - "sourceFileName": "src/evm/providers/types.ts", - "qualifiedName": "ThirdwebSDKProviderProps.sdkOptions" - }, - "1117": { - "sourceFileName": "../sdk/src/evm/schema/sdk-options.ts", - "qualifiedName": "__type" - }, - "1118": { - "sourceFileName": "src/evm/providers/types.ts", - "qualifiedName": "ThirdwebSDKProviderProps.storageInterface" - }, - "1119": { - "sourceFileName": "src/evm/providers/types.ts", - "qualifiedName": "ThirdwebSDKProviderProps.authConfig" - }, - "1120": { - "sourceFileName": "src/evm/providers/types.ts", - "qualifiedName": "ThirdwebSDKProviderProps.activeChain" - }, - "1121": { - "sourceFileName": "", - "qualifiedName": "__type" - }, - "1122": { - "sourceFileName": "", - "qualifiedName": "__type" - }, - "1123": { - "sourceFileName": "src/evm/providers/types.ts", - "qualifiedName": "ThirdwebSDKProviderProps.clientId" - }, - "1124": { - "sourceFileName": "src/evm/providers/types.ts", - "qualifiedName": "ThirdwebSDKProviderProps.secretKey" - }, - "1125": { - "sourceFileName": "src/core/providers/query-client.tsx", - "qualifiedName": "QueryClientProviderProps.queryClient" - }, - "1126": { - "sourceFileName": "src/evm/providers/types.ts", - "qualifiedName": "ThirdwebSDKProviderProps.TChains" - }, - "1139": { - "sourceFileName": "src/evm/utils/addresses.ts", - "qualifiedName": "shortenAddress" - }, - "1140": { - "sourceFileName": "src/evm/utils/addresses.ts", - "qualifiedName": "shortenAddress" - }, - "1141": { - "sourceFileName": "src/evm/utils/addresses.ts", - "qualifiedName": "address" - }, - "1142": { - "sourceFileName": "src/evm/utils/addresses.ts", - "qualifiedName": "extraShort" - }, - "1162": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "WalletAddress" - }, - "1163": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "TokenParams" - }, - "1164": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type" - }, - "1165": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.to" - }, - "1166": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.amount" - }, - "1167": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "TokenBurnParams" - }, - "1168": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type" - }, - "1169": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.amount" - }, - "1170": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "NFTContract" - }, - "1171": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "TokenContract" - }, - "1173": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "TransferNFTParams" - }, - "1174": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type" - }, - "1175": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.to" - }, - "1176": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.tokenId" - }, - "1177": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.amount" - }, - "1178": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "AirdropNFTParams" - }, - "1179": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type" - }, - "1180": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.tokenId" - }, - "1181": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.addresses" - }, - "1182": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "MintNFTSupplyParams" - }, - "1183": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type" - }, - "1184": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.tokenId" - }, - "1185": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.additionalSupply" - }, - "1186": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.to" - }, - "1187": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "MintNFTParams" - }, - "1188": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type" - }, - "1189": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.metadata" - }, - "1190": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.to" - }, - "1191": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.supply" - }, - "1192": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "MintNFTReturnType" - }, - "1193": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "TContract" - }, - "1194": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "BurnNFTParams" - }, - "1195": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type" - }, - "1196": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.tokenId" - }, - "1197": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.amount" - }, - "1198": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "DropContract" - }, - "1199": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "RevealableContract" - }, - "1200": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "DelayedRevealLazyMintInput" - }, - "1201": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type" - }, - "1202": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.placeholder" - }, - "1203": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.metadatas" - }, - "1204": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.password" - }, - "1205": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "RevealLazyMintInput" - }, - "1206": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type" - }, - "1207": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.batchId" - }, - "1208": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.password" - }, - "1209": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "ClaimNFTParams" - }, - "1210": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type" - }, - "1211": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.to" - }, - "1212": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.quantity" - }, - "1213": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.options" - }, - "1214": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.tokenId" - }, - "1215": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "ClaimNFTReturnType" - }, - "1216": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "MakeBidParams" - }, - "1217": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type" - }, - "1218": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.listingId" - }, - "1219": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.bid" - }, - "1220": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "MakeOfferParams" - }, - "1221": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type" - }, - "1222": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.listingId" - }, - "1223": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.pricePerToken" - }, - "1224": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.quantity" - }, - "1225": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "AcceptDirectOffer" - }, - "1226": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type" - }, - "1227": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.listingId" - }, - "1228": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.addressOfOfferor" - }, - "1229": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "ExecuteAuctionSale" - }, - "1230": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type" - }, - "1231": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.listingId" - }, - "1232": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "BuyNowParams" - }, - "1233": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type" - }, - "1234": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.id" - }, - "1235": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.type" - }, - "1236": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.buyAmount" - }, - "1237": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.buyForWallet" - }, - "1238": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type" - }, - "1239": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.id" - }, - "1240": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.type" - }, - "1241": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "TListingType" - }, - "1242": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "ClaimTokenParams" - }, - "1243": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type" - }, - "1244": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.to" - }, - "1245": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.amount" - }, - "1246": { - "sourceFileName": "src/evm/types.ts", - "qualifiedName": "__type.checkERC20Allowance" - }, - "1263": { - "sourceFileName": "src/evm/hooks/useTransactions.ts", - "qualifiedName": "useWatchTransactions" - }, - "1264": { - "sourceFileName": "src/evm/hooks/useTransactions.ts", - "qualifiedName": "useWatchTransactions" - }, - "1265": { - "sourceFileName": "src/evm/hooks/useTransactions.ts", - "qualifiedName": "watchTransactionParams" - }, - "1266": { - "sourceFileName": "src/evm/hooks/useTransactions.ts", - "qualifiedName": "UseWatchTransactionsParams" - }, - "1267": { - "sourceFileName": "src/evm/hooks/useTransactions.ts", - "qualifiedName": "__type" - }, - "1268": { - "sourceFileName": "src/evm/hooks/useTransactions.ts", - "qualifiedName": "__type.limit" - }, - "1269": { - "sourceFileName": "src/evm/hooks/pay/useBuyWithCryptoHistory.ts", - "qualifiedName": "useBuyWithCryptoHistory" - }, - "1270": { - "sourceFileName": "src/evm/hooks/pay/useBuyWithCryptoHistory.ts", - "qualifiedName": "useBuyWithCryptoHistory" - }, - "1271": { - "sourceFileName": "src/evm/hooks/pay/useBuyWithCryptoHistory.ts", - "qualifiedName": "params" - }, - "1272": { - "sourceFileName": "src/evm/hooks/pay/useBuyWithCryptoHistory.ts", - "qualifiedName": "queryParams" - }, - "1273": { - "sourceFileName": "src/evm/hooks/pay/useBuyWithCryptoQuote.ts", - "qualifiedName": "useBuyWithCryptoQuote" - }, - "1274": { - "sourceFileName": "src/evm/hooks/pay/useBuyWithCryptoQuote.ts", - "qualifiedName": "useBuyWithCryptoQuote" - }, - "1275": { - "sourceFileName": "src/evm/hooks/pay/useBuyWithCryptoQuote.ts", - "qualifiedName": "params" - }, - "1276": { - "sourceFileName": "src/evm/hooks/pay/useBuyWithCryptoQuote.ts", - "qualifiedName": "queryParams" - }, - "1277": { - "sourceFileName": "src/evm/hooks/pay/useBuyWithCryptoStatus.ts", - "qualifiedName": "useBuyWithCryptoStatus" - }, - "1278": { - "sourceFileName": "src/evm/hooks/pay/useBuyWithCryptoStatus.ts", - "qualifiedName": "useBuyWithCryptoStatus" - }, - "1279": { - "sourceFileName": "src/evm/hooks/pay/useBuyWithCryptoStatus.ts", - "qualifiedName": "params" - } - }, - "files": { - "entries": { - "1": "src/index.ts" - }, - "reflections": { - "1": 0 - } - } -} diff --git a/apps/portal/src/app/references/components/TDoc/fetchDocs/v4-legacy-docs/react.json b/apps/portal/src/app/references/components/TDoc/fetchDocs/v4-legacy-docs/react.json deleted file mode 100644 index a8a30dfc5c8..00000000000 --- a/apps/portal/src/app/references/components/TDoc/fetchDocs/v4-legacy-docs/react.json +++ /dev/null @@ -1,36149 +0,0 @@ -{ - "id": 0, - "name": "@thirdweb-dev/react", - "variant": "project", - "kind": 1, - "flags": {}, - "children": [ - { - "id": 49, - "name": "inAppWallet", - "variant": "reference", - "kind": 4194304, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/index.ts", - "line": 19, - "character": 27, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/index.ts#L19" - } - ], - "target": 46 - }, - { - "id": 56, - "name": "InAppWalletConfigOptions", - "variant": "reference", - "kind": 4194304, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/index.ts", - "line": 21, - "character": 45, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/index.ts#L21" - } - ], - "target": 50 - }, - { - "id": 965, - "name": "useInAppWallet", - "variant": "reference", - "kind": 4194304, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/index.ts", - "line": 65, - "character": 23, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/index.ts#L65" - } - ], - "target": 945 - }, - { - "id": 967, - "name": "useInAppWalletSendVerificationEmail", - "variant": "reference", - "kind": 4194304, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/index.ts", - "line": 68, - "character": 51, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/index.ts#L68" - } - ], - "target": 960 - }, - { - "id": 966, - "name": "useInAppWalletUserEmail", - "variant": "reference", - "kind": 4194304, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/index.ts", - "line": 66, - "character": 32, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/index.ts#L66" - } - ], - "target": 958 - }, - { - "id": 1149, - "name": "VerifyOwnershipWithPaper", - "variant": "reference", - "kind": 4194304, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/VerifyOwnershipWithPaper.tsx", - "line": 36, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/VerifyOwnershipWithPaper.tsx#L36" - } - ], - "target": 1095 - }, - { - "id": 1103, - "name": "PaperCheckoutDisplay", - "variant": "declaration", - "kind": 8, - "flags": {}, - "children": [ - { - "id": 1107, - "name": "DRAWER", - "variant": "declaration", - "kind": 16, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Open the checkout in a drawer on the right side of the parent page with a darkened background.\n\nNOTE: Pay with Crypto is disabled in this display mode." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 38, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L38" - } - ], - "type": { - "type": "literal", - "value": "DRAWER" - } - }, - { - "id": 1108, - "name": "EMBED", - "variant": "declaration", - "kind": 16, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Embed the checkout directly on the parent page.\n\nNOTE: Pay with Crypto is disabled in this display mode." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 45, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L45" - } - ], - "type": { - "type": "literal", - "value": "EMBED" - } - }, - { - "id": 1106, - "name": "MODAL", - "variant": "declaration", - "kind": 16, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Open the checkout in a modal on the parent page with a darkened background.\n\nNOTE: Pay with Crypto is disabled in this display mode." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 31, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L31" - } - ], - "type": { - "type": "literal", - "value": "MODAL" - } - }, - { - "id": 1105, - "name": "NEW_TAB", - "variant": "declaration", - "kind": 16, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Open the checkout in a new browser tab." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 24, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L24" - } - ], - "type": { - "type": "literal", - "value": "NEW_TAB" - } - }, - { - "id": 1104, - "name": "POPUP", - "variant": "declaration", - "kind": 16, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Open the checkout in a new popup centered over the parent window." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 19, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L19" - } - ], - "type": { - "type": "literal", - "value": "POPUP" - } - } - ], - "groups": [ - { - "title": "Enumeration Members", - "children": [ - 1107, - 1108, - 1106, - 1105, - 1104 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 15, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L15" - } - ] - }, - { - "id": 1043, - "name": "PaymentsSDKErrorCode", - "variant": "declaration", - "kind": 8, - "flags": {}, - "children": [ - { - "id": 1050, - "name": "AddressNotAllowed", - "variant": "declaration", - "kind": 16, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 16, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": "This address is not on the allowlist." - } - }, - { - "id": 1048, - "name": "EmailNotVerified", - "variant": "declaration", - "kind": 16, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 14, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": "The email was unable to be verified." - } - }, - { - "id": 1047, - "name": "InvalidCard", - "variant": "declaration", - "kind": 16, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 13, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": "The card information is invalid. Please double check that the Card, CVC, and Zip code are all correct." - } - }, - { - "id": 1046, - "name": "InvalidProps", - "variant": "declaration", - "kind": 16, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 12, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": "The props you passed in to this component are not valid." - } - }, - { - "id": 1051, - "name": "NoActiveClaimPhase", - "variant": "declaration", - "kind": 16, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 17, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": "There is no active claim phase at the moment." - } - }, - { - "id": 1049, - "name": "NotEnoughSupply", - "variant": "declaration", - "kind": 16, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 15, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": "There is not enough supply to claim." - } - }, - { - "id": 1044, - "name": "UserAbandonedCheckout", - "variant": "declaration", - "kind": 16, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 10, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": "User abandoned the checkout" - } - }, - { - "id": 1045, - "name": "UserLoginFailed", - "variant": "declaration", - "kind": 16, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 11, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": "User login failed" - } - } - ], - "groups": [ - { - "title": "Enumeration Members", - "children": [ - 1050, - 1048, - 1047, - 1046, - 1051, - 1049, - 1044, - 1045 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 9, - "character": 20 - } - ] - }, - { - "id": 1052, - "name": "PayWithCryptoErrorCode", - "variant": "declaration", - "kind": 8, - "flags": {}, - "children": [ - { - "id": 1058, - "name": "ChainSwitchUnderway", - "variant": "declaration", - "kind": 16, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 25, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": "There is a network switch already underway" - } - }, - { - "id": 1053, - "name": "ErrorConnectingToWallet", - "variant": "declaration", - "kind": 16, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 20, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": "Error connecting to wallet" - } - }, - { - "id": 1054, - "name": "ErrorSendingTransaction", - "variant": "declaration", - "kind": 16, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 21, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": "Something went wrong sending transaction" - } - }, - { - "id": 1055, - "name": "InsufficientBalance", - "variant": "declaration", - "kind": 16, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 22, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": "Insufficient ETH" - } - }, - { - "id": 1059, - "name": "PendingSignature", - "variant": "declaration", - "kind": 16, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 26, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": "Pending Signature" - } - }, - { - "id": 1056, - "name": "TransactionCancelled", - "variant": "declaration", - "kind": 16, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 23, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": "Transaction Cancelled" - } - }, - { - "id": 1057, - "name": "WrongChain", - "variant": "declaration", - "kind": 16, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 24, - "character": 4 - } - ], - "type": { - "type": "literal", - "value": "Wrong Chain Detected" - } - } - ], - "groups": [ - { - "title": "Enumeration Members", - "children": [ - 1058, - 1053, - 1054, - 1055, - 1059, - 1056, - 1057 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 19, - "character": 20 - } - ] - }, - { - "id": 873, - "name": "MediaRendererProps", - "variant": "declaration", - "kind": 256, - "flags": {}, - "children": [ - { - "id": 875, - "name": "alt", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The alt text for the media." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 49, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L49" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 884, - "name": "children", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 33, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L33" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.ReactNode" - }, - "name": "ReactNode", - "package": "@types/react", - "qualifiedName": "React.ReactNode" - }, - "inheritedFrom": { - "type": "reference", - "target": 893, - "name": "SharedMediaProps.children" - } - }, - { - "id": 880, - "name": "className", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The className to apply on the rendered element to add custom styling." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 7, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L7" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "target": 887, - "name": "SharedMediaProps.className" - } - }, - { - "id": 883, - "name": "controls", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Show the media controls (where applicable)\n\nBy default it is set to " - }, - { - "kind": "code", - "text": "`false`" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 31, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L31" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "target": 892, - "name": "SharedMediaProps.controls" - } - }, - { - "id": 877, - "name": "gatewayUrl", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The IPFS gateway URL to use" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 57, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L57" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 879, - "name": "height", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The CSS height property to apply on the rendered element." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 65, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L65" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "overwrites": { - "type": "reference", - "target": 890, - "name": "SharedMediaProps.height" - } - }, - { - "id": 885, - "name": "mimeType", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Provide the [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the media if it is known" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 38, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L38" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "target": 894, - "name": "SharedMediaProps.mimeType" - } - }, - { - "id": 876, - "name": "poster", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The media poster image uri. (if applicable)" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 53, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L53" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 882, - "name": "requireInteraction", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Require user interaction to play the media.\n\nBy default it is set to " - }, - { - "kind": "code", - "text": "`false`" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 25, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L25" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "target": 891, - "name": "SharedMediaProps.requireInteraction" - } - }, - { - "id": 874, - "name": "src", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The media source uri." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 45, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L45" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 881, - "name": "style", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The style to apply on the rendered element to add custom styling." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 11, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L11" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.CSSProperties" - }, - "name": "CSSProperties", - "package": "@types/react", - "qualifiedName": "React.CSSProperties" - }, - "inheritedFrom": { - "type": "reference", - "target": 888, - "name": "SharedMediaProps.style" - } - }, - { - "id": 878, - "name": "width", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The CSS width property to apply on the rendered element." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 61, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L61" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "overwrites": { - "type": "reference", - "target": 889, - "name": "SharedMediaProps.width" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 875, - 884, - 880, - 883, - 877, - 879, - 885, - 876, - 882, - 874, - 881, - 878 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 41, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L41" - } - ], - "extendedTypes": [ - { - "type": "reference", - "target": 886, - "name": "SharedMediaProps", - "package": "@thirdweb-dev/react" - } - ] - }, - { - "id": 1020, - "name": "MediaType", - "variant": "declaration", - "kind": 256, - "flags": {}, - "children": [ - { - "id": 1022, - "name": "mimeType", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/MediaRenderer.tsx", - "line": 721, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/MediaRenderer.tsx#L721" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1021, - "name": "url", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/MediaRenderer.tsx", - "line": 720, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/MediaRenderer.tsx#L720" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1022, - 1021 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/MediaRenderer.tsx", - "line": 719, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/MediaRenderer.tsx#L719" - } - ] - }, - { - "id": 1083, - "name": "PaymentsProviderProps", - "variant": "declaration", - "kind": 256, - "flags": {}, - "children": [ - { - "id": 1085, - "name": "appName", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/Provider.tsx", - "line": 24, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/Provider.tsx#L24" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1084, - "name": "chainName", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/Provider.tsx", - "line": 23, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/Provider.tsx#L23" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../payments/src/constants/blockchain.ts", - "qualifiedName": "SupportedChainName" - }, - "name": "SupportedChainName", - "package": "@thirdweb-dev/payments" - } - }, - { - "id": 1086, - "name": "clientId", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/Provider.tsx", - "line": 25, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/Provider.tsx#L25" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1085, - 1084, - 1086 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/Provider.tsx", - "line": 22, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/Provider.tsx#L22" - } - ] - }, - { - "id": 1150, - "name": "PaymentSuccessResult", - "variant": "declaration", - "kind": 256, - "flags": {}, - "children": [ - { - "id": 1151, - "name": "id", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A unique ID for this purchase." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/PaymentSuccessResult.ts", - "line": 6, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/PaymentSuccessResult.ts#L6" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1151 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/PaymentSuccessResult.ts", - "line": 2, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/PaymentSuccessResult.ts#L2" - } - ] - }, - { - "id": 886, - "name": "SharedMediaProps", - "variant": "declaration", - "kind": 256, - "flags": {}, - "children": [ - { - "id": 893, - "name": "children", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 33, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L33" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.ReactNode" - }, - "name": "ReactNode", - "package": "@types/react", - "qualifiedName": "React.ReactNode" - } - }, - { - "id": 887, - "name": "className", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The className to apply on the rendered element to add custom styling." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 7, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L7" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 892, - "name": "controls", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Show the media controls (where applicable)\n\nBy default it is set to " - }, - { - "kind": "code", - "text": "`false`" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 31, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L31" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 890, - "name": "height", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The CSS height property to apply on the rendered element." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 19, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L19" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 894, - "name": "mimeType", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Provide the [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the media if it is known" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 38, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L38" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 891, - "name": "requireInteraction", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Require user interaction to play the media.\n\nBy default it is set to " - }, - { - "kind": "code", - "text": "`false`" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 25, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L25" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 888, - "name": "style", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The style to apply on the rendered element to add custom styling." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 11, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L11" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.CSSProperties" - }, - "name": "CSSProperties", - "package": "@types/react", - "qualifiedName": "React.CSSProperties" - } - }, - { - "id": 889, - "name": "width", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The CSS width property to apply on the rendered element." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 15, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L15" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 893, - 887, - 892, - 890, - 894, - 891, - 888, - 889 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 3, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L3" - } - ], - "extendedBy": [ - { - "type": "reference", - "target": 873, - "name": "MediaRendererProps" - }, - { - "type": "reference", - "target": 1023, - "name": "ThirdwebNftMediaProps" - } - ] - }, - { - "id": 1023, - "name": "ThirdwebNftMediaProps", - "variant": "declaration", - "kind": 256, - "flags": {}, - "children": [ - { - "id": 1034, - "name": "children", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 33, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L33" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.ReactNode" - }, - "name": "ReactNode", - "package": "@types/react", - "qualifiedName": "React.ReactNode" - }, - "inheritedFrom": { - "type": "reference", - "target": 893, - "name": "SharedMediaProps.children" - } - }, - { - "id": 1030, - "name": "className", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The className to apply on the rendered element to add custom styling." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 7, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L7" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "target": 887, - "name": "SharedMediaProps.className" - } - }, - { - "id": 1033, - "name": "controls", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Show the media controls (where applicable)\n\nBy default it is set to " - }, - { - "kind": "code", - "text": "`false`" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 31, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L31" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "target": 892, - "name": "SharedMediaProps.controls" - } - }, - { - "id": 1029, - "name": "height", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "CSS height of the media" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/NftMedia.tsx", - "line": 18, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/NftMedia.tsx#L18" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "overwrites": { - "type": "reference", - "target": 890, - "name": "SharedMediaProps.height" - } - }, - { - "id": 1024, - "name": "metadata", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The NFT metadata of the NFT returned by the thirdweb sdk." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/NftMedia.tsx", - "line": 10, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/NftMedia.tsx#L10" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts", - "qualifiedName": "objectOutputType" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/helpers/util.d.ts", - "qualifiedName": "objectUtil.extendShape" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/helpers/util.d.ts", - "qualifiedName": "objectUtil.extendShape" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 1025, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/core/schema/nft.d.ts", - "line": 315, - "character": 354 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 1026, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/core/schema/nft.d.ts", - "line": 338, - "character": 3 - } - ] - } - } - ], - "name": "extendShape", - "package": "zod", - "qualifiedName": "objectUtil.extendShape" - }, - { - "type": "reflection", - "declaration": { - "id": 1027, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/sdk/dist/declarations/src/core/schema/nft.d.ts", - "line": 352, - "character": 4 - } - ] - } - } - ], - "name": "extendShape", - "package": "zod", - "qualifiedName": "objectUtil.extendShape" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts", - "qualifiedName": "ZodUnion" - }, - "typeArguments": [ - { - "type": "tuple", - "elements": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts", - "qualifiedName": "ZodEffects" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts", - "qualifiedName": "ZodUnion" - }, - "typeArguments": [ - { - "type": "tuple", - "elements": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts", - "qualifiedName": "ZodBigInt" - }, - "name": "ZodBigInt", - "package": "zod" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts", - "qualifiedName": "ZodType" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumber" - }, - "name": "BigNumber", - "package": "@ethersproject/bignumber" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts", - "qualifiedName": "ZodTypeDef" - }, - "name": "ZodTypeDef", - "package": "zod" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumber" - }, - "name": "BigNumber", - "package": "@ethersproject/bignumber" - } - ], - "name": "ZodType", - "package": "zod" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts", - "qualifiedName": "ZodType" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+bn.js@5.1.5/node_modules/@types/bn.js/index.d.ts", - "qualifiedName": "BN" - }, - "name": "BN", - "package": "@types/bn.js" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts", - "qualifiedName": "ZodTypeDef" - }, - "name": "ZodTypeDef", - "package": "zod" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+bn.js@5.1.5/node_modules/@types/bn.js/index.d.ts", - "qualifiedName": "BN" - }, - "name": "BN", - "package": "@types/bn.js" - } - ], - "name": "ZodType", - "package": "zod" - } - ] - } - ], - "name": "ZodUnion", - "package": "zod" - }, - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "bigint" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts", - "qualifiedName": "BigNumber" - }, - "name": "BigNumber", - "package": "@ethersproject/bignumber" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+bn.js@5.1.5/node_modules/@types/bn.js/index.d.ts", - "qualifiedName": "BN" - }, - "name": "BN", - "package": "@types/bn.js" - } - ] - } - ], - "name": "ZodEffects", - "package": "zod" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts", - "qualifiedName": "ZodUnknown" - }, - "name": "ZodUnknown", - "package": "zod" - } - ] - } - ], - "name": "ZodUnion", - "package": "zod" - }, - { - "type": "literal", - "value": "strip" - } - ], - "name": "objectOutputType", - "package": "zod" - } - }, - { - "id": 1035, - "name": "mimeType", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Provide the [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the media if it is known" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 38, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L38" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "target": 894, - "name": "SharedMediaProps.mimeType" - } - }, - { - "id": 1032, - "name": "requireInteraction", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Require user interaction to play the media.\n\nBy default it is set to " - }, - { - "kind": "code", - "text": "`false`" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 25, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L25" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "target": 891, - "name": "SharedMediaProps.requireInteraction" - } - }, - { - "id": 1031, - "name": "style", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true, - "isInherited": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The style to apply on the rendered element to add custom styling." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/types.ts", - "line": 11, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/types.ts#L11" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.CSSProperties" - }, - "name": "CSSProperties", - "package": "@types/react", - "qualifiedName": "React.CSSProperties" - }, - "inheritedFrom": { - "type": "reference", - "target": 888, - "name": "SharedMediaProps.style" - } - }, - { - "id": 1028, - "name": "width", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "CSS width of the media" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/NftMedia.tsx", - "line": 14, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/NftMedia.tsx#L14" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "overwrites": { - "type": "reference", - "target": 889, - "name": "SharedMediaProps.width" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1034, - 1030, - 1033, - 1029, - 1024, - 1035, - 1032, - 1031, - 1028 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/NftMedia.tsx", - "line": 6, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/NftMedia.tsx#L6" - } - ], - "extendedTypes": [ - { - "type": "reference", - "target": 886, - "name": "SharedMediaProps", - "package": "@thirdweb-dev/react" - } - ] - }, - { - "id": 867, - "name": "ThirdwebProviderProps", - "variant": "declaration", - "kind": 256, - "flags": {}, - "children": [ - { - "id": 871, - "name": "locale", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "locale object contains text used for all thirdweb components\n\nit allows you to change the language used in UI components or override the texts used in the UI\n\nReact SDK comes out of the box with Spanish and Japanese locale functions, but you can add support for any language you want just by passing an object with the required strings" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "## Using Built-in Locales\n\n### Using the Spanish locale\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { ThirdwebProvider, es } from \"@thirdweb-dev/react\";\n\nconst spanish = es();\n\n \n```" - }, - { - "kind": "text", - "text": "\n\n### Using the Japanese locale\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { ThirdwebProvider, jp } from \"@thirdweb-dev/react\";\n\nconst japanese = jp();\n\n \n```" - }, - { - "kind": "text", - "text": "\n\n### Using English locale ( default )\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { ThirdwebProvider, en } from \"@thirdweb-dev/react\";\n\nconst english = en();\n\n \n```" - }, - { - "kind": "text", - "text": "\n\n## Overriding the locale\n\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { ThirdwebProvider, en } from \"@thirdweb-dev/react\";\n\n// override some texts\nconst english = en({\n connectWallet: {\n confirmInWallet: \"Confirm in your wallet\",\n },\n wallets: {\n metamaskWallet: {\n connectionScreen: {\n inProgress: \"Awaiting Confirmation\",\n instruction: \"Accept connection request in your MetaMask wallet\",\n },\n },\n },\n});\n\n\n \n;\n\n```" - }, - { - "kind": "text", - "text": "\n\n### Custom locale object\n\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { ThirdwebProvider } from \"@thirdweb-dev/react\";\n\n\n \n;\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/thirdweb-provider.tsx", - "line": 158, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/thirdweb-provider.tsx#L158" - } - ], - "type": { - "type": "reference", - "target": 275, - "name": "ThirdwebLocale", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 870, - "name": "signer", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Use a signer instead of " - }, - { - "kind": "code", - "text": "`supportedWallets`" - }, - { - "kind": "text", - "text": " if you want to provide your own wallet connection logic." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/thirdweb-provider.tsx", - "line": 81, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/thirdweb-provider.tsx#L81" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+abstract-signer@5.7.0/node_modules/@ethersproject/abstract-signer/src.ts/index.ts", - "qualifiedName": "Signer" - }, - "name": "Signer", - "package": "@ethersproject/abstract-signer" - } - }, - { - "id": 868, - "name": "supportedWallets", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Wallets supported by the dApp\n\nIf no wallets are provided, the default wallets will be used which is equivalent to the following:\n\n" - }, - { - "kind": "code", - "text": "```tsx\n[\n metamaskWallet(),\n coinbaseWallet(),\n walletConnect(),\n trustWallet(),\n rainbowWallet(),\n zerionWallet(),\n phantomWallet(),\n]\n```" - }, - { - "kind": "text", - "text": "\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { metamaskWallet, coinbaseWallet, walletConnect } from \"@thirdweb-dev/react\";\n\n\n```" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/thirdweb-provider.tsx", - "line": 55, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/thirdweb-provider.tsx#L55" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - }, - { - "id": 869, - "name": "theme", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Set the theme for all thirdweb components\n\nBy default it is set to \"dark\".\n\ntheme can be set to either \"dark\" or \"light\" or a custom theme object.\n\nYou can also import " - }, - { - "kind": "code", - "text": "`lightTheme`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`darkTheme`" - }, - { - "kind": "text", - "text": " functions from " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/react`" - }, - { - "kind": "text", - "text": " to use the default themes as base and overrides parts of it." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nimport { lightTheme } from \"@thirdweb-dev/react\";\nconst customTheme = lightTheme({\n colors: {\n modalBg: 'red'\n }\n})\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/thirdweb-provider.tsx", - "line": 76, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/thirdweb-provider.tsx#L76" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/design-system/index.ts", - "qualifiedName": "ThemeObjectOrType" - }, - "name": "ThemeObjectOrType", - "package": "@thirdweb-dev/react" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 871, - 870, - 868, - 869 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/thirdweb-provider.tsx", - "line": 21, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/thirdweb-provider.tsx#L21" - } - ], - "typeParameters": [ - { - "id": 872, - "name": "TChains", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../chains/src/index.ts", - "qualifiedName": "Chain" - }, - "name": "Chain", - "package": "@thirdweb-dev/chains" - } - } - } - ], - "extendedTypes": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/providers/thirdweb-provider.tsx", - "qualifiedName": "ThirdwebProviderCoreProps" - }, - "typeArguments": [ - { - "type": "reference", - "target": 872, - "name": "TChains", - "package": "@thirdweb-dev/react", - "qualifiedName": "ThirdwebProviderProps.TChains", - "refersToTypeParameter": true - } - ], - "name": "ThirdwebProviderCoreProps", - "package": "@thirdweb-dev/react-core" - }, - { - "type": "union", - "types": [ - { - "type": "literal", - "value": "createWalletStorage" - }, - { - "type": "literal", - "value": "supportedWallets" - }, - { - "type": "literal", - "value": "theme" - }, - { - "type": "literal", - "value": "signerWallet" - } - ] - } - ], - "name": "Omit", - "package": "typescript" - } - ] - }, - { - "id": 797, - "name": "Web3ButtonProps", - "variant": "declaration", - "kind": 256, - "flags": {}, - "children": [ - { - "id": 813, - "name": "action", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The logic to execute when the button is clicked.\n\nThe contract instance is available as the first argument of the function for you to interact with.\n\nIf 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" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\n contract.erc721.claim(1)}\n>\n Claim NFT\n\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 95, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L95" - } - ], - "type": { - "type": "reference", - "target": 840, - "name": "TActionFn", - "package": "@thirdweb-dev/react", - "qualifiedName": "Web3ButtonProps.TActionFn", - "refersToTypeParameter": true - } - }, - { - "id": 798, - "name": "className", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "the class to apply to the button for adding custom styles" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\n\nClaim NFT\n\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 42, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L42" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 817, - "name": "connectWallet", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Web3Button renders a [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) if no wallet is connected. You can pass props for that component by passing a " - }, - { - "kind": "code", - "text": "`connectWallet`" - }, - { - "kind": "text", - "text": " prop to Web3Button" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\n contract.erc721.claim(1)}\n>\n Claim NFT\n\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 125, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L125" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 818, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 823, - "name": "auth", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 152, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L152" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 824, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 825, - "name": "loginOptional", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 153, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L153" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 826, - "name": "onLogin", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 154, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L154" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 827, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 154, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L154" - } - ], - "signatures": [ - { - "id": 828, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 154, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L154" - } - ], - "parameters": [ - { - "id": 829, - "name": "token", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 830, - "name": "onLogout", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 155, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L155" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 831, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 155, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L155" - } - ], - "signatures": [ - { - "id": 832, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 155, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L155" - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 825, - 826, - 830 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 152, - "character": 11, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L152" - } - ] - } - } - }, - { - "id": 820, - "name": "btnTitle", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "text to render in ConnectWallet button\n\nThe default is " - }, - { - "kind": "code", - "text": "`\"Connect Wallet\"`" - }, - { - "kind": "text", - "text": "." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 136, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L136" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 819, - "name": "className", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The class to apply to the ConnectWallet component for adding custom styles" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 129, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L129" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 834, - "name": "modalSize", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Set the size of the modal - " - }, - { - "kind": "code", - "text": "`compact`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`wide`" - }, - { - "kind": "text", - "text": " on desktop\n\nModal size is always " - }, - { - "kind": "code", - "text": "`compact`" - }, - { - "kind": "text", - "text": " on mobile.\n\nBy default it is set to " - }, - { - "kind": "code", - "text": "`\"wide\"`" - }, - { - "kind": "text", - "text": " for desktop" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 170, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L170" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "compact" - }, - { - "type": "literal", - "value": "wide" - } - ] - } - }, - { - "id": 821, - "name": "modalTitle", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "title of the [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal.\n\nThe default is " - }, - { - "kind": "code", - "text": "`\"Connect\"`" - }, - { - "kind": "text", - "text": "." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 143, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L143" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 822, - "name": "modalTitleIconUrl", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Replace the thirdweb icon next to modalTitle and set your own iconUrl\n\nSet to empty string to hide the icon" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 150, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L150" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 836, - "name": "privacyPolicyUrl", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If provided, ConnectWallet Modal will show a Privacy Policy message at the bottom with below link" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 180, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L180" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 838, - "name": "showThirdwebBranding", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "By default the ConnectWallet Modal shows \"Powered by Thirdweb\" at the bottom. If you want to hide it, set it to " - }, - { - "kind": "code", - "text": "`false`" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 192, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L192" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 833, - "name": "style", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "apply custom styles to ConnectWallet button element" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 161, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L161" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.CSSProperties" - }, - "name": "CSSProperties", - "package": "@types/react", - "qualifiedName": "React.CSSProperties" - } - }, - { - "id": 835, - "name": "termsOfServiceUrl", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If provided, ConnectWallet Modal will show a Terms of Service message at the bottom with below link" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 175, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L175" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 837, - "name": "welcomeScreen", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Customize the welcome screen of the ConnectWallet Modal\n\nEither provide a component to replace the default screen entirely or an object with title, subtitle and imgSrc to change the content of the default screen" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 187, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L187" - } - ], - "type": { - "type": "reference", - "target": 703, - "name": "WelcomeScreen", - "package": "@thirdweb-dev/react" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 823, - 820, - 819, - 834, - 821, - 822, - 836, - 838, - 833, - 835, - 837 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 125, - "character": 18, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L125" - } - ] - } - } - }, - { - "id": 800, - "name": "contractAbi", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The [Application Binary Interface](https://docs.soliditylang.org/en/v0.8.17/abi-spec.html) (ABI) of the contract.\n\nThis is only required if you have not imported your contract to the [thirdweb dashboard](https://thirdweb.com/dashboard)." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 54, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L54" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@ethersproject+contracts@5.7.0/node_modules/@ethersproject/contracts/src.ts/index.ts", - "qualifiedName": "ContractInterface" - }, - "name": "ContractInterface", - "package": "@ethersproject/contracts" - } - }, - { - "id": 799, - "name": "contractAddress", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "the address of the contract\n\nIf you have not imported your contract to [thirdweb dashboard](https://thirdweb.com/dashboard), you must additionally specify the contractAbi prop." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 48, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L48" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 812, - "name": "isDisabled", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Whether the button should be disabled or not\n\nThe button is disabled and shows a spinner when the transaction is executing." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 76, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L76" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 805, - "name": "onError", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Callback function to be run when the contract method call fails." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 64, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L64" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 806, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 64, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L64" - } - ], - "signatures": [ - { - "id": 807, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 64, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L64" - } - ], - "parameters": [ - { - "id": 808, - "name": "error", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "error thrown when running given " - }, - { - "kind": "code", - "text": "`action`" - }, - { - "kind": "text", - "text": " function" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Error" - }, - "name": "Error", - "package": "typescript" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 809, - "name": "onSubmit", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Callback function to be run after the user has confirmed the transaction.\nIt is called just before the " - }, - { - "kind": "code", - "text": "`action`" - }, - { - "kind": "text", - "text": " function is called" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 69, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L69" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 810, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 69, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L69" - } - ], - "signatures": [ - { - "id": 811, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 69, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L69" - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 801, - "name": "onSuccess", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Callback function to be run when the contract method call is successful." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 59, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L59" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 802, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 59, - "character": 14, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L59" - } - ], - "signatures": [ - { - "id": 803, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 59, - "character": 14, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L59" - } - ], - "parameters": [ - { - "id": 804, - "name": "result", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "value returned from given " - }, - { - "kind": "code", - "text": "`action`" - }, - { - "kind": "text", - "text": " function when it is called" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Awaited" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "ReturnType" - }, - "typeArguments": [ - { - "type": "reference", - "target": 840, - "name": "TActionFn", - "package": "@thirdweb-dev/react", - "qualifiedName": "Web3ButtonProps.TActionFn", - "refersToTypeParameter": true - } - ], - "name": "ReturnType", - "package": "typescript" - } - ], - "name": "Awaited", - "package": "typescript" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 816, - "name": "style", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The style to apply to the button element" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 110, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L110" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.CSSProperties" - }, - "name": "CSSProperties", - "package": "@types/react", - "qualifiedName": "React.CSSProperties" - } - }, - { - "id": 839, - "name": "switchNetworkBtnTitle", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Set a custom label for the \"Switch Network\" button" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 198, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L198" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 815, - "name": "theme", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The theme to use for the button" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 105, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L105" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "light" - }, - { - "type": "literal", - "value": "dark" - }, - { - "type": "reference", - "target": 230, - "name": "Theme", - "package": "@thirdweb-dev/react" - } - ] - } - }, - { - "id": 814, - "name": "type", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "button element's " - }, - { - "kind": "code", - "text": "`type`" - }, - { - "kind": "text", - "text": " attribute" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 100, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L100" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "button" - }, - { - "type": "literal", - "value": "reset" - }, - { - "type": "literal", - "value": "submit" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 813, - 798, - 817, - 800, - 799, - 812, - 805, - 809, - 801, - 816, - 839, - 815, - 814 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 31, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L31" - } - ], - "typeParameters": [ - { - "id": 840, - "name": "TActionFn", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": 841, - "name": "ActionFn", - "package": "@thirdweb-dev/react" - } - } - ] - }, - { - "id": 841, - "name": "ActionFn", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 27, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L27" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 842, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/Web3Button/index.tsx", - "line": 27, - "character": 23, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/Web3Button/index.tsx#L27" - } - ], - "signatures": [ - { - "id": 843, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "parameters": [ - { - "id": 844, - "name": "contract", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../sdk/src/evm/contracts/smart-contract.ts", - "qualifiedName": "SmartContract" - }, - "name": "SmartContract", - "package": "@thirdweb-dev/sdk" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ] - } - } - }, - { - "id": 35, - "name": "BloctoWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/blocto/bloctoWallet.tsx", - "line": 7, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/blocto/bloctoWallet.tsx#L7" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 36, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 37, - "name": "appId", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "To get advanced features and support from Blocto, you can create an appId from [blocto dashboard](https://docs.blocto.app/blocto-sdk/register-app-id)" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/blocto/bloctoWallet.tsx", - "line": 11, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/blocto/bloctoWallet.tsx#L11" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 38, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If true, the wallet will be tagged as \"recommended\" in [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/blocto/bloctoWallet.tsx", - "line": 16, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/blocto/bloctoWallet.tsx#L16" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 37, - 38 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/blocto/bloctoWallet.tsx", - "line": 7, - "character": 40, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/blocto/bloctoWallet.tsx#L7" - } - ] - } - } - }, - { - "id": 1156, - "name": "ClaimedToken", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 14, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L14" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1157, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1159, - "name": "collectionTitle", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The title of the collection." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 23, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L23" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1158, - "name": "contractAddress", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The address of the NFT contract." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 18, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L18" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1167, - "name": "metadata", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 56, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L56" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1168, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1170, - "name": "description", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The description of the NFT" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 65, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L65" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - }, - { - "id": 1171, - "name": "image", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "An image representing the NFT." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 70, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L70" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - }, - { - "id": 1169, - "name": "name", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The title of the NFT in the collection." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 60, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L60" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1172, - "name": "properties", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Arbitrary properties (i.e. traits) describing the NFT." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 75, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L75" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "object" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1170, - 1171, - 1169, - 1172 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 56, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L56" - } - ] - } - } - }, - { - "id": 1160, - "name": "tokenId", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The ID of the token in the collection that was claimed.\nFor ERC-721 collections, this ID is unique for each claim.\nFor ERC-1155 collections, this ID is identical for all buyers of this NFT token." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 30, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L30" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1161, - "name": "transactions", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 32, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L32" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1162, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1164, - "name": "claimExplorerUrl", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The blockchain explorer URL for the claim transaction." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 41, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L41" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1163, - "name": "claimHash", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The transaction hash for the claim transaction." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 36, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L36" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1166, - "name": "transferExplorerUrl", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The blockchain explorer URL for the transfer transaction.\nThis hash is undefined if the claim directly sent the token to the buyer's wallet." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 53, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L53" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - }, - { - "id": 1165, - "name": "transferHash", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The transaction hash for the transfer transaction.\nThis hash is undefined if the claim directly sent the token to the buyer's wallet." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 47, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L47" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1164, - 1163, - 1166, - 1165 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 32, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L32" - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1159, - 1158, - 1167, - 1160, - 1161 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 14, - "character": 27, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L14" - } - ] - } - } - }, - { - "id": 207, - "name": "Coin98WalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coin98/coin98Wallet.tsx", - "line": 20, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coin98/coin98Wallet.tsx#L20" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 208, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 209, - "name": "projectId", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "When connecting Coin98 using the QR Code - Wallet Connect connector is used which requires a project id.\nThis project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.\n\nhttps://docs.walletconnect.com/2.0/web3modal/options#projectid-required" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coin98/coin98Wallet.tsx", - "line": 27, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coin98/coin98Wallet.tsx#L27" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 210, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If true, the wallet will be tagged as \"recommended\" in ConnectWallet Modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coin98/coin98Wallet.tsx", - "line": 32, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coin98/coin98Wallet.tsx#L32" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 211, - "name": "wcModal", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Specify whether to open the official Wallet Connect Modal when connecting the wallet if no injected MetaMask provider is found when connecting the wallet.\n\nThis should not be set if you are using ConnectWallet component and only when manually connecting the wallet using a hook like " - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": ".\n\nYou can set it to " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": " or a configuration object to enable the Wallet Connect Modal." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coin98/coin98Wallet.tsx", - "line": 41, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coin98/coin98Wallet.tsx#L41" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 212, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 213, - "name": "qrModalOptions", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Configure the style of Wallet Connect Modal." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coin98/coin98Wallet.tsx", - "line": 46, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coin98/coin98Wallet.tsx#L46" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/connectors/wallet-connect/qrModalOptions.d.ts", - "qualifiedName": "QRModalOptions" - }, - "name": "QRModalOptions", - "package": "@thirdweb-dev/wallets" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 213 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coin98/coin98Wallet.tsx", - "line": 42, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coin98/coin98Wallet.tsx#L42" - } - ] - } - }, - { - "type": "intrinsic", - "name": "boolean" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 209, - 210, - 211 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coin98/coin98Wallet.tsx", - "line": 20, - "character": 40, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coin98/coin98Wallet.tsx#L20" - } - ] - } - } - }, - { - "id": 42, - "name": "CoinbaseWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coinbase/coinbaseWallet.tsx", - "line": 16, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coinbase/coinbaseWallet.tsx#L16" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 43, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 44, - "name": "qrmodal", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Whether to use the Coinbase's default QR Code modal or show the custom UI in ConnectWallet Modal\n\nThe default is " - }, - { - "kind": "code", - "text": "`\"custom\"`" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coinbase/coinbaseWallet.tsx", - "line": 22, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coinbase/coinbaseWallet.tsx#L22" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "coinbase" - }, - { - "type": "literal", - "value": "custom" - } - ] - } - }, - { - "id": 45, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If true, the wallet will be tagged as \"recommended\" in ConnectWallet Modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coinbase/coinbaseWallet.tsx", - "line": 27, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coinbase/coinbaseWallet.tsx#L27" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 44, - 45 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coinbase/coinbaseWallet.tsx", - "line": 16, - "character": 42, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coinbase/coinbaseWallet.tsx#L16" - } - ] - } - } - }, - { - "id": 735, - "name": "ConnectEmbedProps", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx", - "line": 32, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx#L32" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 736, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 742, - "name": "auth", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Enforce that users must sign in with their wallet using [auth](https://portal.thirdweb.com/auth) after connecting their wallet.\n\nThis requires the " - }, - { - "kind": "code", - "text": "`authConfig`" - }, - { - "kind": "text", - "text": " prop to be set on the [" - }, - { - "kind": "code", - "text": "`ThirdWebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider) component." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx", - "line": 79, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx#L79" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 743, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 744, - "name": "loginOptional", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "specify whether signing in is optional or not.\n\nBy default it is " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": " ( sign in is required ) if " - }, - { - "kind": "code", - "text": "`authConfig`" - }, - { - "kind": "text", - "text": " is set on [" - }, - { - "kind": "code", - "text": "`ThirdWebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider)" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx", - "line": 85, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx#L85" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 745, - "name": "onLogin", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Callback to be called after user signs in with their wallet" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx", - "line": 89, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx#L89" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 746, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx", - "line": 89, - "character": 14, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx#L89" - } - ], - "signatures": [ - { - "id": 747, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "parameters": [ - { - "id": 748, - "name": "token", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 749, - "name": "onLogout", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Callback to be called after user signs out" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx", - "line": 93, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx#L93" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 750, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx", - "line": 93, - "character": 15, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx#L93" - } - ], - "signatures": [ - { - "id": 751, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 744, - 745, - 749 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx", - "line": 79, - "character": 9, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx#L79" - } - ] - } - } - }, - { - "id": 737, - "name": "className", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Class name to be added to the root element of ConnectEmbed" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx", - "line": 36, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx#L36" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 752, - "name": "onConnect", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Callback to be called on successful connection of wallet. The callback is called with the connected wallet instance as the first argument\n\n" - }, - { - "kind": "code", - "text": "```tsx\n {\n console.log(\"connected to\", wallet)\n }}\n/>\n```" - }, - { - "kind": "text", - "text": "\n\nNote that this does not include the sign in, If you want to call a callback after user connects AND signs in with their wallet, use " - }, - { - "kind": "code", - "text": "`auth.onLogin`" - }, - { - "kind": "text", - "text": " prop instead\n\n" - }, - { - "kind": "code", - "text": "```tsx\n {\n console.log(\"wallet connected and signed in\")\n }\n }}\n/>\n```" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx", - "line": 120, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx#L120" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 753, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx", - "line": 120, - "character": 14, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx#L120" - } - ], - "signatures": [ - { - "id": 754, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "parameters": [ - { - "id": 755, - "name": "wallet", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletInstance" - }, - "name": "WalletInstance", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 741, - "name": "privacyPolicyUrl", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If provided, Embed will show a Privacy Policy message at the bottom with below link" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx", - "line": 72, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx#L72" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 756, - "name": "showThirdwebBranding", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "By default, A \"Powered by Thirdweb\" branding is shown at the bottom of the embed.\n\nIf you want to hide it, set this to " - }, - { - "kind": "code", - "text": "`false`" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\n\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx", - "line": 132, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx#L132" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 739, - "name": "style", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "CSS styles to be applied to the root element of ConnectEmbed" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx", - "line": 62, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx#L62" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.CSSProperties" - }, - "name": "React.CSSProperties", - "package": "@types/react" - } - }, - { - "id": 740, - "name": "termsOfServiceUrl", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If provided, Embed will show a Terms of Service message at the bottom with below link" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx", - "line": 67, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx#L67" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 738, - "name": "theme", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "theme for the ConnectEmbed\n\nIf a theme is set on the [" - }, - { - "kind": "code", - "text": "`ThirdWebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider) component, it will be used as the default theme for all thirdweb components, else the default will be \"dark\"\n\ntheme can be set to either \"dark\" or \"light\" or a custom theme object.\n\nYou can also import " - }, - { - "kind": "code", - "text": "`lightTheme`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`darkTheme`" - }, - { - "kind": "text", - "text": " functions from " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/react`" - }, - { - "kind": "text", - "text": " to use the default themes as base and overrides parts of it." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nimport { lightTheme } from \"@thirdweb-dev/react\";\nconst customTheme = lightTheme({\n colors: {\n modalBg: 'red'\n }\n})\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx", - "line": 57, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx#L57" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "dark" - }, - { - "type": "literal", - "value": "light" - }, - { - "type": "reference", - "target": 230, - "name": "Theme", - "package": "@thirdweb-dev/react" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 742, - 737, - 752, - 741, - 756, - 739, - 740, - 738 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx", - "line": 32, - "character": 32, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx#L32" - } - ] - } - } - }, - { - "id": 654, - "name": "ConnectWalletProps", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 39, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L39" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 655, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 665, - "name": "auth", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Enforce that users must sign in with their wallet using [auth](https://portal.thirdweb.com/wallets/auth) after connecting their wallet.\n\nThis requires the " - }, - { - "kind": "code", - "text": "`authConfig`" - }, - { - "kind": "text", - "text": " prop to be set on the [" - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider) component." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 126, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L126" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 666, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 667, - "name": "loginOptional", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "specify whether signing in is optional or not.\n\nBy default it is " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": " ( sign in required ) if " - }, - { - "kind": "code", - "text": "`authConfig`" - }, - { - "kind": "text", - "text": " is set on [" - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider)" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 132, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L132" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 668, - "name": "onLogin", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Callback to be called after user signs in with their wallet" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 136, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L136" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 669, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 136, - "character": 14, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L136" - } - ], - "signatures": [ - { - "id": 670, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "parameters": [ - { - "id": 671, - "name": "token", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 672, - "name": "onLogout", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Callback to be called after user signs out" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 140, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L140" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 673, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 140, - "character": 15, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L140" - } - ], - "signatures": [ - { - "id": 674, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 667, - 668, - 672 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 126, - "character": 9, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L126" - } - ] - } - } - }, - { - "id": 658, - "name": "btnTitle", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "set custom label for the button.\n\nThe default is " - }, - { - "kind": "code", - "text": "`\"Connect\"`" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\n\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 81, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L81" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 656, - "name": "className", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "CSS class to apply to the button element\n\nFor some CSS properties, you may need to use the !important to override the default styles\n\n" - }, - { - "kind": "code", - "text": "```tsx\n\n```" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 49, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L49" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 662, - "name": "detailsBtn", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Render a custom button to display connected wallet details instead of the default one\n\n" - }, - { - "kind": "code", - "text": "```tsx\nconst address = useAddress();\n\n {\n return (\n \n )\n }}\n/>\n```" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 119, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L119" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 663, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 119, - "character": 15, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L119" - } - ], - "signatures": [ - { - "id": 664, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "__global.JSX.Element" - }, - "name": "JSX.Element", - "package": "@types/react", - "qualifiedName": "__global.JSX.Element" - } - } - ] - } - } - }, - { - "id": 694, - "name": "detailsModalFooter", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Render custom UI at the bottom of the ConnectWallet Details Modal" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\n {\n const { close } = props;\n return
...
\n })\n/>\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 391, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L391" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 695, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 391, - "character": 23, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L391" - } - ], - "signatures": [ - { - "id": 696, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "parameters": [ - { - "id": 697, - "name": "props", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "props passed to the footer component which includes a function to close the modal" - } - ] - }, - "type": { - "type": "reflection", - "declaration": { - "id": 698, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 699, - "name": "close", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 391, - "character": 33, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L391" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 700, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 391, - "character": 40, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L391" - } - ], - "signatures": [ - { - "id": 701, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 699 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 391, - "character": 31, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L391" - } - ] - } - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "__global.JSX.Element" - }, - "name": "JSX.Element", - "package": "@types/react", - "qualifiedName": "__global.JSX.Element" - } - } - ] - } - } - }, - { - "id": 687, - "name": "displayBalanceToken", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Display the balance of a token instead of the native token in ConnectWallet details button." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nimport { Base } from \"@thirdweb-dev/chains\";\n\n\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 326, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L326" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "number" - }, - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "Record", - "package": "typescript" - } - }, - { - "id": 680, - "name": "hideBuyButton", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hide the \"Buy\" button in the ConnectWallet Details Modal to allow users to Buy tokens using other tokens (Swap) or using their Credit/Debit card (Fiat onramp)\n\nBy default it is " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": " - Buy button is shown" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\n\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 202, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L202" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 689, - "name": "hideDisconnect", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hide the \"Disconnect Wallet\" button in the ConnectWallet Details Modal.\n\nBy default it is " - }, - { - "kind": "code", - "text": "`false`" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\n\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 350, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L350" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 679, - "name": "hideReceiveButton", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hide the \"Receive\" button in the ConnectWallet Details Modal\n\nBy default it is " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": " - Receive button is shown" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\n\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 190, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L190" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 678, - "name": "hideSendButton", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hide the \"Send\" button in the ConnectWallet Details Modal\n\nBy default it is " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": " - Send button is shown" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\n\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 178, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L178" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 688, - "name": "hideSwitchToPersonalWallet", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hide the \"Switch to Personal wallet\" option in the wallet modal which is shown when wallet is connected to either Smart Account or Safe.\n\nBy default it is " - }, - { - "kind": "code", - "text": "`false`" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\n\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 338, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L338" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 677, - "name": "hideTestnetFaucet", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hide the \"Request Testnet funds\" link in ConnectWallet Details Modal when user is connected to a testnet.\n\nBy default it is " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": ", If you want to show the \"Request Testnet funds\" link when user is connected to a testnet, set this prop to " - }, - { - "kind": "code", - "text": "`false`" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\n\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 166, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L166" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 682, - "name": "modalSize", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Set the size of the modal - " - }, - { - "kind": "code", - "text": "`compact`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`wide`" - }, - { - "kind": "text", - "text": " on desktop\n\nModal size is always " - }, - { - "kind": "code", - "text": "`compact`" - }, - { - "kind": "text", - "text": " on mobile\n\nBy default it is " - }, - { - "kind": "code", - "text": "`\"wide\"`" - }, - { - "kind": "text", - "text": " for desktop." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 222, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L222" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "compact" - }, - { - "type": "literal", - "value": "wide" - } - ] - } - }, - { - "id": 660, - "name": "modalTitle", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Change the title of ConnectWallet Modal\n\nThe default is " - }, - { - "kind": "code", - "text": "`\"Connect\"`" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 93, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L93" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 661, - "name": "modalTitleIconUrl", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Replace the thirdweb icon next to modalTitle and set your own iconUrl\n\nSet to empty string to hide the icon" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 100, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L100" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 676, - "name": "networkSelector", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "customize the Network selector shown" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 151, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L151" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reference", - "target": 760, - "name": "NetworkSelectorProps", - "package": "@thirdweb-dev/react" - }, - { - "type": "union", - "types": [ - { - "type": "literal", - "value": "theme" - }, - { - "type": "literal", - "value": "onClose" - }, - { - "type": "literal", - "value": "chains" - }, - { - "type": "literal", - "value": "open" - } - ] - } - ], - "name": "Omit", - "package": "typescript" - } - }, - { - "id": 690, - "name": "onConnect", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Callback to be called on successful connection of wallet. The connected wallet instance is passed as an argument to the callback\n\n" - }, - { - "kind": "code", - "text": "```tsx\n {\n console.log(\"connected to\", wallet)\n }}\n/>\n```" - }, - { - "kind": "text", - "text": "\n\nNote that this does not include the sign in, If you want to call a callback after user connects AND signs in with their wallet, use " - }, - { - "kind": "code", - "text": "`auth.onLogin`" - }, - { - "kind": "text", - "text": " prop instead\n\n" - }, - { - "kind": "code", - "text": "```tsx\n {\n console.log(\"wallet connected and signed in\")\n }\n }}\n/>\n```" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 376, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L376" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 691, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 376, - "character": 14, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L376" - } - ], - "signatures": [ - { - "id": 692, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "parameters": [ - { - "id": 693, - "name": "wallet", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletInstance" - }, - "name": "WalletInstance", - "package": "@thirdweb-dev/react-core" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 684, - "name": "privacyPolicyUrl", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "URL of the \"privacy policy\" page\n\nIf provided, Modal will show a Privacy Policy message at the bottom with below link" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\n\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 246, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L246" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 702, - "name": "showThirdwebBranding", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "By default ConnectWallet shows \"Powered by Thirdweb\" branding at the bottom of the ConnectWallet Modal.\n\nIf you want to hide the branding, set this prop to " - }, - { - "kind": "code", - "text": "`false`" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\n\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 403, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L403" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 675, - "name": "style", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "CSS styles to apply to the button element" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 146, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L146" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.CSSProperties" - }, - "name": "React.CSSProperties", - "package": "@types/react" - } - }, - { - "id": 686, - "name": "supportedTokens", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Customize the tokens shown in the \"Send Funds\" screen for various networks.\n\nBy default, The \"Send Funds\" screen shows a few popular tokens for default chains and the native token. For other chains it only shows the native token." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "supportedTokens prop allows you to customize this list as shown below which shows \"Dai Stablecoin\" when users wallet is connected to the \"Base\" mainnet.\n\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { ConnectWallet } from '@thirdweb-dev/react';\nimport { Base } from '@thirdweb-dev/chains';\n\nfunction Example() {\n return (\n\t\t\n\t);\n}\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 310, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L310" - } - ], - "type": { - "type": "reference", - "target": 994, - "name": "SupportedTokens", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 659, - "name": "switchNetworkBtnTitle", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Set a custom label for the \"Switch Network\" button" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 86, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L86" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 681, - "name": "switchToActiveChain", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Whether to show \"Switch Network\" button if the wallet is connected,\nbut it is not connected to the " - }, - { - "kind": "code", - "text": "`activeChain`" - }, - { - "kind": "text", - "text": " provided in [" - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider)\n\nPlease, note that if you support multiple networks in your app this prop should\nbe set to " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": " to allow users to switch between networks.\n\nBy default it is " - }, - { - "kind": "code", - "text": "`false`" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 213, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L213" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 683, - "name": "termsOfServiceUrl", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "URL of the \"terms of service\" page\n\nIf provided, Modal will show a Terms of Service message at the bottom with below link" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\n\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 234, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L234" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 657, - "name": "theme", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Set the theme for the button and modal.\n\nBy default it is set to \"dark\" if " - }, - { - "kind": "code", - "text": "`theme`" - }, - { - "kind": "text", - "text": " is not set on [" - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider)\nIf a " - }, - { - "kind": "code", - "text": "`theme`" - }, - { - "kind": "text", - "text": " is set on [" - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider) then that theme will be used by default which can be overridden by setting " - }, - { - "kind": "code", - "text": "`theme`" - }, - { - "kind": "text", - "text": " prop on [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component\n\ntheme can be set to either \"dark\" or \"light\" or a custom theme object. You can also import " - }, - { - "kind": "code", - "text": "`lightTheme`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`darkTheme`" - }, - { - "kind": "text", - "text": " functions from " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/react`" - }, - { - "kind": "text", - "text": " to use the default themes as base and overrides parts of it." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nimport { lightTheme } from \"@thirdweb-dev/react\";\nconst customTheme = lightTheme({\n colors: {\n modalBg: 'red'\n }\n})\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 69, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L69" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "dark" - }, - { - "type": "literal", - "value": "light" - }, - { - "type": "reference", - "target": 230, - "name": "Theme", - "package": "@thirdweb-dev/react" - } - ] - } - }, - { - "id": 685, - "name": "welcomeScreen", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Customize the welcome screen. This prop is only applicable when modalSize prop is set to \"wide\". On \"wide\" Modal size, a welcome screen is shown on the right side of the modal.\n\nThis screen can be customized in two ways\n\n#### 1. Customize Metadata and Image\n\n" - }, - { - "kind": "code", - "text": "```tsx\n\n```" - }, - { - "kind": "text", - "text": "\n\n#### 2. Render Custom Component\n\n" - }, - { - "kind": "code", - "text": "```tsx\n {\n return \n}}\n/>\n```" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 277, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L277" - } - ], - "type": { - "type": "reference", - "target": 703, - "name": "WelcomeScreen", - "package": "@thirdweb-dev/react" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 665, - 658, - 656, - 662, - 694, - 687, - 680, - 689, - 679, - 678, - 688, - 677, - 682, - 660, - 661, - 676, - 690, - 684, - 702, - 675, - 686, - 659, - 681, - 683, - 657, - 685 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 39, - "character": 33, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L39" - } - ] - } - } - }, - { - "id": 177, - "name": "CoreWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coreWallet/coreWallet.tsx", - "line": 24, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coreWallet/coreWallet.tsx#L24" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 178, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 179, - "name": "projectId", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "When connecting Core using the QR Code - Wallet Connect connector is used which requires a project id.\nThis project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.\n\nhttps://docs.walletconnect.com/2.0/web3modal/options#projectid-required" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coreWallet/coreWallet.tsx", - "line": 31, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coreWallet/coreWallet.tsx#L31" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 180, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If true, the wallet will be tagged as \"recommended\" in ConnectWallet Modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coreWallet/coreWallet.tsx", - "line": 36, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coreWallet/coreWallet.tsx#L36" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 181, - "name": "wcModal", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Specify whether to open the official Wallet Connect Modal when connecting the wallet if no injected MetaMask provider is found when connecting the wallet.\n\nThis should not be set if you are using ConnectWallet component and only when manually connecting the wallet using a hook like " - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": ".\n\nYou can set it to " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": " or a configuration object to enable the Wallet Connect Modal." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coreWallet/coreWallet.tsx", - "line": 45, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coreWallet/coreWallet.tsx#L45" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 182, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 183, - "name": "qrModalOptions", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Configure the style of Wallet Connect Modal." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coreWallet/coreWallet.tsx", - "line": 50, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coreWallet/coreWallet.tsx#L50" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/connectors/wallet-connect/qrModalOptions.d.ts", - "qualifiedName": "QRModalOptions" - }, - "name": "QRModalOptions", - "package": "@thirdweb-dev/wallets" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 183 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coreWallet/coreWallet.tsx", - "line": 46, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coreWallet/coreWallet.tsx#L46" - } - ] - } - }, - { - "type": "intrinsic", - "name": "boolean" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 179, - 180, - 181 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coreWallet/coreWallet.tsx", - "line": 24, - "character": 38, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coreWallet/coreWallet.tsx#L24" - } - ] - } - } - }, - { - "id": 187, - "name": "CryptoDefiWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/defiWallet/cryptoDefiWallet.tsx", - "line": 24, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/defiWallet/cryptoDefiWallet.tsx#L24" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 188, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 189, - "name": "projectId", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "When connecting Defi wallet using the QR Code - Wallet Connect connector is used which requires a project id.\nThis project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.\n\nhttps://docs.walletconnect.com/2.0/web3modal/options#projectid-required" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/defiWallet/cryptoDefiWallet.tsx", - "line": 31, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/defiWallet/cryptoDefiWallet.tsx#L31" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 190, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If true, the wallet will be tagged as \"recommended\" in ConnectWallet Modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/defiWallet/cryptoDefiWallet.tsx", - "line": 36, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/defiWallet/cryptoDefiWallet.tsx#L36" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 191, - "name": "wcModal", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Specify whether to open the official Wallet Connect Modal when connecting the wallet if no injected MetaMask provider is found when connecting the wallet.\n\nThis should not be set if you are using ConnectWallet component and only when manually connecting the wallet using a hook like " - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": ".\n\nYou can set it to " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": " or a configuration object to enable the Wallet Connect Modal." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/defiWallet/cryptoDefiWallet.tsx", - "line": 45, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/defiWallet/cryptoDefiWallet.tsx#L45" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 192, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 193, - "name": "qrModalOptions", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Configure the style of Wallet Connect Modal." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/defiWallet/cryptoDefiWallet.tsx", - "line": 50, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/defiWallet/cryptoDefiWallet.tsx#L50" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/connectors/wallet-connect/qrModalOptions.d.ts", - "qualifiedName": "QRModalOptions" - }, - "name": "QRModalOptions", - "package": "@thirdweb-dev/wallets" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 193 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/defiWallet/cryptoDefiWallet.tsx", - "line": 46, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/defiWallet/cryptoDefiWallet.tsx#L46" - } - ] - } - }, - { - "type": "intrinsic", - "name": "boolean" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 189, - 190, - 191 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/defiWallet/cryptoDefiWallet.tsx", - "line": 24, - "character": 44, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/defiWallet/cryptoDefiWallet.tsx#L24" - } - ] - } - } - }, - { - "id": 866, - "name": "DefaultChains", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Array of default supported chains by the thirdweb SDK" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/thirdweb-provider.tsx", - "line": 164, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/thirdweb-provider.tsx#L164" - } - ], - "type": { - "type": "query", - "queryType": { - "type": "reference", - "target": { - "sourceFileName": "../chains/src/index.ts", - "qualifiedName": "defaultChains" - }, - "name": "defaultChains", - "package": "@thirdweb-dev/chains", - "preferValues": true - } - } - }, - { - "id": 50, - "name": "EmbeddedWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/embeddedWallet/types.ts", - "line": 11, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/embeddedWallet/types.ts#L11" - } - ], - "type": { - "type": "intersection", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/connectors/embedded-wallet/types.ts", - "qualifiedName": "EmbeddedWalletAdditionalOptions" - }, - "name": "EmbeddedWalletAdditionalOptions", - "package": "@thirdweb-dev/wallets" - }, - { - "type": "union", - "types": [ - { - "type": "literal", - "value": "chain" - }, - { - "type": "literal", - "value": "clientId" - } - ] - } - ], - "name": "Omit", - "package": "typescript" - }, - { - "type": "reflection", - "declaration": { - "id": 51, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 53, - "name": "auth", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Choose which auth providers to show in the wallet connection UI\n\nBy default, all auth methods are enabled, which is equivalent to setting the following:\n\n" - }, - { - "kind": "code", - "text": "```ts\n{\n options: [\"email\", \"google\", \"apple\", \"facebook\"]\n}\n```" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/embeddedWallet/types.ts", - "line": 31, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/embeddedWallet/types.ts#L31" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 54, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 55, - "name": "options", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/embeddedWallet/types.ts", - "line": 32, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/embeddedWallet/types.ts#L32" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "src/wallet/wallets/embeddedWallet/types.ts", - "qualifiedName": "AuthOption" - }, - "name": "AuthOption", - "package": "@thirdweb-dev/react" - } - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 55 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/embeddedWallet/types.ts", - "line": 31, - "character": 9, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/embeddedWallet/types.ts#L31" - } - ] - } - } - }, - { - "id": 52, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If true, the wallet will be tagged as \"recommended\" in ConnectWallet Modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/embeddedWallet/types.ts", - "line": 18, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/embeddedWallet/types.ts#L18" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 53, - 52 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/embeddedWallet/types.ts", - "line": 14, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/embeddedWallet/types.ts#L14" - } - ] - } - } - ] - } - }, - { - "id": 594, - "name": "ExtensionAndQRScreensLocale", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@locale", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 4, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L4" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 595, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 596, - "name": "connectionScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 5, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L5" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 597, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 598, - "name": "failed", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 6, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L6" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 599, - "name": "inProgress", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 7, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L7" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 600, - "name": "instruction", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 8, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L8" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 601, - "name": "retry", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 9, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L9" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 598, - 599, - 600, - 601 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 5, - "character": 20, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L5" - } - ] - } - } - }, - { - "id": 602, - "name": "getStartedLink", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 11, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L11" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 603, - "name": "getStartedScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 12, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L12" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 604, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 605, - "name": "instruction", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 12, - "character": 22, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L12" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 605 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 12, - "character": 20, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L12" - } - ] - } - } - }, - { - "id": 606, - "name": "scanScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 13, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L13" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 607, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 608, - "name": "instruction", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 13, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L13" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 608 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 13, - "character": 14, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L13" - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 596, - 602, - 603, - 606 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 4, - "character": 42, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L4" - } - ] - } - } - }, - { - "id": 60, - "name": "FrameWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/frame/frameWallet.tsx", - "line": 8, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/frame/frameWallet.tsx#L8" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 61, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 62, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If true, the wallet will be tagged as \"recommended\" in ConnectWallet Modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/frame/frameWallet.tsx", - "line": 12, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/frame/frameWallet.tsx#L12" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 62 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/frame/frameWallet.tsx", - "line": 8, - "character": 39, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/frame/frameWallet.tsx#L8" - } - ] - } - } - }, - { - "id": 217, - "name": "ImTokenWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/imtoken/imTokenWallet.tsx", - "line": 16, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/imtoken/imTokenWallet.tsx#L16" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 218, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 219, - "name": "projectId", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/imtoken/imTokenWallet.tsx", - "line": 17, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/imtoken/imTokenWallet.tsx#L17" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 220, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/imtoken/imTokenWallet.tsx", - "line": 18, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/imtoken/imTokenWallet.tsx#L18" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 221, - "name": "wcModal", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Specify whether to open the official Wallet Connect Modal when connecting the wallet if no injected MetaMask provider is found when connecting the wallet.\n\nThis should not be set if you are using ConnectWallet component and only when manually connecting the wallet using a hook like " - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": ".\n\nYou can set it to " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": " or a configuration object to enable the Wallet Connect Modal." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/imtoken/imTokenWallet.tsx", - "line": 27, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/imtoken/imTokenWallet.tsx#L27" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 222, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 223, - "name": "qrModalOptions", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Configure the style of Wallet Connect Modal." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/imtoken/imTokenWallet.tsx", - "line": 32, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/imtoken/imTokenWallet.tsx#L32" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/connectors/wallet-connect/qrModalOptions.d.ts", - "qualifiedName": "QRModalOptions" - }, - "name": "QRModalOptions", - "package": "@thirdweb-dev/wallets" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 223 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/imtoken/imTokenWallet.tsx", - "line": 28, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/imtoken/imTokenWallet.tsx#L28" - } - ] - } - }, - { - "type": "intrinsic", - "name": "boolean" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 219, - 220, - 221 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/imtoken/imTokenWallet.tsx", - "line": 16, - "character": 41, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/imtoken/imTokenWallet.tsx#L16" - } - ] - } - } - }, - { - "id": 1069, - "name": "Locale", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/constants/style.d.ts", - "line": 14, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "en" - }, - { - "type": "literal", - "value": "fr" - }, - { - "type": "literal", - "value": "es" - }, - { - "type": "literal", - "value": "it" - }, - { - "type": "literal", - "value": "de" - }, - { - "type": "literal", - "value": "ja" - }, - { - "type": "literal", - "value": "ko" - }, - { - "type": "literal", - "value": "zh" - } - ] - } - }, - { - "id": 66, - "name": "LocalWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/localWallet/types.ts", - "line": 7, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/localWallet/types.ts#L7" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 67, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 68, - "name": "persist", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": ", the encrypted wallet JSON will be stored on localStorage with user's password.\nthe user will need to enter their password again when they visit the site. Because of this, the wallet can not be auto connected.\n\nIf " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": ", wallet will not be stored, and no password will be required to connect.\nthe wallet will be lost when the user leaves or reloads the page.\n\nBy default, it is set to " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": "." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/localWallet/types.ts", - "line": 17, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/localWallet/types.ts#L17" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 68 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/localWallet/types.ts", - "line": 7, - "character": 39, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/localWallet/types.ts#L7" - } - ] - } - } - }, - { - "id": 72, - "name": "MagicEdenWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/magicEden/magicEdenWallet.tsx", - "line": 9, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/magicEden/magicEdenWallet.tsx#L9" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 73, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 74, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": ", the wallet will be tagged as \"recommended\" in ConnectWallet Modal. Default is " - }, - { - "kind": "code", - "text": "`false`" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/magicEden/magicEdenWallet.tsx", - "line": 13, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/magicEden/magicEdenWallet.tsx#L13" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 74 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/magicEden/magicEdenWallet.tsx", - "line": 9, - "character": 43, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/magicEden/magicEdenWallet.tsx#L9" - } - ] - } - } - }, - { - "id": 78, - "name": "MagicWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/magic/magicLink.tsx", - "line": 46, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/magic/magicLink.tsx#L46" - } - ], - "type": { - "type": "intersection", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/magic.ts", - "qualifiedName": "MagicLinkAdditionalOptions" - }, - "name": "MagicLinkAdditionalOptions", - "package": "@thirdweb-dev/wallets" - }, - { - "type": "reflection", - "declaration": { - "id": 79, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 80, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If true, the wallet will be tagged as \"recommended\" in ConnectWallet Modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/magic/magicLink.tsx", - "line": 50, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/magic/magicLink.tsx#L50" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 80 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/magic/magicLink.tsx", - "line": 46, - "character": 68, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/magic/magicLink.tsx#L46" - } - ] - } - } - ] - } - }, - { - "id": 84, - "name": "MetamaskWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/metamask/metamaskWallet.tsx", - "line": 14, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/metamask/metamaskWallet.tsx#L14" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 85, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 88, - "name": "connectionMethod", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Specify how the connection to metamask app should be established if the user is on a mobile device\n\nThere are two options: \"walletconnect\" and \"browser\"\n\n1. \"walletconnect\" - User will be redirected to MetaMask app and upon successful connection, user can return back to the web page.\n2. \"browser\" - User will be redirected to MetaMask app and the web page will be opened in MetaMask browser.\n\nDefault is " - }, - { - "kind": "code", - "text": "`\"walletconnect\"`" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/metamask/metamaskWallet.tsx", - "line": 38, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/metamask/metamaskWallet.tsx#L38" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "walletConnect" - }, - { - "type": "literal", - "value": "metamaskBrowser" - } - ] - } - }, - { - "id": 86, - "name": "projectId", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "When connecting MetaMask using the QR Code - Wallet Connect connector is used which requires a project id.\nThis project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.\n\nhttps://docs.walletconnect.com/2.0/web3modal/options#projectid-required" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/metamask/metamaskWallet.tsx", - "line": 21, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/metamask/metamaskWallet.tsx#L21" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 87, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If true, the wallet will be tagged as \"recommended\" in ConnectWallet Modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/metamask/metamaskWallet.tsx", - "line": 26, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/metamask/metamaskWallet.tsx#L26" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 89, - "name": "wcModal", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Specify whether to open the official Wallet Connect Modal when connecting the wallet if no injected MetaMask provider is found when connecting the wallet.\n\nThis should not be set if you are using ConnectWallet component and only when manually connecting the wallet using a hook like " - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": ".\n\nYou can set it to " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": " or a configuration object to enable the Wallet Connect Modal." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/metamask/metamaskWallet.tsx", - "line": 47, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/metamask/metamaskWallet.tsx#L47" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 90, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 91, - "name": "qrModalOptions", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Configure the style of Wallet Connect Modal." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/metamask/metamaskWallet.tsx", - "line": 52, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/metamask/metamaskWallet.tsx#L52" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/connectors/wallet-connect/qrModalOptions.d.ts", - "qualifiedName": "QRModalOptions" - }, - "name": "QRModalOptions", - "package": "@thirdweb-dev/wallets" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 91 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/metamask/metamaskWallet.tsx", - "line": 48, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/metamask/metamaskWallet.tsx#L48" - } - ] - } - }, - { - "type": "intrinsic", - "name": "boolean" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 88, - 86, - 87, - 89 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/metamask/metamaskWallet.tsx", - "line": 14, - "character": 42, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/metamask/metamaskWallet.tsx#L14" - } - ] - } - } - }, - { - "id": 613, - "name": "ModalConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 147, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L147" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 614, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 622, - "name": "auth", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The object contains the following properties to customize the authentication\n- " - }, - { - "kind": "code", - "text": "`loginOptional`" - }, - { - "kind": "text", - "text": " - specify whether signing in is optional or not. By default it is " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": " ( Sign in is required ) if " - }, - { - "kind": "code", - "text": "`authConfig`" - }, - { - "kind": "text", - "text": " is set on [" - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider)\n- " - }, - { - "kind": "code", - "text": "`onLogin`" - }, - { - "kind": "text", - "text": " - Callback to be called after user signs in with their wallet\n- " - }, - { - "kind": "code", - "text": "`onLogout`" - }, - { - "kind": "text", - "text": " - Callback to be called after user signs out" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 229, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L229" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 623, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 624, - "name": "loginOptional", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 230, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L230" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 625, - "name": "onLogin", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 231, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L231" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 626, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 231, - "character": 14, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L231" - } - ], - "signatures": [ - { - "id": 627, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "parameters": [ - { - "id": 628, - "name": "token", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 629, - "name": "onLogout", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 232, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L232" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 630, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 232, - "character": 15, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L232" - } - ], - "signatures": [ - { - "id": 631, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 624, - 625, - 629 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 229, - "character": 9, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L229" - } - ] - } - } - }, - { - "id": 617, - "name": "modalSize", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Set the size of the modal - " - }, - { - "kind": "code", - "text": "`compact`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`wide`" - }, - { - "kind": "text", - "text": " on desktop\n\nModal size is always " - }, - { - "kind": "code", - "text": "`compact`" - }, - { - "kind": "text", - "text": " on mobile\n\nBy default it is " - }, - { - "kind": "code", - "text": "`\"wide\"`" - }, - { - "kind": "text", - "text": " for desktop." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 177, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L177" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "wide" - }, - { - "type": "literal", - "value": "compact" - } - ] - } - }, - { - "id": 632, - "name": "onConnect", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Callback to be called on successful connection of wallet\n\nNote that this does not include the sign in, If you want to call a callback after user connects AND signs in with their wallet, use " - }, - { - "kind": "code", - "text": "`auth.onLogin`" - }, - { - "kind": "text", - "text": " instead" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 239, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L239" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 633, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 239, - "character": 14, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L239" - } - ], - "signatures": [ - { - "id": 634, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 619, - "name": "privacyPolicyUrl", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "URL of the \"privacy policy\" page\n\nIf provided, Modal will show a Privacy Policy message at the bottom with below link" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 189, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L189" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 635, - "name": "showThirdwebBranding", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "By default the ConnectWallet Modal shows \"powered by thirdweb\" branding at the bottom of the modal.\n\nIf you want to hide the branding, set this to " - }, - { - "kind": "code", - "text": "`false`" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 246, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L246" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 618, - "name": "termsOfServiceUrl", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "URL of the \"terms of service\" page\n\nIf provided, Modal will show a Terms of Service message at the bottom with below link" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 183, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L183" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 616, - "name": "theme", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Set the theme for the Modal\n\nBy default it is set to \"dark\" if " - }, - { - "kind": "code", - "text": "`theme`" - }, - { - "kind": "text", - "text": " is not set on [" - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider)\nIf a " - }, - { - "kind": "code", - "text": "`theme`" - }, - { - "kind": "text", - "text": " is set on [" - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider) then that theme will be used by default\n\ntheme can be set to either " - }, - { - "kind": "code", - "text": "`\"dark\"`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`\"light\"`" - }, - { - "kind": "text", - "text": " or a custom theme object. You can also import " - }, - { - "kind": "code", - "text": "`lightTheme`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`darkTheme`" - }, - { - "kind": "text", - "text": " functions from " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/react`" - }, - { - "kind": "text", - "text": " to use the default themes as base and overrides parts of it.\n\n" - }, - { - "kind": "code", - "text": "```ts\nimport { lightTheme } from \"@thirdweb-dev/react\";\nconst customTheme = lightTheme({\n colors: {\n modalBg: 'red'\n }\n})\n```" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 169, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L169" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "light" - }, - { - "type": "literal", - "value": "dark" - }, - { - "type": "reference", - "target": 230, - "name": "Theme", - "package": "@thirdweb-dev/react" - } - ] - } - }, - { - "id": 615, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Title of the Modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 151, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L151" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 621, - "name": "titleIconUrl", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Replace the thirdweb icon next to modalTitle and set your own iconUrl" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 222, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L222" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 620, - "name": "welcomeScreen", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Customize the welcome screen. This is only applicable when " - }, - { - "kind": "code", - "text": "`modalSize`" - }, - { - "kind": "text", - "text": " is set to \"wide\".\nOn \"wide\" Modal size, a welcome screen is shown on the right side of the modal.\n\nThis screen can be customized in two ways\n\n#### 1. Customize Metadata and Image\n\n" - }, - { - "kind": "code", - "text": "```tsx\nconst welcomeScreen = {\n title: \"your title\",\n subtitle: \"your subtitle\",\n img: {\n src: \"https://your-image-url.png\",\n width: 300,\n height: 50,\n },\n}\n```" - }, - { - "kind": "text", - "text": "\n\n#### 2. Render Custom Component\n\n" - }, - { - "kind": "code", - "text": "```tsx\nconst welcomeScreen = () => {\n return \n}\n```" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 218, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L218" - } - ], - "type": { - "type": "reference", - "target": 703, - "name": "WelcomeScreen", - "package": "@thirdweb-dev/react" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 622, - 617, - 632, - 619, - 635, - 618, - 616, - 615, - 621, - 620 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 147, - "character": 33, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L147" - } - ] - } - } - }, - { - "id": 782, - "name": "NetworkSelectorChainProps", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 38, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L38" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 783, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 784, - "name": "chain", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "code", - "text": "`Chain`" - }, - { - "kind": "text", - "text": " object for the chain to be displayed" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 42, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L42" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../chains/src/index.ts", - "qualifiedName": "Chain" - }, - "name": "Chain", - "package": "@thirdweb-dev/chains" - } - }, - { - "id": 790, - "name": "close", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "function to close the modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 58, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L58" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 791, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 58, - "character": 10, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L58" - } - ], - "signatures": [ - { - "id": 792, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 785, - "name": "switchChain", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "function to be called for switching to the given chain" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 46, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L46" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 786, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 46, - "character": 15, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L46" - } - ], - "signatures": [ - { - "id": 787, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 789, - "name": "switchFailed", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "flag indicating whether the SDK failed to switch to the given chain" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 54, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L54" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 788, - "name": "switching", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "flag indicating whether the SDK is currently switching to the given chain" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 50, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L50" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 784, - 790, - 785, - 789, - 788 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 38, - "character": 40, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L38" - } - ] - } - } - }, - { - "id": 760, - "name": "NetworkSelectorProps", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 61, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L61" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 761, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 767, - "name": "chains", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Array of chains to be displayed in the modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 95, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L95" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../chains/src/index.ts", - "qualifiedName": "Chain" - }, - "name": "Chain", - "package": "@thirdweb-dev/chains" - } - } - }, - { - "id": 763, - "name": "onClose", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Callback to be called when modal is closed by the user" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 87, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L87" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 764, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 87, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L87" - } - ], - "signatures": [ - { - "id": 765, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 779, - "name": "onCustomClick", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Callback to be called when the \"Add Custom Network\" button is clicked\n\nThe \"Add Custom Network\" button is displayed at the bottom of the modal - only if this prop is provided" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 145, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L145" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 780, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 145, - "character": 18, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L145" - } - ], - "signatures": [ - { - "id": 781, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 775, - "name": "onSwitch", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Callback to be called when a chain is successfully switched" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 139, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L139" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 776, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 139, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L139" - } - ], - "signatures": [ - { - "id": 777, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "parameters": [ - { - "id": 778, - "name": "chain", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The new chain that is switched to" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../chains/src/index.ts", - "qualifiedName": "Chain" - }, - "name": "Chain", - "package": "@thirdweb-dev/chains" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 766, - "name": "open", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Specify whether the Modal should be open or closed" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 91, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L91" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 768, - "name": "popularChains", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Array of chains to be displayed under \"Popular\" section" - } - ], - "blockTags": [ - { - "tag": "@deprecated", - "content": [ - { - "kind": "text", - "text": "Use " - }, - { - "kind": "code", - "text": "`sections`" - }, - { - "kind": "text", - "text": " prop instead\n\nIf " - }, - { - "kind": "code", - "text": "`sections`" - }, - { - "kind": "text", - "text": " prop is provided, this prop will be ignored" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 102, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L102" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../chains/src/index.ts", - "qualifiedName": "Chain" - }, - "name": "Chain", - "package": "@thirdweb-dev/chains" - } - } - }, - { - "id": 769, - "name": "recentChains", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Array of chains to be displayed under \"Recent\" section" - } - ], - "blockTags": [ - { - "tag": "@deprecated", - "content": [ - { - "kind": "text", - "text": "Use " - }, - { - "kind": "code", - "text": "`sections`" - }, - { - "kind": "text", - "text": " prop instead\n\nIf " - }, - { - "kind": "code", - "text": "`sections`" - }, - { - "kind": "text", - "text": " prop is provided, this prop will be ignored" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 109, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L109" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../chains/src/index.ts", - "qualifiedName": "Chain" - }, - "name": "Chain", - "package": "@thirdweb-dev/chains" - } - } - }, - { - "id": 774, - "name": "renderChain", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Override how the chain button is rendered in the Modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 133, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L133" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.FC" - }, - "typeArguments": [ - { - "type": "reference", - "target": 782, - "name": "NetworkSelectorChainProps", - "package": "@thirdweb-dev/react" - } - ], - "name": "React.FC", - "package": "@types/react" - } - }, - { - "id": 770, - "name": "sections", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Specify sections of chains to be displayed in the Network Selector Modal" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "To display \"Polygon\", \"Avalanche\" chains under \"Recently used\" section and \"Ethereum\", \"Arbitrum\" chains under \"Popular\" section, you can set the prop with the following value\n" - }, - { - "kind": "code", - "text": "```ts\nimport { Polygon, Avalanche, Ethereum, Arbitrum } from \"@thirdweb-dev/chains\";\n\nconst sections = [\n { label: 'Recently used', chains: [Polygon, Avalanche] },\n { label: 'Popular', chains: [Ethereum, Arbitrum] },\n]\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 125, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L125" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reflection", - "declaration": { - "id": 771, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 773, - "name": "chains", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 127, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L127" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../chains/src/index.ts", - "qualifiedName": "Chain" - }, - "name": "Chain", - "package": "@thirdweb-dev/chains" - } - } - }, - { - "id": 772, - "name": "label", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 126, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L126" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 773, - 772 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 125, - "character": 19, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L125" - } - ] - } - } - } - }, - { - "id": 762, - "name": "theme", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Theme to use in Modal\n\nEither specify string \"dark\" or \"light\" to use the default themes, or provide a custom theme object.\n\nYou can also use " - }, - { - "kind": "code", - "text": "`darkTheme`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`lightTheme`" - }, - { - "kind": "text", - "text": " functions to use the default themes as base and override it." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nimport { darkTheme } from \"@thirdweb-dev/react\";\n\n\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 83, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L83" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "dark" - }, - { - "type": "literal", - "value": "light" - }, - { - "type": "reference", - "target": 230, - "name": "Theme", - "package": "@thirdweb-dev/react" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 767, - 763, - 779, - 775, - 766, - 768, - 769, - 774, - 770, - 762 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx", - "line": 61, - "character": 35, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx#L61" - } - ] - } - } - }, - { - "id": 167, - "name": "OKXWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/okx/okxWallet.tsx", - "line": 9, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/okx/okxWallet.tsx#L9" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 168, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 169, - "name": "projectId", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "When connecting OKX using the QR Code - Wallet Connect connector is used which requires a project id.\nThis project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.\n\nhttps://docs.walletconnect.com/2.0/web3modal/options#projectid-required" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/okx/okxWallet.tsx", - "line": 16, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/okx/okxWallet.tsx#L16" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 170, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If true, the wallet will be tagged as \"recommended\" in ConnectWallet Modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/okx/okxWallet.tsx", - "line": 21, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/okx/okxWallet.tsx#L21" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 171, - "name": "wcModal", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Specify whether to open the official Wallet Connect Modal when connecting the wallet if no injected MetaMask provider is found when connecting the wallet.\n\nThis should not be set if you are using ConnectWallet component and only when manually connecting the wallet using a hook like " - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": ".\n\nYou can set it to " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": " or a configuration object to enable the Wallet Connect Modal." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/okx/okxWallet.tsx", - "line": 30, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/okx/okxWallet.tsx#L30" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 172, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 173, - "name": "qrModalOptions", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Configure the style of Wallet Connect Modal." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/okx/okxWallet.tsx", - "line": 35, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/okx/okxWallet.tsx#L35" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/connectors/wallet-connect/qrModalOptions.d.ts", - "qualifiedName": "QRModalOptions" - }, - "name": "QRModalOptions", - "package": "@thirdweb-dev/wallets" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 173 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/okx/okxWallet.tsx", - "line": 31, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/okx/okxWallet.tsx#L31" - } - ] - } - }, - { - "type": "intrinsic", - "name": "boolean" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 169, - 170, - 171 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/okx/okxWallet.tsx", - "line": 9, - "character": 37, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/okx/okxWallet.tsx#L9" - } - ] - } - } - }, - { - "id": 998, - "name": "OneKeyWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/oneKey/oneKeyWallet.tsx", - "line": 20, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/oneKey/oneKeyWallet.tsx#L20" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 999, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1000, - "name": "projectId", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "When connecting OneKey wallet using the QR Code - Wallet Connect connector is used which requires a project id.\nThis project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.\n\nhttps://docs.walletconnect.com/2.0/web3modal/options#projectid-required" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/oneKey/oneKeyWallet.tsx", - "line": 27, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/oneKey/oneKeyWallet.tsx#L27" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1001, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If true, the wallet will be tagged as \"recommended\" in ConnectWallet Modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/oneKey/oneKeyWallet.tsx", - "line": 32, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/oneKey/oneKeyWallet.tsx#L32" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 1002, - "name": "wcModal", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Specify whether to open the official Wallet Connect Modal when connecting the wallet if no injected MetaMask provider is found when connecting the wallet.\n\nThis should not be set if you are using ConnectWallet component and only when manually connecting the wallet using a hook like " - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": ".\n\nYou can set it to " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": " or a configuration object to enable the Wallet Connect Modal." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/oneKey/oneKeyWallet.tsx", - "line": 41, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/oneKey/oneKeyWallet.tsx#L41" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 1003, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1004, - "name": "qrModalOptions", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Configure the style of Wallet Connect Modal." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/oneKey/oneKeyWallet.tsx", - "line": 46, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/oneKey/oneKeyWallet.tsx#L46" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/connectors/wallet-connect/qrModalOptions.d.ts", - "qualifiedName": "QRModalOptions" - }, - "name": "QRModalOptions", - "package": "@thirdweb-dev/wallets" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1004 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/oneKey/oneKeyWallet.tsx", - "line": 42, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/oneKey/oneKeyWallet.tsx#L42" - } - ] - } - }, - { - "type": "intrinsic", - "name": "boolean" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1000, - 1001, - 1002 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/oneKey/oneKeyWallet.tsx", - "line": 20, - "character": 40, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/oneKey/oneKeyWallet.tsx#L20" - } - ] - } - } - }, - { - "id": 1109, - "name": "PaperCheckoutProps", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 48, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L48" - } - ], - "typeParameters": [ - { - "id": 1144, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/payments/interfaces/CustomContract.ts", - "qualifiedName": "ContractType" - }, - "name": "ContractType", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/payments/interfaces/CustomContract.ts", - "qualifiedName": "CustomContractArgWrapper" - }, - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 1110, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1119, - "name": "appName", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 59, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L59" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1111, - "name": "checkoutId", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 51, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L51" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1143, - "name": "children", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 73, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L73" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.ReactNode" - }, - "name": "React.ReactNode", - "package": "@types/react" - } - }, - { - "id": 1112, - "name": "display", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 52, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L52" - } - ], - "type": { - "type": "reference", - "target": 1103, - "name": "PaperCheckoutDisplay", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 1117, - "name": "eligibilityMethod", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 57, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L57" - } - ], - "type": { - "type": "reference", - "target": 1070, - "name": "ReadMethodCallType", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 1114, - "name": "emailAddress", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 54, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L54" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1118, - "name": "metadata", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 58, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L58" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Record", - "package": "typescript" - } - }, - { - "id": 1116, - "name": "mintMethod", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 56, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L56" - } - ], - "type": { - "type": "reference", - "target": 1074, - "name": "WriteMethodCallType", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 1123, - "name": "onCloseCheckout", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 61, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L61" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1124, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 61, - "character": 24, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L61" - } - ], - "signatures": [ - { - "id": 1125, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 1120, - "name": "onOpenCheckout", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 60, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L60" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1121, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 60, - "character": 23, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L60" - } - ], - "signatures": [ - { - "id": 1122, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 1126, - "name": "onPaymentSuccess", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 62, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L62" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1127, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 62, - "character": 25, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L62" - } - ], - "signatures": [ - { - "id": 1128, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "parameters": [ - { - "id": 1129, - "name": "result", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 1150, - "name": "PaymentSuccessResult", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 1130, - "name": "onTransferSuccess", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 63, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L63" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1131, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 63, - "character": 26, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L63" - } - ], - "signatures": [ - { - "id": 1132, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "parameters": [ - { - "id": 1133, - "name": "result", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 1152, - "name": "TransferSuccessResult", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 1134, - "name": "options", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 64, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L64" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1135, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1141, - "name": "borderRadius", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 70, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L70" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 1139, - "name": "colorBackground", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 68, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L68" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1138, - "name": "colorPrimary", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 67, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L67" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1140, - "name": "colorText", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 69, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L69" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1142, - "name": "fontFamily", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 71, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L71" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1137, - "name": "height", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 66, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L66" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 1136, - "name": "width", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 65, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L65" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1141, - 1139, - 1138, - 1140, - 1142, - 1137, - 1136 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 64, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L64" - } - ] - } - } - }, - { - "id": 1115, - "name": "quantity", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 55, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L55" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 1113, - "name": "recipientWalletAddress", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 53, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L53" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1119, - 1111, - 1143, - 1112, - 1117, - 1114, - 1118, - 1116, - 1123, - 1120, - 1126, - 1130, - 1134, - 1115, - 1113 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 50, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L50" - } - ] - } - }, - { - "type": "reference", - "target": 1144, - "name": "T", - "package": "@thirdweb-dev/react", - "refersToTypeParameter": true - } - ], - "name": "CustomContractArgWrapper", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 1064, - "name": "PaperUser", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaperUser.d.ts", - "line": 1, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1065, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1068, - "name": "accessCode", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The user's access code. Will only be set if [clientId] was provided. This can be used to query about the user details." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaperUser.d.ts", - "line": 14, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1066, - "name": "emailAddress", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The user's email address.\nThis address is case-insensitive (i.e. different capitalizations map to the same wallet)." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaperUser.d.ts", - "line": 6, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1067, - "name": "walletAddress", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The Paper Wallet address associated with this user's email address." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaperUser.d.ts", - "line": 10, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1068, - 1066, - 1067 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaperUser.d.ts", - "line": 1, - "character": 24 - } - ] - } - } - }, - { - "id": 1060, - "name": "PaymentsSDKError", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 1, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1061, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1062, - "name": "code", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "An enum representing the error encountered.\nThe value is a human-readable, English message describing the error." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 6, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "target": 1043, - "name": "PaymentsSDKErrorCode", - "package": "@thirdweb-dev/payments" - }, - { - "type": "reference", - "target": 1052, - "name": "PayWithCryptoErrorCode", - "package": "@thirdweb-dev/payments" - } - ] - } - }, - { - "id": 1063, - "name": "error", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 7, - "character": 4 - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Error" - }, - "name": "Error", - "package": "typescript" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1062, - 1063 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/payments/dist/declarations/src/interfaces/PaymentsSdkError.d.ts", - "line": 1, - "character": 31 - } - ] - } - } - }, - { - "id": 104, - "name": "PhantomWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/phantom/phantomWallet.tsx", - "line": 11, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/phantom/phantomWallet.tsx#L11" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 105, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 106, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": ", the wallet will be tagged as \"recommended\" in ConnectWallet Modal. Default is " - }, - { - "kind": "code", - "text": "`false`" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/phantom/phantomWallet.tsx", - "line": 15, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/phantom/phantomWallet.tsx#L15" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 106 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/phantom/phantomWallet.tsx", - "line": 11, - "character": 41, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/phantom/phantomWallet.tsx#L11" - } - ] - } - } - }, - { - "id": 197, - "name": "RabbyWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/rabby/rabbyWallet.tsx", - "line": 9, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/rabby/rabbyWallet.tsx#L9" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 198, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 199, - "name": "projectId", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "When connecting Rabby using the QR Code - Wallet Connect connector is used which requires a project id.\nThis project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.\n\nhttps://docs.walletconnect.com/2.0/web3modal/options#projectid-required" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/rabby/rabbyWallet.tsx", - "line": 16, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/rabby/rabbyWallet.tsx#L16" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 200, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If true, the wallet will be tagged as \"recommended\" in ConnectWallet Modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/rabby/rabbyWallet.tsx", - "line": 21, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/rabby/rabbyWallet.tsx#L21" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 201, - "name": "wcModal", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Specify whether to open the official Wallet Connect Modal when connecting the wallet if no injected MetaMask provider is found when connecting the wallet.\n\nThis should not be set if you are using ConnectWallet component and only when manually connecting the wallet using a hook like " - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": ".\n\nYou can set it to " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": " or a configuration object to enable the Wallet Connect Modal." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/rabby/rabbyWallet.tsx", - "line": 30, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/rabby/rabbyWallet.tsx#L30" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 202, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 203, - "name": "qrModalOptions", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Configure the style of Wallet Connect Modal." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/rabby/rabbyWallet.tsx", - "line": 35, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/rabby/rabbyWallet.tsx#L35" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/connectors/wallet-connect/qrModalOptions.d.ts", - "qualifiedName": "QRModalOptions" - }, - "name": "QRModalOptions", - "package": "@thirdweb-dev/wallets" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 203 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/rabby/rabbyWallet.tsx", - "line": 31, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/rabby/rabbyWallet.tsx#L31" - } - ] - } - }, - { - "type": "intrinsic", - "name": "boolean" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 199, - 200, - 201 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/rabby/rabbyWallet.tsx", - "line": 9, - "character": 39, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/rabby/rabbyWallet.tsx#L9" - } - ] - } - } - }, - { - "id": 116, - "name": "RainbowWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/rainbow/RainbowWallet.tsx", - "line": 23, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/rainbow/RainbowWallet.tsx#L23" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 117, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 118, - "name": "projectId", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "When connecting Rainbow using the QR Code - Wallet Connect connector is used which requires a project id.\nThis project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.\n\nhttps://docs.walletconnect.com/2.0/web3modal/options#projectid-required" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/rainbow/RainbowWallet.tsx", - "line": 30, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/rainbow/RainbowWallet.tsx#L30" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 119, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If true, the wallet will be tagged as \"recommended\" in ConnectWallet Modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/rainbow/RainbowWallet.tsx", - "line": 35, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/rainbow/RainbowWallet.tsx#L35" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 118, - 119 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/rainbow/RainbowWallet.tsx", - "line": 23, - "character": 41, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/rainbow/RainbowWallet.tsx#L23" - } - ] - } - } - }, - { - "id": 1070, - "name": "ReadMethodCallType", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "This specifies the way a method should be called.\n\nNote that the argument names should match the argument names in your contract.\n\nExample:\n" - }, - { - "kind": "code", - "text": "```json\n {\n name: \"claim\",\n args: { _recipient: \"0x...\", _quantity: 2 }\n }\n```" - }, - { - "kind": "text", - "text": "\n\nCorresponds to the following function stub in solidity:\n" - }, - { - "kind": "code", - "text": "```solidity\nfunction claim(address _recipient, uint256 _quantity)\n```" - }, - { - "kind": "text", - "text": "\n\nFor more on the types of arguments you can pass, see ArgumentMapType" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/CustomContract.ts", - "line": 114, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/CustomContract.ts#L114" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1071, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1073, - "name": "args", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/CustomContract.ts", - "line": 116, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/CustomContract.ts#L116" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/payments/interfaces/CustomContract.ts", - "qualifiedName": "ArgumentMapType" - }, - "name": "ArgumentMapType", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 1072, - "name": "name", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/CustomContract.ts", - "line": 115, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/CustomContract.ts#L115" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1073, - 1072 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/CustomContract.ts", - "line": 114, - "character": 33, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/CustomContract.ts#L114" - } - ] - } - } - }, - { - "id": 123, - "name": "SafeWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/safe/safeWallet.tsx", - "line": 20, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/safe/safeWallet.tsx#L20" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 124, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 125, - "name": "personalWallets", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "An array of personalWallets to show in ConnectWallet Modal to use with SafeWallet" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/safe/safeWallet.tsx", - "line": 24, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/safe/safeWallet.tsx#L24" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - }, - { - "id": 126, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If true, the wallet will be tagged as \"recommended\" in ConnectWallet Modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/safe/safeWallet.tsx", - "line": 29, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/safe/safeWallet.tsx#L29" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 125, - 126 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/safe/safeWallet.tsx", - "line": 20, - "character": 38, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/safe/safeWallet.tsx#L20" - } - ] - } - } - }, - { - "id": 131, - "name": "SmartWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/smartWallet/types.ts", - "line": 6, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/smartWallet/types.ts#L6" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Omit" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/connectors/smart-wallet/types.ts", - "qualifiedName": "SmartWalletConfig" - }, - "name": "SmartWalletConfig", - "package": "@thirdweb-dev/wallets" - }, - { - "type": "union", - "types": [ - { - "type": "literal", - "value": "chain" - }, - { - "type": "literal", - "value": "clientId" - }, - { - "type": "literal", - "value": "secretKey" - } - ] - } - ], - "name": "Omit", - "package": "typescript" - } - }, - { - "id": 994, - "name": "SupportedTokens", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/defaultTokens.ts", - "line": 32, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/defaultTokens.ts#L32" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "number" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "target": 2, - "name": "TokenInfo", - "package": "@thirdweb-dev/react" - } - } - ], - "name": "Record", - "package": "typescript" - } - }, - { - "id": 230, - "name": "Theme", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@theme", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 51, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L51" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 231, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 233, - "name": "colors", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 53, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L53" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 234, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 241, - "name": "accentButtonBg", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 63, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L63" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 242, - "name": "accentButtonText", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 64, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L64" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 237, - "name": "accentText", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 56, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L56" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 258, - "name": "borderColor", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 88, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L88" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 262, - "name": "connectedButtonBg", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 94, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L94" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 263, - "name": "connectedButtonBgHover", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 95, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L95" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 238, - "name": "danger", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 58, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L58" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 251, - "name": "inputAutofillBg", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 78, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L78" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 248, - "name": "modalBg", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 73, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L73" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 240, - "name": "modalOverlayBg", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 61, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L61" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 243, - "name": "primaryButtonBg", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 66, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L66" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 244, - "name": "primaryButtonText", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 67, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L67" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 235, - "name": "primaryText", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 54, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L54" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 252, - "name": "scrollbarBg", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 79, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L79" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 245, - "name": "secondaryButtonBg", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 69, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L69" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 247, - "name": "secondaryButtonHoverBg", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 71, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L71" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 246, - "name": "secondaryButtonText", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 70, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L70" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 255, - "name": "secondaryIconColor", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 84, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L84" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 256, - "name": "secondaryIconHoverBg", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 85, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L85" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 257, - "name": "secondaryIconHoverColor", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 86, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L86" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 236, - "name": "secondaryText", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 55, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L55" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 261, - "name": "selectedTextBg", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 92, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L92" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 260, - "name": "selectedTextColor", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 91, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L91" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 254, - "name": "separatorLine", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 82, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L82" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 259, - "name": "skeletonBg", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 89, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L89" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 239, - "name": "success", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 59, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L59" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 249, - "name": "tooltipBg", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 75, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L75" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 250, - "name": "tooltipText", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 76, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L76" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 253, - "name": "walletSelectorButtonHoverBg", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 80, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L80" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 241, - 242, - 237, - 258, - 262, - 263, - 238, - 251, - 248, - 240, - 243, - 244, - 235, - 252, - 245, - 247, - 246, - 255, - 256, - 257, - 236, - 261, - 260, - 254, - 259, - 239, - 249, - 250, - 253 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 53, - "character": 10, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L53" - } - ] - } - } - }, - { - "id": 264, - "name": "fontFamily", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 97, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L97" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 232, - "name": "type", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 52, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L52" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "light" - }, - { - "type": "literal", - "value": "dark" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 233, - 264, - 232 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 51, - "character": 20, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L51" - } - ] - } - } - }, - { - "id": 265, - "name": "ThemeOverrides", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@theme", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 159, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L159" - } - ], - "type": { - "type": "mapped", - "parameter": "key", - "parameterType": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Exclude" - }, - "typeArguments": [ - { - "type": "typeOperator", - "operator": "keyof", - "target": { - "type": "reference", - "target": 230, - "name": "Theme", - "package": "@thirdweb-dev/react" - } - }, - { - "type": "literal", - "value": "type" - } - ], - "name": "Exclude", - "package": "typescript" - }, - "templateType": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Partial" - }, - "typeArguments": [ - { - "type": "indexedAccess", - "indexType": { - "type": "reference", - "target": { - "sourceFileName": "src/design-system/index.ts", - "qualifiedName": "key" - }, - "name": "key", - "package": "@thirdweb-dev/react", - "refersToTypeParameter": true - }, - "objectType": { - "type": "reference", - "target": 230, - "name": "Theme", - "package": "@thirdweb-dev/react" - } - } - ], - "name": "Partial", - "package": "typescript" - }, - "optionalModifier": "+" - } - }, - { - "id": 275, - "name": "ThirdwebLocale", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@locale", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 19, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L19" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 276, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 277, - "name": "connectWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 20, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L20" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 278, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 279, - "name": "agreement", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 21, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L21" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 280, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 281, - "name": "and", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 22, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L22" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 282, - "name": "prefix", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 23, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L23" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 283, - "name": "privacyPolicy", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 24, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L24" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 284, - "name": "termsOfService", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 25, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L25" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 281, - 282, - 283, - 284 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 21, - "character": 15, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L21" - } - ] - } - } - }, - { - "id": 286, - "name": "backupWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 28, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L28" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 287, - "name": "confirmInWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 29, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L29" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 288, - "name": "connectAWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 30, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L30" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 289, - "name": "connectedToSmartWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 31, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L31" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 290, - "name": "connecting", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 32, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L32" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 291, - "name": "continueAsGuest", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 33, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L33" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 292, - "name": "copyAddress", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 34, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L34" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 293, - "name": "currentNetwork", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 35, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L35" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 294, - "name": "defaultButtonTitle", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 36, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L36" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 295, - "name": "defaultModalTitle", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 37, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L37" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 296, - "name": "disconnectWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 38, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L38" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 297, - "name": "download", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 39, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L39" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 298, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 299, - "name": "android", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 39, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L39" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 300, - "name": "chrome", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 39, - "character": 33, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L39" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 301, - "name": "iOS", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 39, - "character": 49, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L39" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 299, - 300, - 301 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 39, - "character": 14, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L39" - } - ] - } - } - }, - { - "id": 302, - "name": "getStarted", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 40, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L40" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 285, - "name": "goBackButton", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 27, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L27" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 303, - "name": "guest", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 41, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L41" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 304, - "name": "guestWalletWarning", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 42, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L42" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 305, - "name": "installed", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 43, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L43" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 306, - "name": "networkSelector", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 44, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L44" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 307, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 308, - "name": "addCustomNetwork", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 45, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L45" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 309, - "name": "allNetworks", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 46, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L46" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 310, - "name": "categoryLabel", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 47, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L47" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 311, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 312, - "name": "others", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 48, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L48" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 313, - "name": "popular", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 49, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L49" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 314, - "name": "recentlyUsed", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 50, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L50" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 312, - 313, - 314 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 47, - "character": 21, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L47" - } - ] - } - } - }, - { - "id": 315, - "name": "failedToSwitch", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 52, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L52" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 316, - "name": "inputPlaceholder", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 53, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L53" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 317, - "name": "loading", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 54, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L54" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 318, - "name": "mainnets", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 55, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L55" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 319, - "name": "testnets", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 56, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L56" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 320, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 57, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L57" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 308, - 309, - 310, - 315, - 316, - 317, - 318, - 319, - 320 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 44, - "character": 21, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L44" - } - ] - } - } - }, - { - "id": 321, - "name": "newToWallets", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 59, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L59" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 322, - "name": "or", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 60, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L60" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 323, - "name": "personalWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 61, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L61" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 324, - "name": "receive", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 62, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L62" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 325, - "name": "receiveFundsScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 63, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L63" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 326, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 327, - "name": "instruction", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 63, - "character": 26, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L63" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 328, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 63, - "character": 47, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L63" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 327, - 328 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 63, - "character": 24, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L63" - } - ] - } - } - }, - { - "id": 329, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 64, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L64" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 330, - "name": "requestTestnetFunds", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 65, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L65" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 331, - "name": "send", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 66, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L66" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 332, - "name": "sendFundsScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 67, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L67" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 333, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 334, - "name": "amount", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 68, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L68" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 335, - "name": "insufficientFunds", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 69, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L69" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 336, - "name": "invalidAddress", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 70, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L70" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 337, - "name": "noTokensFound", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 71, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L71" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 338, - "name": "searchToken", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 72, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L72" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 339, - "name": "selectTokenTitle", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 73, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L73" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 341, - "name": "sending", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 75, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L75" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 340, - "name": "sendTo", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 74, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L74" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 342, - "name": "submitButton", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 76, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L76" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 343, - "name": "successMessage", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 77, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L77" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 344, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 78, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L78" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 345, - "name": "token", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 79, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L79" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 346, - "name": "transactionFailed", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 80, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L80" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 347, - "name": "transactionRejected", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 81, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L81" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 334, - 335, - 336, - 337, - 338, - 339, - 341, - 340, - 342, - 343, - 344, - 345, - 346, - 347 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 67, - "character": 21, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L67" - } - ] - } - } - }, - { - "id": 349, - "name": "signatureScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 84, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L84" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 350, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 351, - "name": "instructionScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 85, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L85" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 352, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 356, - "name": "disconnectWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 89, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L89" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 353, - "name": "instruction", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 86, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L86" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 354, - "name": "signInButton", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 87, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L87" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 355, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 88, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L88" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 356, - 353, - 354, - 355 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 85, - "character": 25, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L85" - } - ] - } - } - }, - { - "id": 357, - "name": "signingScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 91, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L91" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 358, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 359, - "name": "approveTransactionInSafe", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 92, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L92" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 360, - "name": "failedToSignIn", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 93, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L93" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 361, - "name": "inProgress", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 94, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L94" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 362, - "name": "prompt", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 95, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L95" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 363, - "name": "promptForSafe", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 96, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L96" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 364, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 97, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L97" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 365, - "name": "tryAgain", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 98, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L98" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 359, - 360, - 361, - 362, - 363, - 364, - 365 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 91, - "character": 21, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L91" - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 351, - 357 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 84, - "character": 21, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L84" - } - ] - } - } - }, - { - "id": 348, - "name": "signIn", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 83, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L83" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 366, - "name": "smartWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 101, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L101" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 367, - "name": "switchAccount", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 102, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L102" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 370, - "name": "switchingNetwork", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 105, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L105" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 368, - "name": "switchNetwork", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 103, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L103" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 369, - "name": "switchTo", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 104, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L104" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 371, - "name": "transactionHistory", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 106, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L106" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 372, - "name": "welcomeScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 107, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L107" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 373, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 374, - "name": "defaultSubtitle", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 107, - "character": 21, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L107" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 375, - "name": "defaultTitle", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 107, - "character": 46, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L107" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 374, - 375 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 107, - "character": 19, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L107" - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 279, - 286, - 287, - 288, - 289, - 290, - 291, - 292, - 293, - 294, - 295, - 296, - 297, - 302, - 285, - 303, - 304, - 305, - 306, - 321, - 322, - 323, - 324, - 325, - 329, - 330, - 331, - 332, - 349, - 348, - 366, - 367, - 370, - 368, - 369, - 371, - 372 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 20, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L20" - } - ] - } - } - }, - { - "id": 376, - "name": "wallets", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 109, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L109" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 377, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 378, - "name": "coin98Wallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 110, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L110" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 379, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 380, - "name": "connectionScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 111, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L111" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 381, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 382, - "name": "failed", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 112, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L112" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 383, - "name": "inProgress", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 113, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L113" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 384, - "name": "instruction", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 114, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L114" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 385, - "name": "retry", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 115, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L115" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 382, - 383, - 384, - 385 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 111, - "character": 24, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L111" - } - ] - } - } - }, - { - "id": 386, - "name": "getStartedLink", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 117, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L117" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 387, - "name": "getStartedScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 118, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L118" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 388, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 389, - "name": "instruction", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 118, - "character": 26, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L118" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 389 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 118, - "character": 24, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L118" - } - ] - } - } - }, - { - "id": 390, - "name": "scanScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 119, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L119" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 391, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 392, - "name": "instruction", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 119, - "character": 20, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L119" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 392 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 119, - "character": 18, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L119" - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 380, - 386, - 387, - 390 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 110, - "character": 18, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L110" - } - ] - } - } - }, - { - "id": 393, - "name": "coinbaseWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 121, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L121" - } - ], - "type": { - "type": "reference", - "target": 594, - "name": "ExtensionAndQRScreensLocale", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 394, - "name": "coreWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 122, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L122" - } - ], - "type": { - "type": "reference", - "target": 594, - "name": "ExtensionAndQRScreensLocale", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 395, - "name": "cryptoDefiWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 123, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L123" - } - ], - "type": { - "type": "reference", - "target": 594, - "name": "ExtensionAndQRScreensLocale", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 396, - "name": "embeddedWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 124, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L124" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 397, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 432, - "name": "countryCodeMissing", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 159, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L159" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 398, - "name": "createPassword", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 125, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L125" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 399, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 400, - "name": "confirmation", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 126, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L126" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 401, - "name": "failedToSetPassword", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 127, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L127" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 402, - "name": "inputPlaceholder", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 128, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L128" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 403, - "name": "instruction", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 129, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L129" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 404, - "name": "saveInstruction", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 130, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L130" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 405, - "name": "submitButton", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 131, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L131" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 406, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 132, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L132" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 400, - 401, - 402, - 403, - 404, - 405, - 406 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 125, - "character": 22, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L125" - } - ] - } - } - }, - { - "id": 420, - "name": "emailPlaceholder", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 147, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L147" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 421, - "name": "emailRequired", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 148, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L148" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 422, - "name": "enterPassword", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 149, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L149" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 423, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 424, - "name": "inputPlaceholder", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 150, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L150" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 425, - "name": "instruction", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 151, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L151" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 426, - "name": "submitButton", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 152, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L152" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 427, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 153, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L153" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 428, - "name": "wrongPassword", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 154, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L154" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 424, - 425, - 426, - 427, - 428 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 149, - "character": 21, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L149" - } - ] - } - } - }, - { - "id": 429, - "name": "invalidEmail", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 156, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L156" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 430, - "name": "invalidEmailOrPhone", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 157, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L157" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 431, - "name": "invalidPhone", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 158, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L158" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 447, - "name": "maxAccountsExceeded", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 174, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L174" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 407, - "name": "otpLoginScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 134, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L134" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 408, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 409, - "name": "enterCodeSendTo", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 135, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L135" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 410, - "name": "enterRecoveryCode", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 136, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L136" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 411, - "name": "failedToSendCode", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 137, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L137" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 412, - "name": "invalidCode", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 138, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L138" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 413, - "name": "invalidCodeOrRecoveryCode", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 139, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L139" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 414, - "name": "newDeviceDetected", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 140, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L140" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 415, - "name": "resendCode", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 141, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L141" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 416, - "name": "sendingCode", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 142, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L142" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 417, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 143, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L143" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 418, - "name": "verify", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 144, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L144" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 409, - 410, - 411, - 412, - 413, - 414, - 415, - 416, - 417, - 418 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 134, - "character": 22, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L134" - } - ] - } - } - }, - { - "id": 433, - "name": "phonePlaceholder", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 160, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L160" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 435, - "name": "phoneRequired", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 162, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L162" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 436, - "name": "signIn", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 163, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L163" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 437, - "name": "signInWithApple", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 164, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L164" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 419, - "name": "signInWithEmail", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 146, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L146" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 438, - "name": "signInWithFacebook", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 165, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L165" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 439, - "name": "signInWithGoogle", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 166, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L166" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 434, - "name": "signInWithPhone", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 161, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L161" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 440, - "name": "socialLoginScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 167, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L167" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 441, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 442, - "name": "failed", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 168, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L168" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 443, - "name": "instruction", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 169, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L169" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 444, - "name": "retry", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 170, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L170" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 445, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 171, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L171" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 442, - 443, - 444, - 445 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 167, - "character": 25, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L167" - } - ] - } - } - }, - { - "id": 446, - "name": "submitEmail", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 173, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L173" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 432, - 398, - 420, - 421, - 422, - 429, - 430, - 431, - 447, - 407, - 433, - 435, - 436, - 437, - 419, - 438, - 439, - 434, - 440, - 446 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 124, - "character": 20, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L124" - } - ] - } - } - }, - { - "id": 448, - "name": "frameWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 176, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L176" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 449, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 450, - "name": "connectionFailedScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 177, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L177" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 451, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 452, - "name": "description", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 178, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L178" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 453, - "name": "downloadFrame", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 179, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L179" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 454, - "name": "supportLink", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 180, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L180" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 455, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 181, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L181" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 452, - 453, - 454, - 455 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 177, - "character": 30, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L177" - } - ] - } - } - }, - { - "id": 456, - "name": "connectionScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 183, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L183" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 457, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 458, - "name": "failed", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 184, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L184" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 459, - "name": "inProgress", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 185, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L185" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 460, - "name": "instruction", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 186, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L186" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 461, - "name": "retry", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 187, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L187" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 458, - 459, - 460, - 461 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 183, - "character": 24, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L183" - } - ] - } - } - }, - { - "id": 462, - "name": "getStartedLink", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 189, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L189" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 463, - "name": "getStartedScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 190, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L190" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 464, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 465, - "name": "instruction", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 190, - "character": 26, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L190" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 465 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 190, - "character": 24, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L190" - } - ] - } - } - }, - { - "id": 466, - "name": "scanScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 191, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L191" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 467, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 468, - "name": "instruction", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 191, - "character": 20, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L191" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 468 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 191, - "character": 18, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L191" - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 450, - 456, - 462, - 463, - 466 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 176, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L176" - } - ] - } - } - }, - { - "id": 589, - "name": "imTokenWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 313, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L313" - } - ], - "type": { - "type": "reference", - "target": 594, - "name": "ExtensionAndQRScreensLocale", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 470, - "name": "localWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 194, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L194" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 471, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 472, - "name": "confirmPasswordLabel", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 195, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L195" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 473, - "name": "createScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 196, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L196" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 474, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 475, - "name": "connecting", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 197, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L197" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 476, - "name": "createNewWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 198, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L198" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 477, - "name": "importWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 199, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L199" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 478, - "name": "instruction", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 200, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L200" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 475, - 476, - 477, - 478 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 196, - "character": 20, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L196" - } - ] - } - } - }, - { - "id": 479, - "name": "enterYourPassword", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 202, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L202" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 480, - "name": "exportScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 203, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L203" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 481, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 482, - "name": "description1", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 204, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L204" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 483, - "name": "description2", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 205, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L205" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 484, - "name": "download", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 206, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L206" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 485, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 207, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L207" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 486, - "name": "walletAddress", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 208, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L208" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 482, - 483, - 484, - 485, - 486 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 203, - "character": 20, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L203" - } - ] - } - } - }, - { - "id": 487, - "name": "importScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 210, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L210" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 488, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 489, - "name": "description1", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 211, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L211" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 490, - "name": "description2", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 212, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L212" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 491, - "name": "import", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 213, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L213" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 492, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 214, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L214" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 494, - "name": "uploadedSuccessfully", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 216, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L216" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 493, - "name": "uploadJSON", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 215, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L215" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 489, - 490, - 491, - 492, - 494, - 493 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 210, - "character": 20, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L210" - } - ] - } - } - }, - { - "id": 495, - "name": "passwordLabel", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 218, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L218" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 496, - "name": "reconnectScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 219, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L219" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 497, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 498, - "name": "continue", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 220, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L220" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 499, - "name": "createNewWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 221, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L221" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 500, - "name": "savedWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 222, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L222" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 501, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 223, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L223" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 498, - 499, - 500, - 501 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 219, - "character": 23, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L219" - } - ] - } - } - }, - { - "id": 502, - "name": "warningScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 225, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L225" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 503, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 504, - "name": "backupWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 226, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L226" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 505, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 227, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L227" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 506, - "name": "warning", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 228, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L228" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 504, - 505, - 506 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 225, - "character": 21, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L225" - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 472, - 473, - 479, - 480, - 487, - 495, - 496, - 502 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 194, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L194" - } - ] - } - } - }, - { - "id": 522, - "name": "magicEdenWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 246, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L246" - } - ], - "type": { - "type": "reference", - "target": 594, - "name": "ExtensionAndQRScreensLocale", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 507, - "name": "magicLink", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 231, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L231" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 508, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 509, - "name": "countryCodeMissing", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 232, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L232" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 510, - "name": "emailOrPhoneRequired", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 233, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L233" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 511, - "name": "emailPlaceholder", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 234, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L234" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 512, - "name": "emailRequired", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 235, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L235" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 513, - "name": "invalidEmail", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 236, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L236" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 514, - "name": "invalidEmailOrPhone", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 237, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L237" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 515, - "name": "invalidPhone", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 238, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L238" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 516, - "name": "loginWith", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 239, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L239" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 517, - "name": "loginWithEmailOrPhone", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 240, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L240" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 518, - "name": "loginWithPhone", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 241, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L241" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 519, - "name": "phoneRequired", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 242, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L242" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 520, - "name": "signIn", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 243, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L243" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 521, - "name": "submitEmail", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 244, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L244" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 509, - 510, - 511, - 512, - 513, - 514, - 515, - 516, - 517, - 518, - 519, - 520, - 521 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 231, - "character": 15, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L231" - } - ] - } - } - }, - { - "id": 523, - "name": "metamaskWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 247, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L247" - } - ], - "type": { - "type": "reference", - "target": 594, - "name": "ExtensionAndQRScreensLocale", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 524, - "name": "okxWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 248, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L248" - } - ], - "type": { - "type": "reference", - "target": 594, - "name": "ExtensionAndQRScreensLocale", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 525, - "name": "oneKeyWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 249, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L249" - } - ], - "type": { - "type": "reference", - "target": 594, - "name": "ExtensionAndQRScreensLocale", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 526, - "name": "paperWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 250, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L250" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 527, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 528, - "name": "emailLoginScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 251, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L251" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 529, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 530, - "name": "enterCodeSendTo", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 252, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L252" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 531, - "name": "enterRecoveryCode", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 253, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L253" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 532, - "name": "failedToSendCode", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 254, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L254" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 533, - "name": "invalidCode", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 255, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L255" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 534, - "name": "invalidCodeOrRecoveryCode", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 256, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L256" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 535, - "name": "newDeviceDetected", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 257, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L257" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 536, - "name": "resendCode", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 258, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L258" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 537, - "name": "sendingCode", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 259, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L259" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 538, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 260, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L260" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 539, - "name": "verify", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 261, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L261" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 530, - 531, - 532, - 533, - 534, - 535, - 536, - 537, - 538, - 539 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 251, - "character": 24, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L251" - } - ] - } - } - }, - { - "id": 540, - "name": "emailPlaceholder", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 263, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L263" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 541, - "name": "emailRequired", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 264, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L264" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 542, - "name": "googleLoginScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 265, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L265" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 543, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 544, - "name": "failed", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 266, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L266" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 545, - "name": "instruction", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 267, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L267" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 546, - "name": "retry", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 268, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L268" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 547, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 269, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L269" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 544, - 545, - 546, - 547 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 265, - "character": 25, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L265" - } - ] - } - } - }, - { - "id": 548, - "name": "invalidEmail", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 271, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L271" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 549, - "name": "signIn", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 272, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L272" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 550, - "name": "signInWithGoogle", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 273, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L273" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 551, - "name": "submitEmail", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 274, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L274" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 528, - 540, - 541, - 542, - 548, - 549, - 550, - 551 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 250, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L250" - } - ] - } - } - }, - { - "id": 552, - "name": "phantomWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 276, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L276" - } - ], - "type": { - "type": "reference", - "target": 594, - "name": "ExtensionAndQRScreensLocale", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 554, - "name": "rabbyWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 278, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L278" - } - ], - "type": { - "type": "reference", - "target": 594, - "name": "ExtensionAndQRScreensLocale", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 555, - "name": "rainbowWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 279, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L279" - } - ], - "type": { - "type": "reference", - "target": 594, - "name": "ExtensionAndQRScreensLocale", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 556, - "name": "safeWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 280, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L280" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 557, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 558, - "name": "accountDetailsScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 281, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L281" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 559, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 561, - "name": "connecting", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 283, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L283" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 560, - "name": "connectToSafe", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 282, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L282" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 562, - "name": "dashboardLink", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 284, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L284" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 563, - "name": "failedToConnect", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 285, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L285" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 564, - "name": "failedToSwitch", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 286, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L286" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 565, - "name": "findSafeAddressIn", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 287, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L287" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 566, - "name": "invalidChainConfig", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 288, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L288" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 567, - "name": "mainnets", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 289, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L289" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 568, - "name": "network", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 290, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L290" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 569, - "name": "safeAddress", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 291, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L291" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 570, - "name": "selectNetworkPlaceholder", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 292, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L292" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 572, - "name": "switchingNetwork", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 294, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L294" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 571, - "name": "switchNetwork", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 293, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L293" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 573, - "name": "testnets", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 295, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L295" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 574, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 296, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L296" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 561, - 560, - 562, - 563, - 564, - 565, - 566, - 567, - 568, - 569, - 570, - 572, - 571, - 573, - 574 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 281, - "character": 28, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L281" - } - ] - } - } - }, - { - "id": 575, - "name": "connectWalletScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 298, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L298" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 576, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 577, - "name": "learnMoreLink", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 299, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L299" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 578, - "name": "subtitle", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 300, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L300" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 579, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 301, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L301" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 577, - 578, - 579 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 298, - "character": 27, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L298" - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 558, - 575 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 280, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L280" - } - ] - } - } - }, - { - "id": 580, - "name": "smartWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 304, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L304" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 581, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 582, - "name": "connecting", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 305, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L305" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 583, - "name": "failedToConnect", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 306, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L306" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 584, - "name": "wrongNetworkScreen", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 307, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L307" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 585, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 586, - "name": "failedToSwitch", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 308, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L308" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 587, - "name": "subtitle", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 309, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L309" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 588, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 310, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L310" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 586, - 587, - 588 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 307, - "character": 26, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L307" - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 582, - 583, - 584 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 304, - "character": 17, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L304" - } - ] - } - } - }, - { - "id": 469, - "name": "trustWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 193, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L193" - } - ], - "type": { - "type": "reference", - "target": 594, - "name": "ExtensionAndQRScreensLocale", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 590, - "name": "walletConnect", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 314, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L314" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 591, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 592, - "name": "scanInstruction", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 314, - "character": 21, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L314" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 592 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 314, - "character": 19, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L314" - } - ] - } - } - }, - { - "id": 553, - "name": "xdefiWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 277, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L277" - } - ], - "type": { - "type": "reference", - "target": 594, - "name": "ExtensionAndQRScreensLocale", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 593, - "name": "zerionWallet", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 315, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L315" - } - ], - "type": { - "type": "reference", - "target": 594, - "name": "ExtensionAndQRScreensLocale", - "package": "@thirdweb-dev/react" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 378, - 393, - 394, - 395, - 396, - 448, - 589, - 470, - 522, - 507, - 523, - 524, - 525, - 526, - 552, - 554, - 555, - 556, - 580, - 469, - 590, - 553, - 593 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 109, - "character": 11, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L109" - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 277, - 376 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/types.ts", - "line": 19, - "character": 29, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/types.ts#L19" - } - ] - } - } - }, - { - "id": 2, - "name": "TokenInfo", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/defaultTokens.ts", - "line": 1, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/defaultTokens.ts#L1" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 3, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 6, - "name": "address", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/defaultTokens.ts", - "line": 4, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/defaultTokens.ts#L4" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 7, - "name": "icon", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/defaultTokens.ts", - "line": 5, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/defaultTokens.ts#L5" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 4, - "name": "name", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/defaultTokens.ts", - "line": 2, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/defaultTokens.ts#L2" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 5, - "name": "symbol", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/defaultTokens.ts", - "line": 3, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/defaultTokens.ts#L3" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 6, - 7, - 4, - 5 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/defaultTokens.ts", - "line": 1, - "character": 24, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/defaultTokens.ts#L1" - } - ] - } - } - }, - { - "id": 1152, - "name": "TransferSuccessResult", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 2, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L2" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1153, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1155, - "name": "claimedTokens", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A list of tokens claimed." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 11, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L11" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": 1156, - "name": "ClaimedToken", - "package": "@thirdweb-dev/react" - } - } - }, - { - "id": 1154, - "name": "id", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A unique ID for this purchase." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 6, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L6" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1155, - 1154 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts", - "line": 2, - "character": 36, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/TransferSuccessResult.ts#L2" - } - ] - } - } - }, - { - "id": 135, - "name": "TrustWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/trustWallet/TrustWallet.tsx", - "line": 21, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/trustWallet/TrustWallet.tsx#L21" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 136, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 137, - "name": "projectId", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "When connecting Trust using the QR Code - Wallet Connect connector is used which requires a project id.\nThis project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.\n\nhttps://docs.walletconnect.com/2.0/web3modal/options#projectid-required" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/trustWallet/TrustWallet.tsx", - "line": 28, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/trustWallet/TrustWallet.tsx#L28" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 138, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If true, the wallet will be tagged as \"recommended\" in ConnectWallet Modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/trustWallet/TrustWallet.tsx", - "line": 33, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/trustWallet/TrustWallet.tsx#L33" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 139, - "name": "wcModal", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Specify whether to open the official Wallet Connect Modal when connecting the wallet if no injected MetaMask provider is found when connecting the wallet.\n\nThis should not be set if you are using ConnectWallet component and only when manually connecting the wallet using a hook like " - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": ".\n\nYou can set it to " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": " or a configuration object to enable the Wallet Connect Modal." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/trustWallet/TrustWallet.tsx", - "line": 42, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/trustWallet/TrustWallet.tsx#L42" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 140, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 141, - "name": "qrModalOptions", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Configure the style of Wallet Connect Modal." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/trustWallet/TrustWallet.tsx", - "line": 47, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/trustWallet/TrustWallet.tsx#L47" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/connectors/wallet-connect/qrModalOptions.d.ts", - "qualifiedName": "QRModalOptions" - }, - "name": "QRModalOptions", - "package": "@thirdweb-dev/wallets" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 141 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/trustWallet/TrustWallet.tsx", - "line": 43, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/trustWallet/TrustWallet.tsx#L43" - } - ] - } - }, - { - "type": "intrinsic", - "name": "boolean" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 137, - 138, - 139 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/trustWallet/TrustWallet.tsx", - "line": 21, - "character": 39, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/trustWallet/TrustWallet.tsx#L21" - } - ] - } - } - }, - { - "id": 145, - "name": "walletConnectConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/walletConnect/walletConnect.tsx", - "line": 12, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/walletConnect/walletConnect.tsx#L12" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 146, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 147, - "name": "projectId", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Your project’s unique identifier that can be obtained at https://cloud.walletconnect.com/\n\nEnables following functionalities within Web3Modal: wallet and chain logos, optional WalletConnect RPC, support for all wallets from our Explorer and WalletConnect v2 support. Defaults to undefined.\n\nhttps://docs.walletconnect.com/2.0/web3modal/options#projectid-required" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/walletConnect/walletConnect.tsx", - "line": 20, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/walletConnect/walletConnect.tsx#L20" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 150, - "name": "qrModal", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Specify wheher a custom QR Modal or the Official WalletConnect Modal should be used on desktop. The custom screen has an option to open the official WalletConnect Modal too.\n\nNote that the official WalletConnect Modal is always used on mobile devices.\n\nThe default is " - }, - { - "kind": "code", - "text": "`\"custom\"`" - }, - { - "kind": "text", - "text": " ( for desktop )" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/walletConnect/walletConnect.tsx", - "line": 41, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/walletConnect/walletConnect.tsx#L41" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "custom" - }, - { - "type": "literal", - "value": "walletConnect" - } - ] - } - }, - { - "id": 148, - "name": "qrModalOptions", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "options to customize QR Modal.\n\nhttps://docs.walletconnect.com/2.0/web3modal/options" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/walletConnect/walletConnect.tsx", - "line": 27, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/walletConnect/walletConnect.tsx#L27" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/wallet-connect.ts", - "qualifiedName": "WC2_QRModalOptions" - }, - "name": "WC2_QRModalOptions", - "package": "@thirdweb-dev/wallets" - } - }, - { - "id": 149, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If true, the wallet will be tagged as \"recommended\" in ConnectWallet Modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/walletConnect/walletConnect.tsx", - "line": 32, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/walletConnect/walletConnect.tsx#L32" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 147, - 150, - 148, - 149 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/walletConnect/walletConnect.tsx", - "line": 12, - "character": 41, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/walletConnect/walletConnect.tsx#L12" - } - ] - } - } - }, - { - "id": 703, - "name": "WelcomeScreen", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Render custom Welcome Screen in \"wide\" ConnectWallet Modal either by passing a custom React component or by passing an object with custom title, subtitle and image" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "### Custom React component\n" - }, - { - "kind": "code", - "text": "```tsx\n
\n ...\n
}\n/>\n```" - }, - { - "kind": "text", - "text": "\n\n### Custom title, subtitle and image\n" - }, - { - "kind": "code", - "text": "```tsx\n\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/screens/types.ts", - "line": 32, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/screens/types.ts#L32" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 704, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 707, - "name": "img", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Custom image" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/screens/types.ts", - "line": 45, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/screens/types.ts#L45" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 708, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 711, - "name": "height", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Image height" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/screens/types.ts", - "line": 57, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/screens/types.ts#L57" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 709, - "name": "src", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Image source" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/screens/types.ts", - "line": 49, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/screens/types.ts#L49" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 710, - "name": "width", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Image width" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/screens/types.ts", - "line": 53, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/screens/types.ts#L53" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 711, - 709, - 710 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/screens/types.ts", - "line": 45, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/screens/types.ts#L45" - } - ] - } - } - }, - { - "id": 706, - "name": "subtitle", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Custom subtitle" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/screens/types.ts", - "line": 41, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/screens/types.ts#L41" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 705, - "name": "title", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Custom title" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/screens/types.ts", - "line": 37, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/screens/types.ts#L37" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 707, - 706, - 705 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/screens/types.ts", - "line": 33, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/screens/types.ts#L33" - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 712, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/screens/types.ts", - "line": 60, - "character": 5, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/screens/types.ts#L60" - } - ], - "signatures": [ - { - "id": 713, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.ReactNode" - }, - "name": "React.ReactNode", - "package": "@types/react" - } - } - ] - } - } - ] - } - }, - { - "id": 1074, - "name": "WriteMethodCallType", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "This is similar to ReadMethodCallType with two added properties\n\n## payment\n * We will automatically call the " - }, - { - "kind": "code", - "text": "`approve`" - }, - { - "kind": "text", - "text": " function for non native coins.\n * The " - }, - { - "kind": "code", - "text": "`value`" - }, - { - "kind": "text", - "text": " should be human readable. So \"1.2\" represents \"1.2\" ETH or \"1.2\" USDC depending on the " - }, - { - "kind": "code", - "text": "`currency`" - }, - { - "kind": "text", - "text": " field\n\n## callOptions\n* As of now, we only support specifying the relative amount of gas to use.\n* They correspond to the values of the [gas trackers](https://etherscan.io/gastracker) at the time of calling the function" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/CustomContract.ts", - "line": 130, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/CustomContract.ts#L130" - } - ], - "type": { - "type": "intersection", - "types": [ - { - "type": "reference", - "target": 1070, - "name": "ReadMethodCallType", - "package": "@thirdweb-dev/react" - }, - { - "type": "reflection", - "declaration": { - "id": 1075, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1080, - "name": "callOptions", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/CustomContract.ts", - "line": 135, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/CustomContract.ts#L135" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1081, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1082, - "name": "gasOptions", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/CustomContract.ts", - "line": 135, - "character": 18, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/CustomContract.ts#L135" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "low" - }, - { - "type": "literal", - "value": "medium" - }, - { - "type": "literal", - "value": "high" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1082 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/CustomContract.ts", - "line": 135, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/CustomContract.ts#L135" - } - ] - } - } - }, - { - "id": 1076, - "name": "payment", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/CustomContract.ts", - "line": 131, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/CustomContract.ts#L131" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1077, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 1078, - "name": "currency", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/CustomContract.ts", - "line": 132, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/CustomContract.ts#L132" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "MATIC" - }, - { - "type": "literal", - "value": "ETH" - }, - { - "type": "literal", - "value": "USDC" - }, - { - "type": "literal", - "value": "SOL" - }, - { - "type": "literal", - "value": "AVAX" - }, - { - "type": "literal", - "value": "USDC.e" - } - ] - } - }, - { - "id": 1079, - "name": "value", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/CustomContract.ts", - "line": 133, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/CustomContract.ts#L133" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1078, - 1079 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/CustomContract.ts", - "line": 131, - "character": 11, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/CustomContract.ts#L131" - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1080, - 1076 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/interfaces/CustomContract.ts", - "line": 130, - "character": 55, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/interfaces/CustomContract.ts#L130" - } - ] - } - } - ] - } - }, - { - "id": 110, - "name": "XdefiWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/xdefi/xdefiWallet.tsx", - "line": 9, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/xdefi/xdefiWallet.tsx#L9" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 111, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 112, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": ", the wallet will be tagged as \"recommended\" in ConnectWallet Modal. Default is " - }, - { - "kind": "code", - "text": "`false`" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/xdefi/xdefiWallet.tsx", - "line": 13, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/xdefi/xdefiWallet.tsx#L13" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 112 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/xdefi/xdefiWallet.tsx", - "line": 9, - "character": 39, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/xdefi/xdefiWallet.tsx#L9" - } - ] - } - } - }, - { - "id": 157, - "name": "ZerionkWalletConfigOptions", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/zerion/zerionWallet.tsx", - "line": 21, - "character": 12, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/zerion/zerionWallet.tsx#L21" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 158, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 159, - "name": "projectId", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "When connecting MetaMask using the QR Code - Wallet Connect connector is used which requires a project id.\nThis project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.\n\nhttps://docs.walletconnect.com/2.0/web3modal/options#projectid-required" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/zerion/zerionWallet.tsx", - "line": 28, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/zerion/zerionWallet.tsx#L28" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 160, - "name": "recommended", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "If true, the wallet will be tagged as \"recommended\" in ConnectWallet Modal" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/zerion/zerionWallet.tsx", - "line": 33, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/zerion/zerionWallet.tsx#L33" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 161, - "name": "wcModal", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Specify whether to open the official Wallet Connect Modal when connecting the wallet if no injected MetaMask provider is found when connecting the wallet.\n\nThis should not be set if you are using ConnectWallet component and only when manually connecting the wallet using a hook like " - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": ".\n\nYou can set it to " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": " or a configuration object to enable the Wallet Connect Modal." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/zerion/zerionWallet.tsx", - "line": 42, - "character": 2, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/zerion/zerionWallet.tsx#L42" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 162, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 163, - "name": "qrModalOptions", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Configure the style of Wallet Connect Modal." - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/zerion/zerionWallet.tsx", - "line": 47, - "character": 8, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/zerion/zerionWallet.tsx#L47" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/connectors/wallet-connect/qrModalOptions.d.ts", - "qualifiedName": "QRModalOptions" - }, - "name": "QRModalOptions", - "package": "@thirdweb-dev/wallets" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 163 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/zerion/zerionWallet.tsx", - "line": 43, - "character": 6, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/zerion/zerionWallet.tsx#L43" - } - ] - } - }, - { - "type": "intrinsic", - "name": "boolean" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 159, - 160, - 161 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/zerion/zerionWallet.tsx", - "line": 21, - "character": 41, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/zerion/zerionWallet.tsx#L21" - } - ] - } - } - }, - { - "id": 1, - "name": "defaultTokens", - "variant": "declaration", - "kind": 32, - "flags": { - "isConst": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Default tokens shown in [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet)'s SendFunds screen for each network.\n\nYou can use the default tokens as a starting point for your own list of tokens and override tokens for specific networks." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "Below example shows adding a custom token for the Ethereum mainnet at start of the list of default tokens for the Ethereum mainnet. Here the " - }, - { - "kind": "code", - "text": "`1`" - }, - { - "kind": "text", - "text": " represents the chainId of Ethereum mainnet.\n\n" - }, - { - "kind": "code", - "text": "```tsx\nconst ethereumChainId = 1;\n\n\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/defaultTokens.ts", - "line": 59, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/defaultTokens.ts#L59" - } - ], - "type": { - "type": "reference", - "target": 994, - "name": "SupportedTokens", - "package": "@thirdweb-dev/react" - }, - "defaultValue": "..." - }, - { - "id": 8, - "name": "defaultWallets", - "variant": "declaration", - "kind": 32, - "flags": { - "isConst": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The default wallets that are used by the [" - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider) if no " - }, - { - "kind": "code", - "text": "`supportedWallets`" - }, - { - "kind": "text", - "text": " prop is provided.\n\nThe defaults wallets are:\n- Metamask\n- Coinbase\n- WalletConnect\n- TrustWallet\n- RainbowWallet\n- ZerionWallet\n- PhantomWallet" - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/defaultWallets.ts", - "line": 22, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/defaultWallets.ts#L22" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - }, - "defaultValue": "..." - }, - { - "id": 32, - "name": "bloctoWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A wallet configurator for [Blocto Wallet](https://blocto.io/) which allows integrating the wallet with React.\n\nIt returns a [" - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [" - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nbloctoWallet({\n appId: \"my-app-id\",\n recommended: true,\n})\n```" - } - ] - }, - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/blocto/bloctoWallet.tsx", - "line": 43, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/blocto/bloctoWallet.tsx#L43" - } - ], - "signatures": [ - { - "id": 33, - "name": "bloctoWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/blocto/bloctoWallet.tsx", - "line": 43, - "character": 28, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/blocto/bloctoWallet.tsx#L43" - } - ], - "parameters": [ - { - "id": 34, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optional object containing the following properties to configure the wallet\n\n#### appId (optional)\nTo 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)\n\n#### recommended (optional)\nIf true, the wallet will be tagged as \"recommended\" in [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI" - } - ] - }, - "type": { - "type": "reference", - "target": 35, - "name": "BloctoWalletConfigOptions", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/blocto.ts", - "qualifiedName": "BloctoWallet" - }, - "name": "BloctoWallet", - "package": "@thirdweb-dev/wallets" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - ] - }, - { - "id": 1092, - "name": "CheckoutWithCard", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/CheckoutWithCard.tsx", - "line": 47, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/CheckoutWithCard.tsx#L47" - } - ], - "signatures": [ - { - "id": 1093, - "name": "CheckoutWithCard", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/CheckoutWithCard.tsx", - "line": 47, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/CheckoutWithCard.tsx#L47" - } - ], - "parameters": [ - { - "id": 1094, - "name": "props", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/payments/components/CheckoutWithCard.tsx", - "qualifiedName": "CheckoutWithCardProps" - }, - "name": "CheckoutWithCardProps", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/jsx-runtime.d.ts", - "qualifiedName": "JSX.Element" - }, - "name": "Element", - "package": "@types/react", - "qualifiedName": "JSX.Element" - } - } - ] - }, - { - "id": 204, - "name": "coin98Wallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A wallet configurator for [Coin98 Wallet](https://coin98.com/) which allows integrating the wallet with React.\n\nIt returns a [" - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [" - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\ncoin98Wallet({\n projectId: \"my-project-id\",\n recommended: true,\n})\n```" - } - ] - }, - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coin98/coin98Wallet.tsx", - "line": 76, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coin98/coin98Wallet.tsx#L76" - } - ], - "signatures": [ - { - "id": 205, - "name": "coin98Wallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coin98/coin98Wallet.tsx", - "line": 76, - "character": 28, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coin98/coin98Wallet.tsx#L76" - } - ], - "parameters": [ - { - "id": 206, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optional object containing the following properties to configure the wallet\n\n### projectId (optional)\nWhen connecting Coin98 using the QR Code - Wallet Connect connector is used which requires a project id.\nThis project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.\n\n### recommended (optional)\nIf true, the wallet will be tagged as \"recommended\" in [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI" - } - ] - }, - "type": { - "type": "reference", - "target": 207, - "name": "Coin98WalletConfigOptions", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/coin98.ts", - "qualifiedName": "Coin98Wallet" - }, - "name": "Coin98Wallet", - "package": "@thirdweb-dev/wallets" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - ] - }, - { - "id": 39, - "name": "coinbaseWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A wallet configurator for [Coinbase Wallet](https://www.coinbase.com/wallet) which allows integrating the wallet with React.\n\nIt returns a [" - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [" - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\ncoinbaseWallet({\n qrmodal: \"custom\",\n recommended: true,\n})\n```" - } - ] - }, - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coinbase/coinbaseWallet.tsx", - "line": 56, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coinbase/coinbaseWallet.tsx#L56" - } - ], - "signatures": [ - { - "id": 40, - "name": "coinbaseWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coinbase/coinbaseWallet.tsx", - "line": 56, - "character": 30, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coinbase/coinbaseWallet.tsx#L56" - } - ], - "parameters": [ - { - "id": 41, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optional object containing the following properties to configure the wallet\n\n### qrmodal (optional)\nWhether to use the Coinbase's default QR Code modal or show the custom UI in ConnectWallet Modal.\n\nThe default is " - }, - { - "kind": "code", - "text": "`\"custom\"`" - }, - { - "kind": "text", - "text": "\n\n### recommended (optional)\nIf true, the wallet will be tagged as \"recommended\" in [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI" - } - ] - }, - "type": { - "type": "reference", - "target": 42, - "name": "CoinbaseWalletConfigOptions", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/coinbase-wallet.ts", - "qualifiedName": "CoinbaseWallet" - }, - "name": "CoinbaseWallet", - "package": "@thirdweb-dev/wallets" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - ] - }, - { - "id": 732, - "name": "ConnectEmbed", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx", - "line": 301, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx#L301" - } - ], - "signatures": [ - { - "id": 733, - "name": "ConnectEmbed", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A component that allows the user to connect their wallet.\n\nit renders the same UI as the [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component's modal - but directly on the page instead of being in a modal.\n\nIt only renders UI if either one of the following conditions are met:\n- wallet is not connected\n- wallet is connected but the user is not signed in and " - }, - { - "kind": "code", - "text": "`auth`" - }, - { - "kind": "text", - "text": " is required ( loginOptional is not set to false )\n\n" - }, - { - "kind": "code", - "text": "`ConnectEmbed`" - }, - { - "kind": "text", - "text": " uses the [" - }, - { - "kind": "code", - "text": "`useShowConnectEmbed`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/useShowConnectEmbed) hook internally to determine if it should be rendered or not. You can also use this hook to determine if you should render something else instead of " - }, - { - "kind": "code", - "text": "`ConnectEmbed`" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nfunction Example() {\n const loginOptional = false;\n const showConnectEmbed = useShowConnectEmbed(loginOptional);\n\n if (!showConnectEmbed) {\n return
Wallet is connected
\n }\n\n return (\n
\n \n
\n );\n}\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx", - "line": 301, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectEmbed.tsx#L301" - } - ], - "parameters": [ - { - "id": 734, - "name": "props", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The props for the component.\n\n### className\nClass name to be added to the root element of ConnectEmbed\n\n### theme\ntheme for the ConnectEmbed\n\nIf a theme is set on the [" - }, - { - "kind": "code", - "text": "`ThirdWebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider) component, it will be used as the default theme for all thirdweb components, else the default will be \"dark\"\n\ntheme can be set to either \"dark\" or \"light\" or a custom theme object.\n\nYou can also import " - }, - { - "kind": "code", - "text": "`lightTheme`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`darkTheme`" - }, - { - "kind": "text", - "text": " functions from " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/react`" - }, - { - "kind": "text", - "text": " to use the default themes as base and overrides parts of it.\n\n" - }, - { - "kind": "code", - "text": "```ts\nimport { lightTheme } from \"@thirdweb-dev/react\";\nconst customTheme = lightTheme({\n colors: {\n modalBg: 'red'\n }\n})\n```" - }, - { - "kind": "text", - "text": "\n\n### style\nCSS styles to be applied to the root element of ConnectEmbed\n\n### termsOfServiceUrl\nIf provided, Embed will show a Terms of Service message at the bottom with below link\n\n### privacyPolicyUrl\nIf provided, Embed will show a Privacy Policy message at the bottom with below link\n\n### auth\nEnforce that users must sign in with their wallet using [auth](https://portal.thirdweb.com/auth) after connecting their wallet.\n\nThis requires the " - }, - { - "kind": "code", - "text": "`authConfig`" - }, - { - "kind": "text", - "text": " prop to be set on the [" - }, - { - "kind": "code", - "text": "`ThirdWebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider) component.\n\nThe " - }, - { - "kind": "code", - "text": "`auth`" - }, - { - "kind": "text", - "text": " prop accepts an object with the following properties:\n- " - }, - { - "kind": "code", - "text": "`loginOptional`" - }, - { - "kind": "text", - "text": " - specify whether signing in is optional or not. By default it is " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": " ( sign in is required ) if " - }, - { - "kind": "code", - "text": "`authConfig`" - }, - { - "kind": "text", - "text": " is set on [" - }, - { - "kind": "code", - "text": "`ThirdWebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider)\n- " - }, - { - "kind": "code", - "text": "`onLogin`" - }, - { - "kind": "text", - "text": " - Callback to be called after user signs in with their wallet\n- " - }, - { - "kind": "code", - "text": "`onLogout`" - }, - { - "kind": "text", - "text": " - Callback to be called after user signs out\n\n### onConnect\nCallback to be called on successful connection of wallet\n\n" - }, - { - "kind": "code", - "text": "```tsx\n {\n console.log(\"wallet connected\")\n }}\n/>\n```" - }, - { - "kind": "text", - "text": "\n\nNote that this does not include the sign in, If you want to call a callback after user connects AND signs in with their wallet, use " - }, - { - "kind": "code", - "text": "`auth.onLogin`" - }, - { - "kind": "text", - "text": " prop instead\n\n" - }, - { - "kind": "code", - "text": "```tsx\n {\n console.log(\"wallet connected and signed in\")\n }\n }}\n/>\n```" - }, - { - "kind": "text", - "text": "\n\n### showThirdwebBranding\nBy default ConnectWallet shows \"Powered by Thirdweb\" branding at the bottom of the ConnectWallet Modal.\n\nIf you want to hide the branding, set this prop to " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": "\n\n" - }, - { - "kind": "code", - "text": "```tsx\n\n```" - } - ] - }, - "type": { - "type": "reference", - "target": 735, - "name": "ConnectEmbedProps", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/jsx-runtime.d.ts", - "qualifiedName": "JSX.Element" - }, - "name": "Element", - "package": "@types/react", - "qualifiedName": "JSX.Element" - } - } - ] - }, - { - "id": 651, - "name": "ConnectWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 425, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L425" - } - ], - "signatures": [ - { - "id": 652, - "name": "ConnectWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A component that allows the user to connect their wallet.\n\nit renders a button which when clicked opens a modal to allow users to connect to wallets specified in the [" - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider)'s supportedWallets prop.\n\nThis component must be descendant of [" - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider)" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\n\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx", - "line": 425, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx#L425" - } - ], - "parameters": [ - { - "id": 653, - "name": "props", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Props for the ConnectWallet component.\n\nRefer to the [" - }, - { - "kind": "code", - "text": "`ConnectWalletProps`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/ConnectWalletProps) for more details" - } - ] - }, - "type": { - "type": "reference", - "target": 654, - "name": "ConnectWalletProps", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/jsx-runtime.d.ts", - "qualifiedName": "JSX.Element" - }, - "name": "Element", - "package": "@types/react", - "qualifiedName": "JSX.Element" - } - } - ] - }, - { - "id": 174, - "name": "coreWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A wallet configurator for [Core Wallet](https://core.app/) which allows integrating the wallet with React.\n\nIt returns a [" - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [" - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\ncoreWallet({\n projectId: \"my-project-id\",\n recommended: true,\n})\n```" - } - ] - }, - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coreWallet/coreWallet.tsx", - "line": 80, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coreWallet/coreWallet.tsx#L80" - } - ], - "signatures": [ - { - "id": 175, - "name": "coreWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/coreWallet/coreWallet.tsx", - "line": 80, - "character": 26, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/coreWallet/coreWallet.tsx#L80" - } - ], - "parameters": [ - { - "id": 176, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optional object containing the following properties to configure the wallet\n\n### projectId (optional)\nWhen connecting Core using the QR Code - Wallet Connect connector is used which requires a project id.\nThis project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.\n\n### recommended (optional)\nIf true, the wallet will be tagged as \"recommended\" in [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI" - } - ] - }, - "type": { - "type": "reference", - "target": 177, - "name": "CoreWalletConfigOptions", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/core-wallet.ts", - "qualifiedName": "CoreWallet" - }, - "name": "CoreWallet", - "package": "@thirdweb-dev/wallets" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - ] - }, - { - "id": 184, - "name": "cryptoDefiWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A wallet configurator for [Crypto.com Defi Wallet](https://crypto.com/defi-wallet) which allows integrating the wallet with React.\n\nIt returns a [" - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [" - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\ncryptoDefiWallet({\n projectId: \"my-project-id\",\n recommended: true,\n})\n```" - } - ] - }, - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/defiWallet/cryptoDefiWallet.tsx", - "line": 80, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/defiWallet/cryptoDefiWallet.tsx#L80" - } - ], - "signatures": [ - { - "id": 185, - "name": "cryptoDefiWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/defiWallet/cryptoDefiWallet.tsx", - "line": 80, - "character": 32, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/defiWallet/cryptoDefiWallet.tsx#L80" - } - ], - "parameters": [ - { - "id": 186, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optional object containing the following properties to configure the wallet\n\n### projectId (optional)\nWhen connecting Defi wallet using the QR Code - Wallet Connect connector is used which requires a project id.\nThis project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.\n\n### recommended (optional)\nIf true, the wallet will be tagged as \"recommended\" in [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI" - } - ] - }, - "type": { - "type": "reference", - "target": 187, - "name": "CryptoDefiWalletConfigOptions", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/crypto-defi-wallet.ts", - "qualifiedName": "CryptoDefiWallet" - }, - "name": "CryptoDefiWallet", - "package": "@thirdweb-dev/wallets" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - ] - }, - { - "id": 224, - "name": "darkTheme", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 263, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L263" - } - ], - "signatures": [ - { - "id": 225, - "name": "darkTheme", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Create a custom dark theme object by using the default dark theme as a base and applying overrides." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "### Get the default dark theme\n" - }, - { - "kind": "code", - "text": "```ts\nconst defaultDarkTheme = darkTheme()\n```" - }, - { - "kind": "text", - "text": "\n\n### Create a custom dark theme\n" - }, - { - "kind": "code", - "text": "```ts\nconst customTheme = darkTheme({\n colors: {\n modalBg: \"red\",\n },\n});\n```" - } - ] - }, - { - "tag": "@theme", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 263, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L263" - } - ], - "parameters": [ - { - "id": 226, - "name": "overrides", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The overrides to apply to the default dark theme." - } - ] - }, - "type": { - "type": "reference", - "target": 265, - "name": "ThemeOverrides", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": 230, - "name": "Theme", - "package": "@thirdweb-dev/react" - } - } - ] - }, - { - "id": 46, - "name": "embeddedWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A wallet configurator for [Embedded Wallet](https://portal.thirdweb.com/wallet/embedded-wallet) which allows integrating the wallet with React.\n\nIt returns a [" - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [" - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide\n\nYou can also connect this wallet using the [" - }, - { - "kind": "code", - "text": "`useEmbeddedWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useEmbeddedWallet) hook" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nembeddedWallet({\n auth: {\n options: [\"email\", \"google\", \"facebook\", \"apple\"],\n },\n recommended: true,\n});\n```" - } - ] - }, - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/embeddedWallet/embeddedWallet.tsx", - "line": 71, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/embeddedWallet/embeddedWallet.tsx#L71" - } - ], - "signatures": [ - { - "id": 47, - "name": "embeddedWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/embeddedWallet/embeddedWallet.tsx", - "line": 71, - "character": 30, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/embeddedWallet/embeddedWallet.tsx#L71" - } - ], - "parameters": [ - { - "id": 48, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optional object containing the following properties to configure the wallet\n\n### auth (optional)\nChoose which auth providers to show in the wallet connection UI\n\nBy default, all auth methods are enabled, which is equivalent to setting the following:\n" - }, - { - "kind": "code", - "text": "```ts\n{\n options: [\"email\", \"google\", \"apple\", \"facebook\"]\n}\n```" - }, - { - "kind": "text", - "text": "\n\n### recommended (optional)\nIf true, the wallet will be tagged as \"recommended\" in [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI\n\n### onAuthSuccess (optional)\nA callback function that will be called when the user successfully authenticates with the wallet. The callback is called with the " - }, - { - "kind": "code", - "text": "`authResult`" - }, - { - "kind": "text", - "text": " object" - } - ] - }, - "type": { - "type": "reference", - "target": 50, - "name": "EmbeddedWalletConfigOptions", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/embedded-wallet.ts", - "qualifiedName": "EmbeddedWallet" - }, - "name": "EmbeddedWallet", - "package": "@thirdweb-dev/wallets" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - ] - }, - { - "id": 266, - "name": "en", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/en.ts", - "line": 370, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/en.ts#L370" - } - ], - "signatures": [ - { - "id": 267, - "name": "en", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Calling this function will return the default English locale object to be set on [" - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider) to localize the thirdweb components.\n\nYou 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." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "### Use default Locale\n" - }, - { - "kind": "code", - "text": "```tsx\nconst english = en();\n```" - }, - { - "kind": "text", - "text": "\n\n### Override Locale\n" - }, - { - "kind": "code", - "text": "```ts\nconst english = en({\n connectWallet: {\n signIn: \"Sign in!\"\n }\n})\n```" - }, - { - "kind": "text", - "text": "\n\nPass it to [" - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider)'s " - }, - { - "kind": "code", - "text": "`locale`" - }, - { - "kind": "text", - "text": " prop to localize the thirdweb components.\n\n" - }, - { - "kind": "code", - "text": "```tsx\nfunction Example() {\n return (\n \n \n \n )\n}\n```" - } - ] - }, - { - "tag": "@locale", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/en.ts", - "line": 370, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/en.ts#L370" - } - ], - "parameters": [ - { - "id": 268, - "name": "overrides", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/evm/utils/applyOverrides.ts", - "qualifiedName": "DeepPartial" - }, - "typeArguments": [ - { - "type": "reference", - "target": 275, - "name": "ThirdwebLocale", - "package": "@thirdweb-dev/react" - } - ], - "name": "DeepPartial", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": 275, - "name": "ThirdwebLocale", - "package": "@thirdweb-dev/react" - } - } - ] - }, - { - "id": 272, - "name": "es", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/es.ts", - "line": 378, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/es.ts#L378" - } - ], - "signatures": [ - { - "id": 273, - "name": "es", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Calling this function will return the default Spanish locale object to be set on [" - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider) to localize the thirdweb components.\n\nYou 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." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "### Use default Locale\n" - }, - { - "kind": "code", - "text": "```tsx\nconst spanish = es();\n```" - }, - { - "kind": "text", - "text": "\n\n### Override Locale\n" - }, - { - "kind": "code", - "text": "```ts\nconst spanish = es({\n connectWallet: {\n signIn: \"Iniciar sesión\"\n }\n})\n```" - }, - { - "kind": "text", - "text": "\n\nPass it to [" - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider)'s " - }, - { - "kind": "code", - "text": "`locale`" - }, - { - "kind": "text", - "text": " prop to localize the thirdweb components.\n\n" - }, - { - "kind": "code", - "text": "```tsx\nfunction Example() {\n return (\n \n \n \n )\n}\n```" - } - ] - }, - { - "tag": "@locale", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/es.ts", - "line": 378, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/es.ts#L378" - } - ], - "parameters": [ - { - "id": 274, - "name": "overrides", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/evm/utils/applyOverrides.ts", - "qualifiedName": "DeepPartial" - }, - "typeArguments": [ - { - "type": "reference", - "target": 275, - "name": "ThirdwebLocale", - "package": "@thirdweb-dev/react" - } - ], - "name": "DeepPartial", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": 275, - "name": "ThirdwebLocale", - "package": "@thirdweb-dev/react" - } - } - ] - }, - { - "id": 57, - "name": "frameWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A wallet configurator for [Frame Wallet](https://frame.sh/) which allows integrating the wallet with React.\n\nIt returns a [" - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [" - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nframeWallet({\n recommended: true,\n})\n```" - } - ] - }, - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/frame/frameWallet.tsx", - "line": 35, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/frame/frameWallet.tsx#L35" - } - ], - "signatures": [ - { - "id": 58, - "name": "frameWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/frame/frameWallet.tsx", - "line": 35, - "character": 27, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/frame/frameWallet.tsx#L35" - } - ], - "parameters": [ - { - "id": 59, - "name": "config", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optional object containing the following properties to configure the wallet\n\n### recommended (optional)\nIf true, the wallet will be tagged as \"recommended\" in [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI" - } - ] - }, - "type": { - "type": "reference", - "target": 60, - "name": "FrameWalletConfigOptions", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/frame.ts", - "qualifiedName": "FrameWallet" - }, - "name": "FrameWallet", - "package": "@thirdweb-dev/wallets" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - ] - }, - { - "id": 214, - "name": "imTokenWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/imtoken/imTokenWallet.tsx", - "line": 37, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/imtoken/imTokenWallet.tsx#L37" - } - ], - "signatures": [ - { - "id": 215, - "name": "imTokenWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/imtoken/imTokenWallet.tsx", - "line": 37, - "character": 29, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/imtoken/imTokenWallet.tsx#L37" - } - ], - "parameters": [ - { - "id": 216, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "target": 217, - "name": "ImTokenWalletConfigOptions", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/imtoken.ts", - "qualifiedName": "ImTokenWallet" - }, - "name": "ImTokenWallet", - "package": "@thirdweb-dev/wallets" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - ] - }, - { - "id": 269, - "name": "ja", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/ja.ts", - "line": 371, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/ja.ts#L371" - } - ], - "signatures": [ - { - "id": 270, - "name": "ja", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Calling this function will return the default Japanese locale object to be set on [" - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider) to localize the thirdweb components.\n\nYou 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." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "### Use default Locale\n" - }, - { - "kind": "code", - "text": "```tsx\nconst japanese = ja();\n```" - }, - { - "kind": "text", - "text": "\n\n### Override Locale\n" - }, - { - "kind": "code", - "text": "```ts\nconst japanese = ja({\n connectWallet: {\n signIn: \"サインイン\"\n }\n})\n```" - }, - { - "kind": "text", - "text": "\n\nPass it to [" - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider)'s " - }, - { - "kind": "code", - "text": "`locale`" - }, - { - "kind": "text", - "text": " prop to localize the thirdweb components.\n\n" - }, - { - "kind": "code", - "text": "```tsx\nfunction Example() {\n return (\n \n \n \n )\n}\n```" - } - ] - }, - { - "tag": "@locale", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/locales/ja.ts", - "line": 371, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/locales/ja.ts#L371" - } - ], - "parameters": [ - { - "id": 271, - "name": "overrides", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/evm/utils/applyOverrides.ts", - "qualifiedName": "DeepPartial" - }, - "typeArguments": [ - { - "type": "reference", - "target": 275, - "name": "ThirdwebLocale", - "package": "@thirdweb-dev/react" - } - ], - "name": "DeepPartial", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": 275, - "name": "ThirdwebLocale", - "package": "@thirdweb-dev/react" - } - } - ] - }, - { - "id": 227, - "name": "lightTheme", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 235, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L235" - } - ], - "signatures": [ - { - "id": 228, - "name": "lightTheme", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Create a custom light theme object by using the default dark theme as a base and applying overrides." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "### Get the default light theme\n" - }, - { - "kind": "code", - "text": "```ts\nconst defaultLightTheme = lightTheme()\n```" - }, - { - "kind": "text", - "text": "\n\n### Create a custom light theme\n" - }, - { - "kind": "code", - "text": "```ts\nconst customTheme = lightTheme({\n colors: {\n modalBg: \"red\",\n },\n});\n```" - } - ] - }, - { - "tag": "@theme", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/design-system/index.ts", - "line": 235, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/design-system/index.ts#L235" - } - ], - "parameters": [ - { - "id": 229, - "name": "overrides", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The overrides to apply to the default light theme." - } - ] - }, - "type": { - "type": "reference", - "target": 265, - "name": "ThemeOverrides", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": 230, - "name": "Theme", - "package": "@thirdweb-dev/react" - } - } - ] - }, - { - "id": 63, - "name": "localWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A wallet configurator for Local wallet which allows integrating a \"Guest Login\" experience to app.\n\nIt returns a [" - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [" - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nlocalWallet({\n persist: true,\n})\n```" - } - ] - }, - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/localWallet/localWallet.tsx", - "line": 38, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/localWallet/localWallet.tsx#L38" - } - ], - "signatures": [ - { - "id": 64, - "name": "localWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/localWallet/localWallet.tsx", - "line": 38, - "character": 27, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/localWallet/localWallet.tsx#L38" - } - ], - "parameters": [ - { - "id": 65, - "name": "config", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optional object containing the following properties to configure the wallet\n\n### persist (optional)\n\nIf " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": ", the encrypted wallet JSON will be stored on localStorage with user's password.\nthe user will not need to enter their password again when they visit the site. Because of this, the wallet can not be auto connected.\n\nIf " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": ", wallet will not be stored, and no password will be required to connect.\nthe wallet will be lost when the user leaves or reloads the page.\n\nBy default, it is set to " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": "." - } - ] - }, - "type": { - "type": "reference", - "target": 66, - "name": "LocalWalletConfigOptions", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/wallet/wallets/localWallet/types.ts", - "qualifiedName": "LocalWalletConfig" - }, - "name": "LocalWalletConfig", - "package": "@thirdweb-dev/react" - } - } - ] - }, - { - "id": 1095, - "name": "LoginWithPaper", - "variant": "declaration", - "kind": 64, - "flags": {}, - "children": [ - { - "id": 1100, - "name": "contextTypes", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@deprecated", - "content": [ - { - "kind": "text", - "text": "Lets you specify which legacy context is consumed by\nthis component." - } - ] - }, - { - "tag": "@see", - "content": [ - { - "kind": "inline-tag", - "tag": "@link", - "text": "Legacy React Docs", - "target": "https://legacy.reactjs.org/docs/legacy-context.html" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "line": 1142, - "character": 8 - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+prop-types@15.7.12/node_modules/@types/prop-types/index.d.ts", - "qualifiedName": "ValidationMap" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "ValidationMap", - "package": "@types/prop-types" - } - }, - { - "id": 1101, - "name": "defaultProps", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Used to define default values for the props accepted by\nthe component." - } - ], - "blockTags": [ - { - "tag": "@see", - "content": [ - { - "kind": "inline-tag", - "tag": "@link", - "text": "React Docs", - "target": "https://react.dev/reference/react/Component#static-defaultprops" - } - ] - }, - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\ntype Props = { name?: string }\n\nconst MyComponent: FC = (props) => {\n return
{props.name}
\n}\n\nMyComponent.defaultProps = {\n name: 'John Doe'\n}\n```" - } - ] - }, - { - "tag": "@deprecated", - "content": [ - { - "kind": "text", - "text": "Use " - }, - { - "kind": "inline-tag", - "tag": "@link", - "text": "values for destructuring assignments instead", - "target": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#default_value|default" - }, - { - "kind": "text", - "text": "." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "line": 1165, - "character": 8 - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Partial" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "src/payments/components/VerifyOwnershipWithPaper.tsx", - "qualifiedName": "VerifyOwnershipWithPaperProps" - }, - "name": "VerifyOwnershipWithPaperProps", - "package": "@thirdweb-dev/react" - } - ], - "name": "Partial", - "package": "typescript" - } - }, - { - "id": 1102, - "name": "displayName", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Used in debugging messages. You might want to set it\nexplicitly if you want to display a different name for\ndebugging purposes." - } - ], - "blockTags": [ - { - "tag": "@see", - "content": [ - { - "kind": "inline-tag", - "tag": "@link", - "text": "Legacy React Docs", - "target": "https://legacy.reactjs.org/docs/react-component.html#displayname" - } - ] - }, - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\n\nconst MyComponent: FC = () => {\n return
Hello!
\n}\n\nMyComponent.displayName = 'MyAwesomeComponent'\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "line": 1184, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1099, - "name": "propTypes", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Used to declare the types of the props accepted by the\ncomponent. These types will be checked during rendering\nand in development only.\n\nWe recommend using TypeScript instead of checking prop\ntypes at runtime." - } - ], - "blockTags": [ - { - "tag": "@see", - "content": [ - { - "kind": "inline-tag", - "tag": "@link", - "text": "React Docs", - "target": "https://react.dev/reference/react/Component#static-proptypes" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "line": 1133, - "character": 8 - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.WeakValidationMap" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "src/payments/components/VerifyOwnershipWithPaper.tsx", - "qualifiedName": "VerifyOwnershipWithPaperProps" - }, - "name": "VerifyOwnershipWithPaperProps", - "package": "@thirdweb-dev/react" - } - ], - "name": "WeakValidationMap", - "package": "@types/react", - "qualifiedName": "React.WeakValidationMap" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1100, - 1101, - 1102, - 1099 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/VerifyOwnershipWithPaper.tsx", - "line": 36, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/VerifyOwnershipWithPaper.tsx#L36" - } - ], - "signatures": [ - { - "id": 1096, - "name": "LoginWithPaper", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/VerifyOwnershipWithPaper.tsx", - "line": 36, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/VerifyOwnershipWithPaper.tsx#L36" - } - ], - "parameters": [ - { - "id": 1097, - "name": "props", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/payments/components/VerifyOwnershipWithPaper.tsx", - "qualifiedName": "VerifyOwnershipWithPaperProps" - }, - "name": "VerifyOwnershipWithPaperProps", - "package": "@thirdweb-dev/react" - } - }, - { - "id": 1098, - "name": "deprecatedLegacyContext", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@deprecated", - "content": [] - }, - { - "tag": "@see", - "content": [ - { - "kind": "inline-tag", - "tag": "@link", - "text": "React Docs", - "target": "https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods" - } - ] - } - ] - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.ReactNode" - }, - "name": "ReactNode", - "package": "@types/react", - "qualifiedName": "React.ReactNode" - } - } - ] - }, - { - "id": 69, - "name": "magicEdenWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A wallet configurator for [Phantom Wallet](https://phantom.app/) which allows integrating the wallet with React.\n\nIt returns a [" - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [" - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nphantomWallet({\n recommended: true,\n})\n```" - } - ] - }, - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/magicEden/magicEdenWallet.tsx", - "line": 36, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/magicEden/magicEdenWallet.tsx#L36" - } - ], - "signatures": [ - { - "id": 70, - "name": "magicEdenWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/magicEden/magicEdenWallet.tsx", - "line": 36, - "character": 31, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/magicEden/magicEdenWallet.tsx#L36" - } - ], - "parameters": [ - { - "id": 71, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optional configuration options for the wallet\n\n### recommended (optional)\nIf " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": ", the wallet will be tagged as \"recommended\" in [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI. Default is " - }, - { - "kind": "code", - "text": "`false`" - } - ] - }, - "type": { - "type": "reference", - "target": 72, - "name": "MagicEdenWalletConfigOptions", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/magic-eden.ts", - "qualifiedName": "MagicEdenWallet" - }, - "name": "MagicEdenWallet", - "package": "@thirdweb-dev/wallets" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - ] - }, - { - "id": 75, - "name": "magicLink", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/magic/magicLink.tsx", - "line": 152, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/magic/magicLink.tsx#L152" - } - ], - "signatures": [ - { - "id": 76, - "name": "magicLink", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A wallet configurator for [Magic Link](https://magic.link/) which allows integrating the wallet with React.\n\nIt returns a [" - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [" - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nmagicLink({\n apiKey: \"pk_test_123\",\n emailLogin: true,\n smsLogin: true,\n oauthOptions: {\n providers: [\"google\", \"facebook\"],\n redirectURI: \"https://example.com/foo/bar\",\n },\n type: \"auth\", // or 'connect'\n});\n```" - } - ] - }, - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/magic/magicLink.tsx", - "line": 152, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/magic/magicLink.tsx#L152" - } - ], - "parameters": [ - { - "id": 77, - "name": "config", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Object containing the following properties to configure the wallet\n\n### apiKey\nYour Magic Link apiKey\n\nYou can get an API key by signing up for an account on [Magic Link's website](https://magic.link/).\n\nMust be a " - }, - { - "kind": "code", - "text": "`string`" - }, - { - "kind": "text", - "text": "\n\n### magicSdkConfiguration (optional)\nConfiguration for [Magic Auth](https://magic.link/docs/auth/overview) SDK\n\nThis is only relevant if you are using " - }, - { - "kind": "code", - "text": "`type: 'auth'`" - }, - { - "kind": "text", - "text": " in your config\n\n" - }, - { - "kind": "code", - "text": "```ts\n{\n locale?: string;\n endpoint?: string;\n testMode?: boolean;\n}\n```" - }, - { - "kind": "text", - "text": "\n\n* " - }, - { - "kind": "code", - "text": "`locale`" - }, - { - "kind": "text", - "text": " - Customize the language of Magic's modal, email and confirmation screen. See [Localization](https://magic.link/docs/auth/more/customization/localization) for more.\n\n* " - }, - { - "kind": "code", - "text": "`endpoint`" - }, - { - "kind": "text", - "text": " - A URL pointing to the Magic iframe application\n\n* " - }, - { - "kind": "code", - "text": "`testMode`" - }, - { - "kind": "text", - "text": " - Enable [testMode](https://magic.link/docs/auth/introduction/test-mode) to assert the desired behavior through the email address you provide to " - }, - { - "kind": "code", - "text": "`loginWithMagicLink`" - }, - { - "kind": "text", - "text": " without having to go through the auth flow.\n\n### smsLogin (optional)\nSpecify whether you want to allow users to login with their phone number or not. It is " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": " by default\n\nThis is only relevant if you are using " - }, - { - "kind": "code", - "text": "`type: 'auth'`" - }, - { - "kind": "text", - "text": "\n\nMust be a " - }, - { - "kind": "code", - "text": "`boolean`" - }, - { - "kind": "text", - "text": "\n\n### emailLogin (optional)\nSpecify whether you want to allow users to login with their email or not. It is " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": " by default\n\nThis is only relevant if you are using " - }, - { - "kind": "code", - "text": "`type: 'auth'`" - }, - { - "kind": "text", - "text": "\n\nMust be a " - }, - { - "kind": "code", - "text": "`boolean`" - }, - { - "kind": "text", - "text": "\n\n### oauthOptions (optional)\nSpecify which oauth providers you support in " - }, - { - "kind": "code", - "text": "`providers`" - }, - { - "kind": "text", - "text": " array.\n\nSpecify which URI to redirect to after the oauth flow is complete in " - }, - { - "kind": "code", - "text": "`redirectURI`" - }, - { - "kind": "text", - "text": " option. If no " - }, - { - "kind": "code", - "text": "`redirectURI`" - }, - { - "kind": "text", - "text": " is specified, the user will be redirected to the current page.\n\nYou must pass full URL and not just a relative path. For example, " - }, - { - "kind": "code", - "text": "`\"https://example.com/foo\"`" - }, - { - "kind": "text", - "text": " is valid but " - }, - { - "kind": "code", - "text": "`\"/foo\"`" - }, - { - "kind": "text", - "text": " is not.\nYou can use " - }, - { - "kind": "code", - "text": "`new URL(\"/foo\", window.location.origin).href`" - }, - { - "kind": "text", - "text": " to get the full URL from a relative path based on the current origin.\n\nThis is only relevant if you are using " - }, - { - "kind": "code", - "text": "`type: 'auth'`" - }, - { - "kind": "text", - "text": "\n\nYou also need to enable the oauth providers for your apiKey from [Magic dashboard](https://dashboard.magic.link/).\n\n" - }, - { - "kind": "code", - "text": "```ts\ntype OauthOptions = {\n redirectURI?: string;\n providers: OauthProvider[];\n};\n\ntype OauthProvider =\n | \"google\"\n | \"facebook\"\n | \"apple\"\n | \"github\"\n | \"bitbucket\"\n | \"gitlab\"\n | \"linkedin\"\n | \"twitter\"\n | \"discord\"\n | \"twitch\"\n | \"microsoft\";\n```" - }, - { - "kind": "text", - "text": "\n\n### recommended (optional)\nShow this wallet as \"recommended\" in the [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI" - } - ] - }, - "type": { - "type": "reference", - "target": 78, - "name": "MagicWalletConfigOptions", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/wallet/wallets/magic/types.ts", - "qualifiedName": "ConfiguredMagicLinkWallet" - }, - "name": "ConfiguredMagicLinkWallet", - "package": "@thirdweb-dev/react" - } - } - ] - }, - { - "id": 1013, - "name": "MediaRenderer", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Component that renders any asset stored on IPFS (or anywhere else), given the IPFS URI / URL.\n\nUnder the hood, the asset is fetched from IPFS through the thirdweb IPFS gateway (or just\na regular fetch if the " - }, - { - "kind": "code", - "text": "`src`" - }, - { - "kind": "text", - "text": " is not an IPFS URI).\nThe [mime type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the\nasset is determined and the appropriate component is rendered on the UI.\n\nFor example, if the URI points to an image, the " - }, - { - "kind": "code", - "text": "`img`" - }, - { - "kind": "text", - "text": " tag will be used. If it is a video, the " - }, - { - "kind": "code", - "text": "`video`" - }, - { - "kind": "text", - "text": " tag will be used, etc.\nThe component currently supports:\n\n- Images\n- Videos\n- Audio files\n- 3D Models\n- SVGs (for [on-chain NFTs](https://blog.thirdweb.com/guides/how-to-create-on-chain-nfts-with-thirdweb/))\n- " - }, - { - "kind": "code", - "text": "`iframes`" - }, - { - "kind": "text", - "text": " and " - }, - { - "kind": "code", - "text": "`HTML`" - }, - { - "kind": "text", - "text": "\n- If none of these are appropriate, the fallback is a link to the asset" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "Provide the IPFS URI (or any URL that points to media) to the " - }, - { - "kind": "code", - "text": "`src`" - }, - { - "kind": "text", - "text": " prop to render the asset.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { MediaRenderer } from \"@thirdweb-dev/react\";\n\nfunction Home() {\n\treturn (\n\t\t// Any URL that points to media (IPFS URI, HTTP URL, etc.)\n\t\t\n\t);\n}\n```" - } - ] - }, - { - "tag": "@remarks", - "content": [ - { - "kind": "text", - "text": "The default size of rendered media is 300px x 300px, but this can be changed using the " - }, - { - "kind": "code", - "text": "`width`" - }, - { - "kind": "text", - "text": " and " - }, - { - "kind": "code", - "text": "`height`" - }, - { - "kind": "text", - "text": " props.\n\nYou can use " - }, - { - "kind": "code", - "text": "`npx thirdweb upload `" - }, - { - "kind": "text", - "text": " to upload any file to IPFS and get the IPFS URI." - } - ] - } - ] - }, - "children": [ - { - "id": 1019, - "name": "$$typeof", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isReadonly": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "line": 636, - "character": 17 - } - ], - "type": { - "type": "intrinsic", - "name": "symbol" - } - }, - { - "id": 1016, - "name": "defaultProps", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@deprecated", - "content": [ - { - "kind": "text", - "text": "Use " - }, - { - "kind": "inline-tag", - "tag": "@link", - "text": "values for destructuring assignments instead", - "target": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#default_value|default" - }, - { - "kind": "text", - "text": "." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "line": 1568, - "character": 8 - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Partial" - }, - "typeArguments": [ - { - "type": "intersection", - "types": [ - { - "type": "reference", - "target": 873, - "name": "MediaRendererProps", - "package": "@thirdweb-dev/react" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.RefAttributes" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.dom.d.ts", - "qualifiedName": "HTMLMediaElement" - }, - "name": "HTMLMediaElement", - "package": "typescript" - } - ], - "name": "RefAttributes", - "package": "@types/react", - "qualifiedName": "React.RefAttributes" - } - ] - } - ], - "name": "Partial", - "package": "typescript" - } - }, - { - "id": 1018, - "name": "displayName", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Used in debugging messages. You might want to set it\nexplicitly if you want to display a different name for\ndebugging purposes." - } - ], - "blockTags": [ - { - "tag": "@see", - "content": [ - { - "kind": "inline-tag", - "tag": "@link", - "text": "Legacy React Docs", - "target": "https://legacy.reactjs.org/docs/react-component.html#displayname" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "line": 652, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1017, - "name": "propTypes", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "line": 1569, - "character": 8 - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.WeakValidationMap" - }, - "typeArguments": [ - { - "type": "intersection", - "types": [ - { - "type": "reference", - "target": 873, - "name": "MediaRendererProps", - "package": "@thirdweb-dev/react" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.RefAttributes" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.dom.d.ts", - "qualifiedName": "HTMLMediaElement" - }, - "name": "HTMLMediaElement", - "package": "typescript" - } - ], - "name": "RefAttributes", - "package": "@types/react", - "qualifiedName": "React.RefAttributes" - } - ] - } - ], - "name": "WeakValidationMap", - "package": "@types/react", - "qualifiedName": "React.WeakValidationMap" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1019, - 1016, - 1018, - 1017 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/MediaRenderer.tsx", - "line": 599, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/MediaRenderer.tsx#L599" - } - ], - "signatures": [ - { - "id": 1014, - "name": "MediaRenderer", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/MediaRenderer.tsx", - "line": 599, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/MediaRenderer.tsx#L599" - } - ], - "parameters": [ - { - "id": 1015, - "name": "props", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The props for the component\n\n### src (required)\n\nThe [src](https://www.w3schools.com/tags/att_img_src.asp) attribute specifies the URL of the media.\n\nThis can be an IPFS URI, or any URL that points to media (e.g. HTTP URL, etc.).\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { MediaRenderer } from \"@thirdweb-dev/react\";\n\nfunction Home() {\n\treturn (\n\t\t\n\t);\n}\n```" - }, - { - "kind": "text", - "text": "\n\n\n### alt (recommended)\n\nThe [alt](https://www.w3schools.com/tags/att_img_alt.asp) attributes provides alternative\ninformation for the media, if a user for some reason cannot view it\n(due to slow connection, an error in the " - }, - { - "kind": "code", - "text": "`src`" - }, - { - "kind": "text", - "text": " attribute, or if the user is visually impaired).\n\nThe default value is " - }, - { - "kind": "code", - "text": "`\"\"`" - }, - { - "kind": "text", - "text": ".\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { MediaRenderer } from \"@thirdweb-dev/react\";\n\nfunction Home() {\n\treturn (\n\t\t// Any URL that points to media (IPFS URI, HTTP URL, etc.)\n\t\t\n\t);\n}\n```" - }, - { - "kind": "text", - "text": "\n\n\n### poster (optional)\n\nThe [poster](https://www.w3schools.com/tags/att_video_poster.asp) is the image\nthat is shown before the video is played.\n\nThe default value is the first frame of the video.\n\nIf the " - }, - { - "kind": "code", - "text": "`src`" - }, - { - "kind": "text", - "text": " is not a video, this prop is ignored.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { MediaRenderer } from \"@thirdweb-dev/react\";\n\nfunction Home() {\n\treturn (\n\t\t// Any URL that points to media (IPFS URI, HTTP URL, etc.)\n\t\t\n\t);\n}\n```" - }, - { - "kind": "text", - "text": "\n\n\n### controls (optional)\n\nShow the media controls (play, pause, etc.) for the media, where applicable.\n\nThe default value is " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": ".\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { ThirdwebNftMedia } from \"@thirdweb-dev/react\";\n\nfunction Home() {\n\t// ... Get the NFT metadata\n\n\treturn (\n\t\t\n\t);\n}\n```" - }, - { - "kind": "text", - "text": "\n\n\n### height (optional)\n\nThe height of the rendered media.\n\nThe default value is " - }, - { - "kind": "code", - "text": "`auto`" - }, - { - "kind": "text", - "text": ".\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { ThirdwebNftMedia } from \"@thirdweb-dev/react\";\n\nfunction Home() {\n\t// ... Get the NFT metadata\n\n\treturn (\n\t\t\n\t);\n}\n```" - }, - { - "kind": "text", - "text": "\n\n### width (optional)\n\nThe width of the rendered media.\n\nThe default value is " - }, - { - "kind": "code", - "text": "`auto`" - }, - { - "kind": "text", - "text": ".\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { ThirdwebNftMedia } from \"@thirdweb-dev/react\";\n\nfunction Home() {\n\t// ... Get the NFT metadata\n\n\treturn (\n\t\t\n\t);\n}\n```" - }, - { - "kind": "text", - "text": "\n\n\n### requireInteraction (optional)\n\nRequire user interaction to play the media (i.e. disable autoplay).\n\nThe default value is " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": ".\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { ThirdwebNftMedia } from \"@thirdweb-dev/react\";\n\nfunction Home() {\n\t// ... Get the NFT metadata\n\n\treturn (\n\t\t\n\t);\n}\n```" - }, - { - "kind": "text", - "text": "\n\n\n### className (optional)\n\nApply custom CSS styles to the button using a class name.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { ThirdwebNftMedia } from \"@thirdweb-dev/react\";\n\nfunction Home() {\n\t// ... Get the NFT metadata\n\n\treturn (\n\t\t\n\t);\n}\n```" - }, - { - "kind": "text", - "text": "\n\n### style (optional)\n\nApply custom CSS styles to the button using an inline style.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { ThirdwebNftMedia } from \"@thirdweb-dev/react\";\n\nfunction Home() {\n\t// ... Get the NFT metadata\n\n\treturn (\n\t\t\n\t);\n}\n```" - } - ] - }, - "type": { - "type": "intersection", - "types": [ - { - "type": "reference", - "target": 873, - "name": "MediaRendererProps", - "package": "@thirdweb-dev/react" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.RefAttributes" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.dom.d.ts", - "qualifiedName": "HTMLMediaElement" - }, - "name": "HTMLMediaElement", - "package": "typescript" - } - ], - "name": "RefAttributes", - "package": "@types/react", - "qualifiedName": "React.RefAttributes" - } - ] - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.ReactNode" - }, - "name": "ReactNode", - "package": "@types/react", - "qualifiedName": "React.ReactNode" - } - } - ] - }, - { - "id": 81, - "name": "metamaskWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A wallet configurator for [MetaMask Wallet](https://metamask.io/) which allows integrating the wallet with React.\n\nIt returns a [" - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [" - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nmetamaskWallet({\n projectId: 'YOUR_PROJECT_ID',\n connectionMethod: 'walletConnect', // or 'metamaskBrowser',\n recommended: true,\n})\n```" - } - ] - }, - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/metamask/metamaskWallet.tsx", - "line": 92, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/metamask/metamaskWallet.tsx#L92" - } - ], - "signatures": [ - { - "id": 82, - "name": "metamaskWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/metamask/metamaskWallet.tsx", - "line": 92, - "character": 30, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/metamask/metamaskWallet.tsx#L92" - } - ], - "parameters": [ - { - "id": 83, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optional configuration options for the wallet\n\n### projectId (optional)\nWhen connecting Core using the QR Code - Wallet Connect connector is used which requires a project id.\nThis project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.\n\n### recommended (optional)\nIf true, the wallet will be tagged as \"recommended\" in [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI\n\n### connectionMethod (optional)\nSpecify how the connection to metamask app should be established if the user is on a mobile device.\n\nThere are two options: " - }, - { - "kind": "code", - "text": "`\"walletconnect\"`" - }, - { - "kind": "text", - "text": " and " - }, - { - "kind": "code", - "text": "`\"browser\"`" - }, - { - "kind": "text", - "text": "\n1. " - }, - { - "kind": "code", - "text": "`\"walletconnect\"`" - }, - { - "kind": "text", - "text": " - User will be redirected to MetaMask app and upon successful connection, user can return back to the web page.\n2. " - }, - { - "kind": "code", - "text": "`\"browser\"`" - }, - { - "kind": "text", - "text": " - User will be redirected to MetaMask app and the web page will be opened in MetaMask browser.\n\nDefault is " - }, - { - "kind": "code", - "text": "`\"walletconnect\"`" - } - ] - }, - "type": { - "type": "reference", - "target": 84, - "name": "MetamaskWalletConfigOptions", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/metamask.ts", - "qualifiedName": "MetaMaskWallet" - }, - "name": "MetaMaskWallet", - "package": "@thirdweb-dev/wallets" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - ] - }, - { - "id": 164, - "name": "okxWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A wallet configurator for [OKX Wallet](https://www.okx.com/web3) which allows integrating the wallet with React.\n\nIt returns a [" - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [" - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nokxWallet({\n projectId: 'YOUR_PROJECT_ID',\n recommended: true,\n})\n```" - } - ] - }, - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/okx/okxWallet.tsx", - "line": 65, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/okx/okxWallet.tsx#L65" - } - ], - "signatures": [ - { - "id": 165, - "name": "okxWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/okx/okxWallet.tsx", - "line": 65, - "character": 25, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/okx/okxWallet.tsx#L65" - } - ], - "parameters": [ - { - "id": 166, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optional configuration options for the wallet\n\n### projectId (optional)\nWhen connecting Core using the QR Code - Wallet Connect connector is used which requires a project id.\nThis project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.\n\n### recommended (optional)\nIf true, the wallet will be tagged as \"recommended\" in [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI" - } - ] - }, - "type": { - "type": "reference", - "target": 167, - "name": "OKXWalletConfigOptions", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/okx.ts", - "qualifiedName": "OKXWallet" - }, - "name": "OKXWallet", - "package": "@thirdweb-dev/wallets" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - ] - }, - { - "id": 995, - "name": "oneKeyWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A wallet configurator for [Onekey Wallet](https://onekey.so/) which allows integrating the wallet with React.\n\nIt returns a [" - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [" - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\noneKeyWallet({\n projectId: 'YOUR_PROJECT_ID',\n recommended: true,\n})\n```" - } - ] - }, - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/oneKey/oneKeyWallet.tsx", - "line": 76, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/oneKey/oneKeyWallet.tsx#L76" - } - ], - "signatures": [ - { - "id": 996, - "name": "oneKeyWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/oneKey/oneKeyWallet.tsx", - "line": 76, - "character": 28, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/oneKey/oneKeyWallet.tsx#L76" - } - ], - "parameters": [ - { - "id": 997, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optional configuration options for the wallet\n\n### projectId (optional)\nWhen connecting Core using the QR Code - Wallet Connect connector is used which requires a project id.\nThis project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.\n\n### recommended (optional)\nIf true, the wallet will be tagged as \"recommended\" in [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI" - } - ] - }, - "type": { - "type": "reference", - "target": 998, - "name": "OneKeyWalletConfigOptions", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/onekey.ts", - "qualifiedName": "OneKeyWallet" - }, - "name": "OneKeyWallet", - "package": "@thirdweb-dev/wallets" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - ] - }, - { - "id": 1145, - "name": "PaperCheckout", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 78, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L78" - } - ], - "signatures": [ - { - "id": 1146, - "name": "PaperCheckout", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/components/PaperCheckout.tsx", - "line": 78, - "character": 29, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/components/PaperCheckout.tsx#L78" - } - ], - "typeParameters": [ - { - "id": 1147, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/payments/interfaces/CustomContract.ts", - "qualifiedName": "ContractType" - }, - "name": "ContractType", - "package": "@thirdweb-dev/react" - } - } - ], - "parameters": [ - { - "id": 1148, - "name": "__namedParameters", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 1109, - "typeArguments": [ - { - "type": "reference", - "target": 1147, - "name": "T", - "package": "@thirdweb-dev/react", - "refersToTypeParameter": true - } - ], - "name": "PaperCheckoutProps", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/jsx-runtime.d.ts", - "qualifiedName": "JSX.Element" - }, - "name": "Element", - "package": "@types/react", - "qualifiedName": "JSX.Element" - } - } - ] - }, - { - "id": 1087, - "name": "PaymentsSDKProvider", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/Provider.tsx", - "line": 28, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/Provider.tsx#L28" - } - ], - "signatures": [ - { - "id": 1088, - "name": "PaymentsSDKProvider", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/Provider.tsx", - "line": 28, - "character": 35, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/Provider.tsx#L28" - } - ], - "parameters": [ - { - "id": 1089, - "name": "__namedParameters", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.PropsWithChildren" - }, - "typeArguments": [ - { - "type": "reference", - "target": 1083, - "name": "PaymentsProviderProps", - "package": "@thirdweb-dev/react" - } - ], - "name": "PropsWithChildren", - "package": "@types/react", - "qualifiedName": "React.PropsWithChildren" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/jsx-runtime.d.ts", - "qualifiedName": "JSX.Element" - }, - "name": "Element", - "package": "@types/react", - "qualifiedName": "JSX.Element" - } - } - ] - }, - { - "id": 101, - "name": "phantomWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A wallet configurator for [Phantom Wallet](https://phantom.app/) which allows integrating the wallet with React.\n\nIt returns a [" - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [" - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nphantomWallet({\n recommended: true,\n})\n```" - } - ] - }, - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/phantom/phantomWallet.tsx", - "line": 38, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/phantom/phantomWallet.tsx#L38" - } - ], - "signatures": [ - { - "id": 102, - "name": "phantomWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/phantom/phantomWallet.tsx", - "line": 38, - "character": 29, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/phantom/phantomWallet.tsx#L38" - } - ], - "parameters": [ - { - "id": 103, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optional configuration options for the wallet\n\n### recommended (optional)\nIf " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": ", the wallet will be tagged as \"recommended\" in [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI. Default is " - }, - { - "kind": "code", - "text": "`false`" - } - ] - }, - "type": { - "type": "reference", - "target": 104, - "name": "PhantomWalletConfigOptions", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/phantom.ts", - "qualifiedName": "PhantomWallet" - }, - "name": "PhantomWallet", - "package": "@thirdweb-dev/wallets" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - ] - }, - { - "id": 194, - "name": "rabbyWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A wallet configurator for [Rabby Wallet](https://rabby.io/) which allows integrating the wallet with React.\n\nIt returns a [" - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [" - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nrabbyWallet({\n projectId: 'YOUR_PROJECT_ID',\n recommended: true,\n})\n```" - } - ] - }, - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/rabby/rabbyWallet.tsx", - "line": 65, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/rabby/rabbyWallet.tsx#L65" - } - ], - "signatures": [ - { - "id": 195, - "name": "rabbyWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/rabby/rabbyWallet.tsx", - "line": 65, - "character": 27, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/rabby/rabbyWallet.tsx#L65" - } - ], - "parameters": [ - { - "id": 196, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optional configuration options for the wallet\n\n### projectId (optional)\nWhen connecting Core using the QR Code - Wallet Connect connector is used which requires a project id.\nThis project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.\n\n### recommended (optional)\nIf true, the wallet will be tagged as \"recommended\" in [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI" - } - ] - }, - "type": { - "type": "reference", - "target": 197, - "name": "RabbyWalletConfigOptions", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/rabby.ts", - "qualifiedName": "RabbyWallet" - }, - "name": "RabbyWallet", - "package": "@thirdweb-dev/wallets" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - ] - }, - { - "id": 113, - "name": "rainbowWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A wallet configurator for [Rainbow Wallet](https://rainbow.me/en/) which allows integrating the wallet with React.\n\nIt returns a [" - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [" - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nrainbowWallet({\n projectId: 'YOUR_PROJECT_ID',\n recommended: true,\n})\n```" - } - ] - }, - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/rainbow/RainbowWallet.tsx", - "line": 63, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/rainbow/RainbowWallet.tsx#L63" - } - ], - "signatures": [ - { - "id": 114, - "name": "rainbowWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/rainbow/RainbowWallet.tsx", - "line": 63, - "character": 29, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/rainbow/RainbowWallet.tsx#L63" - } - ], - "parameters": [ - { - "id": 115, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optional configuration options for the wallet\n\n### projectId (optional)\nWhen connecting Core using the QR Code - Wallet Connect connector is used which requires a project id.\nThis project id is Your project’s unique identifier for wallet connect that can be obtained at cloud.walletconnect.com.\n\n### recommended (optional)\nIf true, the wallet will be tagged as \"recommended\" in [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI" - } - ] - }, - "type": { - "type": "reference", - "target": 116, - "name": "RainbowWalletConfigOptions", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/rainbow-wallet.ts", - "qualifiedName": "RainbowWallet" - }, - "name": "RainbowWallet", - "package": "@thirdweb-dev/wallets" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - ] - }, - { - "id": 120, - "name": "safeWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A wallet configurator for [Safe](https://safe.global/) which allows integrating the wallet with React.\n\nIt returns a [" - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [" - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nsafeWallet({\n personalWallets: [\n metamaskWallet(),\n coinbaseWallet(),\n walletConnect()\n ],\n})\n```" - } - ] - }, - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/safe/safeWallet.tsx", - "line": 59, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/safe/safeWallet.tsx#L59" - } - ], - "signatures": [ - { - "id": 121, - "name": "safeWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/safe/safeWallet.tsx", - "line": 59, - "character": 26, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/safe/safeWallet.tsx#L59" - } - ], - "parameters": [ - { - "id": 122, - "name": "config", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optional configuration options for the wallet\n\n### personalWallets (optional)\nAn array of personal wallets to show in [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal for personal wallet selection\n\n### recommended (optional)\nIf true, the wallet will be tagged as \"recommended\" in [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal UI" - } - ] - }, - "type": { - "type": "reference", - "target": 123, - "name": "SafeWalletConfigOptions", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/wallet/wallets/safe/types.ts", - "qualifiedName": "SafeWalletConfig" - }, - "name": "SafeWalletConfig", - "package": "@thirdweb-dev/react" - } - } - ] - }, - { - "id": 127, - "name": "smartWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A wallet configurator for [Smart Wallet](https://portal.thirdweb.com/references/wallets/v2/SmartWallet) which allows integrating the wallet with React\n\nIt returns a [" - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [" - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nsmartWallet(\n metamaskWallet(),\n {\n factoryAddress: '0x...',\n gasless: true,\n }\n)\n```" - } - ] - }, - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/smartWallet/smartWallet.tsx", - "line": 50, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/smartWallet/smartWallet.tsx#L50" - } - ], - "signatures": [ - { - "id": 128, - "name": "smartWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/smartWallet/smartWallet.tsx", - "line": 50, - "character": 27, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/smartWallet/smartWallet.tsx#L50" - } - ], - "parameters": [ - { - "id": 129, - "name": "walletConfig", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - }, - { - "id": 130, - "name": "config", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Configuration options for the Smart Wallet\n\n### factoryAddress\nThe address of the Smart Wallet Factory contract. Must be of type " - }, - { - "kind": "code", - "text": "`string`" - }, - { - "kind": "text", - "text": "\n\n### gasless\nWhether to turn on or off gasless transactions. Must be a " - }, - { - "kind": "code", - "text": "`boolean`" - }, - { - "kind": "text", - "text": ".\n\n- If set to " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": ", all gas fees will be paid by a paymaster.\n- If set to " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": ", all gas fees will be paid by the Smart Wallet itself (needs to be funded)." - } - ] - }, - "type": { - "type": "reference", - "target": 131, - "name": "SmartWalletConfigOptions", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/smart-wallet.ts", - "qualifiedName": "SmartWallet" - }, - "name": "SmartWallet", - "package": "@thirdweb-dev/wallets" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - ] - }, - { - "id": 1036, - "name": "ThirdwebNftMedia", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Component that renders an NFT from given a " - }, - { - "kind": "code", - "text": "`metadata`" - }, - { - "kind": "text", - "text": " object.\n\nUnder the hood, if the " - }, - { - "kind": "code", - "text": "`image`" - }, - { - "kind": "text", - "text": " property of the metadata is an URL/IPFS URI, it is fetched from the source.\nThe [mime type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the\nasset is determined and the appropriate component is rendered on the UI.\n\nFor example, if your NFT is an image, the " - }, - { - "kind": "code", - "text": "`img`" - }, - { - "kind": "text", - "text": " tag will be used. If it is a video, the " - }, - { - "kind": "code", - "text": "`video`" - }, - { - "kind": "text", - "text": " tag will be used, etc.\n\nThe component currently supports:\n\n- Images\n- Videos\n- Audio files\n- 3D Models\n- SVGs (for [on-chain NFTs](https://blog.thirdweb.com/guides/how-to-create-on-chain-nfts-with-thirdweb/))\n- " - }, - { - "kind": "code", - "text": "`iframes`" - }, - { - "kind": "text", - "text": " and " - }, - { - "kind": "code", - "text": "`HTML`" - }, - { - "kind": "text", - "text": "\n- If none of these are appropriate, the fallback is a link to the asset" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "Provide the " - }, - { - "kind": "code", - "text": "`metadata`" - }, - { - "kind": "text", - "text": " object to the component to render the NFT.\n\nThe NFT's " - }, - { - "kind": "code", - "text": "`image`" - }, - { - "kind": "text", - "text": " is used as the media, and the " - }, - { - "kind": "code", - "text": "`name`" - }, - { - "kind": "text", - "text": " is used as the alt text for the media.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { ThirdwebNftMedia, useContract, useNFT } from \"@thirdweb-dev/react\";\n\nfunction Home() {\n\t// Connect to your NFT contract\n\tconst { contract } = useContract(\"{{contract_address}}\");\n\t// Load the NFT metadata from the contract using a hook\n\tconst { data: nft, isLoading, error } = useNFT(contract, \"0\");\n\n\t// Render the NFT onto the UI\n\tif (isLoading) return
Loading...
;\n\tif (error || !nft) return
NFT not found
;\n\n\treturn ;\n}\n```" - } - ] - } - ] - }, - "children": [ - { - "id": 1042, - "name": "$$typeof", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isReadonly": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "line": 636, - "character": 17 - } - ], - "type": { - "type": "intrinsic", - "name": "symbol" - } - }, - { - "id": 1039, - "name": "defaultProps", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@deprecated", - "content": [ - { - "kind": "text", - "text": "Use " - }, - { - "kind": "inline-tag", - "tag": "@link", - "text": "values for destructuring assignments instead", - "target": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#default_value|default" - }, - { - "kind": "text", - "text": "." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "line": 1568, - "character": 8 - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Partial" - }, - "typeArguments": [ - { - "type": "intersection", - "types": [ - { - "type": "reference", - "target": 1023, - "name": "ThirdwebNftMediaProps", - "package": "@thirdweb-dev/react" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.RefAttributes" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.dom.d.ts", - "qualifiedName": "HTMLMediaElement" - }, - "name": "HTMLMediaElement", - "package": "typescript" - } - ], - "name": "RefAttributes", - "package": "@types/react", - "qualifiedName": "React.RefAttributes" - } - ] - } - ], - "name": "Partial", - "package": "typescript" - } - }, - { - "id": 1041, - "name": "displayName", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Used in debugging messages. You might want to set it\nexplicitly if you want to display a different name for\ndebugging purposes." - } - ], - "blockTags": [ - { - "tag": "@see", - "content": [ - { - "kind": "inline-tag", - "tag": "@link", - "text": "Legacy React Docs", - "target": "https://legacy.reactjs.org/docs/react-component.html#displayname" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "line": 652, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1040, - "name": "propTypes", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "line": 1569, - "character": 8 - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.WeakValidationMap" - }, - "typeArguments": [ - { - "type": "intersection", - "types": [ - { - "type": "reference", - "target": 1023, - "name": "ThirdwebNftMediaProps", - "package": "@thirdweb-dev/react" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.RefAttributes" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.dom.d.ts", - "qualifiedName": "HTMLMediaElement" - }, - "name": "HTMLMediaElement", - "package": "typescript" - } - ], - "name": "RefAttributes", - "package": "@types/react", - "qualifiedName": "React.RefAttributes" - } - ] - } - ], - "name": "WeakValidationMap", - "package": "@types/react", - "qualifiedName": "React.WeakValidationMap" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 1042, - 1039, - 1041, - 1040 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/NftMedia.tsx", - "line": 96, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/NftMedia.tsx#L96" - } - ], - "signatures": [ - { - "id": 1037, - "name": "ThirdwebNftMedia", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/NftMedia.tsx", - "line": 96, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/NftMedia.tsx#L96" - } - ], - "parameters": [ - { - "id": 1038, - "name": "props", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The props for the component.\n\n### controls (optional)\nShow the media controls (play, pause, etc.) for the media, where applicable.\n\nThe default value is " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": ".\n\n\n### height (optional)\nThe height of the rendered media.\n\nThe default value is " - }, - { - "kind": "code", - "text": "`auto`" - }, - { - "kind": "text", - "text": ".\n\n\n### width (optional)\nThe width of the rendered media.\n\nThe default value is " - }, - { - "kind": "code", - "text": "`auto`" - }, - { - "kind": "text", - "text": ".\n\n### requireInteraction (optional)\nRequire user interaction to play the media (i.e. disable autoplay).\n\nThe default value is " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": ".\n\n\n### className (optional)\nApply custom CSS styles to the button using a class name\n\n\n### style (optional)\nApply custom CSS styles to the button using an inline style." - } - ] - }, - "type": { - "type": "intersection", - "types": [ - { - "type": "reference", - "target": 1023, - "name": "ThirdwebNftMediaProps", - "package": "@thirdweb-dev/react" - }, - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.RefAttributes" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.dom.d.ts", - "qualifiedName": "HTMLMediaElement" - }, - "name": "HTMLMediaElement", - "package": "typescript" - } - ], - "name": "RefAttributes", - "package": "@types/react", - "qualifiedName": "React.RefAttributes" - } - ] - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.ReactNode" - }, - "name": "ReactNode", - "package": "@types/react", - "qualifiedName": "React.ReactNode" - } - } - ] - }, - { - "id": 845, - "name": "ThirdwebProvider", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The " - }, - { - "kind": "code", - "text": "``" - }, - { - "kind": "text", - "text": " component lets you control what networks you want users to connect to,\nwhat types of wallets can connect to your app, and the settings for the [thirdweb SDK](https://docs.thirdweb.com/typescript)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "You can wrap your application with the provider as follows:\n\n" - }, - { - "kind": "code", - "text": "```jsx title=\"App.jsx\"\nimport { ThirdwebProvider } from \"@thirdweb-dev/react\";\n\nconst App = () => {\n return (\n \n \n \n );\n};\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/thirdweb-provider.tsx", - "line": 472, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/thirdweb-provider.tsx#L472" - } - ], - "signatures": [ - { - "id": 846, - "name": "ThirdwebProvider", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/thirdweb-provider.tsx", - "line": 472, - "character": 32, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/thirdweb-provider.tsx#L472" - } - ], - "typeParameters": [ - { - "id": 847, - "name": "TChains", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "../chains/src/types.ts", - "qualifiedName": "Chain" - }, - "name": "Chain", - "package": "@thirdweb-dev/chains" - } - }, - "default": { - "type": "array", - "elementType": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 848, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/chains/dist/declarations/src/index.d.ts", - "line": 4394, - "character": 37 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 849, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/chains/dist/declarations/src/index.d.ts", - "line": 4451, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 850, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/chains/dist/declarations/src/index.d.ts", - "line": 4486, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 851, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/chains/dist/declarations/src/index.d.ts", - "line": 4536, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 852, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/chains/dist/declarations/src/index.d.ts", - "line": 4570, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 853, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/chains/dist/declarations/src/index.d.ts", - "line": 4610, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 854, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/chains/dist/declarations/src/index.d.ts", - "line": 4642, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 855, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/chains/dist/declarations/src/index.d.ts", - "line": 4692, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 856, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/chains/dist/declarations/src/index.d.ts", - "line": 4728, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 857, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/chains/dist/declarations/src/index.d.ts", - "line": 4777, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 858, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/chains/dist/declarations/src/index.d.ts", - "line": 4813, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 859, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/chains/dist/declarations/src/index.d.ts", - "line": 4853, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 860, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/chains/dist/declarations/src/index.d.ts", - "line": 4883, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 861, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/chains/dist/declarations/src/index.d.ts", - "line": 4928, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 862, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/chains/dist/declarations/src/index.d.ts", - "line": 4964, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 863, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/chains/dist/declarations/src/index.d.ts", - "line": 4996, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 864, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/chains/dist/declarations/src/index.d.ts", - "line": 5026, - "character": 4 - } - ] - } - } - ] - } - } - } - ], - "parameters": [ - { - "id": 865, - "name": "props", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The props for the component.\n\n### activeChain (optional)\nThe activeChain prop determines which chain you want your app to be operating on.\n\nThere are 1000+ chains available in the " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/chains`" - }, - { - "kind": "text", - "text": " package. Import the chain you want and pass it to the " - }, - { - "kind": "code", - "text": "`activeChain`" - }, - { - "kind": "text", - "text": " prop.\n\nYou can override the imported object or pass a custom chain object with required properties.\n\n### supportedChains (optional)\nAn array of chains supported by your app.\nThere are 1000+ chains available in the " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/chains`" - }, - { - "kind": "text", - "text": " package. You can import the chain you want and pass it to the " - }, - { - "kind": "code", - "text": "`supportedChains`" - }, - { - "kind": "text", - "text": " prop in an array.\n\nIf not provided, it will default to the default supported chains supported by the thirdweb SDK.\n\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { Ethereum, Polygon } from \"@thirdweb-dev/chains\";\n\nfunction Example() {\n return (\n \n \n \n )\n}\n```" - }, - { - "kind": "text", - "text": "\n\n### clientId (optional)\nThe clientId prop is required to use the thirdweb infrastructure services with the SDK.\n\nYou can get a client ID by creating an API key on [thirdweb dashboard](https://thirdweb.com/dashboard/settings/api-keys)\n\n### supportedWallets (optional)\nWallets supported by the dApp\n\nIf no wallets are provided, the default wallets will be used which is equivalent to the following:\n\n" - }, - { - "kind": "code", - "text": "```tsx\n[\n metamaskWallet(),\n coinbaseWallet(),\n walletConnect(),\n trustWallet(),\n rainbowWallet(),\n zerionWallet(),\n phantomWallet(),\n]\n```" - }, - { - "kind": "text", - "text": "\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { metamaskWallet, coinbaseWallet, walletConnect } from \"@thirdweb-dev/react\";\n\n\n```" - }, - { - "kind": "text", - "text": "\n\n### theme (optional)\nSet the theme for all thirdweb components\n\nBy default it is set to \"dark\".\n\ntheme can be set to either \"dark\" or \"light\" or a custom theme object.\n\nYou can also import " - }, - { - "kind": "code", - "text": "`lightTheme`" - }, - { - "kind": "text", - "text": " or " - }, - { - "kind": "code", - "text": "`darkTheme`" - }, - { - "kind": "text", - "text": " functions from " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/react`" - }, - { - "kind": "text", - "text": " to use the default themes as base and overrides parts of it.\n\n" - }, - { - "kind": "code", - "text": "```ts\nimport { lightTheme } from \"@thirdweb-dev/react\";\nconst customTheme = lightTheme({\n colors: {\n modalBg: 'red'\n }\n})\n```" - }, - { - "kind": "text", - "text": "\n\n### locale (optional)\nlocale object contains text used for all thirdweb components\n\nit allows you to change the language used in UI components or override the texts used in the UI\n\nReact SDK comes out of the box with Spanish and Japanese locale functions, but you can add support for any language you want just by passing an object with the required strings\n\n#### Using Built-in Locales\n\n##### Using the Spanish locale\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { ThirdwebProvider, es } from \"@thirdweb-dev/react\";\n\nconst spanish = es();\n\n \n```" - }, - { - "kind": "text", - "text": "\n\n##### Using the Japanese locale\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { ThirdwebProvider, jp } from \"@thirdweb-dev/react\";\n\nconst japanese = jp();\n\n \n```" - }, - { - "kind": "text", - "text": "\n\n##### Using English locale ( default )\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { ThirdwebProvider, en } from \"@thirdweb-dev/react\";\n\nconst english = en();\n\n \n```" - }, - { - "kind": "text", - "text": "\n\n##### Overriding the locale\n\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { ThirdwebProvider, en } from \"@thirdweb-dev/react\";\n\n// override some texts\nconst english = en({\n connectWallet: {\n confirmInWallet: \"Confirm in your wallet\",\n },\n wallets: {\n metamaskWallet: {\n connectionScreen: {\n inProgress: \"Awaiting Confirmation\",\n instruction: \"Accept connection request in your MetaMask wallet\",\n },\n },\n },\n});\n\n\n \n;\n\n```" - }, - { - "kind": "text", - "text": "\n\n#### Custom locale object\n\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { ThirdwebProvider } from \"@thirdweb-dev/react\";\n\n\n \n;\n```" - }, - { - "kind": "text", - "text": "\n\n### dAppMeta (optional)\nMetadata to pass to wallet connect and walletlink wallet connect. (Used to show *which* dApp is being connected to in mobile wallets that support it)\nDefaults to just the name being passed as " - }, - { - "kind": "code", - "text": "`thirdweb powered dApp`" - }, - { - "kind": "text", - "text": ".\n\n### autoConnect (optional)\nWhen the user has connected their wallet to your site, this flag determines whether or not you want to automatically connect to the last connected wallet when user visits your site again in the future.\nDefaults to " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": ".\n\n### sdkOptions (optional)\nOverride any of the default values for the SDK. Gas settings, gasless transactions, RPC configuration, and more.\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { ThirdwebProvider } from \"@thirdweb-dev/react\";\n\nconst sdkOptions = {\n readonlySettings: {\n rpcUrl: \"\", // force read calls to go through your own RPC url\n chainId: 1, // reduce RPC calls by specifying your chain ID\n },\n gasSettings: {\n maxPriceInGwei: 123, // Maximum gas price for transactions (default 300 gwei)\n speed: \"fastest\", // the tx speed setting: 'standard'|'fast|'fastest' (default: 'fastest')\n },\n gasless: {\n // By specifying a gasless configuration - all transactions will get forwarded to enable gasless transactions\n openzeppelin: {\n relayerUrl: \"\", // your OZ Defender relayer URL\n relayerForwarderAddress: \"\", // the OZ defender relayer address (defaults to the standard one)\n },\n biconomy: {\n apiId: \"biconomy-api-id\", // your Biconomy API Id\n apiKey: \"biconomy-api-key\", // your Biconomy API Key\n deadlineSeconds: 123, // your Biconomy timeout preference\n },\n },\n infuraApiKey: \"\", // your Infura API key\n alchemyApiKey: \"\", // your Alchemy API key\n};\n\nfunction Example() {\n return (\n \n \n \n );\n}\n```" - }, - { - "kind": "text", - "text": "\n\n### authConfig (optional)\nThe configuration object for setting up [Auth](https://portal.thirdweb.com/wallets/auth); allowing users to sign in with their wallet.\nIt takes an object with the following properties:\n- " - }, - { - "kind": "code", - "text": "`authUrl`" - }, - { - "kind": "text", - "text": " - The backend URL of the authentication endpoints. For example, if your endpoints are at " - }, - { - "kind": "code", - "text": "`/api/auth/login`" - }, - { - "kind": "text", - "text": ", " - }, - { - "kind": "code", - "text": "`/api/auth/logout`" - }, - { - "kind": "text", - "text": ", etc. then this should be set to " - }, - { - "kind": "code", - "text": "`/api/auth`" - }, - { - "kind": "text", - "text": "\n- " - }, - { - "kind": "code", - "text": "`domain`" - }, - { - "kind": "text", - "text": " - The frontend domain used to generate the login payload. This domain should match the domain used on your auth backend.\n- " - }, - { - "kind": "code", - "text": "`secureStorage`" - }, - { - "kind": "text", - "text": " - Secure storage to use when working with JWT tokens. By default auth uses cookies so no need to set this unless you want to specifically use JWT tokens\n\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { ThirdwebProvider } from \"@thirdweb-dev/react\";\n\nfunction MyApp() {\n return (\n \n \n \n );\n}\n```" - }, - { - "kind": "text", - "text": "\n\n### signer (optional)\nUse a signer instead of " - }, - { - "kind": "code", - "text": "`supportedWallets`" - }, - { - "kind": "text", - "text": " if you want to provide your own wallet connection logic.\n\n### storageInterface\nOverride the default [Storage](/storage) interface used by the SDK.\n\nAllows you to create an instance of " - }, - { - "kind": "code", - "text": "`ThirdwebStorage`" - }, - { - "kind": "text", - "text": " with your own customized config, and pass it to the SDK. This requires the " - }, - { - "kind": "code", - "text": "`@thirdweb-dev/storage`" - }, - { - "kind": "text", - "text": " package to be installed.\n\n[Learn more about storage](https://portal.thirdweb.com/infrastructure/storage/overview)\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { ThirdwebProvider } from \"@thirdweb-dev/react\";\nimport {\n\tThirdwebStorage,\n\tStorageDownloader,\n\tIpfsUploader,\n} from \"@thirdweb-dev/storage\";\n\n// Configure a custom ThirdwebStorage instance\nconst storage = new ThirdwebStorage({\n\tuploader: new IpfsUploader(),\n\tdownloader: new StorageDownloader(),\n\tgatewayUrls: {\n\t\t\"ipfs://\": [\n\t\t\t\"https://gateway.ipfscdn.io/ipfs/\",\n\t\t\t\"https://cloudflare-ipfs.com/ipfs/\",\n\t\t\t\"https://ipfs.io/ipfs/\",\n\t\t],\n\t},\n});\n\n// Provide the custom storage instance to the SDK\nfunction MyApp() {\n\treturn (\n\t\t\n\t\t\t\n\t\t\n\t);\n}\n```" - }, - { - "kind": "text", - "text": "\n\n### queryClient (optional)\nIf you are using [React Query](https://react-query.tanstack.com/) and have your own " - }, - { - "kind": "code", - "text": "`QueryClient`" - }, - { - "kind": "text", - "text": ",\nyou can pass it as the " - }, - { - "kind": "code", - "text": "`queryClient`" - }, - { - "kind": "text", - "text": " prop to use this client instead of the SDK's default client.\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { ThirdwebProvider } from \"@thirdweb-dev/react\";\nimport { QueryClient, QueryClientProvider } from \"@tanstack/react-query\";\n\nfunction MyApp() {\n\t// Your React Query client (or client from other library such as wagmi)\n\tconst queryClient = new QueryClient();\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n}\n```" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/index.d.ts", - "qualifiedName": "React.PropsWithChildren" - }, - "typeArguments": [ - { - "type": "reference", - "target": 867, - "typeArguments": [ - { - "type": "reference", - "target": 847, - "name": "TChains", - "package": "@thirdweb-dev/react", - "refersToTypeParameter": true - } - ], - "name": "ThirdwebProviderProps", - "package": "@thirdweb-dev/react" - } - ], - "name": "PropsWithChildren", - "package": "@types/react", - "qualifiedName": "React.PropsWithChildren" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@types+react@18.3.5/node_modules/@types/react/jsx-runtime.d.ts", - "qualifiedName": "JSX.Element" - }, - "name": "Element", - "package": "@types/react", - "qualifiedName": "JSX.Element" - } - } - ] - }, - { - "id": 132, - "name": "trustWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A wallet configurator for [Trust Wallet](https://trustwallet.com/) which allows integrating the wallet with React.\n\nIt returns a [" - }, - { - "kind": "code", - "text": "`WalletConfig`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/WalletConfig) object which can be used to connect the wallet to via [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) component or [" - }, - { - "kind": "code", - "text": "`useConnect`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/references/react/v4/useConnect) hook as mentioned in [Connecting Wallets](https://portal.thirdweb.com/react/v4/connecting-wallets) guide" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\ntrustWallet({\n projectId: 'your_project_id',\n recommended: true,\n})\n```" - } - ] - }, - { - "tag": "@wallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/trustWallet/TrustWallet.tsx", - "line": 77, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/trustWallet/TrustWallet.tsx#L77" - } - ], - "signatures": [ - { - "id": 133, - "name": "trustWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/wallet/wallets/trustWallet/TrustWallet.tsx", - "line": 77, - "character": 27, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/wallet/wallets/trustWallet/TrustWallet.tsx#L77" - } - ], - "parameters": [ - { - "id": 134, - "name": "options", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "target": 135, - "name": "TrustWalletConfigOptions", - "package": "@thirdweb-dev/react" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../react-core/src/core/types/wallet.ts", - "qualifiedName": "WalletConfig" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/trust.ts", - "qualifiedName": "TrustWallet" - }, - "name": "TrustWallet", - "package": "@thirdweb-dev/wallets" - } - ], - "name": "WalletConfig", - "package": "@thirdweb-dev/react-core" - } - } - ] - }, - { - "id": 945, - "name": "useEmbeddedWallet", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts", - "line": 113, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts#L113" - } - ], - "signatures": [ - { - "id": 946, - "name": "useEmbeddedWallet", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to connect " - }, - { - "kind": "code", - "text": "`EmbeddedWallet`" - }, - { - "kind": "text", - "text": " which allows users to login via Email or social logins\n\nThe " - }, - { - "kind": "code", - "text": "`embeddedWallet()`" - }, - { - "kind": "text", - "text": " should be added to [" - }, - { - "kind": "code", - "text": "`ThirdwebProvider`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/ThirdwebProvider)'s " - }, - { - "kind": "code", - "text": "`supportedWallets`" - }, - { - "kind": "text", - "text": " prop to enable auto-connection on page load" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "text", - "text": "### Social Login\n\n" - }, - { - "kind": "code", - "text": "```jsx\nimport { useEmbeddedWallet } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { connect } = useEmbeddedWallet();\n\n const handleLogin = async () => {\n await connect({\n strategy: \"google\",\n });\n };\n\n return ;\n}\n```" - }, - { - "kind": "text", - "text": "\n\n\n### Login with Email verification\n\n" - }, - { - "kind": "code", - "text": "```tsx\nimport { useEmbeddedWallet } from \"@thirdweb-dev/react\";\n\nfunction App() {\n const { connect, sendVerificationEmail } = useEmbeddedWallet();\n\n const sendVerificationCode = async (email: string) => {\n // send email verification code\n await sendVerificationEmail({ email });\n };\n\n const handleLogin = async (email: string, verificationCode: string) => {\n // verify email and connect\n await connect({\n strategy: \"email_verification\",\n email,\n verificationCode,\n });\n };\n\n return
...
;\n}\n```" - }, - { - "kind": "text", - "text": "\n\n\n### Available connection strategies\n\n" - }, - { - "kind": "code", - "text": "```tsx\n// email verification\ntype EmailVerificationAuthParams = {\n strategy: \"email_verification\";\n email: string;\n verificationCode: string;\n recoveryCode?: string;\n};\n\nexport type EmbeddedWalletOauthStrategy = \"google\" | \"apple\" | \"facebook\";\n\ntype OauthAuthParams = {\n strategy: EmbeddedWalletOauthStrategy;\n openedWindow?: Window;\n closeOpenedWindow?: (window: Window) => void;\n};\n\n// bring your own authentication\ntype JwtAuthParams = {\n strategy: \"jwt\";\n jwt: string;\n encryptionKey?: string;\n};\n\n// open iframe to send and input the verification code only\ntype IframeOtpAuthParams = {\n strategy: \"iframe_email_verification\";\n email: string;\n};\n\n// open iframe to enter email and verification code\ntype IframeAuthParams = {\n strategy: \"iframe\";\n};\n```" - } - ] - }, - { - "tag": "@walletConnection", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts", - "line": 113, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts#L113" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 947, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 948, - "name": "connect", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts", - "line": 177, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts#L177" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 949, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts", - "line": 121, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts#L121" - } - ], - "signatures": [ - { - "id": 950, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts", - "line": 121, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts#L121" - } - ], - "parameters": [ - { - "id": 951, - "name": "authParams", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/connectors/embedded-wallet/types.ts", - "qualifiedName": "AuthParams" - }, - "name": "AuthParams", - "package": "@thirdweb-dev/wallets" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/wallets/embedded-wallet.ts", - "qualifiedName": "EmbeddedWallet" - }, - "name": "EmbeddedWallet", - "package": "@thirdweb-dev/wallets" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - }, - { - "id": 952, - "name": "sendVerificationEmail", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts", - "line": 178, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts#L178" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 953, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts", - "line": 161, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts#L161" - } - ], - "signatures": [ - { - "id": 954, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts", - "line": 161, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts#L161" - } - ], - "parameters": [ - { - "id": 955, - "name": "__namedParameters", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 956, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 957, - "name": "email", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts", - "line": 161, - "character": 24, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts#L161" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 957 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts", - "line": 161, - "character": 22, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts#L161" - } - ] - } - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/connectors/embedded-wallet/implementations/interfaces/embedded-wallets/embedded-wallets.ts", - "qualifiedName": "SendEmailOtpReturnType" - }, - "name": "SendEmailOtpReturnType", - "package": "@thirdweb-dev/wallets" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 948, - 952 - ] - } - ], - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts", - "line": 176, - "character": 9, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts#L176" - } - ] - } - } - } - ] - }, - { - "id": 960, - "name": "useEmbeddedWalletSendVerificationEmail", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@walletConnection", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/hooks/useEmbeddedWalletSendVerificationEmail.ts", - "line": 9, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/hooks/useEmbeddedWalletSendVerificationEmail.ts#L9" - } - ], - "signatures": [ - { - "id": 961, - "name": "useEmbeddedWalletSendVerificationEmail", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/hooks/useEmbeddedWalletSendVerificationEmail.ts", - "line": 9, - "character": 54, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/hooks/useEmbeddedWalletSendVerificationEmail.ts#L9" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 962, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/hooks/useEmbeddedWalletSendVerificationEmail.ts", - "line": 13, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/hooks/useEmbeddedWalletSendVerificationEmail.ts#L13" - } - ], - "signatures": [ - { - "id": 963, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/hooks/useEmbeddedWalletSendVerificationEmail.ts", - "line": 13, - "character": 4, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/hooks/useEmbeddedWalletSendVerificationEmail.ts#L13" - } - ], - "parameters": [ - { - "id": 964, - "name": "email", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "../wallets/src/evm/connectors/embedded-wallet/implementations/interfaces/embedded-wallets/embedded-wallets.ts", - "qualifiedName": "SendEmailOtpReturnType" - }, - "name": "SendEmailOtpReturnType", - "package": "@thirdweb-dev/wallets" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - } - ] - }, - { - "id": 958, - "name": "useEmbeddedWalletUserEmail", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts", - "line": 203, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts#L203" - } - ], - "signatures": [ - { - "id": 959, - "name": "useEmbeddedWalletUserEmail", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook to get the user's email from connected " - }, - { - "kind": "code", - "text": "`EmbeddedWallet`" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nconst emailQuery = useEmbeddedWalletUserEmail();\n\nif (emailQuery.isFetching) {\n return
Loading...
;\n}\n\nif (emailQuery.data) {\n return
Connected with {emailQuery.data}
;\n}\n\nreturn
Not connected
;\n```" - } - ] - }, - { - "tag": "@walletConnection", - "content": [] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Hook's " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": " property contains the " - }, - { - "kind": "code", - "text": "`string`" - }, - { - "kind": "text", - "text": " email if " - }, - { - "kind": "code", - "text": "`EmbeddedWallet`" - }, - { - "kind": "text", - "text": " is connected, otherwise " - }, - { - "kind": "code", - "text": "`undefined`" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts", - "line": 203, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/hooks/wallets/useEmbeddedWallet.ts#L203" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/@tanstack+react-query@4.36.1_react-dom@18.3.1_react@18.3.1__react-native@0.75.3_@babel+core@7_t5itazjm66cadlpw7at2y2w4bu/node_modules/@tanstack/react-query/src/types.ts", - "qualifiedName": "UseQueryResult" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - ], - "name": "UseQueryResult", - "package": "@tanstack/react-query" - } - } - ] - }, - { - "id": 609, - "name": "useIsWalletModalOpen", - "variant": "declaration", - "kind": 64, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Check if the [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) Modal is open or not" - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```tsx\nconst isOpen = useIsWalletModalOpen();\n```" - } - ] - }, - { - "tag": "@connectWallet", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 107, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L107" - } - ], - "signatures": [ - { - "id": 610, - "name": "useIsWalletModalOpen", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": " if the [" - }, - { - "kind": "code", - "text": "`ConnectWallet`" - }, - { - "kind": "text", - "text": "](https://portal.thirdweb.com/react/v4/components/ConnectWallet) modal is open, " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": " otherwise" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx", - "line": 107, - "character": 36, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/providers/wallet-ui-states-provider.tsx#L107" - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 1090, - "name": "usePaymentsSDKContext", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/Provider.tsx", - "line": 52, - "character": 13, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/Provider.tsx#L52" - } - ], - "signatures": [ - { - "id": 1091, - "name": "usePaymentsSDKContext", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/payments/Provider.tsx", - "line": 52, - "character": 37, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/payments/Provider.tsx#L52" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "src/payments/Provider.tsx", - "qualifiedName": "SDKContext" - }, - "name": "SDKContext", - "package": "@thirdweb-dev/react" - } - } - ] - }, - { - "id": 1005, - "name": "useResolvedMediaType", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "legacy_packages/react/src/evm/components/MediaRenderer.tsx", - "line": 762, - "character": 16, - "url": "https://github.com/thirdweb-dev/js/blob/95b3c787a3d6fcdcd5b484d1e189f73a9e28e442/legacy_packages/react/src/evm/components/MediaRenderer.tsx#L762" - } - ], - "signatures": [ - { - "id": 1006, - "name": "useResolvedMediaType", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Hook for resolving the media type and URL of a given URI (including IPFS URIs).\n\nThe " - }, - { - "kind": "code", - "text": "``" - }, - { - "kind": "text", - "text": " component renders the relevant.\nHTML element for a given URL, including IPFS URIs. e.g. " - }, - { - "kind": "code", - "text": "``" - }, - { - "kind": "text", - "text": " for images, " - }, - { - "kind": "code", - "text": "`
- } - > - {props.children} - - ); -} - -export const metadata = createMetadata({ - image: { - title: "thirdweb TypeScript Alpha SDK", - icon: "typescript", - }, - title: "thirdweb TypeScript SDK", - description: - "A type-safe library to interact with any EVM-compatible blockchain in both Node.js and the browser.", -}); diff --git a/apps/portal/src/app/typescript/v4/page.mdx b/apps/portal/src/app/typescript/v4/page.mdx deleted file mode 100644 index af2dcb57945..00000000000 --- a/apps/portal/src/app/typescript/v4/page.mdx +++ /dev/null @@ -1,99 +0,0 @@ -import { - OpenSourceCard, - ArticleIconCard, - InstallTabs, - createMetadata, - Callout, -} from "@doc"; -import { GraduationCap } from "lucide-react"; - -export const metadata = createMetadata({ - image: { - title: "thirdweb TypeScript Alpha SDK", - icon: "typescript", - }, - title: "thirdweb TypeScript SDK", - description: - "A type-safe library to interact with any EVM-compatible blockchain in both Node.js and the browser.", -}); - -# TypeScript SDK - - - -You are viewing the documentation for the TypeScript SDK v4. - -See the [TypeScript SDK v5](/typescript/v5) for the latest version. - - - -A type-safe library to interact with any EVM-compatible blockchain in both Node.js and the browser. - -Connect to user's wallets, interact with smart contracts, sign messages, and utilize common standards such as tokens, NFTs, marketplaces; all with built-in RPC URLs, IPFS gateways, and more. - - - -## Installation - - - -
- [Starter Kits](https://github.com/thirdweb-example#starter-kits) • - [Templates](https://thirdweb.com/templates) • - [GitHub](https://github.com/thirdweb-dev/js) -
- -## Get Started - -Check out the [getting started](/typescript/v4/getting-started) guide to learn how to use the SDK in less than 2 minutes. - - - -## How It Works - -The TypeScript SDK provides a type-safe interface to interact with your smart contracts, wallets, and the blockchain. - -It can interact with any contract on any EVM-compatible blockchain, without having to specify ABIs, RPC URLs, or IPFS gateways. - -It also simplifies interacting with standard contracts using the [Extensions Framework](/typescript/v4/extensions). Standards and common contract patterns are detected by the SDK and unlocks a convenient, high level API which does the heavy lifting for you. - -For example, if your smart contract implements the standard `ERC721` interface, you can list all NFTs in the contract in one line with `contract.erc721.getAll()` method. This will handle querying supply, downloading metadata and owners for each token, and returning a list of type safe NFT objects. - -```ts -import { ThirdwebSDK } from "@thirdweb-dev/sdk"; - -// instantiate the SDK with a simple chain name or chain id -const sdk = new ThirdwebSDK("polygon"); - -// access your deployed contracts, ABI is optional -const contract = await sdk.getContract("0x..."); - -// Read data using direct calls to your contract -const myData = await contract.call("myFunction"); - -// Or Using the extensions API matching to your contract extensions -// ex: read all ERC721 NFTs, along with metadata and owners -const allNFTs = await contract.erc721.getAll(); -// upload metadata to IPFS and mint a new NFT -await contract.erc721.mint({ - name: "Cool NFT", - description: "Minted NFT from code!", - image: fs.readFileSync("path/to/image.png"), // This can be an image url or file -}); -``` - -This saves a lot of time and effort, as you don't have to manually implement these common functions yourself. - -To get started, create an instance of the ThirdwebSDK class to connect to your smart contract and start interacting with it's functions and extensions. diff --git a/apps/portal/src/app/typescript/v4/sidebar.tsx b/apps/portal/src/app/typescript/v4/sidebar.tsx deleted file mode 100644 index 5fbeeb92a2a..00000000000 --- a/apps/portal/src/app/typescript/v4/sidebar.tsx +++ /dev/null @@ -1,302 +0,0 @@ -import type { SideBar } from "@/components/Layouts/DocLayout"; -import { InfraStorageIcon } from "@/icons/products/infra/InfraStorageIcon"; -import { WalletsConnectIcon } from "@/icons/products/wallets/WalletsConnectIcon"; -import type { SidebarLink } from "../../../components/others/Sidebar"; -import { ReactIcon } from "../../../icons"; - -function getReactSideBar(): SidebarLink { - const sdkSlug = "/react/v4"; - const referenceSlug = "/references/react/v4"; - const componentsSlug = "/react/v4/components"; - - return { - icon: , - name: "React SDK", - links: [ - { - name: "Overview", - href: sdkSlug, - }, - { - name: "Getting Started", - href: `${sdkSlug}/getting-started`, - }, - { - name: "ThirdwebProvider", - href: `${sdkSlug}/ThirdwebProvider`, - }, - { - name: "ThirdwebSDKProvider", - href: `${sdkSlug}/ThirdwebSDKProvider`, - }, - { - name: "Connecting Wallets", - href: `${sdkSlug}/connecting-wallets`, - links: [ - { - name: "Custom UI", - href: `${sdkSlug}/connecting-wallets/custom-ui`, - }, - ], - }, - { - name: "Wallets", - href: `${sdkSlug}/wallets`, - }, - { - name: "Components", - links: [ - { - name: "ConnectWallet", - href: `${componentsSlug}/ConnectWallet`, - }, - { - name: "ConnectEmbed", - href: `${componentsSlug}/ConnectEmbed`, - }, - { - name: "Web3Button", - href: `${componentsSlug}/Web3Button`, - }, - { - name: "ThirdwebNftMedia", - href: `${componentsSlug}/ThirdwebNftMedia`, - }, - { - name: "MediaRenderer", - href: `${componentsSlug}/MediaRenderer`, - }, - ], - }, - { - name: "Hooks", - href: `${referenceSlug}/hooks`, - }, - { - name: "Full Reference", - href: referenceSlug, - }, - ], - }; -} - -function getReactNativeSidebar(): SidebarLink { - const sdkSlug = "/react-native/v0"; - const walletsSlug = "/react-native/v0/wallets"; - const componentsSlug = "/react-native/v0/components"; - const referencesSlug = "/references/react-native/v0"; - - return { - name: "React Native SDK", - icon: , - links: [ - { - name: "Overview", - href: sdkSlug, - }, - { - name: "Installation", - href: `${sdkSlug}/installation`, - }, - { - name: "Getting Started", - href: `${sdkSlug}/getting-started`, - }, - { - name: "ThirdwebProvider", - href: `${sdkSlug}/ThirdwebProvider`, - }, - { - name: "ThirdwebSDKProvider", - href: `${sdkSlug}/ThirdwebSDKProvider`, - }, - { - name: "Connecting Wallets", - href: `${sdkSlug}/connecting-wallets`, - links: [ - { - name: "Custom UI", - href: `${sdkSlug}/connecting-wallets/custom-ui`, - }, - ], - }, - { - name: "Wallets", - href: walletsSlug, - links: [ - { - name: "Coinbase Wallet", - href: `${walletsSlug}/coinbase`, - }, - { - name: "In-App Wallet", - href: `${walletsSlug}/in-app-wallet`, - }, - { - name: "Local Wallet", - href: `${walletsSlug}/local-wallet`, - }, - { - name: "Magic Link", - href: `${walletsSlug}/magiclink`, - }, - { - name: "MetaMask Wallet", - href: `${walletsSlug}/metamask`, - }, - { - name: "Rainbow Wallet", - href: `${walletsSlug}/rainbow`, - }, - { - name: "Smart Account (Account Abstraction)", - href: `${walletsSlug}/smartwallet`, - }, - { - name: "Trust Wallet", - href: `${walletsSlug}/trust`, - }, - { - name: "WalletConnect", - href: `${walletsSlug}/walletconnect`, - }, - ], - }, - { - name: "UI Components", - links: [ - { - name: "ConnectWallet", - href: `${componentsSlug}/ConnectWallet`, - }, - { - name: "ConnectEmbed", - href: `${componentsSlug}/ConnectEmbed`, - }, - { - name: "Web3Button", - href: `${componentsSlug}/Web3Button`, - }, - ], - }, - { - name: "Hooks", - href: `${referencesSlug}/hooks`, - }, - { - name: "FAQ", - href: `${sdkSlug}/faq`, - }, - { - name: "Full Reference", - href: referencesSlug, - }, - ], - }; -} - -function getWalletSDKSidebar(): SidebarLink { - return { - name: "Wallet SDK", - icon: , - links: [ - { - name: "Overview", - href: "/wallet-sdk/v2", - }, - { - name: "Usage", - href: "/wallet-sdk/v2/usage", - }, - { - name: "Wallets", - href: "/wallet-sdk/v2/wallets", - }, - { - name: "Build a Wallet", - href: "/wallet-sdk/v2/build", - links: [ - { - name: "Wallet interface", - href: "/wallet-sdk/v2/build/connector", - }, - { - name: "ConnectWallet integration", - href: "/wallet-sdk/v2/build/connect-wallet-integration", - }, - ], - }, - { - name: "Full Reference", - href: "/references/wallets/v2", - }, - ], - }; -} - -function getStorageSDKSidebar(): SidebarLink { - return { - name: "Storage SDK", - icon: , - links: [ - { - name: "Overview", - href: "/storage-sdk/v2", - }, - { - name: "Full Reference", - href: "/references/storage/v2", - }, - ], - }; -} - -export const typescriptV4Sidebar: SideBar = { - name: "TypeScript SDK", - links: [ - { - name: "Overview", - href: "/typescript/v4", - }, - { - name: "Getting Started", - href: "/typescript/v4/getting-started", - }, - { - name: "Deploying Contracts", - href: "/typescript/v4/deploy", - }, - { - name: "Interacting With Contracts", - href: "/typescript/v4/interact", - }, - { - name: "Extensions Framework", - href: "/typescript/v4/extensions", - }, - { - name: "Contract utilities", - href: "/typescript/v4/utilities", - }, - { - name: "Full Reference", - href: "/references/typescript/v4", - }, - { - separator: true, - }, - getReactSideBar(), - { - separator: true, - }, - getReactNativeSidebar(), - { - separator: true, - }, - getWalletSDKSidebar(), - { - separator: true, - }, - getStorageSDKSidebar(), - ], -}; diff --git a/apps/portal/src/app/typescript/v4/utilities/page.mdx b/apps/portal/src/app/typescript/v4/utilities/page.mdx deleted file mode 100644 index b8814153e96..00000000000 --- a/apps/portal/src/app/typescript/v4/utilities/page.mdx +++ /dev/null @@ -1,71 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - image: { - title: "Contract Utilities", - icon: "typescript", - }, - title: "Contract utilities | thirdweb TypeScript SDK", - description: - "Verify contracts, get ABI, get functions and events definitions, get sources, resolve proxy implementations, and more with the thirdweb TypeScript SDK.", -}); - -# Contract utilities - -The SDK comes packed with a few utilities that are useful beyond developing web3 applications. - -## Contract Verification - -Verify a contract on a given block explorer via the [`sdk.verifier`](/references/typescript/v4/ContractVerifier) object. - -```typescript -const contractAddress = "0x..."; -const explorerAPIUrl = ""; // e.g. https://api.etherscan.io/api -const explorerAPIKey = ""; // Generate API key on the explorer - -await sdk.verifier.verifyContract( - contractAddress, - explorerAPIUrl, - explorerAPIKey, -); -``` - -## Get the ABI of a contract - -The SDK ABI resolution is useful in many situations, you can access the resolved ABI from any contract like so: - -```ts -const contract = await sdk.getContract("0x..."); -const ABI = contract.abi; -``` - -## Getting all functions and events definitions from a contract - -Get parsed function and event definitions from a contract: - -```ts -const contract = await sdk.getContract("0x..."); -const functions = await c.publishedMetadata.extractFunctions(); -const events = await c.publishedMetadata.extractEvents(); -``` - -## Getting the sources of a contract - -Get the solidity sources of a contract: - -```ts -const contract = await sdk.getContract("0x..."); -const sources = await contract.publishedMetadata.extractSources(); -``` - -## Getting the implementation address of a Proxy - -Resolve the implementation address and bytecode of a given proxy contract. Supports a wide variety of proxy standards. - -```ts -const { address, bytecode } = await resolveImplementation( - "0x...", // the proxy address - sdk.getProvider(), -); -console.log("Implementation address", address); -``` diff --git a/apps/portal/src/app/typescript/v5/[...slug]/page.tsx b/apps/portal/src/app/typescript/v5/[...slug]/page.tsx index 4f0e2fc9d54..588c390b517 100644 --- a/apps/portal/src/app/typescript/v5/[...slug]/page.tsx +++ b/apps/portal/src/app/typescript/v5/[...slug]/page.tsx @@ -6,7 +6,7 @@ import { getSlugToDocMap } from "../../../references/components/TDoc/utils/slugs type PageProps = { params: Promise<{ slug: string[] }> }; export default async function Page(props: PageProps) { - const doc = await fetchTypeScriptDoc("v5"); + const doc = await fetchTypeScriptDoc(); const slugToDoc = getSlugToDocMap(doc); const docSlug = (await props.params).slug?.join("/"); diff --git a/apps/portal/src/app/typescript/v5/account-abstraction/get-started/page.mdx b/apps/portal/src/app/typescript/v5/account-abstraction/get-started/page.mdx index 81b710ca1ef..080fff178d3 100644 --- a/apps/portal/src/app/typescript/v5/account-abstraction/get-started/page.mdx +++ b/apps/portal/src/app/typescript/v5/account-abstraction/get-started/page.mdx @@ -14,7 +14,7 @@ export const metadata = createMetadata({ # Using Account abstraction in Typescript -By using the [wallet SDK](/references/wallets/latest) alongside the [TypeScript SDK](/typescript/latest), you can use smart accounts in your applications easily. +By using the [TypeScript SDK](/typescript/v5), you can use smart accounts in your applications easily. ## Example Use Cases @@ -80,15 +80,19 @@ console.log("Personal account address:", personalAccount.address); -Now, let's create a smart account using the SmartWallet class from the `@thirdweb-dev/wallets` package. -To do this, we need to pass a `SmartWalletConfig` object to the constructor. This object contains the following properties: +Now, let's create a smart account using `smartWallet` from `thirdweb/wallets` package. +To do this, we need to pass an object of type [SmartWalletOptions](/references/typescript/v5/SmartWalletOptions) to the function. + +Some of the important properties in this object are: - `chain`: the chain that the smart account will be deployed on. - `sponsorGas`: whether the smart account should have sponsored transactions or not. -Once we have created the config and instantiated the `SmartWallet` class, we can connect the personal wallet to the smart account using the `connect` method. +Once we have created the smart wallet interface, we can connect the personal wallet to the smart account using the `connect` method. ```typescript +import { smartWallet } from "thirdweb/wallets"; + // Configure the smart wallet const wallet = smartWallet({ chain: sepolia, diff --git a/apps/portal/src/app/typescript/v5/account-abstraction/permissions/page.mdx b/apps/portal/src/app/typescript/v5/account-abstraction/permissions/page.mdx index 3e684c659bc..c64d7914741 100644 --- a/apps/portal/src/app/typescript/v5/account-abstraction/permissions/page.mdx +++ b/apps/portal/src/app/typescript/v5/account-abstraction/permissions/page.mdx @@ -1,6 +1,5 @@ import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs"; import { createMetadata } from "@doc"; -import { V4SDKbanner } from "@/components/others/V4SDKBanner"; export const metadata = createMetadata({ image: { diff --git a/apps/portal/src/app/typescript/v5/extensions/built-in/page.tsx b/apps/portal/src/app/typescript/v5/extensions/built-in/page.tsx index 5a8b718e934..16b241475ef 100644 --- a/apps/portal/src/app/typescript/v5/extensions/built-in/page.tsx +++ b/apps/portal/src/app/typescript/v5/extensions/built-in/page.tsx @@ -8,7 +8,7 @@ import { fetchTypeScriptDoc } from "../../../../references/components/TDoc/fetch import { getCustomTag } from "../../../../references/components/TDoc/utils/getSidebarLinkgroups"; export default async function ExtensionPage() { - const docs = await fetchTypeScriptDoc("v5"); + const docs = await fetchTypeScriptDoc(); const extensions = [ ...new Set( docs.functions diff --git a/apps/portal/src/app/typescript/v5/modular/built-in/page.tsx b/apps/portal/src/app/typescript/v5/modular/built-in/page.tsx index 19237ac1df9..593b102d4b1 100644 --- a/apps/portal/src/app/typescript/v5/modular/built-in/page.tsx +++ b/apps/portal/src/app/typescript/v5/modular/built-in/page.tsx @@ -8,7 +8,7 @@ import { fetchTypeScriptDoc } from "../../../../references/components/TDoc/fetch import { getCustomTag } from "../../../../references/components/TDoc/utils/getSidebarLinkgroups"; export default async function ModulesPage() { - const docs = await fetchTypeScriptDoc("v5"); + const docs = await fetchTypeScriptDoc(); const extensions = [ ...new Set( docs.functions diff --git a/apps/portal/src/app/typescript/v5/sidebar.tsx b/apps/portal/src/app/typescript/v5/sidebar.tsx index 68aeda2f384..71474466095 100644 --- a/apps/portal/src/app/typescript/v5/sidebar.tsx +++ b/apps/portal/src/app/typescript/v5/sidebar.tsx @@ -4,7 +4,7 @@ import { fetchTypeScriptDoc } from "../../references/components/TDoc/fetchDocs/f import { getCustomTag } from "../../references/components/TDoc/utils/getSidebarLinkgroups"; const slug = "/typescript/v5"; -const docs = await fetchTypeScriptDoc("v5"); +const docs = await fetchTypeScriptDoc(); export const sidebar: SideBar = { name: "Connect Typescript SDK", diff --git a/apps/portal/src/app/unity/v4/assets/import.png b/apps/portal/src/app/unity/v4/assets/import.png deleted file mode 100644 index 2f79b5ad6b5..00000000000 Binary files a/apps/portal/src/app/unity/v4/assets/import.png and /dev/null differ diff --git a/apps/portal/src/app/unity/v4/assets/import2.png b/apps/portal/src/app/unity/v4/assets/import2.png deleted file mode 100644 index 7855bf4d5c9..00000000000 Binary files a/apps/portal/src/app/unity/v4/assets/import2.png and /dev/null differ diff --git a/apps/portal/src/app/unity/v4/assets/import3.png b/apps/portal/src/app/unity/v4/assets/import3.png deleted file mode 100644 index c3bc77f9665..00000000000 Binary files a/apps/portal/src/app/unity/v4/assets/import3.png and /dev/null differ diff --git a/apps/portal/src/app/unity/v4/assets/nft-gallery.png b/apps/portal/src/app/unity/v4/assets/nft-gallery.png deleted file mode 100644 index 51847c80022..00000000000 Binary files a/apps/portal/src/app/unity/v4/assets/nft-gallery.png and /dev/null differ diff --git a/apps/portal/src/app/unity/v4/assets/nft.png b/apps/portal/src/app/unity/v4/assets/nft.png deleted file mode 100644 index 175caac6f82..00000000000 Binary files a/apps/portal/src/app/unity/v4/assets/nft.png and /dev/null differ diff --git a/apps/portal/src/app/unity/v4/assets/project.png b/apps/portal/src/app/unity/v4/assets/project.png deleted file mode 100644 index 4c9dc7fdc3e..00000000000 Binary files a/apps/portal/src/app/unity/v4/assets/project.png and /dev/null differ diff --git a/apps/portal/src/app/unity/v4/assets/sceneprefab.png b/apps/portal/src/app/unity/v4/assets/sceneprefab.png deleted file mode 100644 index da4f6549efd..00000000000 Binary files a/apps/portal/src/app/unity/v4/assets/sceneprefab.png and /dev/null differ diff --git a/apps/portal/src/app/unity/v4/assets/thirdwebmanagerconfig.png b/apps/portal/src/app/unity/v4/assets/thirdwebmanagerconfig.png deleted file mode 100644 index 01f6af5faa0..00000000000 Binary files a/apps/portal/src/app/unity/v4/assets/thirdwebmanagerconfig.png and /dev/null differ diff --git a/apps/portal/src/app/unity/v4/assets/unitypackage.png b/apps/portal/src/app/unity/v4/assets/unitypackage.png deleted file mode 100644 index 4425e897764..00000000000 Binary files a/apps/portal/src/app/unity/v4/assets/unitypackage.png and /dev/null differ diff --git a/apps/portal/src/app/unity/v4/blocks/getblock/page.mdx b/apps/portal/src/app/unity/v4/blocks/getblock/page.mdx deleted file mode 100644 index 13d647346b1..00000000000 --- a/apps/portal/src/app/unity/v4/blocks/getblock/page.mdx +++ /dev/null @@ -1,17 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "GetBlock | thirdweb Unity SDK", - description: "Get block data by block number.", -}); - -# GetBlock - -Get block data by block number. - -## Usage - -```csharp -BigInteger blockNumber = 1234567; -var block = await ThirdwebManager.Instance.SDK.Blocks.GetBlock(blockNumber); -``` diff --git a/apps/portal/src/app/unity/v4/blocks/getblockwithtransactions/page.mdx b/apps/portal/src/app/unity/v4/blocks/getblockwithtransactions/page.mdx deleted file mode 100644 index da1509a671d..00000000000 --- a/apps/portal/src/app/unity/v4/blocks/getblockwithtransactions/page.mdx +++ /dev/null @@ -1,17 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "GetBlockWithTransactions | thirdweb Unity SDK", - description: "Get block data by block number, including transaction data.", -}); - -# GetBlockWithTransactions - -Get block data by block number, including transaction data. - -## Usage - -```csharp -BigInteger blockNumber = 1234567; -var blockWithTransactions = await ThirdwebManager.Instance.SDK.Blocks.GetBlockWithTransactions(blockNumber); -``` diff --git a/apps/portal/src/app/unity/v4/blocks/getlatestblocknumber/page.mdx b/apps/portal/src/app/unity/v4/blocks/getlatestblocknumber/page.mdx deleted file mode 100644 index 9e6f0541761..00000000000 --- a/apps/portal/src/app/unity/v4/blocks/getlatestblocknumber/page.mdx +++ /dev/null @@ -1,16 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "GetLatestBlockNumber | thirdweb Unity SDK", - description: "Get the latest block number", -}); - -# GetLatestBlockNumber - -Get the latest block number. - -## Usage - -```csharp -BigInteger blockNumber = await ThirdwebManager.Instance.SDK.Blocks.GetLatestBlockNumber(); -``` diff --git a/apps/portal/src/app/unity/v4/blocks/getlatestblocktimestamp/page.mdx b/apps/portal/src/app/unity/v4/blocks/getlatestblocktimestamp/page.mdx deleted file mode 100644 index 02ed1c01e75..00000000000 --- a/apps/portal/src/app/unity/v4/blocks/getlatestblocktimestamp/page.mdx +++ /dev/null @@ -1,16 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "GetLatestBlockTimestamp | thirdweb Unity SDK", - description: "Get the latest block timestamp", -}); - -# GetLatestBlockTimestamp - -Get the latest block timestamp. - -## Usage - -```csharp -BigInteger blocktimestamp = await ThirdwebManager.Instance.SDK.Blocks.GetLatestBlockTimestamp(); -``` diff --git a/apps/portal/src/app/unity/v4/contracts/erc1155/erc1155/page.mdx b/apps/portal/src/app/unity/v4/contracts/erc1155/erc1155/page.mdx deleted file mode 100644 index fedef9c430b..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/erc1155/erc1155/page.mdx +++ /dev/null @@ -1,239 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "ERC1155 | thirdweb Unity SDK", - description: "References for ERC1155 contract in thirdweb Unity SDK.", -}); - -# ERC1155 - -Functionality available for contracts that implement the `IERC1155` interface. - -## Balance - -Get the quantity of a specific NFT owned by the connected wallet. - -```csharp -var data = await contract.ERC1155.Balance("{{token_id}}"); -``` - -
- -#### tokenId - -The token ID of the NFT to check the balance of. - -Must be a `string`. - -### Return Value - -A `string` representing the quantity of the NFT owned by the wallet. - -```csharp -string -``` - -
- -## BalanceOf - -Get the quantity of a specific NFT owned by a wallet. - -```csharp -var data = await contract.ERC1155.BalanceOf("{{wallet_address}}", "{{token_id}}"); -``` - -
- -#### address - -The wallet address to check the NFT balance for. - -Must be a `string`. - -#### tokenId - -The token ID of the NFT to check the balance of. - -Must be a `string`. - -### Return Value - -A `string` representing the quantity of the NFT owned by the wallet. - -```csharp -string -``` - -
- -## Get - -Get the metadata of an NFT using it’s token ID. - -Metadata is fetched from the `uri` property of the NFT. - -If the metadata is hosted on IPFS, the metadata is fetched and made available as an object. -The object’s `image` property will be a URL that is available through the thirdweb IPFS gateway. - -```csharp -var data = await contract.ERC1155.Get("{{token_id}}"); -``` - -
- -#### tokenId - -The token ID of the NFT to get the metadata for. - -Must be a `string`. - -### Return Value - -Returns an `NFT` struct containing the following properties: - -```csharp -{ - { - string id; - string uri; - string description; - string image; - string name; - string external_url; - object attributes; - } - string owner; - string type; - int supply; - int quantityOwned; // only for ERC1155 -} -``` - -
- -## Transfer - -Transfer an NFT from the connected wallet to another wallet. - -```csharp -var data = await contract.ERC1155.Transfer("{{wallet_address}}", "{{token_id}}", 1); -``` - -
- -#### to - -The wallet address to send the NFT to. - -Must be a `string`. - -#### tokenId - -The token ID of the NFT to transfer. - -Must be a `string`. - -#### amount - -The quantity of the NFT to transfer. - -Must be an `int`. - -
- -## IsApprovedForAll - -Get whether this wallet has approved transfers from the given operator. - -This means that the operator can transfer NFTs on behalf of this wallet. - -```csharp -var data = await contract.ERC1155.IsApprovedForAll("{{owner_address}}", "{{operator_address}}"); -``` - -
- -#### owner - -The wallet address that owns the NFT. - -Must be a `string`. - -#### operator - -The wallet address of the operator to check (i.e. the wallet that does/does not have approval). - -Must be a `string`. - -
- -## SetApprovalForAll - -Give another address approval (or remove approval) to transfer all of your NFTs from this collection. - -```csharp -var data = await contract.ERC1155.SetApprovalForAll("{{operator_address}}", true); -``` - -
- -#### operator - -The wallet address to approve. - -Must be a `string`. - -#### approved - -Whether to grant approval (true) or remove approval (false). - -Must be a `bool`. - -
- -## TotalCount - -Get the total number of unique NFTs in the collection. - -```csharp -var data = await contract.ERC1155.TotalCount(); -``` - -
- -### Return Value - -Returns an `int` representing the total number of unique NFTs in the collection. - -```csharp -int -``` - -
- -## TotalSupply - -Returns the total supply of a token in the collection, including burned tokens. - -```csharp -var data = await contract.ERC1155.TotalSupply("{{token_id}}"); -``` - -
- -#### tokenId - -The token ID of the NFT to get the total supply of. - -Must be a `string`. - -### Return Value - -Returns an `int` representing the total supply of the token. - -```csharp -int -``` - -
diff --git a/apps/portal/src/app/unity/v4/contracts/erc1155/erc1155burnable/page.mdx b/apps/portal/src/app/unity/v4/contracts/erc1155/erc1155burnable/page.mdx deleted file mode 100644 index 0ec474e7086..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/erc1155/erc1155burnable/page.mdx +++ /dev/null @@ -1,34 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "ERC1155Burnable | thirdweb Unity SDK", - description: "References for ERC1155Burnable contract in thirdweb Unity SDK.", -}); - -# ERC1155Burnable - -Allows you to burn NFTs (transfer them to a null address) to take them out of circulation. - -## Burn - -Burn the specified NFTs from the **connected wallet**. - -```csharp -var data = await contract.ERC1155.Burn("{{token_id}}", 1); -``` - -
- -#### tokenId - -The token ID of the NFT(s) you want to burn. - -Must be a `string`. - -#### amount - -The amount of the NFT you want to burn of the specified token ID. - -Must be an `int`. - -
diff --git a/apps/portal/src/app/unity/v4/contracts/erc1155/erc1155claimconditions/page.mdx b/apps/portal/src/app/unity/v4/contracts/erc1155/erc1155claimconditions/page.mdx deleted file mode 100644 index 1ecdb04f91d..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/erc1155/erc1155claimconditions/page.mdx +++ /dev/null @@ -1,229 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "ERC1155ClaimConditions | thirdweb Unity SDK", - description: - "References for ERC1155ClaimConditions contract in thirdweb Unity SDK.", -}); - -# ERC1155ClaimConditions - -Enables wallets to claim (mint) NFTs from the contract under specific conditions. - -## Claim - -Claim a specified number of tokens to the **connected wallet**. - -```csharp -var data = await contract.ERC1155.Claim("{{token_id}}", 1); -``` - -
- -#### tokenId (required) - -The token ID of the NFT you want to claim. - -Must be a `string`. - -#### quantity (required) - -The number of tokens to claim. - -Must be an `int`. - -
- -## ClaimTo - -The same as [`claim`](#claim), but allows specifying the recipient -address rather than using the connected wallet. - -```csharp -var data = await contract.ERC1155.ClaimTo("{{wallet_address}}", "{{token_id}}", 1); -``` - -
- -#### recipient (required) - -The wallet address to receive the claimed tokens. - -Must be a `string`. - -#### tokenId (required) - -The token ID of the NFT you want to claim. - -Must be a `string`. - -#### quantity (required) - -The number of tokens to claim. - -Must be an `int`. - -
- -## CanClaim - -Check if tokens are currently available for claiming, optionally specifying if a specific wallet -address can claim. - -```csharp -var data = await contract.ERC1155.ClaimConditions.CanClaim("{{token_id}}", 1, "{{wallet_address}}"); -``` - -
- -#### tokenId (required) - -The token ID of the NFT you want to claim. - -Must be a `string`. - -#### quantity (required) - -The amount of tokens to claim. - -This checks to see if the specified amount of tokens are available for claiming. i.e.: - -- There is sufficient quantity available for claiming. -- This amount of tokens can be claimed in a single transaction. - -Must be an `int`. - -#### addressToCheck (optional) - -The wallet address to check if it can claim tokens. - -This considers all aspects of the active claim phase, including allowlists, previous claims, etc. - -Must be a `string`. - -### Return Value - -Returns a `bool` indicating if the specified amount of tokens can be claimed or not. - -```csharp -bool -``` - -
- -## GetActive - -Retrieve the currently active claim phase for a specific token ID, if any. - -```csharp -var data = await contract.ERC1155.ClaimConditions.GetActive("{{token_id}}"); -``` - -
- -#### tokenId (required) - -The token ID of the NFT you want to get the claim conditions for. - -Must be a `string`. - -### Return Value - -If a claim condition is active, returns a `ClaimConditions` struct containing the following properties: - -```csharp -{ - string availableSupply; - string currentMintSupply; - CurrencyValue currencyMetadata; - string currencyAddress; - string maxClaimableSupply; - string maxClaimablePerWallet; - string waitInSeconds; -} -``` - -
- -## GetIneligibilityReasons - -Get a list of reasons why a specific wallet address is not eligible to claim tokens, if any. - -```csharp -var data = await contract.ERC1155.ClaimConditions.GetIneligibilityReasons("{{token_id}}", 1, "{{wallet_address}}"); -``` - -
- -#### tokenId (required) - -The token ID of the NFT you want to check if the wallet address can claim. - -Must be a `string`. - -#### quantity (required) - -The amount of tokens to check if the wallet address can claim. - -Must be a `string`. - -#### addressToCheck (optional) - -The wallet address to check if it can claim tokens. - -Must be a `string`. - -### Return Value - -Returns a list of `ClaimEligibility` strings, which may be empty. - -If the user _is_ eligible to claim tokens, the method will return an empty array. - -```ts -string[] - -// Options: -{ - NotEnoughSupply = "There is not enough supply to claim.", - AddressNotAllowed = "This address is not on the allowlist.", - WaitBeforeNextClaimTransaction = "Not enough time since last claim transaction. Please wait.", - AlreadyClaimed = "You have already claimed the token.", - NotEnoughTokens = "There are not enough tokens in the wallet to pay for the claim.", - NoActiveClaimPhase = "There is no active claim phase at the moment. Please check back in later.", - NoClaimConditionSet = "There is no claim condition set.", - NoWallet = "No wallet connected.", - Unknown = "No claim conditions found.", -} -``` - -
- -## GetClaimerProofs - -Returns allowlist information and merkle proofs for a given wallet address. - -```csharp -var data = await contract.ERC1155.ClaimConditions.GetClaimerProofs("{{token_id}}", "{{wallet_address}}"); -``` - -
- -#### tokenId (required) - -The token ID of the NFT you want to get the claimer proofs for. - -Must be a `string`. - -#### walletAddress (required) - -The wallet address to get the merkle proofs for. - -Must be a `string`. - -### Return Value - -```csharp -bool -``` - -
diff --git a/apps/portal/src/app/unity/v4/contracts/erc1155/erc1155enumerable/page.mdx b/apps/portal/src/app/unity/v4/contracts/erc1155/erc1155enumerable/page.mdx deleted file mode 100644 index 1b5d83280a8..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/erc1155/erc1155enumerable/page.mdx +++ /dev/null @@ -1,102 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "ERC1155Enumerable | thirdweb Unity SDK", - description: - "References for ERC1155Enumerable contract in thirdweb Unity SDK.", -}); - -# ERC1155Enumerable - -Metadata for each NFT is fetched from the NFT’s `uri` property. - -If the metadata is hosted on IPFS, the metadata is fetched and made available as an object. -The object’s `image` property will be a URL that is available through the thirdweb IPFS gateway. - -## GetAll - -Get the metadata and current owner of all NFTs in the contract. - -By default, returns the first `100` NFTs (in order of token ID). Use [`queryParams`](#queryParams-optional) to paginate the results. - -```csharp -var data = await contract.ERC1155.GetAll(); -``` - -
- -#### queryParams (optional) - -Provide an optional object to configure the query. Useful for paginating the results. - -```csharp -var data = await contract.ERC1155.GetAll(new QueryAllParams() -{ - count = 100, - start = 0 -}); -``` - -### Return Value - -Returns a list of `NFT` structs, each containing the following properties: - -```csharp -{ - { - string id; - string uri; - string description; - string image; - string name; - string external_url; - object attributes; - } - string owner; - string type; - int supply; - int quantityOwned; -} -``` - -
- -## GetOwned - -Get all the data associated with the NFTs owned by a specific wallet. - -```csharp -var data = await contract.ERC1155.GetOwned(); -``` - -
- -#### address - -The address of the wallet to get the NFTs of. - -Must be a `string`. - -### Return Value - -Returns a list of `NFT` structs, each containing the following properties: - -```csharp -{ - { - string id; - string uri; - string description; - string image; - string name; - string external_url; - object attributes; - } - string owner; - string type; - int supply; - int quantityOwned; -} -``` - -
diff --git a/apps/portal/src/app/unity/v4/contracts/erc1155/erc1155mintable/page.mdx b/apps/portal/src/app/unity/v4/contracts/erc1155/erc1155mintable/page.mdx deleted file mode 100644 index 25926d7c20f..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/erc1155/erc1155mintable/page.mdx +++ /dev/null @@ -1,126 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "ERC1155Mintable | thirdweb Unity SDK", - description: "References for ERC1155Mintable contract in thirdweb Unity SDK.", -}); - -# ERC1155Mintable - -Allows you to mint new NFTs on the contract. - -By default, the NFT metadata is uploaded and pinned to IPFS before minting. -You can override this default behavior by providing a `string` that points to valid metadata object instead of an object. - -## Mint - -Mint a new NFT to the **connected wallet**. - -```csharp -var data = await contract.ERC1155.Mint(new NFTMetadataWithSupply() { - supply = 1, - metadata = new NFTMetadata() { - name = "My NFT", // Name of the NFT - image = "my-image-url", // An image URL or IPFS URI - // Any other valid metadata properties - } -}); -``` - -
- -#### metadataWithSupply - -Provide a `string` that points to, or an `NFTMetadataWithSupply` struct containing -`metadata` that conforms to the [metadata standards](https://docs.opensea.io/docs/metadata-standards#metadata-structure), -along with the `supply` of the NFT to mint. - -If you provide a struct, the metadata is uploaded and pinned to IPFS before -the NFT(s) are minted. - -The `image` property can be an IPFS URI, or a URL to an image. - -
- -## MintTo - -The same as [`mint`](#mint), but allows you to specify the address of the wallet rather than using the connected wallet. - -```csharp -var data = await contract.ERC1155.MintTo("{{wallet_address}}", new NFTMetadataWithSupply() { - supply = 1, - metadata = new NFTMetadata() { - name = "My NFT", // Name of the NFT - image = "my-image-url", // An image URL or IPFS URI - // Any other valid metadata properties - } -}); -``` - -
- -#### to - -The address of the wallet you want to mint the NFT to. - -Must be a `string`. - -#### metadataWithSupply - -Same as [`metadataWithSupply`](#metadatawithsupply) in the [`mint`](#mint) method. - -
- -## MintAdditionalSupply - -Mint additional quantity of an NFT that already exists on the contract. - -```csharp -var data = await contract.ERC1155.MintAdditionalSupply("{{token_id}}", 1); -``` - -
- -#### tokenId - -The ID of the NFT you want to mint additional supply for. - -Must be a `string`. - -#### additionalSupply - -How much additional supply you want to mint. - -Must be an `int`. - -
- -## MintAdditionalSupplyTo - -The same as [`mintAdditionalSupply`](#mintadditionalsupply), but allows you to specify the address of the wallet rather than using the connected wallet. - -```csharp -var data = await contract.ERC1155.MintAdditionalSupplyTo("{{wallet_address", "{{token_id}}", 1); -``` - -
- -#### to - -The address of the wallet you want to mint the NFT to. - -Must be a `string`. - -#### tokenId - -The ID of the NFT you want to mint additional supply for. - -Must be a `string`. - -#### additionalSupply - -How much additional supply you want to mint. - -Must be an `int`. - -
diff --git a/apps/portal/src/app/unity/v4/contracts/erc1155/erc1155signaturemintable/page.mdx b/apps/portal/src/app/unity/v4/contracts/erc1155/erc1155signaturemintable/page.mdx deleted file mode 100644 index 11294765cac..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/erc1155/erc1155signaturemintable/page.mdx +++ /dev/null @@ -1,176 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "ERC1155SignatureMintable | thirdweb Unity SDK", - description: - "References for ERC1155SignatureMintable contract in thirdweb Unity SDK.", -}); - -# ERC1155SignatureMintable - -Allows you to utilize [signature-based minting](/glossary/signature-based-minting) of NFTs. - -## Generate - -Generate a signature that a wallet address can use to mint the specified number of NFTs. - -This is typically an **admin** operation, where the owner of the contract generates a signature that allows _another_ wallet to mint tokens. - -```csharp -NFTMetadata meta = new NFTMetadata() -{ - name = "Unity NFT", - description = "Minted From Unity", - image = "ipfs://QmbpciV7R5SSPb6aT9kEBAxoYoXBUsStJkMpxzymV4ZcVc", -}; - -var receiverAddress = "{{wallet_address}}"; -var payload = new ERC1155MintPayload(receiverAddress, meta, 1000); -var signedPayload = await contract.ERC1155.Signature.Generate(payload); -``` - -
- -The information you provide to the `generate` method outlines what the signature can be used for. - -The `quantity`, `to`, and `metadata` fields are required, while the rest are optional. - -#### receiverAddress - -The wallet address that can use this signature to mint tokens. - -This is to prevent another wallet from intercepting the signature and using it to mint tokens for themselves. - -Must be a `string`. - -#### metadata - -The metadata of the NFT to mint. - -Must be an `NFTMetadata` struct -containing metadata that conforms to -the [metadata standards](https://docs.opensea.io/docs/metadata-standards#metadata-structure). - -The metadata is uploaded and pinned to IPFS before -the NFT(s) are minted. - -#### quantity - -The number of tokens this signature can be used to mint. - -Must be an `int`. - -
- -## GenerateFromTokenId - -Generate a signature that can be used to mint additional supply of an existing NFT in the contract. - -This is the same as [`generate`](#generate) but it allows you to specify the `tokenId` of the NFT you want to mint additional supply for, rather than -providing the `metadata` of a new NFT. - -```csharp -NFTMetadata meta = new NFTMetadata() -{ - name = "Unity NFT", - description = "Minted From Unity", - image = "ipfs://QmbpciV7R5SSPb6aT9kEBAxoYoXBUsStJkMpxzymV4ZcVc", -}; - -var receiverAddress = "{{wallet_address}}"; -var payload = new ERC1155MintAdditionalPayload(receiverAddress, "{{token_id}}", 1); -var signedPayload = await contract.ERC1155.Signature.GenerateFromTokenId(payload); -``` - -
- -#### receiverAddress - -The wallet address that can use this signature to mint tokens. - -This is to prevent another wallet from intercepting the signature and using it to mint tokens for themselves. - -Must be a `string`. - -#### tokenId - -The `tokenId` of the NFT you want to mint additional supply for. - -Must be a `string`. - -#### quantity - -The number of tokens this signature can be used to mint. - -Must be an `int`. - -
- -## Mint - -Mint tokens from a previously generated signature (see [`generate`](#generate)). - -```csharp -NFTMetadata meta = new NFTMetadata() -{ - name = "Unity NFT", - description = "Minted From Unity", - image = "ipfs://QmbpciV7R5SSPb6aT9kEBAxoYoXBUsStJkMpxzymV4ZcVc", -}; -var receiverAddress = "{{wallet_address}}"; -var payload = new ERC1155MintAdditionalPayload(receiverAddress, "{{token_id}}", 1); -var signedPayload = await contract.ERC1155.Signature.GenerateFromTokenId(payload); - -var data = await contract.ERC1155.Signature.Mint(signedPayload); -``` - -
- -#### signedPayload - -The payload created by the [`generate`](#generate) function. - -The typical pattern is the **admin** generates a signature, and the **user** uses it to mint the tokens, under the conditions specified in the signature. - -
- -## Verify - -Verify that a payload is correctly signed. - -This allows you to provide a payload, and prove that it was valid and was generated -by a wallet with permission to generate signatures. - -If a payload is not valid, the `mint`/`mintBatch` functions will fail, -but you can use this function to verify that the payload is valid before attempting to mint the tokens -if you want to show a more user-friendly error message. - -```csharp -NFTMetadata meta = new NFTMetadata() -{ - name = "Unity NFT", - description = "Minted From Unity", - image = "ipfs://QmbpciV7R5SSPb6aT9kEBAxoYoXBUsStJkMpxzymV4ZcVc", -}; -var receiverAddress = "{{wallet_address}}"; -var payload = new ERC1155MintAdditionalPayload(receiverAddress, "{{token_id}}", 1); -var signedPayload = await contract.ERC1155.Signature.GenerateFromTokenId(payload); - -var data = await contract.ERC1155.Signature.Verify(signedPayload); -``` - -
- -#### signedPayload - -The payload to verify. - -### Return Value - -Returns `true` if the payload is valid, `false` otherwise. - -```csharp -bool -``` - -
diff --git a/apps/portal/src/app/unity/v4/contracts/erc20/erc20/page.mdx b/apps/portal/src/app/unity/v4/contracts/erc20/erc20/page.mdx deleted file mode 100644 index b8d492835bb..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/erc20/erc20/page.mdx +++ /dev/null @@ -1,234 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "ERC20 | thirdweb Unity SDK", - description: "References for ERC20 contract in thirdweb Unity SDK.", -}); - -# ERC20 - -Functionality available for contracts that implement the `IERC20` interface. - -## Allowance - -Get the allowance of another wallet address over the **connected wallet's** funds. - -"Allowance" refers to the number of tokens that another wallet is allowed to spend on behalf of the connected wallet. - -```csharp -var data = await contract.ERC20.Allowance("{{spender_address}}"); -``` - -
- -#### spender - -The address of the wallet to check the allowance of. - -Must be a `string`. - -### Return Value - -A `CurrencyValue` struct is returned with the allowance available in the `value` property. - -```csharp -{ - string name; - string symbol; - string decimals; - string value; - string displayValue; -} -``` - -
- -## AllowanceOf - -The same as [`allowance`](#allowance), but allows you to specify the owner wallet to check, instead of using the connected wallet. - -```csharp -var data = await contract.ERC20.AllowanceOf("{{owner_address}}", "{{spender_address}}"); -``` - -
- -#### owner - -The address of the wallet that owns the funds. - -Must be a `string`. - -#### spender - -The address of the wallet to check the allowance of. - -Must be a `string`. - -### Return Value - -A `CurrencyValue` struct is returned with the allowance available in the `value` property. - -```csharp -{ - string name; - string symbol; - string decimals; - string value; - string displayValue; -} -``` - -
- -## Balance - -View the balance (i.e. number of tokens) the **connected wallet** has in their wallet from this contract. - -```csharp -var data = await contract.ERC20.Balance(); -``` - -
- -### Return Value - -A `CurrencyValue` struct is returned with the allowance available in the `value` property. - -```csharp -{ - string name; - string symbol; - string decimals; - string value; - string displayValue; -} -``` - -
- -## BalanceOf - -The same as [`balance`](#balance), but allows you to specify the wallet address to check, instead of using the connected wallet. - -```csharp -var data = await contract.ERC20.BalanceOf("{{wallet_address}}"); -``` - -
- -#### address - -The address of the wallet to check the balance of. - -Must be a `string`. - -### Return Value - -A `CurrencyValue` struct is returned with the allowance available in the `value` property. - -```csharp -{ - string name; - string symbol; - string decimals; - string value; - string displayValue; -} -``` - -
- -## Get - -Get the metadata of the token smart contract, such as the name, symbol, and decimals. - -```csharp -var data = await contract.ERC20.Get(); -``` - -
- -### Return Value - -```csharp -{ - string name; - string symbol; - string decimals; -} -``` - -
- -## SetAllowance - -Grant allowance to another wallet address to spend the **connected wallet's** funds (of this token). - -```csharp -var data = await contract.ERC20.SetAllowance("{{spender_address}}", 1); -``` - -
- -#### spender - -The address of the wallet to grant allowance to. - -Must be a `string`. - -#### amount - -The number of tokens to give as allowance. - -Must be an `int`. - -
- -## TotalSupply - -Get the number of tokens in circulation for this contract. - -```csharp -var data = await contract.ERC20.TotalSupply(); -``` - -
- -### Return Value - -A `CurrencyValue` struct is returned with the allowance available in the `value` property. - -```csharp -{ - string name; - string symbol; - string decimals; -} -``` - -
- -## Transfer - -Transfer tokens from the **connected wallet** to another wallet. - -```csharp -var data = await contract.ERC20.Transfer("{{wallet_address}}", "{{amount}}"); -``` - -
- -#### to - -The address of the wallet to send the tokens to. - -Must be a `string`. - -#### amount - -The amount of tokens to send. - -Must be a `string`. - -
diff --git a/apps/portal/src/app/unity/v4/contracts/erc20/erc20burnable/page.mdx b/apps/portal/src/app/unity/v4/contracts/erc20/erc20burnable/page.mdx deleted file mode 100644 index 7d34b429b34..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/erc20/erc20burnable/page.mdx +++ /dev/null @@ -1,28 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "ERC20Burnable | thirdweb Unity SDK", - description: "References for ERC20Burnable contract in thirdweb Unity SDK.", -}); - -# ERC20Burnable - -Allows you to burn tokens (take them out of circulation). - -## Burn - -Burn tokens held by the **connected wallet**. - -```csharp -var data = await contract.ERC20.Burn("{{amount}}"); -``` - -
- -#### amount - -The amount of this token you want to burn. - -Must be a `string`. - -
diff --git a/apps/portal/src/app/unity/v4/contracts/erc20/erc20claimconditions/page.mdx b/apps/portal/src/app/unity/v4/contracts/erc20/erc20claimconditions/page.mdx deleted file mode 100644 index 6e5fe9d212f..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/erc20/erc20claimconditions/page.mdx +++ /dev/null @@ -1,192 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "ERC20ClaimConditions | thirdweb Unity SDK", - description: - "References for ERC20ClaimConditions contract in thirdweb Unity SDK.", -}); - -# ERC20ClaimConditions - -Enables wallets to claim (mint) tokens from the contract under specific conditions. - -## Claim - -Claim a specified number of tokens to the **connected wallet**. - -```csharp -var data = await contract.ERC20.Claim("{{amount}}"); -``` - -
- -#### amount (required) - -The amount of tokens to claim. - -Must be a `string`. - -
- -## ClaimTo - -The same as [`claim`](#claim), but allows specifying the recipient address rather than using the connected wallet. - -```csharp -var data = await contract.ERC20.ClaimTo("{{wallet_address}}", "{{amount}}"); -``` - -
- -#### recipient (required) - -The wallet address to receive the claimed tokens. - -Must be a `string`. - -#### amount (required) - -The amount of tokens to claim. - -Must be a `string`. - -
- -## CanClaim - -Check if tokens are currently available for claiming, optionally specifying if a specific wallet -address can claim. - -```csharp -var data = await contract.ERC20.ClaimConditions.CanClaim("{{quantity}}", "{{wallet_address}}"); -``` - -
- -#### quantity (required) - -The amount of tokens to claim. - -This checks to see if the specified amount of tokens are available for claiming. i.e.: - -- There is sufficient quantity available for claiming. -- This amount of tokens can be claimed in a single transaction. - -Must be a `string`. - -#### addressToCheck (optional) - -The wallet address to check if it can claim tokens. - -This considers all aspects of the active claim phase, including allowlists, previous claims, etc. - -Must be a `string`. - -### Return Value - -Returns a `bool` indicating if the specified amount of tokens can be claimed or not. - -```csharp -bool -``` - -
- -## GetActive - -Retrieve the currently active claim phase, if any. - -```csharp -var data = await contract.ERC20.ClaimConditions.GetActive(); -``` - -
- -### Return Value - -If a claim condition is active, returns a `ClaimConditions` struct containing the following properties: - -```csharp -{ - string availableSupply; - string currentMintSupply; - CurrencyValue currencyMetadata; - string currencyAddress; - string maxClaimableSupply; - string maxClaimablePerWallet; - string waitInSeconds; -} -``` - -
- -## GetIneligibilityReasons - -Get an array of reasons why a specific wallet address is not eligible to claim tokens, if any. - -```csharp - -``` - -
- -#### quantity (required) - -The amount of tokens to check if the wallet address can claim. - -Must be a `string` or `number`. - -#### addressToCheck (optional) - -The wallet address to check if it can claim tokens. - -Must be a `string`. - -### Return Value - -Returns an array of `ClaimEligibility` strings, which may be empty. - -If the user _is_ eligible to claim tokens, the method will return an empty array. - -```csharp -string[] - -// Options: -{ - NotEnoughSupply = "There is not enough supply to claim.", - AddressNotAllowed = "This address is not on the allowlist.", - WaitBeforeNextClaimTransaction = "Not enough time since last claim transaction. Please wait.", - AlreadyClaimed = "You have already claimed the token.", - NotEnoughTokens = "There are not enough tokens in the wallet to pay for the claim.", - NoActiveClaimPhase = "There is no active claim phase at the moment. Please check back in later.", - NoClaimConditionSet = "There is no claim condition set.", - NoWallet = "No wallet connected.", - Unknown = "No claim conditions found.", -} -``` - -
- -## GetClaimerProofs - -Returns allowlist information and merkle proofs for a given wallet address. - -```csharp -var data = await contract.ERC20.ClaimConditions.GetClaimerProofs("{{wallet_address}}"); -``` - -
- -#### walletAddress (required) - -The wallet address to get the merkle proofs for. - -Must be a `string`. - -### Return Value - -```csharp -bool -``` - -
diff --git a/apps/portal/src/app/unity/v4/contracts/erc20/erc20mintable/page.mdx b/apps/portal/src/app/unity/v4/contracts/erc20/erc20mintable/page.mdx deleted file mode 100644 index 0f061bfbb45..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/erc20/erc20mintable/page.mdx +++ /dev/null @@ -1,52 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "ERC20Mintable | thirdweb Unity SDK", - description: "References for ERC20Mintable contract in thirdweb Unity SDK.", -}); - -# ERC20Mintable - -Allows the minting of new tokens into the contract. - -## Mint - -Mint tokens to the **connected wallet**. - -```csharp -var data = await contract.ERC20.Mint("{{amount}}"); -``` - -
- -#### amount - -The amount of tokens to mint. - -Must be a `string`. - -
- -## MintTo - -The same as [`mint`](#mint), but allows you to specify the address to mint the tokens to. - -```csharp -var data = await contract.ERC20.MintTo("{{wallet_address}}", "{{amount}}"); -``` - -
- -#### to - -The wallet address to mint the tokens to. - -Must be a `string`. - -#### amount - -The number of tokens to mint. - -Must be a `string`. - -
diff --git a/apps/portal/src/app/unity/v4/contracts/erc20/erc20signaturemintable/page.mdx b/apps/portal/src/app/unity/v4/contracts/erc20/erc20signaturemintable/page.mdx deleted file mode 100644 index a68f77deb4a..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/erc20/erc20signaturemintable/page.mdx +++ /dev/null @@ -1,93 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "ERC20SignatureMintable | thirdweb Unity SDK", - description: - "References for ERC20SignatureMintable contract in thirdweb Unity SDK.", -}); - -# ERC20SignatureMintable - -Allows you to utilize [signature-based minting](/glossary/signature-based-minting) of new tokens. - -## Generate - -Generate a signature that a wallet address can use to mint the specified number of tokens. - -This is typically an **admin** operation, where the owner of the contract generates a signature that allows _another_ wallet to mint tokens. - -```csharp -var payload = new ERC20MintPayload("{{wallet_address}}", "{{quantity}}"); -var signedPayload = await contract.ERC20.Signature.Generate(payload); -``` - -
- -The information you provide to the `generate` function outlines what the signature can be used for. - -The `quantity` and `to` fields are required, while the rest are optional. - -#### to - -The wallet address that can use this signature to mint tokens. - -This is to prevent another wallet from intercepting the signature and using it to mint tokens for themselves. - -Must be a `string`. - -#### quantity - -The number of tokens this signature can be used to mint. - -Must be a `string` - -
- -## Mint - -Mint tokens from a previously generated signature (see [`generate`](#generate)). - -```csharp -var payload = new ERC20MintPayload("{{wallet_address}}", "{{quantity}}"); -var signedPayload = await contract.ERC20.Signature.Generate(payload); - -var data = await contract.ERC20.Signature.Mint(signedPayload); -``` - -
- -#### signedPayload - -The signature created by the [`generate`](#generate) function. - -The typical pattern is the **admin** generates a signature, and the **user** uses it to mint the tokens, under the conditions specified in the signature. - -
- -## Verify - -Verify that a payload is correctly signed. - -This allows you to provide a payload, -and prove that it was valid and was generated by a wallet with permission to generate signatures. - -If a payload is not valid, the `mint` function will fail (even without this verification check), -but you can use this function to verify that the payload is valid before attempting to mint the tokens -if you want to show a more user-friendly error message. - -```csharp -var payload = new ERC20MintPayload("{{wallet_address}}", "{{quantity}}"); -var signedPayload = await contract.ERC20.Signature.Generate(payload); - -var data = await contract.ERC20.Signature.Verify(signedPayload); -``` - -
- -#### signedPayload - -The payload to verify. - -See [`generate`](#generate) for details. - -
diff --git a/apps/portal/src/app/unity/v4/contracts/erc721/erc721/page.mdx b/apps/portal/src/app/unity/v4/contracts/erc721/erc721/page.mdx deleted file mode 100644 index 5f1744f634b..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/erc721/erc721/page.mdx +++ /dev/null @@ -1,201 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "ERC721 | thirdweb Unity SDK", - description: "References for ERC721 contract in thirdweb Unity SDK.", -}); - -# ERC721 - -Functionality available for contracts that implement the `IERC721` interface. - -## Balance - -Get the NFT balance of the **connected wallet** (number of NFTs in this contract owned by the connected wallet). - -```csharp -var data = await contract.ERC721.Balance(); -``` - -
- -### Return Value - -Returns a `string` representing the number of NFTs owned by the connected wallet. - -```csharp -string; -``` - -
- -## BalanceOf - -Get a wallet’s NFT balance (number of NFTs in this contract owned by the wallet). - -```csharp -var data = await contract.ERC721.BalanceOf("{{wallet_address}}"); -``` - -
- -#### walletAddress - -The wallet address to check the balance for. - -Must be a `string`. - -### Return Value - -Returns a `string` representing the number of NFTs owned by the wallet. - -```csharp -string; -``` - -
- -## Get - -Get the metadata for an NFT in this contract using it’s token ID. - -Metadata is fetched from the `uri` property of the NFT. - -If the metadata is hosted on IPFS, the metadata is fetched and made available as an object. -The object’s `image` property will be a URL that is available through the thirdweb IPFS gateway. - -```csharp -var data = await contract.ERC721.Get("{{token_id}}"); -``` - -
- -#### tokenId - -The token ID of the NFT to get the metadata for. - -Must be a `string` - -### Return Value - -Returns an `NFT` struct containing the NFT metadata. - -```csharp -{ - { - string id; - string uri; - string description; - string image; - string name; - string external_url; - object attributes; - } - string owner; - string type; - int supply; - int quantityOwned; // only for ERC1155 -} -``` - -
- -## IsApprovedForAll - -Get whether this wallet has approved transfers from the given operator. - -This means that the operator can transfer NFTs on behalf of this wallet. - -```csharp -var data = await contract.ERC721.IsApprovedForAll("{{owner_address}}", "{{operator_address}}"); -``` - -
- -#### owner - -The wallet address that owns the NFT. - -Must be a `string`. - -#### operator - -The wallet address of the operator to check (i.e. the wallet that does/does not have approval). - -Must be a `string`. - -
- -## OwnerOf - -Get the wallet address of the owner of an NFT. - -```csharp -var data = await contract.ERC721.OwnerOf("{{token_id}}"); -``` - -
- -#### tokenId - -The token ID of the NFT to get the owner of. - -Must be a `string`. - -### Return Value - -Returns a `string` representing the wallet address of the owner of the NFT. - -```csharp -string; -``` - -
- -## SetApprovalForAll - -Give another address approval (or remove approval) to transfer any of your NFTs from this collection. - -```csharp -var data = await contract.ERC721.SetApprovalForAll("{{address_to_approve}}", true); -``` - -
- -#### operator - -The wallet address to approve. - -Must be a `string`. - -#### approved - -Whether to approve (true) or remove approval (false). - -Must be a `boolean`. - -
- -## Transfer - -Transfer an NFT from the **connected wallet** to another wallet. - -```csharp -var data = await contract.ERC721.Transfer("{{wallet_address}}", "{{token_id}}"); -``` - -
- -#### walletAddress - -The wallet address to transfer the NFT to. - -Must be a `string`. - -#### tokenId - -The token ID of the NFT to transfer. - -Must be a `string`. - -
diff --git a/apps/portal/src/app/unity/v4/contracts/erc721/erc721burnable/page.mdx b/apps/portal/src/app/unity/v4/contracts/erc721/erc721burnable/page.mdx deleted file mode 100644 index 047031c3410..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/erc721/erc721burnable/page.mdx +++ /dev/null @@ -1,28 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "ERC721Burnable | thirdweb Unity SDK", - description: "References for ERC721Burnable contract in thirdweb Unity SDK.", -}); - -# ERC721Burnable - -Allows you to burn an NFT (transfer it to a **null address** that is unrecoverable). - -## Burn - -Burn an NFT from the **connected wallet**. - -```csharp -var data = await contract.ERC721.Burn("{{token_id}}"); -``` - -
- -#### tokenId - -The token ID of the NFT to burn. - -Must be a `string`. - -
diff --git a/apps/portal/src/app/unity/v4/contracts/erc721/erc721claimconditions/page.mdx b/apps/portal/src/app/unity/v4/contracts/erc721/erc721claimconditions/page.mdx deleted file mode 100644 index 121da41d170..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/erc721/erc721claimconditions/page.mdx +++ /dev/null @@ -1,233 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "ERC721ClaimConditions | thirdweb Unity SDK", - description: - "References for ERC721ClaimConditions contract in thirdweb Unity SDK.", -}); - -# ERC721ClaimConditions - -Allows you to create a claim phase for an ERC721 token. - -## Claim - -Claim a specified number of tokens to the **connected wallet**. - -```csharp -var data = await contract.ERC721.Claim(1); -``` - -
- -#### quantity (required) - -The number of tokens to claim. - -Must be an `int`. - -
- -## ClaimTo - -The same as [`claim`](#claim), but allows specifying the recipient -address rather than using the connected wallet. - -```csharp -var data = await contract.ERC721.ClaimTo("{{wallet_address}}", 1); -``` - -
- -#### recipient (required) - -The wallet address to receive the claimed tokens. - -Must be a `string`. - -#### quantity (required) - -The number of tokens to claim. - -Must be an `int`. - -
- -## CanClaim - -Check if tokens are currently available for claiming, optionally specifying if a specific wallet -address can claim. - -```csharp -var data = await contract.ERC721.ClaimConditions.CanClaim(1, "{{wallet_address}}"); -``` - -
- -#### quantity (required) - -The amount of tokens to claim. - -This checks to see if the specified amount of tokens are available for claiming. i.e.: - -- There is sufficient quantity available for claiming. -- This amount of tokens can be claimed in a single transaction. - -Must be an `int`. - -#### addressToCheck (optional) - -The wallet address to check if it can claim tokens. - -This considers all aspects of the active claim phase, including allowlists, previous claims, etc. - -Must be a `string`. - -### Return Value - -Returns a `bool` indicating if the specified amount of tokens can be claimed or not. - -```csharp -bool -``` - -
- -## TotalClaimedSupply - -Get the total number of tokens claimed from the drop so far. - -```csharp -var data = await contract.ERC721.TotalClaimedSupply(); -``` - -
- -### Return Value - -Returns an `int` representing the total number of tokens claimed from the drop so far. - -```csharp -int -``` - -
- -## TotalUnclaimedSupply - -Get the total number of tokens that are still available to be claimed from the drop. - -```csharp -var data = await contract.ERC721.TotalUnclaimedSupply(); -``` - -
- -### Return Value - -Returns an `int` representing the total number of tokens that are still available to be claimed from the drop. - -```csharp -int -``` - -
- -## GetActive - -Retrieve the currently active claim phase, if any. - -```csharp -var data = await contract.ERC721.ClaimConditions.GetActive(); -``` - -
- -### Return Value - -If a claim condition is active, returns a `ClaimConditions` struct containing the following properties: - -```csharp -{ - string availableSupply; - string currentMintSupply; - CurrencyValue currencyMetadata; - string currencyAddress; - string maxClaimableSupply; - string maxClaimablePerWallet; - string waitInSeconds; -} -``` - -
- -## GetIneligibilityReasons - -Get an array of reasons why a specific wallet address is not eligible to claim tokens, if any. - -```csharp -var data = await contract.ERC721.ClaimConditions.GetIneligibilityReasons(1, "{{wallet_address}}"); -``` - -
- -#### quantity (required) - -The amount of tokens to check if the wallet address can claim. - -Must be an `int`. - -#### addressToCheck (optional) - -The wallet address to check if it can claim tokens. - -Must be a `string`. - -### Return Value - -Returns an array of `ClaimEligibility` strings, which may be empty. - -If the user _is_ eligible to claim tokens, the method will return an empty array. - -```csharp -string[]; - -// Examples: -{ - NotEnoughSupply = "There is not enough supply to claim.", - AddressNotAllowed = "This address is not on the allowlist.", - WaitBeforeNextClaimTransaction = "Not enough time since last claim transaction. Please wait.", - AlreadyClaimed = "You have already claimed the token.", - NotEnoughTokens = "There are not enough tokens in the wallet to pay for the claim.", - NoActiveClaimPhase = "There is no active claim phase at the moment. Please check back in later.", - NoClaimConditionSet = "There is no claim condition set.", - NoWallet = "No wallet connected.", - Unknown = "No claim conditions found.", -} -``` - -
- -## GetClaimerProofs - -Returns allowlist information and merkle proofs for a given wallet address. - -```csharp -var data = await contract.ERC721.ClaimConditions.GetClaimerProofs("{{wallet_address}}"); -``` - -
- -#### walletAddress (required) - -The wallet address to get the merkle proofs for. - -Must be a `string`. - -### Return Value - -```csharp -bool; -``` - -
diff --git a/apps/portal/src/app/unity/v4/contracts/erc721/erc721enumerable/page.mdx b/apps/portal/src/app/unity/v4/contracts/erc721/erc721enumerable/page.mdx deleted file mode 100644 index bd224bb0b02..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/erc721/erc721enumerable/page.mdx +++ /dev/null @@ -1,55 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "ERC721Enumerable | thirdweb Unity SDK", - description: - "References for ERC721Enumerable contract in thirdweb Unity SDK.", -}); - -# ERC721Enumerable - -Allows you to enumerate through owned tokens faster. ERC721AQueryable also supported. - -## GetOwned - -Get the metadata of all NFTs a wallet owns from this contract. - -```csharp -var data = await contract.ERC721.GetOwned(); -``` - -
- -#### address (optional) - -The address of the wallet to get the NFTs of. If not provided, defaults to the **connected wallet** address. - -Must be a `string`. - -```csharp -var data = await contract.ERC721.GetOwned("{{wallet_address}}"); -``` - -### Return Value - -Returns a List of `NFT` structs, containing the following properties: - -```csharp -{ - { - string id; - string uri; - string description; - string image; - string name; - string external_url; - object attributes; - } - string owner; - string type; - int supply; - int quantityOwned; // only for ERC1155 -} -``` - -
diff --git a/apps/portal/src/app/unity/v4/contracts/erc721/erc721mintable/page.mdx b/apps/portal/src/app/unity/v4/contracts/erc721/erc721mintable/page.mdx deleted file mode 100644 index 35c0f48cd4d..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/erc721/erc721mintable/page.mdx +++ /dev/null @@ -1,68 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "ERC721Mintable | thirdweb Unity SDK", - description: "References for ERC721Mintable contract in thirdweb Unity SDK.", -}); - -# ERC721Mintable - -Allows you to mint new NFTs on the contract. - -By default, the NFT metadata is uploaded and pinned to IPFS before minting. -You can override this default behavior by providing a `string` that points to valid metadata object instead of an object. - -## Mint - -Mint a new NFT to the **connected wallet**. - -```csharp -var data = await contract.ERC721.Mint(new NFTMetadata() -{ - name = "My NFT", // Name of the NFT - image = "my-image-url", // An image URL or IPFS URI - // Any other valid metadata properties -}); -``` - -
- -#### metadata - -Provide a `string` that points to, or an `NFTMetadata` struct containing -[valid metadata object](https://docs.opensea.io/docs/metadata-standards#metadata-structure). - -If you provide a struct, the metadata is uploaded and pinned to IPFS before -the NFT(s) are minted. - -The `image` property can be an IPFS URI, or a URL to an image. - -
- -## MintTo - -The same as [`mint`](#mint), but allows you to specify the address of the wallet that will receive the NFT rather than using -the connected wallet address. - -```csharp -var data = await contract.ERC721.MintTo("{{wallet_address}}", new NFTMetadata() -{ - name = "My NFT", // Name of the NFT - image = "my-image-url", // An image URL or IPFS URI - // Any other valid metadata properties -}); -``` - -
- -#### walletAddress - -The address of the wallet you want to mint the NFT to. - -Must be a `string`. - -#### metadata - -See [`metadata`](#metadata) configuration above. - -
diff --git a/apps/portal/src/app/unity/v4/contracts/erc721/erc721signaturemint/page.mdx b/apps/portal/src/app/unity/v4/contracts/erc721/erc721signaturemint/page.mdx deleted file mode 100644 index 1052831e5c7..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/erc721/erc721signaturemint/page.mdx +++ /dev/null @@ -1,124 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "ERC721SignatureMint | thirdweb Unity SDK", - description: - "References for ERC721SignatureMint contract in thirdweb Unity SDK.", -}); - -# ERC721SignatureMint - -Allows you to utilize [signature-based minting](/glossary/signature-based-minting) of NFTs. - -## Generate - -Generate a signature that a wallet address can use to mint the specified number of NFTs. - -This is typically an **admin** operation, where the owner of the -contract generates a signature that allows _another_ wallet to mint tokens. - -```csharp -NFTMetadata meta = new NFTMetadata() -{ - name = "Unity NFT", - description = "Minted From Unity", - image = "ipfs://QmbpciV7R5SSPb6aT9kEBAxoYoXBUsStJkMpxzymV4ZcVc", -}; -var receiverAddress = "{{wallet_address}}"; -var payload = new ERC721MintPayload(receiverAddress, meta); -var signedPayload = await contract.ERC721.Signature.Generate(payload); -``` - -
- -The information you provide to the `generate` method outlines what the signature can be used for. - -The `to`, and `metadata` fields are required, while the rest are optional. - -#### receiverAddress (required) - -The wallet address that can use this signature to mint tokens. - -This is to prevent another wallet from intercepting the signature and using it to mint tokens for themselves. - -Must be a `string`. - -#### metadata (required) - -The metadata of the NFT to mint. - -Must be an `NFTMetadata` struct -containing metadata that conforms to -the [metadata standards](https://docs.opensea.io/docs/metadata-standards#metadata-structure). - -The metadata is uploaded and pinned to IPFS before -the NFT(s) are minted. - -
- -## Mint - -Mint tokens from a previously generated signature (see [`generate`](#generate)). - -```csharp -NFTMetadata meta = new NFTMetadata() -{ - name = "Unity NFT", - description = "Minted From Unity", - image = "ipfs://QmbpciV7R5SSPb6aT9kEBAxoYoXBUsStJkMpxzymV4ZcVc", -}; -var receiverAddress = "{{wallet_address}}"; -var payload = new ERC721MintPayload(receiverAddress, meta); -var signedPayload = await contract.ERC721.Signature.Generate(payload); - -var data = await contract.ERC721.Signature.Mint(signedPayload); -``` - -
- -#### signature (required) - -The signature created by the [`generate`](#generate) function. - -
- -## Verify - -Verify that a payload is correctly signed. - -This allows you to provide a payload, and prove that it was valid and was generated -by a wallet with permission to generate signatures. - -If a payload is not valid, the `mint` function will fail, -but you can use this function to verify that the payload is valid before attempting to mint the tokens -if you want to show a more user-friendly error message. - -```csharp - -``` - -
- -#### payload (required) - -The payload to verify. - -### Return Value - -Returns `true` if the payload is valid, `false` otherwise. - -```csharp -NFTMetadata meta = new NFTMetadata() -{ - name = "Unity NFT", - description = "Minted From Unity", - image = "ipfs://QmbpciV7R5SSPb6aT9kEBAxoYoXBUsStJkMpxzymV4ZcVc", -}; -var receiverAddress = "{{wallet_address}}"; -var payload = new ERC721MintPayload(receiverAddress, meta); -var signedPayload = await contract.ERC721.Signature.Generate(payload); - -var data = await contract.ERC721.Signature.Verify(signedPayload); -``` - -
diff --git a/apps/portal/src/app/unity/v4/contracts/erc721/erc721signaturemintable/page.mdx b/apps/portal/src/app/unity/v4/contracts/erc721/erc721signaturemintable/page.mdx deleted file mode 100644 index 82d9497cbd1..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/erc721/erc721signaturemintable/page.mdx +++ /dev/null @@ -1,120 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "ERC721SignatureMintable | thirdweb Unity SDK", - description: - "References for ERC721SignatureMintable contract in thirdweb Unity SDK.", -}); - -# ERC721SignatureMintable - -Allows you to utilize [signature-based minting](/glossary/signature-based-minting) of NFTs. - -## Generate - -Generate a signature that a wallet address can use to mint the specified number of NFTs. - -This is typically an **admin** operation, where the owner of the -contract generates a signature that allows _another_ wallet to mint tokens. - -```csharp -NFTMetadata meta = new NFTMetadata() -{ - name = "Unity NFT", - description = "Minted From Unity", - image = "ipfs://QmbpciV7R5SSPb6aT9kEBAxoYoXBUsStJkMpxzymV4ZcVc", -}; -var receiverAddress = "{{wallet_address}}"; -var payload = new ERC721MintPayload(receiverAddress, meta); -var signedPayload = await contract.ERC721.Signature.Generate(payload); -``` - -
- -The information you provide to the `generate` method outlines what the signature can be used for. - -The `to`, and `metadata` fields are required, while the rest are optional. - -#### receiverAddress (required) - -The wallet address that can use this signature to mint tokens. - -This is to prevent another wallet from intercepting the signature and using it to mint tokens for themselves. - -Must be a `string`. - -#### metadata (required) - -The metadata of the NFT to mint. - -Must be an `NFTMetadata` struct -containing metadata that conforms to -the [metadata standards](https://docs.opensea.io/docs/metadata-standards#metadata-structure). - -The metadata is uploaded and pinned to IPFS before -the NFT(s) are minted. - -
- -## Mint - -Mint tokens from a previously generated signature (see [`generate`](#generate)). - -```csharp -NFTMetadata meta = new NFTMetadata() -{ - name = "Unity NFT", - description = "Minted From Unity", - image = "ipfs://QmbpciV7R5SSPb6aT9kEBAxoYoXBUsStJkMpxzymV4ZcVc", -}; -var receiverAddress = "{{wallet_address}}"; -var payload = new ERC721MintPayload(receiverAddress, meta); -var signedPayload = await contract.ERC721.Signature.Generate(payload); - -var data = await contract.ERC721.Signature.Mint(signedPayload); -``` - -
- -#### signature (required) - -The signature created by the [`generate`](#generate) function. - -
- -## Verify - -Verify that a payload is correctly signed. - -This allows you to provide a payload, and prove that it was valid and was generated -by a wallet with permission to generate signatures. - -If a payload is not valid, the `mint` function will fail, -but you can use this function to verify that the payload is valid before attempting to mint the tokens -if you want to show a more user-friendly error message. - -```csharp -NFTMetadata meta = new NFTMetadata() -{ - name = "Unity NFT", - description = "Minted From Unity", - image = "ipfs://QmbpciV7R5SSPb6aT9kEBAxoYoXBUsStJkMpxzymV4ZcVc", -}; -var receiverAddress = "{{wallet_address}}"; -var payload = new ERC721MintPayload(receiverAddress, meta); -var signedPayload = await contract.ERC721.Signature.Generate(payload); - -bool isValid = await contract.ERC721.Signature.Verify(signedPayload); -``` - -
- -#### payload (required) - -The payload to verify. - -### Return Value - -Returns `true` if the payload is valid, `false` otherwise. - -
diff --git a/apps/portal/src/app/unity/v4/contracts/erc721/erc721supply/page.mdx b/apps/portal/src/app/unity/v4/contracts/erc721/erc721supply/page.mdx deleted file mode 100644 index 4440c2946c5..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/erc721/erc721supply/page.mdx +++ /dev/null @@ -1,78 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "ERC721Supply | thirdweb Unity SDK", - description: "References for ERC721Supply contract in thirdweb Unity SDK.", -}); - -# ERC721Supply - -Allows you to get the total supply of an ERC721 contract. - -## GetAll - -Get the metadata and current owner of all NFTs in the contract. - -By default, returns the first `100` NFTs (in order of token ID). Use [`queryParams`](#queryParams-optional) to paginate the results. - -```csharp -var data = await contract.ERC721.GetAll(); -``` - -
- -#### queryParams (optional) - -Provide an optional object to configure the query. Useful for paginating the results. - -```csharp -var data = await contract.ERC721.GetAll(new QueryAllParams() -{ - count = 100, - start = 0 -}); -``` - -### Return Value - -Returns a `List` of `NFT` structs, each containing the following properties: - -```csharp -{ - { - string id; - string uri; - string description; - string image; - string name; - string external_url; - object attributes; - } - string owner; - string type; - int supply; - int quantityOwned; // only for ERC1155 -} -``` - -
- -## TotalCount - -Get the total number of NFTs minted in this contract. - -```csharp -var data = await contract.ERC721.TotalCount(); -``` - -
- -### Return Value - -Returns an `int`. - -```csharp -int -``` - -
diff --git a/apps/portal/src/app/unity/v4/contracts/events/get/page.mdx b/apps/portal/src/app/unity/v4/contracts/events/get/page.mdx deleted file mode 100644 index f800b1c9f6e..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/events/get/page.mdx +++ /dev/null @@ -1,96 +0,0 @@ -import { Callout, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "contracts.Events.Get | thirdweb Unity SDK", - description: "References for contracts.Events.Get in thirdweb Unity SDK.", -}); - -# Get - -Get a list of a specific event’s occurrences emitted from the contract during a specified time period. - -## Usage - -Provide the name of the event, and an optional filter to define the time period to get events for. - -```csharp -// Define the shape of the event data -public struct MyEvent -{ - public string from; - public string to; - public string tokenId; -} - -// Get all emitted events -var data = await contract.Events.Get("eventName"); -``` - -## Configuration - -### structure (generic type) - -The event data structure to deserialize into, i.e. what shape the event data should be in. - -### eventName - -The name of the event to get logs for. - -In Solidity, an event is triggered by the `emit` keyword. - -```solidity title="Example.sol" -// An example Solidity contract -emit Transfer(); // Triggering event -``` - -To listen to this event, use the name of the event as it appears in the contract. - -```csharp -var data = await contract.Events.Get("Transfer"); -``` - -### filters (optional) - -An optional object containing the `fromBlock` and `toBlock` numbers for the time period to get events for. - -The `order` field indicates the ordering of the events; `desc` (descending) or `asc` (ascending). - -The `filters` field allows you to filter on [indexed event parameters](https://docs.soliditylang.org/en/v0.8.19/contracts.html#index-14). - -The default `fromBlock` is `0` and the default `toBlock` is `latest`. - -```csharp -var data = await contract.Events.Get("eventName", new EventQueryOptions() -{ - fromBlock = 0, - toBlock = 1000000, - order = "desc", -}) -``` - - - -Event functionality is limited on native platforms, however we provide an alternative low-level API to get events using Nethereum. - -There are also more strict type restrictions for native platforms as seen below. - -```csharp -[Event("Transfer")] -public class TransferEventDTO : IEventDTO -{ - [Parameter("address", "from", 1, true)] - public string From { get; set; } - - [Parameter("address", "to", 2, true)] - public string To { get; set; } - - [Parameter("uint256", "tokenId", 3, true)] - public BigInteger TokenId { get; set; } -} - -// ... - -var allEvents = await contract.GetEventLogs(fromBlock, toBlock); -``` - - diff --git a/apps/portal/src/app/unity/v4/contracts/events/getall/page.mdx b/apps/portal/src/app/unity/v4/contracts/events/getall/page.mdx deleted file mode 100644 index 64d69534f21..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/events/getall/page.mdx +++ /dev/null @@ -1,61 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "contract.Events.GetAll | thirdweb Unity SDK", - description: "References for contract.Events.GetAll in thirdweb Unity SDK.", -}); - -# GetAll - -Get a list of all the events emitted from the contract during a specified time period. - -## Usage - -By default, the method gets all events from block `0` to the latest block, in descending order. - -```csharp -var data = contract.Events.GetAll(); -``` - -## Configuration - -### filters (optional) - -A struct containing the `fromBlock` and `toBlock` numbers for the time period to get events for. - -The `order` field indicates the ordering of the events; `desc` (descending) or `asc` (ascending). - -The default `fromBlock` is `0` and the default `toBlock` is `latest`. - -```csharp -var data = contract.Events.GetAll(new EventQueryOptions() -{ - fromBlock = 0, - toBlock = 1000000, - order = "desc", -}); -``` - -## Return Value - -Returns a list of `ContractEvent` structs containing the following properties: - -```csharp -{ - string eventName; - T data; // Uses the type you specify, or `object` if you don't specify a type - EventTransaction transaction { - int blockNumber; - string blockHash; - int transactionIndex; - bool removed; - string address; - string data; - List topics; - string transactionHash; - int logIndex; - string @event; - string eventSignature; - } -} -``` diff --git a/apps/portal/src/app/unity/v4/contracts/events/listentoall/page.mdx b/apps/portal/src/app/unity/v4/contracts/events/listentoall/page.mdx deleted file mode 100644 index 97893f36993..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/events/listentoall/page.mdx +++ /dev/null @@ -1,26 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "contract.Events.ListenToAll | thirdweb Unity SDK", - description: - "References for contract.Events.ListenToAll in thirdweb Unity SDK.", -}); - -# ListenToAll - -Create a new subscription to listen to all new events on a smart contract. - -## Usage - -```csharp -var listener = contract.Events.ListenToAll((ContractEvent anyEvent) => Debug.Log("Event occurred: " + anyEvent.data)); -``` - -## Configuration - -### action - -The action to be executed when the event is triggered. - -It receives a `ContractEvent` object as a parameter that contains the event data to -be used within the logic of the action. diff --git a/apps/portal/src/app/unity/v4/contracts/events/removealllisteners/page.mdx b/apps/portal/src/app/unity/v4/contracts/events/removealllisteners/page.mdx deleted file mode 100644 index a6f6604421a..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/events/removealllisteners/page.mdx +++ /dev/null @@ -1,17 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "contract.Events.RemoveAllListeners | thirdweb Unity SDK", - description: - "References for contract.Events.RemoveAllListeners in thirdweb Unity SDK.", -}); - -# RemoveAllListeners - -Remove all previously created event listeners, such as those created with [ListenToAll](unity/events/listentoall). - -## Usage - -```csharp -await contract.Events.RemoveAllListeners(); -``` diff --git a/apps/portal/src/app/unity/v4/contracts/get/page.mdx b/apps/portal/src/app/unity/v4/contracts/get/page.mdx deleted file mode 100644 index df55c91389b..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/get/page.mdx +++ /dev/null @@ -1,41 +0,0 @@ -import { Callout, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "sdk.GetContract | thirdweb Unity SDK", - description: - "Connect to a deployed smart contract to start interacting with it.", -}); - -# Connect to a deployed smart contract to start interacting with it. - -## Usage - -```csharp -Contract contract = sdk.GetContract("{{contract_address}}"); -``` - - - -When no ABI is passed, we will use thirdweb services to fetch it at runtime when Prepare, Read or Write are called. - -This is a great way to get started quickly, but it is not recommended for production environments. - -You may also use `Contract.FetchAbi` to fetch the ABI manually. - - - -## Configuration - -### address (required) - -The address of the smart contract you want to connect to. - -Must be a `string`. - -### Using Contract ABI - -The ABI must be a C#-escaped string without spaces or line breaks for the best experience. - -```csharp -Contract contract = sdk.GetContract("0x...", "my-abi"); -``` diff --git a/apps/portal/src/app/unity/v4/contracts/marketplace/page.mdx b/apps/portal/src/app/unity/v4/contracts/marketplace/page.mdx deleted file mode 100644 index 0632babcadb..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/marketplace/page.mdx +++ /dev/null @@ -1,776 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Marketplace | thirdweb Unity SDK", - description: - "Reference for the Marketplace smart contract in the thirdweb Unity SDK.", -}); - -# Marketplace - -When using the `Marketplace` smart contract, additional top-level functionality is available to use. - -You will be able to access the `DirectListings`, `EnglishAuctions`, and `Offers` properties of the `Marketplace` object. - -```csharp -Contract contract = sdk.GetContract("0x..."); -Marketplace marketplace = contract.Marketplace; -``` - -## DirectListings - -Interact with direct listings in the marketplace. - -### GetAll - -Retrieve all direct listings. - -```csharp -var listings = await marketplace.DirectListings.GetAll(filters); -``` - -
- -#### filters - -(Optional) Filters to apply to the listings retrieval. - -Must be a `MarketplaceFilters` object. - -
- -### GetAllValid - -Retrieve all valid direct listings. - -```csharp -var validListings = await marketplace.DirectListings.GetAllValid(filters); -``` - -
- -#### filters - -(Optional) Filters to apply to the valid listings retrieval. - -Must be a `MarketplaceFilters` object. - -
- -### GetListing - -Retrieve a specific direct listing by ID. - -```csharp -var listing = await marketplace.DirectListings.GetListing(listingID); -``` - -
- -#### listingID - -The ID of the listing to retrieve. - -Must be a `string`. - -
- -### GetTotalCount - -Retrieve the total count of direct listings. - -```csharp -var count = await marketplace.DirectListings.GetTotalCount(); -``` - -### IsBuyerApprovedForListing - -Check if a buyer is approved for a reserved listing. - -```csharp -var isApproved = await marketplace.DirectListings.IsBuyerApprovedForListing(listingID, buyerAddress); -``` - -
- -#### listingID - -The ID of the listing. - -Must be a `string`. - -#### buyerAddress - -The address of the buyer. - -Must be a `string`. - -
- -### IsCurrencyApprovedForListing - -Check if a currency is approved for a listing. - -```csharp -var isApproved = await marketplace.DirectListings.IsCurrencyApprovedForListing(listingID, currencyContractAddress); -``` - -
- -#### listingID - -The ID of the listing. - -Must be a `string`. - -#### currencyContractAddress - -The address of the currency contract. - -Must be a `string`. - -
- -### ApproveBuyerForReservedListing - -Approve a buyer for a reserved listing. - -```csharp -var result = await marketplace.DirectListings.ApproveBuyerForReservedListing(listingID, buyerAddress); -``` - -
- -#### listingID - -The ID of the listing. - -Must be a `string`. - -#### buyerAddress - -The address of the buyer. - -Must be a `string`. - -
- -### BuyFromListing - -Buy from a listing. - -```csharp -var result = await marketplace.DirectListings.BuyFromListing(listingID, quantity, walletAddress); -``` - -
- -#### listingID - -The ID of the listing. - -Must be a `string`. - -#### quantity - -The quantity to buy. - -Must be a `string`. - -#### walletAddress - -The address of the buyer's wallet. - -Must be a `string`. - -
- -### CancelListing - -Cancel a listing. - -```csharp -var result = await marketplace.DirectListings.CancelListing(listingID); -``` - -
- -#### listingID - -The ID of the listing. - -Must be a `string`. - -
- -### CreateListing - -Create a new listing. - -```csharp -var result = await marketplace.DirectListings.CreateListing(input); -``` - -
- -#### input - -The input parameters for creating a listing. - -Must be a `CreateListingInput` object. - -```csharp -[System.Serializable] -public struct CreateListingInput -{ - public string assetContractAddress; // Required - smart contract address of NFT to sell - public string tokenId; // Required - token ID of the NFT to sell - public string pricePerToken; // Required - price of each token in the listing - public string? currencyContractAddress; // Optional - smart contract address of the currency to use for the listing - public bool? isReservedListing; // Optional - whether or not the listing is reserved (only specific wallet addresses can buy) - public string? quantity; // Optional - number of tokens to sell (1 for ERC721 NFTs) - public long? startTimestamp; // Optional - when the listing should start (default is now) - public long? endTimestamp; // Optional - when the listing should end (default is 7 days from now) -} - -``` - -
- -### RevokeBuyerApprovalForReservedListing - -Revoke buyer approval for a reserved listing. - -```csharp -var result = await marketplace.DirectListings.RevokeBuyerApprovalForReservedListing(listingId, buyerAddress); -``` - -
- -#### listingId - -The ID of the listing. - -Must be a `string`. - -#### buyerAddress - -The address of the buyer. - -Must be a `string`. - -
- -### RevokeCurrencyApprovalForListing - -Revoke currency approval for a listing. - -```csharp -var result = await marketplace.DirectListings.RevokeCurrencyApprovalForListing(listingId, currencyContractAddress); -``` - -
- -#### listingId - -The ID of the listing. - -Must be a `string`. - -#### currencyContractAddress - -The address of the currency contract. - -Must be a `string`. - -
- -### UpdateListing - -Update a listing. - -```csharp -var result = await marketplace.DirectListings.UpdateListing(listingId, listing); -``` - -
- -#### listingId - -The ID of the listing. - -Must be a `string`. - -#### listing - -The updated listing details. - -Must be a `DirectListing` object. - -```csharp -[System.Serializable] -public struct DirectListing -{ - public string? id; // The id of the listing. - public string? creatorAddress; // The address of the creator of listing. - public string? assetContractAddress; // The address of the asset being listed. - public string? tokenId; // The ID of the token to list. - public string? quantity; // The quantity of tokens to include in the listing (always 1 for ERC721). - public string? currencyContractAddress; // The address of the currency to accept for the listing. - public CurrencyValue? currencyValuePerToken; // The `CurrencyValue` of the listing. Useful for displaying the price information. - public string? pricePerToken; // The price to pay per unit of NFTs listed. - public NFTMetadata? asset; // The asset being listed. - public long? startTimeInSeconds; // The start time of the listing. - public long? endTimeInSeconds; // The end time of the listing. - public bool? isReservedListing; // Whether the listing is reserved to be bought from a specific set of buyers. - public MarketplaceStatus? status; // Whether the listing is CREATED, COMPLETED, or CANCELLED. -} -``` - -
- -## EnglishAuctions - -Interact with English auctions in the marketplace. - -### GetAll - -Retrieve all English auctions. - -```csharp -var auctions = await marketplace.EnglishAuctions.GetAll(filters); -``` - -
- -#### filters - -(Optional) Filters to apply to the auctions retrieval. - -Must be a `MarketplaceFilters` object. - -
- -### GetAllValid - -Retrieve all valid English auctions. - -```csharp -var validAuctions = await marketplace.EnglishAuctions.GetAllValid(filters); -``` - -
- -#### filters - -(Optional) Filters to apply to the valid auctions retrieval. - -Must be a `MarketplaceFilters` object. - -
- -### GetAuction - -Retrieve a specific English auction by ID. - -```csharp -var auction = await marketplace.EnglishAuctions.GetAuction(auctionId); -``` - -
- -#### auctionId - -The ID of the auction to retrieve. - -Must be a `string`. - -
- -### GetBidBufferBps - -Retrieve the bid buffer basis points for an auction. - -```csharp -var bidBufferBps = await marketplace.EnglishAuctions.GetBidBufferBps(auctionId); -``` - -
- -#### auctionId - -The ID of the auction. - -Must be a `string`. - -
- -### GetMinimumNextBid - -Retrieve the minimum next bid for an auction. - -```csharp -var minimumNextBid = await marketplace.EnglishAuctions.GetMinimumNextBid(auctionId); -``` - -
- -#### auctionId - -The ID of the auction. - -Must be a `string`. - -
- -### GetTotalCount - -Retrieve the total count of English auctions. - -```csharp -var count = await marketplace.EnglishAuctions.GetTotalCount(); -``` - -### GetWinner - -Retrieve the winner of an auction. - -```csharp -var winner = await marketplace.EnglishAuctions.GetWinner(auctionId); -``` - -
- -#### auctionId - -The ID of the auction. - -Must be a `string`. - -
- -### GetWinningBid - -Retrieve the winning bid for an auction. - -```csharp -var winningBid = await marketplace.EnglishAuctions.GetWinningBid(auctionId); -``` - -
- -#### auctionId - -The ID of the auction. - -Must be a `string`. - -
- -### IsWinningBid - -Check if a bid is the winning bid. - -```csharp -var isWinningBid = await marketplace.EnglishAuctions.IsWinningBid(auctionId, bidAmount); -``` - -
- -#### auctionId - -The ID of the auction. - -Must be a `string`. - -#### bidAmount - -The amount of the bid. - -Must be a `string`. - -
- -### BuyoutAuction - -Buyout an auction. - -```csharp -var result = await marketplace.EnglishAuctions.BuyoutAuction(auctionId); -``` - -
- -#### auctionId - -The ID of the auction. - -Must be a `string`. - -
- -### CancelAuction - -Cancel an auction. - -```csharp -var result = await marketplace.EnglishAuctions.CancelAuction(auctionId); -``` - -
- -#### auctionId - -The ID of the auction. - -Must be a `string`. - -
- -### CloseAuctionForBidder - -Close an auction for the bidder. - -```csharp -var result = await marketplace.EnglishAuctions.CloseAuctionForBidder(auctionId); -``` - -
- -#### auctionId - -The ID of the auction. - -Must be a `string`. - -
- -### CloseAuctionForSeller - -Close an auction for the seller. - -```csharp -var result = await marketplace.EnglishAuctions.CloseAuctionForSeller(auctionId); -``` - -
- -#### auctionId - -The ID of the auction. - -Must be a `string`. - -
- -### CreateAuction - -Create a new auction. - -```csharp -var result = await marketplace.EnglishAuctions.CreateAuction(input); -``` - -
- -#### input - -The input parameters for creating an auction. - -Must be a `CreateAuctionInput` object. - -```csharp -[System.Serializable] -public struct CreateAuctionInput -{ - public string assetContractAddress; // Required - smart contract address of NFT to sell - public string tokenId; // Required - token ID of the NFT to sell - public string buyoutBidAmount; // Required - amount to buy the NFT and close the listing - public string minimumBidAmount; // Required - Minimum amount that bids must be to placed - public string? currencyContractAddress; // Optional - smart contract address of the currency to use for the listing - public string? quantity; // Optional - number of tokens to sell (1 for ERC721 NFTs) - public long? startTimestamp; // Optional - when the listing should start (default is now) - public long? endTimestamp; // Optional - when the listing should end (default is 7 days from now) - public string? bidBufferBps; // Optional - percentage the next bid must be higher than the current highest bid (default is contract-level bid buffer bps) - public string? timeBufferInSeconds; // Optional - time in seconds that are added to the end time when a bid is placed (default is contract-level time buffer in seconds) -} -``` - -
- -### ExecuteSale - -Execute the sale for an auction. - -```csharp -var result = await marketplace.EnglishAuctions.ExecuteSale(auctionId); -``` - -
- -#### auctionId - -The ID of the auction. - -Must be a `string`. - -
- -### MakeBid - -Make a bid on an auction. - -```csharp -var result = await marketplace.EnglishAuctions.MakeBid(auctionId, bidAmount); -``` - -
- -#### auctionId - -The ID of the auction. - -Must be a `string`. - -#### bidAmount - -The amount of the bid. - -Must be a `string`. - -
- -## Offers - -Interact with offers in the marketplace. - -### GetAll - -Retrieve all offers. - -```csharp -var offers = await marketplace.Offers.GetAll(filters); -``` - -
- -#### filters - -(Optional) Filters to apply to the offers retrieval. - -Must be a `MarketplaceFilters` object. - -
- -### GetAllValid - -Retrieve all valid offers. - -```csharp -var validOffers = await marketplace.Offers.GetAllValid(filters); -``` - -
- -#### filters - -(Optional) Filters to apply to the valid offers retrieval. - -Must be a `MarketplaceFilters` object. - -
- -### GetOffer - -Retrieve a specific offer by ID. - -```csharp -var offer = await marketplace.Offers.GetOffer(offerID); -``` - -
- -#### offerID - -The ID of the offer to retrieve. - -Must be a `string`. - -
- -### GetTotalCount - -Retrieve the total count of offers. - -```csharp -var count = await marketplace.Offers.GetTotalCount(); -``` - -### AcceptOffer - -Accept an offer. - -```csharp -var result = await marketplace.Offers.AcceptOffer(offerID); -``` - -
- -#### offerID - -The ID of the offer. - -Must be a `string`. - -
- -### CancelOffer - -Cancel an offer. - -```csharp -var result = await marketplace.Offers.CancelOffer(offerID); -``` - -
- -#### offerID - -The ID of the offer. - -Must be a `string`. - -
- -### MakeOffer - -Make a new offer. - -```csharp -var result = await marketplace.Offers.MakeOffer(input); -``` - -
- -#### input - -The input parameters for making an offer. - -Must be a `MakeOfferInput` object. - -```csharp -[System.Serializable] -public struct MakeOfferInput -{ - public string assetContractAddress; // Required - the contract address of the NFT to offer on - public string tokenId; // Required - the token ID to offer on - public string totalPrice; // Required - the price to offer in the currency specified - public string? currencyContractAddress; // Optional - defaults to the native wrapped currency - public long? endTimestamp; // Optional - Defaults to 10 years from now - public string? quantity; // Optional - defaults to 1 -} -``` - -
- - diff --git a/apps/portal/src/app/unity/v4/contracts/pack/page.mdx b/apps/portal/src/app/unity/v4/contracts/pack/page.mdx deleted file mode 100644 index f9d5880333b..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/pack/page.mdx +++ /dev/null @@ -1,602 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Pack | thirdweb Unity SDK", - description: - "Reference for the Pack smart contract in the thirdweb Unity SDK.", -}); - -# Pack - -When using the [Pack](https://thirdweb.com/thirdweb.eth/Pack) smart contract, additional top-level functionality is available to use. - -To access the top-level functionality, provide the `marketplace` contract type when creating the contract instance: - -```csharp -Contract contract = sdk.GetContract("0x..."); -Pack pack = contract.Pack; -``` - -## AddPackContents - -Add additional tokens to the pool of tokens that can be opened from a pack. - -```csharp -// Define ERC20 rewards to add to the pack -ERC20Reward erc20Reward = new ERC20Reward(); -erc20Reward.contractAddress = "0x123abc"; -erc20Reward.quantityPerReward = "100"; - -// Define ERC721 rewards to add to the pack -ERC721Reward erc721Reward = new ERC721Reward(); -erc721Reward.contractAddress = "0x456def"; -erc721Reward.tokenId = "12345"; - -// Define ERC1155 rewards to add to the pack -ERC1155Reward erc1155Reward = new ERC1155Reward(); -erc1155Reward.contractAddress = "0x789ghi"; -erc1155Reward.tokenId = "67890"; -erc1155Reward.quantityPerReward = "5"; - -PackRewards packRewards = new PackRewards(); -packRewards.erc20Rewards = new List() { erc20Reward }; -packRewards.erc721Rewards = new List() { erc721Reward }; -packRewards.erc1155Rewards = new List() { erc1155Reward }; - -var data = await pack.AddPackContents("{{token_id}}", packRewards); -``` - -
- -#### packId - -The ID of the pack you want to add tokens to. - -For example, in your pack contract you may have a common pack with ID `0` and a rare pack with ID `1`. - -To add more tokens to the common pack, you would pass `"0"` as the `packId`. - -Must be a `string`. - -#### rewards - -An instance of the `PackRewards` class containing the tokens you want to add to the pack. - -
- -## Create - -Mint a new pack NFT, which can be opened to receive rewards, to the **connected** wallet. - -Each pack NFT is an ERC1155 token, which means it can have more than one quantity. - -Provide the metadata for the pack NFT itself, and the rewards that can be opened from the pack. - -The quantity of packs created is determined by the total number of rewards available, divided by the number of rewards per pack. -For example, if you had `20` total ERC20 rewards + `60` total ERC1155 rewards + `20` total ERC721 rewards, -and you wanted to create packs with `5` rewards each, the result would be the creation of `20` packs (100 total rewards / 5 rewards per pack = 20 packs). - -```csharp -var packContents = new PackContents -{ - erc20Contents = new List - { - new ERC20Contents - { - contractAddress = "0x1234567890123456789012345678901234567890", - quantityPerReward = "10", - totalRewards = "5", - } - }, - erc721Contents = new List - { - new ERC721Contents - { - contractAddress = "0x0987654321098765432109876543210987654321", - tokenId = "1234" - } - }, - erc1155Contents = new List - { - new ERC1155Contents - { - contractAddress = "0x4567890123456789012345678901234567890123", - tokenId = "5678", - quantityPerReward = "1", - totalRewards = "1", - } - } -}; - -var newPackInput = new NewPackInput -{ - packMetadata = new NFTMetadata - { - name = "My Pack", - description = "A pack of rewards", - image = "https://example.com/pack.png", - external_url = "https://example.com/pack" - }, - rewardsPerPack = "3", - erc20Contents = packContents.erc20Contents, - erc721Contents = packContents.erc721Contents, - erc1155Contents = packContents.erc1155Contents -}; - -var data = await pack.Create(newPackInput); -``` - -
- -#### packMetadata - -An `NFTMetadata` struct containing [standard metadata properties](https://docs.opensea.io/docs/metadata-standards). - -The metadata is uploaded and pinned to IPFS for you before the packs are minted. The IPFS URI is then used as the metadata for the pack NFT. - -#### erc20Contents - -A list of of ERC20 tokens to include in the pack. - -Each item in the list must contain a `contractAddress`, `quantityPerReward`, and `totalRewards` property. - -#### erc721Contents - -A list of ERC721 tokens to include in the pack. - -Each item in the list must contain a `contractAddress` and `tokenId` property. - -#### erc1155Contents - -A list of ERC1155 tokens to include in the pack. - -Each item in the list must contain a `contractAddress`, `tokenId`, `quantityPerReward`, and `totalRewards` property. - -#### rewardsPerPack - -The number of rewards in each pack. - -Must be a `string`. - -
- -## CreateTo - -The same as [`Create`](#create), but allows you to specify the address that will receive the pack NFT(s), rather than using the connected wallet. - -```csharp -var packContents = new PackContents -{ - erc20Contents = new List - { - new ERC20Contents - { - contractAddress = "0x1234567890123456789012345678901234567890", - quantityPerReward = "10", - totalRewards = "5", - } - }, - erc721Contents = new List - { - new ERC721Contents - { - contractAddress = "0x0987654321098765432109876543210987654321", - tokenId = "1234" - } - }, - erc1155Contents = new List - { - new ERC1155Contents - { - contractAddress = "0x4567890123456789012345678901234567890123", - tokenId = "5678", - quantityPerReward = "1", - totalRewards = "1", - } - } -}; - -var newPackInput = new NewPackInput -{ - packMetadata = new NFTMetadata - { - name = "My Pack", - description = "A pack of rewards", - image = "https://example.com/pack.png", - external_url = "https://example.com/pack" - }, - rewardsPerPack = "3", - erc20Contents = packContents.erc20Contents, - erc721Contents = packContents.erc721Contents, - erc1155Contents = packContents.erc1155Contents -}; - -var data = await pack.CreateTo("{{wallet_address}}", newPackInput); -``` - -
- -#### to - -The wallet address to mint the pack NFTs to. - -Must be a `string`. - -See [`Create`](#Create) for more information on the rest of the configuration options. - -
- -## GetPackContents - -Get all the tokens that were "wrapped up" in the pack NFTs when they were created. - -```csharp -var data = await pack.GetPackContents("{{pack_id}}"); -``` - -
- -#### packId - -The token ID of the pack to get the contents of. - -Must be a `string`. - -### Return Value - -Returns all the tokens that were included in the rewards when the packs were created. - -```csharp -{ - List erc20Contents; - List erc721Contents; - List erc1155Contents; -} -``` - -
- -## Open - -Open a pack NFT to receive the rewards inside. - -To open a pack, the wallet that initiates this transaction must have sufficient quantity of the pack NFT to open. - -```csharp -var data = await pack.Open("{{pack_id}}", "{{amount}}"); -``` - -
- -#### packId - -The token ID of the pack to open. - -Must be a `string`. - -#### amount - -The number of packs to open. - -Optional. Defaults to `"1"`. - -Must be a `string`. - -
- -## Balance - -Get the quantity of a specific NFT owned by the connected wallet. - -```csharp -var data = await contract.ERC1155.Balance("{{token_id}}"); -``` - -
- -#### tokenId - -The token ID of the NFT to check the balance of. - -Must be a `string`. - -### Return Value - -A `string` representing the quantity of the NFT owned by the wallet. - -```csharp -string -``` - -
- -## BalanceOf - -Get the quantity of a specific NFT owned by a wallet. - -```csharp -var data = await contract.ERC1155.BalanceOf("{{wallet_address}}", "{{token_id}}"); -``` - -
- -#### address - -The wallet address to check the NFT balance for. - -Must be a `string`. - -#### tokenId - -The token ID of the NFT to check the balance of. - -Must be a `string`. - -### Return Value - -A `string` representing the quantity of the NFT owned by the wallet. - -```csharp -string -``` - -
- -## Get - -Get the metadata of an NFT using it’s token ID. - -Metadata is fetched from the `uri` property of the NFT. - -If the metadata is hosted on IPFS, the metadata is fetched and made available as an object. -The object’s `image` property will be a URL that is available through the thirdweb IPFS gateway. - -```csharp - -``` - -
- -#### tokenId - -The token ID of the NFT to get the metadata for. - -Must be a `string`. - -### Return Value - -Returns an `NFT` struct containing the following properties: - -```csharp -{ - { - string id; - string uri; - string description; - string image; - string name; - string external_url; - object attributes; - } - string owner; - string type; - int supply; - int quantityOwned; // only for ERC1155 -} -``` - -
- -## Transfer - -Transfer an NFT from the connected wallet to another wallet. - -```csharp -var data = await contract.ERC1155.Transfer("{{wallet_address}}", "{{token_id}}", 1); -``` - -
- -#### to - -The wallet address to send the NFT to. - -Must be a `string`. - -#### tokenId - -The token ID of the NFT to transfer. - -Must be a `string`. - -#### amount - -The quantity of the NFT to transfer. - -Must be an `int`. - -
- -## IsApprovedForAll - -Get whether this wallet has approved transfers from the given operator. - -This means that the operator can transfer NFTs on behalf of this wallet. - -```csharp -var data = await contract.ERC1155.IsApprovedForAll("{{owner_address}}", "{{operator_address}}"); -``` - -
- -#### owner - -The wallet address that owns the NFT. - -Must be a `string`. - -#### operator - -The wallet address of the operator to check (i.e. the wallet that does/does not have approval). - -Must be a `string`. - -
- -## SetApprovalForAll - -Give another address approval (or remove approval) to transfer all of your NFTs from this collection. - -```csharp -var data = await contract.ERC1155.SetApprovalForAll("{{operator_address}}", true); -``` - -
- -#### operator - -The wallet address to approve. - -Must be a `string`. - -#### approved - -Whether to grant approval (true) or remove approval (false). - -Must be a `bool`. - -
- -## TotalCount - -Get the total number of unique NFTs in the collection. - -```csharp -var data = await contract.ERC1155.TotalCount(); -``` - -
- -### Return Value - -Returns an `int` representing the total number of unique NFTs in the collection. - -```csharp -int -``` - -
- -## TotalSupply - -Returns the total supply of a token in the collection, including burned tokens. - -```csharp -var data = await contract.ERC1155.TotalSupply("{{token_id}}"); -``` - -
- -#### tokenId - -The token ID of the NFT to get the total supply of. - -Must be a `string`. - -### Return Value - -Returns an `int` representing the total supply of the token. - -```csharp -int -``` - -
- -## GetAll - -Get the metadata and current owner of all NFTs in the contract. - -By default, returns the first `100` NFTs (in order of token ID). Use [`queryParams`](#queryParams-optional) to paginate the results. - -```csharp -var data = await contract.ERC1155.GetAll(); -``` - -
- -#### queryParams (optional) - -Provide an optional object to configure the query. Useful for paginating the results. - -```csharp -var data = await contract.ERC1155.GetAll(new QueryAllParams() -{ - count = 100, - start = 0 -}); -``` - -### Return Value - -Returns a list of `NFT` structs, each containing the following properties: - -```csharp -{ - { - string id; - string uri; - string description; - string image; - string name; - string external_url; - object attributes; - } - string owner; - string type; - int supply; - int quantityOwned; -} -``` - -
- -## GetOwned - -Get all the data associated with the NFTs owned by a specific wallet. - -```csharp -var data = await contract.ERC1155.GetOwned(); -``` - -
- -#### address - -The address of the wallet to get the NFTs of. - -Must be a `string`. - -### Return Value - -Returns a list of `NFT` structs, each containing the following properties: - -```csharp -{ - { - string id; - string uri; - string description; - string image; - string name; - string external_url; - object attributes; - } - string owner; - string type; - int supply; - int quantityOwned; -} -``` - -
diff --git a/apps/portal/src/app/unity/v4/contracts/page.mdx b/apps/portal/src/app/unity/v4/contracts/page.mdx deleted file mode 100644 index c33dfb1f636..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/page.mdx +++ /dev/null @@ -1,101 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Interacting with Contracts | thirdweb Unity SDK", - description: - "Learn how to interact with smart contracts using the thirdweb Unity SDK.", -}); - -# Interacting with Contracts - -The Unity SDK provides different ways for you to interact with smart contract functionality: - -1. Generic reading data _from_ and writing transactions _to_ smart contracts using the [`Read`](/unity/contracts/read) and [`Write`](/unity/contracts/write) methods. -2. Using special features that are available for each [extension](/contracts/build/extensions) that your smart contract implements. -3. Use our low-level [`Transaction Builder`](/unity/contracts/prepare) to prepare, build, and send transactions to your smart contract. - -## Extensions - -Each [extension](/contracts/build/extensions) _(i.e. Solidity interface)_ that your smart contract implements unlocks new functionality for you to use in the SDK. -For example, NFT collection smart contracts implements the [ERC721](/contracts/build/extensions/erc-721/ERC721) extension, -allowing you can to use the [ERC721](/unity/contracts/erc721/erc721) extension in the SDK when interacting with that contract. - -These extension interfaces are available for the most common EIP standards, including support for ERC20, ERC721, ERC1155, permissions, metadata, -and more. They handle the pre-processing of calling the smart contract functions for you, such as checking for token approval, uploading metadata to IPFS, formatting inputs, etc. -Making your code safer and easier to write. - -
-
- ```solidity - contract MyContract is - ERC721, - IERC721Mintable { - // ... - } - ``` -
-
- ```csharp - public async void MintERC721() { - // ERC721 -> ".ERC721" - // IERC721Mintable -> ".Mint" - await contract.ERC721.Mint({...}) - } - ``` -
-
-

Example: the "mint" function above uploads and pins your NFT metadata to IPFS for you before minting.

- -### Supported Extensions - -#### ERC721 - -| Name | Description | Documentation | -| --------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| ERC721 | Basic functionality of ERC721 "non-fungible" NFTs | [ERC721](/unity/contracts/erc721/erc721) | -| ERC721Burnable | Burn (take out of circulation) NFTs | [ERC721Burnable](/unity/contracts/erc721/erc721burnable) | -| ERC721ClaimConditions | Allow users to claim NFTs from your drop under specific conditions | [ERC721ClaimConditions](/unity/contracts/erc721/erc721claimconditions) | -| ERC721Enumerable | Enumerate through NFTs in a contract to get all or get owned NFTs | [ERC721Enumerable](/unity/contracts/erc721/erc721enumerable) | -| ERC721Mintable | Mint new NFTs into the contract | [ERC721Mintable](/unity/contracts/erc721/erc721mintable) | -| ERC721Supply | View information about the supply of the NFT collection | [ERC721Supply](/unity/contracts/erc721/erc721supply) | -| ERC721SignatureMint | Use signature-based minting functionality to mint new NFTs into the contract | [ERC721SignatureMint](/unity/contracts/erc721/erc721signaturemintable) | - -#### ERC1155 - -| Name | Description | Documentation | -| ------------------------ | ---------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| ERC1155 | Basic functionality of ERC1155 "semi-fungible" NFTs | [ERC1155](/unity/contracts/erc1155/erc1155) | -| ERC1155Burnable | Burn (take out of circulation) NFTs | [ERC1155Burnable](/unity/contracts/erc1155/erc1155burnable) | -| ERC1155ClaimConditions | Allow users to claim NFTs from your drop under specific conditions | [ERC1155ClaimConditions](/unity/contracts/erc1155/erc1155claimconditions) | -| ERC1155Enumerable | Enumerate through NFTs in a contract to get all or get owned NFTs | [ERC1155Enumerable](/unity/contracts/erc1155/erc1155enumerable) | -| ERC1155Mintable | Mint new NFTs into the contract | [ERC1155Mintable](/unity/contracts/erc1155/erc1155mintable) | -| ERC1155SignatureMintable | Use signature-based minting functionality to mint new NFTs into the contract | [ERC1155SignatureMintable](/unity/contracts/erc1155/erc1155signaturemintable) | - -#### ERC20 - -| Name | Description | Documentation | -| ---------------------- | ------------------------------------------------------------------------------ | ----------------------------------------------------------------------- | -| ERC20 | Basic functionality of ERC20 "fungible" tokens | [ERC20](/unity/contracts/erc20/erc20) | -| ERC20Burnable | Burn (take out of circulation) tokens | [ERC20Burnable](/unity/contracts/erc20/erc20burnable) | -| ERC20Mintable | Mint new tokens into the contract | [ERC20Mintable](/unity/contracts/erc20/erc20mintable) | -| ERC20SignatureMintable | Use signature-based minting functionality to mint new tokens into the contract | [ERC20SignatureMintable](/unity/contracts/erc20/erc20signaturemintable) | -| ERC20ClaimConditions | Allow users to claim tokens from your drop under specific conditions | [ERC20ClaimConditions](/unity/contracts/erc20/erc20claimconditions) | diff --git a/apps/portal/src/app/unity/v4/contracts/prepare/page.mdx b/apps/portal/src/app/unity/v4/contracts/prepare/page.mdx deleted file mode 100644 index 55c441bd1ee..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/prepare/page.mdx +++ /dev/null @@ -1,535 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Transaction Builder | thirdweb Unity SDK", - description: - "Transaction Builder provides more granular control over the transaction process with a Prepare function ", -}); - -# Transaction Builder - -By default, all transactions initiated using the SDK perform every step of the process for a transaction; From preparing and building the transaction all the way to waiting until it has been mined, and the data is available to be read from the blockchain. - -To gain more granular control over the transaction process, all Contract objects come with a Prepare function that returns a Transaction object, which can be used to build, fine-tune, and execute the transaction. - -## Usage - -```csharp -string connectedAddress = await ThirdwebManager.Instance.SDK.Wallet.GetAddress(); -Transaction transaction = await contract.Prepare( - functionName: "claim", - args: new object[] { connectedAddress, 0, 1 } -); - -// This step is optional if you don't care about visualizing the input, tx.Send will do it for you -_ = await tx.Popuate(); -Debug.Log($"Transaction input after preparing: {tx}"); - -// You may update the input if you want -var increasedGasLimit = tx.Input.Gas.Value * 10 / 9; -_ = tx.SetGasLimit(increasedGasLimit.ToString()); - -// Send without waiting for the transaction to be mined -var hash = await tx.Send(); -Debug.Log($"Transaction hash: {hash}"); - -// or you can wait for the transaction to be mined if you don't care about the hash -// var receipt = await tx.SendAndWaitForTransactionResult(); -// Debug.Log($"Transaction receipt: {receipt}"); -``` - -Please be advised that in most cases you do not need to use these functions, as the SDK will handle the transaction process for you. However, if you need more granular control over the transaction process, these functions can be used to fine-tune the transaction. - -## Static Methods - -### WaitForTransactionResult - -Waits for a transaction to be mined, returning a transaction receipt. - -```csharp -var transactionReceipt = await Transaction.WaitForTransactionResult(transactionHash); -``` - -
- -#### transactionHash - -The transaction hash to wait for. - -Must be a `string`. - -#### Return Value - -Returns the transaction receipt as a `TransactionReceipt`. - -
- -## Transaction Methods - -### SetMaxPriorityFeePerGas - -Set the maximum priority fee per gas for the transaction (EIP-1559) - -```csharp -await tx.SetMaxPriorityFeePerGas("1000000000"); -``` - -
- -#### maxPriorityFeePerGas - -The maximum priority fee per gas in `wei`. - -Must be a `string`. - -#### Return Value - -Returns the `Transaction` object. - -
- -### SetMaxFeePerGas - -Set the maximum fee per gas for the transaction (EIP-1559) - -```csharp -await tx.SetMaxFeePerGas("1000000000"); -``` - -
- -#### maxFeePerGas - -The maximum fee per gas in `wei`. - -Must be a `string`. - -#### Return Value - -Returns the `Transaction` object. - -
- -### SetData - -Override the data for the transaction. - -```csharp -await tx.SetData("0x1234567890"); -``` - -
- -#### data - -The calldata to be used for the transaction. - -Must be a `string`. - -#### Return Value - -Returns the `Transaction` object. - -
- -### SetValue - -Set the value for the transaction. - -```csharp -await tx.SetValue("0.00000000001"); -``` - -
- -#### value - -The value to be sent with the transaction. - -Must be a `string`. - -#### Return Value - -Returns the `Transaction` object. - -
- -#### SetFrom - -Override the sender address for the transaction. - -```csharp -await tx.SetFrom("0x1234567890"); -``` - -
- -#### from - -The sender address for the transaction. - -Must be a `string`. - -#### Return Value - -Returns the `Transaction` object. - -
- -### SetGasLimit - -Set the gas limit for the transaction. Good if you want to avoid pre-estimation/simulation. - -```csharp -await tx.SetGasLimit("100000"); -``` - -
- -#### gasLimit - -The gas limit for the transaction. - -Must be a `string`. - -#### Return Value - -Returns the `Transaction` object. - -
- -### SetTo - -Override the to address for the transaction. - -```csharp -await tx.SetTo("0x1234567890"); -``` - -
- -#### to - -The to address for the transaction. - -Must be a `string`. - -#### Return Value - -Returns the `Transaction` object. - -
- -### SetType - -Override the transaction type for the transaction. This will most likely be inferred automatically. - -```csharp -await tx.SetType(TransactionType.Legacy); -``` - -
- -#### type - -The transaction type for the transaction. - -Must be a `TransactionType`. - -```csharp -TransactionType -{ - LegacyTransaction = -1, - LegacyChainTransaction = -2, - Legacy = 0, - EIP1559 = 2 -} -``` - -#### Return Value - -Returns the `Transaction` object. - -
- -### SetGasPrice - -Set the gas price for the transaction (Legacy Transaction Type). - -```csharp -await tx.SetGasPrice("1000000000"); -``` - -
- -#### gasPrice - -The gas price for the transaction. - -Must be a `string`. - -#### Return Value - -Returns the `Transaction` object. - -
- -### SetChainId - -Override the chain id for the transaction. This will most likely be inferred automatically. - -```csharp -await tx.SetChainId("137"); -``` - -
- -#### chainId - -The chain id for the transaction. - -Must be a `string`. - -#### Return Value - -Returns the `Transaction` object. - -
- -### SetNonce - -Override the nonce for the transaction. This will most likely be inferred automatically. - -```csharp -await tx.SetNonce("123"); -``` - -
- -#### nonce - -The nonce for the transaction. - -Must be a `string`. - -#### Return Value - -Returns the `Transaction` object. - -
- -### SetArgs - -Override the arguments for the transaction. This may affect calldata. - -```csharp -await tx.SetArgs(new object[] { "0x1234567890", 0, 1 }); -``` - -
- -#### args - -The arguments for the transaction. - -Must be an `object[]`. - -#### Return Value - -Returns the `Transaction` object. - -
- -### GetGasPrice - -Get the gas price (for legacy transactions). - -```csharp -var gasPrice = await tx.GetGasPrice(); -``` - -
- -#### Return Value - -Returns the gas price in wei as a `BigInteger`. - -
- -### GetGasFees - -Get the max fee per gas and max priority fee per gas (for EIP-1559 transactions). - -```csharp -var gasFees = await tx.GetGasFees(); -``` - -
- -#### Return Value - -Returns the gas fees as a `GasPriceParameters` object. - -```csharp -{ - BigInteger MaxFeePerGas; - BigInteger MaxPriorityFeePerGas; -} -``` - -
- -### EstimateGasLimit - -Estimate the gas limit for the transaction. - -```csharp -var gasLimit = await tx.EstimateGasLimit(); -``` - -
- -#### Return Value - -Returns the gas limit as a `BigInteger`. - -
- -### EstimateGasCosts - -Roughly estimates the gas costs for this transaction. - -```csharp -var gasCosts = await tx.EstimateGasCosts(); -``` - -
- -#### Return Value - -Returns the gas costs as a `GasCosts` object. - -```csharp -{ - string ether; - BigInteger wei; -} -``` - -
- -### EstimateAndSetGasLimitAsync - -Estimate the gas limit for the transaction and set it. - -```csharp -await tx.EstimateAndSetGasLimitAsync(); -``` - -
- -#### minimumGas - -Optional parameter, defaults to 100,000. The minimum gas limit to be used. - -Must be a `string`. - -#### Return Value - -Returns the `Transaction` object. - -
- -### Simulate - -Attempts to simulate the transaction to find out if it will succeed in its current state. - -```csharp -var data = await tx.Simulate(); -``` - -
- -#### Return Value - -Returns the data as a `string`. - -
- -### Sign - -Signs the transaction asynchronously, if the wallet supports it. Useful for smart wallet user op delayed broadcasting through thirdweb Engine. Otherwise not recommended. - -```csharp -await tx.Sign(); -``` - -
- -#### Return Value - -Returns the signed transaction or hexified UserOperation as a `string`. - -
- -### Populate - -Populates the transaction with the necessary data to be sent. This is called automatically by the SDK when sending a transaction, but can be called manually if needed. - -There is no guarantee the gas and nonce values will be preserved when using Account Abstraction. - -```csharp -await tx.Populate(); -``` - -
- -#### Return Value - -Returns the updated `Transaction` object. - -
- -### Send - -Sends the transaction without waiting for it to be mined. Returns a transaction hash instead of the typical transaction receipt object. - -```csharp -var transactionHash = await tx.Send(); -``` - -
- -#### gasless - -Optional parameter, defaults to false. If true, the transaction will be sent through a configured relayer. Not to be confused with Smart Wallet Account Abstraction gasless features. - -Must be a `bool?`. - -#### Return Value - -Returns the transaction hash as a `string`. - -
- -### SendAndWaitForTransactionResult - -Sends the transaction and waits for it to be mined, returning a transaction receipt. - -```csharp -var transactionReceipt = await tx.SendAndWaitForTransactionResult(); -``` - -
- -#### gasless - -Optional parameter, defaults to false. If true, the transaction will be sent through a configured relayer. Not to be confused with Smart Wallet Account Abstraction gasless features. - -Must be a `bool?`. - -#### Return Value - -Returns the transaction receipt as a `TransactionReceipt`. - -
diff --git a/apps/portal/src/app/unity/v4/contracts/read/page.mdx b/apps/portal/src/app/unity/v4/contracts/read/page.mdx deleted file mode 100644 index ff949e03de3..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/read/page.mdx +++ /dev/null @@ -1,41 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Call read functions in Smart Contract | thirdweb Unity SDK", - description: - "Call read functions in your smart contract using thirdweb's Unity SDK.", -}); - -# Call Functions - -If the functionality of your smart contract does not come under one of thirdweb's supported interfaces, -use the generic `Read` method to retrieve the data, and store the value by awaiting the function call. - -## Usage - -```csharp -var data = await contract.Read("functionName"); -``` - -## Configuration - -### type (generic type) - -The type of data returned by the function call. This is used to convert the data returned by the function call into the correct type. -For example, if your function returns a `string`, you would use `string` as the [generic type](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/generics/generic-type-parameters). - -### functionName - -The name of the function, view, mapping, variable, etc. on your smart contract. - -Must be a `string`. - -### args - -The arguments to the function/variable, in the same order they are on your smart contract. - -If you provide too few or too many arguments, the function will throw an error. - -```csharp -var data = await contract.Read("functionName", "arg1", "arg2", ...); -``` diff --git a/apps/portal/src/app/unity/v4/contracts/write/page.mdx b/apps/portal/src/app/unity/v4/contracts/write/page.mdx deleted file mode 100644 index bd6cbdedc3c..00000000000 --- a/apps/portal/src/app/unity/v4/contracts/write/page.mdx +++ /dev/null @@ -1,51 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Call write functions in Smart Contract | thirdweb Unity SDK", - description: - "Call write functions in your smart contract using thirdweb's Unity SDK.", -}); - -# Call Functions - -If the functionality of your smart contract does not come under one of thirdweb's supported interfaces, use the generic `Write` method to call any function on the smart contract. - -The result of the transaction can be read by awaiting the result of the `Write`. - -The call will be awaited until the transaction is mined and the transaction receipt is available. - -## Usage - -```csharp -TransactionResult result = await contract.Write("functionName"); -``` - -## Configuration - -### functionName - -The name of the function, view, mapping, variable, etc. on your smart contract. - -Must be a `string`. - -### transactionOverrides - -Optional transaction overrides to change parameters like `value` or `gasLimit`. - -Must be of type `TransactionRequest` - -```csharp -TransactionResult result = await contract.Write("functionName", new TransactionRequest() { value = "100000", gasLimit = "100000" }); -``` - -### args - -The arguments to the function/variable, in the same order they are on your smart contract. - -If you provide too few or too many arguments, the function will throw an error. - -```csharp -BigInteger arg1 = 1234; -string arg2 = "hello world"; -TransactionResult result = await contract.Write("functionName", arg1, arg2, ...); -``` diff --git a/apps/portal/src/app/unity/v4/getting-started/page.mdx b/apps/portal/src/app/unity/v4/getting-started/page.mdx deleted file mode 100644 index 8ed060e76fc..00000000000 --- a/apps/portal/src/app/unity/v4/getting-started/page.mdx +++ /dev/null @@ -1,89 +0,0 @@ -import { - Callout, - Steps, - Step, - DocImage, - ArticleIconCard, - createMetadata, -} from "@doc"; -import prefabScene from "./scene-prefabs.png"; -import sdkInstaller from "./thirdweb-unity-sdk-setup.png"; -import { GraduationCap } from "lucide-react"; - -export const metadata = createMetadata({ - title: "Interacting with Contracts | thirdweb Unity SDK", - description: - "Learn how to interact with smart contracts using the thirdweb Unity SDK.", -}); - -# Getting Started - - - -We recommend using an API key to use thirdweb’s default infrastructure services with the SDK such as RPC, Storage and Account Abstraction. If you haven’t created a key yet you can do so for free from the [thirdweb dashboard](https://thirdweb.com/create-api-key). - - - -To get started, you'll need to [download and install the Unity Hub and Unity Editor](https://unity.com/download). - -We recommend using the 2022 LTS version of Unity. - -## Integration Steps - - - - - -Download the latest thirdweb Unity SDK package from the [releases page](https://github.com/thirdweb-dev/unity-sdk/releases). - - - - - -Drag and drop the package into your Unity project. Feel free to deselect common packages like Newtonsoft if you already have them. - - - - - -Play around in our example `Scene_Prefabs` to test out the SDK! - - - - - - - -Refer to the [Build Settings](https://github.com/thirdweb-dev/unity-sdk#build-instructions), pick a target platform and build your scene! - -We support all platforms. - - - - - -## Thirdweb Manager - -Now you're ready to use the SDK in your own scene! - -The only requirement is to have a [ThirdwebManager](/unity/thirdwebmanager) prefab present in your scene. - -Navigate to `Thirdweb` > `Core` > `Prefabs` > `ThirdwebManager` drag it into your scene. - -Alternatively, use our handy quickstart installer from the top level `Tools > Thirdweb` menu. - - - - - -The [ThirdwebManager](/unity/thirdwebmanager) represents your Thirdweb SDK singleton, providing a convenient interface for setting up and controlling SDK parameters directly from inspector. - -Access the SDK from anywhere in your code using `ThirdwebManager.Instance.SDK`. - - - - diff --git a/apps/portal/src/app/unity/v4/getting-started/scene-prefabs.png b/apps/portal/src/app/unity/v4/getting-started/scene-prefabs.png deleted file mode 100644 index 89f93935f4e..00000000000 Binary files a/apps/portal/src/app/unity/v4/getting-started/scene-prefabs.png and /dev/null differ diff --git a/apps/portal/src/app/unity/v4/getting-started/thirdweb-unity-sdk-setup.png b/apps/portal/src/app/unity/v4/getting-started/thirdweb-unity-sdk-setup.png deleted file mode 100644 index 8e362d83719..00000000000 Binary files a/apps/portal/src/app/unity/v4/getting-started/thirdweb-unity-sdk-setup.png and /dev/null differ diff --git a/apps/portal/src/app/unity/v4/layout.tsx b/apps/portal/src/app/unity/v4/layout.tsx deleted file mode 100644 index b9ca048c77e..00000000000 --- a/apps/portal/src/app/unity/v4/layout.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import { createMetadata } from "@/components/Document"; -import { DocLayout } from "@/components/Layouts/DocLayout"; -import { PlatformSelector } from "../../../components/others/PlatformSelector"; -import { sidebar } from "./sidebar"; - -export default async function Layout(props: { children: React.ReactNode }) { - return ( - -

Connect

- - - } - > - {props.children} -
- ); -} - -export const metadata = createMetadata({ - image: { - title: "thirdweb Unity SDK", - icon: "unity", - }, - title: "thirdweb Unity SDK", - description: - "Connect to user's wallets, interact with smart contracts, sign messages, and utilize common standards such as tokens, NFTs, marketplaces; all with built-in RPC URLs, IPFS gateways, and more.", -}); diff --git a/apps/portal/src/app/unity/v4/page.mdx b/apps/portal/src/app/unity/v4/page.mdx deleted file mode 100644 index 4ac2354faf3..00000000000 --- a/apps/portal/src/app/unity/v4/page.mdx +++ /dev/null @@ -1,79 +0,0 @@ -import { Callout, OpenSourceCard, ArticleIconCard, ArticleCard, Grid } from "@doc"; -import { GraduationCap } from "lucide-react"; - -# Unity SDK - - - -Unity SDK v5 live. Documentation for v5 is available [here](/unity/v5). - - - -A Unity SDK to build games with blockchain and web3 capabilities. - -Connect to user’s wallets, interact with smart contracts, sign -messages, and utilize common standards such as tokens, NFTs, marketplaces; all with built-in RPC URLs, IPFS gateways, and more. - - - -## Installation - -The Unity SDK is distributed as a [Unity Package](https://docs.unity3d.com/Manual/PackagesList.html). - -You can download the latest version of the SDK from our [GitHub releases page](https://github.com/thirdweb-dev/unity-sdk/releases). - -## Get Started - -Check out the [getting started](/unity/getting-started) guide to learn how to use the SDK in less than 2 minutes. - - - -## Examples - - - - - - - - - - - - - - - - diff --git a/apps/portal/src/app/unity/v4/pay/buywithcrypto/page.mdx b/apps/portal/src/app/unity/v4/pay/buywithcrypto/page.mdx deleted file mode 100644 index 77daa541e7b..00000000000 --- a/apps/portal/src/app/unity/v4/pay/buywithcrypto/page.mdx +++ /dev/null @@ -1,34 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "BuyWithCrypto | thirdweb Unity SDK", - description: "Send a quoted swap transaction.", -}); - -# BuyWithCrypto - -Send a quoted swap transaction. See [GetBuyWithCryptoQuote](/unity/pay/getbuywithcryptoquote) for more information on how to get a swap quote. - -## Usage - -```csharp -using Thirdweb.Pay; - -public async void Buy() -{ - string txHash = await ThirdwebManager.Instance.SDK.Pay.BuyWithCrypto(_quote); - ThirdwebDebug.Log($"Transaction hash: {txHash}"); -} -``` - -
- -#### BuyWithCryptoQuoteResult - -See [GetBuyWithCryptoQuote](/unity/pay/getbuywithcryptoquote) for more information on the `BuyWithCryptoQuoteResult` object. - -### Return Value - -`string`: The transaction hash of the swap transaction. - -
diff --git a/apps/portal/src/app/unity/v4/pay/buywithfiat/page.mdx b/apps/portal/src/app/unity/v4/pay/buywithfiat/page.mdx deleted file mode 100644 index 3521ffd68a0..00000000000 --- a/apps/portal/src/app/unity/v4/pay/buywithfiat/page.mdx +++ /dev/null @@ -1,34 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "BuyWithFiat | thirdweb Unity SDK", - description: "Trigger a crypto onramping flow.", -}); - -# BuyWithFiat - -Trigger a crypto onramping flow. See [GetBuyWithFiatQuote](/unity/pay/getbuywithfiatquote) for more information on how to get an onramp quote. - -## Usage - -```csharp -using Thirdweb.Pay; - -public async void Buy() -{ - string intentId = await ThirdwebManager.Instance.SDK.Pay.BuyWithFiat(_quote); - ThirdwebDebug.Log($"Intent ID: {intentId}"); -} -``` - -
- -#### BuyWithFiatQuoteResult - -See [GetBuyWithFiatQuote](/unity/pay/getbuywithfiatquote) for more information on the `BuyWithFiatQuoteResult` object. - -### Return Value - -`string`: The intent id that can be used to track the onramp status, as well as link additional Buy With Crypto transactions to this onramp flow. - -
diff --git a/apps/portal/src/app/unity/v4/pay/getbuyhistory/page.mdx b/apps/portal/src/app/unity/v4/pay/getbuyhistory/page.mdx deleted file mode 100644 index ea142c42795..00000000000 --- a/apps/portal/src/app/unity/v4/pay/getbuyhistory/page.mdx +++ /dev/null @@ -1,69 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "GetBuyHistory | thirdweb Unity SDK", - description: "Get buy history, supports cursor and pagination.", -}); - -# GetBuyHistory - -Get buy history for a specific wallet that executed a [Buy With Crypto](/unity/pay/buywithcrypto) or [Buy With Fiat](/unity/pay/buywithfiat) swap, supports cursor and pagination. - -## Usage - -```csharp -using Thirdweb.Pay; - -public async void GetBuyHistory() -{ - string connectedAddress = await ThirdwebManager.Instance.SDK.Wallet.GetAddress(); - - BuyHistoryResult history = await ThirdwebManager.Instance.SDK.Pay.GetBuyHistory(walletAddress: connectedAddress, start: 0, count: 1); - ThirdwebDebug.Log($"History: {JsonConvert.SerializeObject(history, Formatting.Indented)}"); - - BuyHistoryResult historyNext = await ThirdwebManager.Instance.SDK.Pay.GetBuyHistory(walletAddress: connectedAddress, start: 1, count: 10, cursor: history.NextCursor, pageSize: null); - ThirdwebDebug.Log($"History Next: {JsonConvert.SerializeObject(historyNext, Formatting.Indented)}"); -} -``` - -
- -#### Wallet Address - -`string`: The wallet address to get the swap history for. - -#### Start - -`int`: The start index of the swap history. - -#### Count - -`int`: The number of swaps to return. - -#### Cursor - -`string`: The cursor to get the next page of swap history. (Optional) - -#### Page Size - -`int`: The page size of the swap history. (Optional) - -### Return Value - -A `BuyHistoryResult` object containing the following properties: - -```csharp -string WalletAddress; // The wallet address. -List Page; // The buy history page. -string NextCursor; // The next cursor. -int PageSize; // The page size. -``` - -The `HistoryPage` object contains the following properties: - -```csharp -BuyWithCryptoStatusResult BuyWithCryptoStatus; // Swap status for Buy With Crypto transactions if any. -BuyWithFiatStatusResult BuyWithFiatStatus; // Swap status for Buy With Fiat transactions if any. -``` - -
diff --git a/apps/portal/src/app/unity/v4/pay/getbuywithcryptoquote/page.mdx b/apps/portal/src/app/unity/v4/pay/getbuywithcryptoquote/page.mdx deleted file mode 100644 index 91504286f81..00000000000 --- a/apps/portal/src/app/unity/v4/pay/getbuywithcryptoquote/page.mdx +++ /dev/null @@ -1,79 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "GetBuyWithCryptoQuote | thirdweb Unity SDK", - description: - "Get a quote containing a TransactionRequest for swapping any token pair.", -}); - -# GetBuyWithCryptoQuote - -Get a quote containing a TransactionRequest for swapping any token pair. - -## Usage - -```csharp -using Thirdweb.Pay; - -public async void GetQuote() -{ - string connectedAddress = await ThirdwebManager.Instance.SDK.Wallet.GetAddress(); - - BuyWithCryptoQuoteParams swapQuoteParams = new BuyWithCryptoQuoteParams( - fromAddress: connectedAddress, - fromChainId: 137, - fromTokenAddress: Utils.NativeTokenAddress; // MATIC - toTokenAddress: "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270"; // WMATIC - toAmount: "2" // I want to buy 2 WMATIC - ); - - BuyWithCryptoQuoteResult quote = await ThirdwebManager.Instance.SDK.Pay.GetBuyWithCryptoQuote(swapQuoteParams); - ThirdwebDebug.Log($"Quote: {JsonConvert.SerializeObject(quote, Formatting.Indented)}"); -} -``` - -
- -#### BuyWithCryptoQuoteParams - -A `BuyWithCryptoQuoteParams` object (with a helpful constructor) containing the following properties: - -```csharp -string fromAddress; // Address executing the swap -BigInteger? fromChainId; // Chain ID of the from token -string fromTokenAddress; // Address of the from token -string toTokenAddress; // Address of the to token -string fromAmount; // Optional, amount of from token -string fromAmountWei; // Optional, amount of from token in wei -BigInteger? toChainId; // Optional, chain ID of the to token -string toAmount; // Optional, amount of to token -string toAmountWei; // Optional, amount of to token in wei -int? maxSlippageBPS; // Optional, maximum slippage in basis points -string intentId; // Optional, intent identifier used to link status to a BuyWithFiat onramp flow if any -``` - -### Return Value - -A `BuyWithCryptoQuoteResult` object containing the following properties: - -```csharp -string quoteId; // Quote identifier -TransactionRequest transactionRequest; // TransactionRequest object for the swap -Approval approval; // Approval transaction details if needed -string fromAddress; // Address executing the swap -Token fromToken; // Token object of the from token -Token toToken; // Token object of the to token -string fromAmountWei; // Amount of from token in wei -string fromAmount; // Amount of from token -string toAmountMinWei; // Minimum amount of to token in wei -string toAmountMin; // Minimum amount of to token -string toAmountWei; // Amount of to token in wei -string toAmount; // Amount of to token -List paymentTokens; // Payment token details -List processingFees; // Processing fee details -Estimated estimated; // Estimated usd values, slippage, duration if available -int maxSlippageBPS; // Maximum slippage in basis points -string bridge // Bridge to be used if applicable -``` - -
diff --git a/apps/portal/src/app/unity/v4/pay/getbuywithcryptostatus/page.mdx b/apps/portal/src/app/unity/v4/pay/getbuywithcryptostatus/page.mdx deleted file mode 100644 index 4df9e905a2c..00000000000 --- a/apps/portal/src/app/unity/v4/pay/getbuywithcryptostatus/page.mdx +++ /dev/null @@ -1,49 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "GetBuyWithCryptoStatus | thirdweb Unity SDK", - description: "Get swap status for a transaction hash.", -}); - -# GetBuyWithCryptoStatus - -Get swap status for a transaction hash returned by [BuyWithCrypto](/unity/pay/buywithcrypto). - -## Usage - -```csharp -using Thirdweb.Pay; - -public async void GetStatus() -{ - BuyWithCryptoStatusResult status = await ThirdwebManager.Instance.SDK.Pay.GetBuyWithCryptoStatus(_txHash); - if (status.Status == SwapStatus.FAILED.ToString()) - ThirdwebDebug.LogWarning($"Failed! Reason: {status.FailureMessage}"); - - ThirdwebDebug.Log($"Status: {JsonConvert.SerializeObject(status, Formatting.Indented)}"); -} -``` - -
- -#### Transaction Hash - -`string`: The transaction hash of the swap transaction returned by [BuyWithCrypto](/unity/pay/buywithcrypto). - -### Return Value - -A `BuyWithCryptoStatusResult` object containing the following properties: - -```csharp -Quote quote; // The quote object containing the swap details. -string swapType; // The swap type, see SwapType enum. -TransactionDetails source; // The source transaction details. -TransactionDetails destination; // The destination transaction details. -string status; // The status of the swap, see SwapStatus enum. -string subStatus; // The sub status of the swap, see SwapSubStatus enum. -string fromAddress; // The source address. -string failureMessage; // The failure message if the swap failed. -string bridge // The bridge used for the swap if applicable. -``` - -
diff --git a/apps/portal/src/app/unity/v4/pay/getbuywithfiatcurrencies/page.mdx b/apps/portal/src/app/unity/v4/pay/getbuywithfiatcurrencies/page.mdx deleted file mode 100644 index db57b1ef3c9..00000000000 --- a/apps/portal/src/app/unity/v4/pay/getbuywithfiatcurrencies/page.mdx +++ /dev/null @@ -1,31 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "GetBuyWithFiatCurrencies | thirdweb Unity SDK", - description: "Get a list of supported fiat currencies.", -}); - -# GetBuyWithFiatCurrencies - -Returns a list of fiat currencies supported by Buy With Fiat that can be used when getting a quote using the [GetBuyWithFiatQuote](/unity/pay/getbuywithfiatquote) API. - -## Usage - -```csharp -using Thirdweb.Pay; - -[ContextMenu("Get Supported Currencies")] -public async void GetSupportedCurrencies() -{ - List currencies = await ThirdwebManager.Instance.SDK.Pay.GetBuyWithFiatCurrencies(); - ThirdwebDebug.Log($"Supported Currencies: {JsonConvert.SerializeObject(currencies, Formatting.Indented)}"); -} -``` - -
- -### Return Value - -`List`: A list of supported fiat currencies. - -
diff --git a/apps/portal/src/app/unity/v4/pay/getbuywithfiatquote/page.mdx b/apps/portal/src/app/unity/v4/pay/getbuywithfiatquote/page.mdx deleted file mode 100644 index a6b7059a174..00000000000 --- a/apps/portal/src/app/unity/v4/pay/getbuywithfiatquote/page.mdx +++ /dev/null @@ -1,73 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "GetBuyWithFiatQuote | thirdweb Unity SDK", - description: - "Get a quote containing an intent id and onramp link for a fiat to crypto swap.", -}); - -# GetBuyWithFiatQuote - -Get a quote containing an intent id and onramp link for a fiat to crypto swap. - -## Usage - -```csharp -using Thirdweb.Pay; - -public async void GetQuote() -{ - string connectedAddress = await ThirdwebManager.Instance.SDK.Wallet.GetAddress(); - - BuyWithFiatQuoteParams fiatQuoteParams = new BuyWithFiatQuoteParams( - fromCurrencySymbol: "USD", // US Dollar - toAddress: connectedAddress, // Receiver address - toChainId: "137", toTokenAddress: Utils.NativeTokenAddress, // MATIC - toAmount: "20" // I want to buy 20 MATIC - ); - - BuyWithFiatQuoteResult quote = await ThirdwebManager.Instance.SDK.Pay.GetBuyWithFiatQuote(fiatQuoteParams); - ThirdwebDebug.Log($"Quote: {JsonConvert.SerializeObject(quote, Formatting.Indented)}"); -} -``` - -
- -#### BuyWithFiatQuoteParams - -A `BuyWithFiatQuoteParams` object (with a helpful constructor) containing the following properties: - -```csharp -string fromCurrencySymbol; // Currency symbol of the from token -string toAddress; // Address executing the swap -string toChainId; // Chain ID of the to token -string toTokenAddress; // Address of the to token -string fromAmount; // Optional, amount of from token -string fromAmountUnits; // Optional, amount of from token in units -string toAmount; // Optional, amount of to token -string toAmountWei; // Optional, amount of to token in wei -double? maxSlippageBPS; // Optional, maximum slippage in basis points -bool isTestMode; // Optional, enters test mode onramp flow, defaults to false -``` - -### Return Value - -A `BuyWithFiatQuoteResult` object containing the following properties: - -```csharp -string IntentId; // Intent identifier used to track the onramp status -string ToAddress; // Address to receive the tokens -OnRampCurrency FromCurrency; // OnRamp Currency details -OnRampCurrency FromCurrencyWithFees; // OnRamp Currency details with fees -OnRampToken OnRampToken; // OnRamp Token details -string Provider; // Onramp provider -Token ToToken; // Token details of the to token -string EstimatedToAmountMinWei; // Estimated to token amount received min in wei -string EstimatedToAmountMin; // Estimated to token amount received min -List ProcessingFees; // Processing fee details -string EstimatedDurationSeconds; // Estimated onramp duration in seconds -double MaxSlippageBPS; // Maximum slippage in basis points -string OnRampLink; // Onramp link that will be used to trigger the onramp flow -``` - -
diff --git a/apps/portal/src/app/unity/v4/pay/getbuywithfiatstatus/page.mdx b/apps/portal/src/app/unity/v4/pay/getbuywithfiatstatus/page.mdx deleted file mode 100644 index 0c63b9b6b3c..00000000000 --- a/apps/portal/src/app/unity/v4/pay/getbuywithfiatstatus/page.mdx +++ /dev/null @@ -1,49 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "GetBuyWithFiatStatus | thirdweb Unity SDK", - description: "Get swap status for a transaction hash.", -}); - -# GetBuyWithFiatStatus - -Get onramp status for an intent id returned by [BuyWithFiat](/unity/pay/buywithfiat). - -## Usage - -```csharp -using Thirdweb.Pay; - -public async void GetStatus() -{ - var status = await ThirdwebManager.Instance.SDK.Pay.GetBuyWithFiatStatus(_intentId); - if (status.Status == OnRampStatus.PAYMENT_FAILED.ToString() || status.Status == OnRampStatus.ON_RAMP_TRANSFER_FAILED.ToString()) - ThirdwebDebug.LogWarning($"Failed! Reason: {status.FailureMessage}"); - - ThirdwebDebug.Log($"Status: {JsonConvert.SerializeObject(status, Formatting.Indented)}"); -} -``` - -In some cases, you may onramp to an intermediary token that requires an additional step, in these cases the `CRYPTO_SWAP_REQUIRED` status indicates that the onramp transfer has completed and you may now use the intent id to trigger a [BuyWithCrypto](/unity/pay/buywithcrypto) transaction to get to your destination token. The flow is the same for [GetBuyWithCryptoQuote](/unity/pay/getbuywithcryptoquote), though you may now pass the intent id as a parameter to link both statuses together. - -
- -#### Intent ID - -`string`: The intent id of the onramp flow triggered by [BuyWithFiat](/unity/pay/buywithfiat). - -### Return Value - -A `BuyWithFiatStatusResult` object containing the following properties: - -```csharp -string IntentId; // Intent identifier to track onramp flow status -string Status; // Status of the onramp flow -string ToAddress; // Address to receive the tokens -OnRampQuote Quote; // OnRamp Quote details -TransactionDetails Source; // Source transaction details -TransactionDetails Destination; // Destination transaction details -string FailureMessage; // Failure message if any -``` - -
diff --git a/apps/portal/src/app/unity/v4/sidebar.tsx b/apps/portal/src/app/unity/v4/sidebar.tsx deleted file mode 100644 index 11cf33219d7..00000000000 --- a/apps/portal/src/app/unity/v4/sidebar.tsx +++ /dev/null @@ -1,425 +0,0 @@ -import type { SideBar } from "@/components/Layouts/DocLayout"; -import type { SidebarLink } from "@/components/others/Sidebar"; -import { ZapIcon } from "lucide-react"; - -const walletProviders: SidebarLink = (() => { - const parentSlug = "/unity/wallets/providers"; - return { - name: "Wallet Providers", - links: [ - { - name: "In-App Wallet", - href: `${parentSlug}/in-app-wallet`, - }, - { - name: "Account Abstraction", - href: `${parentSlug}/account-abstraction`, - }, - { - name: "Local Wallet", - href: `${parentSlug}/local-wallet`, - }, - { - name: "MetaMask Wallet", - href: `${parentSlug}/metamask`, - }, - { - name: "Coinbase Wallet", - href: `${parentSlug}/coinbase`, - }, - { - name: "WalletConnect", - href: `${parentSlug}/walletconnect`, - }, - { - name: "HyperPlay", - href: `${parentSlug}/hyperplay`, - }, - { - name: "Rabby", - href: `${parentSlug}/rabby`, - }, - ], - }; -})(); - -const walletActions: SidebarLink = (() => { - const parentSlug = "/unity/wallets/actions"; - return { - name: "Wallet Actions", - links: [ - { - name: "Connect", - href: `${parentSlug}/connect`, - }, - { - name: "Disconnect", - href: `${parentSlug}/disconnect`, - }, - { - name: "Authenticate", - href: `${parentSlug}/authenticate`, - }, - { - name: "GetAddress", - href: `${parentSlug}/getaddress`, - }, - { - name: "GetBalance", - href: `${parentSlug}/getbalance`, - }, - { - name: "GetChainID", - href: `${parentSlug}/getchainid`, - }, - { - name: "IsConnected", - href: `${parentSlug}/isconnected`, - }, - { - name: "RecoverAddress", - href: `${parentSlug}/recoveraddress`, - }, - { - name: "SendRawTransaction", - href: `${parentSlug}/sendrawtransaction`, - }, - { - name: "ExecuteRawTransaction", - href: `${parentSlug}/executerawtransaction`, - }, - { - name: "Sign", - href: `${parentSlug}/sign`, - }, - { - name: "SwitchNetwork", - href: `${parentSlug}/switchnetwork`, - }, - { - name: "Transfer", - href: `${parentSlug}/transfer`, - }, - { - name: "AddAdmin", - href: `${parentSlug}/addadmin`, - }, - { - name: "RemoveAdmin", - href: `${parentSlug}/removeadmin`, - }, - { - name: "CreateSessionKey", - href: `${parentSlug}/createsessionkey`, - }, - { - name: "RevokeSessionKey", - href: `${parentSlug}/revokesessionkey`, - }, - { - name: "GetAllActiveSigners", - href: `${parentSlug}/getallactivesigners`, - }, - { - name: "GetEmail", - href: `${parentSlug}/getemail`, - }, - { - name: "GetNonce", - href: `${parentSlug}/getnonce`, - }, - { - name: "GetSignerAddress", - href: `${parentSlug}/getsigneraddress`, - }, - { - name: "SignTypedDataV4", - href: `${parentSlug}/signtypeddatav4`, - }, - ], - }; -})(); - -const wallets: SidebarLink = (() => { - const parentSlug = "/unity/wallets"; - return { - name: "Wallets", - isCollapsible: false, - links: [ - { name: "Prefab", href: `${parentSlug}/prefab` }, - walletProviders, - walletActions, - { name: "Submit Wallet", href: `${parentSlug}/submission` }, - ], - }; -})(); - -const contractEvents: SidebarLink = (() => { - const parentSlug = "/unity/contracts/events"; - return { - name: "Events", - links: [ - { - name: "Get", - href: `${parentSlug}/get`, - }, - { - name: "Get All", - href: `${parentSlug}/getall`, - }, - { - name: "ListenToAll", - href: `${parentSlug}/listentoall`, - }, - { - name: "RemoveAllListeners", - href: `${parentSlug}/removealllisteners`, - }, - ], - }; -})(); - -const contract20: SidebarLink = (() => { - const parentSlug = "/unity/contracts/erc20"; - return { - name: "ERC20", - links: [ - { - name: "ERC20", - href: `${parentSlug}/erc20`, - }, - { - name: "ERC20Burnable", - href: `${parentSlug}/erc20burnable`, - }, - { - name: "ERC20ClaimConditions", - href: `${parentSlug}/erc20claimconditions`, - }, - { - name: "ERC20Mintable", - href: `${parentSlug}/erc20mintable`, - }, - { - name: "ERC20SignatureMintable", - href: `${parentSlug}/erc20signaturemintable`, - }, - ], - }; -})(); - -const contract721: SidebarLink = (() => { - const parentSlug = "/unity/contracts/erc721"; - return { - name: "ERC721", - links: [ - { - name: "ERC721", - href: `${parentSlug}/erc721`, - }, - { - name: "ERC721Burnable", - href: `${parentSlug}/erc721burnable`, - }, - { - name: "ERC721ClaimConditions", - href: `${parentSlug}/erc721claimconditions`, - }, - { - name: "ERC721Enumerable", - href: `${parentSlug}/erc721enumerable`, - }, - { - name: "ERC721Mintable", - href: `${parentSlug}/erc721mintable`, - }, - { - name: "ERC721SignatureMintable", - href: `${parentSlug}/erc721signaturemintable`, - }, - - { - name: "ERC721Supply", - href: `${parentSlug}/erc721supply`, - }, - ], - }; -})(); - -const contract1155: SidebarLink = (() => { - const parentSlug = "/unity/contracts/erc1155"; - return { - name: "ERC1155", - links: [ - { - name: "ERC1155", - href: `${parentSlug}/erc1155`, - }, - { - name: "ERC1155Burnable", - href: `${parentSlug}/erc1155burnable`, - }, - { - name: "ERC1155ClaimConditions", - href: `${parentSlug}/erc1155claimconditions`, - }, - { - name: "ERC1155Enumerable", - href: `${parentSlug}/erc1155enumerable`, - }, - { - name: "ERC1155Mintable", - href: `${parentSlug}/erc1155mintable`, - }, - { - name: "ERC1155SignatureMintable", - href: `${parentSlug}/erc1155signaturemintable`, - }, - ], - }; -})(); - -const blocks: SidebarLink = { - name: "Blocks", - links: [ - { - name: "Get Block", - href: "/unity/blocks/getblock", - }, - { - name: "Get Block With Transactions", - href: "/unity/blocks/getblockwithtransactions", - }, - { - name: "Get Latest Block Number", - href: "/unity/blocks/getlatestblocknumber", - }, - { - name: "Get Latest Block Timestamp", - href: "/unity/blocks/getlatestblocktimestamp", - }, - ], -}; - -const contracts: SidebarLink = { - name: "Blockchain API", - isCollapsible: false, - links: [ - { name: "Overview", href: "/unity/contracts" }, - { - name: "Get Contract", - href: "/unity/contracts/get", - }, - { - name: "Read Contract", - href: "/unity/contracts/read", - }, - { - name: "Write Contract", - href: "/unity/contracts/write", - }, - { - name: "Transaction Builder", - href: "/unity/contracts/prepare", - }, - contract20, - contract721, - contract1155, - { - name: "Marketplace", - href: "/unity/contracts/marketplace", - }, - { - name: "Pack", - href: "/unity/contracts/pack", - }, - contractEvents, - blocks, - ], -}; - -const pay: SidebarLink = { - name: "Pay", - isCollapsible: false, - links: [ - { - name: "Buy With Fiat", - links: [ - { - name: "Get Buy With Fiat Quote", - href: "/unity/pay/getbuywithfiatquote", - }, - { - name: "Buy With Fiat", - href: "/unity/pay/buywithfiat", - }, - { - name: "Get Buy With Fiat Status", - href: "/unity/pay/getbuywithfiatstatus", - }, - { - name: "Get Buy With Fiat Currencies", - href: "/unity/pay/getbuywithfiatcurrencies", - }, - ], - }, - { - name: "Buy With Crypto", - links: [ - { - name: "Get Buy With Crypto Quote", - href: "/unity/pay/getbuywithcryptoquote", - }, - { - name: "Buy With Crypto", - href: "/unity/pay/buywithcrypto", - }, - { - name: "Get Buy With Crypto Status", - href: "/unity/pay/getbuywithcryptostatus", - }, - ], - }, - { - name: "Get Buy History", - href: "/unity/pay/getbuyhistory", - }, - ], -}; - -export const sidebar: SideBar = { - name: "Unity SDK", - links: [ - { separator: true }, - { - name: "Overview", - href: "/unity", - }, - { - name: "Getting Started", - href: "/unity/getting-started", - icon: , - }, - { - name: "Core", - isCollapsible: false, - links: [ - { - name: "Thirdweb Manager", - href: "/unity/thirdwebmanager", - }, - { - name: "Storage", - href: "/unity/storage", - }, - ], - }, - wallets, - pay, - contracts, - // { - // name: "Full Reference", - // href: "/references/unity", - // }, - ], -}; diff --git a/apps/portal/src/app/unity/v4/storage/page.mdx b/apps/portal/src/app/unity/v4/storage/page.mdx deleted file mode 100644 index 851237dc482..00000000000 --- a/apps/portal/src/app/unity/v4/storage/page.mdx +++ /dev/null @@ -1,92 +0,0 @@ -import { Details, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Storage | thirdweb Unity SDK", - description: "Download an image from a URL or IPFS URI into a Sprite object.", -}); - -# Storage - -## DownloadImage - -Download an image from a URL or IPFS URI into a `Sprite` object. - -```csharp -var data = await sdk.Storage.DownloadImage("{{image_url}}"); -``` - -
- -#### imageUri - -An IPFS URI or a URL that points to an image. - -Must be a `string`. - -### Return Value - -Returns a [Sprite](https://docs.unity3d.com/Manual/Sprites.html). - -
- -## DownloadText - -Download text data such as JSON from a URL or IPFS URI. - -```csharp -var data = await sdk.Storage.DownloadText("{{text_uri}}"); -``` - -
- -#### Data type (generic type) - -The type of data to return. Any type that can be deserialized with `JsonConvert.DeserializeObject`. - -#### textUri - -An IPFS URI or a URL that points to data. - -Must be a `string`. - -### Return Value - -Returns the data as the specified type. - -
- -## UploadFromPath - -Upload and pin data in IPFS using the path to a file. - -```csharp -var data = await sdk.Storage.UploadFromPath("{{path/to-file}}"); -``` - -
- -#### path - -The path to the file to upload. - -Must be a `string`. - -
- -## UploadText - -Upload raw data to IPFS. - -```csharp -var data = await sdk.Storage.UploadText("Hello world!"); -``` - -
- -#### text - -The text to upload. - -Must be a `string`. - -
diff --git a/apps/portal/src/app/unity/v4/thirdwebmanager/page.mdx b/apps/portal/src/app/unity/v4/thirdwebmanager/page.mdx deleted file mode 100644 index ac269071391..00000000000 --- a/apps/portal/src/app/unity/v4/thirdwebmanager/page.mdx +++ /dev/null @@ -1,94 +0,0 @@ -import { DocImage, createMetadata } from "@doc"; -import thirdwebManager from "./thirdwebmanager.png"; - -export const metadata = createMetadata({ - title: "Thirdweb Manager | thirdweb Unity SDK", - description: - "ThirdwebManager is a MonoBehaviour that provides a convenient and customizable way to instantiate and manage the ThirdwebSDK. Add the prefab to your scene and the SDK will persist throughout your game's lifecycle", -}); - -# Thirdweb Manager - -The `ThirdwebManager` is a MonoBehaviour that provides a convenient and customizable way to instantiate and manage the ThirdwebSDK. Add the prefab to your scene and the SDK will persist throughout your game's lifecycle. It can be found at `Thirdweb/Core/Prefabs/ThirdwebManager`. - - - -## Configuration - -Configure `ThirdwebManager` through the Unity Inspector window. - -Below is a list of all the settings you can adjust. - -### General Settings - -This section involves the basic blockchain configurations. Adjust the following settings: - -- `Active Chain`: The identifier for the default blockchain to use. -- `Supported Chains`: A list of all blockchains your game supports. For each chain, provide an identifier, a chain ID, and optionally, an RPC override. -- `Client ID`: Thirdweb [API Key](https://thirdweb.com/create-api-key). Used for default thirdweb services such as Storage and Account Abstraction. -- `Bundle ID Override`: Optional override for the bundle ID used by thirdweb services. Defaults to Application Identifier and can be fetched using `Utils.GetBundleId()`. -- `Initialize On Awake`: Whether the SDK should initialize on awake or not. If not, you can call `ThirdwebManager.Instance.Initialize("chain-identifier")` to initialize it manually. -- `Show Debug Logs`: Whether to show thirdweb sdk debug logs. -- `Thirdweb Config`: SciptableObject for additional Thirdweb configuration. Generated automatically. Mainly used to set custom schemes for google login. - -### App Metadata - -This section lets you define how your app appears in wallet providers like Metamask, WalletConnect, etc. Modify the following fields: - -- `App Name`: The name of your application. -- `App Description`: A brief description of your app. -- `App Icons`: Your app's icons. -- `App URL`: The URL for your app. - -### Storage Options - -Here, you can specify the URL for your IPFS gateway, which stores your assets in a decentralized way. Edit the following: - -- `Storage IPFS Gateway Url`: The URL for your IPFS gateway. - -### Gasless Relayer Options - -In this section, configure settings for your thirdweb [Engine Relayer](https://portal.thirdweb.com/engine/features/relayers), a service that handles gasless transactions for your users. - -- `Relayer Url`: The URL for your engine relayer, can be found on the thirdweb dashboard. -- `Forwarder Address`: Override the default thirdweb forwarder contract address. (Optional) -- `Forwarder Domain Override` and `Forwarder Version Override`: Overrides for the forwarder domain and version. (Optional) - -### Wallet Connect Options - -Here, provide your project ID for WalletConnect: - -- `WalletConnect Project ID`: Your project ID for WalletConnect. -- `WalletConnect Enable Explorer`: WalletConnect WebGL QR Modal: enable recommended explorer wallet buttons. -- `WalletConnect Explorer RecommendedWallet Ids`: WalletConnect WebGL QR Modal: wallets to display in the WC modal (https://walletconnect.com/explorer). -- `WalletConnect Wallet Images`: WalletConnect WebGL QR Modal: mapping of wallet id to wallet image, useful for custom wallets or overrides. -- `WalletConnect Desktop Wallets`: WalletConnect WebGL QR Modal: custom desktop wallets to display. -- `WalletConnect Mobile Wallets`: WalletConnect WebGL QR Modal: custom mobile wallets to display. -- `WalletConnect Theme Mode`: WalletConnect Theme Mode (light or dark, leave empty for system defaults). - -### Smart Account Options - -These settings are required to set up a smart account. - -- `Factory Contract Address`: The address of your account factory contract. -- `Thirdweb API Key`: Your API key for Thirdweb. -- `Gasless`: Whether or not you want to use gasless transactions. Note that deployment and approval step when using ERC20Paymasters will be gasless as well if this is on. -- `ERC20 Paymaster Address`: If you want to use an ERC20 Paymaster, you must provide the paymaster contract address here. -- `ERC20 Token Address`: If using an ERC20 Paymaster, you must provide the associated ERC20 Token Address here. -- `Bundler Url`, `Paymaster Url`, `EntryPoint Address`: Optional overrides for setting up your smart account. - -### Native Prefabs (Danger Zone) - -This section allows you to provide GameObject prefabs for native wallet providers, which will be instantiated at runtime. - -- `WalletConnect Prefab`: The prefab for WalletConnect's customizable UI/behavior. -- `Metamask Prefab`: The prefab for Metamask's customizable UI/behavior. -- `InAppWallet Prefab`: The prefab for InAppWallet's customizable UI/behavior. - -## Accessing the SDK - -Once `ThirdwebManager` is set up and the game starts, it will instantiate the Thirdweb SDK based on your settings. You can access the instantiated SDK from other scripts using: - -```csharp -var sdk = ThirdwebManager.Instance.SDK; -``` diff --git a/apps/portal/src/app/unity/v4/thirdwebmanager/thirdwebmanager.png b/apps/portal/src/app/unity/v4/thirdwebmanager/thirdwebmanager.png deleted file mode 100644 index d4adf8437e6..00000000000 Binary files a/apps/portal/src/app/unity/v4/thirdwebmanager/thirdwebmanager.png and /dev/null differ diff --git a/apps/portal/src/app/unity/v4/wallets/actions/addadmin/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/addadmin/page.mdx deleted file mode 100644 index 2feafb260aa..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/addadmin/page.mdx +++ /dev/null @@ -1,28 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.AddAdmin | thirdweb Unity SDK", - description: "Add an admin to the connected Smart Wallet", -}); - -# AddAdmin - -For Smart Wallets only, add an admin to the connected Smart Wallet. - -## Usage - -```csharp -var txResult = await sdk.Wallet.AddAdmin("0xadmin"); -``` - -## Configuration - -### admin - -The address of the admin to add. - -Must be a `string`. - -### Return Value - -Returns a `TransactionResult` object. diff --git a/apps/portal/src/app/unity/v4/wallets/actions/authenticate/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/authenticate/page.mdx deleted file mode 100644 index 9b9db66eaa3..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/authenticate/page.mdx +++ /dev/null @@ -1,43 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Authenticate | thirdweb Unity SDK", - description: - "Authenticate the user by signing a payload that can be used to securely identify users.", -}); - -# AuthenticateAndLoginServerSide - -Using [Auth](/auth), authenticate the user by signing a payload that can be used to securely identify users. - -## Usage - -```csharp -string token = await sdk.Wallet.AuthenticateAndLoginServerSide("domain", 1); -``` - -## Configuration - -### domain - -The domain you used in your authentication backend. - -[Learn more about how auth works](/auth/how-auth-works/sign-in-with-wallet). - -### chainId - -The chain ID of the blockchain you want to authenticate with. - -### authPayloadPath (optional) - -The payload generation endpoint in your backend. Defaults to `/auth/payload`. - -### authLoginPath (optional) - -The login endpoint in your backend. Defaults to `/auth/login`. - -Must be a `string`. - -## Return Value - -A `string` representing the final post-login auth token returned by the server. diff --git a/apps/portal/src/app/unity/v4/wallets/actions/connect/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/connect/page.mdx deleted file mode 100644 index e203a91ed8d..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/connect/page.mdx +++ /dev/null @@ -1,102 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.Connect | thirdweb Unity SDK", - description: "Connect a user's wallet to your game", -}); - -# Connect - -Connect a user's wallet to your game. - -## Usage - -```csharp -using Thirdweb; - -public async void ConnectWallet() -{ - // Reference to your Thirdweb SDK - var sdk = ThirdwebManager.Instance.SDK; - - // Configure the connection - var connection = new WalletConnection( - provider: WalletProvider.Metamask, // The wallet provider you want to connect to (Required) - chainId: 5 // The chain you want to connect to (Required) - ); - - // Connect the wallet - string address = await sdk.Wallet.Connect(connection); -} -``` - -## Configuration - -### walletConnection - -Your Wallet Connection configuration, this is an object that can be used with any of the available providers. - -#### provider - -Available providers: - -- `WalletProvider.Coinbase`: [Coinbase Wallet](/unity/wallets/providers/coinbase) -- `WalletProvider.MetaMask`: [MetaMask](/unity/wallets/providers/metamask) -- `WalletProvider.WalletConnect`: [WalletConnect](/unity/wallets/providers/walletconnect) -- `WalletProvider.LocalWallet`: [Local Wallet](/unity/wallets/providers/local-wallet) -- `WalletProvider.SmartWallet`: [Smart Wallet](/unity/wallets/providers/account-abstraction) -- `WalletProvider.Hyperplay`: [Hyperplay](/unity/wallets/providers/hyperplay) -- `WalletProvider.InAppWallet`: [In-App Wallet](/unity/wallets/providers/in-app-wallet) -- `WalletProvider.Rabby`: [Rabby](/unity/wallets/providers/rabby) - -#### chainId - -The ID of the blockchain to switch to upon connection. - -Must be a `BigInteger` (or `int`). - -#### password - -Optional password for encrypted [Local Wallet](/unity/wallets/providers/local-wallet) account, uses auto-generated password if left empty. - -Must be a `string`. - -#### email - -Optional email for default [In-App Wallet](/unity/wallets/providers/in-app-wallet) email flow. - -Must be a `string`. - -### phoneNumber - -# Optional phone number for default [In-App Wallet](/unity/wallets/providers/embedded-wallet) phone flow. - -Optional email for default [In-App Wallet](/unity/wallets/providers/embedded-wallet) email flow. - -Must be a `string`. - -#### personalWallet - -Admin signer to use with [Smart Account](/unity/wallets/providers/smart-wallet) as your main provider. - -Must be a `WalletProvider`. - -### smartWalletAccountOverride - -Optionally choose to connect to a smart account the personal wallet is not an admin of. Useful for advanced session key use cases. - -Must be a `string`. - -#### authOptions - -[In-App Wallet](/unity/wallets/providers/embedded-wallet) Authentication Options. - -Must be an `AuthOptions` object. - -## Return Value - -Returns a `string` representing the connected wallet address with a valid checksum. - -```csharp -string; -``` diff --git a/apps/portal/src/app/unity/v4/wallets/actions/createsessionkey/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/createsessionkey/page.mdx deleted file mode 100644 index 62a4c37bbd8..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/createsessionkey/page.mdx +++ /dev/null @@ -1,87 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.CreateSessionKey | thirdweb Unity SDK", - description: "Grants restricted Smart Wallet access to a signer.", -}); - -# CreateSessionKey - -For Smart Wallets only, grants restricted Smart Wallet access to a signer. - -Extremely useful in many situations, see the [Smart Wallets](/unity/wallets/providers/account-abstraction) documentation for more information. - -## Usage - -See `Prefab_SmartWallet.cs` for a full example. - -```csharp -try -{ - // Create session key granting restricted smart wallet access to the local wallet for 1 day - var contractsAllowedForInteraction = new List() { "0x450b943729Ddba196Ab58b589Cea545551DF71CC" }; // contracts the local wallet is allowed to interact with - var permissionEndTimestamp = Utils.GetUnixTimeStampNow() + 86400; // 1 day from now - var result = await ThirdwebManager.Instance.SDK.Wallet.CreateSessionKey( - signerAddress: randomAddress, - approvedTargets: contractsAllowedForInteraction, - nativeTokenLimitPerTransactionInWei: "0", - permissionStartTimestamp: "0", - permissionEndTimestamp: permissionEndTimestamp.ToString(), - reqValidityStartTimestamp: "0", - reqValidityEndTimestamp: Utils.GetUnixTimeStampIn10Years().ToString() - ); - Debugger.Instance.Log("[CreateSessionKey] Sucess", result.ToString()); -} -catch (System.Exception e) -{ - Debugger.Instance.Log("[CreateSessionKey] Error", e.Message); -} -``` - -## Configuration - -### signerAddress - -The address of the signer to add. - -Must be a `string`. - -### approvedTargets - -A list of contract addresses that the signer is approved to interact with. - -Must be a `List`. - -### nativeTokenLimitPerTransactionInWei - -The maximum amount of native token that can be transferred in a single transaction. - -Must be a `string`. - -### permissionStartTimestamp - -The UNIX timestamp of when the signer's permissions start. - -Must be a `string`. - -### permissionEndTimestamp - -The UNIX timestamp of when the signer's permissions end. - -Must be a `string`. - -### reqValidityStartTimestamp - -The UNIX timestamp of when the signer's permissions request validity starts. - -Must be a `string`. - -### reqValidityEndTimestamp - -The UNIX timestamp of when the signer's permissions request validity ends. - -Must be a `string`. - -## Return Value - -Returns a `TransactionResult` object. diff --git a/apps/portal/src/app/unity/v4/wallets/actions/disconnect/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/disconnect/page.mdx deleted file mode 100644 index e1d2f69b38e..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/disconnect/page.mdx +++ /dev/null @@ -1,24 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.Disconnect | thirdweb Unity SDK", - description: "Disconnect a user's wallet from your game", -}); - -# Disconnect - -Disconnect a user's wallet from your game, and optionally end the session if applicable. - -## Usage - -```csharp -await sdk.Wallet.Disconnect(); -``` - -## Configuration - -### endSession - -With some Wallet Providers, the concept of a session exists. Set this optional parameter to `true` to end the session when disconnecting. - -Must be a `bool`. diff --git a/apps/portal/src/app/unity/v4/wallets/actions/executerawtransaction/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/executerawtransaction/page.mdx deleted file mode 100644 index 698da110d37..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/executerawtransaction/page.mdx +++ /dev/null @@ -1,33 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.ExecuteRawTransaction | thirdweb Unity SDK", - description: - "Executes a raw transaction to the blockchain from the connected wallet, and returns a receipt.", -}); - -# SendRawTransaction - -Executes a raw transaction to the blockchain from the connected wallet, and returns a receipt. - -## Usage - -Create a `TransactionRequest` struct with the raw transaction data, and pass it to this method. - -The method will return the transaction receipt once the transaction is mined. - -```csharp -var data = await sdk.Wallet.ExecuteRawTransaction(new TransactionRequest() -{ - from = "{{wallet_address}}", // The address the transaction is sent from. - to = "{{wallet_address}}", // The address the transaction is directed to. - data = "{{data}}", // The data to send with the transaction - value = "{{value}}", // send native tokens with the contract call (wei) - gasLimit = "{{gasLimit}}", // The maximum amount of gas this transaction is permitted to use. - gasPrice = "{{gaspPrice}}", // The price (in wei) per unit of gas this transaction will pay. -}); -``` - -### Returns - -`TransactionReceipt`: The transaction receipt. diff --git a/apps/portal/src/app/unity/v4/wallets/actions/getaddress/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/getaddress/page.mdx deleted file mode 100644 index c91e5d785b1..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/getaddress/page.mdx +++ /dev/null @@ -1,26 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.GetAddress | thirdweb Unity SDK", - description: "Get the address of the currently connected wallet", -}); - -# GetAddress - -Get the address of the currently connected wallet. - -## Usage - -Call this method to get the address of the connected wallet. - -```csharp -string address = await sdk.Wallet.GetAddress(); -``` - -## Return Value - -Returns the wallet address as a string. - -```csharp -string; -``` diff --git a/apps/portal/src/app/unity/v4/wallets/actions/getallactivesigners/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/getallactivesigners/page.mdx deleted file mode 100644 index e64e9148999..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/getallactivesigners/page.mdx +++ /dev/null @@ -1,44 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.GetAllActiveSigners | thirdweb Unity SDK", - description: - "Gets all active signers available from the connected Smart Wallet.", -}); - -# GetAllActiveSigners - -For Smart Wallets only, gets all active signers. - -Useful for checking if session keys need to be renewed or removed. - -Will throw if account is not deployed. - -## Usage - -```csharp -var activeSigners = await sdk.Wallet.GetAllActiveSigners(); -``` - -## Configuration - -## Return Value - -Returns a `List` object. - -```csharp -public struct SignerWithPermissions -{ - public bool? isAdmin; - public string signer; - public SignerPermissions permissions; -} - -public struct SignerPermissions -{ - public string startDate; - public string expirationDate; - public string nativeTokenLimitPerTransaction; - public List approvedCallTargets; -} -``` diff --git a/apps/portal/src/app/unity/v4/wallets/actions/getbalance/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/getbalance/page.mdx deleted file mode 100644 index adeb6254c97..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/getbalance/page.mdx +++ /dev/null @@ -1,47 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.GetBalance | thirdweb Unity SDK", - description: - "Fetch the native or ERC20 token balance of the connected wallet", -}); - -# GetBalance - -Fetch the native or ERC20 token balance of the connected wallet. - -## Usage - -Use this method to fetch the balance of a wallet. - -You can use the native currency address to fetch the balance of the native currency, or a specific ERC20 token contract address to fetch the ERC20 balance. - -```csharp -var data = await sdk.Wallet.GetBalance(); -``` - -## Configuration - -### currencyAddress (optional) - -The address of the token smart contract that you want to get the balance for. - -If no address is provided, the balance of the native currency will be used. - -```csharp -var data = await sdk.Wallet.GetBalance("{{currency_contract_address}}"); -``` - -## Return Value - -Returns a `CurrencyValue` struct containing the following properties: - -```csharp -{ - string name; - string symbol; - string decimals; - string value; - string displayValue; -} -``` diff --git a/apps/portal/src/app/unity/v4/wallets/actions/getchainid/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/getchainid/page.mdx deleted file mode 100644 index 6cab3ac30b9..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/getchainid/page.mdx +++ /dev/null @@ -1,26 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.GetChainId | thirdweb Unity SDK", - description: "Get the chain ID of the currently connected wallet", -}); - -# GetChainId - -Get the chain ID of the currently connected wallet. - -## Usage - -Call this method to get the chain ID of the connected wallet. - -```csharp -var chainId = await sdk.Wallet.GetChainId(); -``` - -## Return Value - -Returns the chain ID as a `BigInteger`. - -```csharp -BigInteger -``` diff --git a/apps/portal/src/app/unity/v4/wallets/actions/getemail/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/getemail/page.mdx deleted file mode 100644 index a21f941d75a..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/getemail/page.mdx +++ /dev/null @@ -1,20 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.GetEmail | thirdweb Unity SDK", - description: "Get the Email of the currently connected In-App Wallet", -}); - -# GetEmail - -Gets the connected in-app wallet email if any. - -## Usage - -```csharp -string email = await sdk.Wallet.GetEmail(); -``` - -## Return Value - -Returns the email `string` of the connected in-app wallet if any, otherwise returns an empty string. diff --git a/apps/portal/src/app/unity/v4/wallets/actions/getnonce/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/getnonce/page.mdx deleted file mode 100644 index ef495d2c597..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/getnonce/page.mdx +++ /dev/null @@ -1,34 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.GetNonce | thirdweb Unity SDK", - description: "Get the none of the currently connected wallet", -}); - -# GetNonce - -Get the nonce of the currently connected wallet. Defauts to pending blockTag. - -## Usage - -Call this method to get the nonce of the currently connected wallet. - -```csharp -var nonce = await sdk.Wallet.GetNonce(); -``` - -## Configuration - -### blockTag (optional) - -The block tag to get the nonce for. Must be a `string`. - -If no block tag is provided, the default is `pending`. - -```csharp -var nonce = await sdk.Wallet.GetNonce("latest"); -``` - -## Return Value - -Returns the nonce as an `int`. diff --git a/apps/portal/src/app/unity/v4/wallets/actions/getsigneraddress/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/getsigneraddress/page.mdx deleted file mode 100644 index cf9d2eb1725..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/getsigneraddress/page.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.GetSignerAddress | thirdweb Unity SDK", - description: "Get the original signer address of the connected wallet.", -}); - -# GetSignerAddress - -Gets the address of the signer associated with the connected wallet. -In most cases, that is the wallet address. -When it comes to Smart Wallets, it is the associated EOA's address. - -## Usage - -```csharp -string signerAddress = await sdk.Wallet.GetSignerAddress(); -``` - -## Return Value - -Returns the `string` address of the signer associated with the connected wallet. diff --git a/apps/portal/src/app/unity/v4/wallets/actions/isconnected/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/isconnected/page.mdx deleted file mode 100644 index b529f6887b7..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/isconnected/page.mdx +++ /dev/null @@ -1,26 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.IsConnected | thirdweb Unity SDK", - description: "Check whether there's a signer connected with the SDK", -}); - -# IsConnected - -Check whether there's a signer connected with the SDK. - -## Usage - -Call this method to check if a signer (e.g. a wallet) is connected to the SDK. - -```csharp -var data = await sdk.Wallet.IsConnected(); -``` - -## Return Value - -Returns `true` if a signer is connected, `false` if not. - -```csharp -bool -``` diff --git a/apps/portal/src/app/unity/v4/wallets/actions/recoveraddress/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/recoveraddress/page.mdx deleted file mode 100644 index 57bd53bb1a2..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/recoveraddress/page.mdx +++ /dev/null @@ -1,43 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.RecoverAddress | thirdweb Unity SDK", - description: "Recover the signing address from a signed message", -}); - -# RecoverAddress - -Recover the signing address from a signed message. - -## Usage - -After a message has been signed using [sign](/unity/wallets/actions/sign), -you can then pass the message and the signature to this method to recover the signing address. - -Uses EIP-1271 to verify the address when using compatible Smart Wallets. - -```csharp -var data = await sdk.Wallet.RecoverAddress("{{message}}", "{{signature}}"); -``` - -## Configuration - -### message - -The original message that was signed. - -Must be a `string`. - -### signature - -The signature to recover the address from. - -Must be a `string`. - -## Return Value - -Returns the wallet address that signed the message. - -```csharp -string -``` diff --git a/apps/portal/src/app/unity/v4/wallets/actions/removeadmin/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/removeadmin/page.mdx deleted file mode 100644 index 4df3c61948e..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/removeadmin/page.mdx +++ /dev/null @@ -1,28 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.RemoveAdmin | thirdweb Unity SDK", - description: "Removes an admin from the connected Smart Wallet", -}); - -# RemoveAdmin - -For Smart Wallets only, remove an admin from the connected Smart Wallet. - -## Usage - -```csharp -var txResult = await sdk.Wallet.RemoveAdmin("0xadmin"); -``` - -## Configuration - -### admin - -The address of the admin to remove. - -Must be a `string`. - -### Return Value - -Returns a `TransactionResult` object. diff --git a/apps/portal/src/app/unity/v4/wallets/actions/revokesessionkey/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/revokesessionkey/page.mdx deleted file mode 100644 index a4174adacd2..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/revokesessionkey/page.mdx +++ /dev/null @@ -1,28 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.RevokeSessionKey | thirdweb Unity SDK", - description: "Revokes restricted Smart Wallet access of a signer.", -}); - -# RevokeSessionKey - -For Smart Wallets only, revokes restricted Smart Wallet access of a signer. - -See the [Smart Wallets](/unity/wallets/providers/account-abstraction) documentation for more information. - -## Usage - -```csharp -var txResult = await sdk.Wallet.RevokeSessionKey("0xSignerAddress"); -``` - -## Configuration - -### signerAddress - -The address of the signer to remove. - -## Return Value - -Returns a `TransactionResult` object. diff --git a/apps/portal/src/app/unity/v4/wallets/actions/sendrawtransaction/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/sendrawtransaction/page.mdx deleted file mode 100644 index abe1145a9e1..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/sendrawtransaction/page.mdx +++ /dev/null @@ -1,33 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.SendRawTransaction | thirdweb Unity SDK", - description: - "Sends a raw transaction to the blockchain from the connected wallet, and returns a hash", -}); - -# SendRawTransaction - -Send a raw transaction to the blockchain from the connected wallet, and returns a hash. - -## Usage - -Create a `TransactionRequest` struct with the raw transaction data, and pass it to this method. - -The method will return the transaction hash once the transaction is sent to the blockchain. - -```csharp -var data = await sdk.Wallet.SendRawTransaction(new TransactionRequest() -{ - from = "{{wallet_address}}", // The address the transaction is sent from. - to = "{{wallet_address}}", // The address the transaction is directed to. - data = "{{data}}", // The data to send with the transaction - value = "{{value}}", // send native tokens with the contract call (wei) - gasLimit = "{{gasLimit}}", // The maximum amount of gas this transaction is permitted to use. - gasPrice = "{{gaspPrice}}", // The price (in wei) per unit of gas this transaction will pay. -}); -``` - -### Returns - -`string`: The transaction hash. diff --git a/apps/portal/src/app/unity/v4/wallets/actions/sign/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/sign/page.mdx deleted file mode 100644 index 56a4f9e1fe5..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/sign/page.mdx +++ /dev/null @@ -1,38 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.Sign | thirdweb Unity SDK", - description: "Sign any message with the connected wallet", -}); - -# Sign - -Sign any message with the connected wallet. (personal_sign) - -## Usage - -Create a message to be signed and pass it to this method. - -Once signed, the signature is returned. - -Uses EIP-1271 to sign the message when using compatible Smart Wallets. - -```csharp -var data = await sdk.Wallet.Sign("my message"); -``` - -## Configuration - -### message - -The message to be signed. - -Must be a `string`. - -## Return Value - -Returns a `string` with the signature. - -```csharp -string -``` diff --git a/apps/portal/src/app/unity/v4/wallets/actions/signtypeddatav4/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/signtypeddatav4/page.mdx deleted file mode 100644 index 2cb1f9a9625..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/signtypeddatav4/page.mdx +++ /dev/null @@ -1,30 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.SignTypedDataV4 | thirdweb Unity SDK", - description: "Sign a typed data message with the connected wallet.", -}); - -# SignTypedDataV4 - -Low level API used in EIP712. Sign any typed data message with the connected wallet. (eth_signTypedData_v4) - -## Usage - -```csharp -var signature = await wallet.SignTypedDataV4(mintRequest, typedData); -``` - -## Configuration - -### data - -The data object to sign. Must be typed and marked correctly. See EIP712.cs for examples. - -### typedData - -The typed data object that defines the domain and message schema. Must be typed and marked correctly. See EIP712.cs for examples. - -## Return Value - -Returns a `string` with the signature. diff --git a/apps/portal/src/app/unity/v4/wallets/actions/switchnetwork/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/switchnetwork/page.mdx deleted file mode 100644 index dd87af4769f..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/switchnetwork/page.mdx +++ /dev/null @@ -1,25 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.SwitchNetwork | thirdweb Unity SDK", - description: - "Switch the network that the connected wallet is currently connected to", -}); - -# SwitchNetwork - -Switch the network that the connected wallet is currently connected to. - -## Usage - -```csharp -sdk.Wallet.SwitchNetwork(1); -``` - -## Configuration - -### chainId - -The ID of the network to switch to. - -Must be a `BigInteger`. diff --git a/apps/portal/src/app/unity/v4/wallets/actions/transfer/page.mdx b/apps/portal/src/app/unity/v4/wallets/actions/transfer/page.mdx deleted file mode 100644 index 3aa01aa4a30..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/actions/transfer/page.mdx +++ /dev/null @@ -1,43 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "wallet.Transfer | thirdweb Unity SDK", - description: - "Transfer native or ERC20 tokens from this wallet to another wallet", -}); - -# Transfer - -Transfer native or ERC20 tokens from this wallet to another wallet. - -## Usage - -```csharp -var data = await sdk.Wallet.Transfer("{{to_address}}", "{{amount}}") -``` - -## Configuration - -### to - -The address of the account to send funds to. - -Must be a `string`. - -### amount - -The amount in tokens to be transferred. - -Must be a `string`. - -### currencyAddress (optional) - -The address of the token smart contract that you want to transfer. - -If no address is provided, the native currency will be used. - -Must be a `string`. - -```csharp -var data = await sdk.Wallet.Transfer("{{to_address}}", "{{amount}}", "{{currency_contract_address}}") -``` diff --git a/apps/portal/src/app/unity/v4/wallets/prefab/connectwallet.png b/apps/portal/src/app/unity/v4/wallets/prefab/connectwallet.png deleted file mode 100644 index 99277a9dbab..00000000000 Binary files a/apps/portal/src/app/unity/v4/wallets/prefab/connectwallet.png and /dev/null differ diff --git a/apps/portal/src/app/unity/v4/wallets/prefab/connectwalletinspector.png b/apps/portal/src/app/unity/v4/wallets/prefab/connectwalletinspector.png deleted file mode 100644 index 3561f114685..00000000000 Binary files a/apps/portal/src/app/unity/v4/wallets/prefab/connectwalletinspector.png and /dev/null differ diff --git a/apps/portal/src/app/unity/v4/wallets/prefab/page.mdx b/apps/portal/src/app/unity/v4/wallets/prefab/page.mdx deleted file mode 100644 index af4acbd345e..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/prefab/page.mdx +++ /dev/null @@ -1,50 +0,0 @@ -import { DocImage, createMetadata } from "@doc"; -import connectWallet from "./connectwallet.png"; -import connectWalletInspector from "./connectwalletinspector.png"; - -export const metadata = createMetadata({ - title: "ConnectWallet Prefab | thirdweb Unity SDK", - description: - "ConnectWallet prefab allows users to connect their wallet to your game", -}); - -# ConnectWallet Prefab - -The `Prefab_ConnectWallet` prefab allows users to connect their wallet to your game. - -It uses the [ThirdwebManager](/unity/thirdwebmanager) to determine which networks to display as well as the secondary UI related to certain providers such as WalletConnect. - -You can set up which wallets you want to support from the Prefab_ConnectWallet Inspector directly. - -When a user clicks the button, a dropdown of [supported wallets](#supported-wallets) will appear. The user can then -select their preferred wallet to connect to the game; once connected, the button will show the user’s balance and an option to -switch networks if multiple networks are set up through the ThirdwebManager. - -The prefab is located at: `Assets/Thirdweb/Examples/Prefabs/Prefab_ConnectWallet.prefab`. - - - -## Configuration - -From the `Inspector` window, you can configure the options for the `ConnectWallet` prefab. The UI will update in Play mode, and it is fully customizable. - - - -### Supported Wallets - -The list of wallets you want to support. -Each wallet you provide appears as a button in the dropdown. - -Supports `InAppWallet`, `MetaMask`, `Coinbase`, `WalletConnect`, `LocalWallet`, `HyperPlay`, `Injected` (window.ethereum). - -Some wallet providers may not be supported on some native platforms. - -You can turn any of these wallets into a `SmartWallet` by checking the `Use Smart Wallets` checkbox. - -### Use Account Abstraction - -When checked, the wallet provider will be wrapped in a `SmartWallet` which will allow you to use [SmartWallet features](/unity/wallets/providers/smart-wallet). - -### Events - -You can set up events to be triggered when the user connects, switches network or disconnects their wallet, from the inspector. diff --git a/apps/portal/src/app/unity/v4/wallets/providers/account-abstraction/page.mdx b/apps/portal/src/app/unity/v4/wallets/providers/account-abstraction/page.mdx deleted file mode 100644 index 0e56384010e..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/providers/account-abstraction/page.mdx +++ /dev/null @@ -1,119 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Account Abstraction | thirdweb Unity SDK", - description: "Connect to Smart account with thirdweb Unity SDK", -}); - -# Account Abstraction - -Deploys a smart account for the user to interact with your app. The specified personal wallet will be the admin signer. -For more information about Account Abstration, see the [glossary](/glossary/smart-account). - -## Usage - -```csharp -using Thirdweb; - -public async void ConnectWallet() -{ - // Reference to your Thirdweb SDK - var sdk = ThirdwebManager.Instance.SDK; - - // Configure the connection - var connection = new WalletConnection( - provider: WalletProvider.SmartWallet, // The wallet provider you want to connect to (Required) - chainId: 1, // The chain you want to connect to (Required) - password: "myEpicPassword", // If using a local wallet as personal wallet (Optional) - email: "email@email.com", // If using a personal wallet login option that requires email (Optional) - personalWallet: WalletProvider.LocalWallet // The personal wallet you want to use with your Smart Wallet (Optional) - ); - - // Connect the wallet - string address = await sdk.Wallet.Connect(connection); -} -``` - -## Behavior - -### WebGL - -Goes through the specified `personalWallet` login flow, then generates or connects a smart account based on that EOA address. - -### Standalone - -Goes through the specified `personalWallet` login flow, then generates or connects a smart account based on that EOA address. - -### Mobile - -Goes through the specified `personalWallet` login flow, then generates or connects a smart account based on that EOA address. - -## Miscellaneous - -The ultimate goal of a smart account is to be able to sponsor gas fees for your users, while providing a signless and gasless experience. - -They also work with any wallet provider as the EOA, but it is recommended to use a signless wallet, like In-App Wallets, for the best experience. - -You would then be able to login to the exact same persistent EOA and smart account address across your apps, and even across different platforms. - -You can also create session keys (revokable), allowing new signers to interact with the smart account without being the admin. -You may also add/remove admins. - -```csharp -using Thirdweb; - -// Reference to your Thirdweb SDK -var sdk = ThirdwebManager.Instance.SDK; - -// Create a session key -string signerAddress = "0xSignerAddress"; -List approvedTargets = new List { "0xTargetAddress" }; -string nativeTokenLimitPerTransactionInWei = "0"; -string permissionStartTimestamp = "0"; -string permissionEndTimestamp = Utils.GetUnixTimestampIn10Years().ToString(); -string reqValidityStartTimestamp = "0"; -string reqValidityEndTimestamp = Utils.GetUnixTimestampIn10Years().ToString(); - -var createSessionResult = await sdk.Wallet.CreateSessionKey( - "0xSignerAddress", - approvedTargets, - nativeTokenLimitPerTransactionInWei, - permissionStartTimestamp, - permissionEndTimestamp, - reqValidityStartTimestamp, - reqValidityEndTimestamp -); - -// Get a list of current signers with permission details -List signers = await sdk.Wallet.GetAllActiveSigners(); - -// Revoke a session key -var revokeSessionResult = await sdk.Wallet.RevokeSessionKey("0xSignerAddress"); - -// Add admin -var addAdminResult = await sdk.Wallet.AddAdmin("0xSignerAddress"); - -// Remove admin -var removeAdminResult = await sdk.Wallet.RemoveAdmin("0xSignerAddress"); - -// These features pair well with the `smartWalletAccountOverride` option to connect to a specific smart wallet -var connection = new WalletConnection( - ...options, - smartWalletAccountOverride: "0xSmartWalletAddress" -); -var address = await sdk.Wallet.Connect(connection); -``` - -## ZkSync Support - -ZkSync chains make use of native account abstraction, whereby the user's EOA is the smart account. We support this as well. - -The only difference is that no account factory or additional parameters are needed, simply set gasless to true, connect to ZkSync with a SmartWallet provider, and you're good to go. - -## Additional Options - -Smart accounts, through paymasters, can be seen as a "plugin" to your user wallets, whereby all gas fees can be sponsored onchain. -To enable this, simply set the `gasless` option to true in your [ThirdwebManager](/unity/thirdwebmanager) prefab. - -All smart accounts are deployed through an [Account Factory](https://thirdweb.com/thirdweb.eth/AccountFactory), which is a contract that deploys smart accounts on behalf of your users. -You would need to set this address in your [ThirdwebManager](/unity/thirdwebmanager) prefab's settings as well. diff --git a/apps/portal/src/app/unity/v4/wallets/providers/coinbase/page.mdx b/apps/portal/src/app/unity/v4/wallets/providers/coinbase/page.mdx deleted file mode 100644 index d8be9caf813..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/providers/coinbase/page.mdx +++ /dev/null @@ -1,45 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Coinbase Wallet | thirdweb Unity SDK", - description: "Connect to Coinbase Wallet with thirdweb Unity SDK", -}); - -# Coinbase - -Prompt users to connect to your app with their [Coinbase](https://www.coinbase.com/wallet) wallet. - -## Usage - -```csharp -using Thirdweb; - -public async void ConnectWallet() -{ - // Reference to your Thirdweb SDK - var sdk = ThirdwebManager.Instance.SDK; - - // Configure the connection - var connection = new WalletConnection( - provider: WalletProvider.Coinbase, // The wallet provider you want to connect to (Required) - chainId: 1 // The chain you want to connect to (Required) - ); - - // Connect the wallet - string address = await sdk.Wallet.Connect(connection); -} -``` - -## Behavior - -### WebGL - -Displays the Coinbase Wallet modal. - -### Standalone - -Not supported. - -### Mobile - -Not supported. diff --git a/apps/portal/src/app/unity/v4/wallets/providers/hyperplay/page.mdx b/apps/portal/src/app/unity/v4/wallets/providers/hyperplay/page.mdx deleted file mode 100644 index 382873e88b6..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/providers/hyperplay/page.mdx +++ /dev/null @@ -1,45 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "HyperPlay wallet | thirdweb Unity SDK", - description: "Connect to HyperPlay wallet with thirdweb Unity SDK", -}); - -# HyperPlay - -Prompt users to connect to your app with their [Hyperplay](https://www.hyperplay.xyz/) wallet. - -## Usage - -```csharp -using Thirdweb; - -public async void ConnectWallet() -{ - // Reference to your Thirdweb SDK - var sdk = ThirdwebManager.Instance.SDK; - - // Configure the connection - var connection = new WalletConnection( - provider: WalletProvider.Hyperplay, // The wallet provider you want to connect to (Required) - chainId: 1 // The chain you want to connect to (Required) - ); - - // Connect the wallet - string address = await sdk.Wallet.Connect(connection); -} -``` - -## Behavior - -### WebGL - -Not supported. - -### Standalone - -Connects to the Hyperplay launcher user wallet. - -### Mobile - -Connects to the Hyperplay launcher user wallet. diff --git a/apps/portal/src/app/unity/v4/wallets/providers/in-app-wallet/ews-settings.png b/apps/portal/src/app/unity/v4/wallets/providers/in-app-wallet/ews-settings.png deleted file mode 100644 index 0e8698677bd..00000000000 Binary files a/apps/portal/src/app/unity/v4/wallets/providers/in-app-wallet/ews-settings.png and /dev/null differ diff --git a/apps/portal/src/app/unity/v4/wallets/providers/in-app-wallet/page.mdx b/apps/portal/src/app/unity/v4/wallets/providers/in-app-wallet/page.mdx deleted file mode 100644 index 279fd947f56..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/providers/in-app-wallet/page.mdx +++ /dev/null @@ -1,144 +0,0 @@ -import { DocImage, createMetadata } from "@doc"; -import ewsSettings from "./ews-settings.png"; - -export const metadata = createMetadata({ - title: "In-App Wallet | thirdweb Unity SDK", - description: "Connect to In-App Wallet with thirdweb Unity SDK", -}); - -# In-App Wallet - -The In-App Wallet service by thirdweb facilitates creating or accessing a wallet seamlessly. Ensure your client ID is set within [ThirdwebManager](/unity/thirdwebmanager), and enable the [In-App Wallet](/connect/embedded-wallet/overview) service to experience various, smooth and persistent cross-platform login methods. - -## Usage - -### Login with Email - -Automatically logs in if previously accessed with the same email or prompts for a one-time password (OTP) sent to the user's email. - -```csharp -// Reference to your Thirdweb SDK -var sdk = ThirdwebManager.Instance.SDK; - -// Configure the connection -var connection = new WalletConnection( - provider: WalletProvider.InAppWallet, - chainId: 1, - email: "email@email.com", -); - -// Connect the wallet -string address = await sdk.Wallet.Connect(connection); -``` - -### Login with Phone Number - -Automatically logs in if previously accessed with the same phone number or prompts for a one-time password (OTP) sent to the user's phone. - -```csharp -// Reference to your Thirdweb SDK -var sdk = ThirdwebManager.Instance.SDK; - -// Configure the connection -var connection = new WalletConnection( - provider: WalletProvider.InAppWallet, - chainId: 1, - phoneNumber: "+1234567890", - authOptions: new AuthOptions( - authProvider: AuthProvider.PhoneOTP, - ) -); - -// Connect the wallet -string address = await sdk.Wallet.Connect(connection); -``` - -### Login with OAuth2 (Google, Apple, Facebook, etc.) - -This method initiates an OAuth2 login process and redirects back to the app upon successful authentication. - -If building for mobile, you need to set a custom scheme for your app to enable OAuth2 login flows on Android and iOS. -To do so, see the [ThirdwebManager](/unity/thirdwebmanager) - `ThirdwebConfig` and update it with your custom scheme (such as `myapp://`). -You may allowlist that scheme in your [API key In-App Wallet settings](https://thirdweb.com/create-api-key). On Android, your manifest will be updated automatically at build time to include the necessary settings. - -```csharp -// Reference to your Thirdweb SDK -var sdk = ThirdwebManager.Instance.SDK; - -// Configure the connection -var connection = new WalletConnection( - provider: WalletProvider.InAppWallet, - chainId: 1, - authOptions: new AuthOptions( - authProvider: AuthProvider.Google, - ) -); - -// Connect the wallet -string address = await sdk.Wallet.Connect(connection); -``` - -### Bring your own Auth - -Allows the integration of a custom authentication flow, such as JWT, requiring the configuration of JWKS URI and AUD in the [API key settings](https://thirdweb.com/create-api-key). - -Alternatively, allows passing a generic payload that will be authenticated against your backend Auth Endpoint set in the [API key settings](https://thirdweb.com/create-api-key). - -You must also pass in an `encryptionKey` that will be used to encrypt the recovery share. - - - -```csharp -// Reference to your Thirdweb SDK -var sdk = ThirdwebManager.Instance.SDK; - -// Configure the connection -var connection = new WalletConnection( - provider: WalletProvider.InAppWallet, - chainId: 1, - authOptions: new AuthOptions( - authProvider: AuthProvider.JWT, - jwtOrPayload: "my-jwt-token-or-payload", - encryptionKey: "my-encryption-key", - ) -); - -// Connect the wallet -string address = await sdk.Wallet.Connect(connection); -``` - -## Behavior - -### WebGL - -If using Email OTP flow, displays an iFrame where you can input your OTP code. - -If using Phone OTP flow, displays an iFrame where you can input your OTP code. - -If using OAuth2 flow, opens a popup where you can login with your provider account. If successful, the popup will close and the wallet will connect. - -If using Custom Auth flow, attempts to connect directly after verifying the auth token. - -### Standalone - -If using Email OTP flow, displays a modal where you can input your OTP code. - -If using Phone OTP flow, displays a modal where you can input your OTP code. - -If using the OAuth2 flow, opens the default browser where you can login with your provider account. Connects after the login flow is complete. - -If using Custom Auth flow, attempts to connect directly after verifying the auth token. - -### Mobile - -If using Email OTP flow, displays a modal where you can input your OTP code. - -If using Phone OTP flow, displays a modal where you can input your OTP code. - -If using the OAuth2 flow, interacts with native in-app browser/authentication implementations to login with your provider account. Redirects back to the app through a deep link after the login flow is complete. Only available in builds. - -If using Custom Auth flow, attempts to connect directly after verifying the auth token. - -## Miscellaneous - -You may modify the `WalletProvider_InAppWallet` prefab to fit your app's design, it is primarily used during the Email OTP process. diff --git a/apps/portal/src/app/unity/v4/wallets/providers/injected/page.mdx b/apps/portal/src/app/unity/v4/wallets/providers/injected/page.mdx deleted file mode 100644 index 4f77ef221dd..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/providers/injected/page.mdx +++ /dev/null @@ -1,45 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Injected wallet | thirdweb Unity SDK", - description: "Connect to Injected wallet with thirdweb Unity SDK", -}); - -# Injected - -Prompt users to connect to their default browser wallet (window.ethereum). - -## Usage - -```csharp -using Thirdweb; - -public async void ConnectWallet() -{ - // Reference to your Thirdweb SDK - var sdk = ThirdwebManager.Instance.SDK; - - // Configure the connection - var connection = new WalletConnection( - provider: WalletProvider.Injected, // The wallet provider you want to connect to (Required) - chainId: 1 // The chain you want to connect to (Required) - ); - - // Connect the wallet - string address = await sdk.Wallet.Connect(connection); -} -``` - -## Behavior - -### WebGL - -Prompts the user to connect to their default browser wallet (window.ethereum). - -### Standalone - -Not supported. - -### Mobile - -Not supported. diff --git a/apps/portal/src/app/unity/v4/wallets/providers/local-wallet/page.mdx b/apps/portal/src/app/unity/v4/wallets/providers/local-wallet/page.mdx deleted file mode 100644 index 159ffa381f6..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/providers/local-wallet/page.mdx +++ /dev/null @@ -1,67 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Local wallet | thirdweb Unity SDK", - description: "Connect to Local wallet with thirdweb Unity SDK", -}); - -# Local Wallet - -Loads or generates a local wallet on the user's device. -This wallet is encrypted with a password and stored in local storage. -It is meant to be used as a guest wallet, and is not recommended for long-term storage of funds. - -## Usage - -```csharp -using Thirdweb; - -public async void ConnectWallet() -{ - // Reference to your Thirdweb SDK - var sdk = ThirdwebManager.Instance.SDK; - - // Configure the connection - var connection = new WalletConnection( - provider: WalletProvider.LocalWallet, // The wallet provider you want to connect to (Required) - chainId: 1, // The chain you want to connect to (Required) - password: "myEpicPassword" // Used to encrypt your Local Wallet, defaults to device uid (Optional) - ); - - // Connect the wallet - string address = await sdk.Wallet.Connect(connection); -} -``` - -## Behavior - -### WebGL - -Automatically creates or loads a local wallet on the user's device. The wallet is encrypted with a password and stored in local storage. - -### Standalone - -Automatically creates or loads a local wallet on the user's device. The wallet is encrypted with a password and stored in local storage. - -### Mobile - -Automatically creates or loads a local wallet on the user's device. The wallet is encrypted with a password and stored in local storage. - -## Miscellaneous - -You may export this wallet to a JSON file, which can be imported into other wallets such as the Metamask extension. - -```csharp -// Export the wallet keystore (all platforms) -string json = await sdk.Wallet.Export(); - -// Get wallet path (native platforms) -string path = Utils.GetAccountPath(); - -// Delete local wallet (native platforms) -bool deleted = Utils.DeleteLocalAccount(); - -// Explore Utils.cs to discover more -``` - -If no password is passed, it defaults to `SystemInfo.deviceUniqueIdentifier`. diff --git a/apps/portal/src/app/unity/v4/wallets/providers/metamask/page.mdx b/apps/portal/src/app/unity/v4/wallets/providers/metamask/page.mdx deleted file mode 100644 index c5dd81820f9..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/providers/metamask/page.mdx +++ /dev/null @@ -1,50 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "MetaMask wallet | thirdweb Unity SDK", - description: "Connect to MetaMask wallet with thirdweb Unity SDK", -}); - -# MetaMask - -Prompt users to connect to your app with their [MetaMask](https://metamask.io/) wallet. - -## Usage - -```csharp -using Thirdweb; - -public async void ConnectWallet() -{ - // Reference to your Thirdweb SDK - var sdk = ThirdwebManager.Instance.SDK; - - // Configure the connection - var connection = new WalletConnection( - provider: WalletProvider.Metamask, // The wallet provider you want to connect to (Required) - chainId: 1 // The chain you want to connect to (Required) - ); - - // Connect the wallet - string address = await sdk.Wallet.Connect(connection); -} -``` - -## Behavior - -### WebGL - -Prompts the user to connect their Metamask browser extension. - -### Standalone - -Instantiates the customizable `WalletProvider_Metamask` UI prefab, displaying a QR code and deep link button. Scan the QR code with your Metamask mobile app to connect. - -### Mobile - -Instantiates the customizable `WalletProvider_Metamask` UI prefab, displaying a QR code and deep link button. Click the deep link button to connect to your Metamask mobile app. - -## Miscellaneous - -You may customize the `WalletProvider_Metamask` prefab to fit your app's design. -The prefab is located at `Assets/Thirdweb/Core/Prefabs` and referenced in the [ThirdwebManager](/unity/thirdwebmanager) prefab. diff --git a/apps/portal/src/app/unity/v4/wallets/providers/rabby/page.mdx b/apps/portal/src/app/unity/v4/wallets/providers/rabby/page.mdx deleted file mode 100644 index d05e3d0b85b..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/providers/rabby/page.mdx +++ /dev/null @@ -1,45 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Rabby Wallet | thirdweb Unity SDK", - description: "Connect to Rabby Wallet with thirdweb Unity SDK", -}); - -# Rabby - -Prompt users to connect to your app with their [Rabby](https://rabby.io/) wallet. - -## Usage - -```csharp -using Thirdweb; - -public async void ConnectWallet() -{ - // Reference to your Thirdweb SDK - var sdk = ThirdwebManager.Instance.SDK; - - // Configure the connection - var connection = new WalletConnection( - provider: WalletProvider.Rabby, // The wallet provider you want to connect to (Required) - chainId: 1 // The chain you want to connect to (Required) - ); - - // Connect the wallet - string address = await sdk.Wallet.Connect(connection); -} -``` - -## Behavior - -### WebGL - -Connects to the Rabby Browser Extension, defaults to WalletConnect otherwise. - -### Standalone - -Not applicable, please use the WalletConnect provider instead which includes Rabby support. - -### Mobile - -Not supported. Please use the WalletConnect provider instead which includes Rabby support. diff --git a/apps/portal/src/app/unity/v4/wallets/providers/walletconnect/page.mdx b/apps/portal/src/app/unity/v4/wallets/providers/walletconnect/page.mdx deleted file mode 100644 index 9c53dda0822..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/providers/walletconnect/page.mdx +++ /dev/null @@ -1,54 +0,0 @@ -import { createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "WalletConnect | thirdweb Unity SDK", - description: "Connect to WalletConnect with thirdweb Unity SDK", -}); - -# WalletConnect - -Prompt users to connect to your app with their [WalletConnect-compatible](https://walletconnect.com/) wallet. Supports 400+ wallets. - -## Usage - -```csharp -using Thirdweb; - -public async void ConnectWallet() -{ - // Reference to your Thirdweb SDK - var sdk = ThirdwebManager.Instance.SDK; - - // Configure the connection - var connection = new WalletConnection( - provider: WalletProvider.WalletConnect, // The wallet provider you want to connect to (Required) - chainId: 1 // The chain you want to connect to (Required) - ); - - // Connect the wallet - string address = await sdk.Wallet.Connect(connection); -} -``` - -## Behavior - -### WebGL - -Displays the WalletConnect modal, customized based on your ThirdwebManager settings. - -### Standalone - -Instantiates the customizable `WalletProvider_WalletConnect` UI prefab, displaying the WalletConnect modal. Typical connection is though a QR code scan. - -### Mobile - -Instantiates the customizable `WalletProvider_WalletConnect` UI prefab, displaying the WalletConnect modal. Typical connection is though deep linking. - -## Miscellaneous - -You may customize the `WalletProvider_WalletConnect` prefab to fit your app's design. -The prefab is located at `Assets/Thirdweb/Core/Prefabs` and referenced in the [ThirdwebManager](/unity/thirdwebmanager) prefab. - -## Additional Options - -You may set the your WalletConnect Project ID (all platforms) and explorer recommended wallet ids in the [ThirdwebManager](/unity/thirdwebmanager) prefab. diff --git a/apps/portal/src/app/unity/v4/wallets/submission/page.mdx b/apps/portal/src/app/unity/v4/wallets/submission/page.mdx deleted file mode 100644 index 8d7693bdb23..00000000000 --- a/apps/portal/src/app/unity/v4/wallets/submission/page.mdx +++ /dev/null @@ -1,301 +0,0 @@ -import { OpenSourceCard, createMetadata } from "@doc"; - -export const metadata = createMetadata({ - title: "Submit Your Wallet | thirdweb Unity SDK", - description: "Learn how to add your own wallet to the thirdweb Unity SDK", -}); - -# Submit Your Wallet - -The Thirdweb Unity SDK comes with many built-in wallets, but you can add your own wallet to the SDK by following these steps. - -## Step 1 - WalletProvider - -Add your wallet identifier to the WalletProvider enum in the Wallet.cs file. This enum represents the different wallet providers. - -```csharp -public enum WalletProvider -{ - ..., - MyEpicWallet -} -``` - -## Step 2 - Implement IThirdwebWallet - -Implement the IThirdwebWallet interface for your wallet. This interface defines the methods and properties required for wallet integration. - -```csharp -using System.Numerics; -using System.Threading.Tasks; -using Nethereum.Web3; -using Nethereum.Web3.Accounts; - -namespace Thirdweb.Wallets -{ - /// - /// Interface for interacting with a Thirdweb wallet. - /// - public interface IThirdwebWallet - { - /// - /// Main Connect call - should fully connect to the wallet and return the address. - /// - /// The wallet connection details. - /// The RPC endpoint. - /// The address of the connected wallet. - Task Connect(WalletConnection walletConnection, string rpc); - - /// - /// Main Disconnect call - should fully disconnect from the wallet and reset any variables. - /// - Task Disconnect(); - - /// - /// Get the local account if any, return null otherwise. - /// - /// The local account, or null if not available. - Account GetLocalAccount(); - - /// - /// Return the address of the main account. - /// - /// The address of the main account. - Task GetAddress(); - - /// - /// Return the address of the signer account (if any, otherwise return GetAddress). - /// - /// The address of the signer account. - Task GetSignerAddress(); - - /// - /// Return the WalletProvider you added above. - /// - /// The WalletProvider. - WalletProvider GetProvider(); - - /// - /// Return the WalletProvider of the signer account (if any, otherwise return GetProvider). - /// - /// The WalletProvider of the signer account. - WalletProvider GetSignerProvider(); - - /// - /// Return the Web3 Nethereum provider for the main account - must override Task SendAsync. - /// - /// The Web3 Nethereum provider for the main account. - Task GetWeb3(); - - /// - /// Return the Web3 Nethereum provider for the signer account (if any, otherwise return GetWeb3). - /// - /// The Web3 Nethereum provider for the signer account. - Task GetSignerWeb3(); - - /// - /// Return whether the wallet is currently connected (e.g. Web3 != null). - /// - /// True if the wallet is connected; otherwise, false. - Task IsConnected(); - - /// - /// Prepares the wallet for a network switch and returns an actionable response. - /// - /// The new chain ID to switch to. - /// The new RPC endpoint to switch to. - /// A indicating the action to be taken. - Task PrepareForNetworkSwitch(BigInteger newChainId, string newRpc); - } - - public enum NetworkSwitchAction - { - /// - /// Indicates that the network switch can proceed. The SDK should continue with the wallet_switchEthereumChain RPC call. - /// - ContinueSwitch, - - /// - /// Indicates that the wallet has already handled the network switch internally. There's no need to make the wallet_switchEthereumChain RPC call. - /// - Handled, - - /// - /// Indicates that the network switching feature is completely unsupported for the current wallet implementation. - /// - Unsupported - } -} -``` - -## Step 3 - Instantiate Your Wallet in ThirdwebSession.Connect - -In the ThirdwebSession.cs file, instantiate your wallet in the Connect method. - -```csharp -switch (walletConnection.provider) -{ - // ... - case WalletProvider.MyWalletProvider: - ActiveWallet = new MyWallet(); - break; - // ... -} -``` - -## Advanced - -### WalletConnection - -If your wallet implementation requires additional data for the constructor or connect methods, you can add fields to the `WalletConnection` class in the `Wallet.cs` file. - -```csharp -public class WalletConnection -{ - // ... - public string additionalData; - - public WalletConnection(/* ... */, string additionalData = null) - { - // ... - this.additionalData = additionalData; - } -} -``` - -### Nethereum Web3 Provider - -All RPC calls will pass through Nethereum's `Web3` provider. - -You'll need four classes to fully implement the provider, here's a Smart Account example: - -Extending `IAccount` - -```csharp -using Nethereum.JsonRpc.Client; -using Nethereum.RPC.Accounts; -using Nethereum.RPC.AccountSigning; -using Nethereum.RPC.NonceServices; -using Nethereum.RPC.TransactionManagers; - -namespace Thirdweb.AccountAbstraction -{ - public class SmartWalletAccount : IAccount - { - private readonly SmartWallet _wallet; - private readonly IClient _client; - - public string Address - { - get { return _wallet.Accounts[0]; } - } - - public ITransactionManager TransactionManager { get; } - public INonceService NonceService { get; set; } - public IAccountSigningService AccountSigningService { get; } - - public IClient Client - { - get { return _client; } - } - - public SmartWalletAccount(SmartWallet wallet, IClient client) - { - _wallet = wallet; - _client = client; - TransactionManager = new SmartWalletTransactionManager(this); - NonceService = new InMemoryNonceService(Address, client); - AccountSigningService = new AccountSigningService(client); - } - } -} -``` - -Extending `ClientBase` - -```csharp -using System; -using System.Linq; -using System.Threading.Tasks; -using Nethereum.JsonRpc.Client; -using Nethereum.JsonRpc.Client.RpcMessages; - -namespace Thirdweb.AccountAbstraction -{ - public class SmartWalletClient : ClientBase - { - private SmartWallet _smartWallet; - - public SmartWalletClient(SmartWallet smartWallet) - { - this._smartWallet = smartWallet; - } - - private static readonly Random rng = new Random(); - private static readonly DateTime UnixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); - - public static long GenerateRpcId() - { - var date = (long)((DateTime.UtcNow - UnixEpoch).TotalMilliseconds) * (10L * 10L * 10L); - var extra = (long)Math.Floor(rng.NextDouble() * (10.0 * 10.0 * 10.0)); - return date + extra; - } - - protected override async Task SendAsync(RpcRequestMessage message, string route = null) - { - message.Id = GenerateRpcId(); - return await _smartWallet.Request(message); - } - - protected override Task SendAsync(RpcRequestMessage[] requests) - { - return Task.WhenAll(requests.Select(r => SendAsync(r))); - } - } -} -``` - -Extending `TransactionManagerBase` (not used in practice) - -```csharp -namespace Thirdweb.AccountAbstraction -{ - public class SmartWalletTransactionManager : Nethereum.RPC.TransactionManagers.TransactionManager - { - public SmartWalletTransactionManager(SmartWalletAccount account) - : base(account.Client) - { - Account = account; - } - } -} -``` - -Finally, an extension to create a `Web3` provider - -```csharp -using Nethereum.Web3; - -namespace Thirdweb.AccountAbstraction -{ - public static class SmartWalletNEthereumExtensions - { - public static Web3 CreateWeb3(this SmartWallet smartWallet) - { - var client = new SmartWalletClient(smartWallet); - var account = new SmartWalletAccount(smartWallet, client); - return new Web3(account, client); - } - } -} -``` - -## Submitting Your Wallet - -If you think your wallet implementation would be useful to others, please consider sharing it by opening a PR to the `thirdweb-dev/unity-sdk` repository. - - diff --git a/apps/portal/src/app/unreal-engine/redirects.mjs b/apps/portal/src/app/unreal-engine/redirects.mjs deleted file mode 100644 index 6379c1c31f1..00000000000 --- a/apps/portal/src/app/unreal-engine/redirects.mjs +++ /dev/null @@ -1,10 +0,0 @@ -// @ts-check - -const redirects = { - "/unreal/:path*": "/unreal-engine/:path*", - "/unreal-engine/cpp/wallet-handle": "/unreal-engine/cpp/wallet-handles", - "/unreal-engine/blueprints/private-key-wallet": - "unreal-engine/blueprints/in-app-wallet", -}; - -export { redirects as unrealEngineRedirects }; diff --git a/apps/portal/src/app/wallet-sdk/v2/layout.tsx b/apps/portal/src/app/wallet-sdk/v2/layout.tsx deleted file mode 100644 index f3ea4e7cb84..00000000000 --- a/apps/portal/src/app/wallet-sdk/v2/layout.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import { createMetadata } from "@/components/Document"; -import { DocLayout } from "@/components/Layouts/DocLayout"; -import { TypeScriptVersionSelector } from "../../../components/others/VersionSelector"; -import { typescriptV4Sidebar } from "../../typescript/v4/sidebar"; - -export const metadata = createMetadata({ - title: "thirdweb Wallet SDK", - description: - "The Wallet SDK allows you to build a fully featured wallet solution or integrate an existing wallet provider with thirdweb's Typescript, React, React Native, and Unity SDKs.", -}); - -export default async function Layout(props: { children: React.ReactNode }) { - return ( - } - > - {props.children} - - ); -} diff --git a/apps/portal/src/app/wallet-sdk/v2/page.mdx b/apps/portal/src/app/wallet-sdk/v2/page.mdx deleted file mode 100644 index 9b5b469605c..00000000000 --- a/apps/portal/src/app/wallet-sdk/v2/page.mdx +++ /dev/null @@ -1,181 +0,0 @@ -import { OpenSourceCard, Heading, createMetadata } from "@doc"; -import { WalletCard, WalletCardGrid } from "@/components/others/WalletCard"; -// icons -import MetaMaskIcon from "@public/icons/wallets/metamask.svg"; -import CoinbaseIcon from "@public/icons/wallets/coinbase.svg"; -import WalletConnectIcon from "@public/icons/wallets/walletconnect.svg"; -import SmartWalletIcon from "@public/icons/wallets/smartwallet.svg"; -import EmbeddedWalletIcon from "@public/icons/wallets/embeddedwallet.svg"; -import SafeIcon from "@public/icons/wallets/safe.svg"; -import LocalWalletIcon from "@public/icons/wallets/localwallet.svg"; -import MagicLinkIcon from "@public/icons/wallets/magiclink.svg"; -import RainbowIcon from "@public/icons/wallets/rainbow.svg"; -import ZerionIcon from "@public/icons/wallets/zerion.svg"; -import BloctoIcon from "@public/icons/wallets/blocto.svg"; -import FrameIcon from "@public/icons/wallets/frame.svg"; -import PhantomIcon from "@public/icons/wallets/phantom.svg"; -import Coin98Icon from "@public/icons/wallets/coin98.png"; -import CoreWalletIcon from "@public/icons/wallets/coreWallet.png"; -import CryptoDefiIcon from "@public/icons/wallets/cryptoDefi.png"; -import OKXIcon from "@public/icons/wallets/okx.svg"; -import OneKeyIcon from "@public/icons/wallets/oneKey.png"; -import RabbyIcon from "@public/icons/wallets/rabby.svg"; -import AWSKMSIcon from "@public/icons/wallets/aws-kms.png"; -import AWSSecretsManager from "@public/icons/wallets/aws-secrets-manager.png"; -import EthersWallet from "@public/icons/wallets/ethers.png"; -import PrivateKeyIcon from "@public/icons/wallets/privateKey.svg"; - -export const metadata = createMetadata({ - title: "thirdweb Wallet SDK", - description: - "The Wallet SDK allows you to build a fully featured wallet solution or integrate an existing wallet provider with thirdweb's React, React Native, and Unity SDKs.", -}); - -# Wallet SDK - -The Wallet SDK allows you to build a fully featured wallet solution -or integrate an existing wallet provider with thirdweb's -[Typescript](/typescript/v4), -[React](/react/v4), -[React Native](/react-native/v0), and -[Unity](/unity) SDKs. - - - - - -The Wallet SDK comes out of the box with support for the most popular wallets that are ready to be used with thirdweb SDKs: - -- Custodial wallets like [MetaMask](/references/wallets/v2/MetaMaskWallet), [WalletConnect](/references/wallets/v2/WalletConnect), and [Coinbase Wallet](/references/wallets/v2/CoinbaseWallet) -- Self-custodial wallets like [In-App Wallet](/references/wallets/v2/EmbeddedWallet) -- Multi-sig wallets like [Safe (Gnosis)](/references/wallets/v2/SafeWallet) -- [ERC-4337](https://eips.ethereum.org/EIPS/eip-4337) compliant [Smart Accounts](/references/wallets/v2/SmartWallet) -- [Local Wallet](/references/wallets/v2/LocalWallet) that allows you to create a "continue as guest" experience - -You can also easily integrate _any_ other wallet provider by a [Building a wallet interface](/wallet-sdk/v2/build) for it. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/apps/portal/src/app/wallet-sdk/v2/usage/page.mdx b/apps/portal/src/app/wallet-sdk/v2/usage/page.mdx deleted file mode 100644 index 0e24e71b699..00000000000 --- a/apps/portal/src/app/wallet-sdk/v2/usage/page.mdx +++ /dev/null @@ -1,52 +0,0 @@ -import { createMetadata, SDKCard, Grid } from "@doc"; -import { ReactIcon, UnityIcon } from "@/icons"; - -export const metadata = createMetadata({ - image: { - title: "thirdweb Wallet SDK usage", - icon: "wallets", - }, - title: "Usage | thirdweb Wallet SDK", - description: - "Using thirdweb Wallet SDK to connect to wallets in TypeScript, React, React Native, and Unity", -}); - -# Usage - -Now you'rr ready to use any of the [supported wallets](/wallet-sdk/v2#wallets). - -## Usage with TypeScript SDK - -You can [initialize the thirdweb TypeScript SDK](/v4/getting-started#initialize-the-sdk) using a wallet using the `fromWallet` method. - -```ts -// 1. Import the wallet you want to use from the package -import { CoinbaseWallet } from "@thirdweb-dev/wallets"; -import { ThirdwebSDK } from "@thirdweb-dev/sdk"; - -// 2. Instantiate the wallet class -const coinbaseWallet = new CoinbaseWallet(); - -// 3. Connect to the wallet (prompts the user when required) -const walletAddress = await coinbaseWallet.connect(); - -// Instantiate the SDK using the wallet -const sdk = ThirdwebSDK.fromWallet(wallet, "ethereum", { - clientId: "YOUR_CLIENT_ID", // Use client id if using on the client side, get it from dashboard settings - secretKey: "YOUR_SECRET_KEY", // Use secret key if using on the server, get it from dashboard settings -}); -``` - -## Usage with other SDKs - -thirdweb's React, React Native, and Unity SDKs uses this package internally and offers a higher level abstraction for connecting these wallets. Refer to the documentation below to see how to connect wallets in these SDKs - - - - - - diff --git a/apps/portal/src/app/wallet-sdk/v2/wallets/page.mdx b/apps/portal/src/app/wallet-sdk/v2/wallets/page.mdx deleted file mode 100644 index cf864382bdc..00000000000 --- a/apps/portal/src/app/wallet-sdk/v2/wallets/page.mdx +++ /dev/null @@ -1,165 +0,0 @@ -import { WalletCard, WalletCardGrid } from "@/components/others/WalletCard"; -import { createMetadata } from "@doc"; -// icons -import MetaMaskIcon from "@public/icons/wallets/metamask.svg"; -import CoinbaseIcon from "@public/icons/wallets/coinbase.svg"; -import WalletConnectIcon from "@public/icons/wallets/walletconnect.svg"; -import SmartWalletIcon from "@public/icons/wallets/smartwallet.svg"; -import EmbeddedWalletIcon from "@public/icons/wallets/embeddedwallet.svg"; -import SafeIcon from "@public/icons/wallets/safe.svg"; -import LocalWalletIcon from "@public/icons/wallets/localwallet.svg"; -import MagicLinkIcon from "@public/icons/wallets/magiclink.svg"; -import RainbowIcon from "@public/icons/wallets/rainbow.svg"; -import ZerionIcon from "@public/icons/wallets/zerion.svg"; -import BloctoIcon from "@public/icons/wallets/blocto.svg"; -import FrameIcon from "@public/icons/wallets/frame.svg"; -import PhantomIcon from "@public/icons/wallets/phantom.svg"; -import Coin98Icon from "@public/icons/wallets/coin98.png"; -import CoreWalletIcon from "@public/icons/wallets/coreWallet.png"; -import CryptoDefiIcon from "@public/icons/wallets/cryptoDefi.png"; -import OKXIcon from "@public/icons/wallets/okx.svg"; -import OneKeyIcon from "@public/icons/wallets/oneKey.png"; -import RabbyIcon from "@public/icons/wallets/rabby.svg"; -import AWSKMSIcon from "@public/icons/wallets/aws-kms.png"; -import AWSSecretsManager from "@public/icons/wallets/aws-secrets-manager.png"; -import EthersWallet from "@public/icons/wallets/ethers.png"; -import PrivateKeyIcon from "@public/icons/wallets/privateKey.svg"; - -export const metadata = createMetadata({ - image: { - title: "Supported Wallets in thirdweb Wallet SDK", - icon: "wallets", - }, - title: "Supported Wallets | thirdweb Wallet SDK", - description: - "List of supported wallets that can be used with thirdweb Wallet SDK", -}); - -# Wallets - -The Wallet SDK comes out of the box with support for the most popular wallets that are ready to be used with thirdweb SDKs: - -You can also easily integrate _any_ other wallet provider by a [Building a wallet interface](/wallet-sdk/v2/build) for it. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/apps/portal/src/components/Document/APIEndpointMeta/ApiEndpoint.tsx b/apps/portal/src/components/Document/APIEndpointMeta/ApiEndpoint.tsx index 0567f3fc571..7df273e508b 100644 --- a/apps/portal/src/components/Document/APIEndpointMeta/ApiEndpoint.tsx +++ b/apps/portal/src/components/Document/APIEndpointMeta/ApiEndpoint.tsx @@ -22,7 +22,7 @@ export type APIParameter = type?: string; }; -export type ApiEndpointMeta = { +type ApiEndpointMeta = { title: string; description: React.ReactNode; path: string; @@ -202,7 +202,7 @@ function ParameterItem({ param }: { param: APIParameter }) { {param.description} {param.type && (
-

Type

+

Type

diff --git a/apps/portal/src/components/others/DocSearch.tsx b/apps/portal/src/components/others/DocSearch.tsx index 9f1a454c67e..38e1c5ab99c 100644 --- a/apps/portal/src/components/others/DocSearch.tsx +++ b/apps/portal/src/components/others/DocSearch.tsx @@ -19,7 +19,6 @@ import { Search as SearchIcon, } from "lucide-react"; import Link from "next/link"; -import { usePathname } from "next/navigation"; import { Spinner } from "../ui/Spinner/Spinner"; import { Input } from "../ui/input"; import { DynamicHeight } from "./DynamicHeight"; @@ -68,17 +67,6 @@ type Tag = function SearchModalContent(props: { closeModal: () => void }) { const [input, setInput] = useState(""); const debouncedInput = useDebounce(input, 500); - const pathname = usePathname(); - - const [showOldSDK, setShowOldSDK] = useState(false); - - useEffect(() => { - if (isOldSDK(pathname)) { - setShowOldSDK(true); - } else { - setShowOldSDK(false); - } - }, [pathname]); const [selectedTags, setSelectedTags] = useState<{ [T in Tag]?: boolean; @@ -91,23 +79,7 @@ function SearchModalContent(props: { closeModal: () => void }) { queryKey: ["search-index", debouncedInput], queryFn: async () => { const res = await fetch(`/api/search?q=${encodeURI(debouncedInput)}`); - const { results: _results } = (await res.json()) as SearchResult; - - const results = _results.filter((x) => { - const isOld = isOldSDK(x.pageHref); - - // filter out old SDKs if should not be shown - if (isOld && !showOldSDK) { - return false; - } - - // filter out new SDKs if should not be shown - if (!isOld && showOldSDK) { - return false; - } - - return true; - }); + const { results } = (await res.json()) as SearchResult; const tagsSet: Set = new Set([]); @@ -419,18 +391,6 @@ export function DocSearch(props: { variant: "icon" | "search" }) { ); } -function isOldSDK(href: string) { - return ( - href.includes("/react-native/v0") || - href.includes("/typescript/v4") || - href.includes("/react/v4") || - href.includes("/wallet-sdk/v2") || - href.includes("/wallets/v2") || - href.includes("/storage-sdk/v2") || - href.includes("/storage/v2") - ); -} - // function isNewSDK(href: string) { // return href.includes("/typescript/v5"); // } diff --git a/apps/portal/src/components/others/DynamicHeight.tsx b/apps/portal/src/components/others/DynamicHeight.tsx index 1c2ac3c6e1b..7690de0d834 100644 --- a/apps/portal/src/components/others/DynamicHeight.tsx +++ b/apps/portal/src/components/others/DynamicHeight.tsx @@ -33,7 +33,7 @@ export function DynamicHeight(props: { ); } -export function useHeightObserver() { +function useHeightObserver() { const elementRef = useRef(null); const [height, setHeight] = useState(); diff --git a/apps/portal/src/components/others/PlatformSelector.tsx b/apps/portal/src/components/others/PlatformSelector.tsx index 83cbc7c28c3..7e0b3676c16 100644 --- a/apps/portal/src/components/others/PlatformSelector.tsx +++ b/apps/portal/src/components/others/PlatformSelector.tsx @@ -11,7 +11,7 @@ import { ChevronDownIcon } from "lucide-react"; import Link from "next/link"; import { connectLinks } from "../../app/Header"; -export type Platform = (typeof connectLinks)[number]["name"]; +type Platform = (typeof connectLinks)[number]["name"]; export function PlatformSelector(props: { selected: Platform; diff --git a/apps/portal/src/components/others/Sidebar.tsx b/apps/portal/src/components/others/Sidebar.tsx index d778b6cb4cc..c88c3dc0028 100644 --- a/apps/portal/src/components/others/Sidebar.tsx +++ b/apps/portal/src/components/others/Sidebar.tsx @@ -35,7 +35,7 @@ export type LinkGroup = { icon?: StaticImport | React.ReactElement; }; -export function isStaticImport(value: unknown): value is StaticImport { +function isStaticImport(value: unknown): value is StaticImport { const isObj = typeof value === "object" && value !== null; if (!isObj) { return false; diff --git a/apps/portal/src/components/others/TableOfContents.tsx b/apps/portal/src/components/others/TableOfContents.tsx index f9da322c1be..9918573a721 100644 --- a/apps/portal/src/components/others/TableOfContents.tsx +++ b/apps/portal/src/components/others/TableOfContents.tsx @@ -9,7 +9,7 @@ import { useEffect, useRef, useState } from "react"; * Automatically query all the heading anchors inside the
and creates a table of contents */ -export type TableOfContentNode = { +type TableOfContentNode = { name: string; href: string; level: number; @@ -137,7 +137,7 @@ export function TableOfContentsSideBar(props: { ); } -export function TableOfContents(props: { +function TableOfContents(props: { nodes: TableOfContentNode[]; linkClassName?: string; }) { diff --git a/apps/portal/src/components/others/V4SDKBanner.tsx b/apps/portal/src/components/others/V4SDKBanner.tsx deleted file mode 100644 index e52c6adc7d8..00000000000 --- a/apps/portal/src/components/others/V4SDKBanner.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import { Callout, DocLink, Paragraph } from "../Document"; - -export function V4SDKbanner() { - return ( - - - This document includes code references for Connect SDK v4. We will be - updating this document to use - Connect SDK v5 soon. - - - ); -} diff --git a/apps/portal/src/components/others/VersionSelector.tsx b/apps/portal/src/components/others/VersionSelector.tsx deleted file mode 100644 index 4b57bfb239b..00000000000 --- a/apps/portal/src/components/others/VersionSelector.tsx +++ /dev/null @@ -1,78 +0,0 @@ -"use client"; - -import { - DropdownMenu, - DropdownMenuContent, - DropdownMenuItem, - DropdownMenuTrigger, -} from "@/components/ui/dropdown-menu"; -import clsx from "clsx"; -import { ChevronDownIcon } from "lucide-react"; -import Link from "next/link"; -import { Button } from "../ui/button"; - -export function VersionSelector(props: { - selected: T; - versions: { name: T; href: string }[]; -}) { - return ( - - - - - - - {props.versions.map((version) => { - return ( - - - {version.name} - - - ); - })} - - - ); -} - -export function TypeScriptVersionSelector(props: { selected: "v4" | "v5" }) { - return ( -
-

- TypeScript SDK -

- -
- ); -} diff --git a/apps/portal/src/components/others/WalletCard.tsx b/apps/portal/src/components/others/WalletCard.tsx index a89bb7d1d6d..35870a37538 100644 --- a/apps/portal/src/components/others/WalletCard.tsx +++ b/apps/portal/src/components/others/WalletCard.tsx @@ -3,7 +3,7 @@ import type { StaticImport } from "next/dist/shared/lib/get-img-props"; import Image from "next/image"; import Link from "next/link"; -export type WalletInfo = { href: string; label: string; icon: StaticImport }; +type WalletInfo = { href: string; label: string; icon: StaticImport }; export function WalletCard(props: WalletInfo) { return ( diff --git a/apps/portal/src/components/ui/button.tsx b/apps/portal/src/components/ui/button.tsx index f2d72c6c9b8..61614702b1c 100644 --- a/apps/portal/src/components/ui/button.tsx +++ b/apps/portal/src/components/ui/button.tsx @@ -9,17 +9,16 @@ const buttonVariants = cva( { variants: { variant: { - primary: - "bg-primary hover:bg-primary/90 text-semibold text-primary-foreground ", + primary: "bg-primary hover:bg-primary/90 text-primary-foreground ", default: "bg-foreground text-background hover:bg-foreground/90", destructive: - "bg-destructive hover:bg-destructive/90 text-semibold text-destructive-foreground ", + "bg-destructive hover:bg-destructive/90 text-destructive-foreground ", outline: - "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground text-semibold", + "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground", secondary: - "bg-secondary hover:bg-secondary/80 text-semibold text-secondary-foreground ", - ghost: "hover:bg-accent text-semibold hover:text-accent-foreground", - link: "text-primary underline-offset-4 hover:underline text-semibold", + "bg-secondary hover:bg-secondary/80 text-secondary-foreground ", + ghost: "hover:bg-accent hover:text-accent-foreground", + link: "text-primary underline-offset-4 hover:underline", upsell: "bg-gradient-to-r from-purple-500 to-pink-500 text-white hover:from-purple-600 hover:to-pink-600 shadow-lg hover:shadow-xl transform hover:-translate-y-0.5 transition-all duration-200", }, @@ -27,7 +26,7 @@ const buttonVariants = cva( default: "h-10 px-4 py-2", sm: "h-9 rounded-md px-3", lg: "h-11 rounded-md px-8", - icon: "h-10 w-10", + icon: "size-10", }, }, defaultVariants: { diff --git a/apps/portal/src/components/ui/select.tsx b/apps/portal/src/components/ui/select.tsx index 6b90d2e7060..25ef96623a8 100644 --- a/apps/portal/src/components/ui/select.tsx +++ b/apps/portal/src/components/ui/select.tsx @@ -28,7 +28,7 @@ const SelectTrigger = React.forwardRef< > {children} - + )); @@ -46,7 +46,7 @@ const SelectScrollUpButton = React.forwardRef< )} {...props} > - + )); SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName; @@ -63,7 +63,7 @@ const SelectScrollDownButton = React.forwardRef< )} {...props} > - + )); SelectScrollDownButton.displayName = @@ -125,9 +125,9 @@ const SelectItem = React.forwardRef< )} {...props} > - + - + diff --git a/apps/portal/src/icons/API/GetIcon.tsx b/apps/portal/src/icons/API/GetIcon.tsx deleted file mode 100644 index aa1f07917a2..00000000000 --- a/apps/portal/src/icons/API/GetIcon.tsx +++ /dev/null @@ -1,19 +0,0 @@ -export function GetIcon(props: { className?: string }) { - return ( - - Get Icon - - - - ); -} diff --git a/apps/portal/src/icons/index.ts b/apps/portal/src/icons/index.ts index 38d39781120..0fca6590c9b 100644 --- a/apps/portal/src/icons/index.ts +++ b/apps/portal/src/icons/index.ts @@ -1,8 +1,5 @@ // sdks -export { GoIcon } from "./sdks/GoIcon"; -export { PythonIcon } from "./sdks/PythonIcon"; export { ReactIcon } from "./sdks/ReactIcon"; -export { SolidityIcon } from "./sdks/SolidityIcon"; export { TypeScriptIcon } from "./sdks/TypeScriptIcon"; export { UnityIcon } from "./sdks/UnityIcon"; export { DotNetIcon } from "./sdks/DotNetIcon"; @@ -14,31 +11,16 @@ export { ContractExploreIcon } from "./products/contracts/ContractExploreIcon"; export { ContractInteractIcon } from "./products/contracts/ContractInteractIcon"; export { ContractPublishIcon } from "./products/contracts/ContractPublishIcon"; // infra -export { InfraEngineIcon } from "./products/infra/InfraEngineIcon"; export { InfraRPCIcon } from "./products/infra/InfraRPCIcon"; export { InfraStorageIcon } from "./products/infra/InfraStorageIcon"; -export { InfraInsightIcon } from "./products/infra/InfraInsightIcon"; -// // payments -export { PaymentsNFTCheckoutIcon } from "./products/payments/PaymentsNFTCheckoutIcon"; -export { PaymentsSponsoredIcon } from "./products/payments/PaymentsSponsoredIcon"; -export { PayIcon } from "./products/payments/PayIcon"; // wallets -export { ConnectOverviewIcon } from "./products/wallets/ConnectOverviewIcon"; export { EcosystemWalletsIcon } from "./products/wallets/EcosystemWalletsIcon"; export { WalletsAuthIcon } from "./products/wallets/WalletsAuthIcon"; export { WalletsConnectIcon } from "./products/wallets/WalletsConnectIcon"; -export { WalletsInAppIcon } from "./products/wallets/WalletsInAppIcon"; export { WalletsSmartIcon } from "./products/wallets/WalletsSmartIcon"; -//nebula -export { NebulaIcon } from "./products/nebula/NebulaIcon"; -// solutions -export { GamingIcon } from "./solutions/GamingIcon"; //sidebar export { NebulaSideIcon } from "./sidebar/NebulaSideIcon"; -//api icons -export { GetIcon } from "./API/GetIcon"; - // general purposes export { ExternalLinkIcon } from "./ExternalLinkIcon"; diff --git a/apps/portal/src/icons/products/contracts/ContractBuildIcon.tsx b/apps/portal/src/icons/products/contracts/ContractBuildIcon.tsx deleted file mode 100644 index bc263855f80..00000000000 --- a/apps/portal/src/icons/products/contracts/ContractBuildIcon.tsx +++ /dev/null @@ -1,87 +0,0 @@ -export function ContractModularContractIcon(props: { className?: string }) { - return ( - - build contract - - - - - - - - - - - - - - - - - - - - - - - - ); -} diff --git a/apps/portal/src/icons/products/infra/InfraEngineIcon.tsx b/apps/portal/src/icons/products/infra/InfraEngineIcon.tsx deleted file mode 100644 index f2c3024f75b..00000000000 --- a/apps/portal/src/icons/products/infra/InfraEngineIcon.tsx +++ /dev/null @@ -1,83 +0,0 @@ -export function InfraEngineIcon(props: { className?: string }) { - return ( - - Engine - - - - - - - - - - - - - - - - - - - - - - - - ); -} diff --git a/apps/portal/src/icons/products/infra/InfraInsightIcon.tsx b/apps/portal/src/icons/products/infra/InfraInsightIcon.tsx deleted file mode 100644 index e5f23ae7ac3..00000000000 --- a/apps/portal/src/icons/products/infra/InfraInsightIcon.tsx +++ /dev/null @@ -1,53 +0,0 @@ -export function InfraInsightIcon(props: { className?: string }) { - return ( - - Insight - - - - - - - - - - - - ); -} diff --git a/apps/portal/src/icons/products/nebula/NebulaIcon.tsx b/apps/portal/src/icons/products/nebula/NebulaIcon.tsx deleted file mode 100644 index 281ecc27ec8..00000000000 --- a/apps/portal/src/icons/products/nebula/NebulaIcon.tsx +++ /dev/null @@ -1,20 +0,0 @@ -export function NebulaIcon(props: { className?: string }) { - return ( - - ); -} diff --git a/apps/portal/src/icons/products/payments/PayIcon.tsx b/apps/portal/src/icons/products/payments/PayIcon.tsx deleted file mode 100644 index 5c7d1348ae0..00000000000 --- a/apps/portal/src/icons/products/payments/PayIcon.tsx +++ /dev/null @@ -1,85 +0,0 @@ -export function PayIcon(props: { className?: string }) { - return ( - - pay - - - - - - - - - - - - - - - - - - - - - - - - - - ); -} diff --git a/apps/portal/src/icons/products/payments/PaymentsNFTCheckoutIcon.tsx b/apps/portal/src/icons/products/payments/PaymentsNFTCheckoutIcon.tsx deleted file mode 100644 index 3671f4054b4..00000000000 --- a/apps/portal/src/icons/products/payments/PaymentsNFTCheckoutIcon.tsx +++ /dev/null @@ -1,70 +0,0 @@ -export function PaymentsNFTCheckoutIcon(props: { className?: string }) { - return ( - - nft checkout - - - - - - - - - - - - - - - - - - - - ); -} diff --git a/apps/portal/src/icons/products/payments/PaymentsSponsoredIcon.tsx b/apps/portal/src/icons/products/payments/PaymentsSponsoredIcon.tsx deleted file mode 100644 index cd1984be4ae..00000000000 --- a/apps/portal/src/icons/products/payments/PaymentsSponsoredIcon.tsx +++ /dev/null @@ -1,72 +0,0 @@ -export function PaymentsSponsoredIcon(props: { className?: string }) { - return ( - - sponsored - - - - - - - - - - - - - - - - - - - - ); -} diff --git a/apps/portal/src/icons/products/wallets/ConnectOverviewIcon.tsx b/apps/portal/src/icons/products/wallets/ConnectOverviewIcon.tsx deleted file mode 100644 index ade8af4b801..00000000000 --- a/apps/portal/src/icons/products/wallets/ConnectOverviewIcon.tsx +++ /dev/null @@ -1,38 +0,0 @@ -export function ConnectOverviewIcon(props: { className?: string }) { - return ( - - connect overview - - - - - - - - - - ); -} diff --git a/apps/portal/src/icons/products/wallets/WalletsInAppIcon.tsx b/apps/portal/src/icons/products/wallets/WalletsInAppIcon.tsx deleted file mode 100644 index 81d07019bdb..00000000000 --- a/apps/portal/src/icons/products/wallets/WalletsInAppIcon.tsx +++ /dev/null @@ -1,90 +0,0 @@ -export function WalletsInAppIcon(props: { className?: string }) { - return ( - - In-App - - - - - - - - - - - - - - - - - - - - - - - - - ); -} diff --git a/apps/portal/src/icons/sdks/GoIcon.tsx b/apps/portal/src/icons/sdks/GoIcon.tsx deleted file mode 100644 index e205439d2b8..00000000000 --- a/apps/portal/src/icons/sdks/GoIcon.tsx +++ /dev/null @@ -1,19 +0,0 @@ -export function GoIcon(props: { className?: string }) { - return ( - - Go - - - - - - - - ); -} diff --git a/apps/portal/src/icons/sdks/PythonIcon.tsx b/apps/portal/src/icons/sdks/PythonIcon.tsx deleted file mode 100644 index 459b08d0562..00000000000 --- a/apps/portal/src/icons/sdks/PythonIcon.tsx +++ /dev/null @@ -1,23 +0,0 @@ -export function PythonIcon(props: { className?: string }) { - return ( - - Python - - - - ); -} diff --git a/apps/portal/src/icons/sdks/SolidityIcon.tsx b/apps/portal/src/icons/sdks/SolidityIcon.tsx deleted file mode 100644 index f6133b9a25b..00000000000 --- a/apps/portal/src/icons/sdks/SolidityIcon.tsx +++ /dev/null @@ -1,44 +0,0 @@ -export function SolidityIcon(props: { className?: string }) { - return ( - - Solidity - - - - - - - - ); -} diff --git a/apps/portal/src/icons/solutions/GamingIcon.tsx b/apps/portal/src/icons/solutions/GamingIcon.tsx deleted file mode 100644 index 8805c3549b2..00000000000 --- a/apps/portal/src/icons/solutions/GamingIcon.tsx +++ /dev/null @@ -1,33 +0,0 @@ -export function GamingIcon(props: { className?: string }) { - return ( - - Gaming - - - - - - - - - ); -} diff --git a/apps/portal/src/lib/highlight-matches.ts b/apps/portal/src/lib/highlight-matches.ts deleted file mode 100644 index 4c12655ed5f..00000000000 --- a/apps/portal/src/lib/highlight-matches.ts +++ /dev/null @@ -1,36 +0,0 @@ -import escapeStringRegexp from "escape-string-regexp"; - -type MatchArgs = { - value: string; - match: string; -}; - -export function getMatches({ value, match }: MatchArgs) { - const splitText = value.split(""); - const escapedSearch = escapeStringRegexp(match.trim()); - const regexp = new RegExp(escapedSearch.replaceAll(" ", "|"), "ig"); - let result: RegExpExecArray | null; - let index = 0; - const output: { text: string; highlight: boolean }[] = []; - - // biome-ignore lint/suspicious/noAssignInExpressions: TODO fix this - while ((result = regexp.exec(value)) && regexp.lastIndex !== 0) { - const before = splitText.splice(0, result.index - index).join(""); - const after = splitText.splice(0, regexp.lastIndex - result.index).join(""); - index = regexp.lastIndex; - output.push( - { - text: before, - highlight: false, - }, - { - text: after, - highlight: true, - }, - ); - } - - output.push({ text: splitText.join(""), highlight: false }); - - return output; -} diff --git a/apps/portal/tailwind.config.ts b/apps/portal/tailwind.config.ts index c3d4c2aa27d..081e1250c07 100644 --- a/apps/portal/tailwind.config.ts +++ b/apps/portal/tailwind.config.ts @@ -37,6 +37,7 @@ module.exports = { md: "calc(var(--radius) - 2px)", sm: "calc(var(--radius) - 4px)", full: "9999px", + none: "0", }, fontFamily: { sans: ["var(--font-sans)", "sans-serif"], diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 903d67f0b10..273d1d53e13 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -135,7 +135,7 @@ importers: version: 1.1.5(@types/react-dom@19.0.3(@types/react@19.0.2))(@types/react@19.0.2)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) '@sentry/nextjs': specifier: 8.45.1 - version: 8.45.1(@opentelemetry/core@1.30.0(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.56.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.0(@opentelemetry/api@1.9.0))(encoding@0.1.13)(next@15.1.3(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)) + version: 8.45.1(@opentelemetry/core@1.30.0(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.56.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.0(@opentelemetry/api@1.9.0))(encoding@0.1.13)(next@15.1.3(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)) '@shazow/whatsabi': specifier: ^0.18.0 version: 0.18.0(@noble/hashes@1.7.1)(typescript@5.7.2)(zod@3.24.1) @@ -150,7 +150,7 @@ importers: version: link:../../packages/service-utils '@vercel/functions': specifier: ^1.5.2 - version: 1.5.2(@aws-sdk/credential-provider-web-identity@3.587.0(@aws-sdk/client-sts@3.592.0)) + version: 1.5.2(@aws-sdk/credential-provider-web-identity@3.587.0) '@vercel/og': specifier: ^0.6.4 version: 0.6.4 @@ -282,7 +282,7 @@ importers: version: 2.6.0 tailwindcss-animate: specifier: ^1.0.7 - version: 1.0.7(tailwindcss@3.4.17(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2))) + version: 1.0.7(tailwindcss@3.4.17(ts-node@10.9.2(@types/node@22.10.2)(typescript@5.7.2))) thirdweb: specifier: workspace:* version: link:../../packages/thirdweb @@ -331,7 +331,7 @@ importers: version: 8.4.7(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10)) '@storybook/nextjs': specifier: 8.4.7 - version: 8.4.7(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)(next@15.1.3(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10))(type-fest@4.31.0)(typescript@5.7.2)(webpack-hot-middleware@2.26.1)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)) + version: 8.4.7(@swc/core@1.10.1)(esbuild@0.24.2)(next@15.1.3(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10))(type-fest@4.31.0)(typescript@5.7.2)(webpack-hot-middleware@2.26.1)(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)) '@storybook/react': specifier: 8.5.0 version: 8.5.0(@storybook/test@8.4.7(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10)))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10))(typescript@5.7.2) @@ -379,7 +379,7 @@ importers: version: 10.4.20(postcss@8.4.49) checkly: specifier: ^4.15.0 - version: 4.15.0(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(bufferutil@4.0.9)(typescript@5.7.2)(utf-8-validate@5.0.10) + version: 4.15.0(@swc/core@1.10.1)(@types/node@22.10.2)(bufferutil@4.0.9)(typescript@5.7.2)(utf-8-validate@5.0.10) eslint: specifier: 8.57.0 version: 8.57.0 @@ -406,7 +406,7 @@ importers: version: 8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10) tailwindcss: specifier: 3.4.17 - version: 3.4.17(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2)) + version: 3.4.17(ts-node@10.9.2(@types/node@22.10.2)(typescript@5.7.2)) typescript: specifier: 5.7.2 version: 5.7.2 @@ -536,10 +536,10 @@ importers: version: 8.4.49 tailwindcss: specifier: 3.4.17 - version: 3.4.17(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2)) + version: 3.4.17(ts-node@10.9.2(@types/node@22.10.2)(typescript@5.7.2)) tailwindcss-animate: specifier: ^1.0.7 - version: 1.0.7(tailwindcss@3.4.17(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2))) + version: 1.0.7(tailwindcss@3.4.17(ts-node@10.9.2(@types/node@22.10.2)(typescript@5.7.2))) typescript: specifier: 5.7.2 version: 5.7.2 @@ -551,13 +551,13 @@ importers: version: 1.0.6(react@19.0.0) '@mdx-js/loader': specifier: ^2.3.0 - version: 2.3.0(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))) + version: 2.3.0(webpack@5.97.1) '@mdx-js/react': specifier: ^2.3.0 version: 2.3.0(react@19.0.0) '@next/mdx': specifier: 15.1.0 - version: 15.1.0(@mdx-js/loader@2.3.0(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))))(@mdx-js/react@2.3.0(react@19.0.0)) + version: 15.1.0(@mdx-js/loader@2.3.0(webpack@5.97.1))(@mdx-js/react@2.3.0(react@19.0.0)) '@radix-ui/react-dialog': specifier: 1.1.4 version: 1.1.4(@types/react-dom@19.0.3(@types/react@19.0.2))(@types/react@19.0.2)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) @@ -588,9 +588,6 @@ importers: date-fns: specifier: 4.1.0 version: 4.1.0 - escape-string-regexp: - specifier: ^5.0.0 - version: 5.0.0 flexsearch: specifier: ^0.7.43 version: 0.7.43 @@ -627,9 +624,6 @@ importers: remark-gfm: specifier: 3.0.1 version: 3.0.1 - semver: - specifier: ^7.6.0 - version: 7.6.3 server-only: specifier: ^0.0.1 version: 0.0.1 @@ -641,7 +635,7 @@ importers: version: 2.6.0 tailwindcss-animate: specifier: ^1.0.7 - version: 1.0.7(tailwindcss@3.4.17(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2))) + version: 1.0.7(tailwindcss@3.4.17(ts-node@10.9.2(@types/node@22.10.2)(typescript@5.7.2))) thirdweb: specifier: workspace:* version: link:../../packages/thirdweb @@ -652,6 +646,9 @@ importers: specifier: 0.9.4 version: 0.9.4(typescript@5.7.2) devDependencies: + '@next/eslint-plugin-next': + specifier: 15.1.3 + version: 15.1.3 '@types/flexsearch': specifier: ^0.7.6 version: 0.7.6 @@ -688,9 +685,6 @@ importers: eslint-config-biome: specifier: 1.9.4 version: 1.9.4 - eslint-config-next: - specifier: 15.1.4 - version: 15.1.4(eslint@8.57.0)(typescript@5.7.2) eslint-plugin-mdx: specifier: ^3.1.5 version: 3.1.5(eslint@8.57.0) @@ -699,7 +693,10 @@ importers: version: 1.2.4 eslint-plugin-tailwindcss: specifier: ^3.17.5 - version: 3.17.5(tailwindcss@3.4.17(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2))) + version: 3.17.5(tailwindcss@3.4.17(ts-node@10.9.2(@types/node@22.10.2)(typescript@5.7.2))) + knip: + specifier: 5.41.0 + version: 5.41.0(@types/node@22.10.2)(typescript@5.7.2) next-sitemap: specifier: ^4.2.3 version: 4.2.3(next@15.1.3(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)) @@ -708,7 +705,7 @@ importers: version: 8.4.49 tailwindcss: specifier: 3.4.17 - version: 3.4.17(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2)) + version: 3.4.17(ts-node@10.9.2(@types/node@22.10.2)(typescript@5.7.2)) tsx: specifier: 4.19.2 version: 4.19.2 @@ -777,7 +774,7 @@ importers: version: 2.6.0 tailwindcss-animate: specifier: ^1.0.7 - version: 1.0.7(tailwindcss@3.4.17(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2))) + version: 1.0.7(tailwindcss@3.4.17(ts-node@10.9.2(@types/node@22.10.2)(typescript@5.7.2))) thirdweb: specifier: workspace:* version: link:../../packages/thirdweb @@ -826,7 +823,7 @@ importers: version: 6.0.1(jiti@2.4.2)(postcss@8.4.49)(tsx@4.19.2)(yaml@2.7.0) tailwindcss: specifier: 3.4.17 - version: 3.4.17(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2)) + version: 3.4.17(ts-node@10.9.2(@types/node@22.10.2)(typescript@5.7.2)) typescript: specifier: 5.7.2 version: 5.7.2 @@ -841,7 +838,7 @@ importers: version: 3.592.0 '@aws-sdk/credential-providers': specifier: 3.592.0 - version: 3.592.0(@aws-sdk/client-sso-oidc@3.592.0(@aws-sdk/client-sts@3.592.0)) + version: 3.592.0(@aws-sdk/client-sso-oidc@3.592.0) '@coinbase/wallet-mobile-sdk': specifier: ^1 version: 1.1.2(expo@52.0.23(@babel/core@7.26.0)(@babel/preset-env@7.26.0(@babel/core@7.26.0))(bufferutil@4.0.9)(encoding@0.1.13)(graphql@16.10.0)(react-native@0.76.6(@babel/core@7.26.0)(@babel/preset-env@7.26.0(@babel/core@7.26.0))(bufferutil@4.0.9)(encoding@0.1.13)(react@19.0.0)(utf-8-validate@5.0.10))(react@19.0.0)(utf-8-validate@5.0.10))(react-native@0.76.6(@babel/core@7.26.0)(@babel/preset-env@7.26.0(@babel/core@7.26.0))(bufferutil@4.0.9)(encoding@0.1.13)(react@19.0.0)(utf-8-validate@5.0.10))(react@19.0.0) @@ -991,7 +988,7 @@ importers: version: 3.592.0 '@aws-sdk/credential-providers': specifier: 3.592.0 - version: 3.592.0(@aws-sdk/client-sso-oidc@3.592.0(@aws-sdk/client-sts@3.592.0)) + version: 3.592.0(@aws-sdk/client-sso-oidc@3.592.0) '@biomejs/biome': specifier: 1.9.4 version: 1.9.4 @@ -15464,6 +15461,53 @@ snapshots: transitivePeerDependencies: - aws-crt + '@aws-sdk/client-sts@3.592.0(@aws-sdk/client-sso-oidc@3.592.0)': + dependencies: + '@aws-crypto/sha256-browser': 3.0.0 + '@aws-crypto/sha256-js': 3.0.0 + '@aws-sdk/client-sso-oidc': 3.592.0(@aws-sdk/client-sts@3.592.0) + '@aws-sdk/core': 3.592.0 + '@aws-sdk/credential-provider-node': 3.592.0(@aws-sdk/client-sso-oidc@3.592.0)(@aws-sdk/client-sts@3.592.0(@aws-sdk/client-sso-oidc@3.592.0)) + '@aws-sdk/middleware-host-header': 3.577.0 + '@aws-sdk/middleware-logger': 3.577.0 + '@aws-sdk/middleware-recursion-detection': 3.577.0 + '@aws-sdk/middleware-user-agent': 3.587.0 + '@aws-sdk/region-config-resolver': 3.587.0 + '@aws-sdk/types': 3.577.0 + '@aws-sdk/util-endpoints': 3.587.0 + '@aws-sdk/util-user-agent-browser': 3.577.0 + '@aws-sdk/util-user-agent-node': 3.587.0 + '@smithy/config-resolver': 3.0.13 + '@smithy/core': 2.5.7 + '@smithy/fetch-http-handler': 3.2.9 + '@smithy/hash-node': 3.0.11 + '@smithy/invalid-dependency': 3.0.11 + '@smithy/middleware-content-length': 3.0.13 + '@smithy/middleware-endpoint': 3.2.8 + '@smithy/middleware-retry': 3.0.34 + '@smithy/middleware-serde': 3.0.11 + '@smithy/middleware-stack': 3.0.11 + '@smithy/node-config-provider': 3.1.12 + '@smithy/node-http-handler': 3.3.3 + '@smithy/protocol-http': 4.1.8 + '@smithy/smithy-client': 3.7.0 + '@smithy/types': 3.7.2 + '@smithy/url-parser': 3.0.11 + '@smithy/util-base64': 3.0.0 + '@smithy/util-body-length-browser': 3.0.0 + '@smithy/util-body-length-node': 3.0.0 + '@smithy/util-defaults-mode-browser': 3.0.34 + '@smithy/util-defaults-mode-node': 3.0.34 + '@smithy/util-endpoints': 2.1.7 + '@smithy/util-middleware': 3.0.11 + '@smithy/util-retry': 3.0.11 + '@smithy/util-utf8': 3.0.0 + tslib: 2.8.1 + transitivePeerDependencies: + - '@aws-sdk/client-sso-oidc' + - aws-crt + optional: true + '@aws-sdk/core@3.592.0': dependencies: '@smithy/core': 2.5.7 @@ -15509,7 +15553,7 @@ snapshots: '@aws-sdk/credential-provider-env': 3.587.0 '@aws-sdk/credential-provider-http': 3.587.0 '@aws-sdk/credential-provider-process': 3.587.0 - '@aws-sdk/credential-provider-sso': 3.592.0(@aws-sdk/client-sso-oidc@3.592.0(@aws-sdk/client-sts@3.592.0)) + '@aws-sdk/credential-provider-sso': 3.592.0(@aws-sdk/client-sso-oidc@3.592.0) '@aws-sdk/credential-provider-web-identity': 3.587.0(@aws-sdk/client-sts@3.592.0) '@aws-sdk/types': 3.577.0 '@smithy/credential-provider-imds': 3.2.8 @@ -15521,13 +15565,32 @@ snapshots: - '@aws-sdk/client-sso-oidc' - aws-crt + '@aws-sdk/credential-provider-ini@3.592.0(@aws-sdk/client-sso-oidc@3.592.0)(@aws-sdk/client-sts@3.592.0(@aws-sdk/client-sso-oidc@3.592.0))': + dependencies: + '@aws-sdk/client-sts': 3.592.0(@aws-sdk/client-sso-oidc@3.592.0) + '@aws-sdk/credential-provider-env': 3.587.0 + '@aws-sdk/credential-provider-http': 3.587.0 + '@aws-sdk/credential-provider-process': 3.587.0 + '@aws-sdk/credential-provider-sso': 3.592.0(@aws-sdk/client-sso-oidc@3.592.0) + '@aws-sdk/credential-provider-web-identity': 3.587.0(@aws-sdk/client-sts@3.592.0(@aws-sdk/client-sso-oidc@3.592.0)) + '@aws-sdk/types': 3.577.0 + '@smithy/credential-provider-imds': 3.2.8 + '@smithy/property-provider': 3.1.11 + '@smithy/shared-ini-file-loader': 3.1.12 + '@smithy/types': 3.7.2 + tslib: 2.8.1 + transitivePeerDependencies: + - '@aws-sdk/client-sso-oidc' + - aws-crt + optional: true + '@aws-sdk/credential-provider-node@3.592.0(@aws-sdk/client-sso-oidc@3.592.0(@aws-sdk/client-sts@3.592.0))(@aws-sdk/client-sts@3.592.0)': dependencies: '@aws-sdk/credential-provider-env': 3.587.0 '@aws-sdk/credential-provider-http': 3.587.0 '@aws-sdk/credential-provider-ini': 3.592.0(@aws-sdk/client-sso-oidc@3.592.0(@aws-sdk/client-sts@3.592.0))(@aws-sdk/client-sts@3.592.0) '@aws-sdk/credential-provider-process': 3.587.0 - '@aws-sdk/credential-provider-sso': 3.592.0(@aws-sdk/client-sso-oidc@3.592.0(@aws-sdk/client-sts@3.592.0)) + '@aws-sdk/credential-provider-sso': 3.592.0(@aws-sdk/client-sso-oidc@3.592.0) '@aws-sdk/credential-provider-web-identity': 3.587.0(@aws-sdk/client-sts@3.592.0) '@aws-sdk/types': 3.577.0 '@smithy/credential-provider-imds': 3.2.8 @@ -15540,6 +15603,26 @@ snapshots: - '@aws-sdk/client-sts' - aws-crt + '@aws-sdk/credential-provider-node@3.592.0(@aws-sdk/client-sso-oidc@3.592.0)(@aws-sdk/client-sts@3.592.0(@aws-sdk/client-sso-oidc@3.592.0))': + dependencies: + '@aws-sdk/credential-provider-env': 3.587.0 + '@aws-sdk/credential-provider-http': 3.587.0 + '@aws-sdk/credential-provider-ini': 3.592.0(@aws-sdk/client-sso-oidc@3.592.0)(@aws-sdk/client-sts@3.592.0(@aws-sdk/client-sso-oidc@3.592.0)) + '@aws-sdk/credential-provider-process': 3.587.0 + '@aws-sdk/credential-provider-sso': 3.592.0(@aws-sdk/client-sso-oidc@3.592.0) + '@aws-sdk/credential-provider-web-identity': 3.587.0(@aws-sdk/client-sts@3.592.0(@aws-sdk/client-sso-oidc@3.592.0)) + '@aws-sdk/types': 3.577.0 + '@smithy/credential-provider-imds': 3.2.8 + '@smithy/property-provider': 3.1.11 + '@smithy/shared-ini-file-loader': 3.1.12 + '@smithy/types': 3.7.2 + tslib: 2.8.1 + transitivePeerDependencies: + - '@aws-sdk/client-sso-oidc' + - '@aws-sdk/client-sts' + - aws-crt + optional: true + '@aws-sdk/credential-provider-process@3.587.0': dependencies: '@aws-sdk/types': 3.577.0 @@ -15548,10 +15631,10 @@ snapshots: '@smithy/types': 3.7.2 tslib: 2.8.1 - '@aws-sdk/credential-provider-sso@3.592.0(@aws-sdk/client-sso-oidc@3.592.0(@aws-sdk/client-sts@3.592.0))': + '@aws-sdk/credential-provider-sso@3.592.0(@aws-sdk/client-sso-oidc@3.592.0)': dependencies: '@aws-sdk/client-sso': 3.592.0 - '@aws-sdk/token-providers': 3.587.0(@aws-sdk/client-sso-oidc@3.592.0(@aws-sdk/client-sts@3.592.0)) + '@aws-sdk/token-providers': 3.587.0(@aws-sdk/client-sso-oidc@3.592.0) '@aws-sdk/types': 3.577.0 '@smithy/property-provider': 3.1.11 '@smithy/shared-ini-file-loader': 3.1.12 @@ -15561,6 +15644,15 @@ snapshots: - '@aws-sdk/client-sso-oidc' - aws-crt + '@aws-sdk/credential-provider-web-identity@3.587.0(@aws-sdk/client-sts@3.592.0(@aws-sdk/client-sso-oidc@3.592.0))': + dependencies: + '@aws-sdk/client-sts': 3.592.0(@aws-sdk/client-sso-oidc@3.592.0) + '@aws-sdk/types': 3.577.0 + '@smithy/property-provider': 3.1.11 + '@smithy/types': 3.7.2 + tslib: 2.8.1 + optional: true + '@aws-sdk/credential-provider-web-identity@3.587.0(@aws-sdk/client-sts@3.592.0)': dependencies: '@aws-sdk/client-sts': 3.592.0 @@ -15569,7 +15661,7 @@ snapshots: '@smithy/types': 3.7.2 tslib: 2.8.1 - '@aws-sdk/credential-providers@3.592.0(@aws-sdk/client-sso-oidc@3.592.0(@aws-sdk/client-sts@3.592.0))': + '@aws-sdk/credential-providers@3.592.0(@aws-sdk/client-sso-oidc@3.592.0)': dependencies: '@aws-sdk/client-cognito-identity': 3.592.0 '@aws-sdk/client-sso': 3.592.0 @@ -15580,7 +15672,7 @@ snapshots: '@aws-sdk/credential-provider-ini': 3.592.0(@aws-sdk/client-sso-oidc@3.592.0(@aws-sdk/client-sts@3.592.0))(@aws-sdk/client-sts@3.592.0) '@aws-sdk/credential-provider-node': 3.592.0(@aws-sdk/client-sso-oidc@3.592.0(@aws-sdk/client-sts@3.592.0))(@aws-sdk/client-sts@3.592.0) '@aws-sdk/credential-provider-process': 3.587.0 - '@aws-sdk/credential-provider-sso': 3.592.0(@aws-sdk/client-sso-oidc@3.592.0(@aws-sdk/client-sts@3.592.0)) + '@aws-sdk/credential-provider-sso': 3.592.0(@aws-sdk/client-sso-oidc@3.592.0) '@aws-sdk/credential-provider-web-identity': 3.587.0(@aws-sdk/client-sts@3.592.0) '@aws-sdk/types': 3.577.0 '@smithy/credential-provider-imds': 3.2.8 @@ -15628,7 +15720,7 @@ snapshots: '@smithy/util-middleware': 3.0.11 tslib: 2.8.1 - '@aws-sdk/token-providers@3.587.0(@aws-sdk/client-sso-oidc@3.592.0(@aws-sdk/client-sts@3.592.0))': + '@aws-sdk/token-providers@3.587.0(@aws-sdk/client-sso-oidc@3.592.0)': dependencies: '@aws-sdk/client-sso-oidc': 3.592.0(@aws-sdk/client-sts@3.592.0) '@aws-sdk/types': 3.577.0 @@ -15721,7 +15813,7 @@ snapshots: '@babel/helper-annotate-as-pure@7.25.9': dependencies: - '@babel/types': 7.26.3 + '@babel/types': 7.26.5 '@babel/helper-compilation-targets@7.25.9': dependencies: @@ -15765,7 +15857,7 @@ snapshots: '@babel/helper-member-expression-to-functions@7.25.9': dependencies: '@babel/traverse': 7.26.4 - '@babel/types': 7.26.3 + '@babel/types': 7.26.5 transitivePeerDependencies: - supports-color @@ -15787,7 +15879,7 @@ snapshots: '@babel/helper-optimise-call-expression@7.25.9': dependencies: - '@babel/types': 7.26.3 + '@babel/types': 7.26.5 '@babel/helper-plugin-utils@7.25.9': {} @@ -15814,7 +15906,7 @@ snapshots: '@babel/helper-skip-transparent-expression-wrappers@7.25.9': dependencies: '@babel/traverse': 7.26.4 - '@babel/types': 7.26.3 + '@babel/types': 7.26.5 transitivePeerDependencies: - supports-color @@ -18440,11 +18532,11 @@ snapshots: react: 19.0.0 react-dom: 19.0.0(react@19.0.0) - '@mdx-js/loader@2.3.0(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15)))': + '@mdx-js/loader@2.3.0(webpack@5.97.1)': dependencies: '@mdx-js/mdx': 2.3.0 source-map: 0.7.4 - webpack: 5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15)) + webpack: 5.97.1 transitivePeerDependencies: - supports-color @@ -18770,11 +18862,11 @@ snapshots: dependencies: fast-glob: 3.3.1 - '@next/mdx@15.1.0(@mdx-js/loader@2.3.0(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))))(@mdx-js/react@2.3.0(react@19.0.0))': + '@next/mdx@15.1.0(@mdx-js/loader@2.3.0(webpack@5.97.1))(@mdx-js/react@2.3.0(react@19.0.0))': dependencies: source-map: 0.7.4 optionalDependencies: - '@mdx-js/loader': 2.3.0(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))) + '@mdx-js/loader': 2.3.0(webpack@5.97.1) '@mdx-js/react': 2.3.0(react@19.0.0) '@next/swc-darwin-arm64@15.1.3': @@ -18946,7 +19038,7 @@ snapshots: widest-line: 3.1.0 wrap-ansi: 7.0.0 - '@oclif/core@2.8.11(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2)': + '@oclif/core@2.8.11(@swc/core@1.10.1)(@types/node@22.10.2)(typescript@5.7.2)': dependencies: '@types/cli-progress': 3.11.6 ansi-escapes: 4.3.2 @@ -18972,7 +19064,7 @@ snapshots: strip-ansi: 6.0.1 supports-color: 8.1.1 supports-hyperlinks: 2.3.0 - ts-node: 10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2) + ts-node: 10.9.2(@swc/core@1.10.1)(@types/node@22.10.2)(typescript@5.7.2) tslib: 2.8.1 widest-line: 3.1.0 wordwrap: 1.0.0 @@ -19010,10 +19102,10 @@ snapshots: dependencies: '@oclif/core': 1.26.2 - '@oclif/plugin-not-found@2.3.23(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2)': + '@oclif/plugin-not-found@2.3.23(@swc/core@1.10.1)(@types/node@22.10.2)(typescript@5.7.2)': dependencies: '@oclif/color': 1.0.13 - '@oclif/core': 2.8.11(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2) + '@oclif/core': 2.8.11(@swc/core@1.10.1)(@types/node@22.10.2)(typescript@5.7.2) fast-levenshtein: 3.0.0 lodash: 4.17.21 transitivePeerDependencies: @@ -19038,9 +19130,9 @@ snapshots: transitivePeerDependencies: - supports-color - '@oclif/plugin-warn-if-update-available@2.0.24(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2)': + '@oclif/plugin-warn-if-update-available@2.0.24(@swc/core@1.10.1)(@types/node@22.10.2)(typescript@5.7.2)': dependencies: - '@oclif/core': 2.8.11(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2) + '@oclif/core': 2.8.11(@swc/core@1.10.1)(@types/node@22.10.2)(typescript@5.7.2) chalk: 4.1.2 debug: 4.4.0(supports-color@8.1.1) fs-extra: 9.1.0 @@ -19358,7 +19450,7 @@ snapshots: dependencies: playwright: 1.49.1 - '@pmmmwh/react-refresh-webpack-plugin@0.5.15(react-refresh@0.14.2)(type-fest@4.31.0)(webpack-hot-middleware@2.26.1)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2))': + '@pmmmwh/react-refresh-webpack-plugin@0.5.15(react-refresh@0.14.2)(type-fest@4.31.0)(webpack-hot-middleware@2.26.1)(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2))': dependencies: ansi-html: 0.0.9 core-js-pure: 3.39.0 @@ -19368,7 +19460,7 @@ snapshots: react-refresh: 0.14.2 schema-utils: 4.3.0 source-map: 0.7.4 - webpack: 5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2) + webpack: 5.97.1(@swc/core@1.10.1)(esbuild@0.24.2) optionalDependencies: type-fest: 4.31.0 webpack-hot-middleware: 2.26.1 @@ -20627,7 +20719,7 @@ snapshots: '@sentry/core@8.45.1': {} - '@sentry/nextjs@8.45.1(@opentelemetry/core@1.30.0(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.56.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.0(@opentelemetry/api@1.9.0))(encoding@0.1.13)(next@15.1.3(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2))': + '@sentry/nextjs@8.45.1(@opentelemetry/core@1.30.0(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.56.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.0(@opentelemetry/api@1.9.0))(encoding@0.1.13)(next@15.1.3(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2))': dependencies: '@opentelemetry/api': 1.9.0 '@opentelemetry/semantic-conventions': 1.28.0 @@ -20638,7 +20730,7 @@ snapshots: '@sentry/opentelemetry': 8.45.1(@opentelemetry/api@1.9.0)(@opentelemetry/core@1.30.0(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.56.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.0(@opentelemetry/api@1.9.0))(@opentelemetry/semantic-conventions@1.28.0) '@sentry/react': 8.45.1(react@19.0.0) '@sentry/vercel-edge': 8.45.1 - '@sentry/webpack-plugin': 2.22.7(encoding@0.1.13)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)) + '@sentry/webpack-plugin': 2.22.7(encoding@0.1.13)(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)) chalk: 3.0.0 next: 15.1.3(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) resolve: 1.22.8 @@ -20714,12 +20806,12 @@ snapshots: '@opentelemetry/api': 1.9.0 '@sentry/core': 8.45.1 - '@sentry/webpack-plugin@2.22.7(encoding@0.1.13)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2))': + '@sentry/webpack-plugin@2.22.7(encoding@0.1.13)(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2))': dependencies: '@sentry/bundler-plugin-core': 2.22.7(encoding@0.1.13) unplugin: 1.0.1 uuid: 9.0.1 - webpack: 5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2) + webpack: 5.97.1(@swc/core@1.10.1)(esbuild@0.24.2) transitivePeerDependencies: - encoding - supports-color @@ -21437,7 +21529,7 @@ snapshots: ts-dedent: 2.2.0 vite: 6.0.10(@types/node@22.10.2)(jiti@2.4.2)(lightningcss@1.27.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.7.0) - '@storybook/builder-webpack5@8.4.7(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10))(typescript@5.7.2)': + '@storybook/builder-webpack5@8.4.7(@swc/core@1.10.1)(esbuild@0.24.2)(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10))(typescript@5.7.2)': dependencies: '@storybook/core-webpack': 8.4.7(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10)) '@types/node': 22.10.2 @@ -21446,23 +21538,23 @@ snapshots: case-sensitive-paths-webpack-plugin: 2.4.0 cjs-module-lexer: 1.4.1 constants-browserify: 1.0.0 - css-loader: 6.11.0(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)) + css-loader: 6.11.0(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)) es-module-lexer: 1.6.0 - fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.7.2)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)) - html-webpack-plugin: 5.6.3(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)) + fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.7.2)(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)) + html-webpack-plugin: 5.6.3(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)) magic-string: 0.30.17 path-browserify: 1.0.1 process: 0.11.10 semver: 7.6.3 storybook: 8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10) - style-loader: 3.3.4(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)) - terser-webpack-plugin: 5.3.10(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)) + style-loader: 3.3.4(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)) + terser-webpack-plugin: 5.3.10(@swc/core@1.10.1)(esbuild@0.24.2)(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)) ts-dedent: 2.2.0 url: 0.11.4 util: 0.12.5 util-deprecate: 1.0.2 - webpack: 5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2) - webpack-dev-middleware: 6.1.3(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)) + webpack: 5.97.1(@swc/core@1.10.1)(esbuild@0.24.2) + webpack-dev-middleware: 6.1.3(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)) webpack-hot-middleware: 2.26.1 webpack-virtual-modules: 0.6.2 optionalDependencies: @@ -21543,7 +21635,7 @@ snapshots: dependencies: storybook: 8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10) - '@storybook/nextjs@8.4.7(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)(next@15.1.3(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10))(type-fest@4.31.0)(typescript@5.7.2)(webpack-hot-middleware@2.26.1)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2))': + '@storybook/nextjs@8.4.7(@swc/core@1.10.1)(esbuild@0.24.2)(next@15.1.3(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10))(type-fest@4.31.0)(typescript@5.7.2)(webpack-hot-middleware@2.26.1)(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2))': dependencies: '@babel/core': 7.26.0 '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.26.0) @@ -21558,31 +21650,31 @@ snapshots: '@babel/preset-react': 7.26.3(@babel/core@7.26.0) '@babel/preset-typescript': 7.26.0(@babel/core@7.26.0) '@babel/runtime': 7.26.0 - '@pmmmwh/react-refresh-webpack-plugin': 0.5.15(react-refresh@0.14.2)(type-fest@4.31.0)(webpack-hot-middleware@2.26.1)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)) - '@storybook/builder-webpack5': 8.4.7(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10))(typescript@5.7.2) - '@storybook/preset-react-webpack': 8.4.7(@storybook/test@8.4.7(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10)))(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10))(typescript@5.7.2) + '@pmmmwh/react-refresh-webpack-plugin': 0.5.15(react-refresh@0.14.2)(type-fest@4.31.0)(webpack-hot-middleware@2.26.1)(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)) + '@storybook/builder-webpack5': 8.4.7(@swc/core@1.10.1)(esbuild@0.24.2)(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10))(typescript@5.7.2) + '@storybook/preset-react-webpack': 8.4.7(@storybook/test@8.4.7(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10)))(@swc/core@1.10.1)(esbuild@0.24.2)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10))(typescript@5.7.2) '@storybook/react': 8.4.7(@storybook/test@8.4.7(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10)))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10))(typescript@5.7.2) '@storybook/test': 8.4.7(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10)) '@types/node': 22.10.2 '@types/semver': 7.5.8 - babel-loader: 9.2.1(@babel/core@7.26.0)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)) - css-loader: 6.11.0(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)) + babel-loader: 9.2.1(@babel/core@7.26.0)(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)) + css-loader: 6.11.0(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)) find-up: 5.0.0 image-size: 1.2.0 loader-utils: 3.3.1 next: 15.1.3(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) - node-polyfill-webpack-plugin: 2.0.1(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)) + node-polyfill-webpack-plugin: 2.0.1(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)) pnp-webpack-plugin: 1.7.0(typescript@5.7.2) postcss: 8.4.49 - postcss-loader: 8.1.1(postcss@8.4.49)(typescript@5.7.2)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)) + postcss-loader: 8.1.1(postcss@8.4.49)(typescript@5.7.2)(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)) react: 19.0.0 react-dom: 19.0.0(react@19.0.0) react-refresh: 0.14.2 resolve-url-loader: 5.0.0 - sass-loader: 13.3.3(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)) + sass-loader: 13.3.3(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)) semver: 7.6.3 storybook: 8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10) - style-loader: 3.3.4(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)) + style-loader: 3.3.4(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)) styled-jsx: 5.1.6(@babel/core@7.26.0)(react@19.0.0) ts-dedent: 2.2.0 tsconfig-paths: 4.2.0 @@ -21590,7 +21682,7 @@ snapshots: optionalDependencies: sharp: 0.33.5 typescript: 5.7.2 - webpack: 5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2) + webpack: 5.97.1(@swc/core@1.10.1)(esbuild@0.24.2) transitivePeerDependencies: - '@rspack/core' - '@swc/core' @@ -21610,11 +21702,11 @@ snapshots: - webpack-hot-middleware - webpack-plugin-serve - '@storybook/preset-react-webpack@8.4.7(@storybook/test@8.4.7(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10)))(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10))(typescript@5.7.2)': + '@storybook/preset-react-webpack@8.4.7(@storybook/test@8.4.7(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10)))(@swc/core@1.10.1)(esbuild@0.24.2)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10))(typescript@5.7.2)': dependencies: '@storybook/core-webpack': 8.4.7(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10)) '@storybook/react': 8.4.7(@storybook/test@8.4.7(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10)))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10))(typescript@5.7.2) - '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.7.2)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)) + '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.7.2)(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)) '@types/node': 22.10.2 '@types/semver': 7.5.8 find-up: 5.0.0 @@ -21626,7 +21718,7 @@ snapshots: semver: 7.6.3 storybook: 8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10) tsconfig-paths: 4.2.0 - webpack: 5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2) + webpack: 5.97.1(@swc/core@1.10.1)(esbuild@0.24.2) optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: @@ -21645,7 +21737,7 @@ snapshots: dependencies: storybook: 8.4.7(bufferutil@4.0.9)(prettier@3.3.3)(utf-8-validate@5.0.10) - '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.7.2)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2))': + '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.7.2)(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2))': dependencies: debug: 4.4.0(supports-color@8.1.1) endent: 2.1.0 @@ -21655,7 +21747,7 @@ snapshots: react-docgen-typescript: 2.2.2(typescript@5.7.2) tslib: 2.8.1 typescript: 5.7.2 - webpack: 5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2) + webpack: 5.97.1(@swc/core@1.10.1)(esbuild@0.24.2) transitivePeerDependencies: - supports-color @@ -22110,7 +22202,7 @@ snapshots: '@swc/core-win32-x64-msvc@1.10.1': optional: true - '@swc/core@1.10.1(@swc/helpers@0.5.15)': + '@swc/core@1.10.1': dependencies: '@swc/counter': 0.1.3 '@swc/types': 0.1.17 @@ -22125,7 +22217,6 @@ snapshots: '@swc/core-win32-arm64-msvc': 1.10.1 '@swc/core-win32-ia32-msvc': 1.10.1 '@swc/core-win32-x64-msvc': 1.10.1 - '@swc/helpers': 0.5.15 optional: true '@swc/counter@0.1.3': {} @@ -22694,9 +22785,9 @@ snapshots: '@urql/core': 5.1.0(graphql@16.10.0) wonka: 6.3.4 - '@vercel/functions@1.5.2(@aws-sdk/credential-provider-web-identity@3.587.0(@aws-sdk/client-sts@3.592.0))': + '@vercel/functions@1.5.2(@aws-sdk/credential-provider-web-identity@3.587.0)': optionalDependencies: - '@aws-sdk/credential-provider-web-identity': 3.587.0(@aws-sdk/client-sts@3.592.0) + '@aws-sdk/credential-provider-web-identity': 3.587.0(@aws-sdk/client-sts@3.592.0(@aws-sdk/client-sso-oidc@3.592.0)) '@vercel/og@0.6.4': dependencies: @@ -23923,12 +24014,12 @@ snapshots: transitivePeerDependencies: - supports-color - babel-loader@9.2.1(@babel/core@7.26.0)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)): + babel-loader@9.2.1(@babel/core@7.26.0)(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)): dependencies: '@babel/core': 7.26.0 find-cache-dir: 4.0.0 schema-utils: 4.3.0 - webpack: 5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2) + webpack: 5.97.1(@swc/core@1.10.1)(esbuild@0.24.2) babel-plugin-istanbul@6.1.1: dependencies: @@ -24421,13 +24512,13 @@ snapshots: check-error@2.1.1: {} - checkly@4.15.0(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(bufferutil@4.0.9)(typescript@5.7.2)(utf-8-validate@5.0.10): + checkly@4.15.0(@swc/core@1.10.1)(@types/node@22.10.2)(bufferutil@4.0.9)(typescript@5.7.2)(utf-8-validate@5.0.10): dependencies: - '@oclif/core': 2.8.11(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2) + '@oclif/core': 2.8.11(@swc/core@1.10.1)(@types/node@22.10.2)(typescript@5.7.2) '@oclif/plugin-help': 5.1.20 - '@oclif/plugin-not-found': 2.3.23(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2) + '@oclif/plugin-not-found': 2.3.23(@swc/core@1.10.1)(@types/node@22.10.2)(typescript@5.7.2) '@oclif/plugin-plugins': 5.4.4 - '@oclif/plugin-warn-if-update-available': 2.0.24(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2) + '@oclif/plugin-warn-if-update-available': 2.0.24(@swc/core@1.10.1)(@types/node@22.10.2)(typescript@5.7.2) '@typescript-eslint/typescript-estree': 6.19.0(typescript@5.7.2) acorn: 8.8.1 acorn-walk: 8.2.0 @@ -24864,7 +24955,7 @@ snapshots: css-gradient-parser@0.0.16: {} - css-loader@6.11.0(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)): + css-loader@6.11.0(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)): dependencies: icss-utils: 5.1.0(postcss@8.4.49) postcss: 8.4.49 @@ -24875,7 +24966,7 @@ snapshots: postcss-value-parser: 4.2.0 semver: 7.6.3 optionalDependencies: - webpack: 5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2) + webpack: 5.97.1(@swc/core@1.10.1)(esbuild@0.24.2) css-select@4.3.0: dependencies: @@ -25635,8 +25726,8 @@ snapshots: '@typescript-eslint/parser': 7.14.1(eslint@8.57.0)(typescript@5.7.2) eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.7.0(eslint-plugin-import@2.31.0)(eslint@8.57.0) - eslint-plugin-import: 2.31.0(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0)(eslint@8.57.0) + eslint-import-resolver-typescript: 3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.7.2))(eslint@8.57.0))(eslint@8.57.0) + eslint-plugin-import: 2.31.0(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.7.2))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) eslint-plugin-jsx-a11y: 6.10.2(eslint@8.57.0) eslint-plugin-react: 7.37.3(eslint@8.57.0) eslint-plugin-react-hooks: 5.1.0(eslint@8.57.0) @@ -25655,7 +25746,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0)(eslint@8.57.0): + eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.7.2))(eslint@8.57.0))(eslint@8.57.0): dependencies: '@nolyfill/is-core-module': 1.0.39 debug: 4.4.0(supports-color@8.1.1) @@ -25667,7 +25758,7 @@ snapshots: is-glob: 4.0.3 stable-hash: 0.0.4 optionalDependencies: - eslint-plugin-import: 2.31.0(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0)(eslint@8.57.0) + eslint-plugin-import: 2.31.0(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.7.2))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) transitivePeerDependencies: - supports-color @@ -25692,18 +25783,18 @@ snapshots: - bluebird - supports-color - eslint-module-utils@2.12.0(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0)(eslint@8.57.0))(eslint@8.57.0): + eslint-module-utils@2.12.0(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.7.2))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0): dependencies: debug: 3.2.7 optionalDependencies: '@typescript-eslint/parser': 7.14.1(eslint@8.57.0)(typescript@5.7.2) eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.7.0(eslint-plugin-import@2.31.0)(eslint@8.57.0) + eslint-import-resolver-typescript: 3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.7.2))(eslint@8.57.0))(eslint@8.57.0) transitivePeerDependencies: - supports-color - eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0)(eslint@8.57.0): + eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.7.2))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.1.8 @@ -25714,7 +25805,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.0(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0)(eslint@8.57.0))(eslint@8.57.0) + eslint-module-utils: 2.12.0(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.7.2))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) hasown: 2.0.2 is-core-module: 2.16.1 is-glob: 4.0.3 @@ -25823,11 +25914,11 @@ snapshots: eslint-plugin-svg-jsx@1.2.4: {} - eslint-plugin-tailwindcss@3.17.5(tailwindcss@3.4.17(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2))): + eslint-plugin-tailwindcss@3.17.5(tailwindcss@3.4.17(ts-node@10.9.2(@types/node@22.10.2)(typescript@5.7.2))): dependencies: fast-glob: 3.3.3 postcss: 8.4.49 - tailwindcss: 3.4.17(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2)) + tailwindcss: 3.4.17(ts-node@10.9.2(@types/node@22.10.2)(typescript@5.7.2)) eslint-scope@5.1.1: dependencies: @@ -26587,7 +26678,7 @@ snapshots: cross-spawn: 7.0.6 signal-exit: 4.1.0 - fork-ts-checker-webpack-plugin@8.0.0(typescript@5.7.2)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)): + fork-ts-checker-webpack-plugin@8.0.0(typescript@5.7.2)(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)): dependencies: '@babel/code-frame': 7.26.2 chalk: 4.1.2 @@ -26602,7 +26693,7 @@ snapshots: semver: 7.6.3 tapable: 2.2.1 typescript: 5.7.2 - webpack: 5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2) + webpack: 5.97.1(@swc/core@1.10.1)(esbuild@0.24.2) form-data-encoder@2.1.4: {} @@ -27073,7 +27164,7 @@ snapshots: html-void-elements@3.0.0: {} - html-webpack-plugin@5.6.3(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)): + html-webpack-plugin@5.6.3(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)): dependencies: '@types/html-minifier-terser': 6.1.0 html-minifier-terser: 6.1.0 @@ -27081,7 +27172,7 @@ snapshots: pretty-error: 4.0.0 tapable: 2.2.1 optionalDependencies: - webpack: 5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2) + webpack: 5.97.1(@swc/core@1.10.1)(esbuild@0.24.2) htmlparser2@3.10.1: dependencies: @@ -29552,7 +29643,7 @@ snapshots: node-int64@0.4.0: {} - node-polyfill-webpack-plugin@2.0.1(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)): + node-polyfill-webpack-plugin@2.0.1(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)): dependencies: assert: 2.1.0 browserify-zlib: 0.2.0 @@ -29579,7 +29670,7 @@ snapshots: url: 0.11.4 util: 0.12.5 vm-browserify: 1.1.2 - webpack: 5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2) + webpack: 5.97.1(@swc/core@1.10.1)(esbuild@0.24.2) node-releases@2.0.19: {} @@ -30239,13 +30330,13 @@ snapshots: camelcase-css: 2.0.1 postcss: 8.4.49 - postcss-load-config@4.0.2(postcss@8.4.49)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2)): + postcss-load-config@4.0.2(postcss@8.4.49)(ts-node@10.9.2(@types/node@22.10.2)(typescript@5.7.2)): dependencies: lilconfig: 3.1.3 yaml: 2.7.0 optionalDependencies: postcss: 8.4.49 - ts-node: 10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2) + ts-node: 10.9.2(@swc/core@1.10.1)(@types/node@22.10.2)(typescript@5.7.2) postcss-load-config@6.0.1(jiti@2.4.2)(postcss@8.4.49)(tsx@4.19.2)(yaml@2.7.0): dependencies: @@ -30256,14 +30347,14 @@ snapshots: tsx: 4.19.2 yaml: 2.7.0 - postcss-loader@8.1.1(postcss@8.4.49)(typescript@5.7.2)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)): + postcss-loader@8.1.1(postcss@8.4.49)(typescript@5.7.2)(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)): dependencies: cosmiconfig: 9.0.0(typescript@5.7.2) jiti: 1.21.7 postcss: 8.4.49 semver: 7.6.3 optionalDependencies: - webpack: 5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2) + webpack: 5.97.1(@swc/core@1.10.1)(esbuild@0.24.2) transitivePeerDependencies: - typescript @@ -31488,10 +31579,10 @@ snapshots: safer-buffer@2.1.2: {} - sass-loader@13.3.3(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)): + sass-loader@13.3.3(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)): dependencies: neo-async: 2.6.2 - webpack: 5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2) + webpack: 5.97.1(@swc/core@1.10.1)(esbuild@0.24.2) satori@0.12.0: dependencies: @@ -32082,9 +32173,9 @@ snapshots: structured-headers@0.4.1: {} - style-loader@3.3.4(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)): + style-loader@3.3.4(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)): dependencies: - webpack: 5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2) + webpack: 5.97.1(@swc/core@1.10.1)(esbuild@0.24.2) style-to-object@0.4.4: dependencies: @@ -32246,11 +32337,11 @@ snapshots: tailwind-merge@2.6.0: {} - tailwindcss-animate@1.0.7(tailwindcss@3.4.17(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2))): + tailwindcss-animate@1.0.7(tailwindcss@3.4.17(ts-node@10.9.2(@types/node@22.10.2)(typescript@5.7.2))): dependencies: - tailwindcss: 3.4.17(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2)) + tailwindcss: 3.4.17(ts-node@10.9.2(@types/node@22.10.2)(typescript@5.7.2)) - tailwindcss@3.4.17(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2)): + tailwindcss@3.4.17(ts-node@10.9.2(@types/node@22.10.2)(typescript@5.7.2)): dependencies: '@alloc/quick-lru': 5.2.0 arg: 5.0.2 @@ -32269,7 +32360,7 @@ snapshots: postcss: 8.4.49 postcss-import: 15.1.0(postcss@8.4.49) postcss-js: 4.0.1(postcss@8.4.49) - postcss-load-config: 4.0.2(postcss@8.4.49)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2)) + postcss-load-config: 4.0.2(postcss@8.4.49)(ts-node@10.9.2(@types/node@22.10.2)(typescript@5.7.2)) postcss-nested: 6.2.0(postcss@8.4.49) postcss-selector-parser: 6.1.2 resolve: 1.22.10 @@ -32331,41 +32422,30 @@ snapshots: ansi-escapes: 4.3.2 supports-hyperlinks: 2.3.0 - terser-webpack-plugin@5.3.10(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)): + terser-webpack-plugin@5.3.10(@swc/core@1.10.1)(esbuild@0.24.2)(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)): dependencies: '@jridgewell/trace-mapping': 0.3.25 jest-worker: 27.5.1 schema-utils: 3.3.0 serialize-javascript: 6.0.2 terser: 5.37.0 - webpack: 5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2) + webpack: 5.97.1(@swc/core@1.10.1)(esbuild@0.24.2) optionalDependencies: - '@swc/core': 1.10.1(@swc/helpers@0.5.15) + '@swc/core': 1.10.1 esbuild: 0.24.2 - terser-webpack-plugin@5.3.11(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)): + terser-webpack-plugin@5.3.11(@swc/core@1.10.1)(esbuild@0.24.2)(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)): dependencies: '@jridgewell/trace-mapping': 0.3.25 jest-worker: 27.5.1 schema-utils: 4.3.0 serialize-javascript: 6.0.2 terser: 5.37.0 - webpack: 5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2) + webpack: 5.97.1(@swc/core@1.10.1)(esbuild@0.24.2) optionalDependencies: - '@swc/core': 1.10.1(@swc/helpers@0.5.15) + '@swc/core': 1.10.1 esbuild: 0.24.2 - terser-webpack-plugin@5.3.11(@swc/core@1.10.1(@swc/helpers@0.5.15))(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))): - dependencies: - '@jridgewell/trace-mapping': 0.3.25 - jest-worker: 27.5.1 - schema-utils: 4.3.0 - serialize-javascript: 6.0.2 - terser: 5.37.0 - webpack: 5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15)) - optionalDependencies: - '@swc/core': 1.10.1(@swc/helpers@0.5.15) - terser-webpack-plugin@5.3.11(webpack@5.97.1): dependencies: '@jridgewell/trace-mapping': 0.3.25 @@ -32509,7 +32589,7 @@ snapshots: ts-mixer@6.0.4: {} - ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.2)(typescript@5.7.2): + ts-node@10.9.2(@swc/core@1.10.1)(@types/node@22.10.2)(typescript@5.7.2): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -32527,7 +32607,7 @@ snapshots: v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: - '@swc/core': 1.10.1(@swc/helpers@0.5.15) + '@swc/core': 1.10.1 ts-pnp@1.2.0(typescript@5.7.2): optionalDependencies: @@ -33424,7 +33504,7 @@ snapshots: - bufferutil - utf-8-validate - webpack-dev-middleware@6.1.3(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)): + webpack-dev-middleware@6.1.3(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)): dependencies: colorette: 2.0.20 memfs: 3.5.3 @@ -33432,7 +33512,7 @@ snapshots: range-parser: 1.2.1 schema-utils: 4.3.0 optionalDependencies: - webpack: 5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2) + webpack: 5.97.1(@swc/core@1.10.1)(esbuild@0.24.2) webpack-hot-middleware@2.26.1: dependencies: @@ -33476,37 +33556,7 @@ snapshots: - esbuild - uglify-js - webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15)): - dependencies: - '@types/eslint-scope': 3.7.7 - '@types/estree': 1.0.6 - '@webassemblyjs/ast': 1.14.1 - '@webassemblyjs/wasm-edit': 1.14.1 - '@webassemblyjs/wasm-parser': 1.14.1 - acorn: 8.14.0 - browserslist: 4.24.3 - chrome-trace-event: 1.0.4 - enhanced-resolve: 5.18.0 - es-module-lexer: 1.6.0 - eslint-scope: 5.1.1 - events: 3.3.0 - glob-to-regexp: 0.4.1 - graceful-fs: 4.2.11 - json-parse-even-better-errors: 2.3.1 - loader-runner: 4.3.0 - mime-types: 2.1.35 - neo-async: 2.6.2 - schema-utils: 3.3.0 - tapable: 2.2.1 - terser-webpack-plugin: 5.3.11(@swc/core@1.10.1(@swc/helpers@0.5.15))(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))) - watchpack: 2.4.2 - webpack-sources: 3.2.3 - transitivePeerDependencies: - - '@swc/core' - - esbuild - - uglify-js - - webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2): + webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2): dependencies: '@types/eslint-scope': 3.7.7 '@types/estree': 1.0.6 @@ -33528,7 +33578,7 @@ snapshots: neo-async: 2.6.2 schema-utils: 3.3.0 tapable: 2.2.1 - terser-webpack-plugin: 5.3.11(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.2)) + terser-webpack-plugin: 5.3.11(@swc/core@1.10.1)(esbuild@0.24.2)(webpack@5.97.1(@swc/core@1.10.1)(esbuild@0.24.2)) watchpack: 2.4.2 webpack-sources: 3.2.3 transitivePeerDependencies: