@xchainjs/xchain-thorchain 1.0.11 → 1.1.0

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/lib/utils.d.ts CHANGED
@@ -1,6 +1,3 @@
1
- /**
2
- * Import necessary modules and types for client URL configuration and utility functions.
3
- */
4
1
  import { Network, RootDerivationPaths, TxHash } from '@xchainjs/xchain-client';
5
2
  import { Address, Asset } from '@xchainjs/xchain-util';
6
3
  /**
@@ -50,3 +47,19 @@ export declare const getChainId: (nodeUrl: string) => Promise<string>;
50
47
  * @returns The address prefix
51
48
  */
52
49
  export declare const getPrefix: (network: Network) => string;
50
+ /**
51
+ * Parse the derivation path from a string to an Array of numbers
52
+ * @param {string} path - Path to parse
53
+ * @returns {number[]} - The derivation path as Array of numbers
54
+ */
55
+ export declare const parseDerivationPath: (path: string) => number[];
56
+ /**
57
+ * Sort JSON object
58
+ * @param {any} obj - JSON object
59
+ * @returns {any} JSON object sorted
60
+ */
61
+ export declare function sortedObject(obj: any): any;
62
+ /**
63
+ * Returns a JSON string with objects sorted by key
64
+ * */
65
+ export declare function sortAndStringifyJson(obj: any): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xchainjs/xchain-thorchain",
3
- "version": "1.0.11",
3
+ "version": "1.1.0",
4
4
  "description": "Custom Thorchain client and utilities used by XChainJS clients",
5
5
  "keywords": [
6
6
  "THORChain",
@@ -38,8 +38,10 @@
38
38
  "@cosmjs/crypto": "0.31.1",
39
39
  "@cosmjs/encoding": "0.31.1",
40
40
  "@cosmjs/proto-signing": "0.31.1",
41
+ "@ledgerhq/hw-transport": "6.30.6",
42
+ "@xchainjs/ledger-thorchain": "0.2.0",
41
43
  "@xchainjs/xchain-client": "0.16.7",
42
- "@xchainjs/xchain-cosmos-sdk": "0.2.11",
44
+ "@xchainjs/xchain-cosmos-sdk": "0.2.12",
43
45
  "@xchainjs/xchain-util": "0.13.6",
44
46
  "axios": "1.3.6",
45
47
  "bech32": "^1.1.3",