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

Function encode_interactions

crates/simulator/src/encoding.rs:262–269  ·  view source on GitHub ↗
(
    interactions: impl IntoIterator<Item = &'a I>,
)

Source from the content-addressed store, hash-verified

260}
261
262pub fn encode_interactions<'a, I>(
263 interactions: impl IntoIterator<Item = &'a I>,
264) -> Vec<EncodedInteraction>
265where
266 I: InteractionEncoding + 'a,
267{
268 interactions.into_iter().map(|i| i.encode()).collect()
269}
270
271#[derive(Clone, Debug)]
272pub struct WrapperCall {

Callers 1

Calls 3

collectMethod · 0.80
into_iterMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected