diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-03-15 06:02:58 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-03-15 07:33:10 +0800 |
commit | ffe7363776077e2363afc23a8e4c5e2ea420aefe (patch) | |
tree | 6eb19a3944d07c1ff5ce5903b8ed496b07546894 /packages/types/src/index.ts | |
parent | 4a27a7dc581fc6c8a3d4e212ca3712c249a5b417 (diff) | |
download | dexon-0x-contracts-ffe7363776077e2363afc23a8e4c5e2ea420aefe.tar dexon-0x-contracts-ffe7363776077e2363afc23a8e4c5e2ea420aefe.tar.gz dexon-0x-contracts-ffe7363776077e2363afc23a8e4c5e2ea420aefe.tar.bz2 dexon-0x-contracts-ffe7363776077e2363afc23a8e4c5e2ea420aefe.tar.lz dexon-0x-contracts-ffe7363776077e2363afc23a8e4c5e2ea420aefe.tar.xz dexon-0x-contracts-ffe7363776077e2363afc23a8e4c5e2ea420aefe.tar.zst dexon-0x-contracts-ffe7363776077e2363afc23a8e4c5e2ea420aefe.zip |
Add SignedOrder, Order, and ECSignature types to the types package
Diffstat (limited to 'packages/types/src/index.ts')
-rw-r--r-- | packages/types/src/index.ts | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 149aaca8a..2147a3edb 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -73,3 +73,31 @@ export interface RawLogEntry { data: string; topics: string[]; } + +export interface Order { + maker: string; + taker: string; + makerFee: BigNumber; + takerFee: BigNumber; + makerTokenAmount: BigNumber; + takerTokenAmount: BigNumber; + makerTokenAddress: string; + takerTokenAddress: string; + salt: BigNumber; + exchangeContractAddress: string; + feeRecipient: string; + expirationUnixTimestampSec: BigNumber; +} + +export interface SignedOrder extends Order { + ecSignature: ECSignature; +} + +/** + * Elliptic Curve signature + */ +export interface ECSignature { + v: number; + r: string; + s: string; +} |