Documentation ¶
Index ¶
- Constants
- Variables
- func IscnFingerprintsInvariant(k Keeper) sdk.Invariant
- func IscnOwnerSequenceInvariant(k Keeper) sdk.Invariant
- func IscnRecordsInvariant(k Keeper) sdk.Invariant
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func ParamKeyTable() paramTypes.KeyTable
- func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
- type AccountKeeper
- type CID
- type ContentIdRecord
- type IscnId
- type IscnIdPrefix
- type IscnInput
- type Keeper
- func (k Keeper) AddFingerprintSequence(ctx sdk.Context, fingerprint string, seq uint64)
- func (k Keeper) AddIscnRecord(ctx sdk.Context, iscnId IscnId, owner sdk.AccAddress, data []byte, ...) (*CID, error)
- func (k Keeper) AddStoreRecord(ctx sdk.Context, record StoreRecord) (seq uint64)
- func (k Keeper) DeductFeeForIscn(ctx sdk.Context, msgSender sdk.AccAddress, data []byte, msg sdk.Msg) error
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) FeePerByte(ctx sdk.Context) (res sdk.DecCoin)
- func (k Keeper) GetCid(ctx context.Context, req *types.QueryGetCidRequest) (*types.QueryGetCidResponse, error)
- func (k Keeper) GetCidSequence(ctx sdk.Context, cid CID) uint64
- func (k Keeper) GetCidSize(ctx context.Context, req *types.QueryGetCidSizeRequest) (*types.QueryGetCidSizeResponse, error)
- func (k Keeper) GetContentIdRecord(ctx sdk.Context, iscnIdPrefix IscnIdPrefix) *ContentIdRecord
- func (k Keeper) GetIscnIdSequence(ctx sdk.Context, iscnId IscnId) uint64
- func (k Keeper) GetParams(ctx sdk.Context) Params
- func (k Keeper) GetSequenceCount(ctx sdk.Context) uint64
- func (k Keeper) GetStoreRecord(ctx sdk.Context, seq uint64) *StoreRecord
- func (k Keeper) HasCid(ctx context.Context, req *types.QueryHasCidRequest) (*types.QueryHasCidResponse, error)
- func (k Keeper) HasFingerprintSequence(ctx sdk.Context, fingerprint string, seq uint64) bool
- func (k Keeper) HasOwnerSequence(ctx sdk.Context, owner sdk.AccAddress, seq uint64) bool
- func (k Keeper) InitGenesis(ctx sdk.Context, genesis *types.GenesisState)
- func (k Keeper) IterateAllFingerprints(ctx sdk.Context, f func(fingerprint string, seq uint64) bool)
- func (k Keeper) IterateContentIdRecords(ctx sdk.Context, ...)
- func (k Keeper) IterateFingerprintSequences(ctx sdk.Context, fingerprint string, f func(seq uint64) bool)
- func (k Keeper) IterateFingerprintSequencesWithStartingSequence(ctx sdk.Context, fingerprint string, seq uint64, f func(seq uint64) bool)
- func (k Keeper) IterateIscnIds(ctx sdk.Context, f func(iscnId IscnId, contentIdRecord ContentIdRecord) bool)
- func (k Keeper) IterateOwnerConetntIdRecords(ctx sdk.Context, owner sdk.AccAddress, fromSeq uint64, ...)
- func (k Keeper) IterateStoreRecords(ctx sdk.Context, f func(seq uint64, record StoreRecord) bool)
- func (k Keeper) MustMarshalContentIdRecord(record *ContentIdRecord) []byte
- func (k Keeper) MustMarshalIscnId(iscnId IscnId) []byte
- func (k Keeper) MustMarshalIscnIdPrefix(iscnIdPrefix IscnIdPrefix) []byte
- func (k Keeper) MustMarshalStoreRecord(record *StoreRecord) []byte
- func (k Keeper) MustUnmarshalContentIdRecord(recordBytes []byte) (record ContentIdRecord)
- func (k Keeper) MustUnmarshalIscnId(iscnBytes []byte) (iscnId IscnId)
- func (k Keeper) MustUnmarshalIscnIdPrefix(iscnIdPrefixBytes []byte) (iscnIdPrefix IscnIdPrefix)
- func (k Keeper) MustUnmarshalStoreRecord(recordBytes []byte) (record StoreRecord)
- func (k Keeper) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RecordsByFingerprint(ctx context.Context, req *types.QueryRecordsByFingerprintRequest) (*types.QueryRecordsByFingerprintResponse, error)
- func (k Keeper) RecordsById(ctx context.Context, req *types.QueryRecordsByIdRequest) (*types.QueryRecordsByIdResponse, error)
- func (k Keeper) RecordsByOwner(ctx context.Context, req *types.QueryRecordsByOwnerRequest) (*types.QueryRecordsByOwnerResponse, error)
- func (k Keeper) RegistryName(ctx sdk.Context) (res string)
- func (k Keeper) SetContentIdRecord(ctx sdk.Context, iscnIdPrefix IscnIdPrefix, record *ContentIdRecord)
- func (k Keeper) SetParams(ctx sdk.Context, params Params)
- type MsgChangeIscnRecordOwnership
- type MsgChangeIscnRecordOwnershipResponse
- type MsgCreateIscnRecord
- type MsgCreateIscnRecordResponse
- type MsgUpdateIscnRecord
- type MsgUpdateIscnRecordResponse
- type Params
- type ProblemLogger
- type StoreRecord
Constants ¶
View Source
const ( IscnRecordsInvariantName = "iscn-records" IscnFingerprintsInvariantName = "iscn-fingerprints" IscnOwnerSequenceInvariantName = "iscn-owner-seqeunce" )
View Source
const FingerprintRecordsPageLimit = 100
View Source
const OwnerRecordsPageLimit = 100
Variables ¶
View Source
var ( ParamKeyRegistryName = types.ParamKeyRegistryName ParamKeyFeePerByte = types.ParamKeyFeePerByte SequenceCountKey = types.SequenceCountKey SequenceToStoreRecordPrefix = types.SequenceToStoreRecordPrefix CidToSequencePrefix = types.CidToSequencePrefix IscnIdToSequencePrefix = types.IscnIdToSequencePrefix ContentIdRecordPrefix = types.ContentIdRecordPrefix FingerprintSequencePrefix = types.FingerprintSequencePrefix OwnerSequencePrefix = types.OwnerSequencePrefix NewIscnId = types.NewIscnId )
Functions ¶
func IscnRecordsInvariant ¶
func NewMsgServerImpl ¶
func ParamKeyTable ¶
func ParamKeyTable() paramTypes.KeyTable
func RegisterInvariants ¶
func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
Types ¶
type AccountKeeper ¶
type ContentIdRecord ¶
type ContentIdRecord = types.ContentIdRecord
type IscnIdPrefix ¶
type IscnIdPrefix = types.IscnIdPrefix
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, key storetypes.StoreKey, accountKeeper AccountKeeper, bankKeeper authTypes.BankKeeper, feegrantKeeper ante.FeegrantKeeper, paramstore paramTypes.Subspace, ) Keeper
func (Keeper) AddFingerprintSequence ¶
func (Keeper) AddIscnRecord ¶
func (Keeper) AddStoreRecord ¶
func (k Keeper) AddStoreRecord(ctx sdk.Context, record StoreRecord) (seq uint64)
func (Keeper) DeductFeeForIscn ¶
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
func (Keeper) GetCid ¶
func (k Keeper) GetCid(ctx context.Context, req *types.QueryGetCidRequest) (*types.QueryGetCidResponse, error)
func (Keeper) GetCidSize ¶
func (k Keeper) GetCidSize(ctx context.Context, req *types.QueryGetCidSizeRequest) (*types.QueryGetCidSizeResponse, error)
func (Keeper) GetContentIdRecord ¶
func (k Keeper) GetContentIdRecord(ctx sdk.Context, iscnIdPrefix IscnIdPrefix) *ContentIdRecord
func (Keeper) GetIscnIdSequence ¶
func (Keeper) GetStoreRecord ¶
func (k Keeper) GetStoreRecord(ctx sdk.Context, seq uint64) *StoreRecord
func (Keeper) HasCid ¶
func (k Keeper) HasCid(ctx context.Context, req *types.QueryHasCidRequest) (*types.QueryHasCidResponse, error)
func (Keeper) HasFingerprintSequence ¶
func (Keeper) HasOwnerSequence ¶
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, genesis *types.GenesisState)
func (Keeper) IterateAllFingerprints ¶
func (Keeper) IterateContentIdRecords ¶
func (k Keeper) IterateContentIdRecords(ctx sdk.Context, f func(iscnIdPrefix IscnIdPrefix, contentIdRecord ContentIdRecord) bool)
func (Keeper) IterateFingerprintSequences ¶
func (Keeper) IterateFingerprintSequencesWithStartingSequence ¶
func (Keeper) IterateIscnIds ¶
func (Keeper) IterateOwnerConetntIdRecords ¶
func (k Keeper) IterateOwnerConetntIdRecords(ctx sdk.Context, owner sdk.AccAddress, fromSeq uint64, f func(seq uint64, iscnIdPrefix IscnIdPrefix, contentIdRecord ContentIdRecord) bool)
func (Keeper) IterateStoreRecords ¶
func (Keeper) MustMarshalContentIdRecord ¶
func (k Keeper) MustMarshalContentIdRecord(record *ContentIdRecord) []byte
func (Keeper) MustMarshalIscnId ¶
func (Keeper) MustMarshalIscnIdPrefix ¶
func (k Keeper) MustMarshalIscnIdPrefix(iscnIdPrefix IscnIdPrefix) []byte
func (Keeper) MustMarshalStoreRecord ¶
func (k Keeper) MustMarshalStoreRecord(record *StoreRecord) []byte
func (Keeper) MustUnmarshalContentIdRecord ¶
func (k Keeper) MustUnmarshalContentIdRecord(recordBytes []byte) (record ContentIdRecord)
func (Keeper) MustUnmarshalIscnId ¶
func (Keeper) MustUnmarshalIscnIdPrefix ¶
func (k Keeper) MustUnmarshalIscnIdPrefix(iscnIdPrefixBytes []byte) (iscnIdPrefix IscnIdPrefix)
func (Keeper) MustUnmarshalStoreRecord ¶
func (k Keeper) MustUnmarshalStoreRecord(recordBytes []byte) (record StoreRecord)
func (Keeper) Params ¶
func (k Keeper) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RecordsByFingerprint ¶
func (k Keeper) RecordsByFingerprint(ctx context.Context, req *types.QueryRecordsByFingerprintRequest) (*types.QueryRecordsByFingerprintResponse, error)
func (Keeper) RecordsById ¶
func (k Keeper) RecordsById(ctx context.Context, req *types.QueryRecordsByIdRequest) (*types.QueryRecordsByIdResponse, error)
func (Keeper) RecordsByOwner ¶
func (k Keeper) RecordsByOwner(ctx context.Context, req *types.QueryRecordsByOwnerRequest) (*types.QueryRecordsByOwnerResponse, error)
func (Keeper) SetContentIdRecord ¶
func (k Keeper) SetContentIdRecord(ctx sdk.Context, iscnIdPrefix IscnIdPrefix, record *ContentIdRecord)
type MsgChangeIscnRecordOwnership ¶
type MsgChangeIscnRecordOwnership = types.MsgChangeIscnRecordOwnership
type MsgChangeIscnRecordOwnershipResponse ¶
type MsgChangeIscnRecordOwnershipResponse = types.MsgChangeIscnRecordOwnershipResponse
type MsgCreateIscnRecord ¶
type MsgCreateIscnRecord = types.MsgCreateIscnRecord
type MsgCreateIscnRecordResponse ¶
type MsgCreateIscnRecordResponse = types.MsgCreateIscnRecordResponse
type MsgUpdateIscnRecord ¶
type MsgUpdateIscnRecord = types.MsgUpdateIscnRecord
type MsgUpdateIscnRecordResponse ¶
type MsgUpdateIscnRecordResponse = types.MsgUpdateIscnRecordResponse
type ProblemLogger ¶
type ProblemLogger struct {
// contains filtered or unexported fields
}
func NewProblemLogger ¶
func NewProblemLogger(ctx sdk.Context, invariantName string) ProblemLogger
func (*ProblemLogger) Log ¶
func (problemLogger *ProblemLogger) Log(msg string)
func (*ProblemLogger) Result ¶
func (problemLogger *ProblemLogger) Result() (string, bool)
type StoreRecord ¶
type StoreRecord = types.StoreRecord
Click to show internal directories.
Click to hide internal directories.