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

Function encode_interactions

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 3

collectMethod · 0.80
into_iterMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected