aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/index.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-09-20 03:09:36 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-12-05 06:23:32 +0800
commitd71fa6535987a0f13900f8e31dbb51772c12fc4f (patch)
treee2354e5c5b75dc4a48b737d646f5a89821fce48f /packages/pipeline/src/index.ts
parent75d3f24835fc68a758cfb44c6bc05095c3e87ad3 (diff)
downloaddexon-sol-tools-d71fa6535987a0f13900f8e31dbb51772c12fc4f.tar
dexon-sol-tools-d71fa6535987a0f13900f8e31dbb51772c12fc4f.tar.gz
dexon-sol-tools-d71fa6535987a0f13900f8e31dbb51772c12fc4f.tar.bz2
dexon-sol-tools-d71fa6535987a0f13900f8e31dbb51772c12fc4f.tar.lz
dexon-sol-tools-d71fa6535987a0f13900f8e31dbb51772c12fc4f.tar.xz
dexon-sol-tools-d71fa6535987a0f13900f8e31dbb51772c12fc4f.tar.zst
dexon-sol-tools-d71fa6535987a0f13900f8e31dbb51772c12fc4f.zip
Make contractAbi a parameter of getContractEventsAsync
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);
})();