-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port order signing code from cow sdk #7
Changes from all commits
1dccb3e
7e7a85e
25db9d4
21fbd4e
7e56f1c
29d1c72
6824ad6
3e55d2a
3422bd1
9addbd8
267636f
b1d1624
00b9272
7f5b556
9a777ed
a57e7b5
2fbd0a5
ba4c40b
bb08020
1862589
0cde14c
bf50b09
00a4c80
078aca1
5714078
b44af2e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
USER_ADDRESS= | ||
PRIVATE_KEY= |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.1.4 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
# Run the formatter. | ||
- id: ruff-format | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.3.7 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
args: [--fix] | ||
# Run the formatter. | ||
- id: ruff-format |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
.PHONY: codegen | ||
.PHONY: codegen web3_codegen orderbook_codegen subgraph_codegen test lint format remove_unused_imports | ||
|
||
codegen: web3_codegen orderbook_codegen subgraph_codegen | ||
|
||
web3_codegen: | ||
poetry run web3_codegen | ||
# web3_codegen: | ||
# poetry run web3_codegen | ||
|
||
orderbook_codegen: | ||
datamodel-codegen --url="https://raw.githubusercontent.com/cowprotocol/services/v2.245.1/crates/orderbook/openapi.yml" --output cow_py/order_book/__generated__/model.py --target-python-version 3.12 --output-model-type pydantic_v2.BaseModel --input-file-type openapi | ||
poetry run datamodel-codegen --url="https://raw.githubusercontent.com/cowprotocol/services/v2.245.1/crates/orderbook/openapi.yml" --output cow_py/order_book/generated/model.py --target-python-version 3.12 --output-model-type pydantic_v2.BaseModel --input-file-type openapi | ||
|
||
subgraph_codegen: | ||
ariadne-codegen | ||
poetry run ariadne-codegen | ||
|
||
test: | ||
pytest -s | ||
poetry run pytest -s | ||
|
||
lint: | ||
ruff check . --fix | ||
poetry run ruff check . --fix | ||
|
||
format: | ||
ruff format | ||
format: remove_unused_imports | ||
poetry run ruff format | ||
|
||
remove_unused_imports: | ||
poetry run pycln --all . | ||
|
||
typecheck: | ||
poetry run pyright |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from .abi_handler import ABIHandler | ||
|
||
__all__ = [ | ||
"ABIHandler", | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this shouldn't be needed here