Skip to content

Commit 2357fbb

Browse files
committed
updated readme
1 parent ee970be commit 2357fbb

27 files changed

+1020
-867
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://unpkg.com/@changesets/config@3.1.0/schema.json",
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
33
"changelog": "@changesets/cli/changelog",
44
"commit": true,
55
"fixed": [],

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# wallioai-kit
22

3-
## 1.0.0
3+
## 0.0.1
44

55
### Major Changes
66

README.md

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,60 @@
1-
**dexai**
1+
# wallioai-kit
22

3-
A npm package for DexAi.
3+
## 🚀 Overview
4+
**wallioai-kit** is a powerful NPM package that enables AI agents to seamlessly interact with blockchain assets. It provides **wallet management, cross-chain bridging, DeFi lending and borrowing, and real-time market data** through an intuitive API.
5+
6+
Compatible with any AI language model (**ChatGPT, ClaudeAI, DeepSeek, and more**), wallioai-kit allows AI-powered applications to **autonomously manage wallets, execute transactions, bridge assets, and optimize DeFi strategies**.
7+
8+
It powers the **[Wallio AI Agent](https://wallio.xyz)**, making **crypto transactions as easy as natural language commands**.
9+
10+
---
11+
12+
## 📦 Installation
13+
```sh
14+
npm install wallioai-kit
15+
```
16+
17+
## 👨‍💻 Usage
18+
```js
19+
import { Wallio } from "wallioai-kit";
20+
import {
21+
walletAdapterProvider,
22+
dlnAdapterProvider,
23+
} from "wallioai-kit/adapters";
24+
import { ViemAccount } from "wallioai-kit/accounts";
25+
import { generateLangChainTools } from "wallioai-kit/tools";
26+
import { privateKeyToAccount } from "viem/accounts";
27+
import { createWalletClient } from "viem";
28+
import { sonic } from "viem/chains";
29+
import { ChatOpenAI } from "@langchain/openai";
30+
31+
const account = privateKeyToAccount("");
32+
const client = createWalletClient({
33+
account,
34+
chain: sonic,
35+
transport: http(""),
36+
});
37+
38+
const walletProvider = new ViemAccount(client);
39+
const wallio = await Wallio.init({
40+
account: walletProvider,
41+
adapters: [
42+
walletAdapterProvider(),
43+
dlnAdapterProvider(),
44+
],
45+
});
46+
const tools = await generateLangChainTools(wallio);
47+
48+
const chat = new ChatOpenAI({
49+
model: "gpt-4o",
50+
temperature: 0,
51+
apiKey: OPEN_AI_KEY,
52+
});
53+
54+
const agent = createReactAgent({
55+
llm: chat,
56+
tools,
57+
prompt: new SystemMessage(`Modifier`),
58+
});
59+
60+
```

dist/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import {
22
ChainById,
3+
getChainMap
4+
} from "./chunk-BCZYCUU7.js";
5+
import {
36
getChain,
4-
getChainMap,
57
getNetworkInfo
6-
} from "./chunk-DO5TJVOX.js";
8+
} from "./chunk-X5IFVMF5.js";
79
import {
810
__name,
911
__publicField

package.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wallioai-kit",
3-
"version": "1.0.0",
3+
"version": "0.0.1",
44
"description": "A smart agent which the capability to interact with the blockchain",
55
"repository": {
66
"type": "git",
@@ -14,7 +14,7 @@
1414
"scripts": {
1515
"start": "tsup --watch",
1616
"build": "tsup",
17-
"ci": "pnpm run build && pnpm run check-format && pnpm run check-exports && pnpm run lint && pnpm run test",
17+
"ci": "pnpm run build && pnpm run check-format && pnpm run lint && pnpm run test",
1818
"format": "prettier --write .",
1919
"check-format": "prettier --check .",
2020
"check-exports": "attw --pack .",
@@ -62,10 +62,10 @@
6262
},
6363
"dependencies": {
6464
"@debridge-finance/desdk": "^1.0.2",
65-
"@heyanon/sdk": "^2.0.4",
65+
"@heyanon/sdk": "^2.1.6",
6666
"@langchain/core": "^0.3.40",
67+
"@solana/web3.js": "^1.98.0",
6768
"ai": "^4.1.45",
68-
"dexai": "link:../../../Library/pnpm/global/5/node_modules/dexai",
6969
"dotenv": "^16.4.7",
7070
"lru-cache": "^11.0.2",
7171
"reflect-metadata": "^0.2.2",
@@ -94,10 +94,5 @@
9494
"import": "./dist/tools/index.js",
9595
"default": "./dist/tools/index.cjs"
9696
}
97-
},
98-
"pnpm": {
99-
"overrides": {
100-
"dexai": "link:../../../Library/pnpm/global/5/node_modules/dexai"
101-
}
10297
}
10398
}

0 commit comments

Comments
 (0)