-
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(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 incluide claims module v2 migrations
- Loading branch information
1 parent
f4193c3
commit 2246089
Showing
55 changed files
with
9,315 additions
and
677 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,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.