docs: Add README and logging to match python package

- The readme is useful for us during development. This should be eventually removed and replaced with gitbook docs.
This commit is contained in:
TAMARA LIPOWSKI
2025-09-03 00:16:32 -04:00
committed by Tamara
parent c89fbee0ae
commit c12affb3ca
6 changed files with 548 additions and 328 deletions

View File

@@ -1,17 +1,15 @@
use tycho_client::rpc::RPCClient;
use std::{collections::HashMap, error::Error as StdError, fmt};
use tracing::info;
use tycho_client::{HttpRPCClient};
use tycho_client::{rpc::RPCClient, HttpRPCClient};
use tycho_common::{
dto::{
Chain, PaginationParams, ProtocolComponent, ProtocolComponentsRequestBody, ResponseAccount,
ResponseProtocolState, StateRequestBody, VersionParam,
ResponseProtocolState, ResponseToken, StateRequestBody, VersionParam,
},
models::token::Token,
Bytes,
};
use tycho_common::dto::ResponseToken;
use tycho_common::models::token::Token;
/// Custom error type for RPC operations
#[derive(Debug)]
@@ -146,7 +144,9 @@ impl TychoClient {
}
(
token_clone.address.clone(),
token_clone.try_into().expect("Failed to convert token"),
token_clone
.try_into()
.expect("Failed to convert token"),
)
})
.collect::<HashMap<_, Token>>();