aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-07 18:18:53 +0800
committerFabio Berger <me@fabioberger.com>2018-06-07 18:18:53 +0800
commit0fc981400442e4c567ca363bdf0f4c03ba87473d (patch)
treeee19dfb9dcd9c631fa4138326b9d639a7fc7374e /packages/utils
parente617da3bbf650b25c29df33cd12e23c994efe674 (diff)
parente0bc01eea1c20e0afda296f331c6a475e062b59c (diff)
downloaddexon-sol-tools-0fc981400442e4c567ca363bdf0f4c03ba87473d.tar
dexon-sol-tools-0fc981400442e4c567ca363bdf0f4c03ba87473d.tar.gz
dexon-sol-tools-0fc981400442e4c567ca363bdf0f4c03ba87473d.tar.bz2
dexon-sol-tools-0fc981400442e4c567ca363bdf0f4c03ba87473d.tar.lz
dexon-sol-tools-0fc981400442e4c567ca363bdf0f4c03ba87473d.tar.xz
dexon-sol-tools-0fc981400442e4c567ca363bdf0f4c03ba87473d.tar.zst
dexon-sol-tools-0fc981400442e4c567ca363bdf0f4c03ba87473d.zip
merge v2-prototype
Diffstat (limited to 'packages/utils')
-rw-r--r--packages/utils/src/abi_decoder.ts3
-rw-r--r--packages/utils/src/abi_utils.ts2
-rw-r--r--packages/utils/src/interval_utils.ts2
3 files changed, 1 insertions, 6 deletions
diff --git a/packages/utils/src/abi_decoder.ts b/packages/utils/src/abi_decoder.ts
index ed3297ee1..931cb94b2 100644
--- a/packages/utils/src/abi_decoder.ts
+++ b/packages/utils/src/abi_decoder.ts
@@ -29,12 +29,9 @@ export class AbiDecoder {
return log;
}
const ethersInterface = new ethers.Interface([event]);
- const logData = log.data;
const decodedParams: DecodedLogArgs = {};
let topicsIndex = 1;
- const nonIndexedInputs = _.filter(event.inputs, input => !input.indexed);
- const dataTypes = _.map(nonIndexedInputs, input => input.type);
const decodedData = ethersInterface.events[event.name].parse(log.data);
let didFailToDecode = false;
diff --git a/packages/utils/src/abi_utils.ts b/packages/utils/src/abi_utils.ts
index b5822425c..413c2f481 100644
--- a/packages/utils/src/abi_utils.ts
+++ b/packages/utils/src/abi_utils.ts
@@ -1,4 +1,4 @@
-import { AbiDefinition, AbiType, ConstructorAbi, ContractAbi, DataItem, MethodAbi } from 'ethereum-types';
+import { AbiDefinition, AbiType, ContractAbi, DataItem, MethodAbi } from 'ethereum-types';
import * as _ from 'lodash';
export const abiUtils = {
diff --git a/packages/utils/src/interval_utils.ts b/packages/utils/src/interval_utils.ts
index 6784d5b35..3d0561cd2 100644
--- a/packages/utils/src/interval_utils.ts
+++ b/packages/utils/src/interval_utils.ts
@@ -1,5 +1,3 @@
-import * as _ from 'lodash';
-
export const intervalUtils = {
setAsyncExcludingInterval(
fn: () => Promise<void>,