As we decided, we want the database crate to be able to follow the shard layout from nearcore.
The NEAR Protocol has always up-to-date shard layout in the ProtocolConfigView, so it's better to rely on that. Also, it's not changing frequently and definitely this is not happening unnoticed.
### Tasks
- [ ] `database` crate to follow the shard layout from `nearcore`
- [ ] Adopt new design by `state-indexer`
- [ ] Adopt new design by `tx-indexer`
- [ ] Adopt new design by `rpc-server`
As we decided, we want the
database
crate to be able to follow the shard layout fromnearcore
.The NEAR Protocol has always up-to-date shard layout in the
ProtocolConfigView
, so it's better to rely on that. Also, it's not changing frequently and definitely this is not happening unnoticed.