thirdweb 5.43.3-nightly-ad619a779c05928125490fb113a04eaa12500e25-20240805000406 → 5.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/adapters/ethers5.js +29 -0
- package/dist/cjs/adapters/ethers5.js.map +1 -1
- package/dist/cjs/chains/chain-definitions/celo-alfajores-testnet.js +20 -0
- package/dist/cjs/chains/chain-definitions/celo-alfajores-testnet.js.map +1 -0
- package/dist/cjs/chains/chain-definitions/metal-l2-testnet.js +20 -0
- package/dist/cjs/chains/chain-definitions/metal-l2-testnet.js.map +1 -0
- package/dist/cjs/react/core/utils/socialIcons.js +3 -1
- package/dist/cjs/react/core/utils/socialIcons.js.map +1 -1
- package/dist/cjs/react/native/ui/components/WalletImage.js +2 -0
- package/dist/cjs/react/native/ui/components/WalletImage.js.map +1 -1
- package/dist/cjs/react/native/ui/connect/InAppWalletUI.js +1 -0
- package/dist/cjs/react/native/ui/connect/InAppWalletUI.js.map +1 -1
- package/dist/cjs/react/native/ui/icons/svgs.js +13 -1
- package/dist/cjs/react/native/ui/icons/svgs.js.map +1 -1
- package/dist/cjs/react/web/ui/TransactionButton/index.js +65 -2
- package/dist/cjs/react/web/ui/TransactionButton/index.js.map +1 -1
- package/dist/cjs/react/web/ui/components/WalletImage.js +3 -0
- package/dist/cjs/react/web/ui/components/WalletImage.js.map +1 -1
- package/dist/cjs/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.js +2 -0
- package/dist/cjs/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.js.map +1 -1
- package/dist/cjs/react/web/ui/prebuilt/thirdweb/ClaimButton/index.js +19 -7
- package/dist/cjs/react/web/ui/prebuilt/thirdweb/ClaimButton/index.js.map +1 -1
- package/dist/cjs/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.js +3 -0
- package/dist/cjs/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js +1 -0
- package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/oauthSignIn.js +1 -0
- package/dist/cjs/react/web/wallets/shared/oauthSignIn.js.map +1 -1
- package/dist/cjs/utils/json.js +6 -0
- package/dist/cjs/utils/json.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/cjs/wallets/in-app/core/authentication/type.js +1 -0
- package/dist/cjs/wallets/in-app/core/authentication/type.js.map +1 -1
- package/dist/cjs/wallets/in-app/native/native-connector.js +1 -0
- package/dist/cjs/wallets/in-app/native/native-connector.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/web-connector.js +1 -0
- package/dist/cjs/wallets/in-app/web/lib/web-connector.js.map +1 -1
- package/dist/cjs/wallets/types.js +1 -0
- package/dist/cjs/wallets/types.js.map +1 -1
- package/dist/esm/adapters/ethers5.js +29 -0
- package/dist/esm/adapters/ethers5.js.map +1 -1
- package/dist/esm/chains/chain-definitions/celo-alfajores-testnet.js +17 -0
- package/dist/esm/chains/chain-definitions/celo-alfajores-testnet.js.map +1 -0
- package/dist/esm/chains/chain-definitions/metal-l2-testnet.js +17 -0
- package/dist/esm/chains/chain-definitions/metal-l2-testnet.js.map +1 -0
- package/dist/esm/react/core/utils/socialIcons.js +2 -0
- package/dist/esm/react/core/utils/socialIcons.js.map +1 -1
- package/dist/esm/react/native/ui/components/WalletImage.js +3 -1
- package/dist/esm/react/native/ui/components/WalletImage.js.map +1 -1
- package/dist/esm/react/native/ui/connect/InAppWalletUI.js +2 -1
- package/dist/esm/react/native/ui/connect/InAppWalletUI.js.map +1 -1
- package/dist/esm/react/native/ui/icons/svgs.js +12 -0
- package/dist/esm/react/native/ui/icons/svgs.js.map +1 -1
- package/dist/esm/react/web/ui/TransactionButton/index.js +65 -2
- package/dist/esm/react/web/ui/TransactionButton/index.js.map +1 -1
- package/dist/esm/react/web/ui/components/WalletImage.js +4 -1
- package/dist/esm/react/web/ui/components/WalletImage.js.map +1 -1
- package/dist/esm/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.js +2 -0
- package/dist/esm/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.js.map +1 -1
- package/dist/esm/react/web/ui/prebuilt/thirdweb/ClaimButton/index.js +19 -7
- package/dist/esm/react/web/ui/prebuilt/thirdweb/ClaimButton/index.js.map +1 -1
- package/dist/esm/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.js +3 -0
- package/dist/esm/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js +1 -0
- package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/oauthSignIn.js +1 -0
- package/dist/esm/react/web/wallets/shared/oauthSignIn.js.map +1 -1
- package/dist/esm/utils/json.js +6 -0
- package/dist/esm/utils/json.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/esm/wallets/in-app/core/authentication/type.js +1 -0
- package/dist/esm/wallets/in-app/core/authentication/type.js.map +1 -1
- package/dist/esm/wallets/in-app/native/native-connector.js +1 -0
- package/dist/esm/wallets/in-app/native/native-connector.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/web-connector.js +1 -0
- package/dist/esm/wallets/in-app/web/lib/web-connector.js.map +1 -1
- package/dist/esm/wallets/types.js +1 -0
- package/dist/esm/wallets/types.js.map +1 -1
- package/dist/types/adapters/ethers5.d.ts +29 -0
- package/dist/types/adapters/ethers5.d.ts.map +1 -1
- package/dist/types/chains/chain-definitions/celo-alfajores-testnet.d.ts +7 -0
- package/dist/types/chains/chain-definitions/celo-alfajores-testnet.d.ts.map +1 -0
- package/dist/types/chains/chain-definitions/metal-l2-testnet.d.ts +7 -0
- package/dist/types/chains/chain-definitions/metal-l2-testnet.d.ts.map +1 -0
- package/dist/types/react/core/utils/socialIcons.d.ts +2 -0
- package/dist/types/react/core/utils/socialIcons.d.ts.map +1 -1
- package/dist/types/react/core/utils/storage.d.ts +1 -1
- package/dist/types/react/core/utils/storage.d.ts.map +1 -1
- package/dist/types/react/native/hooks/transaction/useSendTransaction.d.ts +1 -1
- package/dist/types/react/native/ui/components/WalletImage.d.ts.map +1 -1
- package/dist/types/react/native/ui/connect/InAppWalletUI.d.ts.map +1 -1
- package/dist/types/react/native/ui/icons/svgs.d.ts +1 -0
- package/dist/types/react/native/ui/icons/svgs.d.ts.map +1 -1
- package/dist/types/react/web/hooks/transaction/useSendTransaction.d.ts +1 -1
- package/dist/types/react/web/ui/TransactionButton/index.d.ts +65 -2
- package/dist/types/react/web/ui/TransactionButton/index.d.ts.map +1 -1
- package/dist/types/react/web/ui/components/WalletImage.d.ts.map +1 -1
- package/dist/types/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.d.ts +2 -0
- package/dist/types/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.d.ts.map +1 -1
- package/dist/types/react/web/ui/prebuilt/thirdweb/ClaimButton/index.d.ts +19 -7
- package/dist/types/react/web/ui/prebuilt/thirdweb/ClaimButton/index.d.ts.map +1 -1
- package/dist/types/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.d.ts +3 -0
- package/dist/types/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/oauthSignIn.d.ts.map +1 -1
- package/dist/types/utils/json.d.ts +6 -0
- package/dist/types/utils/json.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/version.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/authentication/type.d.ts +2 -1
- package/dist/types/wallets/in-app/core/authentication/type.d.ts.map +1 -1
- package/dist/types/wallets/in-app/native/native-connector.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/web-connector.d.ts.map +1 -1
- package/dist/types/wallets/types.d.ts +1 -1
- package/dist/types/wallets/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/adapters/ethers5.ts +29 -0
- package/src/chains/chain-definitions/celo-alfajores-testnet.ts +17 -0
- package/src/chains/chain-definitions/metal-l2-testnet.ts +17 -0
- package/src/react/core/utils/socialIcons.ts +3 -0
- package/src/react/native/ui/components/WalletImage.tsx +3 -0
- package/src/react/native/ui/connect/InAppWalletUI.tsx +2 -0
- package/src/react/native/ui/icons/svgs.ts +13 -0
- package/src/react/web/ui/TransactionButton/index.tsx +65 -2
- package/src/react/web/ui/components/WalletImage.tsx +4 -0
- package/src/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.tsx +2 -0
- package/src/react/web/ui/prebuilt/thirdweb/ClaimButton/index.tsx +19 -7
- package/src/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.tsx +3 -0
- package/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx +1 -0
- package/src/react/web/wallets/shared/oauthSignIn.ts +1 -0
- package/src/utils/json.ts +6 -0
- package/src/version.ts +1 -1
- package/src/wallets/in-app/core/authentication/type.ts +1 -0
- package/src/wallets/in-app/native/native-connector.ts +1 -0
- package/src/wallets/in-app/web/lib/web-connector.ts +1 -0
- package/src/wallets/types.ts +1 -0
@@ -33,6 +33,7 @@ import {
|
|
33
33
|
FARCASTER_ICON,
|
34
34
|
GOOGLE_ICON,
|
35
35
|
PHONE_ICON,
|
36
|
+
TELEGRAM_ICON,
|
36
37
|
} from "../icons/svgs.js";
|
37
38
|
import type { ModalState } from "./ConnectModal.js";
|
38
39
|
|
@@ -50,6 +51,7 @@ const socialIcons = {
|
|
50
51
|
apple: APPLE_ICON,
|
51
52
|
discord: DISCORD_ICON,
|
52
53
|
farcaster: FARCASTER_ICON,
|
54
|
+
telegram: TELEGRAM_ICON,
|
53
55
|
};
|
54
56
|
|
55
57
|
type InAppWalletFormUIProps = {
|
@@ -44,6 +44,19 @@ export const FARCASTER_ICON = `<svg width={width} height={height} viewBox="0 0 1
|
|
44
44
|
<path d="M675.556 746.667C663.283 746.667 653.333 756.616 653.333 768.889V795.556H648.889C636.616 795.556 626.667 805.505 626.667 817.778V844.444H875.556V817.778C875.556 805.505 865.606 795.556 853.333 795.556H848.889V768.889C848.889 756.616 838.94 746.667 826.667 746.667V351.111H851.111L880 253.333H702.222V746.667H675.556Z" fill="white"/>
|
45
45
|
</svg>`;
|
46
46
|
|
47
|
+
export const TELEGRAM_ICON = `<svg width={width} height={height} viewBox="0 0 1000 1000" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
48
|
+
<defs>
|
49
|
+
<linearGradient x1="50%" y1="0%" x2="50%" y2="99.2583404%" id="linearGradient-1">
|
50
|
+
<stop stop-color="#2AABEE" offset="0%"></stop>
|
51
|
+
<stop stop-color="#229ED9" offset="100%"></stop>
|
52
|
+
</linearGradient>
|
53
|
+
</defs>
|
54
|
+
<g id="Artboard" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
55
|
+
<circle id="Oval" fill="url(#linearGradient-1)" cx="500" cy="500" r="500"></circle>
|
56
|
+
<path d="M226.328419,494.722069 C372.088573,431.216685 469.284839,389.350049 517.917216,369.122161 C656.772535,311.36743 685.625481,301.334815 704.431427,301.003532 C708.567621,300.93067 717.815839,301.955743 723.806446,306.816707 C728.864797,310.92121 730.256552,316.46581 730.922551,320.357329 C731.588551,324.248848 732.417879,333.113828 731.758626,340.040666 C724.234007,419.102486 691.675104,610.964674 675.110982,699.515267 C668.10208,736.984342 654.301336,749.547532 640.940618,750.777006 C611.904684,753.448938 589.856115,731.588035 561.733393,713.153237 C517.726886,684.306416 492.866009,666.349181 450.150074,638.200013 C400.78442,605.66878 432.786119,587.789048 460.919462,558.568563 C468.282091,550.921423 596.21508,434.556479 598.691227,424.000355 C599.00091,422.680135 599.288312,417.758981 596.36474,415.160431 C593.441168,412.561881 589.126229,413.450484 586.012448,414.157198 C581.598758,415.158943 511.297793,461.625274 375.109553,553.556189 C355.154858,567.258623 337.080515,573.934908 320.886524,573.585046 C303.033948,573.199351 268.692754,563.490928 243.163606,555.192408 C211.851067,545.013936 186.964484,539.632504 189.131547,522.346309 C190.260287,513.342589 202.659244,504.134509 226.328419,494.722069 Z" id="Path-3" fill="#FFFFFF"></path>
|
57
|
+
</g>
|
58
|
+
</svg>`;
|
59
|
+
|
47
60
|
export const EMAIL_ICON = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
48
61
|
<path d="M13.3335 2.6665H2.66683C1.93045 2.6665 1.3335 3.26346 1.3335 3.99984V11.9998C1.3335 12.7362 1.93045 13.3332 2.66683 13.3332H13.3335C14.0699 13.3332 14.6668 12.7362 14.6668 11.9998V3.99984C14.6668 3.26346 14.0699 2.6665 13.3335 2.6665Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
49
62
|
<path d="M14.6668 4.6665L8.68683 8.4665C8.48101 8.59545 8.24304 8.66384 8.00016 8.66384C7.75728 8.66384 7.51931 8.59545 7.3135 8.4665L1.3335 4.6665" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
@@ -28,14 +28,77 @@ import { Button } from "../components/buttons.js";
|
|
28
28
|
* ```tsx
|
29
29
|
* <TransactionButton
|
30
30
|
* transaction={() => {}}
|
31
|
-
* onTransactionConfirmed={handleSuccess}
|
32
|
-
* onError={handleError}
|
33
31
|
* unstyled
|
34
32
|
* className="bg-white text-black rounded-md p-4 flex items-center justify-center"
|
35
33
|
* >
|
36
34
|
* Confirm Transaction
|
37
35
|
* </TransactionButton>
|
38
36
|
* ```
|
37
|
+
*
|
38
|
+
* Handle errors
|
39
|
+
* ```tsx
|
40
|
+
* <TransactionButton
|
41
|
+
* transaction={() => ...}
|
42
|
+
* onError={(err) => {
|
43
|
+
* alert(err.message);
|
44
|
+
* // Add your own logic here
|
45
|
+
* }}
|
46
|
+
* >
|
47
|
+
* Confirm Transaction
|
48
|
+
* </TransactionButton>
|
49
|
+
* ```
|
50
|
+
*
|
51
|
+
* Alert when a transaction is sent
|
52
|
+
* ```tsx
|
53
|
+
* <TransactionButton
|
54
|
+
* transaction={() => ...}
|
55
|
+
* onTransactionSent={(tx) => {
|
56
|
+
* alert("transaction sent!");
|
57
|
+
* // Add your own logic here. For example, a toast
|
58
|
+
* }}
|
59
|
+
* >
|
60
|
+
* Confirm Transaction
|
61
|
+
* </TransactionButton>
|
62
|
+
* ```
|
63
|
+
*
|
64
|
+
* Alert when a transaction is completed
|
65
|
+
* ```tsx
|
66
|
+
* <TransactionButton
|
67
|
+
* transaction={() => ...}
|
68
|
+
* onTransactionConfirmed={(tx) => {
|
69
|
+
* alert("transaction sent!");
|
70
|
+
* console.log(tx);
|
71
|
+
* // Add your own logic here. For example, a toast
|
72
|
+
* }}
|
73
|
+
* >
|
74
|
+
* Confirm Transaction
|
75
|
+
* </TransactionButton>
|
76
|
+
* ```
|
77
|
+
*
|
78
|
+
* The onClick prop, if provided, will be called before the transaction is sent.
|
79
|
+
* ```tsx
|
80
|
+
* <TransactionButton
|
81
|
+
* onClick={() => alert("Transaction is about to be sent")}
|
82
|
+
* transaction={...}
|
83
|
+
* >
|
84
|
+
* ...
|
85
|
+
* </TransactionButton>
|
86
|
+
* ```
|
87
|
+
*
|
88
|
+
* Attach custom Pay metadata
|
89
|
+
* ```tsx
|
90
|
+
* <TransactionButton
|
91
|
+
* payModal={{
|
92
|
+
* // This image & title will show up in the Pay modal
|
93
|
+
* metadata: {
|
94
|
+
* name: "Van Gogh Starry Night",
|
95
|
+
* image: "https://unsplash.com/starry-night.png"
|
96
|
+
* }
|
97
|
+
* }}
|
98
|
+
* >
|
99
|
+
* ...
|
100
|
+
* </TransactionButton>
|
101
|
+
* ```
|
39
102
|
* @component
|
40
103
|
*/
|
41
104
|
export function TransactionButton(props: TransactionButtonProps) {
|
@@ -18,6 +18,7 @@ import {
|
|
18
18
|
googleIconUri,
|
19
19
|
passkeyIcon,
|
20
20
|
phoneIcon,
|
21
|
+
telegramIconUri,
|
21
22
|
} from "../../../core/utils/socialIcons.js";
|
22
23
|
import { getLastAuthProvider } from "../../../core/utils/storage.js";
|
23
24
|
import { useWalletImage } from "../../../core/utils/wallet.js";
|
@@ -81,6 +82,9 @@ export function WalletImage(props: {
|
|
81
82
|
case "farcaster":
|
82
83
|
image = farcasterIconUri;
|
83
84
|
break;
|
85
|
+
case "telegram":
|
86
|
+
image = telegramIconUri;
|
87
|
+
break;
|
84
88
|
}
|
85
89
|
} else {
|
86
90
|
const mipdImage = getInstalledWalletProviders().find(
|
@@ -76,6 +76,8 @@ export type BuyDirectListingButtonProps = Omit<
|
|
76
76
|
* </BuyDirectListingButton>
|
77
77
|
* ```
|
78
78
|
*
|
79
|
+
* For error handling & callbacks on transaction-sent and transaction-confirmed,
|
80
|
+
* please refer to the TransactionButton docs.
|
79
81
|
* @component
|
80
82
|
*/
|
81
83
|
export function BuyDirectListingButton(props: BuyDirectListingButtonProps) {
|
@@ -22,12 +22,13 @@ import type {
|
|
22
22
|
} from "./types.js";
|
23
23
|
|
24
24
|
/**
|
25
|
-
* This button is used to claim tokens (NFT or ERC20) from a given thirdweb Drop contract
|
25
|
+
* This button is used to claim tokens (NFT or ERC20) from a given thirdweb Drop contract.
|
26
26
|
*
|
27
27
|
* there are 3 type of Drop contract: NFT Drop (DropERC721), Edition Drop (DropERC1155) and Token Drop (DropERC20)
|
28
28
|
*
|
29
29
|
* Learn more: https://thirdweb.com/explore/drops
|
30
30
|
*
|
31
|
+
*
|
31
32
|
* Note: This button only works with thirdweb Drop contracts.
|
32
33
|
* For custom contract, please use [`TransactionButton`](https://portal.thirdweb.com/references/typescript/v5/TransactionButton)
|
33
34
|
* @param props
|
@@ -36,11 +37,11 @@ import type {
|
|
36
37
|
* @component
|
37
38
|
* @example
|
38
39
|
*
|
40
|
+
* Example for claiming NFT from an NFT Drop contract
|
39
41
|
* ```tsx
|
40
42
|
* import { ClaimButton } from "thirdweb/react";
|
41
43
|
* import { ethereum } from "thirdweb/chains";
|
42
44
|
*
|
43
|
-
* // For NFT Drop (ERC721)
|
44
45
|
* <ClaimButton
|
45
46
|
* contractAddress="0x..." // contract address of the NFT Drop
|
46
47
|
* chain={ethereum}
|
@@ -52,9 +53,10 @@ import type {
|
|
52
53
|
* >
|
53
54
|
* Claim now
|
54
55
|
* </ClaimButton>
|
56
|
+
* ```
|
55
57
|
*
|
56
|
-
*
|
57
|
-
*
|
58
|
+
* For Edition Drop (ERC1155)
|
59
|
+
* ```tsx
|
58
60
|
* <ClaimButton
|
59
61
|
* contractAddress="0x..." // contract address of the Edition Drop
|
60
62
|
* chain={ethereum}
|
@@ -67,9 +69,10 @@ import type {
|
|
67
69
|
* >
|
68
70
|
* Claim now
|
69
71
|
* </ClaimButton>
|
72
|
+
* ```
|
70
73
|
*
|
71
|
-
*
|
72
|
-
*
|
74
|
+
* For Token Drop (ERC20)
|
75
|
+
* ```tsx
|
73
76
|
* <ClaimButton
|
74
77
|
* contractAddress="0x..." // contract address of the Token Drop
|
75
78
|
* chain={ethereum}
|
@@ -82,8 +85,10 @@ import type {
|
|
82
85
|
* >
|
83
86
|
* Claim now
|
84
87
|
* </ClaimButton>
|
88
|
+
* ```
|
85
89
|
*
|
86
|
-
*
|
90
|
+
* Attach custom Pay metadata
|
91
|
+
* ```tsx
|
87
92
|
* <ClaimButton
|
88
93
|
* payModal={{
|
89
94
|
* metadata: {
|
@@ -94,6 +99,13 @@ import type {
|
|
94
99
|
* >...</ClaimButton>
|
95
100
|
*
|
96
101
|
* ```
|
102
|
+
*
|
103
|
+
* Since this button uses the `TransactionButton`, it can take in any props that can be passed
|
104
|
+
* to the [`TransactionButton`](https://portal.thirdweb.com/references/typescript/v5/TransactionButton)
|
105
|
+
*
|
106
|
+
*
|
107
|
+
* For error handling & callbacks on transaction-sent and transaction-confirmed,
|
108
|
+
* please refer to the TransactionButton docs.
|
97
109
|
*/
|
98
110
|
export function ClaimButton(props: ClaimButtonProps) {
|
99
111
|
const { children, contractAddress, client, chain, claimParams, payModal } =
|
@@ -50,6 +50,9 @@ export type CreateDirectListingButtonProps = Omit<
|
|
50
50
|
* Sell NFT
|
51
51
|
* </CreateDirectListingButton>
|
52
52
|
* ```
|
53
|
+
*
|
54
|
+
* For error handling & callbacks on transaction-sent and transaction-confirmed,
|
55
|
+
* please refer to the TransactionButton docs.
|
53
56
|
* @component
|
54
57
|
*/
|
55
58
|
export function CreateDirectListingButton(
|
package/src/utils/json.ts
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
/**
|
2
2
|
* Stringify a JSON object and convert all bigint values to string
|
3
|
+
*
|
4
|
+
* If you are getting this error: "Exception: Do not know how to serialize a BigInt",
|
5
|
+
* you probably can use this function to parse the data.
|
6
|
+
* Because bigint is not an accepted value of the JSON format.
|
7
|
+
*
|
8
|
+
* @returns An object with all bigint values converted to string
|
3
9
|
* @example
|
4
10
|
* ```ts
|
5
11
|
* import { stringify } from "thirdweb/utils";
|
package/src/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const version = "5.
|
1
|
+
export const version = "5.44.0";
|