ponder 0.8.4 → 0.8.6
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.
- package/dist/bin/ponder.js +13 -1
- package/dist/bin/ponder.js.map +1 -1
- package/package.json +1 -1
- package/src/sync-historical/index.ts +16 -0
- package/src/sync-store/index.ts +1 -1
package/dist/bin/ponder.js
CHANGED
|
@@ -6787,7 +6787,7 @@ var createSyncStore = ({
|
|
|
6787
6787
|
db.selectFrom("intervals").select(sql4`unnest(blocks)`.as("blocks")).where("fragment_id", "in", fragment.adjacent).as("unnested")
|
|
6788
6788
|
).select([
|
|
6789
6789
|
sql4`range_agg(unnested.blocks)`.as("merged_blocks"),
|
|
6790
|
-
sql4`${i}
|
|
6790
|
+
sql4.raw(`${i}`).as("filter")
|
|
6791
6791
|
]);
|
|
6792
6792
|
query2 = query2 === void 0 ? _query : query2.unionAll(_query);
|
|
6793
6793
|
}
|
|
@@ -8293,6 +8293,18 @@ var createHistoricalSync = async (args) => {
|
|
|
8293
8293
|
filter.topic2 ?? null,
|
|
8294
8294
|
filter.topic3 ?? null
|
|
8295
8295
|
];
|
|
8296
|
+
if (topics[3] === null) {
|
|
8297
|
+
topics.pop();
|
|
8298
|
+
if (topics[2] === null) {
|
|
8299
|
+
topics.pop();
|
|
8300
|
+
if (topics[1] === null) {
|
|
8301
|
+
topics.pop();
|
|
8302
|
+
if (topics[0] === null) {
|
|
8303
|
+
topics.pop();
|
|
8304
|
+
}
|
|
8305
|
+
}
|
|
8306
|
+
}
|
|
8307
|
+
}
|
|
8296
8308
|
let addressBatches;
|
|
8297
8309
|
if (address === void 0) {
|
|
8298
8310
|
addressBatches = [void 0];
|