tape-rpc-client 0.4.7
“RPC client for Tapedrive on-chain program queries”
Cargo name references API hashingBasename is uppercase README.md
SHA-256378238688bbb530945fc55692338768a49b8fd324a253c3f2345c3ae29d2ff11
MaleculeH₂(Cm₂Os)Md(Pa)
Evidence
1//! One-off debug dump for the epoch 81 stall (2026-07-07).
2//! Usage: cargo run --release -p tape-rpc-client --example epoch_debug
3
4use tape_rpc_client::RpcClient;
5use tape_rpc_solana::RpcConfig;
6use tape_core::types::EpochNumber;
7use tape_crypto::address::Address;
8
9#[tokio::main]
10async fn main() -> anyhow::Result<()> {
11 let config = RpcConfig {
12 endpoints: vec!["https://api.devnet.solana.com".to_string()],
13 ..Default::default()
14 };
15 let client = RpcClient::new(config)?;
16
17 let system = client.get_syste …
51:26… size = std::mem::size_of::<System>() + 8; // +8 for discriminator
52 if account.data.len() < expected_size {
53 return Err(RpcError::Deserialization(format!(
54 "System account too small: {} bytes (expected {})",
55 account.data.len(),
56 expected_size
57 ) …
877:58… to_string()))?;
878
879 Ok((header, entries[..count].to_vec()))
880}
881
882#[cfg(test)]
883mod tests {
884 use super::*;
885 use bytemuck::Zeroable;
886 use rpc_litesvm::LiteSvmRpc;
887 use tape_api::program::tapedrive::{self, peer_set_pda};
888 use tape_core::bls::BlsPrivateKey;
889 use tape_core::types::{StorageUnits, Tail};
890 use tape_core::types::coin::TAPE;
891
892 fn client() -> RpcClient<LiteSvmRpc> {
893 RpcClient::from_rpc(LiteSvmRpc::new())
894 …
898:3… bytes[0] = byte;
899 Address::new(bytes)
900 }
901
902 #[tokio::test]
903 async fn committee_returns_active_members_only() {
904 let client = client();
905 let epoch = EpochNumber(7);
615:8… .saturating_mul(count)
616 .min(MAX_COMPUTE_UNIT_LIMIT)
617}
618
619#[cfg(test)]
620mod tests {
621 use std::str::FromStr;
622 use std::time::Duration;
623
624 use super::*;
625 use tape_rpc_solana::RpcConfig;
626 use solana_client::nonblocking::rpc_client::RpcClient as SolanaRpcClient;
627 use solana_keypair::Keypair as SolanaKeypair;
628 use solana_pubkey::Pubkey;
629 use solana_system_interface::instruction as system_instruction;
630 use tape_crypto::ed25519::Keypair;
631
632 const LOCAL_VALIDATOR: &str = "http://127.0.0.1:8899";
633 const MEMO_PROGRAM: &str = "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr";
634
635 // The memo program spends nearly the whole compute ceiling on a payload
636 // this size, so these sends run at MAX_COM …
Showing the top 5 files — 2 more files (31 regions) not shown.
No evidence locations were recorded for this file. Raw result