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

Launchpad Indexer & Backend #417

Open
21 tasks
MSghais opened this issue Jan 4, 2025 · 11 comments
Open
21 tasks

Launchpad Indexer & Backend #417

MSghais opened this issue Jan 4, 2025 · 11 comments
Labels
backend enhancement New feature or request features Build new features fix Let's fix this and move forward indexer Medium level Medium Level ODBoost ODBoost test Testing for developers and contributors/users urgent Urgent! Let's go

Comments

@MSghais
Copy link
Member

MSghais commented Jan 4, 2025

Description

Indexer : apps/nestjs-indexer for indexer and saved in DB
and packages/indexer-prisma for the schema prisma

Error indexer:

Image

Backend endpoints to render data:
apps/backend

  • Add to schema token_launch attrs: threshold_liquidity as a String?

  • To finish UI:

  • Add a claimed button when is_liq_raised.

  • Slider remain to buy in quote amount:
    when threshold_liq ok in backend: add a slide/step for the liq raised to threshold (how many percent done or remain before launch)

Indexer:

  • Check calcul after sell: total_token_holded looks and share_user.amount_owned having an issue
    -[ ] Fix CreateLaunch indexer and token_launch model: add Threshold liquidity and Bonding type required in the launch model and to display in the UI

  • better total price calculation: based on init_supply and liq_raised to get the price at a point of time (after each buy or sell)

  • indexer: token-launch.indexer.ts, add the threshold_liquidity and bonding_type in the model and saved it

  • token-launch.indexer.ts : Fix owner_address

  • indexer: liquidity-added.indexer.ts: uncomment the code of tx check (not useful) and fix the indexer to add is_liquidity_raised

  • Summary of TODO by Event of indexer:

  • CreateToken:

  • Threshold to add in model

  • Add correct bonding curve string based on enum number: 0 Linear, 1 Exponential

  • Buy and Sell:

  • Verify amount owned by user at each buy and sell.

  • check total amount holded

  • [ ]add init pool supply

  • [ ]check liquidity raised value= can't be negative

  • LiquidityAdded to LiquidityCreated:

  • Change the LiquidityCreated

  • Change the boolean of token_launch of is_liq_raised to true

  • Batch call all of share user to claim_coin_for_friend so user don't need to do it

  • create indexer: claim-token.indexer.ts: TokenClaimed event, check the amount and the user and update the share_user with amount claimed and amount_owned and if it's still claimable

  • Check holders endpoints in backend

  • Check if others endpoints of the indexer/backend are ok

  • Cron to maybe claim for user directly after a liquidity launched

ISSUES of negative number:

Image

Bonus:

  • Think, check and do (fixed if needed, add others things if needed, LFG)
  • Graph endpoints based on buy and sell (price can be calculate using bonding curve, the liq raised
@MSghais MSghais added enhancement New feature or request features Build new features fix Let's fix this and move forward backend urgent Urgent! Let's go test Testing for developers and contributors/users indexer labels Jan 4, 2025
@ooochoche
Copy link

Can I be assigned to this issue?

@MSghais
Copy link
Member Author

MSghais commented Jan 4, 2025

Can I be assigned to this issue?

Do you have an ETA? What's your skills in Typescript etc? Ping me on TG

@ooochoche
Copy link

48hrs

@MSghais MSghais added ODBoost ODBoost Medium level Medium Level labels Jan 21, 2025
@MrRoudyk
Copy link

Mind if I take this issue?

@TheRanomial
Copy link
Contributor

Could I be assigned to this?

@ekumamatthew
Copy link

Mind if I try this one?

@caxtonacollins
Copy link

Is it okay if I take this?

@Akshola00
Copy link

Can I take care of this issue?

@TobieTom
Copy link

TobieTom commented Feb 2, 2025

Could I take over this issue? I am currently new but already have experience from a Starknet Jigsaw Puzzle game and would love to add this to my experience on starknet chain

@MSghais
Copy link
Member Author

MSghais commented Feb 3, 2025

Everyone, add yours skills, experiences, an ETA to complete the issue.

Let's discuss in Telegram about it

@TheRanomial
Copy link
Contributor

Mind if i take this one @MSghais ETA-48 hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend enhancement New feature or request features Build new features fix Let's fix this and move forward indexer Medium level Medium Level ODBoost ODBoost test Testing for developers and contributors/users urgent Urgent! Let's go
Projects
None yet
Development

No branches or pull requests

8 participants