v0.2.4-pre.002

This commit is contained in:
2026-08-18 20:12:46 +02:00
parent cb19742cf7
commit cf8d79567d
19 changed files with 1869 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-onchain-transport-lib/src/rpc_transactions.rs
// version: 7
// version: 8
/// Binary encoding accepted for serialized transaction input payloads.
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
@@ -838,7 +838,8 @@ pub enum SolanaTransactionVersion {
}
impl SolanaTransactionVersion {
fn decode_wire(method: &str, value: serde_json::Value) -> ksp_core_lib::Result<Self> {
/// Decodes a transaction version from the shared Solana JSON wire representation.
pub(crate) fn decode_wire(method: &str, value: serde_json::Value) -> ksp_core_lib::Result<Self> {
return match value {
serde_json::Value::String(value) if value == "legacy" => std::result::Result::Ok(Self::Legacy),
serde_json::Value::Number(value) => {