Skip to content

Commit abe5d81

Browse files
authored
Merge pull request #185 from aura-nw/merge_euphoria
Merge euphoria
2 parents 2cab28f + 751a68f commit abe5d81

16 files changed

Lines changed: 248 additions & 163 deletions

File tree

.VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.7.2
1+
v0.7.3

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ Ref: https://keepachangelog.com/en/1.0.0/
3737

3838
## Unreleased
3939

40+
## [v0.7.3] - 2024-01-18
41+
### Improvements
42+
- Enhance flow of post handle verify tx from smart account module
43+
- Bump wasmd version to v0.42.0 to support long term
44+
- Wasm patch security, pump wasmvm version to v1.4.2
45+
(https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2023-004.md)
46+
4047
## [v0.7.2] - 2023-11-20
4148

4249
### Features
@@ -156,4 +163,4 @@ Upgrade sdk to v0.47.4
156163

157164
- Bump wasmd version to version `v0.18.0`
158165
- Bump cosmos-sdk to version `v0.45.5`
159-
- Feegrant allows to use contract address
166+
- Feegrant allows to use contract address

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
88
COMMIT := $(shell git log -1 --format='%H')
99

1010
# library versions
11-
LIBWASM_VERSION = $(shell go list -m -f '{{ .Version }}' github.com/CosmWasm/wasmvm)
11+
# LIBWASM_VERSION = $(shell go list -m -f '{{ .Version }}' github.com/CosmWasm/wasmvm)
12+
LIBWASM_VERSION = "v1.4.3" # security patch
1213

1314
# docker
1415
DOCKER := $(shell which docker)
@@ -126,4 +127,4 @@ release:
126127
-v `pwd`:/go/src/github.com/aura-nw/aura \
127128
-w /go/src/github.com/aura-nw/aura \
128129
ghcr.io/goreleaser/goreleaser:$(GORELEASER_VERSION) \
129-
--clean --skip-validate
130+
--clean --skip-validate

app/app.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"strings"
99

1010
appparams "github.com/aura-nw/aura/app/params"
11+
v703 "github.com/aura-nw/aura/app/upgrades/v0.7.3"
1112

1213
v500 "github.com/aura-nw/aura/app/upgrades/v0.5.0"
1314
v501 "github.com/aura-nw/aura/app/upgrades/v0.5.1"
@@ -1136,6 +1137,11 @@ func (app *App) setupUpgradeHandlers() {
11361137
v702.CreateUpgradeHandler(app.mm, app.configurator),
11371138
)
11381139

1140+
app.UpgradeKeeper.SetUpgradeHandler(
1141+
v703.UpgradeName,
1142+
v703.CreateUpgradeHandler(app.mm, app.configurator),
1143+
)
1144+
11391145
// When a planned update height is reached, the old binary will panic
11401146
// writing on disk the height and name of the update that triggered it
11411147
// This will read that value, and execute the preparations for the upgrade.
@@ -1211,7 +1217,10 @@ func (app *App) setupUpgradeHandlers() {
12111217
}
12121218

12131219
case v702.UpgradeName:
1214-
// no store upgrades in v0.7.2
1220+
// no store upgrades in v0.7.2
1221+
case v703.UpgradeName:
1222+
// no store upgrades in v0.7.3
1223+
12151224
}
12161225

