aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts/types.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-27 00:54:56 +0800
committerGitHub <noreply@github.com>2017-05-27 00:54:56 +0800
commitb897bdab79fe566ffc8c19c6ec9f1bb7260fa95e (patch)
tree65abedae4adfa1694db877a8e041e57c29a547f9 /src/ts/types.ts
parentf338c68f126cba0f1b49c2928f276158b64d8ee7 (diff)
parent5d4c2dcb2950747c7cb2d95df340c23c981d70d3 (diff)
downloaddexon-sol-tools-b897bdab79fe566ffc8c19c6ec9f1bb7260fa95e.tar
dexon-sol-tools-b897bdab79fe566ffc8c19c6ec9f1bb7260fa95e.tar.gz
dexon-sol-tools-b897bdab79fe566ffc8c19c6ec9f1bb7260fa95e.tar.bz2
dexon-sol-tools-b897bdab79fe566ffc8c19c6ec9f1bb7260fa95e.tar.lz
dexon-sol-tools-b897bdab79fe566ffc8c19c6ec9f1bb7260fa95e.tar.xz
dexon-sol-tools-b897bdab79fe566ffc8c19c6ec9f1bb7260fa95e.tar.zst
dexon-sol-tools-b897bdab79fe566ffc8c19c6ec9f1bb7260fa95e.zip
Merge pull request #14 from 0xProject/implementFirstExchangeMethod
Implement first exchange method
Diffstat (limited to 'src/ts/types.ts')
-rw-r--r--src/ts/types.ts21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/ts/types.ts b/src/ts/types.ts
index 04902cca6..4da03a4d3 100644
--- a/src/ts/types.ts
+++ b/src/ts/types.ts
@@ -1,5 +1,4 @@
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
@@ -10,6 +9,26 @@ function strEnum(values: string[]): {[key: string]: string} {
}, Object.create(null));
}
+export const ZeroExError = strEnum([
+ 'CONTRACT_DOES_NOT_EXIST',
+ 'UNHANDLED_ERROR',
+ 'USER_HAS_NO_ASSOCIATED_ADDRESSES',
+]);
+export type ZeroExError = keyof typeof ZeroExError;
+
+/**
+ * Elliptic Curve signature
+ */
+export interface ECSignature {
+ v: number;
+ r: string;
+ s: string;
+}
+
+export interface ExchangeContract {
+ isValidSignature: any;
+}
+
export const SolidityTypes = strEnum([
'address',
'uint256',