Skip to content

Instantly share code, notes, and snippets.

@adrake33
Last active April 2, 2019 18:01
Show Gist options
  • Select an option

  • Save adrake33/d87d91b3da64cb75fd93501fea4a023e to your computer and use it in GitHub Desktop.

Select an option

Save adrake33/d87d91b3da64cb75fd93501fea4a023e to your computer and use it in GitHub Desktop.
// Should add `outcome`, `price`, & `maker` to TradingProceedsClaimed
export interface ProceedTradesRow {
logIndex: number, // Block logIndex
blockNumber: number, // Block number
timestamp: number, // Block timestamp
marketId: Address, // TradingProceedsClaimed.market
outcome: number, // Share token's outcome
price: BigNumberType, // Payout * tickSize * MarketCreated.minPrice
amount: BigNumberType, // TradingProceedsClaimed.numShares
type: "sell",
maker: false, // OrderCreated.orderType
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment