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.
As part of #8426, add a new index for contracts.
This will require implementations for:
This will index all contract deployments. At a minimum, capture
Expected endpoints:
GET /experimental/v1/contracts- list all contracts using latest deployment idGET /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.