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

Function insert_interactions

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

Source from the content-addressed store, hash-verified

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

Callers 1

insert_orderFunction · 0.85

Calls 1

insert_interactionFunction · 0.85

Tested by

no test coverage detected