Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) Codec() codec.BinaryMarshaler
- func (k Keeper) CreateOrUpdateProviderAttributes(ctx sdk.Context, id types.ProviderID, attr akashtypes.Attributes) error
- func (k Keeper) DeleteProviderAttributes(ctx sdk.Context, id types.ProviderID, keys []string) error
- func (k Keeper) GetProviderAttributes(ctx sdk.Context, id sdk.Address) (types.Providers, bool)
- func (k Keeper) GetProviderByValidator(ctx sdk.Context, id types.ProviderID) (types.Provider, bool)
- func (k Keeper) WithProvider(ctx sdk.Context, id sdk.Address, fn func(types.Provider) bool)
- func (k Keeper) WithProviders(ctx sdk.Context, fn func(types.Provider) bool)
- type Querier
- func (q Querier) AllProvidersAttributes(c context.Context, req *types.QueryAllProvidersAttributesRequest) (*types.QueryProvidersResponse, error)
- func (q Querier) ProviderAttributes(c context.Context, req *types.QueryProviderAttributesRequest) (*types.QueryProvidersResponse, error)
- func (q Querier) ProviderValidatorAttributes(c context.Context, req *types.QueryProviderValidatorRequest) (*types.QueryProvidersResponse, error)
- func (q Querier) ValidatorAttributes(c context.Context, req *types.QueryValidatorAttributesRequest) (*types.QueryProvidersResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the provider store
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryMarshaler, skey sdk.StoreKey) Keeper
NewKeeper creates and returns an instance for Market keeper
func (Keeper) CreateOrUpdateProviderAttributes ¶
func (k Keeper) CreateOrUpdateProviderAttributes(ctx sdk.Context, id types.ProviderID, attr akashtypes.Attributes) error
CreateOrUpdateProviderAttributes update signed provider attributes. creates new if key does not exist if key exists, existing values for matching pairs will be replaced
func (Keeper) DeleteProviderAttributes ¶
func (Keeper) GetProviderAttributes ¶
GetProviderAttributes returns a provider with given validator and owner id's
func (Keeper) GetProviderByValidator ¶
GetProviderByValidator returns a provider with given validator and owner id
func (Keeper) WithProvider ¶
WithProviders iterates all signed provider's attributes
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) AllProvidersAttributes ¶
func (q Querier) AllProvidersAttributes( c context.Context, req *types.QueryAllProvidersAttributesRequest, ) (*types.QueryProvidersResponse, error)
func (Querier) ProviderAttributes ¶
func (q Querier) ProviderAttributes( c context.Context, req *types.QueryProviderAttributesRequest, ) (*types.QueryProvidersResponse, error)
func (Querier) ProviderValidatorAttributes ¶
func (q Querier) ProviderValidatorAttributes( c context.Context, req *types.QueryProviderValidatorRequest, ) (*types.QueryProvidersResponse, error)
func (Querier) ValidatorAttributes ¶
func (q Querier) ValidatorAttributes( c context.Context, req *types.QueryValidatorAttributesRequest, ) (*types.QueryProvidersResponse, error)
Click to show internal directories.
Click to hide internal directories.