Skip to content

Instantly share code, notes, and snippets.

@adrake33
Created April 2, 2019 20:59
Show Gist options
  • Save adrake33/92aceb8a5eef90b71417cfe0953cb2e1 to your computer and use it in GitHub Desktop.
Save adrake33/92aceb8a5eef90b71417cfe0953cb2e1 to your computer and use it in GitHub Desktop.
// Should add logging for `marketId`, `tokensEscrowed`, & `sharesEscrowed`?
export interface AllOrdersRow<BigNumberType> {
orderId: Address; // OrderCreated.orderId
originalTokensEscrowed: BigNumberType; // OrderCreated.moneyEscrowed
originalSharesEscrowed: BigNumberType; // OrderCreated.sharesEscrowed
tokensEscrowed: BigNumberType;
sharesEscrowed: BigNumberType;
marketId: Address;
}
export interface AllOrders {
[orderId: string]: AllOrdersRow<string>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment