-
Notifications
You must be signed in to change notification settings - Fork 0
/
all.test.ts
40 lines (25 loc) · 969 Bytes
/
all.test.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { expect, test, describe } from "bun:test";
import { createVaneClient } from "./networking";
describe("networking",()=> {
test("register works",async ()=>{
let client = await createVaneClient("ws://192.168.1.177:48055");
await client.register("Lukamba","0xA843D3634245E9117163025e633aB8f6C666e16F","Ethereum")
});
test("initiate transaction",async ()=>{
// let client = await createVaneClient("ws://192.168.1.177:19248");
// await client.initiateTransaction("0xA843D3634245E9117163025e633aB8f6C666e16F","0xA843D3634245E9117163025e633aB8f6C666e16F",10000,"Eth","Ethereum")
// client.watchTxUpdates((tx)=> {
// console.log(tx)
// })
});
test("receiver confirm",async ()=>{
});
test("sender confirm",async ()=>{
});
test("watch transactions updates",async ()=>{
});
})
describe("wallets",()=> {
})
describe("balance & accounts management",()=> {
})