-
Notifications
You must be signed in to change notification settings - Fork 228
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
Extend ERC677BridgeToken contract for xDai-POA
bridge
#129
Conversation
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.
Could you keep ERC677BridgeToken
unchanged? In this case all these changes should be introduced to another contract like RewardableBridgeToken
as so it will inherit functionality of ERC677BridgeToken
?
Thanks for quick response. Another moment - should we extend tests to cover new functionality? |
Done: bc289bd
Yes, it makes sense. We need to extend |
Yes, it is point to start. Then we need to look at scenarios where the new functionality is being used, |
deploy/README.md
Outdated
DEPLOY_REWARDABLE_TOKEN=false | ||
# The address of ValidatorSet contract used by ERC677BridgeTokenRewardable contract. | ||
# Makes sense only when DEPLOY_REWARDABLE_TOKEN=true | ||
VALIDATOR_SET_ADDRESS=0x |
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.
hmm... wait a minute: is this bridge validators or network validators? If they are just for network let's rename the parameter to DPOS_VALIDATOR_SET_ADDRESS
.
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 is the address of ValidatorSet
contract which contains network validators. Ok, I've renamed the param: 47f766b
OK, I'll add the tests a bit later. |
The poa20 tests have been extended: 45a094f |
Merge the changes related to security updates to the master branch
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.
Please resolve merge conflicts. As soon as they are resolved we will merge this PR.
The conflicts have been resolved. |
@varasev sorry. just noticed. please change the target branch to |
Done. |
These changes add
mintReward
,stake
andwithdraw
functions which are used by DPoS contracts (BlockReward
andValidatorSet
).