Skip to content

[Access] Add contracts index #8431

@peterargue

Description

@peterargue

As part of #8426, add a new index for contracts.

This will require implementations for:

  • Storage
  • Indexer
  • Backend
  • REST api
  • GRPC api

This will index all contract deployments. At a minimum, capture

  • Contract identifier
  • Block height
  • Transaction id
  • Contract code

Expected endpoints:

  • GET /experimental/v1/contracts - list all contracts using latest deployment id
  • GET /experimental/v1/contracts/{identifier} - get the latest deployment of a contract by identifier (e.g. A.1234567890.MyContract)

Getting a contract by identifier will include a list of deployments for the contract.
There will then be an optional filter parameter to specify the deployment height. If unset, it will return the latest deployment.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions