@defuse-protocol/intents-sdk 0.68.0 → 0.68.1

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.
@@ -90,7 +90,7 @@ var PoaBridge = class {
90
90
  const isXrp = assetInfo.contractId === "xrp.omft.near";
91
91
  try {
92
92
  const accountInfo = await _defuse_protocol_internal_utils.xrpl.httpClient.getAccountInfo(args.destinationAddress, xrplConfig);
93
- if (accountInfo.account_flags.requireDestinationTag) throw new require_errors$1.XrplDestinationTagRequiredError(args.destinationAddress);
93
+ if (accountInfo.account_flags.requireDestinationTag && !args.destinationMemo) throw new require_errors$1.XrplDestinationTagRequiredError(args.destinationAddress);
94
94
  if (accountInfo.account_flags.depositAuth) throw new require_errors$1.XrplDepositAuthEnabledError(args.destinationAddress);
95
95
  } catch (error) {
96
96
  if (!(isXrp && error instanceof _defuse_protocol_internal_utils.xrpl.httpClient.XrplAccountNotFundedError)) throw error;
@@ -88,7 +88,7 @@ var PoaBridge = class {
88
88
  const isXrp = assetInfo.contractId === "xrp.omft.near";
89
89
  try {
90
90
  const accountInfo = await xrpl.httpClient.getAccountInfo(args.destinationAddress, xrplConfig);
91
- if (accountInfo.account_flags.requireDestinationTag) throw new XrplDestinationTagRequiredError(args.destinationAddress);
91
+ if (accountInfo.account_flags.requireDestinationTag && !args.destinationMemo) throw new XrplDestinationTagRequiredError(args.destinationAddress);
92
92
  if (accountInfo.account_flags.depositAuth) throw new XrplDepositAuthEnabledError(args.destinationAddress);
93
93
  } catch (error) {
94
94
  if (!(isXrp && error instanceof xrpl.httpClient.XrplAccountNotFundedError)) throw error;
package/dist/src/sdk.cjs CHANGED
@@ -178,6 +178,7 @@ var IntentsSDK = class {
178
178
  assetId: args.withdrawalParams.assetId,
179
179
  amount: actualAmount,
180
180
  destinationAddress: args.withdrawalParams.destinationAddress,
181
+ destinationMemo: args.withdrawalParams.destinationMemo,
181
182
  feeEstimation: args.feeEstimation,
182
183
  routeConfig: args.withdrawalParams.routeConfig,
183
184
  logger: args.logger
@@ -221,6 +222,7 @@ var IntentsSDK = class {
221
222
  feeEstimation: fee,
222
223
  routeConfig: args.withdrawalParams.routeConfig,
223
224
  logger: args.logger,
225
+ destinationMemo: args.withdrawalParams.destinationMemo,
224
226
  skipMinAmountValidation: args.withdrawalParams.amount === 0n && args.withdrawalParams.feeInclusive === false
225
227
  });
226
228
  return fee;
package/dist/src/sdk.js CHANGED
@@ -176,6 +176,7 @@ var IntentsSDK = class {
176
176
  assetId: args.withdrawalParams.assetId,
177
177
  amount: actualAmount,
178
178
  destinationAddress: args.withdrawalParams.destinationAddress,
179
+ destinationMemo: args.withdrawalParams.destinationMemo,
179
180
  feeEstimation: args.feeEstimation,
180
181
  routeConfig: args.withdrawalParams.routeConfig,
181
182
  logger: args.logger
@@ -219,6 +220,7 @@ var IntentsSDK = class {
219
220
  feeEstimation: fee,
220
221
  routeConfig: args.withdrawalParams.routeConfig,
221
222
  logger: args.logger,
223
+ destinationMemo: args.withdrawalParams.destinationMemo,
222
224
  skipMinAmountValidation: args.withdrawalParams.amount === 0n && args.withdrawalParams.feeInclusive === false
223
225
  });
224
226
  return fee;
@@ -296,6 +296,7 @@ interface Bridge {
296
296
  assetId: string;
297
297
  amount: bigint;
298
298
  destinationAddress: string;
299
+ destinationMemo?: string;
299
300
  feeEstimation: FeeEstimation;
300
301
  routeConfig?: RouteConfig;
301
302
  logger?: ILogger;
@@ -296,6 +296,7 @@ interface Bridge {
296
296
  assetId: string;
297
297
  amount: bigint;
298
298
  destinationAddress: string;
299
+ destinationMemo?: string;
299
300
  feeEstimation: FeeEstimation;
300
301
  routeConfig?: RouteConfig;
301
302
  logger?: ILogger;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defuse-protocol/intents-sdk",
3
- "version": "0.68.0",
3
+ "version": "0.68.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "repository": {