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: sdk v0.50.x upgrade #8274

Merged
merged 95 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
6d70096
initial push
czarcas7ic May 7, 2024
8536841
delete
czarcas7ic May 7, 2024
fdab2ba
tidy
czarcas7ic May 7, 2024
9dddc1b
add replace
czarcas7ic May 7, 2024
b986140
proto
czarcas7ic May 7, 2024
9fcbd6b
excludes
czarcas7ic May 7, 2024
b28e6ff
update go mods
czarcas7ic May 7, 2024
114125c
fix
czarcas7ic May 7, 2024
1595fd8
initial pass through modules
czarcas7ic May 8, 2024
768f2b1
checkpoint
czarcas7ic May 8, 2024
7995b58
checkpoint
czarcas7ic May 8, 2024
8bfa7f1
another round
czarcas7ic May 8, 2024
53f94a6
fork update with fixes
czarcas7ic May 9, 2024
e9d96ce
fork bumps
czarcas7ic May 10, 2024
a3d52ff
more fixes
czarcas7ic May 10, 2024
38cda38
move to cosmosdb
czarcas7ic May 10, 2024
da8bd95
signModeHandler fix
czarcas7ic May 10, 2024
ec9e0aa
more fixes
czarcas7ic May 10, 2024
29bea81
store fixes
czarcas7ic May 10, 2024
c719bd3
checkpoint
czarcas7ic May 10, 2024
2b0d471
checkpoint
czarcas7ic May 11, 2024
cd3d9e2
more event fixes
czarcas7ic May 11, 2024
5f20366
GetSigners fix for tests
czarcas7ic May 11, 2024
2fabe91
get signers fixes
czarcas7ic May 11, 2024
0569420
smart account fixes
czarcas7ic May 11, 2024
9175a70
fixes
czarcas7ic May 12, 2024
3bebd10
checkpoint
czarcas7ic May 12, 2024
7214f3e
txfees completion
czarcas7ic May 12, 2024
1bcb8be
more errors
czarcas7ic May 12, 2024
196b215
rosetta import
czarcas7ic May 12, 2024
87163a1
address simulation
czarcas7ic May 12, 2024
c966351
smart account get sign bytes
czarcas7ic May 12, 2024
5e8738a
disable streaming service
czarcas7ic May 12, 2024
a3906bb
some test fixes
czarcas7ic May 12, 2024
c4a3e6a
as signer proto
czarcas7ic May 13, 2024
f771538
fix some tests
czarcas7ic May 13, 2024
7fb5255
fix superfluid test
czarcas7ic May 14, 2024
4ac614e
more fixes
czarcas7ic May 14, 2024
508c492
fix gamm keeper test with note
czarcas7ic May 14, 2024
85b4654
fix authz serialization
czarcas7ic May 14, 2024
94a0751
fix validate basic test
czarcas7ic May 14, 2024
0fd1931
incentives test fix
czarcas7ic May 14, 2024
648b0a6
fix lockup test
czarcas7ic May 14, 2024
7ca412f
begin and end block fixes
czarcas7ic May 14, 2024
6b34525
fix epochs tests
czarcas7ic May 15, 2024
ca43597
fix all upgrade tests
czarcas7ic May 15, 2024
3307a65
fix txfees test
czarcas7ic May 15, 2024
4502cfb
fix e2e init test
czarcas7ic May 15, 2024
04ceb34
more fixes
czarcas7ic May 15, 2024
686c686
updated ibctesting overrides. Removed unnecessary receiver length che…
nicolaslara May 15, 2024
bfdd189
smart account integration test fixes
nicolaslara May 15, 2024
67a4a86
SetAccount no longer needed. Done internally.
nicolaslara May 15, 2024
aec57c6
more set account issues
nicolaslara May 15, 2024
e02a2a6
gas checks are not needed when using selected authenticators. That wa…
nicolaslara May 15, 2024
e8954e3
fix accounts and codec
nicolaslara May 15, 2024
02adf4c
using codec with proper "osmo" prefix. The default test codec uses "c…
nicolaslara May 15, 2024
dd2ab3e
fix ibc-hooks tests
nicolaslara May 15, 2024
621f1b9
streaming fixes
czarcas7ic May 17, 2024
1dd2f84
upgrade handler
czarcas7ic May 17, 2024
b4e9992
tidy
czarcas7ic May 17, 2024
c4478d7
Merge branch 'main' into adam/v0.50.x-upgrade
czarcas7ic May 17, 2024
bed4fd9
golang bump 1.22
czarcas7ic May 17, 2024
199ce5f
prevent circular dep
czarcas7ic May 17, 2024
346d610
update osmoutils
czarcas7ic May 17, 2024
1625703
tidy
czarcas7ic May 17, 2024
48c91cd
remove local replaces for testing
czarcas7ic May 17, 2024
f74c501
set up module.go
czarcas7ic May 18, 2024
ff83307
fix dockerfile for local work
czarcas7ic May 18, 2024
0114945
module changes
czarcas7ic May 19, 2024
a9170ef
fix e2e
czarcas7ic May 20, 2024
8b701ca
more ci fixes
czarcas7ic May 20, 2024
a4aa2d7
fix simulator
czarcas7ic May 20, 2024
f34e749
lints
czarcas7ic May 20, 2024
3e5c46c
remove wrap
czarcas7ic May 20, 2024
59f4e69
lints
czarcas7ic May 20, 2024
705ffcc
lints
czarcas7ic May 20, 2024
f9aaae6
clean up the TODOs
czarcas7ic May 20, 2024
506f7de
more todo clean ups
czarcas7ic May 20, 2024
5bc1e4e
comments
czarcas7ic May 20, 2024
aef8942
comments
czarcas7ic May 20, 2024
b2347f0
move test outside of osmoutils
czarcas7ic May 20, 2024
1226a75
clean up go mods
czarcas7ic May 21, 2024
62141e5
Merge branch 'main' into adam/v0.50.x-upgrade
czarcas7ic May 21, 2024
7c213f8
Merge branch 'main' into adam/v0.50.x-upgrade
czarcas7ic May 21, 2024
c780c73
fix errors for GetDelegation
czarcas7ic May 21, 2024
b68ea8a
return error instead of panic
czarcas7ic May 22, 2024
04447de
chore: fix build
PaddyMc May 22, 2024
665c586
Merge branch 'main' into adam/v0.50.x-upgrade
czarcas7ic May 22, 2024
117194a
fix weird error check
czarcas7ic May 24, 2024
b1c4f68
Merge branch 'main' into adam/v0.50.x-upgrade
czarcas7ic May 24, 2024
24964a4
ignore words
czarcas7ic May 24, 2024
5c8698b
more spelling fixes
czarcas7ic May 24, 2024
9b287c5
final spelling errors
czarcas7ic May 24, 2024
eb3121f
Revert "more spelling fixes"
czarcas7ic May 24, 2024
15895cd
redo spelling check
czarcas7ic May 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 2 additions & 3 deletions .github/workflows/gen-upgrade-on-manual-input.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ jobs:
- name: 🐿 Setup Golang
uses: actions/setup-go@v5
with:
go-version: '^1.21'
-
name: Specify input
go-version: "^1.22"
- name: Specify input
run: |
env=${{ inputs.version }}
if [[ $env != '' ]]; then
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-mod-auto-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ">=1.21.0"
go-version: ">=1.22.0"
- name: Fetch branches and checkout target
run: |
git fetch origin ${{ inputs.target-branch }}
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ignore-words.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
compres
startd
ans
crate
crate
exactIn
amountIn
AmountIn
3 changes: 1 addition & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ on:
- concentrated-liquidity-main

