This file contains 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
// Probably not any additional logging needed for this, especially since the time range can vary | |
export interface AccountTimeRangeResult { | |
positions: number; | |
marketsCreated: number; | |
numberOfTrades: number; | |
successfulDisputes: number; | |
marketsTraded: number; | |
redeemedPositions: number; | |
} |
This file contains 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
// 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 | |
} |
This file contains 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
// Will require getting data from multiple event types, but not sure there's a better way to do this using different logs. | |
export interface MarketWinnings { | |
marketId: Address; | |
winnings: BigNumber; | |
} |
This file contains 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
// Should add logging for `marketId`, `tokensEscrowed`, & `sharesEscrowed`? | |
export interface AllOrdersRow<BigNumberType> { | |
orderId: Address; // OrderCreated.orderId | |
originalTokensEscrowed: BigNumberType; // OrderCreated.moneyEscrowed | |
originalSharesEscrowed: BigNumberType; // OrderCreated.sharesEscrowed | |
tokensEscrowed: BigNumberType; | |
sharesEscrowed: BigNumberType; | |
marketId: Address; | |
} |
This file contains 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
// Should probably add `symbol`, `outcome`, `isInternalTransfer` to Transfer logs | |
export interface TransferRow<BigNumberType> { | |
transactionHash: Bytes32; | |
logIndex: number; | |
blockNumber: number; | |
blockHash: string; | |
timestamp: number; | |
sender: Address; // TokensTransferred.from | |
recipient: Address; // TokensTransferred.to |
This file contains 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
// May need to log some of these, such as details, fee, marketDescription, outcome, outcome description, price, quantity, & total | |
export interface UIAccountTransactionHistoryRow<BigNumberType> { | |
action: Action; | |
coin: string; | |
details: string; | |
fee: BigNumberType; | |
marketDescription: string; | |
outcome: number; | |
outcomeDescription: string; |
This file contains 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
// All of this info should already be accessible | |
export interface UISyncData { | |
version: string; | |
augurNodeVersion: string; | |
net_version: string; | |
netId: string; | |
isSyncFinished: boolean; | |
addresses: {}; | |
highestBlock: {}; |
This file contains 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
// Seems like we can obtain these with the logs we have. Not sure if we could add any new logs to facilitate calculating these totals? | |
export interface PlatformActivityResult { | |
activeUsers: BigNumber; | |
numberOfTrades: BigNumber; | |
openInterest: BigNumber; | |
marketsCreated: BigNumber; | |
volume: BigNumber; | |
amountStaked: BigNumber; | |
disputedMarkets: BigNumber; |
This file contains 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
// Is `repTotal` just calculated using TokensMinted events? | |
interface ForkMigrationTotals<BigNumberType> { | |
isInvalid: boolean; // UniverseCreated.payoutNumerators | |
payout: Array<number>; // UniverseCreated.payoutNumerators | |
repTotal: BigNumberType; | |
universe: string; // UniverseCreated.childUniverse | |
} | |
interface UIForkMigrationTotals<BigNumberType> { |
NewerOlder