12171226
if storeUpgrades != nil {

app/upgrades/v0.7.3/upgrades.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package v703
2+
3+
import (
4+
sdk "github.com/cosmos/cosmos-sdk/types"
5+
"github.com/cosmos/cosmos-sdk/types/module"
6+
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
7+
)
8+
9+
// UpgradeName is the name of upgrade. This upgrade added new module
10+
const UpgradeName = "v0.7.3"
11+
12+
func CreateUpgradeHandler(
13+
mm *module.Manager,
14+
configurator module.Configurator,
15+
) upgradetypes.UpgradeHandler {
16+
return func(ctx sdk.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
17+
18+
return mm.RunMigrations(ctx, configurator, vm)
19+
}
20+
}

e2e.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ COPY . /aura
99
WORKDIR /aura
1010

1111
# See https://github.com/CosmWasm/wasmvm/releases
12-
ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.3.0/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a
13-
ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.3.0/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a
12+
ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.4.2/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a
13+
ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.4.2/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a
1414
#RUN sha256sum /lib/libwasmvm_muslc.aarch64.a | grep 9ecb037336bd56076573dc18c26631a9d2099a7f2b40dc04b6cae31ffb4c8f9a
1515
#RUN sha256sum /lib/libwasmvm_muslc.x86_64.a | grep 6e4de7ba9bad4ae9679c7f9ecf7e283dd0160e71567c6a7be6ae47c81ebe7f32
1616

@@ -40,4 +40,4 @@ COPY --from=go-builder /aura/build/aurad /usr/bin/aurad
4040
# rest grpc p2p rpc
4141
EXPOSE 1317 9090 26656 26657
4242

43-
CMD ["/usr/bin/aurad", "start"]
43+
CMD ["/usr/bin/aurad", "start"]

go.mod

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ go 1.19
55
require (
66
cosmossdk.io/api v0.3.1
77
cosmossdk.io/errors v1.0.0
8-
cosmossdk.io/math v1.0.1
9-
github.com/CosmWasm/wasmd v0.41.0
8+
cosmossdk.io/math v1.1.2
9+
github.com/CosmWasm/wasmd v0.42.0
1010
github.com/armon/go-metrics v0.4.1
1111
github.com/cometbft/cometbft v0.37.2
1212
github.com/cometbft/cometbft-db v0.8.0
1313
github.com/cosmos/cosmos-proto v1.0.0-beta.3
14-
github.com/cosmos/cosmos-sdk v0.47.4
14+
github.com/cosmos/cosmos-sdk v0.47.5
1515
github.com/cosmos/gogoproto v1.4.10
1616
github.com/cosmos/ibc-apps/modules/ibc-hooks/v7 v7.0.0-20230803181732-7c8f814d3b79
17-
github.com/cosmos/ibc-go/v7 v7.2.0
17+
github.com/cosmos/ibc-go/v7 v7.3.0
1818
github.com/gogo/protobuf v1.3.2
1919
github.com/golang/mock v1.6.0
2020
github.com/golang/protobuf v1.5.3
@@ -40,14 +40,14 @@ require (
4040
cloud.google.com/go/iam v1.1.0 // indirect
4141
cloud.google.com/go/storage v1.30.1 // indirect
4242
cosmossdk.io/core v0.6.1 // indirect
43-
cosmossdk.io/depinject v1.0.0-alpha.3 // indirect
44-
cosmossdk.io/log v1.1.1-0.20230704160919-88f2c830b0ca // indirect
43+
cosmossdk.io/depinject v1.0.0-alpha.4 // indirect
44+
cosmossdk.io/log v1.2.1 // indirect
4545
cosmossdk.io/tools/rosetta v0.2.1 // indirect
4646
filippo.io/edwards25519 v1.0.0 // indirect
4747
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
4848
github.com/99designs/keyring v1.2.2 // indirect
4949
github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect
50-
github.com/CosmWasm/wasmvm v1.3.0 // indirect
50+
github.com/CosmWasm/wasmvm v1.4.0 // indirect
5151
github.com/aws/aws-sdk-go v1.44.203 // indirect
5252
github.com/beorn7/perks v1.0.1 // indirect
5353
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
@@ -58,12 +58,15 @@ require (
5858
github.com/cespare/xxhash/v2 v2.2.0 // indirect
5959
github.com/chzyer/readline v1.5.1 // indirect
6060
github.com/cockroachdb/apd/v2 v2.0.2 // indirect
61+
github.com/cockroachdb/errors v1.10.0 // indirect
62+
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
63+
github.com/cockroachdb/redact v1.1.5 // indirect
6164
github.com/coinbase/rosetta-sdk-go/types v1.0.0 // indirect
6265
github.com/confio/ics23/go v0.9.0 // indirect
6366
github.com/cosmos/btcutil v1.0.5 // indirect
6467
github.com/cosmos/go-bip39 v1.0.0 // indirect
6568
github.com/cosmos/gogogateway v1.2.0 // indirect
66-
github.com/cosmos/iavl v0.20.0 // indirect
69+
github.com/cosmos/iavl v0.20.1 // indirect
6770
github.com/cosmos/ics23/go v0.10.0 // indirect
6871
github.com/cosmos/ledger-cosmos-go v0.12.2 // indirect
6972
github.com/cosmos/rosetta-sdk-go v0.10.0 // indirect
@@ -80,6 +83,7 @@ require (
8083
github.com/dvsekhvalnov/jose2go v1.5.0 // indirect
8184
github.com/felixge/httpsnoop v1.0.2 // indirect
8285
github.com/fsnotify/fsnotify v1.6.0 // indirect
86+
github.com/getsentry/sentry-go v0.23.0 // indirect
8387
github.com/ghodss/yaml v1.0.0 // indirect
8488
github.com/go-kit/kit v0.12.0 // indirect
8589
github.com/go-kit/log v0.2.1 // indirect
@@ -117,6 +121,8 @@ require (
117121
github.com/jmespath/go-jmespath v0.4.0 // indirect
118122
github.com/jmhodges/levigo v1.0.0 // indirect
119123
github.com/klauspost/compress v1.16.3 // indirect
124+
github.com/kr/pretty v0.3.1 // indirect
125+
github.com/kr/text v0.2.0 // indirect
120126
github.com/lib/pq v1.10.7 // indirect
121127
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
122128
github.com/linxGnu/grocksdb v1.7.16 // indirect
@@ -141,8 +147,9 @@ require (
141147
github.com/prometheus/procfs v0.10.1 // indirect
142148
github.com/rakyll/statik v0.1.7 // indirect
143149
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
150+
github.com/rogpeppe/go-internal v1.11.0 // indirect
144151
github.com/rs/cors v1.8.3 // indirect
145-
github.com/rs/zerolog v1.29.1 // indirect
152+
github.com/rs/zerolog v1.30.0 // indirect
146153
github.com/sasha-s/go-deadlock v0.3.1 // indirect
147154
github.com/spf13/afero v1.9.5 // indirect
148155
github.com/spf13/jwalterweatherman v1.1.0 // indirect
@@ -157,12 +164,12 @@ require (
157164
go.etcd.io/bbolt v1.3.7 // indirect
158165
go.opencensus.io v0.24.0 // indirect
159166
golang.org/x/crypto v0.11.0 // indirect
160-
golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc // indirect
167+
golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb // indirect
161168
golang.org/x/net v0.12.0 // indirect
162169
golang.org/x/oauth2 v0.8.0 // indirect
163-
golang.org/x/sys v0.10.0 // indirect
170+
golang.org/x/sys v0.11.0 // indirect
164171
golang.org/x/term v0.10.0 // indirect
165-
golang.org/x/text v0.11.0 // indirect
172+
golang.org/x/text v0.12.0 // indirect
166173
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
167174
google.golang.org/api v0.126.0 // indirect
168175
google.golang.org/appengine v1.6.7 // indirect
@@ -177,6 +184,7 @@ require (
177184

178185
replace (
179186
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0
187+
github.com/CosmWasm/wasmvm => github.com/CosmWasm/wasmvm v1.4.3
180188
// Ledger Nano S+ support
181189
github.com/cosmos/ledger-go => github.com/cosmos/ledger-go v0.9.3
182190

0 commit comments

Comments
 (0)