@tapforce/pod-bridge-sdk 1.1.1 → 1.1.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.
|
@@ -43,6 +43,8 @@ class PodBridgeTrackerClient {
|
|
|
43
43
|
this.bridgedBridge.queryFilter(depositFilter, start, end),
|
|
44
44
|
this.bridgedBridge.queryFilter(depositNativeFilter, start, end)
|
|
45
45
|
]);
|
|
46
|
+
console.log('depositLogs', depositLogs);
|
|
47
|
+
console.log('depositNativeLogs', depositNativeLogs);
|
|
46
48
|
// Add small delay to avoid rate limiting
|
|
47
49
|
if (start + BLOCK_BATCH_SIZE <= currentBlock) {
|
|
48
50
|
await new Promise(resolve => setTimeout(resolve, 100));
|
|
@@ -228,6 +230,7 @@ class PodBridgeTrackerClient {
|
|
|
228
230
|
if (deposits.length === 0) {
|
|
229
231
|
return;
|
|
230
232
|
}
|
|
233
|
+
console.log('updateClaimStatus');
|
|
231
234
|
try {
|
|
232
235
|
const startBlock = (_a = fromBlock !== null && fromBlock !== void 0 ? fromBlock : this.config.pod.deploymentBlock) !== null && _a !== void 0 ? _a : 0;
|
|
233
236
|
const currentBlock = await this.podProvider.getBlockNumber();
|
|
@@ -239,10 +242,13 @@ class PodBridgeTrackerClient {
|
|
|
239
242
|
const claimNativeFilter = this.podBridge.filters.ClaimNative();
|
|
240
243
|
for (let start = startBlock; start <= currentBlock; start += BLOCK_BATCH_SIZE) {
|
|
241
244
|
const end = Math.min(start + BLOCK_BATCH_SIZE - 1, currentBlock);
|
|
245
|
+
console.log('updateClaimStatus', start, end);
|
|
242
246
|
const [claimLogs, claimNativeLogs] = await Promise.all([
|
|
243
247
|
this.podBridge.queryFilter(claimFilter, start, end),
|
|
244
248
|
this.podBridge.queryFilter(claimNativeFilter, start, end)
|
|
245
249
|
]);
|
|
250
|
+
console.log('claimLogs', claimLogs);
|
|
251
|
+
console.log('claimNativeLogs', claimNativeLogs);
|
|
246
252
|
allClaimLogs.push(...claimLogs);
|
|
247
253
|
allClaimNativeLogs.push(...claimNativeLogs);
|
|
248
254
|
// Add small delay to avoid rate limiting
|