-
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.
feat: storage-cost per storage-provider (#172)
- 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.