Skip to content

Commit 5a42c94

Browse files
committed
chore: bump akash fork of cosmos-sdk
Signed-off-by: Artur Troian <troian@users.noreply.github.com>
1 parent 5c8e86e commit 5a42c94

5 files changed

Lines changed: 13 additions & 14 deletions

File tree

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ replace (
6464
// use akash fork of cometbft
6565
github.com/cometbft/cometbft => github.com/akash-network/cometbft v0.38.21-akash.1
6666
// use akash fork of cosmos sdk
67-
github.com/cosmos/cosmos-sdk => github.com/akash-network/cosmos-sdk v0.53.6-akash.1
67+
github.com/cosmos/cosmos-sdk => github.com/akash-network/cosmos-sdk v0.53.7-akash.1
6868

6969
github.com/cosmos/gogoproto => github.com/akash-network/gogoproto v1.7.0-akash.2
7070

@@ -98,7 +98,6 @@ require (
9898
cloud.google.com/go/iam v1.5.2 // indirect
9999
cloud.google.com/go/monitoring v1.24.2 // indirect
100100
cloud.google.com/go/storage v1.50.0 // indirect
101-
cosmossdk.io/log v1.6.1 // indirect
102101
cosmossdk.io/x/tx v0.14.0 // indirect
103102
filippo.io/edwards25519 v1.1.0 // indirect
104103
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect

go.sum

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,8 +1219,6 @@ cosmossdk.io/errors v1.0.2 h1:wcYiJz08HThbWxd/L4jObeLaLySopyyuUFB5w4AGpCo=
12191219
cosmossdk.io/errors v1.0.2/go.mod h1:0rjgiHkftRYPj//3DrD6y8hcm40HcPv/dR4R/4efr0k=
12201220
cosmossdk.io/log v1.6.1 h1:YXNwAgbDwMEKwDlCdH8vPcoggma48MgZrTQXCfmMBeI=
12211221
cosmossdk.io/log v1.6.1/go.mod h1:gMwsWyyDBjpdG9u2avCFdysXqxq28WJapJvu+vF1y+E=
1222-
cosmossdk.io/log/v2 v2.1.0 h1:oWLWqZ1UObWu5hIS3dvTW7QyjtvlmSzC3LOy04U/hVI=
1223-
cosmossdk.io/log/v2 v2.1.0/go.mod h1:zDNpuRD2sWw4zuw1lZYg/jxKftVG+VizgcWAWkIorwY=
12241222
cosmossdk.io/math v1.5.3 h1:WH6tu6Z3AUCeHbeOSHg2mt9rnoiUWVWaQ2t6Gkll96U=
12251223
cosmossdk.io/math v1.5.3/go.mod h1:uqcZv7vexnhMFJF+6zh9EWdm/+Ylyln34IvPnBauPCQ=
12261224
cosmossdk.io/schema v1.1.0 h1:mmpuz3dzouCoyjjcMcA/xHBEmMChN+EHh8EHxHRHhzE=
@@ -1289,8 +1287,8 @@ github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3
12891287
github.com/ajstarks/svgo v0.0.0-20211024235047-1546f124cd8b/go.mod h1:1KcenG0jGWcpt8ov532z81sp/kMMUG485J2InIOyADM=
12901288
github.com/akash-network/cometbft v0.38.21-akash.1 h1:li8x87YansHyID6VBTOxe/yBLRcdb6lQnjAeTvnMn/w=
12911289
github.com/akash-network/cometbft v0.38.21-akash.1/go.mod h1:UCu8dlHqvkAsmAFmWDRWNZJPlu6ya2fTWZlDrWsivwo=
1292-
github.com/akash-network/cosmos-sdk v0.53.6-akash.1 h1:Da37/oS0rbO77FfUNbcNeYp9oKZr2ktV3jhA1sjv+KY=
1293-
github.com/akash-network/cosmos-sdk v0.53.6-akash.1/go.mod h1:ZKpVIHvKJgJJqOO2DpIJTwSyuKC0ekgIySUJsEPKnFs=
1290+
github.com/akash-network/cosmos-sdk v0.53.7-akash.1 h1:1Ck4izBdr50qPHFueBCICVxRO1CXqZShAyOyLCXh5pU=
1291+
github.com/akash-network/cosmos-sdk v0.53.7-akash.1/go.mod h1:ZKpVIHvKJgJJqOO2DpIJTwSyuKC0ekgIySUJsEPKnFs=
12941292
github.com/akash-network/gogoproto v1.7.0-akash.2 h1:zY5seM6kBOLMBWn15t8vrY1ao4J1HjrhNaEeO/Soro0=
12951293
github.com/akash-network/gogoproto v1.7.0-akash.2/go.mod h1:yWChEv5IUEYURQasfyBW5ffkMHR/90hiHgbNgrtp4j0=
12961294
github.com/akash-network/ledger-go v0.16.0 h1:75oasauaV0dNGOgMB3jr/rUuxJC0gHDdYYnQW+a4bvg=

testutil/network/rpc.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@ import (
1414
// needed by DiscoverClient to detect the API version.
1515
type LocalRPCClient struct {
1616
*local.Local
17+
registry *aclient.VersionRegistry
1718
}
1819

1920
// NewLocalRPCClient creates a new LocalRPCClient wrapping the local client
20-
func NewLocalRPCClient(lc *local.Local) *LocalRPCClient {
21-
return &LocalRPCClient{Local: lc}
21+
// with a local registry instance to avoid mutating global discovery state.
22+
func NewLocalRPCClient(lc *local.Local, registry *aclient.VersionRegistry) *LocalRPCClient {
23+
return &LocalRPCClient{Local: lc, registry: registry}
2224
}
2325

2426
// Akash implements the RPCClient interface required by chain-sdk.
25-
// Returns version discovery info from the global registry.
27+
// Returns version discovery info from the local registry.
2628
func (c *LocalRPCClient) Akash(_ context.Context) (*aclient.Akash, error) {
27-
return aclient.GetRegistry().ToAkash(), nil
29+
return c.registry.ToAkash(), nil
2830
}

testutil/network/util.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ func startInProcess(cfg Config, val *Validator) error {
4848
app := cfg.AppConstructor(*val)
4949
val.app = app
5050

51-
aclient.SetRegistry(aclient.DefaultRegistry(
51+
registry := aclient.DefaultRegistry(
5252
aclient.WithChainID(cfg.ChainID),
53-
))
53+
)
5454

5555
appGenesisProvider := func() (node.ChecksummedGenesisDoc, error) {
5656
appGenesis, err := genutiltypes.AppGenesisFromFile(cmtCfg.GenesisFile())
@@ -90,7 +90,7 @@ func startInProcess(cfg Config, val *Validator) error {
9090
val.tmNode = tmNode
9191

9292
if val.RPCAddress != "" {
93-
val.RPCClient = NewLocalRPCClient(local.New(tmNode))
93+
val.RPCClient = NewLocalRPCClient(local.New(tmNode), registry)
9494
}
9595

9696
// We'll need a RPC client if the validator exposes a gRPC or REST endpoint.

upgrades/software/v2.1.0/market.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type marketMigrations struct {
1212
}
1313

1414
func newMarketMigration(m utypes.Migrator) utypes.Migration {
15-
return deploymentMigrations{Migrator: m}
15+
return marketMigrations{Migrator: m}
1616
}
1717

1818
func (m marketMigrations) GetHandler() sdkmodule.MigrationHandler {

0 commit comments

Comments
 (0)