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

testnet: update oracle check allowed price delay #192

Open
wants to merge 3 commits into
base: new-version
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ import (
v2_0_0 "github.com/onomyprotocol/onomy/app/upgrades/v2.0.0"
v2_1_0 "github.com/onomyprotocol/onomy/app/upgrades/v2.1.0"
v2_1_1 "github.com/onomyprotocol/onomy/app/upgrades/v2.1.1"
v2_1_2 "github.com/onomyprotocol/onomy/app/upgrades/v2.1.2"
"github.com/onomyprotocol/onomy/docs"
)

Expand Down Expand Up @@ -464,6 +465,7 @@ func (app *OnomyApp) setupUpgradeHandlers() {
app.UpgradeKeeper.SetUpgradeHandler(v2_0_0.Name, v2_0_0.CreateUpgradeHandler(app.mm, app.configurator, &app.AppKeepers))
app.UpgradeKeeper.SetUpgradeHandler(v2_1_0.Name, v2_1_0.CreateUpgradeHandler(app.mm, app.configurator, &app.AppKeepers))
app.UpgradeKeeper.SetUpgradeHandler(v2_1_1.Name, v2_1_1.CreateUpgradeHandler(app.mm, app.configurator, &app.AppKeepers))
app.UpgradeKeeper.SetUpgradeHandler(v2_1_2.Name, v2_1_2.CreateUpgradeHandler(app.mm, app.configurator, &app.AppKeepers))

upgradeInfo, err := app.UpgradeKeeper.ReadUpgradeInfoFromDisk()
if err != nil {
Expand Down
32 changes: 32 additions & 0 deletions app/upgrades/v2.1.2/upgrade.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Package v1_1_4 is contains chain upgrade of the corresponding version.
package v2_1_2 //nolint:revive,stylecheck // app version

import (
"context"
upgradetypes "cosmossdk.io/x/upgrade/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"

"github.com/onomyprotocol/onomy/app/keepers"
)

// Name is migration name.
const Name = "v2.1.2"

// UpgradeHandler is an x/upgrade handler.
func CreateUpgradeHandler(
mm *module.Manager,
configurator module.Configurator,
keepers *keepers.AppKeepers,
) upgradetypes.UpgradeHandler {

return func(c context.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
ctx := sdk.UnwrapSDKContext(c)
vm, err := mm.RunMigrations(ctx, configurator, vm)
if err != nil {
return vm, err
}

return vm, nil
}
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require (
github.com/golang/protobuf v1.5.4
github.com/gorilla/mux v1.8.1 // indirect
github.com/grpc-ecosystem/grpc-gateway v1.16.0
github.com/onomyprotocol/reserve v0.1.8-testnet
github.com/onomyprotocol/reserve v0.1.8-testnet.0.20241127174502-6cf1908802da
github.com/spf13/cast v1.6.0
github.com/spf13/cobra v1.8.1
github.com/spf13/pflag v1.0.5
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -825,8 +825,8 @@ github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DV
github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo=
github.com/onomyprotocol/onomy-sdk v0.50.8-onomy-sdk h1:NA3OLSooUvsULODvnmtXik+lLzOVlM/oL3bP8j0bx/w=
github.com/onomyprotocol/onomy-sdk v0.50.8-onomy-sdk/go.mod h1:Zb+DgHtiByNwgj71IlJBXwOq6dLhtyAq3AgqpXm/jHo=
github.com/onomyprotocol/reserve v0.1.8-testnet h1:utfYZoD9tyg7DWuectAF+8E7nSK7p33pubaCDCYm9Ss=
github.com/onomyprotocol/reserve v0.1.8-testnet/go.mod h1:Yf1czGGCaFEjsDZ2CX9VYCawzAIEEjBAdK6kjD1ocXE=
github.com/onomyprotocol/reserve v0.1.8-testnet.0.20241127174502-6cf1908802da h1:GUoV5tbw3/5XJkslhNuOgQRRH25IwIkFCS136XbiWAA=
github.com/onomyprotocol/reserve v0.1.8-testnet.0.20241127174502-6cf1908802da/go.mod h1:Yf1czGGCaFEjsDZ2CX9VYCawzAIEEjBAdK6kjD1ocXE=
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
Expand Down
Loading