@coinbase/cdp-hooks 0.0.34 → 0.0.36

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 (2) hide show
  1. package/README.md +9 -5
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -142,7 +142,9 @@ function App() {
142
142
  <CDPHooksProvider
143
143
  config={{
144
144
  projectId: "your-project-id",
145
- createAccountOnLogin: "evm-smart", // Creates Smart Accounts instead of EOAs
145
+ ethereum: {
146
+ createOnLogin: "smart", // Creates Smart Accounts instead of EOAs
147
+ },
146
148
  }}
147
149
  >
148
150
  <App />
@@ -151,7 +153,7 @@ function App() {
151
153
  }
152
154
  ```
153
155
 
154
- * When `createAccountOnLogin` is set to `"evm-smart"`, new users will automatically get both an EOA and a Smart Account.
156
+ * When `ethereum.createOnLogin` is set to `"smart"`, new users will automatically get both an EOA and a Smart Account.
155
157
 
156
158
  #### Solana Configuration
157
159
 
@@ -163,7 +165,9 @@ function App() {
163
165
  <CDPHooksProvider
164
166
  config={{
165
167
  projectId: "your-project-id",
166
- createAccountOnLogin: "solana", // Creates Solana accounts instead of EVM accounts
168
+ solana: {
169
+ createOnLogin: true, // Creates Solana accounts
170
+ },
167
171
  }}
168
172
  >
169
173
  <App />
@@ -172,7 +176,7 @@ function App() {
172
176
  }
173
177
  ```
174
178
 
175
- * When `createAccountOnLogin` is set to `"solana"`, new users will automatically get a Solana account instead of EVM accounts.
179
+ * When `solana.createOnLogin` is set to `true`, new users will automatically get a Solana account instead of EVM accounts.
176
180
 
177
181
  ### Sign In a User
178
182
 
@@ -380,7 +384,7 @@ function UserInformation() {
380
384
 
381
385
  ### Working with Solana
382
386
 
383
- When your application is configured with `createAccountOnLogin: "solana"`, you can use Solana-specific hooks to interact with Solana accounts.
387
+ When your application is configured with `solana: { createOnLogin: true }`, you can use Solana-specific hooks to interact with Solana accounts.
384
388
 
385
389
  #### Access Solana Address
386
390
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cdp-hooks",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/**",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "peerDependencies": {
16
16
  "react": ">=18.2.0",
17
- "@coinbase/cdp-core": "^0.0.34"
17
+ "@coinbase/cdp-core": "^0.0.36"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@testing-library/jest-dom": "^6.6.3",
@@ -29,7 +29,7 @@
29
29
  "@size-limit/webpack": "^11.2.0",
30
30
  "@size-limit/webpack-why": "^11.2.0",
31
31
  "size-limit": "^11.2.0",
32
- "@coinbase/cdp-core": "^0.0.34"
32
+ "@coinbase/cdp-core": "^0.0.36"
33
33
  },
34
34
  "size-limit": [
35
35
  {