@tapforce/pod-bridge-sdk 1.1.2 → 1.1.4
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.
|
@@ -28,6 +28,7 @@ class PodBridgeTrackerClient {
|
|
|
28
28
|
const deposits = [];
|
|
29
29
|
const currentBlock = await this.bridgedProvider.getBlockNumber();
|
|
30
30
|
const BLOCK_BATCH_SIZE = 10000;
|
|
31
|
+
console.log('currentBlock', currentBlock);
|
|
31
32
|
for (let start = startBlock; start <= currentBlock; start += BLOCK_BATCH_SIZE) {
|
|
32
33
|
const end = Math.min(start + BLOCK_BATCH_SIZE - 1, currentBlock);
|
|
33
34
|
// With improved events, we can filter by 'from' directly!
|
|
@@ -90,8 +91,8 @@ class PodBridgeTrackerClient {
|
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
|
-
// Check claim status
|
|
94
|
-
await this.updateClaimStatus(deposits
|
|
94
|
+
// Check claim status (queries POD chain, not bridged)
|
|
95
|
+
await this.updateClaimStatus(deposits);
|
|
95
96
|
return deposits.sort((a, b) => b.timestamp - a.timestamp);
|
|
96
97
|
}
|
|
97
98
|
/**
|
|
@@ -166,8 +167,8 @@ class PodBridgeTrackerClient {
|
|
|
166
167
|
}
|
|
167
168
|
}
|
|
168
169
|
}
|
|
169
|
-
// Check claim status
|
|
170
|
-
await this.updateClaimStatus(deposits
|
|
170
|
+
// Check claim status (queries POD chain, not bridged)
|
|
171
|
+
await this.updateClaimStatus(deposits);
|
|
171
172
|
return deposits.sort((a, b) => b.timestamp - a.timestamp);
|
|
172
173
|
}
|
|
173
174
|
/**
|