thirdweb 5.42.0-nightly-e27ebef85bb61342c3de53f85e134cf4a29f787c-20240730000342 → 5.42.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.
Files changed (88) hide show
  1. package/dist/cjs/adapters/wallet-adapter.js +12 -1
  2. package/dist/cjs/adapters/wallet-adapter.js.map +1 -1
  3. package/dist/cjs/exports/wallets/in-app.js.map +1 -1
  4. package/dist/cjs/exports/wallets.js.map +1 -1
  5. package/dist/cjs/exports/wallets.native.js.map +1 -1
  6. package/dist/cjs/react/web/ui/AutoConnect/AutoConnect.js +5 -0
  7. package/dist/cjs/react/web/ui/AutoConnect/AutoConnect.js.map +1 -1
  8. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js +196 -2
  9. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  10. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +109 -3
  11. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
  12. package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js +19 -7
  13. package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
  14. package/dist/cjs/version.js +1 -1
  15. package/dist/cjs/version.js.map +1 -1
  16. package/dist/cjs/wallets/create-wallet.js +73 -0
  17. package/dist/cjs/wallets/create-wallet.js.map +1 -1
  18. package/dist/cjs/wallets/in-app/web/ecosystem.js +29 -3
  19. package/dist/cjs/wallets/in-app/web/ecosystem.js.map +1 -1
  20. package/dist/cjs/wallets/in-app/web/in-app.js +100 -5
  21. package/dist/cjs/wallets/in-app/web/in-app.js.map +1 -1
  22. package/dist/cjs/wallets/smart/smart-wallet.js +71 -5
  23. package/dist/cjs/wallets/smart/smart-wallet.js.map +1 -1
  24. package/dist/esm/adapters/wallet-adapter.js +12 -1
  25. package/dist/esm/adapters/wallet-adapter.js.map +1 -1
  26. package/dist/esm/exports/wallets/in-app.js.map +1 -1
  27. package/dist/esm/exports/wallets.js.map +1 -1
  28. package/dist/esm/exports/wallets.native.js.map +1 -1
  29. package/dist/esm/react/web/ui/AutoConnect/AutoConnect.js +5 -0
  30. package/dist/esm/react/web/ui/AutoConnect/AutoConnect.js.map +1 -1
  31. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js +196 -2
  32. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  33. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +109 -3
  34. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
  35. package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js +19 -7
  36. package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
  37. package/dist/esm/version.js +1 -1
  38. package/dist/esm/version.js.map +1 -1
  39. package/dist/esm/wallets/create-wallet.js +73 -0
  40. package/dist/esm/wallets/create-wallet.js.map +1 -1
  41. package/dist/esm/wallets/in-app/web/ecosystem.js +29 -3
  42. package/dist/esm/wallets/in-app/web/ecosystem.js.map +1 -1
  43. package/dist/esm/wallets/in-app/web/in-app.js +100 -5
  44. package/dist/esm/wallets/in-app/web/in-app.js.map +1 -1
  45. package/dist/esm/wallets/smart/smart-wallet.js +71 -5
  46. package/dist/esm/wallets/smart/smart-wallet.js.map +1 -1
  47. package/dist/types/adapters/wallet-adapter.d.ts +12 -1
  48. package/dist/types/adapters/wallet-adapter.d.ts.map +1 -1
  49. package/dist/types/exports/wallets/in-app.d.ts +1 -0
  50. package/dist/types/exports/wallets/in-app.d.ts.map +1 -1
  51. package/dist/types/exports/wallets.d.ts +4 -2
  52. package/dist/types/exports/wallets.d.ts.map +1 -1
  53. package/dist/types/exports/wallets.native.d.ts +3 -2
  54. package/dist/types/exports/wallets.native.d.ts.map +1 -1
  55. package/dist/types/react/web/ui/AutoConnect/AutoConnect.d.ts +5 -0
  56. package/dist/types/react/web/ui/AutoConnect/AutoConnect.d.ts.map +1 -1
  57. package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts +196 -2
  58. package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts.map +1 -1
  59. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts +109 -3
  60. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts.map +1 -1
  61. package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts.map +1 -1
  62. package/dist/types/version.d.ts +1 -1
  63. package/dist/types/version.d.ts.map +1 -1
  64. package/dist/types/wallets/create-wallet.d.ts +73 -0
  65. package/dist/types/wallets/create-wallet.d.ts.map +1 -1
  66. package/dist/types/wallets/ecosystem/types.d.ts +5 -4
  67. package/dist/types/wallets/ecosystem/types.d.ts.map +1 -1
  68. package/dist/types/wallets/in-app/web/ecosystem.d.ts +29 -3
  69. package/dist/types/wallets/in-app/web/ecosystem.d.ts.map +1 -1
  70. package/dist/types/wallets/in-app/web/in-app.d.ts +100 -5
  71. package/dist/types/wallets/in-app/web/in-app.d.ts.map +1 -1
  72. package/dist/types/wallets/smart/smart-wallet.d.ts +71 -5
  73. package/dist/types/wallets/smart/smart-wallet.d.ts.map +1 -1
  74. package/package.json +1 -1
  75. package/src/adapters/wallet-adapter.ts +12 -1
  76. package/src/exports/wallets/in-app.ts +6 -0
  77. package/src/exports/wallets.native.ts +8 -1
  78. package/src/exports/wallets.ts +13 -1
  79. package/src/react/web/ui/AutoConnect/AutoConnect.tsx +5 -0
  80. package/src/react/web/ui/ConnectWallet/ConnectButton.tsx +196 -2
  81. package/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx +109 -3
  82. package/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx +19 -8
  83. package/src/version.ts +1 -1
  84. package/src/wallets/create-wallet.ts +73 -0
  85. package/src/wallets/ecosystem/types.ts +9 -5
  86. package/src/wallets/in-app/web/ecosystem.ts +29 -3
  87. package/src/wallets/in-app/web/in-app.ts +100 -5
  88. package/src/wallets/smart/smart-wallet.ts +71 -5
