aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/data-sources/etherscan/index.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-09-21 08:25:48 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-13 01:12:06 +0800
commit0dc000183aabab129d6b642eae468ed2996a75c4 (patch)
treed37a93d8b51a371181bee20c8ad8f9c5bbe42174 /packages/pipeline/src/data-sources/etherscan/index.ts
parent90e1028d2fd154b8c637139145a2dc1c6999d585 (diff)
downloaddexon-0x-contracts-0dc000183aabab129d6b642eae468ed2996a75c4.tar.gz
dexon-0x-contracts-0dc000183aabab129d6b642eae468ed2996a75c4.tar.zst
dexon-0x-contracts-0dc000183aabab129d6b642eae468ed2996a75c4.zip
Add support for decoding asset data
Diffstat (limited to 'packages/pipeline/src/data-sources/etherscan/index.ts')
-rw-r--r--packages/pipeline/src/data-sources/etherscan/index.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/pipeline/src/data-sources/etherscan/index.ts b/packages/pipeline/src/data-sources/etherscan/index.ts
index 66b6b1a8d..c5eb2b9c6 100644
--- a/packages/pipeline/src/data-sources/etherscan/index.ts
+++ b/packages/pipeline/src/data-sources/etherscan/index.ts
@@ -1,7 +1,7 @@
import { default as axios } from 'axios';
-import { AbiDefinition, BlockParam, BlockParamLiteral, DecodedLogArgs, LogWithDecodedArgs } from 'ethereum-types';
+import { AbiDefinition, BlockParam, BlockParamLiteral } from 'ethereum-types';
-import { EventsResponse, parseRawEventsResponse } from './events';
+import { EventsResponse, ExchangeEventEntity, parseRawEventsResponse } from './events';
const ETHERSCAN_URL = 'https://api.etherscan.io/api';
@@ -24,7 +24,7 @@ export class Etherscan {
contractAbi: AbiDefinition[],
fromBlock: BlockParam = BlockParamLiteral.Earliest,
toBlock: BlockParam = BlockParamLiteral.Latest,
- ): Promise<Array<LogWithDecodedArgs<DecodedLogArgs>>> {
+ ): Promise<ExchangeEventEntity[]> {
const fullURL = `${ETHERSCAN_URL}?module=logs&action=getLogs&address=${contractAddress}&fromBlock=${fromBlock}&toBlock=${toBlock}&apikey=${
this._apiKey
}`;