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

Method encode

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

Source from the content-addressed store, hash-verified

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

Callers 1

encode_interactionsFunction · 0.45

Calls 1

as_sliceMethod · 0.80

Tested by

no test coverage detected