Reorganize serai-client

Instead of functions taking a block hash, has a scope to a block hash before
functions can be called.

Separates functions by pallets.
This commit is contained in:
Luke Parker
2023-10-14 02:47:58 -04:00
parent 96cc5d0157
commit cb61c9052a
13 changed files with 384 additions and 365 deletions

View File

@@ -60,7 +60,7 @@ macro_rules! serai_test {
tokio::time::sleep(Duration::from_secs(1)).await;
}
let serai = serai().await;
while serai.get_latest_block_hash().await.is_err() {
while serai.latest_block_hash().await.is_err() {
tokio::time::sleep(Duration::from_secs(1)).await;
}
// TODO: https://github.com/serai-dex/serai/247