aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-05-30 17:56:23 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-05-30 17:56:23 +0800
commit603a88872d07cb7a380be4eee3111b024bfed886 (patch)
tree3cea8f7fb72a721c76efc30586c3e793e73b1d2f /src
parentcda040ef997761a1dcfa482dbd2f90fe546b3743 (diff)
downloaddexon-sol-tools-603a88872d07cb7a380be4eee3111b024bfed886.tar
dexon-sol-tools-603a88872d07cb7a380be4eee3111b024bfed886.tar.gz
dexon-sol-tools-603a88872d07cb7a380be4eee3111b024bfed886.tar.bz2
dexon-sol-tools-603a88872d07cb7a380be4eee3111b024bfed886.tar.lz
dexon-sol-tools-603a88872d07cb7a380be4eee3111b024bfed886.tar.xz
dexon-sol-tools-603a88872d07cb7a380be4eee3111b024bfed886.tar.zst
dexon-sol-tools-603a88872d07cb7a380be4eee3111b024bfed886.zip
Add Order and SignedOrder types
Diffstat (limited to 'src')
-rw-r--r--src/types.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts
index 0c661915e..a14115ef5 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -68,3 +68,26 @@ export interface ContractEvent {
event: string;
args: any;
}
+
+export interface Order {
+ maker: string;
+ taker?: string;
+
+ makerFee: BigNumber.BigNumber;
+ takerFee: BigNumber.BigNumber;
+
+ makerTokenAmount: BigNumber.BigNumber;
+ takerTokenAmount: BigNumber.BigNumber;
+
+ makerTokenAddress: string;
+ takerTokenAddress: string;
+
+ salt: BigNumber.BigNumber;
+ fillAmount: BigNumber.BigNumber;
+ feeRecipient: string;
+ expirationUnixTimestampSec: BigNumber.BigNumber;
+}
+
+export interface SignedOrder extends Order {
+ ecSignature: ECSignature;
+}