aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/pipeline/src/index.ts')
-rw-r--r--packages/pipeline/src/index.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/pipeline/src/index.ts b/packages/pipeline/src/index.ts
index baed6933e..eccb24d18 100644
--- a/packages/pipeline/src/index.ts
+++ b/packages/pipeline/src/index.ts
@@ -1,7 +1,13 @@
import { Etherscan } from './data-sources/etherscan';
+import { artifacts } from './artifacts';
+
const etherscan = new Etherscan(process.env.ETHERSCAN_API_KEY as string);
(async () => {
- await etherscan.getContractEventsAsync('0x4f833a24e1f95d70f028921e27040ca56e09ab0b');
+ const events = await etherscan.getContractEventsAsync(
+ '0x4f833a24e1f95d70f028921e27040ca56e09ab0b',
+ artifacts.Exchange.compilerOutput.abi,
+ );
+ console.log(events);
})();