@usherlabs/cex-broker 0.2.31 → 0.2.32

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.
@@ -315603,6 +315603,7 @@ function buildTransferEventArchiveRow(input) {
315603
315603
  address: transfer.address,
315604
315604
  network: transfer.network,
315605
315605
  external_id: transfer.externalId ?? "",
315606
+ client_withdrawal_id: transfer.clientWithdrawalId ?? "",
315606
315607
  txid: transfer.txid,
315607
315608
  result_index: transfer.resultIndex ?? 0,
315608
315609
  fee_amount: transfer.feeAmount,
@@ -332403,6 +332404,8 @@ async function handleWithdraw(ctx) {
332403
332404
  message: `travel_rule_denied: ${travelRule.error}`
332404
332405
  }, null);
332405
332406
  }
332407
+ const withdrawOrderId = transferValue.params.withdrawOrderId;
332408
+ const clientWithdrawalId = typeof withdrawOrderId === "string" && withdrawOrderId.length > 0 ? withdrawOrderId : undefined;
332406
332409
  try {
332407
332410
  const transaction = travelRule.mode === "localentity" ? await withdrawViaLocalEntity(broker, {
332408
332411
  code: symbol2,
@@ -332429,6 +332432,7 @@ async function handleWithdraw(ctx) {
332429
332432
  address: normalized.address ?? transferValue.recipientAddress,
332430
332433
  network: normalized.network ?? withdrawNetwork.exchangeNetworkId,
332431
332434
  externalId: normalized.externalId,
332435
+ clientWithdrawalId,
332432
332436
  txid: normalized.txid,
332433
332437
  feeAmount: normalized.feeAmount,
332434
332438
  feeCurrency: normalized.feeCurrency,
@@ -332458,6 +332462,7 @@ async function handleWithdraw(ctx) {
332458
332462
  amount: String(transferValue.amount),
332459
332463
  address: transferValue.recipientAddress,
332460
332464
  network: withdrawNetwork.exchangeNetworkId,
332465
+ clientWithdrawalId,
332461
332466
  errorSummary: getErrorMessage(error48),
332462
332467
  payload: { recipientAddress: transferValue.recipientAddress }
332463
332468
  }
@@ -47,6 +47,7 @@ export type TransferArchiveFields = {
47
47
  address?: string;
48
48
  network?: string;
49
49
  externalId?: string;
50
+ clientWithdrawalId?: string;
50
51
  txid?: string;
51
52
  resultIndex?: number;
52
53
  feeAmount?: string;
package/dist/index.js CHANGED
@@ -291117,6 +291117,7 @@ function buildTransferEventArchiveRow(input) {
291117
291117
  address: transfer.address,
291118
291118
  network: transfer.network,
291119
291119
  external_id: transfer.externalId ?? "",
291120
+ client_withdrawal_id: transfer.clientWithdrawalId ?? "",
291120
291121
  txid: transfer.txid,
291121
291122
  result_index: transfer.resultIndex ?? 0,
291122
291123
  fee_amount: transfer.feeAmount,
@@ -307917,6 +307918,8 @@ async function handleWithdraw(ctx) {
307917
307918
  message: `travel_rule_denied: ${travelRule.error}`
307918
307919
  }, null);
307919
307920
  }
307921
+ const withdrawOrderId = transferValue.params.withdrawOrderId;
307922
+ const clientWithdrawalId = typeof withdrawOrderId === "string" && withdrawOrderId.length > 0 ? withdrawOrderId : undefined;
307920
307923
  try {
307921
307924
  const transaction = travelRule.mode === "localentity" ? await withdrawViaLocalEntity(broker, {
307922
307925
  code: symbol2,
@@ -307943,6 +307946,7 @@ async function handleWithdraw(ctx) {
307943
307946
  address: normalized.address ?? transferValue.recipientAddress,
307944
307947
  network: normalized.network ?? withdrawNetwork.exchangeNetworkId,
307945
307948
  externalId: normalized.externalId,
307949
+ clientWithdrawalId,
307946
307950
  txid: normalized.txid,
307947
307951
  feeAmount: normalized.feeAmount,
307948
307952
  feeCurrency: normalized.feeCurrency,
@@ -307972,6 +307976,7 @@ async function handleWithdraw(ctx) {
307972
307976
  amount: String(transferValue.amount),
307973
307977
  address: transferValue.recipientAddress,
307974
307978
  network: withdrawNetwork.exchangeNetworkId,
307979
+ clientWithdrawalId,
307975
307980
  errorSummary: getErrorMessage(error48),
307976
307981
  payload: { recipientAddress: transferValue.recipientAddress }
307977
307982
  }
@@ -310180,4 +310185,4 @@ export {
310180
310185
  CEXBroker as default
310181
310186
  };
310182
310187
 
310183
- //# debugId=1AF34CD02AB617AA64756E2164756E21
310188
+ //# debugId=109E847089BBC4A964756E2164756E21