-
Notifications
You must be signed in to change notification settings - Fork 0
/
fee-collector.config.ts
36 lines (31 loc) · 1.39 KB
/
fee-collector.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { ChainKey, ChainType, ChainId } from '@lifi/types'
import { EBlockTagLatest, EEventScrapingStatus, FeeCollectorChainConfig } from '../data/FeeCollectorChainConfig'
/** Latest current version number of the FeeCollector Chain config schema */
export const VERSION_FEECOLLECTOR_CHAIN_CONFIG_LATEST = 1
/** Default max number of blocks used to define a range, a batch size, when iteratively scanning a chain */
export const CHAIN_SCAN_BLOCKS_BATCH_SIZE_DEFAULT = 2000
/** Default block tags to use for retrieving the latest available block on a blockchain */
export const CHAIN_LATEST_BLOCK_TAG_DEFAULT = 'finalized'
/** Default number of chain query attempts when previous has failed. Number of attempts before throwing an error. */
export const CHAIN_QUERY_FAIL_RETRY_NB_DEFAULT = 2
/** Map of FeeCollector scraping config for the supported blockchains */
export const feeCollectorChainConfigDefault: Map<string, FeeCollectorChainConfig> = new Map([
[
// Polygon Mainnet
ChainKey.POL,
{
version: VERSION_FEECOLLECTOR_CHAIN_CONFIG_LATEST,
status: EEventScrapingStatus.ACTIVE,
chain: {
id: ChainId.POL,
type: ChainType.EVM,
rpcUrl: 'https://polygon-rpc.com',
lastBlockTag: EBlockTagLatest.default,
},
feeCollector: {
contract: '0xbD6C7B0d2f68c2b7805d88388319cfB6EcB50eA9',
blockStart: 47961368,
}
},
],
])