@defuse-protocol/intents-sdk 0.53.0 → 0.53.2
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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.
|
|
3
|
+
"version": "0.53.2",
|
|
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.
|
|
49
|
-
"@defuse-protocol/internal-utils": "0.28.
|
|
48
|
+
"@defuse-protocol/contract-types": "0.6.1",
|
|
49
|
+
"@defuse-protocol/internal-utils": "0.28.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"tsdown": "0.19.0"
|