-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add v3 Transaction Types #382
Conversation
src/types/transaction.ts
Outdated
netAssetTransfers: { | ||
[address: string]: { | ||
received: [{ type; contract; value; tokenId? }]; | ||
sent: [{ type; contract; value; tokenId? }]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add the type of each of these sub-object properties so we have more than just the names?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}; | ||
isContract: boolean; | ||
tokenStandard: string; | ||
imgUrl: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use imageUrl
below, but I suppose this has to be accurate, maybe call it out with a comment until we can update.
Also I would add comments stating explicitly that all these structures are in progress, like https://github.com/Once-Upon/docs/pull/22/files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/types/transaction.ts
Outdated
contract: string; | ||
tokenId?: string; | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't realize we already had a type for this
No description provided.