-
Notifications
You must be signed in to change notification settings - Fork 704
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use the errors module to ease 47 transition * golangci-lint run ./... --fix --------- Co-authored-by: Marius Poke <marius.poke@posteo.de>
- Loading branch information
Showing
7 changed files
with
224 additions
and
222 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
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 |
---|---|---|
@@ -1,41 +1,40 @@ | ||
package types | ||
|
||
// | ||
// import ( | ||
// "encoding/json" | ||
// | ||
// "github.com/cosmos/cosmos-sdk/codec" | ||
// sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" | ||
//) | ||
// | ||
//// NewGenesisState - Create a new genesis state | ||
// "encoding/json" | ||
|
||
// errorsmod "cosmossdk.io/errors" | ||
// "github.com/cosmos/cosmos-sdk/codec" | ||
// ) | ||
|
||
// // NewGenesisState - Create a new genesis state | ||
// func NewGenesisState(params Params) *GenesisState { | ||
// return &GenesisState{ | ||
// Params: params, | ||
// } | ||
//} | ||
// | ||
//// DefaultGenesisState - Return a default genesis state | ||
// return &GenesisState{ | ||
// Params: params, | ||
// } | ||
// } | ||
|
||
// // DefaultGenesisState - Return a default genesis state | ||
// func DefaultGenesisState() *GenesisState { | ||
// return NewGenesisState(DefaultParams()) | ||
//} | ||
// | ||
//// GetGenesisStateFromAppState returns x/auth GenesisState given raw application | ||
//// genesis state. | ||
// return NewGenesisState(DefaultParams()) | ||
// } | ||
|
||
// // GetGenesisStateFromAppState returns x/auth GenesisState given raw application | ||
// // genesis state. | ||
// func GetGenesisStateFromAppState(cdc codec.Codec, appState map[string]json.RawMessage) *GenesisState { | ||
// var genesisState GenesisState | ||
// | ||
// if appState[ModuleName] != nil { | ||
// cdc.MustUnmarshalJSON(appState[ModuleName], &genesisState) | ||
// } | ||
// | ||
// return &genesisState | ||
//} | ||
// | ||
// var genesisState GenesisState | ||
|
||
// if appState[ModuleName] != nil { | ||
// cdc.MustUnmarshalJSON(appState[ModuleName], &genesisState) | ||
// } | ||
|
||
// return &genesisState | ||
// } | ||
|
||
// func ValidateGenesis(data GenesisState) error { | ||
// if err := data.Params.ValidateBasic(); err != nil { | ||
// return sdkerrors.Wrap(err, "globalfee params") | ||
// } | ||
// | ||
// return nil | ||
//} | ||
// if err := data.Params.ValidateBasic(); err != nil { | ||
// return errorsmod.Wrap(err, "globalfee params") | ||
// } | ||
|
||
// return nil | ||
// } |
Oops, something went wrong.