Skip to content

Instantly share code, notes, and snippets.

@adrake33
Created April 2, 2019 20:37
Show Gist options
  • Save adrake33/7980b72a690b8b172f1c61400a8b7f29 to your computer and use it in GitHub Desktop.
Save adrake33/7980b72a690b8b172f1c61400a8b7f29 to your computer and use it in GitHub Desktop.
// 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
token: Address; // TokensTransferred.token
value: BigNumberType; // TokensTransferred.value
symbol: string|null;
outcome: number|null;
marketId: Address|null; // TokensTransferred.market
isInternalTransfer: boolean;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment