@defuse-protocol/intents-sdk 0.53.1 → 0.53.3

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.
@@ -184,10 +184,17 @@ var HotBridge = class HotBridge {
184
184
  reason: "Withdrawal was cancelled"
185
185
  };
186
186
  if (args.landingChain.startsWith("eip155:")) try {
187
- args.logger?.info(`Using bridge indexer to retrieve HOT withdrawal hash with nearTxHash=${args.tx.hash} nonce=${nonce.toString()}`);
187
+ args.logger?.info("Fetching withdrawal hash from bridge indexer", {
188
+ nearTxHash: args.tx.hash,
189
+ nonce: nonce.toString()
190
+ });
188
191
  const bridgeIndexerHash = await this.fetchWithdrawalHashBridgeIndexer(args.tx.hash, nonce.toString(), args.logger);
189
192
  if (bridgeIndexerHash !== null) {
190
- args.logger?.info(`Bridge indexer returned withdrawHash=${bridgeIndexerHash} for nearTxHash=${args.tx.hash} nonce=${nonce.toString()}`);
193
+ args.logger?.info("Bridge indexer found withdrawal hash", {
194
+ withdrawalHash: bridgeIndexerHash,
195
+ nearTxHash: args.tx.hash,
196
+ nonce: nonce.toString()
197
+ });
191
198
  return {
192
199
  status: "completed",
193
200
  txHash: bridgeIndexerHash
@@ -201,7 +208,11 @@ var HotBridge = class HotBridge {
201
208
  });
202
209
  const apiHash = await this.fetchWithdrawalHashFromApi(args.tx.hash, nonce, args.logger);
203
210
  if (apiHash != null) {
204
- args.logger?.info(`Hot Api returned withdrawHash=${apiHash} for nearTxHash=${args.tx.hash} nonce=${nonce.toString()}`);
211
+ args.logger?.info("HOT API fallback found withdrawal hash", {
212
+ withdrawalHash: apiHash,
213
+ nearTxHash: args.tx.hash,
214
+ nonce: nonce.toString()
215
+ });
205
216
  return {
206
217
  status: "completed",
207
218
  txHash: require_hot_bridge_utils.formatTxHash(apiHash, args.landingChain)
@@ -182,10 +182,17 @@ var HotBridge$1 = class HotBridge$1 {
182
182
  reason: "Withdrawal was cancelled"
183
183
  };
184
184
  if (args.landingChain.startsWith("eip155:")) try {
185
- args.logger?.info(`Using bridge indexer to retrieve HOT withdrawal hash with nearTxHash=${args.tx.hash} nonce=${nonce.toString()}`);
185
+ args.logger?.info("Fetching withdrawal hash from bridge indexer", {
186
+ nearTxHash: args.tx.hash,
187
+ nonce: nonce.toString()
188
+ });
186
189
  const bridgeIndexerHash = await this.fetchWithdrawalHashBridgeIndexer(args.tx.hash, nonce.toString(), args.logger);
187
190
  if (bridgeIndexerHash !== null) {
188
- args.logger?.info(`Bridge indexer returned withdrawHash=${bridgeIndexerHash} for nearTxHash=${args.tx.hash} nonce=${nonce.toString()}`);
191
+ args.logger?.info("Bridge indexer found withdrawal hash", {
192
+ withdrawalHash: bridgeIndexerHash,
193
+ nearTxHash: args.tx.hash,
194
+ nonce: nonce.toString()
195
+ });
189
196
  return {
190
197
  status: "completed",
191
198
  txHash: bridgeIndexerHash
@@ -199,7 +206,11 @@ var HotBridge$1 = class HotBridge$1 {
199
206
  });
200
207
  const apiHash = await this.fetchWithdrawalHashFromApi(args.tx.hash, nonce, args.logger);
201
208
  if (apiHash != null) {
202
- args.logger?.info(`Hot Api returned withdrawHash=${apiHash} for nearTxHash=${args.tx.hash} nonce=${nonce.toString()}`);
209
+ args.logger?.info("HOT API fallback found withdrawal hash", {
210
+ withdrawalHash: apiHash,
211
+ nearTxHash: args.tx.hash,
212
+ nonce: nonce.toString()
213
+ });
203
214
  return {
204
215
  status: "completed",
205
216
  txHash: formatTxHash(apiHash, args.landingChain)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defuse-protocol/intents-sdk",
3
- "version": "0.53.1",
3
+ "version": "0.53.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "repository": {
@@ -45,8 +45,8 @@
45
45
  "ripple-address-codec": "^5.0.0",
46
46
  "valibot": "^1.0.0",
47
47
  "viem": "^2.0.0",
48
- "@defuse-protocol/contract-types": "0.6.1",
49
- "@defuse-protocol/internal-utils": "0.28.1"
48
+ "@defuse-protocol/contract-types": "0.6.2",
49
+ "@defuse-protocol/internal-utils": "0.28.2"
50
50
  },
51
51
  "devDependencies": {
52
52
  "tsdown": "0.19.0"