Last active
April 2, 2019 18:07
-
-
Save adrake33/e4581d620a2c020176711572e19ff2bc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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