@xchainjs/xchain-thorchain 1.0.6 → 1.0.7

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/client.d.ts CHANGED
@@ -29,6 +29,19 @@ export declare class Client extends CosmosSDKClient implements ThorchainClient {
29
29
  * @param {ThorchainClientParams} config Optional - Client configuration. If it is not set, default values will be used
30
30
  */
31
31
  constructor(config?: ThorchainClientParams);
32
+ /**
33
+ * Asynchronous version of getAddress method.
34
+ * @param {number} index Derivation path index of the address to be generated.
35
+ * @returns {string} A promise that resolves to the generated address.
36
+ */
37
+ getAddressAsync(index?: number): Promise<string>;
38
+ /**
39
+ * Get the address derived from the provided phrase.
40
+ * @param {number | undefined} walletIndex The index of the address derivation path. Default is 0.
41
+ * @returns {string} The user address at the specified walletIndex.
42
+ */
43
+ getAddress(walletIndex?: number | undefined): string;
44
+ transfer(params: TxParams): Promise<string>;
32
45
  /**
33
46
  * Get address prefix by network
34
47
  * @param {Network} network The network of which return the prefix
@@ -149,4 +162,10 @@ export declare class Client extends CosmosSDKClient implements ThorchainClient {
149
162
  * @returns {StdFee} the standard fee
150
163
  */
151
164
  protected getStandardFee(): StdFee;
165
+ /**
166
+ * Hashes a buffer using SHA256 followed by RIPEMD160 or RMD160.
167
+ * @param {Uint8Array} buffer The buffer to hash
168
+ * @returns {Uint8Array} The hashed buffer
169
+ */
170
+ private hash160;
152
171
  }