Skip to content

Add x/mint module from cosmos-sdk#113

Merged
philipsu522 merged 6 commits intomasterfrom
custom-mint-module
Jul 18, 2022
Merged

Add x/mint module from cosmos-sdk#113
philipsu522 merged 6 commits intomasterfrom
custom-mint-module

Conversation

@philipsu522
Copy link
Contributor

@philipsu522 philipsu522 commented Jul 13, 2022

This PR forks the x/mint module from cosmos sdk and replaces all occurrences in the code with this binary. We will use this as the basis for implementing custom mint logic (i.e. epoch-based token releases). Splitting this into 2 PRs otherwise it'll be too unwieldy
Tested by:

  • make install
  • running the chain locally

@philipsu522 philipsu522 requested review from Kbhat1 and codchen July 15, 2022 03:40
@philipsu522 philipsu522 changed the title Add custom mint module Add x/mint module from cosmos-sdk Jul 15, 2022
ibcporttypes "github.com/cosmos/ibc-go/v3/modules/core/05-port/types"
ibchost "github.com/cosmos/ibc-go/v3/modules/core/24-host"
ibckeeper "github.com/cosmos/ibc-go/v3/modules/core/keeper"
"github.com/sei-protocol/sei-chain/x/mint"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

basically we want to make sure all imports are migrated from
"github.com/cosmos/cosmos-sdk/x/mint" -> "github.com/sei-protocol/sei-chain/x/mint"
A lot of these within the x/mint module, but mostly just imports

import "gogoproto/gogo.proto";
import "mint/v1beta1/mint.proto";

option go_package = "github.com/sei-protocol/sei-chain/x/mint/types";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

for protos we want to make sure this is sei-protocol not cosmos-sdk as well

Comment on lines +8 to +9
"github.com/sei-protocol/sei-chain/x/mint/keeper"
"github.com/sei-protocol/sei-chain/x/mint/types"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

example of ensuring imports are correct

@philipsu522 philipsu522 merged commit 255d350 into master Jul 18, 2022
philipsu522 added a commit that referenced this pull request Jul 18, 2022
* Add custom mint module

* Refactor mint module to use custom in sei

* fix unit tests

* rm file

* rm empty

* gofumpt
alg747 pushed a commit to UXDProtocol/sei-chain that referenced this pull request Jul 20, 2022
* Add custom mint module

* Refactor mint module to use custom in sei

* fix unit tests

* rm file

* rm empty

* gofumpt
masih pushed a commit that referenced this pull request Sep 29, 2025
## Describe your changes and provide context
Cherry picking changes here:
* [\#14168](cosmos/cosmos-sdk#14168) perf:
store/cachekv: preallocate kvL in dirtyItems which gets appended too
* [\#10024](cosmos/cosmos-sdk#10024) fix!:
store/cachekv: reduce growth factor for iterator ranging using binary
searches #10024

## Testing performed to validate your change
Ran a cluster

![image](https://user-images.githubusercontent.com/18161326/207636380-1c404827-cdb4-4bdc-aade-bfc0294f6cd4.png)
masih pushed a commit that referenced this pull request Sep 30, 2025
## Describe your changes and provide context
Cherry picking changes here:
* [\#14168](cosmos/cosmos-sdk#14168) perf:
store/cachekv: preallocate kvL in dirtyItems which gets appended too
* [\#10024](cosmos/cosmos-sdk#10024) fix!:
store/cachekv: reduce growth factor for iterator ranging using binary
searches #10024

## Testing performed to validate your change
Ran a cluster

![image](https://user-images.githubusercontent.com/18161326/207636380-1c404827-cdb4-4bdc-aade-bfc0294f6cd4.png)
masih pushed a commit that referenced this pull request Oct 1, 2025
* Add metrics label for missing val power

* Make metrics

* Fix timeout

* Time out

* More timout
masih added a commit that referenced this pull request Oct 9, 2025
Integrate UCI versioning and release into `sei-db` and create the
version file for the latest tagged semver currently present.

Upgrade UCI Go lint to latest while at it.
@masih masih deleted the custom-mint-module branch October 31, 2025 15:47
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