Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,078 changes: 0 additions & 1,078 deletions crates/contracts/artifacts/ILiquoriceSettlement.json

This file was deleted.

1 change: 1 addition & 0 deletions crates/contracts/artifacts/LiquoriceSettlement.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion crates/contracts/src/alloy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ crate::bindings!(
);

crate::bindings!(
ILiquoriceSettlement,
LiquoriceSettlement,
crate::deployments! {
// <https://liquorice.gitbook.io/liquorice-docs/links/smart-contracts>
MAINNET => address!("0x0448633eb8B0A42EfED924C42069E0DcF08fb552"),
Expand Down
2 changes: 1 addition & 1 deletion crates/contracts/src/bin/vendor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ fn run() -> Result<()> {
"Manually vendored ABI and bytecode for hooks trampoline contract",
)
.manual(
"ILiquoriceSettlement",
"LiquoriceSettlement",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the replacement between the interface and the contract?

Copy link
Contributor Author

@markin-io markin-io Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of the hashSingleOrder function of the contract that used in the e2e test.
The function is not available in the interface since it belongs to the Signing contract that only LiquoriceSettlement extends.

"Liquorice does not publish its code",
)
.npm(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use {
alloy::primitives::Address,
anyhow::{Context, Result, anyhow},
chrono::Utc,
contracts::alloy::ILiquoriceSettlement,
contracts::alloy::LiquoriceSettlement,
};

const NOTIFICATION_SOURCE: &str = "cow_protocol";
Expand All @@ -40,7 +40,7 @@ impl Notifier {
chain: chain::Chain,
) -> Result<Self> {
let liquorice_settlement_contract_address =
ILiquoriceSettlement::deployment_address(&chain.id())
LiquoriceSettlement::deployment_address(&chain.id())
.ok_or(anyhow!("Liquorice settlement contract not found"))?;

Ok(Self {
Expand Down Expand Up @@ -85,11 +85,11 @@ impl LiquiditySourceNotifying for Notifier {
mod utils {
use {
crate::domain::{
competition::{solution, solution::Settlement},
competition::solution::{self, Settlement},
eth,
},
alloy::{primitives::Address, sol_types::SolCall},
contracts::alloy::ILiquoriceSettlement,
contracts::alloy::LiquoriceSettlement,
ethrpc::alloy::conversions::IntoAlloy,
std::collections::HashSet,
};
Expand Down Expand Up @@ -150,7 +150,7 @@ mod utils {
}

// Decode the calldata using the Liquorice settlement contract ABI
let input = ILiquoriceSettlement::ILiquoriceSettlement::settleSingleCall::abi_decode(
let input = LiquoriceSettlement::LiquoriceSettlement::settleSingleCall::abi_decode(
&interaction.call_data.0,
)
.ok()?;
Expand Down
2 changes: 1 addition & 1 deletion crates/e2e/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2024"
license = "MIT OR Apache-2.0"

[dependencies]
alloy = { workspace = true, default-features = false, features = ["json-rpc", "providers", "rpc-client", "rpc-types", "transports", "reqwest", "signers", "signer-local", "signer-mnemonic"] }
alloy = { workspace = true, default-features = false, features = ["json-rpc", "providers", "rpc-client", "rpc-types", "transports", "reqwest", "signers", "signer-local", "signer-mnemonic", "sol-types"] }
app-data = { workspace = true }
anyhow = { workspace = true }
autopilot = { workspace = true }
Expand Down
1 change: 0 additions & 1 deletion crates/e2e/src/api/liquorice/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
pub mod onchain;
pub mod server;
227 changes: 0 additions & 227 deletions crates/e2e/src/api/liquorice/onchain.rs

This file was deleted.

Loading
Loading