-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathGxOrderListInterface.sol
More file actions
49 lines (41 loc) · 1.25 KB
/
GxOrderListInterface.sol
File metadata and controls
49 lines (41 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
pragma solidity ^0.4.2;
import './GxOwnedInterface.sol';
contract GxOrderListInterface is GxOwnedInterface {
// abstract functions
function get(uint80 orderId) constant returns (
uint80 _orderId,
uint80 next,
uint80 previous,
address account,
uint32 quantity,
uint32 originalQuantity,
uint32 pricePerCoin,
uint expirationTime
);
function add(
uint80 previousOrderId,
uint80 orderId,
address account,
uint32 quantity,
uint32 originalQuantity,
uint32 pricePerCoin,
uint expirationTime
) returns (bool);
function update(
uint80 orderId,
address account,
uint32 quantity,
uint32 originalQuantity,
uint32 pricePerCoin,
uint expirationTime
) returns (bool);
function getPricePerCoin(uint80 orderId) constant returns (uint32 pricePerCoin);
function remove(uint80 orderId) returns (bool);
function move(uint80 orderId, uint80 previousOrderId) public returns (bool);
function consumeNextOrderId() public;
function setNextOrderId(uint80 nextOrderId) public;
uint80 public size;
uint80 public first;
uint80 public last;
uint80 public nextOrderId;
}