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