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/dist/index.d.ts
CHANGED
|
@@ -127,9 +127,9 @@ type DatabaseConfig$1 = {
|
|
|
127
127
|
};
|
|
128
128
|
type BlockConfig$1 = {
|
|
129
129
|
/** Block number at which to start indexing events (inclusive). If `undefined`, events will be processed from block 0. Default: `undefined`. */
|
|
130
|
-
startBlock?: number;
|
|
130
|
+
startBlock?: number | "latest";
|
|
131
131
|
/** Block number at which to stop indexing events (inclusive). If `undefined`, events will be processed in real-time. Default: `undefined`. */
|
|
132
|
-
endBlock?: number;
|
|
132
|
+
endBlock?: number | "latest";
|
|
133
133
|
};
|
|
134
134
|
type TransactionReceiptConfig = {
|
|
135
135
|
includeTransactionReceipts?: boolean;
|
|
@@ -202,9 +202,9 @@ type AccountsConfig<networks, accounts> = {} extends accounts ? {} : {
|
|
|
202
202
|
};
|
|
203
203
|
type BlockFilterConfig = {
|
|
204
204
|
/** Block number at which to start indexing events (inclusive). If `undefined`, events will be processed from block 0. Default: `undefined`. */
|
|
205
|
-
startBlock?: number;
|
|
205
|
+
startBlock?: number | "latest";
|
|
206
206
|
/** Block number at which to stop indexing events (inclusive). If `undefined`, events will be processed in real-time. Default: `undefined`. */
|
|
207
|
-
endBlock?: number;
|
|
207
|
+
endBlock?: number | "latest";
|
|
208
208
|
interval?: number;
|
|
209
209
|
};
|
|
210
210
|
type GetBlockFilter<networks, allNetworkNames extends string = [keyof networks] extends [never] ? string : keyof networks & string> = BlockFilterConfig & {
|