near / read-rpc

Read-only NEAR RPC centralized-like performant solution
16 stars 4 forks source link

Improve or refactor the database crate to respect and follow the shard layout from `nearcore` #289

Open khorolets opened 3 days ago

khorolets commented 3 days ago

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`