ponder 0.9.3 → 0.9.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.
- package/dist/bin/ponder.js +527 -485
- package/dist/bin/ponder.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/build/configAndIndexingFunctions.ts +547 -512
- package/src/config/index.ts +4 -4
package/src/config/index.ts
CHANGED
|
@@ -65,9 +65,9 @@ type DatabaseConfig =
|
|
|
65
65
|
|
|
66
66
|
type BlockConfig = {
|
|
67
67
|
/** Block number at which to start indexing events (inclusive). If `undefined`, events will be processed from block 0. Default: `undefined`. */
|
|
68
|
-
startBlock?: number;
|
|
68
|
+
startBlock?: number | "latest";
|
|
69
69
|
/** Block number at which to stop indexing events (inclusive). If `undefined`, events will be processed in real-time. Default: `undefined`. */
|
|
70
|
-
endBlock?: number;
|
|
70
|
+
endBlock?: number | "latest";
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
type TransactionReceiptConfig = {
|
|
@@ -215,9 +215,9 @@ type AccountsConfig<networks, accounts> = {} extends accounts
|
|
|
215
215
|
|
|
216
216
|
type BlockFilterConfig = {
|
|
217
217
|
/** Block number at which to start indexing events (inclusive). If `undefined`, events will be processed from block 0. Default: `undefined`. */
|
|
218
|
-
startBlock?: number;
|
|
218
|
+
startBlock?: number | "latest";
|
|
219
219
|
/** Block number at which to stop indexing events (inclusive). If `undefined`, events will be processed in real-time. Default: `undefined`. */
|
|
220
|
-
endBlock?: number;
|
|
220
|
+
endBlock?: number | "latest";
|
|
221
221
|
interval?: number;
|
|
222
222
|
};
|
|
223
223
|
|