├── .dockerignore ├── .env.sample ├── .github └── workflows │ ├── cla.yaml │ ├── deploy.yaml │ └── pull-request.yaml ├── .gitignore ├── .pylintrc ├── Dockerfile ├── LICENSE ├── README.md ├── data ├── large_example.json └── small_example.json ├── mypy.ini ├── requirements.txt ├── src ├── __init__.py ├── _server.py ├── models │ ├── __init__.py │ ├── batch_auction.py │ ├── exchange_rate.py │ ├── order.py │ ├── solver_args.py │ ├── token.py │ ├── types.py │ └── uniswap.py └── util │ ├── __init__.py │ ├── constants.py │ ├── enums.py │ ├── exec_plan_coords.py │ ├── numbers.py │ └── schema.py └── tests └── unit └── test_order.py /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/.dockerignore -------------------------------------------------------------------------------- /.env.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/.env.sample -------------------------------------------------------------------------------- /.github/workflows/cla.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/.github/workflows/cla.yaml -------------------------------------------------------------------------------- /.github/workflows/deploy.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/.github/workflows/deploy.yaml -------------------------------------------------------------------------------- /.github/workflows/pull-request.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/.github/workflows/pull-request.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/.gitignore -------------------------------------------------------------------------------- /.pylintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/.pylintrc -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/README.md -------------------------------------------------------------------------------- /data/large_example.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/data/large_example.json -------------------------------------------------------------------------------- /data/small_example.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/data/small_example.json -------------------------------------------------------------------------------- /mypy.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/mypy.ini -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/requirements.txt -------------------------------------------------------------------------------- /src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/_server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/src/_server.py -------------------------------------------------------------------------------- /src/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/models/batch_auction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/src/models/batch_auction.py -------------------------------------------------------------------------------- /src/models/exchange_rate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/src/models/exchange_rate.py -------------------------------------------------------------------------------- /src/models/order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/src/models/order.py -------------------------------------------------------------------------------- /src/models/solver_args.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/src/models/solver_args.py -------------------------------------------------------------------------------- /src/models/token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/src/models/token.py -------------------------------------------------------------------------------- /src/models/types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/src/models/types.py -------------------------------------------------------------------------------- /src/models/uniswap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/src/models/uniswap.py -------------------------------------------------------------------------------- /src/util/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/util/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/src/util/constants.py -------------------------------------------------------------------------------- /src/util/enums.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/src/util/enums.py -------------------------------------------------------------------------------- /src/util/exec_plan_coords.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/src/util/exec_plan_coords.py -------------------------------------------------------------------------------- /src/util/numbers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/src/util/numbers.py -------------------------------------------------------------------------------- /src/util/schema.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/src/util/schema.py -------------------------------------------------------------------------------- /tests/unit/test_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/solver-template-py/HEAD/tests/unit/test_order.py --------------------------------------------------------------------------------