Skip to content

Commit 1696e80

Browse files
p0mvnmergify[bot]
authored andcommitted
chore: upgrade sdk with snapshot manager fix (#1700)
* chore: upgrade sdk with snapshot manager fix * changelog * Update branch version * Try fix e2e test Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com> Co-authored-by: Dev Ojha <dojha@berkeley.edu> (cherry picked from commit 9165ac2) # Conflicts: # CHANGELOG.md # go.mod # go.sum # tests/e2e/chain/config.go
1 parent 0b4b15a commit 1696e80

File tree

4 files changed

+109
-0
lines changed

4 files changed

+109
-0
lines changed

CHANGELOG.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,94 @@ and simulation queries; simulation queries are concurrent with ABCI commit flow
5353

5454
### Features
5555

56+
<<<<<<< HEAD
5657
* [#1262](https://github.com/osmosis-labs/osmosis/pull/1262) Add a `forceprune` command to the binaries, that prunes golevelDB data better.
58+
=======
59+
* [#1312] Stableswap: Createpool logic
60+
* [#1230] Stableswap CFMM equations
61+
* [#1429] solver for multi-asset CFMM
62+
63+
### Bug Fixes
64+
* [1700](https://github.com/osmosis-labs/osmosis/pull/1700) Upgrade sdk fork with missing snapshot manager fix.
65+
66+
## [v9.0.0 - Nitrogen](https://github.com/osmosis-labs/osmosis/releases/tag/v9.0.0)
67+
68+
The Nitrogen release brings with it a number of features enabling further cosmwasm development work in Osmosis.
69+
It including breaking changes to the GAMM API's, many developer and node operator improvements for Cosmwasm & IBC, along with new txfee and governance features. In addition to various bug fixes and code quality improvements.
70+
71+
#### GAMM API changes
72+
73+
API changes were done to enable more CFMM's to be implemented within the existing framework.
74+
Integrators will have to update their messages and queries to adapt, please see https://github.com/osmosis-labs/osmosis/blob/main/x/gamm/breaking_changes_notes.md
75+
76+
#### Governance Changes
77+
78+
* [#1191](https://github.com/osmosis-labs/osmosis/pull/1191), [#1555](https://github.com/osmosis-labs/osmosis/pull/1555) Superfluid stakers now have their votes override their validators votes
79+
* [sdk #239](https://github.com/osmosis-labs/cosmos-sdk/pull/239) Governance can set a distinct voting period for every proposal type.
80+
81+
#### IBC
82+
83+
* [#1535](https://github.com/osmosis-labs/osmosis/pull/1535) Upgrade to [IBC v3](https://github.com/cosmos/ibc-go/releases/tag/v3.0.0)
84+
* [#1564](https://github.com/osmosis-labs/osmosis/pull/1564) Enable Interchain account host module
85+
* See [here](https://github.com/osmosis-labs/osmosis/blob/main/app/upgrades/v9/upgrades.go#L49-L71) for the supported messages
86+
87+
#### Txfees
88+
89+
[#1145](https://github.com/osmosis-labs/osmosis/pull/1145) Non-osmo txfees now get swapped into osmo everyday at epoch, and then distributed to stakers.
90+
91+
#### Cosmwasm
92+
93+
Upgrade from wasmd v0.23.x to [v0.27.0](https://github.com/CosmWasm/wasmd/releases/tag/v0.27.0). This has the following features:
94+
* State sync now works for cosmwasm state
95+
* Cosmwasm builds on M1 macs
96+
* Many security fixes
97+
98+
The TokenFactory module is added to the chain, making it possible for users and contracts to make new native tokens.
99+
Cosmwasm bindings have been added, to make swapping and creating these new tokens easier within the contract ecosystem.
100+
101+
* [#1640](https://github.com/osmosis-labs/osmosis/pull/1640) fix: localosmosis to work for testing cosmwasm contracts
102+
103+
### Other Features
104+
105+
* [#1629](https://github.com/osmosis-labs/osmosis/pull/1629) Fix bug in the airdrop claim script
106+
* [#1570](https://github.com/osmosis-labs/osmosis/pull/1570) upgrade sdk with app version fix for state-sync
107+
* [#1554](https://github.com/osmosis-labs/osmosis/pull/1554) local dev environment
108+
* [#1541](https://github.com/osmosis-labs/osmosis/pull/1541) Add arm64 support to Docker
109+
* [#1535](https://github.com/osmosis-labs/osmosis/pull/1535) upgrade wasmd to v0.27.0.rc3-osmo and ibc-go to v3
110+
* State sync now works for cosmwasm state
111+
* Cosmwasm builds on M1 macs
112+
* [#1435](https://github.com/osmosis-labs/osmosis/pull/1435) `x/tokenfactory` create denom fee for spam resistance
113+
* [#1253](https://github.com/osmosis-labs/osmosis/pull/1253) Add a message to increase the duration of a bonded lock.
114+
* [#1656](https://github.com/osmosis-labs/osmosis/pull/1656) Change camelCase to snake_case in proto.
115+
* [#1632](https://github.com/osmosis-labs/osmosis/pull/1632) augment SuperfluidDelegationsByDelegator query, return osmo equivilent is staked via superfluid
116+
117+
## [v8.0.0 - Emergency proposals upgrade](https://github.com/osmosis-labs/osmosis/releases/tag/v8.0.0)
118+
119+
This upgrade is a patch that must be hard forked in, as on-chain governance of Osmosis approved proposal [227](https://www.mintscan.io/osmosis/proposals/227) and proposal [228](https://www.mintscan.io/osmosis/proposals/228).
120+
121+
This upgrade includes:
122+
123+
* Adding height-gated AnteHandler message filter to filter unpooling tx pre-upgrade.
124+
* At block height 4402000 accelerates prop 225, which in turn moves incentives from certain pools according to props 222-224
125+
* Adds a msg allowing unpooling of UST pools.
126+
* This procedure is initiated by whitelisting pools 560, 562, 567, 578, 592, 610, 612, 615, 642, 679, 580, 635.
127+
* 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.
128+
* This procedure also includes locks that were already unbonding pre-upgrade and locks that were superfluid delegated.
129+
130+
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
131+
132+
### Features
133+
* {Across many PRs} Initiate emergency upgrade
134+
* [#1481] Emergency upgrade as of prop [226] (https://www.mintscan.io/osmosis/proposals/226)
135+
* [#1482] Checking Whitelisted Pools contain UST
136+
* [#1486] Update whitelisted pool IDs
137+
* [#1262] Add a forceprune command to the binaries, that prunes golevelDB data better
138+
* [#1154] Database stability improvements
139+
* [#840] Move lock.go functions into iterator.go, lock_refs.go and store.go
140+
* [#916] And a fn for Unbond and Burn tokens
141+
* [#908] Superfluid slashing code
142+
* [#904] LockAndSuperfluidDelegate
143+
>>>>>>> 9165ac2 (chore: upgrade sdk with snapshot manager fix (#1700))
57144
58145
### Minor improvements & Bug Fixes
59146

go.mod

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,11 @@ replace (
265265
// branch: v0.22.0-osmo-v7, current tag: v0.22.0-osmo-v7.2.0
266266
github.com/CosmWasm/wasmd => github.com/osmosis-labs/wasmd v0.22.0-osmo-v7.2
267267
// Our cosmos-sdk branch is: https://github.com/osmosis-labs/cosmos-sdk v0.45.0x-osmo-v7
268+
<<<<<<< HEAD
268269
github.com/cosmos/cosmos-sdk => github.com/osmosis-labs/cosmos-sdk v0.45.1-0.20220502203419-5831ca02b81f
270+
=======
271+
github.com/cosmos/cosmos-sdk => github.com/osmosis-labs/cosmos-sdk v0.45.1-0.20220607221533-51108b6dcab2
272+
>>>>>>> 9165ac2 (chore: upgrade sdk with snapshot manager fix (#1700))
269273
// Use Osmosis fast iavl
270274
github.com/cosmos/iavl => github.com/osmosis-labs/iavl v0.17.3-osmo-v7
271275
// Use osmosis fork of ibc-go

go.sum

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,12 +1004,21 @@ github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnh
10041004
github.com/openzipkin/zipkin-go v0.2.5/go.mod h1:KpXfKdgRDnnhsxw4pNIH9Md5lyFqKUa4YDFlwRYAMyE=
10051005
github.com/ory/dockertest v3.3.5+incompatible h1:iLLK6SQwIhcbrG783Dghaaa3WPzGc+4Emza6EbVUUGA=
10061006
github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs=
1007+
<<<<<<< HEAD
10071008
github.com/ory/dockertest/v3 v3.8.1 h1:vU/8d1We4qIad2YM0kOwRVtnyue7ExvacPiw1yDm17g=
10081009
github.com/ory/dockertest/v3 v3.8.1/go.mod h1:wSRQ3wmkz+uSARYMk7kVJFDBGm8x5gSxIhI7NDc+BAQ=
10091010
github.com/osmosis-labs/bech32-ibc v0.2.0-rc2 h1:7xy1pLtNiF2KaRSkolayZf4z3OfCJsO3eqBtEAXg2VA=
10101011
github.com/osmosis-labs/bech32-ibc v0.2.0-rc2/go.mod h1:0JCaioRNOVUiw7c3MngmKACnumaQ2sjPenXCnwxCttI=
10111012
github.com/osmosis-labs/cosmos-sdk v0.45.1-0.20220502203419-5831ca02b81f h1:1BbuqhpaQaRndbnkBPuvHWrZjKDcKytumr0ze+av120=
10121013
github.com/osmosis-labs/cosmos-sdk v0.45.1-0.20220502203419-5831ca02b81f/go.mod h1:pMiEr6WR7drhXAXK1FOdAKPazWCi7b+WOyWOF4O0OXY=
1014+
=======
1015+
github.com/ory/dockertest/v3 v3.9.1 h1:v4dkG+dlu76goxMiTT2j8zV7s4oPPEppKT8K8p2f1kY=
1016+
github.com/ory/dockertest/v3 v3.9.1/go.mod h1:42Ir9hmvaAPm0Mgibk6mBPi7SFvTXxEcnztDYOJ//uM=
1017+
github.com/osmosis-labs/bech32-ibc v0.3.0-rc1 h1:frHKHEdPfzoK2iMF2GeWKudLLzUXz+6GJcdZ/TMcs2k=
1018+
github.com/osmosis-labs/bech32-ibc v0.3.0-rc1/go.mod h1:X5/FZHMPL+B3ufuVyY2/koxVjd4hIwyTLjYP1DZwppQ=
1019+
github.com/osmosis-labs/cosmos-sdk v0.45.1-0.20220607221533-51108b6dcab2 h1:ixv07gC37fLPBZWLyVcQFcif+f+mqUtScI0jNY9zBpU=
1020+
github.com/osmosis-labs/cosmos-sdk v0.45.1-0.20220607221533-51108b6dcab2/go.mod h1:pMiEr6WR7drhXAXK1FOdAKPazWCi7b+WOyWOF4O0OXY=
1021+
>>>>>>> 9165ac2 (chore: upgrade sdk with snapshot manager fix (#1700))
10131022
github.com/osmosis-labs/iavl v0.17.3-osmo-v7 h1:6KcADC/WhL7yDmNQxUIJt2XmzNt4FfRmq9gRke45w74=
10141023
github.com/osmosis-labs/iavl v0.17.3-osmo-v7/go.mod h1:lJEOIlsd3sVO0JDyXWIXa9/Ur5FBscP26zJx0KxHjto=
10151024
github.com/osmosis-labs/ibc-go/v2 v2.0.2-osmo h1:XyYyDTjPIu7qX2nhQp9mboj7Pa9FEnjg1RXw73Ctv5U=

tests/e2e/chain/config.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ func initGenesis(c *internalChain, votingPeriod time.Duration) error {
300300
CurrentEpochStartTime: time.Time{},
301301
EpochCountingStarted: false,
302302
},
303+
<<<<<<< HEAD
303304
{
304305
Identifier: "day",
305306
StartTime: time.Time{},
@@ -310,6 +311,14 @@ func initGenesis(c *internalChain, votingPeriod time.Duration) error {
310311
EpochCountingStarted: false,
311312
},
312313
}
314+
=======
315+
},
316+
})
317+
if len(bankGenState.SupplyOffsets) == 0 {
318+
bankGenState.SupplyOffsets = []banktypes.GenesisSupplyOffset{}
319+
}
320+
}
321+
>>>>>>> 9165ac2 (chore: upgrade sdk with snapshot manager fix (#1700))
313322

314323
ez, err := util.Cdc.MarshalJSON(&epochGenState)
315324
if err != nil {

0 commit comments

Comments
 (0)