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

Implement the indexer #605

Open
Braqzen opened this issue Mar 21, 2023 · 0 comments
Open

Implement the indexer #605

Braqzen opened this issue Mar 21, 2023 · 0 comments
Labels
App: Escrow Label used to filter for the app issue New Feature New addition that does not currently exist

Comments

@Braqzen
Copy link
Contributor

Braqzen commented Mar 21, 2023

Indexer Guideline

There should be a single wasm module which contains multiple functions, 1 per event. The fn name may follow the pattern index_<event_name>.

E.g.

#[indexer(manifest = "<path/to/file/escrow.manifest.yaml>")]
mod escrow_index {
    fn index_accepted_arbiter_event(event: AcceptedArbiterEvent, block: BlockData) { ... }

    fn index_created_escrow_event(event: CreatedEscrowEvent, block: BlockData) { ... }

    // more events below
}

Each type in graphql should have a required field and use the @indexed directive to allow for easier querying.

From the BlockData we should retrieve the block height and add it to each event so that we have a measure of time for when the event took place.

The indexer should be implemented for the following apps:
[ ] - Escrow
[ ] - AMM
[ ] - Multisig
[ ] - English Auction
[ ] - Airdrop

@Braqzen Braqzen added New Feature New addition that does not currently exist App: Escrow Label used to filter for the app issue labels Mar 21, 2023
@Braqzen Braqzen self-assigned this Mar 21, 2023
@Braqzen Braqzen changed the title Escrow: ownership functionality Escrow: implement the indexer Mar 21, 2023
@bitzoic bitzoic changed the title Escrow: implement the indexer Implement the indexer Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App: Escrow Label used to filter for the app issue New Feature New addition that does not currently exist
Projects
None yet
Development

No branches or pull requests

1 participant