-
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
add new repo structure #2
Conversation
5b60086
to
9b852ce
Compare
9b852ce
to
bfc594f
Compare
f2859b7
to
6af0426
Compare
e3dd4e7
to
e21122d
Compare
06c9abf
to
89c7114
Compare
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.
lgtm!
cow_py/core/__init__.py
Outdated
@@ -0,0 +1,4 @@ | |||
from cow_py.core import constants, cow_error, abis, chains, config |
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.
would use the same name of the ts package (common)
cow_py/core/chains/__init__.py
Outdated
CHAIN_SCANNER_MAP = { | ||
Chain.MAINNET: "https://etherscan.io", | ||
Chain.GNOSIS: "https://gnosisscan.io", | ||
Chain.SEPOLIA: "https://sepolia.etherscan.io/", | ||
} |
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.
i don't think that we will need this
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.
I'll leave it here for now though
@@ -1,4 +1,5 @@ | |||
# cow-py | |||
|
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 was made by the formatter?
cow_py/core/constants.py
Outdated
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.
FYI, on this, I think we would at some stage want to change the upstream cow-sdk to have contracts
as a module within, so you could have:
- contracts module
- within the contracts module, the abi.
So all consumers of the cow-py don't have to worry about ABI encoding etc (ie. shouldn't have to touch it at all, and the SDK can do it for them).
I won't hold up the merge on this, and happy for you to roll forward 🛼
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.
agreed! Just sent a commit with those changes 😄
closes #3