Versions in this module Expand all Collapse all v0 v0.8.0 Feb 10, 2023 Changes in this version + const BondIDAttributeName + const ExpiryTimeAttributeName + var PrefixAttributesIndex = []byte + var PrefixAuctionToAuthorityNameIndex = []byte + var PrefixBlockChangesetIndex = []byte + var PrefixBondIDToAuthoritiesIndex = []byte + var PrefixBondIDToRecordsIndex = []byte + var PrefixCIDToNamesIndex = []byte + var PrefixCIDToRecordIndex = []byte + var PrefixCRNToNameRecordIndex = []byte + var PrefixExpiryTimeToAuthoritiesIndex = []byte + var PrefixExpiryTimeToRecordsIndex = []byte + var PrefixNameAuthorityRecordIndex = []byte + func AddRecordToNameMapping(store sdk.KVStore, id string, crn string) + func GetAttributeValue(input *types.QueryListRecordsRequest_ValueInput) interface + func GetAttributesIndexKey(key string, value interface{}) []byte + func GetAuctionToAuthorityIndexKey(auctionID string) []byte + func GetBlockChangeSetIndexKey(height int64) []byte + func GetCIDToNamesIndexKey(id string) []byte + func GetNameAuthority(store sdk.KVStore, codec codec.BinaryCodec, name string) types.NameAuthority + func GetNameAuthorityIndexKey(name string) []byte + func GetNameRecord(store sdk.KVStore, codec codec.BinaryCodec, crn string) *types.NameRecord + func GetNameRecordIndexKey(crn string) []byte + func GetRecordIndexKey(id string) []byte + func HasNameAuthority(store sdk.KVStore, name string) bool + func NewMsgServerImpl(keeper Keeper) types.MsgServer + func RecordInvariants(k Keeper) sdk.Invariant + func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper) + func RemoveBondToAuthorityIndexEntry(store sdk.KVStore, bondID string, name string) + func RemoveRecordToNameMapping(store sdk.KVStore, id string, crn string) + func ResolveCRN(store sdk.KVStore, crn string, k Keeper, c sdk.Context) (*types.Record, *types.NameRecord) + func SetNameAuthority(ctx sdk.Context, store sdk.KVStore, codec codec.BinaryCodec, name string, ...) + func SetNameRecord(store sdk.KVStore, codec codec.BinaryCodec, crn string, id string, ...) + type Keeper struct + func NewKeeper(cdc codec.BinaryCodec, accountKeeper auth.AccountKeeper, ...) Keeper + func (k Keeper) AddAuctionToAuthorityMapping(ctx sdk.Context, auctionID string, name string) + func (k Keeper) AddBondToAuthorityIndexEntry(ctx sdk.Context, bondID string, name string) + func (k Keeper) AddBondToRecordIndexEntry(ctx sdk.Context, bondID string, id string) + func (k Keeper) AuthorityExpiryQueueIterator(ctx sdk.Context, endTime time.Time) sdk.Iterator + func (k Keeper) DeleteAuthorityExpiryQueue(ctx sdk.Context, name string, authority types.NameAuthority) + func (k Keeper) DeleteAuthorityExpiryQueueTimeSlice(ctx sdk.Context, timestamp time.Time) + func (k Keeper) DeleteRecordExpiryQueue(ctx sdk.Context, record types.Record) + func (k Keeper) DeleteRecordExpiryQueueTimeSlice(ctx sdk.Context, timestamp time.Time) + func (k Keeper) GetAllExpiredAuthorities(ctx sdk.Context, currTime time.Time) (expiredAuthorityNames []string) + func (k Keeper) GetAllExpiredRecords(ctx sdk.Context, currTime time.Time) (expiredRecordCIDs []string) + func (k Keeper) GetAttributeMapping(ctx sdk.Context, key []byte) ([]string, error) + func (k Keeper) GetAuthorityExpiryQueue(ctx sdk.Context) []*types.ExpiryQueueRecord + func (k Keeper) GetAuthorityExpiryQueueTimeSlice(ctx sdk.Context, timestamp time.Time) []string + func (k Keeper) GetModuleBalances(ctx sdk.Context) []*types.AccountBalance + func (k Keeper) GetNameAuthority(ctx sdk.Context, name string) types.NameAuthority + func (k Keeper) GetNameRecord(ctx sdk.Context, crn string) *types.NameRecord + func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) + func (k Keeper) GetRecord(ctx sdk.Context, id string) (record types.Record) + func (k Keeper) GetRecordExpiryQueue(ctx sdk.Context) []*types.ExpiryQueueRecord + func (k Keeper) GetRecordExpiryQueueTimeSlice(ctx sdk.Context, timestamp time.Time) []string + func (k Keeper) HasNameAuthority(ctx sdk.Context, name string) bool + func (k Keeper) HasNameRecord(ctx sdk.Context, crn string) bool + func (k Keeper) HasRecord(ctx sdk.Context, id string) bool + func (k Keeper) InsertAuthorityExpiryQueue(ctx sdk.Context, name string, expiryTime time.Time) + func (k Keeper) InsertRecordExpiryQueue(ctx sdk.Context, val types.Record) + func (k Keeper) ListNameAuthorityRecords(ctx sdk.Context) map[string]types.NameAuthority + func (k Keeper) ListNameRecords(ctx sdk.Context) []types.NameEntry + func (k Keeper) ListRecords(ctx sdk.Context) []types.Record + func (k Keeper) ProcessAssociateBond(ctx sdk.Context, msg types.MsgAssociateBond) error + func (k Keeper) ProcessAttributes(ctx sdk.Context, record types.RecordType) error + func (k Keeper) ProcessAuthorityExpiryQueue(ctx sdk.Context) + func (k Keeper) ProcessDeleteName(ctx sdk.Context, msg types.MsgDeleteNameAuthority) error + func (k Keeper) ProcessDissociateBond(ctx sdk.Context, msg types.MsgDissociateBond) error + func (k Keeper) ProcessDissociateRecords(ctx sdk.Context, msg types.MsgDissociateRecords) error + func (k Keeper) ProcessReAssociateRecords(ctx sdk.Context, msg types.MsgReAssociateRecords) error + func (k Keeper) ProcessRecordExpiryQueue(ctx sdk.Context) + func (k Keeper) ProcessRenewRecord(ctx sdk.Context, msg types.MsgRenewRecord) error + func (k Keeper) ProcessReserveAuthority(ctx sdk.Context, msg types.MsgReserveAuthority) error + func (k Keeper) ProcessReserveSubAuthority(ctx sdk.Context, name string, msg types.MsgReserveAuthority) error + func (k Keeper) ProcessSetAuthorityBond(ctx sdk.Context, msg types.MsgSetAuthorityBond) error + func (k Keeper) ProcessSetName(ctx sdk.Context, msg types.MsgSetName) error + func (k Keeper) ProcessSetRecord(ctx sdk.Context, msg types.MsgSetRecord) (*types.RecordType, error) + func (k Keeper) PutRecord(ctx sdk.Context, record types.Record) + func (k Keeper) RecordExpiryQueueIterator(ctx sdk.Context, endTime time.Time) sdk.Iterator + func (k Keeper) RecordsFromAttributes(ctx sdk.Context, attributes []*types.QueryListRecordsRequest_KeyValueInput, ...) ([]types.Record, error) + func (k Keeper) RemoveAuctionToAuthorityMapping(ctx sdk.Context, auctionID string) + func (k Keeper) RemoveBondToAuthorityIndexEntry(ctx sdk.Context, bondID string, name string) + func (k Keeper) RemoveBondToRecordIndexEntry(ctx sdk.Context, bondID string, id string) + func (k Keeper) ResolveCRN(ctx sdk.Context, crn string) *types.Record + func (k Keeper) SetAttributeMapping(ctx sdk.Context, key []byte, recordID string) error + func (k Keeper) SetAuthorityExpiryQueueTimeSlice(ctx sdk.Context, timestamp time.Time, names []string) + func (k Keeper) SetNameAuthority(ctx sdk.Context, name string, authority *types.NameAuthority) + func (k Keeper) SetNameRecord(ctx sdk.Context, crn string, id string) + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) + func (k Keeper) SetRecordExpiryQueueTimeSlice(ctx sdk.Context, timestamp time.Time, cids []string) + func (k Keeper) TryTakeAuthorityRent(ctx sdk.Context, name string, authority types.NameAuthority) + func (k Keeper) TryTakeRecordRent(ctx sdk.Context, record types.Record) + type Querier struct + func (q Querier) GetAuthorityExpiryQueue(c context.Context, _ *types.QueryGetAuthorityExpiryQueue) (*types.QueryGetAuthorityExpiryQueueResponse, error) + func (q Querier) GetRecord(c context.Context, req *types.QueryRecordByIDRequest) (*types.QueryRecordByIDResponse, error) + func (q Querier) GetRecordByBondID(c context.Context, req *types.QueryRecordByBondIDRequest) (*types.QueryRecordByBondIDResponse, error) + func (q Querier) GetRecordExpiryQueue(c context.Context, _ *types.QueryGetRecordExpiryQueue) (*types.QueryGetRecordExpiryQueueResponse, error) + func (q Querier) GetRegistryModuleBalance(c context.Context, _ *types.GetRegistryModuleBalanceRequest) (*types.GetRegistryModuleBalanceResponse, error) + func (q Querier) ListNameRecords(c context.Context, _ *types.QueryListNameRecordsRequest) (*types.QueryListNameRecordsResponse, error) + func (q Querier) ListRecords(c context.Context, req *types.QueryListRecordsRequest) (*types.QueryListRecordsResponse, error) + func (q Querier) LookupCrn(c context.Context, req *types.QueryLookupCrn) (*types.QueryLookupCrnResponse, error) + func (q Querier) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) + func (q Querier) ResolveCrn(c context.Context, req *types.QueryResolveCrn) (*types.QueryResolveCrnResponse, error) + func (q Querier) Whois(c context.Context, request *types.QueryWhoisRequest) (*types.QueryWhoisResponse, error) + type RecordKeeper struct + func NewRecordKeeper(auctionKeeper auctionkeeper.Keeper, storeKey storetypes.StoreKey, ...) RecordKeeper + func (k RecordKeeper) GetAuctionToAuthorityMapping(ctx sdk.Context, auctionID string) string + func (k RecordKeeper) ModuleName() string + func (k RecordKeeper) OnAuction(ctx sdk.Context, auctionID string) + func (k RecordKeeper) OnAuctionBid(ctx sdk.Context, auctionID string, bidderAddress string) + func (k RecordKeeper) OnAuctionWinnerSelected(ctx sdk.Context, auctionID string) + func (k RecordKeeper) QueryRecordsByBond(ctx sdk.Context, bondID string) []types.Record + func (k RecordKeeper) UsesAuction(ctx sdk.Context, auctionID string) bool + func (k RecordKeeper) UsesBond(ctx sdk.Context, bondID string) bool