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

Method write

types/src/account.rs:120–129  ·  view source on GitHub ↗
(&self, buf: &mut impl BufMut)

Source from the content-addressed store, hash-verified

118 status,
119 has_pending_deposit,
120 has_pending_withdrawal,
121 joining_epoch,
122 last_deposit_index,
123 })
124 }
125}
126
127impl Write for ValidatorAccount {
128 fn write(&self, buf: &mut impl BufMut) {
129 buf.put(&self.consensus_public_key.encode()[..]);
130 buf.put(&self.withdrawal_credentials.0[..]);
131 buf.put(&self.balance.to_le_bytes()[..]);
132 buf.put_u8(self.status.to_u8());

Calls 2

putMethod · 0.80
to_u8Method · 0.80