@asyncswap/jsonrpc 0.4.0 → 0.4.1
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.
- package/CHANGELOG.md +11 -0
- package/README.md +5 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @asyncswap/jsonrpc
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7e8300c: changes api for jsonrpc contruction
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 43de065: update docs
|
|
12
|
+
- 7126afa: add `otherHeaders` to inializedClient calls
|
|
13
|
+
|
|
3
14
|
## 0.3.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -41,12 +41,10 @@ console.log("JSON-RPC running on http://localhost:4444")
|
|
|
41
41
|
### RPC Client
|
|
42
42
|
|
|
43
43
|
```ts
|
|
44
|
-
|
|
44
|
+
|
|
45
|
+
import { JsonRpcClient } from "@asyncswap/jsonrpc";
|
|
45
46
|
const url = "http://localhost:4444";
|
|
46
|
-
const client =
|
|
47
|
-
const result = await client.call(
|
|
48
|
-
|
|
49
|
-
[]
|
|
50
|
-
);
|
|
51
|
-
console.log(result)
|
|
47
|
+
const client = new JsonRpcClient(url);
|
|
48
|
+
const result = await client.call("ping", []);
|
|
49
|
+
console.log(result);
|
|
52
50
|
```
|