Skip to content

Instantly share code, notes, and snippets.

@adrake33
Created April 2, 2019 01:31
Show Gist options
  • Save adrake33/9bf539ded9a55dd8a3964190d0d38375 to your computer and use it in GitHub Desktop.
Save adrake33/9bf539ded9a55dd8a3964190d0d38375 to your computer and use it in GitHub Desktop.
// Use TokensTransferred events to calculate `balance` for an account?
// Use `TokensMinted` to calculate supply?
export interface UniversesInfo<BigNumberType> {
balance: BigNumberType;
isInvalid: boolean; // Use UniverseCreated.payoutNumerators
numMarkets: BigNumberType; // Keep running total of MarketCreated events in this universe
parentUniverse: Address; // Universecreated.parentUniverse
payout: Array<number>; // UniverseCreated.payoutNumerators
supply: BigNumberType;
universe: Address; // UniverseCreated.childUniverse
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment