aboutsummaryrefslogblamecommitdiffstats
path: root/packages/pipeline/src/index.ts
blob: eccb24d18bdba4052572720a5a419deb91463206 (plain) (tree)
1
2
3
4
5
6
7

                                                     

                                        


                                                                         




                                                          
     
import { Etherscan } from './data-sources/etherscan';

import { artifacts } from './artifacts';

const etherscan = new Etherscan(process.env.ETHERSCAN_API_KEY as string);

(async () => {
    const events = await etherscan.getContractEventsAsync(
        '0x4f833a24e1f95d70f028921e27040ca56e09ab0b',
        artifacts.Exchange.compilerOutput.abi,
    );
    console.log(events);
})();