btc-wallet 0.5.78-beta → 0.5.79-beta

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.
@@ -18,8 +18,9 @@ interface ReceiveDepositMsgParams {
18
18
  depositType?: number;
19
19
  postActions?: string;
20
20
  extraMsg?: string;
21
+ userDepositAddress?: string;
21
22
  }
22
- export declare function preReceiveDepositMsg({ env, btcPublicKey, depositType, postActions, extraMsg, }: Omit<ReceiveDepositMsgParams, 'txHash'>): Promise<any>;
23
+ export declare function preReceiveDepositMsg({ env, btcPublicKey, depositType, postActions, extraMsg, userDepositAddress, }: Omit<ReceiveDepositMsgParams, 'txHash'>): Promise<any>;
23
24
  export declare function receiveDepositMsg({ env, btcPublicKey, txHash, depositType, postActions, extraMsg, }: ReceiveDepositMsgParams): Promise<any>;
24
25
  export declare function getBridgeTransactions({ env, fromChainId, fromAddress, page, pageSize, }: {
25
26
  env: ENV;
package/esm/index.js CHANGED
@@ -3309,14 +3309,15 @@ function preReceiveDepositMsg(_0) {
3309
3309
  btcPublicKey,
3310
3310
  depositType = 1,
3311
3311
  postActions,
3312
- extraMsg
3312
+ extraMsg,
3313
+ userDepositAddress
3313
3314
  }) {
3314
3315
  const config = getWalletConfig(env);
3315
3316
  const { result_code, result_message, result_data } = yield request(
3316
3317
  `${config.base_url}/v1/preReceiveDepositMsg`,
3317
3318
  {
3318
3319
  method: "POST",
3319
- body: { btcPublicKey, depositType, postActions, extraMsg }
3320
+ body: { btcPublicKey, depositType, postActions, extraMsg, userDepositAddress }
3320
3321
  }
3321
3322
  );
3322
3323
  console.log("preReceiveDepositMsg resp:", { result_code, result_message, result_data });
@@ -4091,7 +4092,8 @@ function executeBTCDepositAndAction(_0) {
4091
4092
  btcPublicKey,
4092
4093
  depositType: postActionsStr || depositMsg.extra_msg ? 1 : 0,
4093
4094
  postActions: postActionsStr,
4094
- extraMsg: depositMsg.extra_msg
4095
+ extraMsg: depositMsg.extra_msg,
4096
+ userDepositAddress
4095
4097
  });
4096
4098
  const txHash = yield sendBitcoin(userDepositAddress, depositAmount, _feeRate);
4097
4099
  yield receiveDepositMsg({
@@ -5326,7 +5328,7 @@ function getGroup(state) {
5326
5328
 
5327
5329
  // src/index.ts
5328
5330
  var getVersion = () => {
5329
- return "0.5.78-beta";
5331
+ return "0.5.79-beta";
5330
5332
  };
5331
5333
  if (typeof window !== "undefined") {
5332
5334
  window.__BTC_WALLET_VERSION = getVersion();