Conversation
… 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;
Feat/offline mode first commit
fix: fixing cowshed order test;
…al twap orders being settled; wip: missing stop loss and good-after-time functional tests;
feat: Improving the twap test; feat: Completed Stop loss test: note: The good-after-time test will not be able to be executed, is missing a solver specialized in conditional orders that is not part of the scope.
fix: Fixing enumeration of steps;
…g package.json accordingly; feat: Creating jest setup with limit and market order tests.
refactor: Changing the oracle mock to return up to date prices always;
…ogrammatic-orders' into luizhatem/cow-579-add-a-balancesjson-file-to-configure-initial-pairs-and-users
…initial-pairs-and-users' into luizhatem/cow-556-create-e2e-tests-for-limit-and-market-orders # Conflicts: # scripts/orders/composable-cow/good-after-time.ts
…-orders' into luizhatem/cow-557-create-e2e-tests-for-composablecow-conditional-orders
fix: increasing time for limit order; chore: Increasing the balances of the users and pool liquidity; fix: Changing WETH using testERC20Bytecode to be able to mint tokens.
fix: Adding hooks contract address to the orderbook;
…ntracts-for-programmatic-orders # Conflicts: # scripts/deploy/04-deploy-auxiliary.ts
chore: Applying changes from code review to make the readability better;
…ogrammatic-orders' into luizhatem/cow-579-add-a-balancesjson-file-to-configure-initial-pairs-and-users # Conflicts: # scripts/deploy-all.ts # scripts/deploy/02-deploy-tokens.ts # scripts/deploy/04-deploy-cow-protocol.ts # scripts/deploy/06-add-liquidity.ts
…posablecow-contracts-for-programmatic-orders feat: Deploying the composable cow with working twap tests, condition…
…ncesjson-file-to-configure-initial-pairs-and-users feat: Adding configuration file for balances;
Testing FeedbackAttempted to run the environment on Linux x86_64 (kernel 6.18.5) and encountered an error loading the Anvil state: The chain container fails to start as a result. Happy to re-test once this is addressed. |
|
Additionally, when testing, I just followed the readme. Note that this didn't work from a first initial clone of the repository, as I by default cloned the repository within automatically pulling in submodules, and so this resulted in |
|
Hey @mfw78 , Thanks for your feedback, I'm sorry to hear that failed in your machine, I will try to replicate your environment here and investigate this problem right now. Everything I find I'll put on the README.md, I was really expecting that only cloning the repository normally and running |
…oundry version; fix: Adjusting the dockerfile to install make, necessary for cargo compilation; chore: Adding steps into README.md.
|
Hi @mfw78 , I ran the project in a Ubuntu x86_64 machine, found and fixed some issues and updated the README.md:
Can you try run the project in your machine again? Let me know if you still have any trouble. |
…l need adaptations on the snapshot feature though.
chore: joining configs and config folder into config; chore: Add npm install —legacy-peer-deps step on readme.md; feat: Add configuration for the native token on balances.json (ETH) fix: Balances.json is not working for amounts greater than the initial supply.
fix: Deploying WETH9 instead of test address, to fix wrap/unwrap; fix: Fixing the frontend environment variables;
feat: Adding balance for the anvil #0 test wallet;
|
OK, further to the above, it seems that if the user's previous / current ie. the issue that I had is I just used my previous |
|
On the most recent try with the above fix (I checked the diff on the [+] up 17/17
✔ Network offline-mode-review_default Created 0.1ss
✔ Container offline-mode-review-tempo-1 Created 0.4ss
✔ Container offline-mode-review-chain-deployer-1 Healthy 7.5ss
✔ Container offline-mode-review-frontend-1 Created 0.4ss
✔ Container offline-mode-review-explorer-1 Created 0.4ss
✔ Container offline-mode-review-db-1 Created 0.4ss
✔ Container offline-mode-review-prometheus-1 Created 0.5ss
✔ Container offline-mode-review-grafana-1 Created 0.4ss
✔ Container offline-mode-review-adminer-1 Created 0.2ss
✔ Container offline-mode-review-db-migrations-1 Created 0.2ss
✔ Container offline-mode-review-chain-1 Healthy 12.0s
✔ Container offline-mode-review-coingecko-mock-1 Created 0.2ss
✔ Container offline-mode-review-driver-1 Created 0.2ss
✔ Container offline-mode-review-baseline-1 Created 0.2ss
✔ Container offline-mode-review-orderbook-1 Created 0.1ss
✔ Container offline-mode-review-watch-tower-1 Created 0.2ss
✔ Container offline-mode-review-autopilot-1 Created 0.2ss
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: exec: "baseline": executable file not found in $PATH |
This is odd, I deleted the images and volumes, started all over again, and was not able to reproduce this error, did you delete the images before running |

This branch has all the 3 milestones proposed on the Grant Application - Offline Mode.
Includes:
Improvements:
¸
How to test:
docker-compose up -d;npm testnpm run order:playground -- --sellToken WETH --buyToken DAI --sellAmount 0.1e18 --from 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 --surplus 10(You can set any token symbol from the 5 available);