@xchainjs/xchain-thorchain 3.0.16 → 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 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 @xchainjs/xchain-cosmos axios @cosmos-client/core bech32-buffer
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
@@ -3042,7 +3042,7 @@ const getDefaultClientUrls = () => {
3042
3042
  return {
3043
3043
  [Network.Testnet]: ['deprecated'],
3044
3044
  [Network.Stagenet]: [],
3045
- [Network.Mainnet]: ['https://gateway.liquify.com/chain/thorchain_rpc'],
3045
+ [Network.Mainnet]: ['https://rpc.thorchain.network', 'https://gateway.liquify.com/chain/thorchain_rpc'],
3046
3046
  };
3047
3047
  };
3048
3048
  /**
@@ -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/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
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
@@ -3070,7 +3070,7 @@ const getDefaultClientUrls = () => {
3070
3070
  return {
3071
3071
  [xchainClient.Network.Testnet]: ['deprecated'],
3072
3072
  [xchainClient.Network.Stagenet]: [],
3073
- [xchainClient.Network.Mainnet]: ['https://gateway.liquify.com/chain/thorchain_rpc'],
3073
+ [xchainClient.Network.Mainnet]: ['https://rpc.thorchain.network', 'https://gateway.liquify.com/chain/thorchain_rpc'],
3074
3074
  };
3075
3075
  };
3076
3076
  /**
@@ -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/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
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.16",
3
+ "version": "3.0.18",
4
4
  "description": "Custom Thorchain client and utilities used by XChainJS clients",
5
5
  "keywords": [
6
6
  "THORChain",
@@ -45,14 +45,14 @@
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.12",
49
- "@xchainjs/xchain-cosmos-sdk": "2.0.12",
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.15.0",
52
+ "axios": "1.16.1",
53
53
  "bignumber.js": "^11.0.0",
54
54
  "cosmjs-types": "0.9.0",
55
- "protobufjs": "6.11.4"
55
+ "protobufjs": "7.5.8"
56
56
  },
57
57
  "publishConfig": {
58
58
  "access": "public",