Skip to content
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

Use interface supporting pyethereum #628

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ pysha3
git+https://github.com/LefterisJP/pyethapp@raiden_pyethapp_fork#egg=pyethapp
# temporary until pystun creates a new release
git+https://github.com/konradkonrad/pystun@develop#egg=pystun
# temporary until new version of pyethereum is released, that supports interfaces
git+https://github.com/LefterisJP/pyethereum@take_solidity_interface_into_account#egg=ethereum
ipython<5.0.0
rlp>=0.4.3
coincurve==4.5.1
pycryptodome>=3.4.3
miniupnpc
networkx
ethereum>=1.6.1
ethereum-serpent
repoze.lru
gevent-websocket==0.9.4
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def run(self):

install_requires_replacements = {
"git+https://github.com/LefterisJP/pyethapp@raiden_pyethapp_fork#egg=pyethapp": "pyethapp",
"git+https://github.com/LefterisJP/pyethereum@take_solidity_interface_into_account#egg=ethereum": "ethereum",
"git+https://github.com/LefterisJP/pyelliptic@make_compatible_with_openssl1_1#egg=pyelliptic": "pyelliptic",
"git+https://github.com/konradkonrad/pystun@develop#egg=pystun": "pystun",
}
Expand Down
15 changes: 8 additions & 7 deletions tools/create_compilation_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,7 @@ def deploy_all(token_groups=None):
tokens[token_name] = address
deployed[token_name] = address

deployed.update(
deploy_with_dependencies(
TARGETS['token'],
state
)
)
libraries = deployed.copy()
libraries = dict()
deployed.update(
deploy_with_dependencies(
TARGETS['registry'],
Expand Down Expand Up @@ -202,6 +196,13 @@ def find_dependencies(contract_file):
for dependency in dependencies:
if dependency not in cleaned:
cleaned.append(dependency)
dependencies = cleaned
cleaned = []
for dependency in dependencies:
with open(get_contract_path(dependency)) as handler:
if any(line.startswith('interface') for line in handler.readlines()):
continue
cleaned.append(dependency)
return cleaned


Expand Down