Skip to content

Commit

Permalink
rebase main to release/v6.6 branch (#2582)
Browse files Browse the repository at this point in the history
* update release notes (#2575)

* update the params for mainnet (#2580)

* fix: fix the goreleaser (#2581)
  • Loading branch information
gsk967 authored Aug 6, 2024
1 parent f0e2e67 commit 9f15df6
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-umee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ jobs:
if: github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'Enable:ReleaseBuild')
with:
version: latest
args: build --rm-dist --skip-validate # skip validate skips initial sanity checks in order to be able to fully run
args: build --clean --skip=before,validate # skip validate skips initial sanity checks in order to be able to fully run
env:
TM_VERSION: ${{ env.TM_VERSION }}
- name: Release
uses: goreleaser/goreleaser-action@v6
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist --release-notes ./RELEASE_NOTES.md
args: release --clean --release-notes ./RELEASE_NOTES.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TM_VERSION: ${{ env.TM_VERSION }}
7 changes: 4 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ builds:
- -s -w -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X github.com/cosmos/cosmos-sdk/version.Name=umee -X github.com/cosmos/cosmos-sdk/version.AppName=umeed -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }} -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger -X github.com/cometbft/cometbft/version.TMCoreSemVer={{ .Env.TM_VERSION }}
goos:
- linux
# - darwin
goarch:
- amd64
# - arm64 # github only supports linux @ amd64
- amd64 # github only supports linux @ amd64
# - arm64

archives:
- id: tarball
Expand All @@ -46,4 +47,4 @@ checksum:
algorithm: sha256

changelog:
skip: false
disable: true
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Ref: https://keepachangelog.com/en/1.0.0/

# Changelog

## Unreleased
## v6.6.0-rc1

### Features

Expand All @@ -67,7 +67,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
- [2473](https://github.com/umee-network/umee/pull/2473) Correct x/ugov Amino registration for x/ugov messages (they don't have MessageName option).
- [2547](https://github.com/umee-network/umee/pull/2547) Fix the `MissCounters` grpc-web get api result.

## v6.5.0
## v6.5.0 - 2024-06-21

### Bug Fixes

Expand Down
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The Release Procedure is defined in the [CONTRIBUTING](CONTRIBUTING.md#release-p

Highlights:

- Cosmos SDK v0.47.11 update.
- Cosmos SDK v0.47.13 update.
- Adding new `auction` module to our app.
- Removing `crisis` module from our app.

Expand Down
8 changes: 3 additions & 5 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,22 @@ func (app UmeeApp) RegisterUpgradeHandlers() {
}

func (app *UmeeApp) registerUpgrade6_6RC1(upgradeInfo upgradetypes.Plan) {
planName := "v6.6-rc1"
planName := "v6.6"

app.UpgradeKeeper.SetUpgradeHandler(planName,
func(ctx sdk.Context, _ upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
printPlanName(planName, ctx.Logger())

// update leverage and metoken params to include burn auction fee share.
lparams := app.LeverageKeeper.GetParams(ctx)
// TODO: need to check the reward auction fee params value for v6.6
lparams.RewardsAuctionFee = sdk.MustNewDecFromStr("0.01")
lparams.RewardsAuctionFee = sdk.MustNewDecFromStr("0.02")
if err := app.LeverageKeeper.SetParams(ctx, lparams); err != nil {
return nil, err
}

mekeeper := app.MetokenKeeperB.Keeper(&ctx)
meparams := mekeeper.GetParams()
// TODO: need to check the Rewards Auction Fee Factor params value for v6.6
meparams.RewardsAuctionFeeFactor = 10000 // 100% of fees goes to rewards auction
meparams.RewardsAuctionFeeFactor = 1000 // 10% of fees goes to rewards auction
if err := mekeeper.SetParams(meparams); err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion x/auction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ timeline

### Parameters

1. `duration` : time duration when we collect bids for the current auction. Initial value: 7 days.
1. `duration` : time duration when we collect bids for the current auction. Initial value: 14 days.
2. `min_bid` is the minimum increase of the previous bid or the minimum bid if it's the
3. `auction_account`: an account receiving protocol revenues and managing the burn auction. This will be a sub-module account, and used to share with x/leverage and x/metoken modules.

Expand Down
4 changes: 1 addition & 3 deletions x/auction/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ import (
// DefaultGenesis creates a default genesis state
func DefaultGenesis() *GenesisState {
return &GenesisState{
// check bid duration value for v6.6 upgrade
// RewardsParams: RewardsParams{BidDuration: 14 * 24 * 3600}, // 14 days
RewardsParams: RewardsParams{BidDuration: 4 * 3600}, // 4 hours for bid duration this is only for canon-4 network
RewardsParams: RewardsParams{BidDuration: 14 * 24 * 3600}, // 14 days
RewardAuctionId: 0,
RewardsAuctions: []RewardsKV{},
RewardsBids: []BidKV{},
Expand Down
1 change: 0 additions & 1 deletion x/auction/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const minBidDuration = 3600 // 1h in seconds

// MinRewardsBid is the minimum increase of the previous bid or the minimum bid if it's the
// first one. 50 UX = 50e6uumee
// TODO: need to check the value for v6.6 upgrade
var MinRewardsBid = sdk.NewInt(50_000_000)

//
Expand Down

0 comments on commit 9f15df6

Please sign in to comment.