Documentation ¶
Index ¶
- Variables
- func KeyAddress(addr string) []byte
- func KeyAddressRecord(addr string, id string) []byte
- func KeyRecord(recordHash string) []byte
- func KeyRecordId(id string) []byte
- func KeyRecordIdStr(seq uint64) string
- func ParamKeyTable() params.KeyTable
- type Keeper
- func (keeper Keeper) AddRecord(ctx sdk.Context, recordInfo *types.RecordInfo)
- func (keeper Keeper) CreateRecord(ctx sdk.Context, recordInfo *types.RecordInfo) sdk.Error
- func (keeper Keeper) GetLastRecordID(ctx sdk.Context) (recordID uint64)
- func (keeper Keeper) GetRecord(ctx sdk.Context, record string) *types.RecordInfo
- func (keeper Keeper) Getcdc() *codec.Codec
- func (keeper Keeper) List(ctx sdk.Context, params recordparams.RecordQueryParams) []*types.RecordInfo
- func (keeper Keeper) PeekCurrentRecordID(ctx sdk.Context) (recordID uint64, err sdk.Error)
- func (keeper Keeper) SetInitialRecordStartingRecordId(ctx sdk.Context, recordID uint64) sdk.Error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KeyDelimiter = ":" KeyNextRecordID = []byte("newRecordID") )
Key for getting next available recordID from the store
View Source
var (
ParamsStoreKeyRecordParams = []byte("recordparams")
)
Functions ¶
func KeyAddress ¶
Key for getting records by a specific address from the store
func KeyAddressRecord ¶
Key for saving a record by a specific address:id
func KeyRecordId ¶
func KeyRecordIdStr ¶
func ParamKeyTable ¶
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Issue Keeper
func NewKeeper ¶
func NewKeeper(cdc *codec.Codec, key sdk.StoreKey, paramsKeeper params.Keeper, paramSpace params.Subspace, codespace sdk.CodespaceType) Keeper
New record keeper Instance
func (Keeper) AddRecord ¶
func (keeper Keeper) AddRecord(ctx sdk.Context, recordInfo *types.RecordInfo)
add a record
func (Keeper) CreateRecord ¶
Create a record
func (Keeper) GetLastRecordID ¶
Get the last used recordID
func (Keeper) List ¶
func (keeper Keeper) List(ctx sdk.Context, params recordparams.RecordQueryParams) []*types.RecordInfo
func (Keeper) PeekCurrentRecordID ¶
Peeks the next available recordID without increasing it
Click to show internal directories.
Click to hide internal directories.