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
30 changed files
with
1,596 additions
and
482 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -328,8 +328,8 @@ jobs: | |
key: integration-test-cache-{hash} | ||
restore-keys: | | ||
integration-test-cache- | ||
- name: Test Pleiades upgrade | ||
run: tests/run-upgrade-test.sh v1.8.2 | ||
- name: Test Antares upgrade | ||
run: tests/run-upgrade-test.sh v1.9.3 | ||
env: | ||
NO_IMAGE_BUILD: True | ||
ibc_auto_forward_test: | ||
|
@@ -402,3 +402,17 @@ jobs: | |
run: tests/all-up-test.sh SEND_TO_ETH_FEES | ||
env: | ||
NO_IMAGE_BUILD: True | ||
ica_host_happy_path: | ||
runs-on: ubuntu-latest | ||
needs: happy-path-geth | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: jpribyl/[email protected] | ||
with: | ||
key: integration-test-cache-{hash} | ||
restore-keys: | | ||
integration-test-cache- | ||
- name: Test the Interchain Accounts Host module functionality with Gravity | ||
run: tests/all-up-test.sh ICA_HOST_HAPPY_PATH | ||
env: | ||
NO_IMAGE_BUILD: True |
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,10 @@ | ||
# Antares UPGRADE | ||
The *Antares* upgrade contains the following changes. | ||
|
||
## Summary of Changes | ||
|
||
* Updating Cosmos SDK version to v0.45.16, which is the end of the v0.45 line. A migration to v0.46 will happen in the next upgrade. | ||
* Updating IBC version to v4.3.1, since IBC v3 is no longer supported. | ||
* Adding Interchain Accounts Host module: | ||
* By enabling ICA it will be possible to send tokens to and from chains without interacting with your Gravity Bridge account. Combining Interchain Accounts and IBC Auto Forwarding, users on an ICA Controller chain will be able to send tokens to Cosmos via Gravity or transfer tokens to Ethereum through Gravity while only submitting messages to Ethereum and the Controller chain. That means a sophisticated UI can present all transactions through Metamask for convenience! | ||
* ICA will also enable Liquid Staking using platforms like Persistence, Quicksilver, Stride, and more! |
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 antares | ||
|
||
var OrionToAntaresPlanName = "antares" |
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,51 @@ | ||
package antares | ||
|
||
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" | ||
|
||
ica "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts" | ||
icacontrollertypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/controller/types" | ||
icahosttypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host/types" | ||
icatypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/types" | ||
) | ||
|
||
func GetAntaresUpgradeHandler( | ||
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 GetAntaresUpgradeHandler") | ||
} | ||
return func(ctx sdk.Context, plan upgradetypes.Plan, vmap module.VersionMap) (module.VersionMap, error) { | ||
ctx.Logger().Info("Antares upgrade: Starting upgrade") | ||
|
||
vmap[icatypes.ModuleName] = mm.Modules[icatypes.ModuleName].ConsensusVersion() | ||
icaHostParams := icahosttypes.Params{ | ||
HostEnabled: false, | ||
AllowMessages: []string{}, | ||
} | ||
icaControllerParams := icacontrollertypes.Params{ | ||
ControllerEnabled: false, | ||
} | ||
|
||
icaModule, ok := mm.Modules[icatypes.ModuleName].(ica.AppModule) | ||
if !ok { | ||
panic("module manager's ica module is not an ica.AppModule") | ||
} | ||
icaModule.InitModule(ctx, icaControllerParams, icaHostParams) | ||
ctx.Logger().Info("Antares Upgrade: Running any configured module migrations") | ||
out, outErr := mm.RunMigrations(ctx, *configurator, vmap) | ||
if outErr != nil { | ||
return out, outErr | ||
} | ||
ctx.Logger().Info("Asserting invariants after upgrade") | ||
crisisKeeper.AssertInvariants(ctx) | ||
|
||
ctx.Logger().Info("Antares Upgrade Successful") | ||
return out, nil | ||
} | ||
} |
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.