thirdweb 5.32.3 → 5.34.0-nightly-f6ff5a78fc2d65f0f250b154f1405210ca57ce0a-20240706000322

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.
Files changed (177) hide show
  1. package/dist/cjs/auth/constants.js +30 -0
  2. package/dist/cjs/auth/constants.js.map +1 -0
  3. package/dist/cjs/auth/core/verify-jwt.js +2 -2
  4. package/dist/cjs/auth/core/verify-jwt.js.map +1 -1
  5. package/dist/cjs/auth/core/verify-login-payload.js +2 -2
  6. package/dist/cjs/auth/core/verify-login-payload.js.map +1 -1
  7. package/dist/cjs/auth/is-erc6492-signature.js +25 -0
  8. package/dist/cjs/auth/is-erc6492-signature.js.map +1 -0
  9. package/dist/cjs/auth/parse-erc6492-signature.js +28 -0
  10. package/dist/cjs/auth/parse-erc6492-signature.js.map +1 -0
  11. package/dist/cjs/auth/serialize-erc6492-signature.js +36 -0
  12. package/dist/cjs/auth/serialize-erc6492-signature.js.map +1 -0
  13. package/dist/cjs/auth/types.js +3 -0
  14. package/dist/cjs/auth/types.js.map +1 -0
  15. package/dist/cjs/auth/verify-signature.js +196 -0
  16. package/dist/cjs/auth/verify-signature.js.map +1 -0
  17. package/dist/cjs/exports/auth.js +11 -5
  18. package/dist/cjs/exports/auth.js.map +1 -1
  19. package/dist/cjs/extensions/erc721/read/getOwnedTokenIds.js +13 -4
  20. package/dist/cjs/extensions/erc721/read/getOwnedTokenIds.js.map +1 -1
  21. package/dist/cjs/react/core/hooks/transaction/useSendTransaction.js +2 -3
  22. package/dist/cjs/react/core/hooks/transaction/useSendTransaction.js.map +1 -1
  23. package/dist/cjs/react/core/utils/defaultTokens.js.map +1 -1
  24. package/dist/cjs/react/web/hooks/transaction/useSendTransaction.js +8 -5
  25. package/dist/cjs/react/web/hooks/transaction/useSendTransaction.js.map +1 -1
  26. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js +1 -1
  27. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  28. package/dist/cjs/react/web/ui/ConnectWallet/Details.js +24 -4
  29. package/dist/cjs/react/web/ui/ConnectWallet/Details.js.map +1 -1
  30. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js +3 -0
  31. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js.map +1 -1
  32. package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js +3 -0
  33. package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
  34. package/dist/cjs/react/web/ui/ConnectWallet/icons/ImageIcon.js +12 -0
  35. package/dist/cjs/react/web/ui/ConnectWallet/icons/ImageIcon.js.map +1 -0
  36. package/dist/cjs/react/web/ui/ConnectWallet/screens/ViewFunds.js +12 -30
  37. package/dist/cjs/react/web/ui/ConnectWallet/screens/ViewFunds.js.map +1 -1
  38. package/dist/cjs/react/web/ui/ConnectWallet/screens/ViewNFTs.js +142 -0
  39. package/dist/cjs/react/web/ui/ConnectWallet/screens/ViewNFTs.js.map +1 -0
  40. package/dist/cjs/react/web/ui/ConnectWallet/screens/ViewTokens.js +48 -0
  41. package/dist/cjs/react/web/ui/ConnectWallet/screens/ViewTokens.js.map +1 -0
  42. package/dist/cjs/version.js +1 -1
  43. package/dist/cjs/version.js.map +1 -1
  44. package/dist/cjs/wallets/coinbase/coinbaseWebSDK.js +2 -2
  45. package/dist/cjs/wallets/coinbase/coinbaseWebSDK.js.map +1 -1
  46. package/dist/cjs/wallets/injected/index.js +2 -2
  47. package/dist/cjs/wallets/injected/index.js.map +1 -1
  48. package/dist/cjs/wallets/smart/index.js +0 -1
  49. package/dist/cjs/wallets/smart/index.js.map +1 -1
  50. package/dist/esm/auth/constants.js +27 -0
  51. package/dist/esm/auth/constants.js.map +1 -0
  52. package/dist/esm/auth/core/verify-jwt.js +1 -1
  53. package/dist/esm/auth/core/verify-jwt.js.map +1 -1
  54. package/dist/esm/auth/core/verify-login-payload.js +1 -1
  55. package/dist/esm/auth/core/verify-login-payload.js.map +1 -1
  56. package/dist/esm/auth/is-erc6492-signature.js +22 -0
  57. package/dist/esm/auth/is-erc6492-signature.js.map +1 -0
  58. package/dist/esm/auth/parse-erc6492-signature.js +25 -0
  59. package/dist/esm/auth/parse-erc6492-signature.js.map +1 -0
  60. package/dist/esm/auth/serialize-erc6492-signature.js +33 -0
  61. package/dist/esm/auth/serialize-erc6492-signature.js.map +1 -0
  62. package/dist/esm/auth/types.js +2 -0
  63. package/dist/esm/auth/types.js.map +1 -0
  64. package/dist/esm/auth/verify-signature.js +191 -0
  65. package/dist/esm/auth/verify-signature.js.map +1 -0
  66. package/dist/esm/exports/auth.js +4 -1
  67. package/dist/esm/exports/auth.js.map +1 -1
  68. package/dist/esm/extensions/erc721/read/getOwnedTokenIds.js +14 -5
  69. package/dist/esm/extensions/erc721/read/getOwnedTokenIds.js.map +1 -1
  70. package/dist/esm/react/core/hooks/transaction/useSendTransaction.js +2 -3
  71. package/dist/esm/react/core/hooks/transaction/useSendTransaction.js.map +1 -1
  72. package/dist/esm/react/core/utils/defaultTokens.js.map +1 -1
  73. package/dist/esm/react/web/hooks/transaction/useSendTransaction.js +8 -5
  74. package/dist/esm/react/web/hooks/transaction/useSendTransaction.js.map +1 -1
  75. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js +1 -1
  76. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  77. package/dist/esm/react/web/ui/ConnectWallet/Details.js +24 -4
  78. package/dist/esm/react/web/ui/ConnectWallet/Details.js.map +1 -1
  79. package/dist/esm/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js +3 -0
  80. package/dist/esm/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js.map +1 -1
  81. package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js +3 -0
  82. package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
  83. package/dist/esm/react/web/ui/ConnectWallet/icons/ImageIcon.js +8 -0
  84. package/dist/esm/react/web/ui/ConnectWallet/icons/ImageIcon.js.map +1 -0
  85. package/dist/esm/react/web/ui/ConnectWallet/screens/ViewFunds.js +13 -31
  86. package/dist/esm/react/web/ui/ConnectWallet/screens/ViewFunds.js.map +1 -1
  87. package/dist/esm/react/web/ui/ConnectWallet/screens/ViewNFTs.js +139 -0
  88. package/dist/esm/react/web/ui/ConnectWallet/screens/ViewNFTs.js.map +1 -0
  89. package/dist/esm/react/web/ui/ConnectWallet/screens/ViewTokens.js +45 -0
  90. package/dist/esm/react/web/ui/ConnectWallet/screens/ViewTokens.js.map +1 -0
  91. package/dist/esm/version.js +1 -1
  92. package/dist/esm/version.js.map +1 -1
  93. package/dist/esm/wallets/coinbase/coinbaseWebSDK.js +2 -2
  94. package/dist/esm/wallets/coinbase/coinbaseWebSDK.js.map +1 -1
  95. package/dist/esm/wallets/injected/index.js +2 -2
  96. package/dist/esm/wallets/injected/index.js.map +1 -1
  97. package/dist/esm/wallets/smart/index.js +0 -1
  98. package/dist/esm/wallets/smart/index.js.map +1 -1
  99. package/dist/types/auth/constants.d.ts +20 -0
  100. package/dist/types/auth/constants.d.ts.map +1 -0
  101. package/dist/types/auth/is-erc6492-signature.d.ts +19 -0
  102. package/dist/types/auth/is-erc6492-signature.d.ts.map +1 -0
  103. package/dist/types/auth/parse-erc6492-signature.d.ts +24 -0
  104. package/dist/types/auth/parse-erc6492-signature.d.ts.map +1 -0
  105. package/dist/types/auth/serialize-erc6492-signature.d.ts +27 -0
  106. package/dist/types/auth/serialize-erc6492-signature.d.ts.map +1 -0
  107. package/dist/types/auth/types.d.ts +7 -0
  108. package/dist/types/auth/types.d.ts.map +1 -0
  109. package/dist/types/auth/verify-signature.d.ts +70 -0
  110. package/dist/types/auth/verify-signature.d.ts.map +1 -0
  111. package/dist/types/exports/auth.d.ts +5 -1
  112. package/dist/types/exports/auth.d.ts.map +1 -1
  113. package/dist/types/extensions/erc721/read/getOwnedTokenIds.d.ts.map +1 -1
  114. package/dist/types/react/core/hooks/connection/ConnectButtonProps.d.ts +25 -1
  115. package/dist/types/react/core/hooks/connection/ConnectButtonProps.d.ts.map +1 -1
  116. package/dist/types/react/core/hooks/transaction/useSendTransaction.d.ts +2 -1
  117. package/dist/types/react/core/hooks/transaction/useSendTransaction.d.ts.map +1 -1
  118. package/dist/types/react/core/utils/defaultTokens.d.ts +2 -0
  119. package/dist/types/react/core/utils/defaultTokens.d.ts.map +1 -1
  120. package/dist/types/react/web/hooks/transaction/useSendTransaction.d.ts.map +1 -1
  121. package/dist/types/react/web/ui/ConnectWallet/Details.d.ts +28 -1
  122. package/dist/types/react/web/ui/ConnectWallet/Details.d.ts.map +1 -1
  123. package/dist/types/react/web/ui/ConnectWallet/Modal/AllWalletsUI.d.ts.map +1 -1
  124. package/dist/types/react/web/ui/ConnectWallet/WalletSelector.d.ts.map +1 -1
  125. package/dist/types/react/web/ui/ConnectWallet/icons/ImageIcon.d.ts +6 -0
  126. package/dist/types/react/web/ui/ConnectWallet/icons/ImageIcon.d.ts.map +1 -0
  127. package/dist/types/react/web/ui/ConnectWallet/screens/ViewFunds.d.ts +5 -2
  128. package/dist/types/react/web/ui/ConnectWallet/screens/ViewFunds.d.ts.map +1 -1
  129. package/dist/types/react/web/ui/ConnectWallet/screens/ViewNFTs.d.ts +13 -0
  130. package/dist/types/react/web/ui/ConnectWallet/screens/ViewNFTs.d.ts.map +1 -0
  131. package/dist/types/react/web/ui/ConnectWallet/screens/ViewTokens.d.ts +11 -0
  132. package/dist/types/react/web/ui/ConnectWallet/screens/ViewTokens.d.ts.map +1 -0
  133. package/dist/types/react/web/ui/ConnectWallet/screens/types.d.ts +1 -1
  134. package/dist/types/react/web/ui/ConnectWallet/screens/types.d.ts.map +1 -1
  135. package/dist/types/version.d.ts +1 -1
  136. package/dist/types/version.d.ts.map +1 -1
  137. package/package.json +1 -1
  138. package/src/auth/constants.ts +30 -0
  139. package/src/auth/core/verify-jwt.ts +1 -1
  140. package/src/auth/core/verify-login-payload.ts +1 -1
  141. package/src/auth/is-erc6492-signature.test.ts +26 -0
  142. package/src/auth/is-erc6492-signature.ts +23 -0
  143. package/src/auth/parse-erc6492-signature.test.ts +30 -0
  144. package/src/auth/parse-erc6492-signature.ts +38 -0
  145. package/src/auth/serialize-erc6492-signature.test.ts +23 -0
  146. package/src/auth/serialize-erc6492-signature.ts +42 -0
  147. package/src/auth/types.ts +7 -0
  148. package/src/auth/verify-signature.test.ts +97 -0
  149. package/src/auth/verify-signature.ts +245 -0
  150. package/src/exports/auth.ts +9 -1
  151. package/src/extensions/erc721/read/getOwnedTokenIds.ts +30 -5
  152. package/src/react/core/hooks/connection/ConnectButtonProps.ts +29 -1
  153. package/src/react/core/hooks/transaction/useSendTransaction.ts +4 -4
  154. package/src/react/core/utils/defaultTokens.ts +3 -0
  155. package/src/react/web/hooks/transaction/useSendTransaction.tsx +19 -4
  156. package/src/react/web/ui/ConnectWallet/ConnectButton.tsx +1 -0
  157. package/src/react/web/ui/ConnectWallet/Details.tsx +76 -3
  158. package/src/react/web/ui/ConnectWallet/Modal/AllWalletsUI.tsx +3 -0
  159. package/src/react/web/ui/ConnectWallet/WalletSelector.tsx +3 -1
  160. package/src/react/web/ui/ConnectWallet/icons/ImageIcon.tsx +25 -0
  161. package/src/react/web/ui/ConnectWallet/screens/ViewFunds.tsx +32 -87
  162. package/src/react/web/ui/ConnectWallet/screens/ViewNFTs.tsx +255 -0
  163. package/src/react/web/ui/ConnectWallet/screens/ViewTokens.tsx +125 -0
  164. package/src/react/web/ui/ConnectWallet/screens/types.ts +2 -0
  165. package/src/version.ts +1 -1
  166. package/src/wallets/coinbase/coinbaseWebSDK.ts +2 -2
  167. package/src/wallets/injected/index.ts +2 -2
  168. package/src/wallets/smart/index.ts +0 -3
  169. package/src/wallets/smart/smart-wallet-integration.test.ts +1 -1
  170. package/dist/cjs/auth/verifySignature.js +0 -137
  171. package/dist/cjs/auth/verifySignature.js.map +0 -1
  172. package/dist/esm/auth/verifySignature.js +0 -132
  173. package/dist/esm/auth/verifySignature.js.map +0 -1
  174. package/dist/types/auth/verifySignature.d.ts +0 -53
  175. package/dist/types/auth/verifySignature.d.ts.map +0 -1
  176. package/src/auth/verifySignature.test.ts +0 -53
  177. package/src/auth/verifySignature.ts +0 -166
