-
Notifications
You must be signed in to change notification settings - Fork 40
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
1 parent
9dd34ea
commit 459bf08
Showing
3 changed files
with
66 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ import ( | |
) | ||
|
||
const ( | ||
AccountAddressPrefix = "fetch" | ||
AccountAddressPrefix = "asi" | ||
) | ||
|
||
var ( | ||
|
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,64 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/cosmos/cosmos-sdk/client/flags" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
const ( | ||
flagNewDescription = "new-description" | ||
Bech32Chars = "023456789acdefghjklmnpqrstuvwxyz" | ||
AddrDataLength = 32 | ||
WasmDataLength = 52 | ||
AddrChecksumLength = 6 | ||
AccAddressPrefix = "" | ||
ValAddressPrefix = "valoper" | ||
ConsAddressPrefix = "valcons" | ||
|
||
NewBaseDenom = "asi" | ||
NewDenom = "aasi" | ||
NewAddrPrefix = "asi" | ||
NewChainId = "asi-1" | ||
NewDescription = "ASI Token" | ||
|
||
OldBaseDenom = "fet" | ||
OldDenom = "afet" | ||
OldAddrPrefix = "fetch" | ||
) | ||
|
||
// ASIGenesisUpgradeCmd returns replace-genesis-values cobra Command. | ||
func ASIGenesisUpgradeCmd(defaultNodeHome string) *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: "asi-genesis-upgrade", | ||
Short: "This command carries out a full upgrade of the genesis file to the new ASI chain parameters.", | ||
Long: `The following command will upgrade the current genesis file to the new ASI chain parameters. The following changes will be made: | ||
- Chain ID will be updated to "asi-1" | ||
- The native coin denom will be updated to "asi" | ||
- The address prefix will be updated to "asi" | ||
- The old fetch addresses will be updated to the new asi addresses`, | ||
|
||
Args: cobra.ExactArgs(0), | ||
RunE: func(cmd *cobra.Command, args []string) error { | ||
return nil | ||
}, | ||
} | ||
|
||
cmd.Flags().String(flags.FlagHome, defaultNodeHome, "The application home directory") | ||
cmd.Flags().String(flags.FlagKeyringBackend, flags.DefaultKeyringBackend, "Select keyring's backend (os|file|kwallet|pass|test)") | ||
cmd.Flags().String(flagNewDescription, "", "The new description for the native coin in the genesis file") | ||
flags.AddQueryFlagsToCmd(cmd) | ||
|
||
return cmd | ||
} | ||
|
||
func ASIGenesisUpgradeReplaceDenomMetadata() {} | ||
|
||
func ASIGenesisUpgradeReplaceChainID() {} | ||
|
||
func ASIGenesisUpgradeReplaceDenom() {} | ||
|
||
func ASIGenesisUpgradeReplaceAddresses() {} | ||
|
||
func ASIGenesisUpgradeWithdrawIBCChannelsBalances() {} | ||
|
||
func ASIGenesisUpgradeWithdrawReconciliationBalances() {} |
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