-
Notifications
You must be signed in to change notification settings - Fork 18
GraphQL schema for CRT mappings #94
Copy link
Copy link
Closed
Labels
creator-tokensCreator tokensCreator tokens
Description
Scope
Provide more documentation and ease the review of #90
Design specs
The main links are these from which you can get to the different user stories for each functionality (Sale, Revenue share etc..)
- https://www.figma.com/file/OuywwClsegx2eotkii4ea4/My-token?node-id=787-111738
- https://www.figma.com/file/VvWuJfHYpOPFQrcDVAeHkT/My-portfolio?node-id=1202-71665
ER schema
List all entities and relationship, see https://mermaid.js.org/syntax/entityRelationshipDiagram.html
%%{ init : { "er" : { "relationshipLine" : "linear" }}}%%
erDiagram
Token }o--|| Amm: issues
Token }o--|| Benefit: guarantees
Token }o--|| Sale: issues
Token }o--|| RevenueShare: starts
Token }o--|| TokenAccount: contains
Token ||--o{ Channel: is_issued_by
Token |o--o| Video: video_trailer
TokenAccount }o--|| AmmTransaction: transact
Amm }o--|| AmmTransaction: transact
TokenAccount }o--|| SaleTransaction: transact
Sale }o--|| SaleTransaction: transact
TokenAccount }o--|| RevenueShareParticipation: participates
RevenueShare }o--|| RevenueShareParticipation: is_participated
Membership }o--|| TokenAccount: becomes_holder
VestingSchedule }o--o{ TokenAccount: vested
VestingSchedule }o--o| Sale: vested_sale
Consideration
- I have assumed that if tokens are de-issued they won't be deleted from the database
- Edit: there might be vesting schedules that are not used, this however simplifies removing vesting schedules from accounts
queries section moved down under
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
creator-tokensCreator tokensCreator tokens