Skip to content
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

πŸŒŒπŸ€– ↝ [STA-31] Claim anomalies & return stats #28

Open
Gizmotronn opened this issue Feb 25, 2023 · 0 comments
Open
Assignees
Labels
Data Manipulation Created by Linear-GitHub Sync Generative Data Created by Linear-GitHub Sync Migration Created by Linear-GitHub Sync Static data Created by Linear-GitHub Sync Sytizen-Repo Created by Linear-GitHub Sync Unity Created by Linear-GitHub Sync Urgent Created by Linear-GitHub Sync User Data Created by Linear-GitHub Sync

Comments

@Gizmotronn
Copy link
Member

Gizmotronn commented Feb 25, 2023

Create a feature on individual anomalies to claim them to a user's profile. Send a request to Flask with the following information:

  1. TIC ID (of the claimed anomaly) β†’ this will be changed to different identifiers based on what type of anomaly it is (could also be multiple identifiers per anomaly if each identifier is used in a different dataset like lightkurve and something else).

    Down the line it will be the other way around - an anomaly will be generated by a user and a TIC ID/identifier will be assigned to it, however for now we're just manually adding anomalies to the database (which will be moved across to the DeSci Nodes setup)

  2. Metadata tags (as JSON) β†’ Things like dataset, discovery info, etc.

  3. User ID/Account info

Flask will then generate images and return those images, as well as other parameters, which will be passed into the planet's sandbox page -@zaq42 (with the "other parameters" e.g. orbital period being passed into the sandbox's generator). For now, only the "owner" of a planet can edit the sandbox, however users will be able to "fork" someone else's anomaly and manipulate it as they wish.

What needs to be done then? For the frontend, we need to knock in the windows for the images and other metadata to be included, and then I need to update the planets table with the following new fields:

  1. Multiplier β†’ will be set to 1 by default, can be edited/changed based on what is returned from Lightkurve. For now, we'll only have one currency β†’ "resources", which in the MVP will be split into the different resource types described here. In the MVP, there will be a different multiplier for each resource type (JSON!). Maybe the multiplier can be set by the earthRadius field for this demo
  2. Owner β†’ reinforce the relationship between profiles table & planets table
  3. Contract β†’ Address of the planet. This is so that we can return fields to interact with a token (push/pull) on the frontend, like updating/adding metadata. 3, 4, 5 & 6 are more for when we move this data/Supabase instance to an IPFS setup on Nodes
  4. TokenID β†’ Id of the anomaly on the contract (for future discussion β†’ where does the split between ERC1155 & ERC721 occur in the flow?
  5. ChainID β†’ What chain is the address on?
  6. Owner Address β†’ Just in case the owner address is different to the id in profiles of Owner …. for debugging purposes only atm
  7. Forks β†’ JSON. Who has forked this anomaly
  8. ForkFrom β†’ UUID. What was the original ID of this anomaly (if it was forked)
  9. Posts β†’ What shortform/discussion posts & comments was this anomaly mentioned in?
  10. Articles β†’ What long-form discussions was this anomaly mentioned in?
  11. Datasets β†’ What datasets was this anomaly part of?
  12. Returned/Generated fields β†’ JSON

Then we can add some reputation points to the user β†’ for now it can be 1 point for every anomaly they claim/classify, as that's the flow I'm thinking will be in place at MVP.

From SyncLinear.com | STA-31

@Gizmotronn Gizmotronn self-assigned this Feb 25, 2023
@Gizmotronn Gizmotronn added Data Manipulation Created by Linear-GitHub Sync Generative Data Created by Linear-GitHub Sync Low priority Created by Linear-GitHub Sync Migration Created by Linear-GitHub Sync Static data Created by Linear-GitHub Sync Sytizen-Repo Created by Linear-GitHub Sync Unity Created by Linear-GitHub Sync User Data Created by Linear-GitHub Sync Urgent Created by Linear-GitHub Sync and removed Low priority Created by Linear-GitHub Sync labels Feb 25, 2023
@Gizmotronn Gizmotronn changed the title [STA-31] Claim anomalies & return stats πŸŒŒπŸ€– ↝ [STA-31] Claim anomalies & return stats Feb 25, 2023
Gizmotronn added a commit that referenced this issue Mar 17, 2023
…28, generating planet images and prepping to upload them to IPFS/supa for #18 for planet pages in #16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Data Manipulation Created by Linear-GitHub Sync Generative Data Created by Linear-GitHub Sync Migration Created by Linear-GitHub Sync Static data Created by Linear-GitHub Sync Sytizen-Repo Created by Linear-GitHub Sync Unity Created by Linear-GitHub Sync Urgent Created by Linear-GitHub Sync User Data Created by Linear-GitHub Sync
Projects
Status: No status
Status: No status
Status: No status
Status: No status
Development

No branches or pull requests

1 participant