Skip to content

Instantly share code, notes, and snippets.

@adrake33
Last active April 2, 2019 18:07
Show Gist options
  • Save adrake33/e4581d620a2c020176711572e19ff2bc to your computer and use it in GitHub Desktop.
Save adrake33/e4581d620a2c020176711572e19ff2bc to your computer and use it in GitHub Desktop.
// Most of these fields will probably need to be logged
export interface NormalizedPayoutNumerators<BigNumberType> {
payout: Array<BigNumberType>;
}
export interface NormalizedPayout<BigNumberType> extends NormalizedPayoutNumerators<BigNumberType> {
isInvalid: boolean|number;
}
export interface StakeDetails<BigNumberType> extends NormalizedPayout<BigNumberType> {
stakeCompleted: BigNumberType;
size?: BigNumberType;
stakeCurrent?: BigNumberType;
tentativeWinning: boolean;
bondSizeCurrent?: BigNumberType;
bondSizeTotal?: BigNumberType;
stakeCurrent?: BigNumberType;
stakeRemaining?: BigNumberType;
accountStakeCompleted?: BigNumberType;
accountStakeCurrent?: BigNumberType;
accountStakeTotal?: BigNumberType;
}
export interface UIStakeInfo<BigNumberType> {
marketId: Address; // DisputeCrowdsourcerContribution.market
disputeRound: number|null;
stakeCompletedTotal: BigNumberType;
bondSizeOfNewStake: BigNumberType;
stakes: Array<StakeDetails<BigNumberType>>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment