-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix(cmd): fix halt-height param * Docs (#354) * chore(app): update module specs * chore(app): update module specs * Chain Upgrade v3 (#375) * fix(deps): bump ledger modules * fix(StargateQueries): use a sync pool when unmarshalling responses of protobuf objects, fix route * fix(iid): fix DeleteController subtraction func * feat(entity): add MsgRevokeEntityAccountAuthz * chore(docs): add MsgRevokeEntityAccountAuthz to entity specs * fix(claims): fix claims processPayment distribution for evaluations * chore(iid): remove unnecesary panics * feat(claims): add INVALIDATED as evaluation option, skip eval payment then, add invalidated to collection * fix(claims): update status to invalidated where missed * feat(claims): add collection update messages * fix(modules): add extra validation for messages, and enum validation * chore(scripts): fix local script to include denom metadata on startup * feat(upgrade): add upgrade v3, which include claims module v2 migrations
- Loading branch information
1 parent
c6a7496
commit af6e909
Showing
118 changed files
with
13,123 additions
and
61,137 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
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,3 @@ | ||
# v3 | ||
|
||
v3 release changes is availabale [here](https://github.com/ixofoundation/ixo-blockchain/releases/tag/v3.0.0). |
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,16 @@ | ||
package v3 | ||
|
||
import ( | ||
store "github.com/cosmos/cosmos-sdk/store/types" | ||
|
||
"github.com/ixofoundation/ixo-blockchain/v2/app/upgrades" | ||
) | ||
|
||
// UpgradeName defines the on-chain upgrade name for the Ixo v3 upgrade. | ||
const UpgradeName = "v3" | ||
|
||
var Upgrade = upgrades.Upgrade{ | ||
UpgradeName: UpgradeName, | ||
CreateUpgradeHandler: CreateUpgradeHandler, | ||
StoreUpgrades: store.StoreUpgrades{}, | ||
} |
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,25 @@ | ||
package v3 | ||
|
||
import ( | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
"github.com/cosmos/cosmos-sdk/types/module" | ||
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" | ||
) | ||
|
||
func CreateUpgradeHandler( | ||
mm *module.Manager, | ||
configurator module.Configurator, | ||
) upgradetypes.UpgradeHandler { | ||
return func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { | ||
ctx.Logger().Info("🚀 executing Ixo v3 upgrade 🚀") | ||
|
||
// Run migrations before applying any other state changes. | ||
// NOTE: DO NOT PUT ANY STATE CHANGES BEFORE RunMigrations(). | ||
migrations, err := mm.RunMigrations(ctx, configurator, fromVM) | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
||
return migrations, nil | ||
} | ||
} |
Oops, something went wrong.