Skip to content

Conversation

@lgahdl
Copy link

@lgahdl lgahdl commented Nov 12, 2025

Description

Creation of the PoC for the Cowswap offline mode;

Changes

  • Chain with persistent state (poc-offline-mode/state/poc-state.json);
  • Deployment scripts for the basic cow swap contracts, uniswap v2, balancer vault mock;
  • A script to test the offline environment;

How to test

  1. go to playground folder and run docker-compose -f docker-compose.offline.yml up -d
  2. run the test_playground_offline_cow.sh
  3. Check the logs
    -->

Comment on lines +2 to +10
pragma solidity ^0.8.17;

IVault constant VAULT = IVault(0xBA12222222228d8Ba445958a75a0704d566BF2C8);

/// @title CoW protocol settlement contract interface
interface IVault {
function hasApprovedRelayer(address user, address relayer) external view returns (bool);
function getInternalBalance(address user, address[] calldata tokens) external view returns (uint256[] memory);
}

Choose a reason for hiding this comment

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

isn't easier to import this from a submodule?

Copy link
Author

Choose a reason for hiding this comment

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

This interface was create for the mock of the GPv2TradeSimulator, so we will not be able to import it for now, but I will fix this in the COW-566

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants