Skip to content

Conversation

@rstormsf
Copy link

This change requires changes in ansible deployment scripts:
https://github.com/poanetwork/deployment-playbooks/search?utf8=%E2%9C%93&q=SCRIPTS_VALIDATOR_BRANCH&type=

If we agree on this approach, lets merge this PR and then make a change in deployment playbooks


function retrievePayoutKey(miningKey, cb) {
var contractAddress = config.Ethereum.contracts.KeysManager.addr;
var contractAddress = config.Ethereum.contracts.KeysManager[network].addr;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe pass contractAddress directly as env variable here? Or, still better

  1. make a .json file in corresponding branch of spec repo with all contract addresses and their abis
  2. in this repository add this file to .gitignore
  3. use this file's data in script
  4. in playbook - download this file from spec repo during installation

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
@vbaranov what do you think?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rstormsf @phahulin I like this solution too with one endpoint for contracts addresses and ABIs from spec repo.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rstormsf I made PR to your branch rstormsf#1 with the change: ABI and contract address from single endpoint: chain-spec repo. If you and @phahulin are ok, let's merge it and then merge current PR. Or let me know if anything wrong.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

3 participants