-
Notifications
You must be signed in to change notification settings - Fork 14
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
Upgrade to Arc v58, Rinkeby contract addresses #382
Conversation
@@ -154,7 +155,7 @@ export class ContributionRewardWrapper extends ProposalGeneratorBase { | |||
eventContext, | |||
this.contract.proposeContributionReward, | |||
[options.avatar, | |||
Utils.SHA3(options.description), | |||
options.descriptionIsHashed ? options.description : Utils.SHA3(options.description), |
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.
makes a bit more sense to me to pass in whether you Arc.js to hash or not, so by default it would not be hashed, but this is ok too
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.
@tibetsprague I did it this way to avoid creating a breaking change. For what it is worth, it has the most convenient option as the default.
@@ -587,7 +587,6 @@ export interface NewContributionProposalEventResult { | |||
export interface ContributionProposal { | |||
proposalId: Hash; | |||
beneficiaryAddress: Address; | |||
contributionDescriptionHash: Hash; |
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.
why does this get removed?
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.
@tibetsprague I forgot about that. I've added it to the list of breaking changes above. That property was removed from the contract as part of this PR: https://github.com/daostack/arc/pull/561/files
package.json
Outdated
@@ -51,7 +51,7 @@ | |||
}, | |||
"homepage": "https://github.com/daostack/arc.js#readme", | |||
"dependencies": { | |||
"@daostack/migration": "0.0.0-alpha.56-v3", | |||
"@daostack/migration": "0.0.0-alpha.58-v2", |
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.
backwards?
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.
@tibetsprague no, the earlier one is 56, the latter, 58
@@ -18,6 +18,10 @@ | |||
"host": "127.0.0.1", | |||
"port": 8546 | |||
}, | |||
"private": { |
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.
what is private ? what the diff from ganache ?
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.
private is the name used for networks with an unknown id. ganache is a special case for a network running with a particular network id that arc.js supplies. So, for example, the user might have ganache running with a unknown network id, but arc.js can't know that it is in fact ganache, so will name it "private".
BTW, "private" is the name used by the migrations package and web3.
@@ -63,7 +66,7 @@ | |||
"ethereumjs-abi": "^0.6.5", | |||
"ethjs-abi": "0.1.8", | |||
"fs-extra": "^5.0.0", | |||
"ganache-cli": "^6.1.6", | |||
"ganache-cli": "^6.2.3", |
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.
6.2.5 ?
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.
will do in the Arc upgrade PR
Resolves: #82
ContributionReward.proposeContributionReward
will now optionally take a proposal description that has already been hashed (and won't hash it). SeeProposeContributionRewardParamsdescriptionIsHashed
.ContributionReward.ContributionProposal.contributionDescriptionHash
Breaking
ContributionReward.ContributionProposal.contributionDescriptionHash