@@ -0,0 +1,191 @@
1
+ import { equalBytes } from "@noble/curves/abstract/utils";
2
+ import { encodeDeployData, recoverAddress, serializeSignature, } from "viem";
3
+ import { getContract } from "../contract/contract.js";
4
+ import { eth_call } from "../rpc/actions/eth_call.js";
5
+ import { getRpcClient } from "../rpc/rpc.js";
6
+ import { fromBytes } from "../utils/encoding/from-bytes.js";
7
+ import { isHex } from "../utils/encoding/hex.js";
8
+ import { toBytes } from "../utils/encoding/to-bytes.js";
9
+ import { hashMessage } from "../utils/hashing/hashMessage.js";
10
+ import { DEFAULT_ACCOUNT_FACTORY } from "../wallets/smart/lib/constants.js";
11
+ import { universalSignatureValidatorAbi, universalSignatureValidatorByteCode, } from "./constants.js";
12
+ import { isErc6492Signature } from "./is-erc6492-signature.js";
13
+ import { serializeErc6492Signature } from "./serialize-erc6492-signature.js";
14
+ /**
15
+ * Verifies the signature of a message using an Ethereum account's EOA (Externally Owned Account).
16
+ * @param options - The options for verifying the signature.
17
+ * @returns A boolean indicating whether the signature is valid.
18
+ * @throws An error if the signature is invalid.
19
+ * @example
20
+ * ```ts
21
+ * import { verifyEOASignature } from 'thirdweb/auth';
22
+ *
23
+ * const isValid = await verifyEOASignature({
24
+ * message: '0x1234567890123456789012345678901234567890',
25
+ * signature: '0x1234567890123456789012345678901234567890',
26
+ * address: '0x1234567890123456789012345678901234567890',
27
+ * });
28
+ * ```
29
+ * @auth
30
+ */
31
+ export async function verifyEOASignature(options) {
32
+ const messageHash = hashMessage(options.message);
33
+ if (!isHex(options.signature)) {
34
+ return false;
35
+ }
36
+ const recoveredAddress = await recoverAddress({
37
+ hash: messageHash,
38
+ signature: options.signature,
39
+ });
40
+ if (recoveredAddress.toLowerCase() === options.address.toLowerCase()) {
41
+ return true;
42
+ }
43
+ return false;
44
+ }
45
+ /**
46
+ * @description Verifies a contract wallet signature using [ERC-6942](https://eips.ethereum.org/EIPS/eip-6942) Signature Validation for Predeploy Contracts.
47
+ * This function will validate signatures for both deployed and undeployed smart accounts of all signature types.
48
+ *
49
+ * @param {@link VerifyContractWalletSignatureParams} options - The parameters for verifying the signature.
50
+ * @param {string} options.address The address of the contract wallet to verify the signature for. This can be an undeployed coutnerfactual address.
51
+ * @param {string} options.message The message that was signed
52
+ * @param {string} options.signature The signature to verify.
53
+ * @param {Chain} options.chain The chain to verify the signature on. Make sure this was the chain your signature was generated for, even if your smart account exists on multiple chains.
54
+ * @param {ThirdwebClient} options.client The Thirdweb client to use for necessary RPC requests.
55
+ * @param {Object} [options.accountFactory] A custom account factory to use for signature verification. This is only necessary if the account is not yet deployed AND the signature was not pre-wrapped for ERC-6492 validation. Most wallets that do not automatically deploy smart accounts prior to signatures will wrap the signature for you.
56
+ * @param {string} [options.accountFactory.address] The account factory address from which the smart account was or will be deployed.
57
+ * @param {Hex} [options.accountFactory.verificationCalldata] The account factory verification calldata for predeploy verification. See [EIP-6942](https://eips.ethereum.org/EIPS/eip-6942) for more information.
58
+ *
59
+ * @returns A boolean indicating whether the signature is valid.
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * import { verifyContractWalletSignature } from 'thirdweb/auth';
64
+ *
65
+ * const isValid = await verifyContractWalletSignature({
66
+ * message: '0x..',
67
+ * signature: '0x..',
68
+ * address: '0x...',
69
+ * chain: ...,
70
+ * client: ...,
71
+ * });
72
+ * ```
73
+ * @auth
74
+ */
75
+ export async function verifyContractWalletSignature({ signature, message, address, chain, client, accountFactory, }) {
76
+ console.log("verifyContractWalletSignature");
77
+ const messageHash = hashMessage(message);
78
+ const signatureHex = (() => {
79
+ if (isHex(signature))
80
+ return signature;
81
+ if (typeof signature === "object" && "r" in signature && "s" in signature)
82
+ return serializeSignature(signature);
83
+ if (signature instanceof Uint8Array)
84
+ return fromBytes(signature, "hex");
85
+ // We should never hit this but TS doesn't know that
86
+ throw new Error(`Invalid signature type for signature ${signature}: ${typeof signature}`);
87
+ })();
88
+ const accountContract = getContract({
89
+ address,
90
+ chain,
91
+ client,
92
+ });
93
+ const wrappedSignature = await (async () => {
94
+ // If this sigature was already wrapped for ERC-6492, carry on
95
+ if (isErc6492Signature(signatureHex))
96
+ return signatureHex;
97
+ // If the contract is already deployed, return the original signature
98
+ const { isContractDeployed } = await import("../utils/bytecode/is-contract-deployed.js");
99
+ const isDeployed = await isContractDeployed(accountContract);
100
+ if (!isDeployed)
101
+ return signatureHex;
102
+ // Otherwise, serialize the signature for ERC-6492 validation
103
+ return serializeErc6492Signature({
104
+ address: accountFactory?.address ?? DEFAULT_ACCOUNT_FACTORY,
105
+ data: accountFactory?.verificationCalldata ?? "0x",
106
+ signature: signatureHex,
107
+ });
108
+ })();
109
+ const verificationData = encodeDeployData({
110
+ abi: universalSignatureValidatorAbi,
111
+ args: [address, messageHash, wrappedSignature],
112
+ bytecode: universalSignatureValidatorByteCode,
113
+ });
114
+ const rpcRequest = getRpcClient({
115
+ chain,
116
+ client,
117
+ });
118
+ try {
119
+ const result = await eth_call(rpcRequest, {
120
+ data: verificationData,
121
+ });
122
+ const hexResult = isHex(result) ? toBytes(result) : result;
123
+ return equalBytes(hexResult, toBytes("0x1"));
124
+ }
125
+ catch (error) {
126
+ console.log("error", error);
127
+ // TODO: Improve overall RPC error handling so we can tell if this was an actual verification failure or some other error
128
+ // Verification failed somehow
129
+ return false;
130
+ }
131
+ }
132
+ /**
133
+ * Verifies the signature based on the provided options.
134
+ * Handles smart contract wallet signatures and EOA signatures.
135
+ * **IMPORTANT: in order to check smart contract signatures, a chain and client must be provided. Or, you can use the `verifyContractWalletSignature` function directly if all signatures will be from smart accounts.**
136
+ * @see verifyContractWalletSignature
137
+ * @param options - The options for signature verification.
138
+ * @returns A boolean indicating whether the signature is valid or not.
139
+ * @example
140
+ * ```ts
141
+ * import { verifySignature } from 'thirdweb/auth';
142
+ *
143
+ * const isValid = await verifySignature({
144
+ * message: 'Your message to sign',
145
+ * signature: '0x91db0222ec371a8c18d3b187a6d2e77789bffca1b96826ef6b8708e0d4a66c80312fc3ae95b8fbc147265abf539bb6f360152be61a0e1411d7f5771a599e769a1c',
146
+ * address: '0xda9C7A86AeE76701FC1c23ae548e8E93Ba3e42A5',
147
+ * client: thirdwebClient,
148
+ * chain: chain
149
+ * });
150
+ * ```
151
+ * @auth
152
+ */
153
+ let warningTriggered = false;
154
+ export async function verifySignature(options) {
155
+ try {
156
+ const isValidEOASig = await verifyEOASignature(options);
157
+ if (isValidEOASig) {
158
+ return true;
159
+ }
160
+ }
161
+ catch {
162
+ // no-op, we skip to contract signature check
163
+ }
164
+ if (isVerifyContractWalletSignatureParams(options)) {
165
+ try {
166
+ return await verifyContractWalletSignature(options);
167
+ }
168
+ catch {
169
+ // no-op we skip to return false
170
+ }
171
+ }
172
+ else if (!warningTriggered) {
173
+ // We only trigger this warning once
174
+ warningTriggered = true;
175
+ console.error(`
176
+ Failed to verify EOA signature and no chain or client provided.
177
+
178
+ If you mean to use a smart account, please provide a chain and client.
179
+ For more information on how to setup a smart account with Auth, see https://portal.thirdweb.com/connect/auth
180
+ `);
181
+ }
182
+ // if we reach here, we have no way to verify the signature
183
+ return false;
184
+ }
185
+ function isVerifyContractWalletSignatureParams(options) {
186
+ return ("chain" in options &&
187
+ options.chain !== undefined &&
188
+ "client" in options &&
189
+ options.client !== undefined);
190
+ }
191
+ //# sourceMappingURL=verify-signature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify-signature.js","sourceRoot":"","sources":["../../../src/auth/verify-signature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAEL,gBAAgB,EAChB,cAAc,EACd,kBAAkB,GACnB,MAAM,MAAM,CAAC;AAGd,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC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AAgB,EAAE,CAAC;QAC7B,oCAAoC;QACpC,gBAAgB,GAAG,IAAI,CAAC;QACxB,OAAO,CAAC,KAAK,CAAC;;;;;KAKb,CAAC,CAAC;IACL,CAAC;IACD,2DAA2D;IAC3D,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,qCAAqC,CAC5C,OAA8B;IAE9B,OAAO,CACL,OAAO,IAAI,OAAO;QAClB,OAAO,CAAC,KAAK,KAAK,SAAS;QAC3B,QAAQ,IAAI,OAAO;QACnB,OAAO,CAAC,MAAM,KAAK,SAAS,CAC7B,CAAC;AACJ,CAAC"}
@@ -1,4 +1,7 @@
1
- export { verifySignature, verifyEOASignature, verifyContractWalletSignature, } from "../auth/verifySignature.js";
1
+ export { verifySignature, verifyEOASignature, verifyContractWalletSignature, } from "../auth/verify-signature.js";
2
+ export { isErc6492Signature } from "../auth/is-erc6492-signature.js";
3
+ export { serializeErc6492Signature } from "../auth/serialize-erc6492-signature.js";
4
+ export { parseErc6492Signature, } from "../auth/parse-erc6492-signature.js";
2
5
  export { createAuth } from "../auth/auth.js";
