Documentation ¶
Index ¶
- func NewHandler(k Keeper) sdk.Handler
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- type Keeper
- func (k Keeper) Delete(ctx sdk.Context, key []byte, prefix []byte)
- func (k Keeper) Get(ctx sdk.Context, key []byte, prefix []byte, unmarshal UnmarshalFn) (i interface{}, found bool)
- func (k Keeper) GetAll(ctx sdk.Context, prefix []byte) sdk.Iterator
- func (k Keeper) GetAllIssuers(ctx sdk.Context) []types.Issuer
- func (k Keeper) GetAllIssuersWithCondition(ctx sdk.Context, key []byte, issuerSelector func(issuers types.Issuer) bool) (issuers []types.Issuer)
- func (k Keeper) GetIssuer(ctx sdk.Context, key []byte) (types.Issuer, bool)
- func (k Keeper) GetIssuerByToken(ctx sdk.Context, key []byte) (types.Issuer, bool)
- func (k Keeper) Issuers(c context.Context, req *types.QueryIssuersRequest) (*types.QueryIssuersResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MarshalIssuer(value interface{}) []byte
- func (k Keeper) Set(ctx sdk.Context, key []byte, prefix []byte, i interface{}, marshal MarshalFn)
- func (k Keeper) SetIssuer(ctx sdk.Context, issuer types.Issuer)
- func (k Keeper) UnmarshalIssuer(value []byte) (interface{}, bool)
- type MarshalFn
- type UnmarshalFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) Get ¶
func (k Keeper) Get( ctx sdk.Context, key []byte, prefix []byte, unmarshal UnmarshalFn, ) (i interface{}, found bool)
Get gets an item from the store by bytes
func (Keeper) GetAllIssuersWithCondition ¶
func (Keeper) GetIssuerByToken ¶
GetIssuerByToken retrieve an issuer by it's key TODO: this could be improved by only calling Get once in this file
func (Keeper) Issuers ¶
func (k Keeper) Issuers( c context.Context, req *types.QueryIssuersRequest, ) (*types.QueryIssuersResponse, error)
func (Keeper) MarshalIssuer ¶
func (Keeper) UnmarshalIssuer ¶
type MarshalFn ¶
type MarshalFn func(value interface{}) []byte
MarshalFn is a generic function to marshal interfaces
type UnmarshalFn ¶
UnmarshalFn is a generic function to unmarshal bytes
Click to show internal directories.
Click to hide internal directories.