@coinbase/cdp-wagmi 0.0.24 → 0.0.26

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 +4 -4
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -45,7 +45,7 @@ the CDP Frontend SDK. The `providerConfig` must be provided and is responsible f
45
45
  configuring the EIP-1193 provider's transports which are used to broadcast non-Base
46
46
  transactions.
47
47
 
48
- ```tsx
48
+ ```tsx lines
49
49
  import React from 'react';
50
50
  import ReactDOM from 'react-dom/client';
51
51
  import { App } from './App'; // Your main App component
@@ -107,7 +107,7 @@ After using any of these methods, the CDP embedded wallet's connector should aut
107
107
 
108
108
  Now, your application should be able to successfully call Wagmi hooks. For example:
109
109
 
110
- ```tsx
110
+ ```tsx lines
111
111
  import { useState } from "react";
112
112
  import { parseEther } from "viem";
113
113
  import { useAccount, useSendTransaction, useWaitForTransactionReceipt } from "wagmi";
@@ -240,7 +240,7 @@ export default function WagmiTransaction() {
240
240
 
241
241
  This package has Smart Account support for the Wagmi `useSendCalls`, `useCallsStatus` and `useCapabilities` hooks. It requires a different CDP Config than for EOA wallets:
242
242
 
243
- ```tsx
243
+ ```tsx lines
244
244
  const cdpConfig: Config = {
245
245
  projectId: "your-project-id", // Copy your Project ID here.
246
246
  createAccountOnLogin: "evm-smart" // Create a smart account by default when a user logs in and does not yet have one
@@ -249,7 +249,7 @@ const cdpConfig: Config = {
249
249
 
250
250
  After signing in, you can send a User Operation using Wagmi hooks:
251
251
 
252
- ```tsx
252
+ ```tsx lines
253
253
  import { useState } from "react";
254
254
  import { parseEther } from "viem";
255
255
  import { useAccount, useSendCalls, useSendCalls, useCallsStatus, useCapabilities } from "wagmi";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cdp-wagmi",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/**",
@@ -18,7 +18,7 @@
18
18
  "react": ">=18.2.0",
19
19
  "viem": "^2.33.0",
20
20
  "wagmi": "^2.16.0",
21
- "@coinbase/cdp-core": "^0.0.24"
21
+ "@coinbase/cdp-core": "^0.0.26"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@tanstack/react-query": "^5.0.0",
@@ -34,7 +34,7 @@
34
34
  "@size-limit/webpack": "^11.2.0",
35
35
  "@size-limit/webpack-why": "^11.2.0",
36
36
  "size-limit": "^11.2.0",
37
- "@coinbase/cdp-core": "^0.0.24"
37
+ "@coinbase/cdp-core": "^0.0.26"
38
38
  },
39
39
  "size-limit": [
40
40
  {