3
6
  // meant to be used on the "client" side to sign the login payload with a given account
4
7
  export { signLoginPayload, } from "../auth/core/sign-login-payload.js";
@@ -1 +1 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/exports/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAEf,kBAAkB,EAElB,6BAA6B,GAE9B,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAQ7C,uFAAuF;AACvF,OAAO,EACL,gBAAgB,GAEjB,MAAM,oCAAoC,CAAC"}
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/exports/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAEf,kBAAkB,EAElB,6BAA6B,GAE9B,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EACL,qBAAqB,GAEtB,MAAM,oCAAoC,CAAC;AAG5C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAQ7C,uFAAuF;AACvF,OAAO,EACL,gBAAgB,GAEjB,MAAM,oCAAoC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { balanceOf, } from "../__generated__/IERC721A/read/balanceOf.js";
2
- import { tokenOfOwnerByIndex } from "../__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.js";
2
+ import { isTokensOfOwnerSupported, tokensOfOwner, } from "../__generated__/IERC721AQueryable/read/tokensOfOwner.js";
3
+ import { isTokenOfOwnerByIndexSupported, tokenOfOwnerByIndex, } from "../__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.js";
3
4
  /**
4
5
  * Retrieves the token IDs owned by a specific address.
5
6
  * @param options - The options for retrieving the owned token IDs.
@@ -17,10 +18,18 @@ import { tokenOfOwnerByIndex } from "../__generated__/IERC721Enumerable/read/tok
17
18
  */
