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

Add a new makeStakeTransaction API #238

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

swansontec
Copy link
Contributor

@swansontec swansontec commented Jul 30, 2019

TODO:

  • Define format for EdgeStakingSettings.
  • Add this API to the EdgeCurrencyWallet.
  • Add this API to the EdgeCurrencyEngine.
  • Implement pass-through logic in the core.

@swansontec swansontec force-pushed the william/staking-api branch 2 times, most recently from 0fb7263 to 392ad5a Compare August 2, 2019 18:26
throw new Error('This currency does not support staking')
}
const tx = await engine.changeStakingSettings(stakingSettings)
update(out) // Check for changes to this.stakingSettings
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops. Need to add a callback to the engine to tell us it changed.

Copy link

Choose a reason for hiding this comment

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

True

Copy link

@chazjeremyrosette chazjeremyrosette left a comment

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