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

Golang Backend and Indexer #418

Open
5 tasks
MSghais opened this issue Jan 4, 2025 · 8 comments
Open
5 tasks

Golang Backend and Indexer #418

MSghais opened this issue Jan 4, 2025 · 8 comments
Assignees
Labels
backend enhancement New feature or request features Build new features indexer Medium level Medium Level ODBoost ODBoost test Testing for developers and contributors/users

Comments

@MSghais
Copy link
Member

MSghais commented Jan 4, 2025

Description

Update indexer of Pixel with the new features located in art_peace.cairo :

  • ShieldPixel
  • Add the Shield event
  • Saved in db the Shield

#[derive(Drop, starknet::Event)]
pub struct PixelShieldPlaced {
#[key]
pub placed_by: ContractAddress,
#[key]
pub pos: u128,
pub shield_type: PixelShieldType,
pub amount_paid: u256,
}

  • Add the pixel metadata event
  • Create the endpoints and saved the PixelMetadata

PixelMetadata Event:
#[derive(Drop, starknet::Event)]
pub struct PixelMetadataPlaced {
#[key]
pub placed_by: ContractAddress,
#[key]
pub pos: u128,
#[key]
pub day: u32,
pub color: u8,
pub metadata: MetadataPixel,
}

#[derive(Drop, Serde, starknet::Store, Clone)]
pub struct MetadataPixel {
pub pos: u128,
// Color index in the palette
pub ipfs: ByteArray,
pub nostr_event_id: u256,
pub owner: starknet::ContractAddress,
pub contract: starknet::ContractAddress,
}

@MSghais MSghais added enhancement New feature or request features Build new features backend test Testing for developers and contributors/users indexer labels Jan 4, 2025
@MSghais MSghais added ODBoost ODBoost Medium level Medium Level labels Jan 21, 2025
@TheRanomial
Copy link

Can I start working on this?I have vast expertise in golang and have contributed in go projects like DiceDB.

@MSghais
Copy link
Member Author

MSghais commented Jan 23, 2025

Can I start working on this?I have vast expertise in golang and have contributed in go projects like DiceDB.

Gm ping me on Telegram please. Do you have an ETA?

@TheRanomial
Copy link

TheRanomial commented Jan 23, 2025

I can complete this in 24-30 hours.I am not able to find your telegram on od website . It’s saying user does not exist.Can you provide it to me. My telegram is @himanshu433

@sonkeydotcom
Copy link

I'd be happy to do this.

@MrRoudyk
Copy link

MrRoudyk commented Jan 24, 2025

Hi! I can implement the pixel shield and metadata features. Here's my plan:

ETA: 15-18 hours

  • Study existing codebase patterns
  • Add DB tables + indexer handlers
  • Add API endpoints + testing

Main tasks:

  1. Handle new Cairo events (ShieldPixel, PixelMetadata)
  2. Store shield/metadata in Postgres
  3. Create endpoints to access the data

I'm experienced with backend/DB work but will need some time to get familiar with Go/Cairo specifics. Already reviewed pixel.go and understand the event processing patterns

@olisaagbafor
Copy link

Can I work on this, please?

@Verifieddanny
Copy link

Can I tackle this one?

@TheRanomial
Copy link

PR #438

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 indexer Medium level Medium Level ODBoost ODBoost test Testing for developers and contributors/users
Projects
None yet
Development

No branches or pull requests

6 participants