18
19
  export async function getOwnedTokenIds(options) {
19
20
  const balanceOfResult = await balanceOf(options);
20
- const promises = [];
21
- for (let i = 0n; i < balanceOfResult; i++) {
22
- promises.push(tokenOfOwnerByIndex({ ...options, index: i }));
21
+ const supportsTokensOfOwnerByIndex = await isTokenOfOwnerByIndexSupported(options.contract);
22
+ if (supportsTokensOfOwnerByIndex) {
23
+ const promises = [];
24
+ for (let i = 0n; i < balanceOfResult; i++) {
25
+ promises.push(tokenOfOwnerByIndex({ ...options, index: i }));
26
+ }
27
+ return Promise.all(promises);
23
28
  }
24
- return Promise.all(promises);
29
+ const supportsTokensOfOwner = await isTokensOfOwnerSupported(options.contract);
30
+ if (supportsTokensOfOwner) {
31
+ return (await tokensOfOwner({ ...options })).map((token) => token); // Unfortunate map to make this return a mutable array
32
+ }
33
+ throw new Error(`The contract at ${options.contract.address} on chain ${options.contract.chain.id} does not support the tokenOfOwnerByIndex or tokensOfOwner interface`);
25
34
  }
26
35
  //# sourceMappingURL=getOwnedTokenIds.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getOwnedTokenIds.js","sourceRoot":"","sources":["../../../../../src/extensions/erc721/read/getOwnedTokenIds.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,SAAS,GACV,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gEAAgE,CAAC;AAIrG;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,OAAuD;IAEvD,MAAM,eAAe,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,CAAC;IAEjD,MAAM,QAAQ,GAA6C,EAAE,CAAC;IAE9D,KAAK,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,eAAe,EAAE,CAAC,EAAE,EAAE,CAAC;QAC1C,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC,EAAE,GAAG,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/D,CAAC;IAED,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC/B,CAAC"}
1
+ {"version":3,"file":"getOwnedTokenIds.js","sourceRoot":"","sources":["../../../../../src/extensions/erc721/read/getOwnedTokenIds.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,SAAS,GACV,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,wBAAwB,EACxB,aAAa,GACd,MAAM,0DAA0D,CAAC;AAClE,OAAO,EACL,8BAA8B,EAC9B,mBAAmB,GACpB,MAAM,gEAAgE,CAAC;AAIxE;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,OAAuD;IAEvD,MAAM,eAAe,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,CAAC;IAEjD,MAAM,4BAA4B,GAAG,MAAM,8BAA8B,CACvE,OAAO,CAAC,QAAQ,CACjB,CAAC;IAEF,IAAI,4BAA4B,EAAE,CAAC;QACjC,MAAM,QAAQ,GAA6C,EAAE,CAAC;QAE9D,KAAK,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,eAAe,EAAE,CAAC,EAAE,EAAE,CAAC;YAC1C,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC,EAAE,GAAG,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QAC/D,CAAC;QAED,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC/B,CAAC;IAED,MAAM,qBAAqB,GAAG,MAAM,wBAAwB,CAC1D,OAAO,CAAC,QAAQ,CACjB,CAAC;IAEF,IAAI,qBAAqB,EAAE,CAAC;QAC1B,OAAO,CAAC,MAAM,aAAa,CAAC,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,sDAAsD;IAC5H,CAAC;IAED,MAAM,IAAI,KAAK,CACb,mBAAmB,OAAO,CAAC,QAAQ,CAAC,OAAO,aAAa,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,sEAAsE,CACxJ,CAAC;AACJ,CAAC"}
@@ -81,9 +81,8 @@ export function useSendTransactionCore(args) {
81
81
  showPayModal({
82
82
  tx,
83
83
  sendTx,
84
- rejectTx: () => {
85
- reject(new Error("Not enough balance"));
86
- },
84
+ rejectTx: reject,
85
+ resolveTx: resolve,
87
86
  totalCostWei,
88
87
  walletBalance,
89
88
  });
@@ -1 +1 @@
1
- {"version":3,"file":"useSendTransaction.js","sourceRoot":"","sources":["../../../../../../src/react/core/hooks/transaction/useSendTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5E,OAAO,EAAE,eAAe,EAAE,MAAM,sDAAsD,CAAC;AAEvF,OAAO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CAAC,CAAC;oBACL,CAAC;oBAAC,OAAO,CAAC,EAAE,CAAC;wBACX,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,CAAC,CAAC,CAAC;wBAC5C,kBAAkB;wBAClB,MAAM,EAAE,CAAC;oBACX,CAAC;gBACH,CAAC,CAAC,EAAE,CAAC;YACP,CAAC,CAAC,CAAC;QACL,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,EAAuB,EACvB,IAAa;IAEb,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,eAAe,CAAC;YACpC,WAAW,EAAE,EAAE;YACf,IAAI;SACL,CAAC,CAAC;QAEH,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC;QAErC,2CAA2C;QAC3C,MAAM,OAAO,GAAG,MAAM,oBAAoB,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;QAErD,yFAAyF;QACzF,OAAO,OAAO,CAAC,GAAG,GAAG,UAAU,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;IACpD,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,IAAI,EAAE,CAAC;YACT,iCAAiC;YACjC,OAAO,MAAM,oBAAoB,CAAC,EAAE,CAAC,CAAC;QACxC,CAAC;QACD,sDAAsD;QACtD,MAAM,KAAK,GAAG,MAAM,oBAAoB,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;QACnD,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,OAAO,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC;IAC9B,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"useSendTransaction.js","sourceRoot":"","sources":["../../../../../../src/react/core/hooks/transaction/useSendTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5E,OAAO,EAAE,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oBACL,CAAC;oBAAC,OAAO,CAAC,EAAE,CAAC;wBACX,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,CAAC,CAAC,CAAC;wBAC5C,kBAAkB;wBAClB,MAAM,EAAE,CAAC;oBACX,CAAC;gBACH,CAAC,CAAC,EAAE,CAAC;YACP,CAAC,CAAC,CAAC;QACL,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,EAAuB,EACvB,IAAa;IAEb,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,eAAe,CAAC;YACpC,WAAW,EAAE,EAAE;YACf,IAAI;SACL,CAAC,CAAC;QAEH,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC;QAErC,2CAA2C;QAC3C,MAAM,OAAO,GAAG,MAAM,oBAAoB,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;QAErD,yFAAyF;QACzF,OAAO,OAAO,CAAC,GAAG,GAAG,UAAU,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;IACpD,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,IAAI,EAAE,CAAC;YACT,iCAAiC;YACjC,OAAO,MAAM,oBAAoB,CAAC,EAAE,CAAC,CAAC;QACxC,CAAC;QACD,sDAAsD;QACtD,MAAM,KAAK,GAAG,MAAM,oBAAoB,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;QACnD,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,OAAO,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC;IAC9B,CAAC;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"defaultTokens.js","sourceRoot":"","sources":["../../../../../src/react/core/utils/defaultTokens.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,cAAc,GACzB,4vBAA4vB,CAAC;AAE/vB,MAAM,aAAa,GACjB,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
+ {"version":3,"file":"defaultTokens.js","sourceRoot":"","sources":["../../../../../src/react/core/utils/defaultTokens.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,cAAc,GACzB,4vBAA4vB,CAAC;AAE/vB,MAAM,aAAa,GACjB,4qCAA4qC,CAAC;AAE/qC,MAAM,QAAQ,GACZ,ovEAAovE,CAAC;AAEvvE,MAAM,cAAc,GAClB,wmEAAwmE,CAAC;AAE3mE,MAAM,SAAS,GACb,whEAAwhE,CAAC;AAE3hE,MAAM,eAAe,GACnB,osBAAosB,CAAC;AAEvsB,MAAM,QAAQ,GACZ,4tBAA4tB,CAAC;AAE/tB,MAAM,UAAU,GACd,4hCAA4hC,CAAC;AAK/hC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,MAAM,aAAa,GAAoB;IAC5C,GAAG,EAAE;QACH;YACE,OAAO,EAAE,4CAA4C;YACrD,IAAI,EAAE,eAAe;YACrB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,cAAc;SACrB;QACD;YACE,OAAO,EAAE,4CAA4C;YACrD,IAAI,EAAE,YAAY;YAClB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,aAAa;SACpB;QACD;YACE,OAAO,EAAE,4CAA4C;YACrD,IAAI,EAAE,UAAU;YAChB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,QAAQ;SACf;QACD;YACE,OAAO,EAAE,4CAA4C;YACrD,IAAI,EAAE,iBAAiB;YACvB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,cAAc;SACrB;QACD;YACE,OAAO,EAAE,4CAA4C;YACrD,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,SAAS;SAChB;KACF;IACD,IAAI,EAAE;QACJ;YACE,OAAO,EAAE,4CAA4C;YACrD,IAAI,EAAE,eAAe;YACrB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,cAAc;SACrB;QACD;YACE,OAAO,EAAE,4CAA4C;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SACf;KACF;IACD,eAAe;IACf,OAAO,EAAE;QACP;YACE,OAAO,EAAE,4CAA4C;YACrD,IAAI,EAAE,UAAU;YAChB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC"}
@@ -60,8 +60,8 @@ export function useSendTransaction(config = {}) {
60
60
  : (data) => {
61
61
  setRootEl(_jsx(TxModal, { tx: data.tx, onComplete: data.sendTx, onClose: () => {
62
62
  setRootEl(null);
63
- data.rejectTx();
64
- }, client: data.tx.client, localeId: payModal?.locale || "en_US", supportedTokens: payModal?.supportedTokens, theme: payModal?.theme || "dark", txCostWei: data.totalCostWei, walletBalanceWei: data.walletBalance.value, nativeTokenSymbol: data.walletBalance.symbol, payOptions: {
63
+ data.rejectTx(new Error("User rejected transaction by closing modal"));
64
+ }, onTxSent: data.resolveTx, client: data.tx.client, localeId: payModal?.locale || "en_US", supportedTokens: payModal?.supportedTokens, theme: payModal?.theme || "dark", txCostWei: data.totalCostWei, walletBalanceWei: data.walletBalance.value, nativeTokenSymbol: data.walletBalance.symbol, payOptions: {
65
65
  buyWithCrypto: payModal?.buyWithCrypto,
66
66
  buyWithFiat: payModal?.buyWithFiat,
67
67
  purchaseData: payModal?.purchaseData,
@@ -86,7 +86,7 @@ function ModalContent(props) {
86
86
  return _jsx(LoadingScreen, {});
87
87
  }
88
88
  if (screen === "execute-tx") {
89
- return _jsx(ExecutingTxScreen, { tx: props.tx, closeModal: props.onClose });
89
+ return (_jsx(ExecutingTxScreen, { tx: props.tx, closeModal: props.onClose, onTxSent: props.onTxSent }));
90
90
  }
91
91
  if (screen === "tx-history") {
92
92
  return (_jsx(BuyTxHistory, { client: props.client, onBack: () => {
@@ -114,14 +114,17 @@ function ExecutingTxScreen(props) {
114
114
  const sendTx = useCallback(async () => {
115
115
  setStatus("loading");
116
116
  try {
117
- await sendTxCore.mutateAsync(props.tx);
117
+ const txData = await sendTxCore.mutateAsync(props.tx);
118
+ props.onTxSent(txData);
118
119
  setStatus("sent");
119
120
  }
120
121
  catch (e) {
122
+ // Do not reject the transaction here, because the user may want to try again
123
+ // we only reject on modal close
121
124
  console.error(e);
122
125
  setStatus("failed");
123
126
  }
124
- }, [sendTxCore, props.tx]);
127
+ }, [sendTxCore, props.tx, props.onTxSent]);
125
128
  const done = useRef(false);
126
129
  useEffect(() => {
127
130
  if (done.current) {
@@ -1 +1 @@
1
- {"version":3,"file":"useSendTransaction.js","sourceRoot":"","sources":["../../../../../../src/react/web/hooks/transaction/useSendTransaction.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAI7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AACzF,OAAO,EAAc,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAE5E,OAAO,EAEL,sBAAsB,GACvB,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,qDAAqD,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAC;AAC7F,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAEnD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AI,EAAC,KAAK,EAAC,MAAM,EAAC,GAAG,aAC7B,MAAM,KAAK,SAAS,IAAI,KAAC,OAAO,IAAC,IAAI,EAAC,KAAK,EAAC,KAAK,EAAC,YAAY,GAAG,EACjE,MAAM,KAAK,QAAQ,IAAI,KAAC,cAAc,IAAC,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAI,EAChE,MAAM,KAAK,MAAM,IAAI,CACpB,KAAC,SAAS,IAAC,KAAK,EAAC,SAAS,EAAC,IAAI,EAAC,KAAK,EAAC,MAAM,EAAC,MAAM,YACjD,KAAC,gBAAgB,IACf,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,EACtB,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,GACvB,GACQ,CACb,IACS,EACZ,KAAC,MAAM,IAAC,CAAC,EAAC,IAAI,GAAG,EAEjB,MAAC,IAAI,IAAC,KAAK,EAAC,aAAa,EAAC,MAAM,QAAC,IAAI,EAAC,IAAI,aACvC,MAAM,KAAK,SAAS,IAAI,qBAAqB,EAC7C,MAAM,KAAK,QAAQ,IAAI,oBAAoB,EAC3C,MAAM,KAAK,MAAM,IAAI,kBAAkB,IACnC,EAEP,KAAC,MAAM,IAAC,CAAC,EAAC,KAAK,GAAG,EAClB,KAAC,MAAM,IAAC,CAAC,EAAC,KAAK,GAAG,EAEjB,MAAM,KAAK,QAAQ,IAAI,CACtB,KAAC,MAAM,IAAC,OAAO,EAAC,QAAQ,EAAC,SAAS,QAAC,OAAO,EAAE,MAAM,0BAEzC,CACV,EAEA,MAAM,KAAK,MAAM,IAAI,CACpB,KAAC,MAAM,IAAC,OAAO,EAAC,QAAQ,EAAC,SAAS,QAAC,OAAO,EAAE,KAAK,CAAC,UAAU,qBAEnD,CACV,IACS,CACb,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"useSendTransaction.js","sourceRoot":"","sources":["../../../../../../src/react/web/hooks/transaction/useSendTransaction.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,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,KAAK,EAAC,YAAY,GAAG,EACjE,MAAM,KAAK,QAAQ,IAAI,KAAC,cAAc,IAAC,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAI,EAChE,MAAM,KAAK,MAAM,IAAI,CACpB,KAAC,SAAS,IAAC,KAAK,EAAC,SAAS,EAAC,IAAI,EAAC,KAAK,EAAC,MAAM,EAAC,MAAM,YACjD,KAAC,gBAAgB,IACf,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,EACtB,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,GACvB,GACQ,CACb,IACS,EACZ,KAAC,MAAM,IAAC,CAAC,EAAC,IAAI,GAAG,EAEjB,MAAC,IAAI,IAAC,KAAK,EAAC,aAAa,EAAC,MAAM,QAAC,IAAI,EAAC,IAAI,aACvC,MAAM,KAAK,SAAS,IAAI,qBAAqB,EAC7C,MAAM,KAAK,QAAQ,IAAI,oBAAoB,EAC3C,MAAM,KAAK,MAAM,IAAI,kBAAkB,IACnC,EAEP,KAAC,MAAM,IAAC,CAAC,EAAC,KAAK,GAAG,EAClB,KAAC,MAAM,IAAC,CAAC,EAAC,KAAK,GAAG,EAEjB,MAAM,KAAK,QAAQ,IAAI,CACtB,KAAC,MAAM,IAAC,OAAO,EAAC,QAAQ,EAAC,SAAS,QAAC,OAAO,EAAE,MAAM,0BAEzC,CACV,EAEA,MAAM,KAAK,MAAM,IAAI,CACpB,KAAC,MAAM,IAAC,OAAO,EAAC,QAAQ,EAAC,SAAS,QAAC,OAAO,EAAE,KAAK,CAAC,UAAU,qBAEnD,CACV,IACS,CACb,CAAC;AACJ,CAAC"}
@@ -136,7 +136,7 @@ function ConnectButtonInner(props) {
136
136
  }
137
137
  // otherwise, show the details button
138
138
  }
139
- return (_jsx(ConnectedWalletDetails, { theme: theme, detailsButton: props.detailsButton, detailsModal: props.detailsModal, supportedTokens: supportedTokens, onDisconnect: (info) => {
139
+ return (_jsx(ConnectedWalletDetails, { theme: theme, detailsButton: props.detailsButton, detailsModal: props.detailsModal, supportedTokens: supportedTokens, supportedNFTs: props.supportedNFTs, onDisconnect: (info) => {
140
140
  // logout on explicit disconnect!
141
141
  if (siweAuth.requiresAuth) {
142
142
  siweAuth.doLogout();
@@ -1 +1 @@
1
- {"version":3,"file":"ConnectButton.js","sourceRoot":"","sources":["../../../../../../src/react/web/ui/ConnectWallet/ConnectButton.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAC;AACzG,OAAO,EACL,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAA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rivateKey } from "./screens/PrivateKey.js";
47
47
  import { ReceiveFunds } from "./screens/ReceiveFunds.js";
48
48
  import { SendFunds } from "./screens/SendFunds.js";
49
49
  import { ViewFunds } from "./screens/ViewFunds.js";
50
+ import { ViewNFTs } from "./screens/ViewNFTs.js";
51
+ import { ViewTokens } from "./screens/ViewTokens.js";
50
52
  import { WalletConnectReceiverScreen } from "./screens/WalletConnectReceiverScreen.js";
51
53
  const TW_CONNECTED_WALLET = "tw-connected-wallet";
52
54
  const LocalhostChainId = 1337;
@@ -64,7 +66,7 @@ export const ConnectedWalletDetails = (props) => {
64
66
  setRootEl(null);
65
67
  }
66
68
  function openModal() {
67
- setRootEl(_jsx(DetailsModal, { client: client, locale: locale, detailsModal: props.detailsModal, theme: props.theme, supportedTokens: props.supportedTokens, closeModal: closeModal, onDisconnect: props.onDisconnect, chains: props.chains, displayBalanceToken: props.detailsButton?.displayBalanceToken, connectOptions: props.connectOptions }));
69
+ setRootEl(_jsx(DetailsModal, { client: client, locale: locale, detailsModal: props.detailsModal, theme: props.theme, supportedTokens: props.supportedTokens, supportedNFTs: props.supportedNFTs, closeModal: closeModal, onDisconnect: props.onDisconnect, chains: props.chains, displayBalanceToken: props.detailsButton?.displayBalanceToken, connectOptions: props.connectOptions }));
68
70
  }
69
71
  const isNetworkMismatch = props.chain && walletChain && walletChain.id !== props.chain.id;
70
72
  if (props.detailsButton?.render) {
@@ -169,7 +171,7 @@ function DetailsModal(props) {
169
171
  setScreen("view-funds");
170
172
  }, style: {
171
173
  fontSize: fontSize.sm,
172
- }, children: [_jsx(CoinsIcon, { size: iconSize.md }), _jsx(Text, { color: "primaryText", children: "View Funds" })] }), _jsxs(MenuButton, { onClick: () => {
174
+ }, children: [_jsx(CoinsIcon, { size: iconSize.md }), _jsx(Text, { color: "primaryText", children: props.supportedNFTs ? "View Assets" : "View Funds" })] }), _jsxs(MenuButton, { onClick: () => {
173
175
  setScreen("manage-wallet");
174
176
  }, style: {
175
177
  fontSize: fontSize.sm,
@@ -209,7 +211,25 @@ function DetailsModal(props) {
209
211
  }, connectLocale: locale, client: client }));
210
212
  }
211
213
  else if (screen === "view-funds") {
212
- content = (_jsx(ViewFunds, { supportedTokens: props.supportedTokens, onBack: () => {
214
+ if (props.supportedNFTs) {
215
+ content = (_jsx(ViewFunds, { supportedTokens: props.supportedTokens, supportedNFTs: props.supportedNFTs, onBack: () => {
216
+ setScreen("main");
217
+ }, setScreen: setScreen, client: client }));
218
+ }
219
+ else {
220
+ // Always show tokens (has the native token at least)
221
+ content = (_jsx(ViewTokens, { supportedTokens: props.supportedTokens, onBack: () => {
222
+ setScreen("main");
223
+ }, client: client }));
224
+ }
225
+ }
226
+ else if (screen === "view-nfts") {
227
+ content = (_jsx(ViewNFTs, { theme: props.theme, supportedNFTs: props.supportedNFTs, onBack: () => {
228
+ setScreen("main");
229
+ }, client: client }));
230
+ }
231
+ else if (screen === "view-tokens") {
232
+ content = (_jsx(ViewTokens, { supportedTokens: props.supportedTokens, onBack: () => {
213
233
  setScreen("main");
214
234
  }, client: client }));
215
235
  }
@@ -408,7 +428,7 @@ export function useWalletDetailsModal() {
408
428
  networkSelector: props.networkSelector,
409
429
  payOptions: props.payOptions,
410
430
  showTestnetFaucet: props.showTestnetFaucet,
411
- }, displayBalanceToken: props.displayBalanceToken, theme: props.theme || "dark", supportedTokens: props.supportedTokens, closeModal: closeModal, onDisconnect: (info) => {
431
+ }, displayBalanceToken: props.displayBalanceToken, theme: props.theme || "dark", supportedTokens: props.supportedTokens, supportedNFTs: props.supportedNFTs, closeModal: closeModal, onDisconnect: (info) => {
412
432
  props.onDisconnect?.(info);
413
433
  closeModal();
414
434
  }, chains: props.chains || [], connectOptions: props.connectOptions }));
@@ -1 +1 @@
1
- {"version":3,"file":"Details.js","sourceRoot":"","sources":["../../../../../../src/react/web/ui/ConnectWallet/Details.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAC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B,SAAS,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IAED,SAAS,SAAS,CAAC,KAAmC;QACpD,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;QAC9C,CAAC;QAED,gBAAgB,CAAC,KAAK,CAAC,MAAM,IAAI,OAAO,CAAC;aACtC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;YACf,SAAS,CACP,KAAC,YAAY,IACX,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE;oBACZ,MAAM,EAAE,KAAK,CAAC,MAAM;oBACpB,cAAc,EAAE,KAAK,CAAC,cAAc;oBACpC,eAAe,EAAE,KAAK,CAAC,eAAe;oBACtC,UAAU,EAAE,KAAK,CAAC,UAAU;oBAC5B,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;iBAC3C,EACD,mBAAmB,EAAE,KAAK,CAAC,mBAAmB,EAC9C,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,MAAM,EAC5B,eAAe,EAAE,KAAK,CAAC,eAAe,EACtC,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE;oBACrB,KAAK,CAAC,YAAY,EAAE,CAAC,IAAI,CAAC,CAAC;oBAC3B,UAAU,EAAE,CAAC;gBACf,CAAC,EACD,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,EAAE,EAC1B,cAAc,EAAE,KAAK,CAAC,cAAc,GACpC,CACH,CAAC;QACJ,CAAC,CAAC;aACD,KAAK,CAAC,GAAG,EAAE;YACV,UAAU,EAAE,CAAC;QACf,CAAC,CAAC,CAAC;IACP,CAAC;IAED,OAAO;QACL,IAAI,EAAE,SAAS;KAChB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"Details.js","sourceRoot":"","sources":["../../../../../../src/react/web/ui/ConnectWallet/Details.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC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