Skip to content

Indexing new providers contracts #23

Description

@brunomenezes

📄 Context

An original PR on Sunodo has an implementation for indexing new provider contracts. However, we have a lot of commonalities, and the API could index such contracts.

✔️ Solution

Add the implementation of said contracts for indexing (use original PR as a reference). Also, consider the entity diagram below for implementation.

Entity diagram

image

New contracts (ABI) and events of interest:

  • AuthorityFactory
    • AuthorityCreated (topic)
  • ValidatorNodeProvider
    • MachineLocation (topic)
    • FinancialRunway (topic)
    • Paused (topic)
    • Unpaused (topic)
  • Marketplace
    • ValidatorNodeProviderCreated (topic)

New Entities:

  • Authority
  • ValidatorNodeProvider
  • ValidatorNode

📈 Subtasks

  • Add new contract ABIs.
  • Add new Entities to graphQL schema.
  • Generate new migrations.
  • Add new handlers for topics of interest.
  • Add preloaders for Marketplace to store ValidatorNodeProvider addresses
  • Add test cases.

🎯 Definition of Done

  • Can successfully index the AuthorityFactory, Marketplace and ValidatorNodeProvider contract events.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: FeatureAdd a new feature to the system

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions