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

Remove dependency on 'solc' from build process #77

Open
akolotov opened this issue May 8, 2018 · 9 comments
Open

Remove dependency on 'solc' from build process #77

akolotov opened this issue May 8, 2018 · 9 comments

Comments

@akolotov
Copy link
Contributor

akolotov commented May 8, 2018

Since bridge contracts are in separate project just now and deployed separately, 'solc' is not needed as dependency for the bridge.

@yrashk
Copy link
Contributor

yrashk commented May 9, 2018

Bridge relies on these contracts to generate calls, transactions and event filters, so I don't think it's reasonable to drop this dependency at this moment. What will happen after we're done transitioning integration tests is that we can replace contracts in this project with interfaces from actual contracts to keep things leaner inside. But we'll still need solc.

@rstormsf
Copy link
Contributor

rstormsf commented May 9, 2018

maybe you only need ABIs ?
those are just JSON files.
Just get latest ABIs or I can provide it to you and that should be it.
I don't think you need solc in order to get it. solc is only used to produce bytecode and ABIs

@rstormsf
Copy link
Contributor

rstormsf commented May 9, 2018

@akolotov
Copy link
Contributor Author

akolotov commented May 9, 2018

Agree with Roman. I think you could use git submodules to link to repos: poa-bridge and poa-parity-bridge-contracts.

@yrashk
Copy link
Contributor

yrashk commented May 9, 2018

Yes, ABI will do if we want to get rid of solc dependency. They will just make it a tad harder to synchronize between sub-projects (instead of copying files, we'd need to use solc to compile them to .abi every time we sync). If we're willing to compromise here, then sure. Ideally, interfaces should not change too often.

@akolotov poa-parity-bridge-contracts doesn't seem to contain ABIs as is.

@rstormsf
Copy link
Contributor

rstormsf commented May 9, 2018

Correct, those are artifacts, which I already provided in the gist above

@akolotov
Copy link
Contributor Author

akolotov commented May 9, 2018

OK. Let's take ABI's from poa-parity-bridge-contracts and will update them in poa-bridge as soon as interfaces are being changed. Since interfaces changes will require changes on Rust side anyway it seems to be logical to follow this procedure.

@yrashk
Copy link
Contributor

yrashk commented May 9, 2018

As per @rstormsf it might be better to store those in https://github.com/poanetwork/poa-chain-spec

@akolotov
Copy link
Contributor Author

Created omni/tokenbridge-contracts#38 to upload ABIs to specification repo

noot pushed a commit to noot/poa-bridge that referenced this issue Jul 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants