-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: John Letey <john@nobleassets.xyz> Co-authored-by: Dan Kanefsky <daniel.kanefsky@gmail.com>
- Loading branch information
1 parent
d04d16b
commit 2f53808
Showing
9 changed files
with
122 additions
and
16 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,10 @@ | ||
package argon | ||
|
||
// UpgradeName is the name of this specific software upgrade used on-chain. | ||
const UpgradeName = "argon" | ||
|
||
// TestnetChainID is the Chain ID of the Noble testnet (Grand). | ||
const TestnetChainID = "grand-1" | ||
|
||
// MainnetChainID is the Chain ID of the Noble mainnet. | ||
const MainnetChainID = "noble-1" |
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,13 @@ | ||
package argon | ||
|
||
import ( | ||
"github.com/cosmos/cosmos-sdk/baseapp" | ||
storeTypes "github.com/cosmos/cosmos-sdk/store/types" | ||
upgradeTypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" | ||
) | ||
|
||
func CreateStoreLoader(upgradeHeight int64) baseapp.StoreLoader { | ||
storeUpgrades := storeTypes.StoreUpgrades{} | ||
|
||
return upgradeTypes.UpgradeStoreLoader(upgradeHeight, &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,16 @@ | ||
package argon | ||
|
||
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, _ upgradeTypes.Plan, vm module.VersionMap) (module.VersionMap, error) { | ||
return mm.RunMigrations(ctx, configurator, vm) | ||
} | ||
} |
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,21 @@ | ||
package neon | ||
|
||
import ( | ||
"github.com/cosmos/cosmos-sdk/baseapp" | ||
storeTypes "github.com/cosmos/cosmos-sdk/store/types" | ||
|
||
// FiatTokenFactory | ||
fiatTokenFactoryTypes "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" | ||
// Upgrade | ||
upgradeTypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" | ||
) | ||
|
||
func CreateStoreLoader(upgradeHeight int64) baseapp.StoreLoader { | ||
storeUpgrades := storeTypes.StoreUpgrades{ | ||
Added: []string{ | ||
fiatTokenFactoryTypes.ModuleName, | ||
}, | ||
} | ||
|
||
return upgradeTypes.UpgradeStoreLoader(upgradeHeight, &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,23 @@ | ||
package radon | ||
|
||
import ( | ||
"github.com/cosmos/cosmos-sdk/baseapp" | ||
storeTypes "github.com/cosmos/cosmos-sdk/store/types" | ||
|
||
// GlobalFee | ||
globalFeeTypes "github.com/strangelove-ventures/noble/x/globalfee/types" | ||
// Tariff | ||
tariffTypes "github.com/strangelove-ventures/noble/x/tariff/types" | ||
// Upgrade | ||
upgradeTypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" | ||
) | ||
|
||
func CreateStoreLoader(upgradeHeight int64) baseapp.StoreLoader { | ||
storeUpgrades := storeTypes.StoreUpgrades{ | ||
Added: []string{ | ||
globalFeeTypes.ModuleName, tariffTypes.ModuleName, | ||
}, | ||
} | ||
|
||
return upgradeTypes.UpgradeStoreLoader(upgradeHeight, &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
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