Documentation ¶
Index ¶
- type IKeeper
- type Keeper
- func (k Keeper) Codec() codec.BinaryCodec
- func (k Keeper) Create(ctx sdk.Context, provider types.Provider) error
- func (k Keeper) Delete(ctx sdk.Context, id sdk.Address)
- func (k Keeper) Get(ctx sdk.Context, id sdk.Address) (types.Provider, bool)
- func (k Keeper) NewQuerier() Querier
- func (k Keeper) StoreKey() sdk.StoreKey
- func (k Keeper) Update(ctx sdk.Context, provider types.Provider) error
- func (k Keeper) WithProviders(ctx sdk.Context, fn func(types.Provider) bool)
- type Querier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IKeeper ¶
type IKeeper interface { Codec() codec.BinaryCodec StoreKey() sdk.StoreKey Get(ctx sdk.Context, id sdk.Address) (types.Provider, bool) Create(ctx sdk.Context, provider types.Provider) error WithProviders(ctx sdk.Context, fn func(types.Provider) bool) Update(ctx sdk.Context, provider types.Provider) error Delete(ctx sdk.Context, id sdk.Address) NewQuerier() Querier }
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the provider store
func (Keeper) Create ¶
Create creates a new provider or returns an error if the provider exists already
func (Keeper) NewQuerier ¶
type Querier ¶
type Querier struct {
Keeper
}
Querier is used as Keeper will have duplicate methods if used directly, and gRPC names take precedence over keeper
func (Querier) Provider ¶
func (k Querier) Provider(c context.Context, req *types.QueryProviderRequest) (*types.QueryProviderResponse, error)
Provider returns provider details based on owner address
func (Querier) Providers ¶
func (k Querier) Providers(c context.Context, req *types.QueryProvidersRequest) (*types.QueryProvidersResponse, error)
Providers returns providers list
Click to show internal directories.
Click to hide internal directories.