You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+85-72Lines changed: 85 additions & 72 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,14 @@
7
7
> Modern TypeScript SDK for integrating Uniswap V4 into your dapp.
8
8
> **Early version:** API may change rapidly.
9
9
10
-
---
10
+
## Features
11
+
12
+
- 🚀 Full TypeScript support
13
+
- 🔄 Multi-chain support out of the box
14
+
- 📦 Zero dependencies (except peer deps)
15
+
- 🔍 Comprehensive error handling
16
+
- 🧪 Fully tested
17
+
- 📚 Well documented
11
18
12
19
## Install
13
20
@@ -22,10 +29,10 @@ npm install uniswap-dev-kit
22
29
### 1. Configure and create SDK instances
23
30
24
31
```ts
25
-
import { createInstance } from"uniswap-dev-kit";
32
+
import { UniDevKitV4 } from"uniswap-dev-kit";
26
33
27
34
// Create instance for Ethereum mainnet
28
-
createInstance({
35
+
const ethInstance =newUniDevKitV4({
29
36
chainId: 1,
30
37
rpcUrl: "https://eth.llamarpc.com",
31
38
contracts: {
@@ -40,7 +47,7 @@ createInstance({
40
47
});
41
48
42
49
// Create instance for another chain (e.g., Base)
43
-
createInstance({
50
+
const baseInstance =newUniDevKitV4({
44
51
chainId: 8453,
45
52
rpcUrl: "https://mainnet.base.org",
46
53
contracts: {
@@ -49,96 +56,104 @@ createInstance({
49
56
});
50
57
```
51
58
52
-
The SDK automatically manages multiple instances based on chainId. When using hooks or utilities, just specify the chainId to use the corresponding instance:
0 commit comments