Skip to content

Commit

Permalink
chore(upgrade): Merge changes from v16 release branch to main (#2295)
Browse files Browse the repository at this point in the history
* chore(p256): adjust p256 precompile address (backport #2110) (#2112)

chore(p256): adjust p256 precompile address (#2110)

* adjust p256 precompile address

* address linter

* add changelog entry

(cherry picked from commit 56b1993)

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* revert deprecation of EIP-712 ante handler for v16.0.0-rc1 (#2113)

revert deprecattion of EIP-712 ante handler

* chore(proto): run make proto-all (backport #2111) (#2114)

chore(proto): run make proto-all (#2111)

run make proto-all

Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
(cherry picked from commit 836a6d7)

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* feat(stride,osmosis): enable stride and osmosis outposts during upgrade (backport #2117) (#2120)

feat(stride,osmosis): enable stride and osmosis outposts during upgrade (#2117)

* enable stride and osmosis outposts during upgrade

* add changelog entry

(cherry picked from commit 303aa87)

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* chore(osmosis): add osmosis outpost to available EVM extensions (backport #2109) (#2119)

chore(osmosis): add osmosis outpost to available EVM extensions (#2109)

* adjust call signature to match other precompiles

* add osmosis outpost to available extensions

* update channel ID for osmosis outpost

* adjust expected gas values

* add changelog entry

(cherry picked from commit 7761a25)

# Conflicts:
#	CHANGELOG.md

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* chore(post): Revert post handler changes for v16.0.0-rc1 (#2118)

Revert "feat(post): burn cosmos transaction fees (#2013)"

This reverts commit 3dd60c0

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* chore(ante): revert mono ante handler for v16.0.0-rc1 (#2116)

revert mono ante handler

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* imp(changelog): Changelog clean up (backport #2107) (#2123)

* imp(changelog): Changelog clean up (#2107)

* wip clean up

* wip clean up 2

* add precompile suffix to make distinction between modules and precompiles clear

* move some more state breaking changes to section

* Update CHANGELOG.md

Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>

* adjust entry

---------

Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
(cherry picked from commit 5de9abf)

# Conflicts:
#	CHANGELOG.md

* fix merge conflicts

---------

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
Co-authored-by: MalteHerrmann <malte@evmos.org>

* chore(upgrade): Activate bech32 precompile during upgrade (#2124)

* chore(upgrade): Activate bech32 precompile

* format

* fix: add both activations together

* CHANGELOG

* fix(incentives): remove incentives burning logic from upgrade handler (backport #2131) (#2132)

fix(incentives): remove incentives burning logic from upgrade handler (#2131)

* remove incentives burning logic from upgrade handler

* add changelog entry

(cherry picked from commit b587e58)

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* chore(upgrade): Prepare v16.0.0-rc1 (#2133)

* prepare v16.0.0-rc1

* fix changelog

* tests(e2e): Osmosis e2e tests (backport #2029) (#2170)

tests(e2e): Osmosis e2e tests (#2029)

* cosmoswasm artifacts

* first pass

* run make format

* add comments

* run make format

* fix lint

* fix wrong params

* lint code

* lint code

* refactor utils func

* update osmosis ver

* update compile contracts script

* enable osmosis outpost

* update bins & add contract patch

* remove unnecessary dump to file

* update app.go with bank keeper in availablePrecompiles

* refactor

* update test setup for contract v1

* remove unnecessary changes

* make format

* fix lint issues

* fix lint issues

* add channel patch

* update comment

* fix lint issues

* fix lint issues

* Apply suggestions from code review

Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>

* address review comments

* fix onFailDelivery unit test

* fix gosec issues

* Update precompiles/outposts/osmosis/types.go

---------

Co-authored-by: facs95 <facs95@users.noreply.github.com>
Co-authored-by: tom <tomasguerraalda@hotmail.com>
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
(cherry picked from commit 8a890e2)

Co-authored-by: Freddy Caceres <facs95@gmail.com>

* Add channel selector from chainID (backport #2172) (#2173)

* Add channel selector from chainID (#2172)

* bump cosmos sdk fork and port selector

* update xcs contract testnet

* add CHANGELOG entry

(cherry picked from commit f9754af)

# Conflicts:
#	CHANGELOG.md

* CHANGELOG FIX

---------

Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>
Co-authored-by: Vlad <vladislav.varadinov@gmail.com>

* imp(docker): update jq and curl dependencies (backport #2168) (#2177)

imp(docker): update jq and curl dependencies (#2168)

update jq and curl dependencies

(cherry picked from commit cc07bbb)

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* chore: update gomod2nix (#2174)

Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>

* imp(inflation): Reduce inflation by 2/3 (backport #2137) (#2178)

imp(inflation): Reduce inflation by 2/3 (#2137)

* imp(inflation): Reduce inflation by 2/3

* changelog

* fix(tests): fix integration tests

* fix(tests): add back case for incentives

* fix(tests): fix linter

* Update x/inflation/v1/keeper/hooks.go

Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>

---------

Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>
Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>
(cherry picked from commit 05cf01d)

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* chore(tests): update patches (#2179)

chore: update patches

* feat(post): burn cosmos transaction fees (backport #2128) (#2181)

feat(post): burn cosmos transaction fees (#2128)

* feat(post): burn cosmos transaction fees

* changelog

* handler options

* tests(post): unit test for burn cosmos transaction fees. (#2027)

* add posthandler unit test suite

* add HandlerOptions validation tests

* add Burner auth to FeeCollectorName

* add test setup + post handler test

* add burn tests

* run make format

* add tests with balance check for post burn

* fix

* run make format

* linter

---------

Co-authored-by: 0xstepit <0xstepit@users.noreply.github.com>

* Update app/post/post.go

Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* format test

* add safety check

* check for zero len coins

* fix(post): fix post handler

* update imports

* update changelog

---------

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>
Co-authored-by: 0xstepit <0xstepit@users.noreply.github.com>
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
(cherry picked from commit f4ede8d)

Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>

* chore(upgrade): Create v16-rc2 upgrade case and modify constants (#2175)

* chore(upgrade): delete old upgrade handler and logic

* fix: delete

* fix: create another upgrade name so we can keep mainnet upgrade name

* UPDATE CHANGELOG

* UPDATE CHANGELOG

* UPDATE CHANGELOG

---------

Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>

* fix(upgrade): Add upgrade handler for rc2 (#2184)

* fix: add upgrade handler for rc2

* fix: add missing

* fix(outposts): Handle cases for input and output denoms without token pair lookup (#2185)

* fix: add bond denom to outposts directly from staking keeper

* format and lint

* fix: comment out stride unit tests that don't apply

* fix: cases for input and output denom

* fix: use IBC denom instead of ERC20 address or plain denom

* fix: remove ERC20 token pair check from liquid stake transaction and replace with the hardcoded wevmos address check

* fix: stride tests

* minor fix

* fix: osmosis setup

* fix: adapt tests to pass for both Outposts

* fix: refactor to only use hardcoded WEVMOS

* remove unnecessary comment

* fix: no more need for custom error

* fix: remove commented out lines

* APPLY CHANGES FROM CODE REVIEW

* update e2e test patches

* update e2e test

---------

Co-authored-by: stepit <stefanofrancesco.pitton@gmail.com>
Co-authored-by: tom <tomasguerraalda@hotmail.com>

* fix(feecollector): Add FeeCollector burner role, UpgradeHandler for fork (#2186)

* fix(upgrade): add fee collector burner role

* add hard fork logic

* make format

* apply changes from code review

* fix: delete the only RegisterIncentive proposal from the store to fix the proposals query

* fix: add the iteration of proposals and deletion of RegisterIncentive proposal type

* fix: remove old fork block height

* fix: push test thus far

* fix: add test for deletion of proposal

* FORMAT AND LINT

* fix: add license to new file

* merge + conflicts

* fix typo

* fix: add comments

* fix: add error checking

* fix: delete old code and comment out deletion + tests

* FORMAT AND LINT

* fix: add hardfork height and remove protos

* fix: add final testnet hardfork height

---------

Co-authored-by: tom <tomasguerraalda@hotmail.com>
Co-authored-by: stepit <stefanofrancesco.pitton@gmail.com>

* chore(upgrade): Prepare v16-rc4 UpgradeHandler (#2188)

* add rc3 tag preparation

* fix: add upgrade height for Dec 14th 2023, 10:13 AM

* fix: add RC4 changes

* FORMAT AND LINT

* FORMAT AND LINT

* Update app/upgrades/v16/upgrades.go

Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>

* Update app/forks.go

Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>

* update golang version in go linter

* Revert "update golang version in go linter"

This reverts commit 96636fd.

---------

Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>
Co-authored-by: tom <tomasguerraalda@hotmail.com>

* chore(upgrade): Add changelog entries for upgrade (#2189)

* add rc3 tag preparation

* fix: add upgrade height for Dec 14th 2023, 10:13 AM

* chore(changelog): Changelog entry

* fix(osmosis-outpost): Fix XCS contract address (#2192)

* add rc3 tag preparation

* fix: add upgrade height for Dec 14th 2023, 10:13 AM

* fix(outposts): add correct XCS contract

* CHANGELOG

* CHANGELOG

* chore(upgrade): remove deprecated gov proposals (incentives) (backport #2196) (#2201)

* chore(upgrade): remove deprecated gov proposals (incentives) (#2196)

* wip - add remove proposal logic

* add incentives code

* keep only incentives types

* update tests

* update upgrade logic

* remove unnecessary types

* update upgrade logic

* update comments

* make format

* fix lint issues

* add changelog entry

* update upgrade logic

(cherry picked from commit 7dfc497)

# Conflicts:
#	app/app.go
#	app/upgrades/v16/proposals.go
#	app/upgrades/v16/upgrades.go
#	app/upgrades/v16/upgrades_test.go

* fix conflicts

---------

Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: tom <tomasguerraalda@hotmail.com>

* fix(release): Add required Outpost refactors to release branch (#2220)

* add rc3 tag preparation

* fix: add upgrade height for Dec 14th 2023, 10:13 AM

* fix(outposts): add correct XCS contract

* fix: add outpost refactored logic

* fix(test): fix register Coin helper

* fix: remove unused file

* fix: refactor nix tests

* update osmosis outpost e2e test

* fix stride outpost input params order

* update test setup for stride

* revert remove RegisterCoinProposal

* fix app.go

* fix: use xcs contract addr

---------

Co-authored-by: tom <tomasguerraalda@hotmail.com>

* chore(upgrade): enable burning the usage incentives pool in the v16 handler (backport #2221) (#2224)

* chore(upgrade): enable burning the usage incentives pool in the v16 handler (#2221)

* enable burning the usage incentives pool in the v16 handler

* add changelog entry

(cherry picked from commit e69abb0)

# Conflicts:
#	CHANGELOG.md
#	app/upgrades/v16/upgrades.go

* fix merge conflicts

* pass bank keeper to upgrade handler

---------

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
Co-authored-by: MalteHerrmann <malte@evmos.org>

* fix(outpost): Add comments to structs and ValidateBasic condition (backport #2223) (#2225)

* fix(outpost): Add comments to structs and ValidateBasic condition (#2223)

* fix(outpost): Add comments to structs and ValidateBasic condition

* fix: format, lint and changelog

* Update precompiles/outposts/stride/IStrideOutpost.sol

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

---------

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
(cherry picked from commit 56e062b)

# Conflicts:
#	CHANGELOG.md

* CHANGELOG fix

---------

Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>

* chore(upgrade): Prepare v16.0.0-rc5 (#2226)

* reduce upgrade handler for rc5

* adjust upgrade name

* adjust changelog

* add logic specifically for rc5

* Revert "adjust upgrade name"

This reverts commit 6a11af4.

* Revert "reduce upgrade handler for rc5"

This reverts commit 9ce1876.

* adjust upgrade info

* chore(p256): adjust p256 precompile address (backport #2228) (#2229)

* chore(p256): adjust p256 precompile address (#2228)

* adjust p256 precompile address

* add changelog entry

* move changelog entry to improvements

(cherry picked from commit 7821cb8)

* move changelog to correct place

---------

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
Co-authored-by: MalteHerrmann <malte@evmos.org>

* chore(upgrade): combine v16 upgrade handlers (#2231)

* combine upgrade handlers into one

* remove rc upgrade constants and comment out hard fork logic

* update changelog - remove not-included PR

---------

Co-authored-by: tom <tomasguerraalda@hotmail.com>

* chore(changelog): Prepare changelog for v16.0.0 (#2239)

prepare changelog for v16.0.0

* chore: add burned coins metrics (backport #2246) (#2248)

* chore: add burnt coins metrics (#2246)

* add burnt coins metrics

* add changelog entry

* add test case

* small fix

* small refactor

(cherry picked from commit ea75cb9)

# Conflicts:
#	CHANGELOG.md

* fix conflicts

* remove unincluded change

* set telemetry on deliver tx only

---------

Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: tom <tomasguerraalda@hotmail.com>

* chore(upgrade): Prepare changelog for v16.0.1 (#2257)

prepare changelog

* fix(inflation): update query to return correct inflation value (backport #2269) (#2272)

* fix(inflation): update query to return correct inflation value (#2269)

* fix query and update tests

* fix test

* add docstring and update CHANGELOG

(cherry picked from commit eab8194)

# Conflicts:
#	CHANGELOG.md

* fix CHANGELOG conflict

* fix CHANGELOG

---------

Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>
Co-authored-by: stepit <stefanofrancesco.pitton@gmail.com>

* fix changelog

* fix failed merge

* copy ante folder from main

* revert changes in testutils

* revert changes to werc20 precompile

* remove duplicate function definitions in Python utils

* Update CHANGELOG.md

* remove outdated nix files

* Apply suggestions from code review

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>
Co-authored-by: Freddy Caceres <facs95@gmail.com>
Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: stepit <stefanofrancesco.pitton@gmail.com>
Co-authored-by: tom <tomasguerraalda@hotmail.com>
  • Loading branch information
9 people committed Jan 30, 2024
1 parent 2ceae73 commit 68fae27
Show file tree
Hide file tree
Showing 8 changed files with 99 additions and 80 deletions.
72 changes: 46 additions & 26 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,46 @@ Ref: https://keepachangelog.com/en/1.0.0/

### State Machine Breaking

- (erc20) [#2154](https://github.com/evmos/evmos/pull/2154) Remove EVM hooks from `erc20` module.
- (erc20) [#2155](https://github.com/evmos/evmos/pull/2155) Remove CLI commands for register and convert Coin.
- (osmosis-outpost) [#2206](https://github.com/evmos/evmos/pull/2206) Update swap function input to custom struct.
- (stride-outpost) [#2207](https://github.com/evmos/evmos/pull/2207) Update Stride outpost to include additional arguments.
- (erc20) [#2217](https://github.com/evmos/evmos/pull/2217) Add logic to deploy token pairs contracts on genesis.
- (erc20) [#2292](https://github.com/evmos/evmos/pull/2292) Revert unnecessary logic on genesis (reverts #2217).

### Improvements

- (ante) [#2028](https://github.com/evmos/evmos/pull/2028) MonoAnteHandler for EVM transaction.
- (staking-precompile) [#2105](https://github.com/evmos/evmos/pull/2105) Detect the length of the ed25519 pubkey in precompile `CreateValidator` to prevent panic.
- (tests) [#2230](https://github.com/evmos/evmos/pull/2230) Send bank transfer during automated upgrade tests.
- (outposts) [#2236](https://github.com/evmos/evmos/pull/2236) Add default timeout timestamp for outpost transactions.
- (distribution-precompile) [#2240](https://github.com/evmos/evmos/pull/2240) Replace hardcoded expected balance in distribution precompile tests with queried balance.
- (staking-precompile) [#2234](https://github.com/evmos/evmos/pull/2234) Fix wrong error messages in `NewMsgCreateValidator`.
- (tests) [#2235](https://github.com/evmos/evmos/pull/2235) Ensure voting has concluded in automated upgrade tests.
- (ci) [#2259](https://github.com/evmos/evmos/pull/2259) Adjust CI configuration to have required items always return a status.
- (ci) [#2267](https://github.com/evmos/evmos/pull/2267) Minor clean-up in EIP-7212 tests.
- (ci) [#2268](https://github.com/evmos/evmos/pull/2268) Fix and update the Pull Request Labeler workflow.
- (tests) [#2280](https://github.com/evmos/evmos/pull/2280) Enable specifying the prefunded balances for the integration test setup.
- (tests) [#2289](https://github.com/evmos/evmos/pull/2289) Add utility to check balances during tests.
- (tests) [#2296](https://github.com/evmos/evmos/pull/2296) Add custom genesis config functionality to integration setup.
- (db) [#2297](https://github.com/evmos/evmos/pull/2297) Patch versionDB dependency to avoid lagging behind on OS reboot and update version check logic.

## [v16.0.2](https://github.com/evmos/evmos/releases/tag/v16.0.2) - 2024-01-16

### Bug Fixes

- (inflation) [#2269](https://github.com/evmos/evmos/pull/2269) Fix inflation info returned by epoch mint provision getter.

## [v16.0.1](https://github.com/evmos/evmos/releases/tag/v16.0.1) - 2024-01-11

### Improvements

- (metrics) [#2246](https://github.com/evmos/evmos/pull/2246) Add burned cosmos transactions fees metric.

## [v16.0.0](https://github.com/evmos/evmos/releases/tag/v16.0.0) - 2024-01-05

### State Machine Breaking

- (p256-precompile) [#1922](https://github.com/evmos/evmos/pull/1922) [EIP-7212](https://eips.ethereum.org/EIPS/eip-7212) `secp256r1` curve precompile.
- (distribution-precompile) [#1949](https://github.com/evmos/evmos/pull/1949) Add `ClaimRewards` custom transaction.
- (bech32-precompile) [#2038](https://github.com/evmos/evmos/pull/2038) Add `bech32` conversion precompile.
Expand All @@ -52,15 +92,11 @@ Ref: https://keepachangelog.com/en/1.0.0/
- (incentives) [#2070](https://github.com/evmos/evmos/pull/2070) Remove `x/incentives` module and burn incentives pool balance.
- (evm) [#2084](https://github.com/evmos/evmos/pull/2084) Remove `x/claims` params and migrate the `EVMChannels` param to the `x/evm` module params.
- (post) [#2128](https://github.com/evmos/evmos/pull/2128) Add `BurnDecorator` to `PostHandler` to burn cosmos transaction fees.
- (upgrade) [#2129](https://github.com/evmos/evmos/pull/2129) Add `Burner` role to `FeeCollector` module.
- (erc20) [#2154](https://github.com/evmos/evmos/pull/2154) Remove EVM hooks from `erc20` module.
- (erc20) [#2155](https://github.com/evmos/evmos/pull/2155) Remove CLI commands for register and convert Coin.
- (erc20) [#2157](https://github.com/evmos/evmos/pull/2157) Remove `RegisterCoinProposal` logic, protos and related tests.
- (osmosis-outpost) [#2206](https://github.com/evmos/evmos/pull/2206) Update swap function input to custom struct.
- (stride-outpost) [#2207](https://github.com/evmos/evmos/pull/2207) Update Stride outpost to include additional arguments.
- (evm) [#2172](https://github.com/evmos/evmos/pull/2172) Add channel selector from chain id.
- (inflation) [#2137](https://github.com/evmos/evmos/pull/2137) Reduce inflation by 2/3.
- (outposts) [#2185](https://github.com/evmos/evmos/pull/2185) Refactor `Stride` and `Osmosis` outposts to hardcode WEVMOS address.
- (upgrade) [#2186](https://github.com/evmos/evmos/pull/2186) Add `feecollector` Burner role in upgrade handler.
- (incentives) [#2221](https://github.com/evmos/evmos/pull/2221) Burn the usage incentives pool balance during v16 upgrade.
- (erc20) [#2217](https://github.com/evmos/evmos/pull/2217) Add logic to deploy token pairs contracts on genesis.
- (erc20) [#2292](https://github.com/evmos/evmos/pull/2292) Revert unnecessary logic on genesis (reverts #2217).

### API Breaking

Expand Down Expand Up @@ -105,7 +141,6 @@ Ref: https://keepachangelog.com/en/1.0.0/
- (osmosis-outpost) [#2017](https://github.com/evmos/evmos/pull/2017) Refactor types, errors and precompile struct.
- (erc20-precompile) [#2023](https://github.com/evmos/evmos/pull/2023) Add tests for ERC-20 precompile queries.
- (osmosis-outpost) [#2025](https://github.com/evmos/evmos/pull/2025) Use a struct to wrap parsed parameters from Solidity.
- (ante) [#2028](https://github.com/evmos/evmos/pull/2028) MonoAnteHandler for EVM transaction.
- (erc20-precompile) [#2037](https://github.com/evmos/evmos/pull/2037) Add IsTransactions and RequiredGas tests for the ERC-20 extension.
- (bank-precompile) [#2040](https://github.com/evmos/evmos/pull/2040) Add bank extension unit tests for queries.
- (bank-precompile) [#2041](https://github.com/evmos/evmos/pull/2041) Add `supplyOf` query to bank extension.
Expand Down Expand Up @@ -135,47 +170,31 @@ Ref: https://keepachangelog.com/en/1.0.0/
- (bank-precompile) [#2096](https://github.com/evmos/evmos/pull/2096) Add `bank` precompile integration tests.
- (osmosis-outpost) [#2077](https://github.com/evmos/evmos/pull/2077) Update Osmosis outpost to use cross-chain swap contract V1.
- (app) [#2104](https://github.com/evmos/evmos/pull/2104) Refactor code to use `sdkmath.Int` and `sdkmath.LegacyDec` instead of the SDK types.
- (staking-precompile) [#2105](https://github.com/evmos/evmos/pull/2105) Detect the length of the ed25519 pubkey in precompile `CreateValidator` to prevent panic.
- (p256-precompile) [#2110](https://github.com/evmos/evmos/pull/2110) Adjust `p256` precompile address.
- (upgrade) [#2117](https://github.com/evmos/evmos/pull/2117) Enable Stride and Osmosis outposts in v16 upgrade handler.
- (osmosis-outpost) [#2109](https://github.com/evmos/evmos/pull/2109) Add Osmosis outpost to available EVM extensions.
- (osmosis-outpost) [#2029](https://github.com/evmos/evmos/pull/2029) Add Osmosis outpost end-to-end tests.
- (upgrade) [#2131](https://github.com/evmos/evmos/pull/2131) Remove incentives pool burning logic from upgrade handler.
- (staking-precompile) [#2122](https://github.com/evmos/evmos/pull/2122) Replace bech32 address with EVM hex address for `CreateValidator` function and remove delegator address argument.
- (inflation) [#2137](https://github.com/evmos/evmos/pull/2137) Reduce daily inflation by 2/3s.
- (app) [#2138](https://github.com/evmos/evmos/pull/2138) Replace imports of store related types and functions to use Cosmos-SDK `store/types` package. .
- (app) [#2139](https://github.com/evmos/evmos/pull/2139) Remove old upgrade handlers logic.
- (outposts) [#2171](https://github.com/evmos/evmos/pull/2171) Add channelID selector based on the ChainID.
- (db) [#2182](https://github.com/evmos/evmos/pull/2182) Bump RocksDB version to `v8.8.1`.
- (api) [#2198](https://github.com/evmos/evmos/pull/2198) Remove deprecated `RegisterCoinProposal` from store to avoid breaking the governance proposals query.
- (outposts) [#2215](https://github.com/evmos/evmos/pull/2215) Backport handle cases for input and output denoms without token pair lookup.
- (cli) [#2212](https://github.com/evmos/evmos/pull/2212) Remove ValidateBasic in CLI.
- (swagger) [#2219](https://github.com/evmos/evmos/pull/2219) Update Swagger configuration to remove outdated entries and update vesting module version.
- (outposts) [#2223](https://github.com/evmos/evmos/pull/2223) Update Outposts struct documentation and `ValidateBasic`.
- (p256-precompile) [#2228](https://github.com/evmos/evmos/pull/2228) Adjust p256 precompile address from `0x0b` to `0x100`.
- (tests) [#2230](https://github.com/evmos/evmos/pull/2230) Send bank transfer during automated upgrade tests.
- (outposts) [#2236](https://github.com/evmos/evmos/pull/2236) Add default timeout timestamp for outpost transactions.
- (distribution-precompile) [#2240](https://github.com/evmos/evmos/pull/2240) Replace hardcoded expected balance in distribution precompile tests with queried balance.
- (staking-precompile) [#2234](https://github.com/evmos/evmos/pull/2234) Fix wrong error messages in `NewMsgCreateValidator`.
- (tests) [#2235](https://github.com/evmos/evmos/pull/2235) Ensure voting has concluded in automated upgrade tests.
- (metrics) [#2246](https://github.com/evmos/evmos/pull/2246) Add burned cosmos transactions fees metric.
- (ci) [#2259](https://github.com/evmos/evmos/pull/2259) Adjust CI configuration to have required items always return a status.
- (ci) [#2267](https://github.com/evmos/evmos/pull/2267) Minor clean-up in EIP-7212 tests.
- (ci) [#2268](https://github.com/evmos/evmos/pull/2268) Fix and update the Pull Request Labeler workflow.
- (tests) [#2280](https://github.com/evmos/evmos/pull/2280) Enable specifying the prefunded balances for the integration test setup.
- (tests) [#2289](https://github.com/evmos/evmos/pull/2289) Add utility to check balances during tests.
- (tests) [#2296](https://github.com/evmos/evmos/pull/2296) Add custom genesis config functionality to integration setup.
- (db) [#2297](https://github.com/evmos/evmos/pull/2297) Patch versionDB dependency to avoid lagging behind on OS reboot and update version check logic.

### Bug Fixes

- (evm) [#1801](https://github.com/evmos/evmos/pull/1801) Fixed the problem gas_used is 0 when using EVM type tx to transfer token to module account.
- (evm) [#1943](https://github.com/evmos/evmos/pull/1943) Fix gas estimation (`eth_estimateGas`) to be consistent with gas used in EVM extensions transactions.
- (tests) [#1989](https://github.com/evmos/evmos/pull/1989) Fix the problem about deliverTxSimulate in test app/ante/cosmos/min_price_test.go.
- (db) [#2072](https://github.com/evmos/evmos/pull/2072) Change VersionDb directory permission from 777 (insecure) to 750 (general).
- (osmosis-outpost) [#2192](https://github.com/evmos/evmos/pull/2192) Fix Osmosis XCS contract address for testnet.
- (api) [#2196](https://github.com/evmos/evmos/pull/2196) Remove governance proposals related to the deprecated `x/incentives` module to fix the governance proposals query.
- (swagger) [#2218](https://github.com/evmos/evmos/pull/2218) Use correct version of proto dependencies to generate swagger.
- (inflation) [#2269](https://github.com/evmos/evmos/pull/2269) Fix inflation info returned by epoch mint provision getter.

## [v15.0.0](https://github.com/evmos/evmos/releases/tag/v15.0.0) - 2023-10-31

Expand Down Expand Up @@ -914,3 +933,4 @@ Ref: https://keepachangelog.com/en/1.0.0/

- (cli) [#26](https://github.com/evmos/evmos/pull/26) Use config on genesis accounts.
- (deps) [#28](https://github.com/evmos/evmos/pull/28) Bump Ethermint version to `v0.7.0`.

6 changes: 3 additions & 3 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1142,11 +1142,11 @@ func (app *Evmos) setupUpgradeHandlers() {
v16.UpgradeName,
v16.CreateUpgradeHandler(
app.mm, app.configurator,
app.EvmKeeper,
app.BankKeeper,
app.InflationKeeper,
app.AccountKeeper,
app.BankKeeper,
app.EvmKeeper,
app.GovKeeper,
app.InflationKeeper,
),
)

Expand Down
28 changes: 14 additions & 14 deletions app/upgrades/v16/proposals.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,15 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
govkeeper "github.com/cosmos/cosmos-sdk/x/gov/keeper"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
incentives "github.com/evmos/evmos/v16/x/incentives/types"
)

// deprecatedProposals is a map of the TypeURL
// of the deprecated proposal types
var deprecatedProposals = map[string]struct{}{
"/evmos.incentives.v1.RegisterIncentiveProposal": {},
"/evmos.incentives.v1.CancelIncentiveProposal": {},
"/evmos.erc20.v1.RegisterCoinProposal": {},
}

// DeleteDeprecatedProposals deletes the RegisterCoin, RegisterIncentives & CancelIncentiveProposal
// proposals from the store because were deprecated
func DeleteDeprecatedProposals(ctx sdk.Context, gk govkeeper.Keeper, logger log.Logger) {
// DeleteIncentivesProposals deletes the RegisterIncentives & CancelIncentiveProposal proposals from the store
// because the module was deprecated
func DeleteIncentivesProposals(ctx sdk.Context, gk govkeeper.Keeper, logger log.Logger) {
// Delete the only incentives module proposals
gk.IterateProposals(ctx, func(proposal govtypes.Proposal) bool {
// Check if proposal is a deprecated proposal
// Check if proposal is a RegisterIncentives or CancelIncentiveProposal proposal
msgs, err := proposal.GetMsgs()
if err != nil {
logger.Error("failed to get proposal messages", "error", err.Error())
Expand All @@ -36,11 +30,17 @@ func DeleteDeprecatedProposals(ctx sdk.Context, gk govkeeper.Keeper, logger log.
continue
}

if _, deprecated := deprecatedProposals[legacyContentMsg.Content.TypeUrl]; !deprecated {
_, ok = legacyContentMsg.Content.GetCachedValue().(*incentives.RegisterIncentiveProposal)
if ok {
gk.DeleteProposal(ctx, proposal.Id)
continue
}

gk.DeleteProposal(ctx, proposal.Id)
_, ok = legacyContentMsg.Content.GetCachedValue().(*incentives.CancelIncentiveProposal)
if ok {
gk.DeleteProposal(ctx, proposal.Id)
continue
}
}
return false
})
Expand Down
14 changes: 7 additions & 7 deletions app/upgrades/v16/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import (
func CreateUpgradeHandler(
mm *module.Manager,
configurator module.Configurator,
ek *evmkeeper.Keeper,
bk bankkeeper.Keeper,
inflationKeeper inflationkeeper.Keeper,
ak authkeeper.AccountKeeper,
bk bankkeeper.Keeper,
ek *evmkeeper.Keeper,
gk govkeeper.Keeper,
inflationKeeper inflationkeeper.Keeper,
) upgradetypes.UpgradeHandler {
return func(ctx sdk.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
logger := ctx.Logger().With("upgrade", UpgradeName)
Expand All @@ -47,8 +47,7 @@ func CreateUpgradeHandler(
logger.Error("failed to enable outposts", "error", err.Error())
}

// Migrate the FeeCollector module account to include the Burner permission.
// This is required when including the postHandler to burn Cosmos Tx fees
// Add Burner role to fee collector
if err := MigrateFeeCollector(ak, ctx); err != nil {
logger.Error("failed to migrate the fee collector", "error", err.Error())
}
Expand All @@ -62,8 +61,8 @@ func CreateUpgradeHandler(
}

// Remove the deprecated governance proposals from store
logger.Debug("deleting deprecated proposals...")
DeleteDeprecatedProposals(ctx, gk, logger)
logger.Debug("deleting deprecated incentives module proposals...")
DeleteIncentivesProposals(ctx, gk, logger)

// recovery module is deprecated
logger.Debug("deleting recovery module from version map...")
Expand All @@ -75,6 +74,7 @@ func CreateUpgradeHandler(

// Leave modules are as-is to avoid running InitGenesis.
logger.Debug("running module migrations ...")

return mm.RunMigrations(ctx, configurator, vm)
}
}

0 comments on commit 68fae27

Please sign in to comment.