Skip to content

Instantly share code, notes, and snippets.

@adrake33
Created April 2, 2019 21:21
Show Gist options
  • Save adrake33/7e536ae327e87ca0d8cadc2c0905ec12 to your computer and use it in GitHub Desktop.
Save adrake33/7e536ae327e87ca0d8cadc2c0905ec12 to your computer and use it in GitHub Desktop.
// Should not require additional logginng
export interface CompleteSetsRow<BigNumberType> extends BaseTransactionRow {
marketId: Address; // CompleteSetsPurchased.market or CompleteSetsSold.market
account: Address; // CompleteSetsPurchased.account or CompleteSetsSold.account
universe: Address; // CompleteSetsPurchased.universe or CompleteSetsSold.universe
eventName: string; // "CompleteSetsPurchased" or "CompleteSetsSold"
numPurchasedOrSold: BigNumberType; // always same as `numCompleteSets`?
numCompleteSets: BigNumberType; // CompleteSetsPurchased.numCompleteSets or CompleteSetsSold.numCompleteSets
}
export interface CompleteSets {
[orderId: string]: CompleteSetsRow<string>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment