-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/main' into mbreithecker/delegation-multiple-…
…denoms
- Loading branch information
Showing
21 changed files
with
1,061 additions
and
128 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,21 @@ | ||
package v1_4_types | ||
|
||
import ( | ||
storeTypes "cosmossdk.io/store/types" | ||
"github.com/KYVENetwork/chain/x/bundles/types" | ||
"github.com/cosmos/cosmos-sdk/codec" | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
) | ||
|
||
// GetParams returns the current x/bundles module parameters. | ||
func GetParams(ctx sdk.Context, storeKey storeTypes.StoreKey, cdc codec.Codec) (params Params) { | ||
store := ctx.KVStore(storeKey) | ||
|
||
bz := store.Get(types.ParamsPrefix) | ||
if bz == nil { | ||
return params | ||
} | ||
|
||
cdc.MustUnmarshal(bz, ¶ms) | ||
return params | ||
} |
Oops, something went wrong.