From 6c09c43425f7d7ada8e034cf77ba87f97e82d2b0 Mon Sep 17 00:00:00 2001 From: Hsuan Lee Date: Mon, 11 Mar 2019 14:48:49 +0800 Subject: Add in data required for orderbook traversal --- contracts/exchange/contracts/src/MixinOrderbook.sol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contracts/exchange/contracts/src/MixinOrderbook.sol b/contracts/exchange/contracts/src/MixinOrderbook.sol index 271f28da2..a5e84352f 100644 --- a/contracts/exchange/contracts/src/MixinOrderbook.sol +++ b/contracts/exchange/contracts/src/MixinOrderbook.sol @@ -25,5 +25,9 @@ import "./mixins/MOrderbook.sol"; contract MixinOrderbook is MOrderbook { + // Mapping of orderHash => orderHash of the next order down the sorted linked list + mapping (bytes32 => bytes32) public next; + // Mapping of makerAssetData => takerAssetData => orderHash of the order with highest bid + mapping (bytes => mapping(bytes => bytes32)) public highestBid; } -- cgit v1.2.3