@xchainjs/xchain-thornode 0.1.0-alpha → 0.1.0-alpha4

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 ADDED
@@ -0,0 +1,21 @@
1
+ # v0.0.1.0-alpha4 (2022-08-20)
2
+
3
+ ## Update
4
+
5
+ - Update to latest THORNode 1.95.0
6
+ - Generate files from `*.yaml` (to avoid extra step of convertion to `*.json`)
7
+ - Remove `yamljs`
8
+
9
+ # v0.0.1.0-alpha3 (2022-07-21)
10
+
11
+ ???
12
+
13
+ # v0.0.1.0-alpha2 (2022-07-7)
14
+
15
+ ## Fix
16
+
17
+ - Fix `OutboundProcess and ScheduledOutbound` exported interfaces, by preprocessing yaml->json (https://github.com/OpenAPITools/openapi-generator/issues/1593)
18
+
19
+ # v0.0.1.0-alpha (2022-07-4)
20
+
21
+ ## Module Created
package/README.md CHANGED
@@ -4,8 +4,8 @@ Thornode Module for XChainJS Clients
4
4
 
5
5
  ## Modules
6
6
 
7
- Thornode module has been created using openapi-generator-cli auto-generation reading from "https://thornode.ninerealms.com/thorchain/doc/openapi.yaml" This library exposes all the Api's outlined in the swagger doc "https://thornode.ninerealms.com/thorchain/doc"
8
-
7
+ Thornode module has been created using openapi-generator-cli to auto-generate rest api reading from "https://gitlab.com/thorchain/thornode/-/raw/release-{version}/openapi/openapi.yaml"
8
+ This library exposes all the Api's outlined in the swagger doc "https://thornode.ninerealms.com/thorchain/doc"
9
9
 
10
10
  ## Installation
11
11
 
@@ -14,6 +14,7 @@ yarn add @xchainjs/xchain-thornode
14
14
  ```
15
15
 
16
16
  ## Examples
17
+
17
18
  Request data from MimirApi
18
19
 
19
20
  ```
@@ -23,8 +24,8 @@ Request data from MimirApi
23
24
  const baseUrl = THORNODE_API_9R_URL
24
25
  const apiconfig = new Configuration({ basePath: baseUrl })
25
26
  const mimirApi = new MimirApi(apiconfig)
26
- const data = await mimirApi.mimir()
27
- console.log(data)
27
+ const mimirResponse = await mimirApi.mimir()
28
+ console.log(mimirResponse.data)
28
29
 
29
30
  ```
30
31