@xchainjs/xchain-thorchain 0.28.8 → 0.28.10

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
@@ -1,5 +1,5 @@
1
1
  import cosmosclient from '@cosmos-client/core';
2
- import { AssetInfo, Balance, BaseXChainClient, Fees, Network, Tx, TxHash, TxHistoryParams, TxParams, TxsPage, XChainClient, XChainClientParams } from '@xchainjs/xchain-client';
2
+ import { AssetInfo, Balance, BaseXChainClient, Fees, Network, PreparedTx, Tx, TxHash, TxHistoryParams, TxParams, TxsPage, XChainClient, XChainClientParams } from '@xchainjs/xchain-client';
3
3
  import { CosmosSDKClient, RPCTxResult } from '@xchainjs/xchain-cosmos';
4
4
  import { Address, Asset } from '@xchainjs/xchain-util';
5
5
  import BigNumber from 'bignumber.js';
@@ -220,6 +220,7 @@ declare class Client extends BaseXChainClient implements ThorchainClient, XChain
220
220
  /**
221
221
  * Transfer without broadcast balances with MsgSend
222
222
  *
223
+ * @deprecated use instead prepareTx
223
224
  * @param {TxOfflineParams} params The transfer offline options.
224
225
  * @returns {string} The signed transaction bytes.
225
226
  */
@@ -230,5 +231,16 @@ declare class Client extends BaseXChainClient implements ThorchainClient, XChain
230
231
  * @returns {Fees}
231
232
  */
232
233
  getFees(): Promise<Fees>;
234
+ /**
235
+ * Prepare transfer.
236
+ *
237
+ * @param {TxParams&Address&BigNumber} params The transfer options.
238
+ * @returns {PreparedTx} The raw unsigned transaction.
239
+ */
240
+ prepareTx({ sender, recipient, amount, memo, asset, gasLimit, sequence, }: TxParams & {
241
+ sender: Address;
242
+ gasLimit?: BigNumber;
243
+ sequence?: number;
244
+ }): Promise<PreparedTx>;
233
245
  }
234
246
  export { Client };