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

DApp: User can Propose Reparameterization #164

Merged
merged 12 commits into from
May 21, 2018

Conversation

am9u
Copy link
Contributor

@am9u am9u commented May 15, 2018

This PR also moves the Parameterizer State into Redux

Jon Ferrer added 5 commits May 14, 2018 19:31
- Add API wrapper methods for performing reparam proposal
- Add React elements for capturing the proposal and render the view on
the Parameterizer page
- Add `approveForProposeReparameterization` API wrapper method
- Wire up proposal transaction button to approve, then propose

export async function proposeReparameterization(
paramName: string,
newValue: BigNumber,
Copy link
Member

Choose a reason for hiding this comment

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

have you tested this when running the built & served version of the DApp?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! I tested locally with the dev build. The transactions all go through, but I'll try this with the built+served version before I move forward.

@coveralls
Copy link

coveralls commented May 15, 2018

Pull Request Test Coverage Report for Build 3255

  • 0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 87.539%

Totals Coverage Status
Change from base Build 3250: 0.0%
Covered Lines: 581
Relevant Lines: 625

💛 - Coveralls

@@ -50,6 +50,18 @@ export async function approve(amount: BigNumber): Promise<TwoStepEthTransaction
}
}

export async function approveForProposeReparameterization(): Promise<TwoStepEthTransaction | void> {
const civil = getCivil();
const tcr = civil.tcrSingletonTrusted();
Copy link
Contributor

Choose a reason for hiding this comment

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

just getTCR?

}

export default Parameterizer;
const mapToStateToProps = (state: State, ownProps: ParameterizerPageProps): object => {
Copy link
Contributor

Choose a reason for hiding this comment

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

not using ownprops, return type should be specified

import { setParameter } from "../actionCreators/parameterizer";
import { getParameterValue } from "../apis/civilTCR";

export async function initializeParameterizer(dispatch: Dispatch): Promise<void> {
Copy link
Contributor

Choose a reason for hiding this comment

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

how are we keeping the parameter page in sync? is there an event we can subscribe to

@am9u am9u merged commit 53609fd into master May 21, 2018
@am9u am9u deleted the am9u/ch639/dapp-propose-reparameterization branch May 21, 2018 17:46
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.

None yet

4 participants