@xchainjs/xchain-thorchain 1.0.6 → 1.0.8

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,41 @@ 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;
171
+ /**
172
+ * Sign a transaction making a round robin over the clients urls provided to the client
173
+ *
174
+ * @param {string} sender Sender address
175
+ * @param {DecodedTxRaw} unsignedTx Unsigned transaction
176
+ * @param {DirectSecp256k1HdWallet} signer Signer
177
+ * @param {BigNumber} gasLimit Transaction gas limit
178
+ * @returns {TxRaw} The raw signed transaction
179
+ */
180
+ private roundRobinSign;
181
+ /**
182
+ * Sign and broadcast a transaction making a round robin over the clients urls provided to the client
183
+ *
184
+ * @param {string} sender Sender address
185
+ * @param {DecodedTxRaw} unsignedTx Unsigned transaction
186
+ * @param {DirectSecp256k1HdWallet} signer Signer
187
+ * @returns {DeliverTxResponse} The transaction broadcasted
188
+ */
189
+ private roundRobinSignAndBroadcastTx;
190
+ /**
191
+ * Sign and broadcast a transaction making a round robin over the clients urls provided to the client
192
+ *
193
+ * @param {string} sender Sender address
194
+ * @param {DirectSecp256k1HdWallet} signer Signer
195
+ * @param {BigNumber} gasLimit Gas limit for the transaction
196
+ * @param {BaseAmount} amount Amount to deposit
197
+ * @param {string} memo Deposit memo
198
+ * @param {Asset} asset Asset to deposit
199
+ * @returns {DeliverTxResponse} The transaction broadcasted
200
+ */
201
+ private roundRobinSignAndBroadcastDeposit;
152
202
  }