Skip to content

Commit deb7b8d

Browse files
committed
finish
1 parent fa2823c commit deb7b8d

6 files changed

+37
-14
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,7 @@ dist
5353
*.tsbuildinfo
5454

5555
# xmtp
56-
*.db3*
56+
*.db3*
57+
58+
.data
59+

integrations/coinbase-langchain/src/storage.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { createClient, type RedisClientType } from "redis";
33

44
// Storage constants
55
export const WALLET_KEY_PREFIX = "wallet_data:";
6-
export const LOCAL_STORAGE_DIR = "./wallet_data";
6+
export const LOCAL_STORAGE_DIR = ".data/wallet_data";
77
export let redisClient: RedisClientType | null = null;
88

99
if (!process.env.REDIS_URL) {

integrations/coinbase-langchain/src/xmtp.ts

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { IdentifierKind } from "@xmtp/node-bindings";
12
import {
23
Client,
34
type Conversation,
@@ -37,6 +38,15 @@ export async function initializeXmtpClient() {
3738
`Agent initialized on ${address}\nSend a message on http://xmtp.chat/dm/${address}?env=${env}`,
3839
);
3940

41+
const conversation = await client.conversations.newDmWithIdentifier({
42+
identifierKind: IdentifierKind.Ethereum,
43+
identifier: "0xb222ec34482e3503988cfe81ced46ef10099c3e6",
44+
});
45+
//convos 0x0952bf0013b819a5fbbace9b60709044a53ea2e3
46+
//0xb222ec34482e3503988cfe81ced46ef10099c3e6
47+
console.log(conversation.id);
48+
await conversation.send("Hello, world!");
49+
4050
return client;
4151
}
4252

integrations/coinbase-langchain/wallet_data/wallet_data:14b8fcaf1e5df82fd7f27d039b641d34116c440e964f313cf87cffb0e84e0105-base-sepolia.json

-10
This file was deleted.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"typecheck": "tsc"
2222
},
2323
"dependencies": {
24-
"@xmtp/node-sdk": "1.0.0-rc2",
24+
"@xmtp/node-sdk": "0.0.47",
2525
"alchemy-sdk": "^3.0.0",
2626
"openai": "latest",
2727
"uint8arrays": "^5.1.0",

yarn.lock

+21-1
Original file line numberDiff line numberDiff line change
@@ -1805,13 +1805,33 @@ __metadata:
18051805
languageName: node
18061806
linkType: hard
18071807

1808+
"@xmtp/node-bindings@npm:^0.0.41":
1809+
version: 0.0.41
1810+
resolution: "@xmtp/node-bindings@npm:0.0.41"
1811+
checksum: 10/809347d36de2b4f205fe46cc3869b1eab7595107fd14b0535457732745d14851121d1e7b0f22a0845deb32e48dfca29a7ad36a12bf9fc5c46b445a308a589c10
1812+
languageName: node
1813+
linkType: hard
1814+
18081815
"@xmtp/node-bindings@npm:^1.0.0-rc2":
18091816
version: 1.0.0-rc2
18101817
resolution: "@xmtp/node-bindings@npm:1.0.0-rc2"
18111818
checksum: 10/2cd22b55accdc90f463d983eba43e3b78335e974036622808c42488b99589b9c94a8c7dfce6e76f32d6e5da5fc65cb2888a09f2dc7210a85ed058109f26a50bf
18121819
languageName: node
18131820
linkType: hard
18141821

1822+
"@xmtp/node-sdk@npm:0.0.47":
1823+
version: 0.0.47
1824+
resolution: "@xmtp/node-sdk@npm:0.0.47"
1825+
dependencies:
1826+
"@xmtp/content-type-group-updated": "npm:^2.0.0"
1827+
"@xmtp/content-type-primitives": "npm:^2.0.0"
1828+
"@xmtp/content-type-text": "npm:^2.0.0"
1829+
"@xmtp/node-bindings": "npm:^0.0.41"
1830+
"@xmtp/proto": "npm:^3.72.3"
1831+
checksum: 10/bf3b5e59cc5be0b9ec02acd2d7cf59bcae5f478971b5ffc772e6153c8d59515032c95436faf2c741e1de334d9572dc1991098395d9813ec5364f0eb09666a815
1832+
languageName: node
1833+
linkType: hard
1834+
18151835
"@xmtp/node-sdk@npm:1.0.0-rc1":
18161836
version: 1.0.0-rc1
18171837
resolution: "@xmtp/node-sdk@npm:1.0.0-rc1"
@@ -5405,7 +5425,7 @@ __metadata:
54055425
"@ianvs/prettier-plugin-sort-imports": "npm:^4.4.1"
54065426
"@types/eslint__js": "npm:^8.42.3"
54075427
"@types/node": "npm:^22.13.0"
5408-
"@xmtp/node-sdk": "npm:1.0.0-rc2"
5428+
"@xmtp/node-sdk": "npm:0.0.47"
54095429
alchemy-sdk: "npm:^3.0.0"
54105430
eslint: "npm:^9.19.0"
54115431
eslint-config-prettier: "npm:^10.0.1"

0 commit comments

Comments
 (0)