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

Multisig: Implement the indexer #607

Closed
Braqzen opened this issue Mar 24, 2023 · 1 comment
Closed

Multisig: Implement the indexer #607

Braqzen opened this issue Mar 24, 2023 · 1 comment
Labels
App: Multisig 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 24, 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/multisig.manifest.yaml>")]
mod multisig_index {
    fn index_cancel_event(event: CancelEvent, block: BlockData) { ... }

    fn index_execute_event(event: ExecutedEvent, block: BlockData) { ... }

    // more events below
}

Each type in graphql should have a required field.

Certain event fields would benefit from the @indexed directive.

  • CancelEvent
    • user
  • ExecutedEvent
    • to
    • value
  • SetWeightEvent
    • user
  • TransferEvent
    • asset_id
    • to
    • value

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.

@Braqzen Braqzen added New Feature New addition that does not currently exist App: Multisig Label used to filter for the app issue labels Mar 24, 2023
@bitzoic
Copy link
Member

bitzoic commented Feb 21, 2024

Closing in favor of #605

@bitzoic bitzoic closed this as completed Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App: Multisig 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

2 participants