Skip to content
docs

IndexerLogsSource

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:55

Shared engine of the indexer-backed sources (Etherscan V2, Blockscout — both speak the Etherscan module=logs&action=getLogs dialect). One request per range asks for every log with the owner in topic1; the parser keeps the approval-shaped ones. A full page (1000 rows) or a “range too large” answer halves the range. Subclasses only build the URL.

new IndexerLogsSource(name, __namedParameters?): IndexerLogsSource

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:68

string

IndexerSourceOptions = {}

IndexerLogsSource

protected readonly _concurrency: number

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:63


protected readonly _fetch: FetchLike

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:61


protected readonly _headers: Record<string, string>

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:62


protected readonly _maxRetryWait: number

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:66


protected readonly _perTopic: boolean

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:60


protected readonly _retries: number

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:64


protected readonly _retryDelay: number

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:65


readonly name: string

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:57

Source name reported in coverage.source.

ApprovalSource.name


requests: number

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:59

Requests issued by the last collect (diagnostics).

protected _getLogs(query): Promise<RawLog[]>

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:129

IndexerQuery

Promise<RawLog[]>


protected _url(_query): string

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:82

The request URL for one query; implemented by each source.

IndexerQuery

string


collect(owner, __namedParameters): Promise<CollectResult>

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:86

string

number

number

Promise<CollectResult>

ApprovalSource.collect