github.com/cosmos/cosmos-sdk@v0.50.10/x/bank/exported/exported.go (about) 1 package exported 2 3 import ( 4 sdk "github.com/cosmos/cosmos-sdk/types" 5 paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" 6 ) 7 8 // GenesisBalance defines a genesis balance interface that allows for account 9 // address and balance retrieval. 10 type GenesisBalance interface { 11 GetAddress() string 12 GetCoins() sdk.Coins 13 } 14 15 type ( 16 ParamSet = paramtypes.ParamSet 17 18 // Subspace defines an interface that implements the legacy x/params Subspace 19 // type. 20 // 21 // NOTE: This is used solely for migration of x/params managed parameters. 22 Subspace interface { 23 GetParamSet(ctx sdk.Context, ps ParamSet) 24 Get(ctx sdk.Context, key []byte, ptr any) 25 } 26 )