Skip to content

Instantly share code, notes, and snippets.

@adrake33
Last active April 2, 2019 19:54
Show Gist options
  • Save adrake33/529e237c496c1254a8e75b1e9051df77 to your computer and use it in GitHub Desktop.
Save adrake33/529e237c496c1254a8e75b1e9051df77 to your computer and use it in GitHub Desktop.
// This will require getting data from a lot of different logs. Might want to create new logs for fields in `totals .
export interface CrowdsourcerState {
crowdsourcerId: Address;
needsFork: boolean;
}
export interface InitialReporterState {
initialReporterId: Address;
needsFork: boolean;
}
export interface ForkedMarket {
marketId: Address;
universe: Address;
isFinalized: boolean;
crowdsourcers: Array<CrowdsourcerState>;
initialReporter: InitialReporterState|null;
}
export interface NonforkedMarket {
marketId: Address;
universe: Address;
crowdsourcersAreDisavowed: boolean;
isFinalized: boolean;
isMigrated: boolean;
crowdsourcers: Array<Address>;
initialReporter: Address|null;
}
export interface FeeDetails {
total: {
unclaimedEth: string;
unclaimedRepStaked: string;
unclaimedRepEarned: string;
unclaimedForkEth: string;
unclaimedForkRepStaked: string;
lostRep: string;
};
feeWindows: Array<Address>;
forkedMarket: ForkedMarket|null;
nonforkedMarkets: Array<NonforkedMarket>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment