@xchainjs/xchain-thorchain 3.0.17 → 3.0.18
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/README.md +1 -14
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -17,11 +17,9 @@ npm install @xchainjs/xchain-thorchain
|
|
|
17
17
|
Following peer dependencies have to be installed into your project. These are not included in `@xchainjs/xchain-thorchain`.
|
|
18
18
|
|
|
19
19
|
```sh
|
|
20
|
-
yarn add @xchainjs/xchain-client @xchainjs/xchain-crypto @xchainjs/xchain-util
|
|
20
|
+
yarn add @xchainjs/xchain-client @xchainjs/xchain-crypto @xchainjs/xchain-util axios
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
Important note: Make sure to install same version of `@cosmos-client/core` as `xchain-thorchain` is using (currently `@cosmos-client/core@0.45.1` ). In other case things might break.
|
|
24
|
-
|
|
25
23
|
## Documentation
|
|
26
24
|
|
|
27
25
|
### [`xchain thorchain`](http://docs.xchainjs.org/xchain-client/xchain-thorchain/)
|
|
@@ -71,15 +69,4 @@ If you plan on using the publicly accessible endpoints listed below, ensure that
|
|
|
71
69
|
- https://api.haskoin.com (BTC/BCH/LTC)
|
|
72
70
|
- https://gateway.liquify.com/chain/thorchain_api
|
|
73
71
|
|
|
74
|
-
Example
|
|
75
|
-
|
|
76
|
-
```typescript
|
|
77
|
-
import cosmosclient from '@cosmos-client/core'
|
|
78
|
-
import axios from 'axios'
|
|
79
|
-
import { register9Rheader } from '@xchainjs/xchain-util'
|
|
80
|
-
|
|
81
|
-
register9Rheader(axios)
|
|
82
|
-
register9Rheader(cosmosclient.config.globalAxios)
|
|
83
|
-
```
|
|
84
|
-
|
|
85
72
|
For a complete example please see this [test](https://github.com/xchainjs/xchainjs-lib/blob/master/packages/xchain-thorchain-amm/__e2e__/wallet.e2e.ts)
|
package/lib/index.esm.js
CHANGED
|
@@ -3194,7 +3194,7 @@ function sortedObject(obj) {
|
|
|
3194
3194
|
/**
|
|
3195
3195
|
* Returns a JSON string with objects sorted by key
|
|
3196
3196
|
* */
|
|
3197
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
3197
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3198
3198
|
function sortAndStringifyJson(obj) {
|
|
3199
3199
|
return JSON.stringify(sortedObject(obj));
|
|
3200
3200
|
}
|
package/lib/index.js
CHANGED
|
@@ -3222,7 +3222,7 @@ function sortedObject(obj) {
|
|
|
3222
3222
|
/**
|
|
3223
3223
|
* Returns a JSON string with objects sorted by key
|
|
3224
3224
|
* */
|
|
3225
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
3225
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3226
3226
|
function sortAndStringifyJson(obj) {
|
|
3227
3227
|
return JSON.stringify(sortedObject(obj));
|
|
3228
3228
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xchainjs/xchain-thorchain",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.18",
|
|
4
4
|
"description": "Custom Thorchain client and utilities used by XChainJS clients",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"THORChain",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"@scure/base": "^1.2.6",
|
|
46
46
|
"@scure/bip32": "^1.7.0",
|
|
47
47
|
"@xchainjs/ledger-thorchain": "^0.3.1",
|
|
48
|
-
"@xchainjs/xchain-client": "2.0.
|
|
49
|
-
"@xchainjs/xchain-cosmos-sdk": "2.0.
|
|
48
|
+
"@xchainjs/xchain-client": "2.0.14",
|
|
49
|
+
"@xchainjs/xchain-cosmos-sdk": "2.0.14",
|
|
50
50
|
"@xchainjs/xchain-crypto": "1.0.6",
|
|
51
51
|
"@xchainjs/xchain-util": "2.0.7",
|
|
52
|
-
"axios": "1.
|
|
52
|
+
"axios": "1.16.1",
|
|
53
53
|
"bignumber.js": "^11.0.0",
|
|
54
54
|
"cosmjs-types": "0.9.0",
|
|
55
55
|
"protobufjs": "7.5.8"
|