aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts/types.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-26 19:29:19 +0800
committerFabio Berger <me@fabioberger.com>2017-05-26 19:29:19 +0800
commit9f163165677ac0443938a61e426a593048366f83 (patch)
treef739d2f4da344b1abfccd2fbb912410e46ce3f86 /src/ts/types.ts
parent4465313df3689ccf356b516693a77925ea2f57ea (diff)
parentf338c68f126cba0f1b49c2928f276158b64d8ee7 (diff)
downloaddexon-sol-tools-9f163165677ac0443938a61e426a593048366f83.tar
dexon-sol-tools-9f163165677ac0443938a61e426a593048366f83.tar.gz
dexon-sol-tools-9f163165677ac0443938a61e426a593048366f83.tar.bz2
dexon-sol-tools-9f163165677ac0443938a61e426a593048366f83.tar.lz
dexon-sol-tools-9f163165677ac0443938a61e426a593048366f83.tar.xz
dexon-sol-tools-9f163165677ac0443938a61e426a593048366f83.tar.zst
dexon-sol-tools-9f163165677ac0443938a61e426a593048366f83.zip
Merge branch 'master' into implementFirstExchangeMethod
# Conflicts: # package.json # src/ts/0x.js.ts # src/ts/globals.d.ts # src/ts/types.ts
Diffstat (limited to 'src/ts/types.ts')
-rw-r--r--src/ts/types.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ts/types.ts b/src/ts/types.ts
index 01380af02..04123782e 100644
--- a/src/ts/types.ts
+++ b/src/ts/types.ts
@@ -1,4 +1,5 @@
import * as _ from 'lodash';
+import * as BigNumber from 'bignumber.js';
// Utility function to create a K:V from a list of strings
// Adapted from: https://basarat.gitbooks.io/typescript/content/docs/types/literal-types.html
@@ -28,3 +29,9 @@ export interface ECSignature {
export interface ExchangeContract {
isValidSignature: any;
}
+
+export const SolidityTypes = strEnum([
+ 'address',
+ 'uint256',
+]);
+export type SolidityTypes = keyof typeof SolidityTypes;