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

feat: add module mint, feeburn #157

Merged
merged 60 commits into from
Feb 1, 2023
Merged

feat: add module mint, feeburn #157

merged 60 commits into from
Feb 1, 2023

Conversation

hoanguyenkh
Copy link
Collaborator

@hoanguyenkh hoanguyenkh commented Dec 28, 2022

Description

Closes: #XXX

PR Checklist:

  • Have you read the CONTRIBUTING.md?
  • Does your PR follow the C4 patch requirements?
  • Have you rebased your work on top of the latest master?
  • Have you checked your code compiles? (make)
  • Have you included tests for any non-trivial functionality?
  • Have you checked your code passes the unit tests? (make test)
  • Have you checked your code formatting is correct? (go fmt)
  • Have you checked your basic code style is fine? (golangci-lint run)
  • If you added any dependencies, have you checked they do not contain any known vulnerabilities? (go list -json -m all | nancy sleuth)
  • If your changes affect the client infrastructure, have you run the integration test?
  • If your changes affect public APIs, does your PR follow the C4 evolution of public contracts?
  • If your code changes public APIs, have you incremented the crate version numbers and documented your changes in the CHANGELOG.md?

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed all author checklist items have been addressed
  • confirmed that this PR does not change production code

hoanguyenkh and others added 16 commits December 20, 2022 10:37
* feat: add mint module's proto

* chore: update proto

* feat: add mint types

* chore: update mint types

* chore: update mint params

* test: add unittest for mint types

* test: update unittest for mint types

* feat: add mint keeper

* chore: remove inflation module

* feat: add API querier

* chore: update querier keys

* test: add unit tests for mint keeper

* test: update unit test for mint keeper

* feat: add mint module cli

* feat: add rest queries for mint module

* chore: update mint module cli

* feat: add mint module abci, simulation, genesis

* refactor: update mint simulation package

* test: add integration test for mint module

* docs(mint): add spec for the mint module

* chore: add third_party proto's

* chore: update main app
# Conflicts:
#	app/app.go
#	x/mint/keeper/keeper_test.go
#	x/mint/keeper/total_minted_provision_test.go
#	x/mint/types/expected_keepers.go
#	x/mint/types/query.pb.gw.go
"context"
"encoding/json"
"fmt"
"math/rand"

Check failure

Code scanning / gosec

Blocklisted import runtime

Blocklisted import math/rand
x/mint/module.go Fixed Show fixed Hide fixed
x/feeburn/keeper/fee_burn.go Fixed Show fixed Hide fixed
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

CodeQL found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

x/mint/types/minter.go Fixed Show fixed Hide fixed
x/mint/types/minter.go Fixed Show fixed Hide fixed

// String implements the Stringer interface.
func (p Params) String() string {
out, _ := yaml.Marshal(p)

Check warning

Code scanning / gosec

Returned error is not propagated up the stack.

Returned error is not propagated up the stack.
x/feeburn/module.go Fixed Show fixed Hide fixed
* fix: integer overflow

* refactor: change parse dec -> int
@hoanguyenkh hoanguyenkh temporarily deployed to release January 11, 2023 05:44 — with GitHub Actions Inactive
* add fork code

* add fork code

* update UpgradeHeight

Co-authored-by: hoanguyenkh <[email protected]>
@hoanguyenkh hoanguyenkh temporarily deployed to release January 12, 2023 02:30 — with GitHub Actions Inactive
@dungtt-astra
Copy link
Collaborator

look ok

Copy link
Collaborator Author

@hoanguyenkh hoanguyenkh left a comment

Choose a reason for hiding this comment

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

LGTM

x/feeburn/keeper/fee_burn.go Show resolved Hide resolved
@LampardNguyen234
Copy link
Collaborator

LGTM

1 similar comment
@phu-tang
Copy link

phu-tang commented Feb 1, 2023

LGTM

@hoanguyenkh hoanguyenkh merged commit a957e5c into main Feb 1, 2023
@hoanguyenkh hoanguyenkh deleted the astra branch February 1, 2023 08:30
@hoanguyenkh hoanguyenkh restored the astra branch March 17, 2023 11:39
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.

5 participants