-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated whitelist and upgrade handler 1.17.1
- Loading branch information
vlad
committed
Mar 3, 2025
1 parent
00a81ba
commit 46141d2
Showing
3 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package v1_17_1 | ||
|
||
import ( | ||
"context" | ||
"fmt" | ||
"os" | ||
|
||
"cosmossdk.io/log" | ||
store "cosmossdk.io/store/types" | ||
upgradetypes "cosmossdk.io/x/upgrade/types" | ||
"github.com/cosmos/cosmos-sdk/types/module" | ||
"github.com/scrtlabs/SecretNetwork/app/keepers" | ||
"github.com/scrtlabs/SecretNetwork/app/upgrades" | ||
//"github.com/scrtlabs/SecretNetwork/go-cosmwasm/api" | ||
) | ||
|
||
const upgradeName = "v1.17.1" | ||
|
||
var Upgrade = upgrades.Upgrade{ | ||
UpgradeName: upgradeName, | ||
CreateUpgradeHandler: createUpgradeHandler, | ||
StoreUpgrades: store.StoreUpgrades{}, | ||
} | ||
|
||
func createUpgradeHandler(mm *module.Manager, _ *keepers.SecretAppKeepers, configurator module.Configurator, | ||
) upgradetypes.UpgradeHandler { | ||
return func(ctx context.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { | ||
logger := log.NewLogger(os.Stderr) | ||
logger.Info(` _ _ _____ _____ _____ _____ ______ `) | ||
logger.Info(`| | | | __ \ / ____| __ \ /\ | __ \| ____|`) | ||
logger.Info(`| | | | |__) | | __| |__) | / \ | | | | |__ `) | ||
logger.Info(`| | | | ___/| | |_ | _ / / /\ \ | | | | __| `) | ||
logger.Info(`| |__| | | | |__| | | \ \ / ____ \| |__| | |____ `) | ||
logger.Info(` \____/|_| \_____|_| \_\/_/ \_\_____/|______|`) | ||
|
||
logger.Info(fmt.Sprintf("Running module migrations for %s...", upgradeName)) | ||
|
||
// Migration from legacy must have already be done BEFORE running this upgrade | ||
|
||
// _, err := api.MigrationOp(4) | ||
// if err != nil { | ||
// return nil, err | ||
// } | ||
|
||
return mm.RunMigrations(ctx, configurator, vm) | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
cosmwasm/enclaves/shared/block-verifier/fixtures/validator_whitelist.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
61D6833562A2EAFB0F7D9FDD8AD9F2BA0A1A7F86,2C0D41A680B85E524937089F8CB7272D7D06BAB9,A990AE301F4E8AB8E14D6965897303E30C7D3456,344FF55EECD92E268A8DA0A7F5C8A959FFBEA063,A3F845F5D93356584BF276FCBB8F119BEB5DAE2A,40998CBE01E892CC9BFDB2BEF5B662AD954F3787,455DDE08C93C002F0356792BCA72AD3AAB75C096 | ||
61D6833562A2EAFB0F7D9FDD8AD9F2BA0A1A7F86,2C0D41A680B85E524937089F8CB7272D7D06BAB9,A990AE301F4E8AB8E14D6965897303E30C7D3456,344FF55EECD92E268A8DA0A7F5C8A959FFBEA063,A3F845F5D93356584BF276FCBB8F119BEB5DAE2A,40998CBE01E892CC9BFDB2BEF5B662AD954F3787,455DDE08C93C002F0356792BCA72AD3AAB75C096,86BA1F5334D21B1260AE3816BC0CEEAD90CAEC0B,2117A1BD1125337C1A17C46D96EC010FB53B8BCB |