Documentation ¶
Index ¶
- Constants
- func MakeTestPubKey(pk string) crypto.PubKey
- type Keeper
- func (k Keeper) Get(ctx sdk.Context, key []byte, prefix []byte, unmarshal UnmarshalFn) (i interface{}, found bool)
- func (k Keeper) GetAccount(ctx sdk.Context, key []byte) (types.Account, bool)
- func (k Keeper) GetAll(ctx sdk.Context, prefix []byte, unmarshal UnmarshalFn) (i []interface{})
- func (k Keeper) GetIssuer(ctx sdk.Context, key []byte) (types.Issuer, bool)
- func (k Keeper) GetIssuerByToken(ctx sdk.Context, token string) (types.Issuer, bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Set(ctx sdk.Context, key []byte, prefix []byte, i interface{})
- func (k Keeper) SetAccount(ctx sdk.Context, key []byte, account types.Account)
- func (k Keeper) SetIssuer(ctx sdk.Context, key []byte, issuer types.Issuer)
- func (k Keeper) UnmarshalAccount(value []byte) (interface{}, bool)
- func (k Keeper) UnmarshalIssuer(value []byte) (interface{}, bool)
- type UnmarshalFn
Constants ¶
View Source
const ( SamplePubKey = "b7a3c12dc0c8c748ab07525b701122b88bd78f600c76342d27f25e5f92444cde" SamplePubKey2 = "b7a3c12dc0c8c748ab07525b701122b88bd78f600c76342d27f25e5f92444cdf" )
Variables ¶
This section is empty.
Functions ¶
func MakeTestPubKey ¶
Types ¶
type Keeper ¶
type Keeper struct { CoinKeeper bank.Keeper SupplyKeeper supply.Keeper // contains filtered or unexported fields }
Keeper of the issuer store
func NewKeeper ¶
func NewKeeper(coinKeeper bank.Keeper, supplyKeeper supply.Keeper, cdc *codec.Codec, key sdk.StoreKey) Keeper
NewKeeper creates a issuer keeper
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) GetAccount ¶
func (Keeper) GetAll ¶
func (k Keeper) GetAll(ctx sdk.Context, prefix []byte, unmarshal UnmarshalFn) (i []interface{})
GetAll values from with a prefix from the store
func (Keeper) GetIssuerByToken ¶
func (Keeper) SetAccount ¶
func (Keeper) UnmarshalAccount ¶
func (Keeper) UnmarshalIssuer ¶
type UnmarshalFn ¶
UnmarshalFn is a generic function to unmarshal bytes
Click to show internal directories.
Click to hide internal directories.