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

Function insert_interactions

crates/database/src/orders.rs:264–273  ·  view source on GitHub ↗
(
    ex: &mut PgConnection,
    order: &OrderUid,
    interactions: &[Interaction],
)

Source from the content-addressed store, hash-verified

262
263#[instrument(skip_all)]
264pub async fn insert_interactions(
265 ex: &mut PgConnection,
266 order: &OrderUid,
267 interactions: &[Interaction],
268) -> Result<(), sqlx::Error> {
269 for interaction in interactions {
270 insert_interaction(ex, order, interaction).await?;
271 }
272 Ok(())
273}
274
275#[instrument(skip_all)]
276pub async fn insert_interaction(

Callers 1

insert_orderFunction · 0.85

Calls 1

insert_interactionFunction · 0.85

Tested by

no test coverage detected