MCPcopy Create free account
hub / github.com/SeismicSystems/summit / write

Method write

types/src/withdrawal.rs:88–96  ·  view source on GitHub ↗
(&self, buf: &mut impl BufMut)

Source from the content-addressed store, hash-verified

86 .try_into()
87 .map_err(|_| "Failed to parse amount")?;
88 let amount = u64::from_le_bytes(amount_bytes);
89
90 // Extract pubkey (32 bytes)
91 let pubkey: [u8; 32] = bytes[44..76]
92 .try_into()
93 .map_err(|_| "Failed to parse pubkey")?;
94
95 // Extract balance_deduction (8 bytes, little-endian u64)
96 let balance_deduction_bytes: [u8; 8] = bytes[76..84]
97 .try_into()
98 .map_err(|_| "Failed to parse balance_deduction")?;
99 let balance_deduction = u64::from_le_bytes(balance_deduction_bytes);

Calls 2

putMethod · 0.80
lenMethod · 0.80