forked from Gravity-Bridge/Gravity-Bridge
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
1,373 additions
and
520 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
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,8 @@ | ||
# SingleStep UPGRADE | ||
|
||
The _Single Step_ upgrade contains the following changes. | ||
|
||
## Summary of Changes | ||
|
||
- Add a remove evm chain msg which allows anyone to create an on-chain proposal to remove an evm chain | ||
- Introduces a new CosmosReceiver string format to redirect OraiBridge tokens to appropriate source channels and destinations |
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 @@ | ||
package singlestep | ||
|
||
var PlanName = "singlestep" |
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,28 @@ | ||
package singlestep | ||
|
||
import ( | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
"github.com/cosmos/cosmos-sdk/types/module" | ||
crisiskeeper "github.com/cosmos/cosmos-sdk/x/crisis/keeper" | ||
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" | ||
) | ||
|
||
func GetUpgradeHandler( | ||
mm *module.Manager, configurator *module.Configurator, crisisKeeper *crisiskeeper.Keeper, | ||
) func( | ||
ctx sdk.Context, plan upgradetypes.Plan, vmap module.VersionMap, | ||
) (module.VersionMap, error) { | ||
if mm == nil { | ||
panic("Nil argument to GetSingleStepUpgradeHandler") | ||
} | ||
return func(ctx sdk.Context, plan upgradetypes.Plan, vmap module.VersionMap) (module.VersionMap, error) { | ||
|
||
ctx.Logger().Info("SingleStep Upgrade: Running any configured module migrations") | ||
out, outErr := mm.RunMigrations(ctx, *configurator, vmap) | ||
|
||
ctx.Logger().Info("Asserting invariants after upgrade") | ||
crisisKeeper.AssertInvariants(ctx) | ||
|
||
return out, outErr | ||
} | ||
} |
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,7 @@ | ||
# TRON UPGRADE | ||
|
||
The *Tron* upgrade contains the following changes. | ||
|
||
## Summary of Changes | ||
|
||
* Disable filtering evm net version |
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 @@ | ||
package tron | ||
|
||
var PlanName = "tron" |
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,28 @@ | ||
package tron | ||
|
||
import ( | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
"github.com/cosmos/cosmos-sdk/types/module" | ||
crisiskeeper "github.com/cosmos/cosmos-sdk/x/crisis/keeper" | ||
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" | ||
) | ||
|
||
func GetTronUpgradeHandler( | ||
mm *module.Manager, configurator *module.Configurator, crisisKeeper *crisiskeeper.Keeper, | ||
) func( | ||
ctx sdk.Context, plan upgradetypes.Plan, vmap module.VersionMap, | ||
) (module.VersionMap, error) { | ||
if mm == nil { | ||
panic("Nil argument to GetTronUpgradeHandler") | ||
} | ||
return func(ctx sdk.Context, plan upgradetypes.Plan, vmap module.VersionMap) (module.VersionMap, error) { | ||
|
||
ctx.Logger().Info("Tron Upgrade: Running any configured module migrations") | ||
out, outErr := mm.RunMigrations(ctx, *configurator, vmap) | ||
|
||
ctx.Logger().Info("Asserting invariants after upgrade") | ||
crisisKeeper.AssertInvariants(ctx) | ||
|
||
return out, outErr | ||
} | ||
} |
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
Oops, something went wrong.