MCPcopy Create free account
hub / github.com/cowprotocol/services / encode

Method encode

crates/simulator/src/encoding.rs:233–239  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

231
232impl InteractionEncoding for Interaction {
233 fn encode(&self) -> EncodedInteraction {
234 (
235 self.target,
236 self.value,
237 Bytes::copy_from_slice(self.data.as_slice()),
238 )
239 }
240}
241
242impl InteractionEncoding for InteractionData {

Callers 1

encode_interactionsFunction · 0.45

Calls 1

as_sliceMethod · 0.80

Tested by

no test coverage detected