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

(Question) Are the deployed contracts versioned? #189

Closed
afck opened this issue Sep 19, 2018 · 3 comments
Closed

(Question) Are the deployed contracts versioned? #189

afck opened this issue Sep 19, 2018 · 3 comments

Comments

@afck
Copy link

afck commented Sep 19, 2018

I'm trying to make poa-ballot-stats handle multiple contract versions, since it needs to be able to evaluate the network's full history, across all hard forks and contract updates.

Are there any official version numbers or identifiers to refer to the different contracts that were deployed in sokol and core? What's the best way to find out what was deployed when in both networks? Does that correspond exactly to the commits in poa-chain-spec's sokol and core branches whose commit message contains the words "hard fork"?

@varasev
Copy link
Contributor

varasev commented Sep 19, 2018

Yes, you could find and use all the versions of contracts (their addresses and ABIs) in poa-chain-spec repo.

For now, we have four versions in Sokol: https://github.com/poanetwork/poa-chain-spec/blob/sokol/spec.json#L12-L23

The addresses and ABIs of all consensus contracts are stored in poa-chain-spec's commit history.

I think it's better to find corresponding PRs here: https://github.com/poanetwork/poa-chain-spec/pulls

The dates of HFs from Wiki may be helpful: https://github.com/poanetwork/wiki/wiki

image

@varasev
Copy link
Contributor

varasev commented Sep 19, 2018

The exact tree for deployed smart contracts in today's HF for Sokol: https://github.com/poanetwork/poa-network-consensus-contracts/tree/6c2c7798394ed14abcfb53fe9ce6269cd83630ff

@afck
Copy link
Author

afck commented Sep 19, 2018

Perfect, thank you for the quick reply!

@afck afck closed this as completed Sep 19, 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

2 participants