@@ -1,9 +1,28 @@
1
1
  import { createEcosystemWallet } from "../core/wallet/ecosystem-core.js";
2
2
  /**
3
- * Creates an ecosystem wallet.
3
+ * Creates an [Ecosystem Wallet](https://portal.thirdweb.com/connect/ecosystems/overview) based on various authentication methods.
4
+ *
5
+ * Available authentication methods:
6
+ * - Email
7
+ * - Phone
8
+ * - Passkey
9
+ * - Google
10
+ * - Apple
11
+ * - Facebook
12
+ * - Discord
13
+ * - Farcaster
14
+ *
15
+ * Can also be configured to use Account Abstraction to directly connect to a ERC4337 smart account based on those authentication methods.
16
+ *
17
+ * Refer to [inAppWallet](https://portal.thirdweb.com/references/typescript/v5/inAppWallet) for detailed usage examples.
18
+ *
4
19
  * @param createOptions - configuration options
20
+ * Refer to [EcosystemWalletCreationOptions](https://portal.thirdweb.com/references/typescript/v5/EcosystemWalletCreationOptions) for more details.
5
21
  * @returns The created ecosystem wallet.
6
22
  * @example
23
+ *
24
+ * ### Connect to an ecosystem wallet
25
+ *
7
26
  * ```ts
8
27
  * import { ecosystemWallet } from "thirdweb/wallets";
9
28
  *
@@ -16,14 +35,21 @@ import { createEcosystemWallet } from "../core/wallet/ecosystem-core.js";
16
35
  * });
17
36
  * ```
18
37
  *
19
- * Connect to a restricted ecosystem wallet with your designated partner ID
20
- * @note The parnter ID will be provided to you by the ecosystem with which you're integrating.
38
+ * [View all connection options](https://portal.thirdweb.com/references/typescript/v5/EcosystemWalletConnectionOptions)
39
+ *
40
+ * ### Connect to a restricted ecosystem wallet with your designated partner ID
41
+ *
42
+ * The parnter ID will be provided to you by the ecosystem with which you're integrating.
43
+ *
21
44
  * ```ts
22
45
  * import { ecosystemWallet } from "thirdweb/wallets";
23
46
  * const wallet = ecosystemWallet("ecosystem.hooli", {
24
47
  * partnerId: "..."
25
48
  * });
26
49
  * ```
50
+ *
51
+ * Refer to [inAppWallet](https://portal.thirdweb.com/references/typescript/v5/inAppWallet) for more usage examples.
52
+ *
27
53
  * @wallet
28
54
  */
29
55
  export function ecosystemWallet(...args) {
@@ -1 +1 @@
1
- {"version":3,"file":"ecosystem.js","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/ecosystem.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,UAAU,eAAe,CAC7B,GAAG,IAAyC;IAE5C,MAAM,CAAC,WAAW,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC;IAC1C,OAAO,qBAAqB,CAAC;QAC3B,EAAE,EAAE,WAAW;QACf,aAAa;QACb,gBAAgB,EAAE,KAAK,EAAE,MAAsB,EAAE,EAAE;YACjD,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,MAAM,CAAC,wBAAwB,CAAC,CAAC;YACrE,OAAO,IAAI,iBAAiB,CAAC;gBAC3B,MAAM;gBACN,SAAS,EAAE;oBACT,EAAE,EAAE,WAAW;oBACf,SAAS,EAAE,aAAa,EAAE,SAAS;iBACpC;aACF,CAAC,CAAC;QACL,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"ecosystem.js","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/ecosystem.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,MAAM,UAAU,eAAe,CAC7B,GAAG,IAAyC;IAE5C,MAAM,CAAC,WAAW,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC;IAC1C,OAAO,qBAAqB,CAAC;QAC3B,EAAE,EAAE,WAAW;QACf,aAAa;QACb,gBAAgB,EAAE,KAAK,EAAE,MAAsB,EAAE,EAAE;YACjD,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,MAAM,CAAC,wBAAwB,CAAC,CAAC;YACrE,OAAO,IAAI,iBAAiB,CAAC;gBAC3B,MAAM;gBACN,SAAS,EAAE;oBACT,EAAE,EAAE,WAAW;oBACf,SAAS,EAAE,aAAa,EAAE,SAAS;iBACpC;aACF,CAAC,CAAC;QACL,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -1,9 +1,26 @@
1
1
  import { createInAppWallet } from "../core/wallet/in-app-core.js";
2
2
  /**
3
- * Creates an in-app wallet.
3
+ * Creates an app scoped wallet for users based on various authentication methods.
4
+ *
5
+ * Available authentication methods:
6
+ * - Email
7
+ * - Phone
8
+ * - Passkey
9
+ * - Google
10
+ * - Apple
11
+ * - Facebook
12
+ * - Discord
13
+ * - Farcaster
14
+ *
15
+ * Can also be configured to use Account Abstraction to directly connect to a ERC4337 smart account based on those authentication methods.
16
+ *
4
17
  * @param createOptions - configuration options
18
+ * Refer to [InAppWalletCreationOptions](https://portal.thirdweb.com/references/typescript/v5/InAppWalletCreationOptions) to see the available options.
5
19
  * @returns The created in-app wallet.
6
20
  * @example
21
+ *
22
+ * ### Login with socials
23
+ *
7
24
  * ```ts
8
25
  * import { inAppWallet } from "thirdweb/wallets";
9
26
  *
@@ -16,18 +33,90 @@ import { createInAppWallet } from "../core/wallet/in-app-core.js";
16
33
  * });
17
34
  * ```
18
35
  *
19
- * Enable smart accounts and sponsor gas for your users:
36
+ * [View all available social auth methods](https://portal.thirdweb.com/references/typescript/v5/InAppWalletSocialAuth)
37
+ *
38
+ * * ### Login with email
39
+ *
40
+ * ```ts
41
+ * import { inAppWallet, preAuthenticate } from "thirdweb/wallets/in-app";
42
+ *
43
+ * const wallet = inAppWallet();
44
+ *
45
+ * // sends a verification code to the provided email
46
+ * await preAuthenticate({
47
+ * client,
48
+ * strategy: "email",
49
+ * email: "example@example.com",
50
+ * });
51
+ *
52
+ * // login with the verification code
53
+ * const account = await wallet.connect({
54
+ * client,
55
+ * chain,
56
+ * strategy: "email",
57
+ * verificationCode: "123456",
58
+ * });
59
+ * ```
60
+ *
61
+ * ### Login with phone number
62
+ * ```ts
63
+ * import { inAppWallet, preAuthenticate } from "thirdweb/wallets/in-app";
64
+ *
65
+ * const wallet = inAppWallet();
66
+ *
67
+ * // sends a verification code to the provided phone number
68
+ * await preAuthenticate({
69
+ * client,
70
+ * strategy: "phone",
71
+ * phoneNumber: "+1234567890",
72
+ * });
73
+ *
74
+ * // login with the verification code
75
+ * const account = await wallet.connect({
76
+ * client,
77
+ * chain,
78
+ * strategy: "phone",
79
+ * verificationCode: "123456",
80
+ * });
81
+ *
82
+ * ### Login with passkey
83
+ *
84
+ * ```ts
85
+ * import { inAppWallet, hasStoredPasskey } from "thirdweb/wallets/in-app";
86
+ *
87
+ * const wallet = inAppWallet();
88
+ *
89
+ * const wallet = inAppWallet();
90
+ * const hasPasskey = await hasStoredPasskey(client);
91
+ * await wallet.connect({
92
+ * client,
93
+ * strategy: "passkey",
94
+ * type: hasPasskey ? "sign-in" : "sign-up",
95
+ * });
96
+ * ```
97
+ *
98
+ * ### Enable smart accounts and sponsor gas for your users:
99
+ *
20
100
  * ```ts
21
101
  * import { inAppWallet } from "thirdweb/wallets";
102
+ * import { sepolia } from "thirdweb/chains";
103
+ *
22
104
  * const wallet = inAppWallet({
23
105
  * smartAccount: {
24
106
  * chain: sepolia,
25
107
  * sponsorGas: true,
26
108
  * },
27
109
  * });
110
+ *
111
+ * // account will be a smart account with sponsored gas enabled
112
+ * const account = await wallet.connect({
113
+ * client,
114
+ * chain,
115
+ * strategy: "google",
116
+ * });
28
117
  * ```
29
118
  *
30
- * Specify a logo for your login page
119
+ * ### Specify a logo for your login page (Connect UI)
31
120
  * ```ts
32
121
  * import { inAppWallet } from "thirdweb/wallets";
33
122
  * const wallet = inAppWallet({
@@ -42,7 +131,8 @@ import { createInAppWallet } from "../core/wallet/in-app-core.js";
42
131
  * });
43
132
  * ```
44
133
  *
45
- * Hide the ability to export the private key within the Connect Modal
134
+ * ### Hide the ability to export the private key within the Connect Modal UI
135
+ *
46
136
  * ```ts
47
137
  * import { inAppWallet } from "thirdweb/wallets";
48
138
  * const wallet = inAppWallet({
@@ -50,7 +140,10 @@ import { createInAppWallet } from "../core/wallet/in-app-core.js";
50
140
  * });
51
141
  * ```
52
142
  *
53
- * Open the Oauth window in the same tab
143
+ * ### Open the Oauth window in the same tab
144
+ *
145
+ * By default, the Oauth window will open in a popup window. You can change this behavior by setting the `auth.mode` option to `"redirect"`.
146
+ *
54
147
  * ```ts
55
148
  * import { inAppWallet } from "thirdweb/wallets";
56
149
  * const wallet = inAppWallet({
@@ -59,6 +152,8 @@ import { createInAppWallet } from "../core/wallet/in-app-core.js";
59
152
  * }
60
153
  * });
61
154
  * ```
155
+ *
156
+ * @returns The created in-app wallet.
62
157
  * @wallet
63
158
  */
64
159
  export function inAppWallet(createOptions) {
@@ -1 +1 @@
1
- {"version":3,"file":"in-app.js","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/in-app.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,MAAM,UAAU,WAAW,CACzB,aAA4C;IAE5C,OAAO,iBAAiB,CAAC;QACvB,aAAa;QACb,gBAAgB,EAAE,KAAK,EAAE,MAAsB,EAAE,EAAE;YACjD,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,MAAM,CAAC,wBAAwB,CAAC,CAAC;YACrE,OAAO,IAAI,iBAAiB,CAAC;gBAC3B,MAAM;aACP,CAAC,CAAC;QACL,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"in-app.js","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/in-app.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4JG;AACH,MAAM,UAAU,WAAW,CACzB,aAA4C;IAE5C,OAAO,iBAAiB,CAAC;QACvB,aAAa;QACb,gBAAgB,EAAE,KAAK,EAAE,MAAsB,EAAE,EAAE;YACjD,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,MAAM,CAAC,wBAAwB,CAAC,CAAC;YACrE,OAAO,IAAI,iBAAiB,CAAC;gBAC3B,MAAM;aACP,CAAC,CAAC;QACL,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -4,23 +4,89 @@ import { isContractDeployed } from "../../utils/bytecode/is-contract-deployed.js
4
4
  import { createWalletEmitter } from "../wallet-emitter.js";
5
5
  import { DEFAULT_ACCOUNT_FACTORY } from "./lib/constants.js";
6
6
  /**
7
- * Creates a smart wallet.
7
+ * Creates a ERC4337 smart wallet based on a admin account.
8
+ *
9
+ * Smart wallets are smart contract wallets that enable multiple benefits for users:
10
+ *
11
+ * - Sponsor gas fees for transactions
12
+ * - Multiple owners
13
+ * - Session keys
14
+ * - Batch transactions
15
+ * - Predictable addresses
16
+ * - Programmable features
17
+ *
18
+ * [Learn more about account abstraction](https://portal.thirdweb.com/connect/account-abstraction/how-it-works)
19
+ *
8
20
  * @param createOptions - The options for creating the wallet.
21
+ * Refer to [SmartWalletCreationOptions](https://portal.thirdweb.com/references/typescript/v5/SmartWalletCreationOptions) for more details.
9
22
  * @returns The created smart wallet.
10
23
  * @example
24
+ *
25
+ * ## Connect to a smart wallet
26
+ *
27
+ * To connect to a smart wallet, you need to provide an admin account as the `personalAccount` option.
28
+ *
29
+ * Any wallet can be used as an admin account, including an in-app wallets.
30
+ *
31
+ * The `sponsorGas` option is used to enable sponsored gas for transactions automatically.
32
+ *
11
33
  * ```ts
12
- * import { smartWallet } from "thirdweb/wallets";
34
+ * import { smartWalletm inAppWallet } from "thirdweb/wallets";
35
+ * import { sepolia } from "thirdweb/chains";
36
+ * import { sendTransaction } from "thirdweb";
13
37
  *
14
38
  * const wallet = smartWallet({
15
39
  * chain: sepolia,
16
- * gasless: true,
40
+ * sponsorGas: true, // enable sponsored transactions
17
41
  * });
18
42
  *
19
- * const account = await wallet.connect({
43
+ * // any wallet can be used as an admin account
44
+ * // in this example we use an in-app wallet
45
+ * const adminWallet = inAppWallet();
46
+ * const personalAccount = await adminWallet.connect({
20
47
  * client,
21
- * personalAccount: account,
48
+ * chain: sepolia,
49
+ * strategy: "google",
50
+ * });
51
+ *
52
+ * const smartAccount = await wallet.connect({
53
+ * client,
54
+ * personalAccount, // pass the admin account
55
+ * });
56
+ *
57
+ * // sending sponsored transactions with the smartAccount
58
+ * await sendTransaction({
59
+ * account: smartAccount,
60
+ * transaction,
22
61
  * });
23
62
  * ```
63
+ *
64
+ * ## Configuring the smart wallet
65
+ *
66
+ * You can pass options to the `smartWallet` function to configure the smart wallet.
67
+ *
68
+ * ```ts
69
+ * import { smartWallet } from "thirdweb/wallets";
70
+ * import { sepolia } from "thirdweb/chains";
71
+ *
72
+ * const wallet = smartWallet({
73
+ * chain: sepolia,
74
+ * sponsorGas: true, // enable sponsored transactions
75
+ * factoryAddress: "0x...", // custom factory address
76
+ * overrides: {
77
+ * accountAddress: "0x...", // override account address
78
+ * accountSalt: "0x...", // override account salt
79
+ * entrypointAddress: "0x...", // override entrypoint address
80
+ * erc20Paymaster: { ... }, // enable erc20 paymaster
81
+ * bundlerUrl: "https://...", // override bundler url
82
+ * paymaster: (userOp) => { ... }, // override paymaster
83
+ * ...
84
+ * }
85
+ * });
86
+ * ```
87
+ *
88
+ * Refer to [SmartWalletOptions](https://portal.thirdweb.com/references/typescript/v5/SmartWalletOptions) for more details.
89
+ *
24
90
  * @wallet
25
91
  */
26
92
  export function smartWallet(createOptions) {
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,EAAE,EAC1C,aAAa,CACd,CAAC;YACF,iBAAiB;YACjB,OAAO,GAAG,gBAAgB,CAAC;YAC3B,KAAK,GAAG,cAAc,CAAC;YACvB,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;QACzC,CAAC;KACF,CAAC;IAEF,OAAO,YAAY,CAAC;AACtB,CAAC"}
@@ -9,7 +9,18 @@ export type AdapterWalletOptions = {
9
9
  switchChain: (chain: Chain) => Promise<void> | void;
10
10
  };
11
11
  /**
12
- * Creates a wallet from the given adapted account. Use this to convert a third party library wallet into a thirdweb wallet.
12
+ * Creates a wallet from the given account.
13
+ *
14
+ * You can use this to:
15
+ *
16
+ * - convert a third party library wallet (wagmi, viem, ethers) into a thirdweb wallet.
17
+ * - connect with a private key (for automated tests)
18
+ *
19
+ * Available wallet adatpers:
20
+ * - [Viem](https://portal.thirdweb.com/references/typescript/v5/viemAdapter)
21
+ * - [Ethers 6](https://portal.thirdweb.com/references/typescript/v5/ethers6Adapter)
22
+ * - [Ethers 5](https://portal.thirdweb.com/references/typescript/v5/ethers5Adapter)
23
+ *
13
24
  * @param options - The options for the adapter wallet.
14
25
  * @returns a wallet instance.
15
26
  *
@@ -1 +1 @@
1
- {"version":3,"file":"wallet-adapter.d.ts","sourceRoot":"","sources":["../../../src/adapters/wallet-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAGvE,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,cAAc,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACzC,WAAW,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CACrD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,oBAAoB,GAC5B,MAAM,CAAC,SAAS,CAAC,CAiCnB"}
1
+ {"version":3,"file":"wallet-adapter.d.ts","sourceRoot":"","sources":["../../../src/adapters/wallet-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAGvE,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,cAAc,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACzC,WAAW,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CACrD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,oBAAoB,GAC5B,MAAM,CAAC,SAAS,CAAC,CAiCnB"}
@@ -1,6 +1,7 @@
1
1
  export { inAppWallet } from "../../wallets/in-app/web/in-app.js";
2
2
  export { preAuthenticate, authenticate, getUserEmail, getUserPhoneNumber, } from "../../wallets/in-app/web/lib/auth/index.js";
3
3
  export { type GetAuthenticatedUserParams } from "../../wallets/in-app/core/authentication/type.js";
4
+ export type { InAppWalletCreationOptions, InAppWalletAuth, InAppWalletSocialAuth, InAppWalletConnectionOptions, } from "../../wallets/in-app/core/wallet/types.js";
4
5
  export { hasStoredPasskey } from "../../wallets/in-app/web/lib/auth/passkeys.js";
5
6
  export { socialIcons } from "../../react/core/utils/socialIcons.js";
6
7
  //# sourceMappingURL=in-app.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"in-app.d.ts","sourceRoot":"","sources":["../../../../src/exports/wallets/in-app.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEjE,OAAO,EACL,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,kBAAkB,GACnB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,kDAAkD,CAAC;AAEnG,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAEjF,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC"}
1
+ {"version":3,"file":"in-app.d.ts","sourceRoot":"","sources":["../../../../src/exports/wallets/in-app.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEjE,OAAO,EACL,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,kBAAkB,GACnB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,kDAAkD,CAAC;AACnG,YAAY,EACV,0BAA0B,EAC1B,eAAe,EACf,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,2CAA2C,CAAC;AAEnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAEjF,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC"}
@@ -5,6 +5,7 @@ export { inAppWallet,
5
5
  */
6
6
  inAppWallet as embeddedWallet, } from "../wallets/in-app/web/in-app.js";
7
7
  export { ecosystemWallet } from "../wallets/in-app/web/ecosystem.js";
8
+ export type { EcosystemWalletCreationOptions, EcosystemWalletConnectionOptions, EcosystemWalletAutoConnectOptions, } from "../wallets/ecosystem/types.js";
8
9
  export { smartWallet } from "../wallets/smart/smart-wallet.js";
9
10
  export type { Wallet, Account } from "../wallets/interfaces/wallet.js";
10
11
  export type { ConnectionStatus } from "../wallets/manager/index.js";
@@ -21,7 +22,7 @@ privateKeyToAccount as privateKeyAccount, type PrivateKeyToAccountOptions,
21
22
  * @deprecated - use {@link PrivateKeyToAccountOptions} instead
22
23
  */
23
24
  type PrivateKeyToAccountOptions as PrivateKeyAccountOptions, } from "../wallets/private-key.js";
24
- export type { WalletId, WalletAutoConnectionOption, WalletCreationOptions, WalletConnectionOption, CreateWalletArgs, } from "../wallets/wallet-types.js";
25
+ export type { WalletId, WalletAutoConnectionOption, WalletCreationOptions, WalletConnectionOption, CreateWalletArgs, InjectedConnectOptions, DeepLinkSupportedWalletCreationOptions, StandaloneWCConnectOptions, } from "../wallets/wallet-types.js";
25
26
  export type { WCSupportedWalletIds, InjectedSupportedWalletIds, } from "../wallets/__generated__/wallet-ids.js";
26
27
  export type { WCConnectOptions, WCAutoConnectOptions, } from "../wallets/wallet-connect/types.js";
27
28
  export type { SmartWalletConnectionOptions, SmartWalletOptions, } from "../wallets/smart/types.js";
@@ -42,12 +43,13 @@ InAppWalletConnectionOptions as EmbeddedWalletConnectionOptions, InAppWalletSoci
42
43
  * @deprecated use InAppWalletSocialAuth instead
43
44
  */
44
45
  InAppWalletSocialAuth as EmbeddedWalletSocialAuth, } from "../wallets/in-app/core/wallet/types.js";
45
- export type { CoinbaseSDKWalletConnectionOptions } from "../wallets/coinbase/coinbaseWebSDK.js";
46
+ export type { CoinbaseWalletCreationOptions, CoinbaseSDKWalletConnectionOptions, } from "../wallets/coinbase/coinbaseWebSDK.js";
46
47
  export type { WalletEmitter, WalletEmitterEvents, } from "../wallets/wallet-emitter.js";
47
48
  export { getAllWalletsList } from "../wallets/getAllWalletsList.js";
48
49
  export { getWalletInfo } from "../wallets/__generated__/getWalletInfo.js";
49
50
  export { type WalletInfo } from "../wallets/wallet-info.js";
50
51
  export { createWalletAdapter } from "../adapters/wallet-adapter.js";
52
+ export type { AdapterWalletOptions } from "../adapters/wallet-adapter.js";
51
53
  export { createWalletConnectClient, createWalletConnectSession, disconnectWalletConnectSession, getActiveWalletConnectSessions, DefaultWalletConnectRequestHandlers, } from "../wallets/wallet-connect/receiver/index.js";
52
54
  export type { WalletConnectClient, WalletConnectSession, } from "../wallets/wallet-connect/receiver/types.js";
53
55
  export { injectedProvider } from "../wallets/injected/mipdStore.js";
@@ -1 +1 @@
1
- {"version":3,"file":"wallets.d.ts","sourceRoot":"","sources":["../../../src/exports/wallets.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,aAAa,GACd,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,WAAW;AACX;;GAEG;AACH,WAAW,IAAI,cAAc,GAC9B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAE/D,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AACvE,YAAY,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAGpE,OAAO,EACL,gBAAgB,EAChB,KAAK,uBAAuB,GAC7B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,eAAe,EACf,KAAK,sBAAsB,GAC5B,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EACL,mBAAmB;AACnB;;;GAGG;AACH,mBAAmB,IAAI,iBAAiB,EACxC,KAAK,0BAA0B;AAC/B;;;GAGG;AACH,KAAK,0BAA0B,IAAI,wBAAwB,GAC5D,MAAM,2BAA2B,CAAC;AAEnC,YAAY,EACV,QAAQ,EACR,0BAA0B,EAC1B,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EACV,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,wCAAwC,CAAC;AAEhD,YAAY,EACV,gBAAgB,EAChB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AC7B,kCAAkC,GACnC,MAAM,uCAAuC,CAAC;AAE/C,YAAY,EACV,aAAa,EACb,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,YAAY,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAG1E,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,mCAAmC,GACpC,MAAM,6CAA6C,CAAC;AACrD,YAAY,EACV,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,6CAA6C,CAAC;AAKrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,YAAY,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -16,7 +16,7 @@ privateKeyToAccount as privateKeyAccount, type PrivateKeyToAccountOptions,
16
16
  * @deprecated - use {@link PrivateKeyToAccountOptions} instead
17
17
  */
18
18
  type PrivateKeyToAccountOptions as PrivateKeyAccountOptions, } from "../wallets/private-key.js";
19
- export type { WalletId, WalletAutoConnectionOption, WalletCreationOptions, WalletConnectionOption, CreateWalletArgs, } from "../wallets/wallet-types.js";
19
+ export type { WalletId, WalletAutoConnectionOption, WalletCreationOptions, WalletConnectionOption, CreateWalletArgs, InjectedConnectOptions, DeepLinkSupportedWalletCreationOptions, StandaloneWCConnectOptions, } from "../wallets/wallet-types.js";
20
20
  export type { WCSupportedWalletIds, InjectedSupportedWalletIds, } from "../wallets/__generated__/wallet-ids.js";
21
21
  export type { WCConnectOptions, WCAutoConnectOptions, } from "../wallets/wallet-connect/types.js";
22
22
  export type { SmartWalletConnectionOptions, SmartWalletOptions, } from "../wallets/smart/types.js";
@@ -37,12 +37,13 @@ InAppWalletConnectionOptions as EmbeddedWalletConnectionOptions, InAppWalletSoci
37
37
  * @deprecated use InAppWalletSocialAuth instead
38
38
  */
39
39
  InAppWalletSocialAuth as EmbeddedWalletSocialAuth, } from "../wallets/in-app/core/wallet/types.js";
40
- export type { CoinbaseSDKWalletConnectionOptions } from "../wallets/coinbase/coinbaseWebSDK.js";
40
+ export type { CoinbaseWalletCreationOptions, CoinbaseSDKWalletConnectionOptions, } from "../wallets/coinbase/coinbaseWebSDK.js";
41
41
  export type { WalletEmitter, WalletEmitterEvents, } from "../wallets/wallet-emitter.js";
42
42
  export { getAllWalletsList } from "../wallets/getAllWalletsList.js";
43
43
  export { getWalletInfo } from "../wallets/__generated__/getWalletInfo.js";
44
44
  export { type WalletInfo } from "../wallets/wallet-info.js";
45
45
  export { createWalletAdapter } from "../adapters/wallet-adapter.js";
46
+ export type { AdapterWalletOptions } from "../adapters/wallet-adapter.js";
46
47
  export { createWalletConnectClient, createWalletConnectSession, disconnectWalletConnectSession, getActiveWalletConnectSessions, DefaultWalletConnectRequestHandlers, } from "../wallets/wallet-connect/receiver/index.js";
47
48
  export type { WalletConnectClient, WalletConnectSession, } from "../wallets/wallet-connect/receiver/types.js";
48
49
  export declare const injectedProvider: () => never;
@@ -1 +1 @@
1
- {"version":3,"file":"wallets.native.d.ts","sourceRoot":"","sources":["../../../src/exports/wallets.native.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,aAAa,GACd,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAE/D,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AACvE,YAAY,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAGpE,OAAO,EACL,gBAAgB,EAChB,KAAK,uBAAuB,GAC7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AA8B,EAC9B,mCAAmC,GACpC,MAAM,6CAA6C,CAAC;AACrD,YAAY,EACV,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,6CAA6C,CAAC;AAIrD,eAAO,MAAM,gBAAgB,aAE5B,CAAC"}
1
+ {"version":3,"file":"wallets.native.d.ts","sourceRoot":"","sources":["../../../src/exports/wallets.native.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,aAAa,GACd,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAE/D,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AACvE,YAAY,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAGpE,OAAO,EACL,gBAAgB,EAChB,KAAK,uBAAuB,GAC7B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,eAAe,EACf,KAAK,sBAAsB,GAC5B,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EACL,mBAAmB;AACnB;;;GAGG;AACH,mBAAmB,IAAI,iBAAiB,EACxC,KAAK,0BAA0B;AAC/B;;;GAGG;AACH,KAAK,0BAA0B,IAAI,wBAAwB,GAC5D,MAAM,2BAA2B,CAAC;AAEnC,YAAY,EACV,QAAQ,EACR,0BAA0B,EAC1B,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EAChB,sBAAsB,EACtB,sCAAsC,EACtC,0BAA0B,GAC3B,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EACV,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,wCAAwC,CAAC;AAEhD,YAAY,EACV,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,oCAAoC,CAAC;AAE5C,YAAY,EACV,4BAA4B,EAC5B,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AAEnC,YAAY,EACV,eAAe;AACf;;GAEG;AACH,eAAe,IAAI,kBAAkB,EACrC,6BAA6B;AAC7B;;GAEG;AACH,6BAA6B,IAAI,gCAAgC,EACjE,4BAA4B;AAC5B;;GAEG;AACH,4BAA4B,IAAI,+BAA+B,EAC/D,qBAAqB;AACrB;;GAEG;AACH,qBAAqB,IAAI,wBAAwB,GAClD,MAAM,wCAAwC,CAAC;AAEhD,YAAY,EACV,6BAA6B,EAC7B,kCAAkC,GACnC,MAAM,uCAAuC,CAAC;AAE/C,YAAY,EACV,aAAa,EACb,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,YAAY,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAG1E,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,mCAAmC,GACpC,MAAM,6CAA6C,CAAC;AACrD,YAAY,EACV,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,6CAA6C,CAAC;AAIrD,eAAO,MAAM,gBAAgB,aAE5B,CAAC"}
@@ -4,6 +4,11 @@ import type { AutoConnectProps } from "../../../core/hooks/connection/types.js";
4
4
  * Note: If you are using `ConnectButton` or `ConnectEmbed` components, You don't need to use this component as it is already included.
5
5
  *
6
6
  * This is useful if you are manually connecting the wallets using the [`useConnect`](https://portal.thirdweb.com/references/typescript/v5/useConnect) hook and want to auto connect the last connected wallets on page reload or revisit.
7
+ *
8
+ * You can also use the [`useAutoConnect`](https://portal.thirdweb.com/references/typescript/v5/useAutoConnect) hook to achieve the same result.
9
+ *
10
+ * To check if the wallet in in the process of auto connecting, you can use the [`useIsAutoConnecting`](https://portal.thirdweb.com/references/typescript/v5/useIsAutoConnecting) hook.
11
+ *
7
12
  * @param props - Object of type `AutoConnectProps`. Refer to [`AutoConnectProps`](https://portal.thirdweb.com/references/typescript/v5/AutoConnectProps)
8
13
  * @example
9
14
  * ```tsx
@@ -1 +1 @@
1
- {"version":3,"file":"AutoConnect.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/ui/AutoConnect/AutoConnect.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAIhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,8CAGlD;AAID;;GAEG;AACH,wBAAgB,aAAa,SAW5B"}
1
+ {"version":3,"file":"AutoConnect.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/ui/AutoConnect/AutoConnect.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAIhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,8CAGlD;AAID;;GAEG;AACH,wBAAgB,aAAa,SAW5B"}