Skip to content

Conversation

@lgahdl
Copy link

@lgahdl lgahdl commented Dec 19, 2025

First commit, migrating the offline mode from the forked bleu-services to this repository;
Includes:

  • 5 tokens (USDT, USDC, DAI, WETH and GNO);
  • Uniswap V2;
  • Cow Protocol Core;
  • Cow Protocol Auxiliary contracts (HooksTrampoline, Signatures, Balances and CowShed)
  • Coingecko Mocked API

Improvements:

  • Deployment addresses are the same from mainnet;
  • Chain ID 1;
  • Modular deployment scripts;

Missing from Milestone 2:

  • ComposableCow;

How to test:

  • Run docker-compose up -d;
  • Wait for everything to build (orderbook sometimes takes very long for the first build, be patient);
  • Run npm run test:order -- --sellToken WETH --buyToken DAI --sellAmount 0.1e18 --from 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 --surplus 10 (You can set any token symbol from the 5 available);
  • Run npm run test:cowshed to test the permissioned hooks;

Luiz Gustavo Abou Hatem de Liz and others added 10 commits December 18, 2025 16:31
… Uniswap V2, Mocked Balancer Vault, Cow Protocol Core and Auxiliary contracts and Cow Shed;
… necessary;

chore: replacing the local hooks-trampoline folder by a submodule;
chore: moving the SetBlockNumber solidity script to the contracts/script instead of scripts/deploy, since it's a solidity file, not a TS;
fix: using public rpc from environment variables;
refactor: getting weth bytecode from mainnet instead of hardcoded;
@lgahdl lgahdl requested a review from mfw78 December 19, 2025 18:52
@lgahdl lgahdl self-assigned this Jan 6, 2026
Comment on lines +20 to +22
const uniswapDeployer = '0x9C33eaCc2F50E39940D3AfaF2c7B8246B681A374';
const mainnetFactory = '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f';
const mainnetRouter = '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D';

Choose a reason for hiding this comment

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

just for clarity #would leave static addresses as UPPERCASE_CONSTANTS outside of fn definitions

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