v0.4.19
Factory contracts!
new Manifest('factory-source')
.addChain('ethereum', (ethereum) =>
ethereum
.setOptions({
blockRange: 100n,
})
.addContract({
abi: UNISWAP_V2_FACTORY,
name: 'UniswapV2Factory',
sources: {
'0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f': 17736650n,
},
})
.addContract({
abi: UNISWAP_V2_PAIR,
name: 'UniswapV2Pair',
factorySources: {
UniswapV2Factory: {
PairCreated: 'pair',
},
},
eventHandlers: {
Swap: onSwap,
},
}))
.build()