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: verify membership #598

Merged
merged 3 commits into from
Nov 20, 2024
Merged
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
1 change: 1 addition & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1219,5 +1219,6 @@ func getAcceptedStargateQueries() wasmdKeeper.AcceptedStargateQueries {
"/archway.cwerrors.v1.Query/Errors": &cwerrorsTypes.QueryErrorsRequest{},
"/archway.callback.v1.Query/EstimateCallbackFees": &callbackTypes.QueryEstimateCallbackFeesRequest{},
"/archway.callback.v1.Query/Params": &callbackTypes.QueryParamsRequest{},
"/ibc.core.client.v1.Query/VerifyMembership": &ibcclienttypes.QueryVerifyMembershipResponse{},
}
}
4 changes: 3 additions & 1 deletion app/app_upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (

"github.com/archway-network/archway/app/upgrades"
upgrade_0_6 "github.com/archway-network/archway/app/upgrades/06"
upgrade10_0_0 "github.com/archway-network/archway/app/upgrades/10_0_0"
upgrade1_0_0_rc_4 "github.com/archway-network/archway/app/upgrades/1_0_0_rc_4"
upgrade2_0_0 "github.com/archway-network/archway/app/upgrades/2_0_0"
upgrade3_0_0 "github.com/archway-network/archway/app/upgrades/3_0_0"
Expand All @@ -30,7 +31,8 @@ var Upgrades = []upgrades.Upgrade{
upgrade6_0_0.Upgrade, // v6.0.0
upgrade7_0_0.Upgrade, // v7.0.0
// upgrade8_0_0.Upgrade, // v8.0.0: was reserved for a consensus breaking wasmd upgrade
upgrade9_0_0.Upgrade, // v9.0.0
upgrade9_0_0.Upgrade, // v9.0.0
upgrade10_0_0.Upgrade, // v10.0.0

// constantine only
constantineupgrades.WASMD_50_Amino_Patch,
Expand Down
35 changes: 35 additions & 0 deletions app/upgrades/10_0_0/upgrades.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package upgrade8_0_0

import (
"context"

Check failure on line 4 in app/upgrades/10_0_0/upgrades.go

View workflow job for this annotation

GitHub Actions / lint

File is not `goimports`-ed with -local github.com/archway-network/archway (goimports)
upgradetypes "cosmossdk.io/x/upgrade/types"
"github.com/archway-network/archway/app/keepers"
"github.com/archway-network/archway/app/upgrades"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
)

const Name = "v10.0.0"
const NameAsciiArt = `
# ### ###
# # ## # # # #
# # # # # # #
# # # # # #
### # ### # ###

`

var Upgrade = upgrades.Upgrade{
UpgradeName: Name,
CreateUpgradeHandler: func(mm *module.Manager, cfg module.Configurator, keepers keepers.ArchwayKeepers) upgradetypes.UpgradeHandler {
return func(ctx context.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
migrations, err := mm.RunMigrations(ctx, cfg, fromVM)
if err != nil {
return nil, err
}

sdk.UnwrapSDKContext(ctx).Logger().Info(upgrades.ArchwayLogo + NameAsciiArt)
return migrations, nil
}
},
}
Loading