env:
GO_VERSION: "1.21"
GO_VERSION: "1.22"
GIT_DIFF:


jobs:
golangci:
name: Run golangci-lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mutest-issue-generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: 🐿 Setup Golang
uses: actions/setup-go@v5
with:
go-version: "^1.21"
go-version: "^1.22"
- name: Display go version
run: go version
- name: Run mutation test
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/sim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ jobs:
- name: 🐿 Setup Golang
uses: actions/setup-go@v5
with:
go-version: '^1.21'
-
name: Get git diff
go-version: "^1.22"
- name: Get git diff
uses: technote-space/[email protected]
with:
PATTERNS: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/update-go-import-paths.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ on:
required: true

env:
GO_VERSION: '1.21'

GO_VERSION: "1.22"

jobs:
update-import-paths:
Expand Down
41 changes: 21 additions & 20 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### State Breaking

* [#8169](https://github.com/osmosis-labs/osmosis/pull/8169) Support non-pool assets in superfluid staking.
* [#8274](https://github.com/osmosis-labs/osmosis/pull/8274) SDK v50 and Comet v0.38 upgrade

### State Compatible

Expand All @@ -54,7 +55,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

* [#8293](https://github.com/osmosis-labs/osmosis/pull/8293) Upgrade v25.x to IBC v7.4.1
* [#8128](https://github.com/osmosis-labs/osmosis/pull/8128) Cache the result for poolmanager.GetPoolModule
* [#8253](https://github.com/osmosis-labs/osmosis/pull/8253) Update gogoproto to v1.4.11 and golang.org/x/exp to
* [#8253](https://github.com/osmosis-labs/osmosis/pull/8253) Update gogoproto to v1.4.11 and golang.org/x/exp to
* [#8148](https://github.com/osmosis-labs/osmosis/pull/8148) Remove the deserialization time for GetDefaultTakerFee()
* [#8298](https://github.com/osmosis-labs/osmosis/pull/8298) Overwrite timeout commit from 1.5s to 1s

Expand Down Expand Up @@ -533,8 +534,8 @@ Epoch optimizations are in this release, see a subset of PR links in v21.1.3 sec

* [#6256](https://github.com/osmosis-labs/osmosis/pull/6256) Refactor CalcPriceToTick to operate on BigDec price to support new price range.
* [#6317](https://github.com/osmosis-labs/osmosis/pull/6317) Remove price return from CL `math.TickToSqrtPrice`
* [#6368](https://github.com/osmosis-labs/osmosis/pull/6368) Convert priceLimit API in CL swaps to BigDec
* [#6371](https://github.com/osmosis-labs/osmosis/pull/6371) Change PoolI.SpotPrice API from Dec (18 decimals) to BigDec (36 decimals), maintain state-compatibility.
* [#6368](https://github.com/osmosis-labs/osmosis/pull/6368) Convert priceLimit API in CL swaps to BigDec
* [#6371](https://github.com/osmosis-labs/osmosis/pull/6371) Change PoolI.SpotPrice API from Dec (18 decimals) to BigDec (36 decimals), maintain state-compatibility.
* [#6388](https://github.com/osmosis-labs/osmosis/pull/6388) Make cosmwasmpool's create pool cli generic
* [#6238] switch osmomath to sdkmath types and rename BigDec constructors to contain "Big" in the name.

Expand Down Expand Up @@ -616,14 +617,14 @@ Fixes mainnet bugs w/ incorrect accumulation sumtrees, and CL handling for a bal
* [#5901](https://github.com/osmosis-labs/osmosis/pull/5901) Adding support for CW pools in ProtoRev
* [#5937](https://github.com/osmosis-labs/osmosis/pull/5937) feat: add SetScalingFactorController gov prop
* [#5949](https://github.com/osmosis-labs/osmosis/pull/5949) Add message to convert from superfluid / locks to native staking directly.
* [#5939](https://github.com/osmosis-labs/osmosis/pull/5939) Fix: Flip existing twapRecords base/quote price denoms
* [#5939](https://github.com/osmosis-labs/osmosis/pull/5939) Fix: Flip existing twapRecords base/quote price denoms
* [#5938](https://github.com/osmosis-labs/osmosis/pull/5938) Chore: Fix valset amino codec

### BugFix

* [#5831](https://github.com/osmosis-labs/osmosis/pull/5831) Fix superfluid_delegations query
* [#5835](https://github.com/osmosis-labs/osmosis/pull/5835) Fix println's for "amountZeroInRemainingBigDec before fee" making it into production
* [#5841](https://github.com/osmosis-labs/osmosis/pull/5841) Fix protorev's out of gas erroring of the user's transcation.
* [#5841](https://github.com/osmosis-labs/osmosis/pull/5841) Fix protorev's out of gas erroring of the user's transaction.
* [#5930](https://github.com/osmosis-labs/osmosis/pull/5930) Updating Protorev Binary Search Range Logic with CL Pools
* [#5950](https://github.com/osmosis-labs/osmosis/pull/5950) fix: spot price for cosmwasm pool types

Expand Down Expand Up @@ -660,7 +661,7 @@ Fixes mainnet bugs w/ incorrect accumulation sumtrees, and CL handling for a bal

### Features

* [#5796](https://github.com/osmosis-labs/osmosis/pull/5796) chore: add missing cli queries CL
* [#5796](https://github.com/osmosis-labs/osmosis/pull/5796) chore: add missing cli queries CL

### Misc Improvements & Bug Fixes

Expand Down Expand Up @@ -878,13 +879,13 @@ This release's main features are utility helpers for smart contract developers.
* [#3609](https://github.com/osmosis-labs/osmosis/pull/3609) Add Downtime-detection module.
* [#2788](https://github.com/osmosis-labs/osmosis/pull/2788) Add logarithm base 2 implementation.
* [#3677](https://github.com/osmosis-labs/osmosis/pull/3677) Add methods for cloning and mutative multiplication on osmomath.BigDec.
* [#3676](https://github.com/osmosis-labs/osmosis/pull/3676) implement `PowerInteger` function on `osmomath.BigDec`
* [#3676](https://github.com/osmosis-labs/osmosis/pull/3676) implement `PowerInteger` function on `osmomath.BigDec`
* [#3678](https://github.com/osmosis-labs/osmosis/pull/3678) implement mutative `PowerIntegerMut` function on `osmomath.BigDec`.
* [#3708](https://github.com/osmosis-labs/osmosis/pull/3708) `Exp2` function to compute 2^decimal.
* [#3693](https://github.com/osmosis-labs/osmosis/pull/3693) Add `EstimateSwapExactAmountOut` query to stargate whitelist
* [#3731](https://github.com/osmosis-labs/osmosis/pull/3731) BigDec Power functions with decimal exponent.
* [#3847](https://github.com/osmosis-labs/osmosis/pull/3847) GeometricTwap and GeometricTwapToNow queries added to Stargate whitelist.
* [#3899](https://github.com/osmosis-labs/osmosis/pull/3899) Fixed osmoutils so its importable by chains that don't use the osmosis CosmosSDK fork
* [#3899](https://github.com/osmosis-labs/osmosis/pull/3899) Fixed osmoutils so its importable by chains that don't use the osmosis CosmosSDK fork

### API breaks

Expand All @@ -909,7 +910,7 @@ Additionally, the swagger files for v13 have been updated to improve compatibili

* [#3611](https://github.com/osmosis-labs/osmosis/pull/3611),[#3647](https://github.com/osmosis-labs/osmosis/pull/3647) Introduce osmocli, to automate thousands of lines of CLI boilerplate
* [#3634](https://github.com/osmosis-labs/osmosis/pull/3634) (Makefile) Ensure correct golang version in make build and make install. (Thank you @jhernandezb )
* [#3712](https://github.com/osmosis-labs/osmosis/pull/3712) replace `osmomath.BigDec` `Power` with `PowerInteger`
* [#3712](https://github.com/osmosis-labs/osmosis/pull/3712) replace `osmomath.BigDec` `Power` with `PowerInteger`
* [#3711](https://github.com/osmosis-labs/osmosis/pull/3711) Use Dec instead of Int for additive `ErrTolerace` in `osmoutils`.
* [3647](https://github.com/osmosis-labs/osmosis/pull/3647), [3942](https://github.com/osmosis-labs/osmosis/pull/3942) (CLI) re-order the command line arguments for `osmosisd tx gamm join-swap-share-amount-out`

Expand Down Expand Up @@ -989,8 +990,8 @@ which acts as a fuzz testing tool tailored for the SDK state machine.
* TypeMsgMint: from "mint" to "tf_mint"
* [#2222](https://github.com/osmosis-labs/osmosis/pull/2222) Add scaling factors to MsgCreateStableswapPool
* [#1889](https://github.com/osmosis-labs/osmosis/pull/1825) Add proto responses to gamm LP messages:
* MsgJoinPoolResponse: share_out_amount and token_in fields
* MsgExitPoolResponse: token_out field
* MsgJoinPoolResponse: share_out_amount and token_in fields
* MsgExitPoolResponse: token_out field
* [#1825](https://github.com/osmosis-labs/osmosis/pull/1825) Fixes Interchain Accounts (host side) by adding it to AppModuleBasics
* [#1994](https://github.com/osmosis-labs/osmosis/pull/1994) Removed bech32ibc module
* [#2016](https://github.com/osmosis-labs/osmosis/pull/2016) Add fixed 10000 gas cost for each Balancer swap
Expand Down Expand Up @@ -1024,7 +1025,7 @@ x
### Features

* [#2387](https://github.com/osmosis-labs/osmosis/pull/2387) Upgrade to IBC v3.2.0, which allows for sending/receiving IBC tokens with slashes.
* [#1312] Stableswap: Createpool logic
* [#1312] Stableswap: Createpool logic
* [#1230] Stableswap CFMM equations
* [#1429] solver for multi-asset CFMM
* [#1539] Superfluid: Combine superfluid and staking query on querying delegation by delegator
Expand Down Expand Up @@ -1161,7 +1162,7 @@ Cosmwasm bindings have been added, to make swapping and creating these new token
* [#1535](https://github.com/osmosis-labs/osmosis/pull/1535) upgrade wasmd to v0.27.0.rc3-osmo and ibc-go to v3
* State sync now works for cosmwasm state
* Cosmwasm builds on M1 macs
* [#1435](https://github.com/osmosis-labs/osmosis/pull/1435) `x/tokenfactory` create denom fee for spam resistance
* [#1435](https://github.com/osmosis-labs/osmosis/pull/1435) `x/tokenfactory` create denom fee for spam resistance
* [#1253](https://github.com/osmosis-labs/osmosis/pull/1253) Add a message to increase the duration of a bonded lock.
* [#1656](https://github.com/osmosis-labs/osmosis/pull/1656) Change camelCase to snake_case in proto.
* [#1632](https://github.com/osmosis-labs/osmosis/pull/1632) augment SuperfluidDelegationsByDelegator query, return osmo equivalent is staked via superfluid
Expand All @@ -1175,17 +1176,17 @@ This upgrade includes:

* Adding height-gated AnteHandler message filter to filter unpooling tx pre-upgrade.
* At block height 4402000 accelerates prop 225, which in turn moves incentives from certain pools according to props 222-224
* Adds a msg allowing unpooling of UST pools.
* This procedure is initiated by whitelisting pools 560, 562, 567, 578, 592, 610, 612, 615, 642, 679, 580, 635.
* Unpooling allows exiting whitelisted pools directly, finish unbonding duration with the exited tokens instead of having to wait unbonding duration to swap LP shares back to collaterals.
* Adds a msg allowing unpooling of UST pools.
* This procedure is initiated by whitelisting pools 560, 562, 567, 578, 592, 610, 612, 615, 642, 679, 580, 635.
* Unpooling allows exiting whitelisted pools directly, finish unbonding duration with the exited tokens instead of having to wait unbonding duration to swap LP shares back to collaterals.
* This procedure also includes locks that were already unbonding pre-upgrade and locks that were superfluid delegated.

Every node should upgrade their software version to v8.0.0 before the upgrade block height 4402000. If you use cosmovisor, simply swap out the binary at upgrades/v7/bin to be v8.0.0, and restart the node. Do check cosmovisor version returns v8.0.0

### Features
* {Across many PRs} Initiate emergency upgrade
* [#1481] Emergency upgrade as of prop [226] (<https://www.mintscan.io/osmosis/proposals/226>)
* [#1482] Checking Whitelisted Pools contain UST
### Features
* {Across many PRs} Initiate emergency upgrade
* [#1481] Emergency upgrade as of prop [226] (<https://www.mintscan.io/osmosis/proposals/226>)
* [#1482] Checking Whitelisted Pools contain UST
* [#1486] Update whitelisted pool IDs
* [#1262] Add a forceprune command to the binaries, that prunes golevelDB data better
* [#1154] Database stability improvements
Expand Down
Loading