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

Reward constants hook #4692

Merged

Conversation

oskarleonard
Copy link
Contributor

What was the problem?

This PR resolves #4639

How was it solved?

  • Create reward constants hook
  • Move rewards hook to the reward module

How was it tested?

Manually
Test

@oskarleonard oskarleonard marked this pull request as draft December 30, 2022 16:37
@oskarleonard oskarleonard self-assigned this Dec 30, 2022
@oskarleonard oskarleonard marked this pull request as ready for review January 2, 2023 08:59
src/modules/reward/mocks/index.js Show resolved Hide resolved
src/modules/transaction/utils/encoding.js Outdated Show resolved Hide resolved
@oskarleonard oskarleonard merged commit ed6b734 into 4640-create-reward-inflation-hook Jan 3, 2023
src/const/queries.js Show resolved Hide resolved
@@ -124,17 +123,17 @@ export const fromTransactionJSON = (transactionJSON, paramsSchema) => {
export const toTransactionJSON = (transaction, paramsSchema) => {
if (Buffer.isBuffer(transaction.params)) {
return {
...codec.toJSON(baseTransactionSchema, transaction),
params: paramsSchema ? codec.decodeJSON(paramsSchema, transaction.params) : {},
...liskCodec.codec.toJSON(baseTransactionSchema, transaction),
Copy link
Contributor

Choose a reason for hiding this comment

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

do we have ticket for liskCodec changes? if not please create one and assign to the pr

@ManuGowda ManuGowda deleted the 4639-reward-constants-hook branch January 3, 2023 14:20
@ManuGowda ManuGowda removed the request for review from reyraa January 5, 2023 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

4 participants