Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func PaginateArray(length int, pageReq *query.PageRequest, onResult func(i int) error, ...) (pageRes *query.PageResponse, err error)
- func PaginateStringArray(arr []string, pageReq *query.PageRequest, ...) (pageRes *query.PageResponse, err error)
- func SortMintPeriod(mintPeriods []types.MintPeriod, descending bool) []types.MintPeriod
- type Keeper
- func (k Keeper) AccountByClass(goCtx context.Context, req *types.QueryAccountByClassRequest) (*types.QueryAccountByClassResponse, error)
- func (k Keeper) BlindBoxContent(c context.Context, req *types.QueryBlindBoxContentRequest) (*types.QueryBlindBoxContentResponse, error)
- func (k Keeper) BlindBoxContentIndex(c context.Context, req *types.QueryBlindBoxContentIndexRequest) (*types.QueryBlindBoxContentIndexResponse, error)
- func (k Keeper) BlindBoxContents(c context.Context, req *types.QueryBlindBoxContentsRequest) (*types.QueryBlindBoxContentsResponse, error)
- func (k Keeper) ClassRevealQueueByTimeIterator(ctx sdk.Context, endTime time.Time) sdk.Iterator
- func (k Keeper) ClassRevealQueueIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) ClassesByAccount(c context.Context, req *types.QueryClassesByAccountRequest) (*types.QueryClassesByAccountResponse, error)
- func (k Keeper) ClassesByAccountIndex(c context.Context, req *types.QueryClassesByAccountIndexRequest) (*types.QueryClassesByAccountIndexResponse, error)
- func (k Keeper) ClassesByISCN(c context.Context, req *types.QueryClassesByISCNRequest) (*types.QueryClassesByISCNResponse, error)
- func (k Keeper) ClassesByISCNIndex(c context.Context, req *types.QueryClassesByISCNIndexRequest) (*types.QueryClassesByISCNIndexResponse, error)
- func (k Keeper) ComputeRoyaltyAllocation(ctx sdk.Context, txnAmount uint64, fullPayToRoyalty bool, ...) (royaltyAmount uint64, allocations []types.RoyaltyAllocation, err error)
- func (k Keeper) DeductFeePerByte(ctx sdk.Context, msgSender sdk.AccAddress, bytesLength int, msg sdk.Msg) error
- func (k Keeper) ExpireListing(ctx sdk.Context, listing types.ListingStoreRecord) error
- func (k Keeper) ExpireOffer(ctx sdk.Context, offer types.OfferStoreRecord) error
- func (k Keeper) FeePerByte(ctx sdk.Context) (res sdk.DecCoin)
- func (k Keeper) GetAllBlindBoxContent(ctx sdk.Context) (list []types.BlindBoxContent)
- func (k Keeper) GetAllClassesByAccount(ctx sdk.Context) (list []types.ClassesByAccount)
- func (k Keeper) GetAllClassesByISCN(ctx sdk.Context) (list []types.ClassesByISCN)
- func (k Keeper) GetAllListing(ctx sdk.Context) (list []types.ListingStoreRecord)
- func (k Keeper) GetAllOffer(ctx sdk.Context) (list []types.OfferStoreRecord)
- func (k Keeper) GetAllRoyaltyConfig(ctx sdk.Context) (list []types.RoyaltyConfigByClass)
- func (k Keeper) GetBlindBoxContent(ctx sdk.Context, classId string, id string) (val types.BlindBoxContent, found bool)
- func (k Keeper) GetBlindBoxContents(ctx sdk.Context, classId string) (list []types.BlindBoxContent)
- func (k Keeper) GetClass(ctx sdk.Context, classId string) (nft.Class, types.ClassData, error)
- func (k Keeper) GetClassRevealQueue(ctx sdk.Context) (list []types.ClassRevealQueueEntry)
- func (k Keeper) GetClassRevealQueueByTime(ctx sdk.Context, endTime time.Time) (list []types.ClassRevealQueueEntry)
- func (k Keeper) GetClassesByAccount(ctx sdk.Context, account sdk.AccAddress) (val types.ClassesByAccount, found bool)
- func (k Keeper) GetClassesByISCN(ctx sdk.Context, iscnIdPrefix string) (val types.ClassesByISCN, found bool)
- func (k Keeper) GetListing(ctx sdk.Context, classId string, nftId string, seller sdk.AccAddress) (val types.ListingStoreRecord, found bool)
- func (k Keeper) GetListingByKeyBytes(ctx sdk.Context, key []byte) (val types.ListingStoreRecord, found bool)
- func (k Keeper) GetListingExpireQueue(ctx sdk.Context) (list []types.ListingExpireQueueEntry)
- func (k Keeper) GetListingExpireQueueByTime(ctx sdk.Context, endTime time.Time) (list []types.ListingExpireQueueEntry)
- func (k Keeper) GetListingExpireQueueEntry(ctx sdk.Context, expireTime time.Time, listingKey []byte) (val types.ListingExpireQueueEntry, found bool)
- func (k Keeper) GetListingsByClass(ctx sdk.Context, classId string) (list []types.ListingStoreRecord)
- func (k Keeper) GetListingsByNFT(ctx sdk.Context, classId string, nftId string) (list []types.ListingStoreRecord)
- func (k Keeper) GetOffer(ctx sdk.Context, classId string, nftId string, buyer sdk.AccAddress) (val types.OfferStoreRecord, found bool)
- func (k Keeper) GetOfferByKeyBytes(ctx sdk.Context, key []byte) (val types.OfferStoreRecord, found bool)
- func (k Keeper) GetOfferExpireQueue(ctx sdk.Context) (list []types.OfferExpireQueueEntry)
- func (k Keeper) GetOfferExpireQueueByTime(ctx sdk.Context, endTime time.Time) (list []types.OfferExpireQueueEntry)
- func (k Keeper) GetOfferExpireQueueEntry(ctx sdk.Context, expireTime time.Time, offerKey []byte) (val types.OfferExpireQueueEntry, found bool)
- func (k Keeper) GetOffersByClass(ctx sdk.Context, classId string) (list []types.OfferStoreRecord)
- func (k Keeper) GetOffersByNFT(ctx sdk.Context, classId string, nftId string) (list []types.OfferStoreRecord)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetRoyaltyConfig(ctx sdk.Context, classId string) (config types.RoyaltyConfig, found bool)
- func (k Keeper) ISCNByClass(goCtx context.Context, req *types.QueryISCNByClassRequest) (*types.QueryISCNByClassResponse, error)
- func (k Keeper) IterateAllBlindBoxContent(ctx sdk.Context, callback func(types.BlindBoxContent))
- func (k Keeper) IterateBlindBoxContents(ctx sdk.Context, classId string, callback func(types.BlindBoxContent))
- func (k Keeper) IterateClassRevealQueue(ctx sdk.Context, cb func(val types.ClassRevealQueueEntry) (stop bool))
- func (k Keeper) IterateClassRevealQueueByTime(ctx sdk.Context, endTime time.Time, ...)
- func (k Keeper) IterateListingExpireQueue(ctx sdk.Context, cb func(val types.ListingExpireQueueEntry) (stop bool))
- func (k Keeper) IterateListingExpireQueueByTime(ctx sdk.Context, endTime time.Time, ...)
- func (k Keeper) IterateListingsByClass(ctx sdk.Context, classId string, callback func(types.ListingStoreRecord))
- func (k Keeper) IterateListingsByNFT(ctx sdk.Context, classId string, nftId string, ...)
- func (k Keeper) IterateOfferExpireQueue(ctx sdk.Context, cb func(val types.OfferExpireQueueEntry) (stop bool))
- func (k Keeper) IterateOfferExpireQueueByTime(ctx sdk.Context, endTime time.Time, ...)
- func (k Keeper) IterateOffersByClass(ctx sdk.Context, classId string, callback func(types.OfferStoreRecord))
- func (k Keeper) IterateOffersByNFT(ctx sdk.Context, classId string, nftId string, ...)
- func (k Keeper) Listing(c context.Context, req *types.QueryListingRequest) (*types.QueryListingResponse, error)
- func (k Keeper) ListingExpireQueueByTimeIterator(ctx sdk.Context, expireTime time.Time) sdk.Iterator
- func (k Keeper) ListingExpireQueueIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) ListingIndex(c context.Context, req *types.QueryListingIndexRequest) (*types.QueryListingIndexResponse, error)
- func (k Keeper) ListingsByClass(goCtx context.Context, req *types.QueryListingsByClassRequest) (*types.QueryListingsByClassResponse, error)
- func (k Keeper) ListingsByNFT(goCtx context.Context, req *types.QueryListingsByNFTRequest) (*types.QueryListingsByNFTResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MaxListingDuration(ctx sdk.Context) time.Duration
- func (k Keeper) MaxListingDurationText(ctx sdk.Context) string
- func (k Keeper) MaxOfferDuration(ctx sdk.Context) time.Duration
- func (k Keeper) MaxOfferDurationText(ctx sdk.Context) string
- func (k Keeper) MaxRoyaltyBasisPoints(ctx sdk.Context) (res uint64)
- func (k Keeper) MaxRoyaltyBasisPointsText(ctx sdk.Context) string
- func (k Keeper) NewClassParentFromInput(ctx sdk.Context, input types.ClassParentInput, parentAccBech32 string) (types.ClassParentWithOwner, error)
- func (k Keeper) Offer(c context.Context, req *types.QueryOfferRequest) (*types.QueryOfferResponse, error)
- func (k Keeper) OfferExpireQueueByTimeIterator(ctx sdk.Context, expireTime time.Time) sdk.Iterator
- func (k Keeper) OfferExpireQueueIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) OfferIndex(c context.Context, req *types.QueryOfferIndexRequest) (*types.QueryOfferIndexResponse, error)
- func (k Keeper) OffersByClass(goCtx context.Context, req *types.QueryOffersByClassRequest) (*types.QueryOffersByClassResponse, error)
- func (k Keeper) OffersByNFT(goCtx context.Context, req *types.QueryOffersByNFTRequest) (*types.QueryOffersByNFTResponse, error)
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) PriceDenom(ctx sdk.Context) (res string)
- func (k Keeper) PruneAllListingsForNFT(ctx sdk.Context, classId string, nftId string)
- func (k Keeper) PruneInvalidListingsForNFT(ctx sdk.Context, classId string, nftId string)
- func (k Keeper) RemoveBlindBoxContent(ctx sdk.Context, classId string, id string)
- func (k Keeper) RemoveBlindBoxContents(ctx sdk.Context, classId string)
- func (k Keeper) RemoveClassRevealQueueEntry(ctx sdk.Context, revealTime time.Time, classId string)
- func (k Keeper) RemoveClassesByAccount(ctx sdk.Context, account sdk.AccAddress)
- func (k Keeper) RemoveClassesByISCN(ctx sdk.Context, iscnIdPrefix string)
- func (k Keeper) RemoveListing(ctx sdk.Context, classId string, nftId string, seller sdk.AccAddress)
- func (k Keeper) RemoveListingExpireQueueEntry(ctx sdk.Context, expireTime time.Time, listingKey []byte)
- func (k Keeper) RemoveOffer(ctx sdk.Context, classId string, nftId string, buyer sdk.AccAddress)
- func (k Keeper) RemoveOfferExpireQueueEntry(ctx sdk.Context, expireTime time.Time, offerKey []byte)
- func (k Keeper) RemoveRoyaltyConfig(ctx sdk.Context, classId string)
- func (k Keeper) RevealBlindBoxContents(ctx sdk.Context, classId string) error
- func (k Keeper) RoyaltyConfig(c context.Context, req *types.QueryRoyaltyConfigRequest) (*types.QueryRoyaltyConfigResponse, error)
- func (k Keeper) RoyaltyConfigIndex(c context.Context, req *types.QueryRoyaltyConfigIndexRequest) (*types.QueryRoyaltyConfigIndexResponse, error)
- func (k Keeper) SetBlindBoxContent(ctx sdk.Context, content types.BlindBoxContent)
- func (k Keeper) SetClassRevealQueueEntry(ctx sdk.Context, classRevealQueueEntry types.ClassRevealQueueEntry)
- func (k Keeper) SetClassesByAccount(ctx sdk.Context, classesByAccount types.ClassesByAccount)
- func (k Keeper) SetClassesByISCN(ctx sdk.Context, classesByISCN types.ClassesByISCN)
- func (k Keeper) SetListing(ctx sdk.Context, listing types.ListingStoreRecord)
- func (k Keeper) SetListingExpireQueueEntry(ctx sdk.Context, listingExpireQueueEntry types.ListingExpireQueueEntry)
- func (k Keeper) SetOffer(ctx sdk.Context, offer types.OfferStoreRecord)
- func (k Keeper) SetOfferExpireQueueEntry(ctx sdk.Context, offerExpireQueueEntry types.OfferExpireQueueEntry)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetRoyaltyConfig(ctx sdk.Context, royaltyConfigByClass types.RoyaltyConfigByClass)
- func (k Keeper) UpdateClassRevealQueueEntry(ctx sdk.Context, originalRevealTime time.Time, classId string, ...)
- func (k Keeper) UpdateListingExpireQueueEntry(ctx sdk.Context, originalExpireTime time.Time, listingKey []byte, ...)
- func (k Keeper) UpdateOfferExpireQueueEntry(ctx sdk.Context, originalExpireTime time.Time, offerKey []byte, ...)
- func (k Keeper) ValidateAndRefreshClassParent(ctx sdk.Context, classId string, parent types.ClassParent) (types.ClassParentWithOwner, error)
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.
func PaginateArray ¶
func PaginateArray( length int, pageReq *query.PageRequest, onResult func(i int) error, defaultLimit int, maxLimit int, ) (pageRes *query.PageResponse, err error)
Customized version of query.Paginate to paginate array instead of KVStore
func PaginateStringArray ¶
func SortMintPeriod ¶
func SortMintPeriod(mintPeriods []types.MintPeriod, descending bool) []types.MintPeriod
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, ps paramtypes.Subspace, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, iscnKeeper types.IscnKeeper, nftKeeper types.NftKeeper, feegrantKeeper ante.FeegrantKeeper, ) *Keeper
func (Keeper) AccountByClass ¶
func (k Keeper) AccountByClass(goCtx context.Context, req *types.QueryAccountByClassRequest) (*types.QueryAccountByClassResponse, error)
func (Keeper) BlindBoxContent ¶
func (k Keeper) BlindBoxContent(c context.Context, req *types.QueryBlindBoxContentRequest) (*types.QueryBlindBoxContentResponse, error)
func (Keeper) BlindBoxContentIndex ¶
func (k Keeper) BlindBoxContentIndex(c context.Context, req *types.QueryBlindBoxContentIndexRequest) (*types.QueryBlindBoxContentIndexResponse, error)
func (Keeper) BlindBoxContents ¶
func (k Keeper) BlindBoxContents(c context.Context, req *types.QueryBlindBoxContentsRequest) (*types.QueryBlindBoxContentsResponse, error)
func (Keeper) ClassRevealQueueByTimeIterator ¶
func (Keeper) ClassRevealQueueIterator ¶
func (Keeper) ClassesByAccount ¶
func (k Keeper) ClassesByAccount(c context.Context, req *types.QueryClassesByAccountRequest) (*types.QueryClassesByAccountResponse, error)
func (Keeper) ClassesByAccountIndex ¶
func (k Keeper) ClassesByAccountIndex(c context.Context, req *types.QueryClassesByAccountIndexRequest) (*types.QueryClassesByAccountIndexResponse, error)
func (Keeper) ClassesByISCN ¶
func (k Keeper) ClassesByISCN(c context.Context, req *types.QueryClassesByISCNRequest) (*types.QueryClassesByISCNResponse, error)
func (Keeper) ClassesByISCNIndex ¶
func (k Keeper) ClassesByISCNIndex(c context.Context, req *types.QueryClassesByISCNIndexRequest) (*types.QueryClassesByISCNIndexResponse, error)
func (Keeper) ComputeRoyaltyAllocation ¶
func (Keeper) DeductFeePerByte ¶
func (Keeper) ExpireListing ¶
func (Keeper) ExpireOffer ¶
func (Keeper) GetAllBlindBoxContent ¶
func (k Keeper) GetAllBlindBoxContent(ctx sdk.Context) (list []types.BlindBoxContent)
GetAllBlindBoxContent returns all BlindBoxContent
func (Keeper) GetAllClassesByAccount ¶
func (k Keeper) GetAllClassesByAccount(ctx sdk.Context) (list []types.ClassesByAccount)
GetAllClassesByAccount returns all classesByAccount
func (Keeper) GetAllClassesByISCN ¶
func (k Keeper) GetAllClassesByISCN(ctx sdk.Context) (list []types.ClassesByISCN)
GetAllClassesByISCN returns all classesByISCN
func (Keeper) GetAllListing ¶
func (k Keeper) GetAllListing(ctx sdk.Context) (list []types.ListingStoreRecord)
GetAllListing returns all listing
func (Keeper) GetAllOffer ¶
func (k Keeper) GetAllOffer(ctx sdk.Context) (list []types.OfferStoreRecord)
GetAllOffer returns all offer
func (Keeper) GetAllRoyaltyConfig ¶
func (k Keeper) GetAllRoyaltyConfig(ctx sdk.Context) (list []types.RoyaltyConfigByClass)
GetAllRoyaltyConfig returns all royaltyConfigByClass
func (Keeper) GetBlindBoxContent ¶
func (k Keeper) GetBlindBoxContent( ctx sdk.Context, classId string, id string, ) (val types.BlindBoxContent, found bool)
GetBlindBoxContent returns a blind box content from its index
func (Keeper) GetBlindBoxContents ¶
GetBlindBoxContents returns all blind box content of a class
func (Keeper) GetClassRevealQueue ¶
func (k Keeper) GetClassRevealQueue(ctx sdk.Context) (list []types.ClassRevealQueueEntry)
GetClassRevealQueue returns all classRevealQueueEntry
func (Keeper) GetClassRevealQueueByTime ¶
func (Keeper) GetClassesByAccount ¶
func (k Keeper) GetClassesByAccount( ctx sdk.Context, account sdk.AccAddress, ) (val types.ClassesByAccount, found bool)
GetClassesByAccount returns a classesByAccount from its index
func (Keeper) GetClassesByISCN ¶
func (k Keeper) GetClassesByISCN( ctx sdk.Context, iscnIdPrefix string, ) (val types.ClassesByISCN, found bool)
GetClassesByISCN returns a classesByISCN from its index
func (Keeper) GetListing ¶
func (k Keeper) GetListing( ctx sdk.Context, classId string, nftId string, seller sdk.AccAddress, ) (val types.ListingStoreRecord, found bool)
GetListing returns a listing from its index
func (Keeper) GetListingByKeyBytes ¶
func (Keeper) GetListingExpireQueue ¶
func (k Keeper) GetListingExpireQueue(ctx sdk.Context) (list []types.ListingExpireQueueEntry)
GetListingExpireQueue returns all listingExpireQueueEntry
func (Keeper) GetListingExpireQueueByTime ¶
func (Keeper) GetListingExpireQueueEntry ¶
func (k Keeper) GetListingExpireQueueEntry( ctx sdk.Context, expireTime time.Time, listingKey []byte, ) (val types.ListingExpireQueueEntry, found bool)
GetListingExpireQueueEntry returns a listingExpireQueueEntry from its index
func (Keeper) GetListingsByClass ¶
func (Keeper) GetListingsByNFT ¶
func (Keeper) GetOffer ¶
func (k Keeper) GetOffer( ctx sdk.Context, classId string, nftId string, buyer sdk.AccAddress, ) (val types.OfferStoreRecord, found bool)
GetOffer returns a offer from its index
func (Keeper) GetOfferByKeyBytes ¶
func (Keeper) GetOfferExpireQueue ¶
func (k Keeper) GetOfferExpireQueue(ctx sdk.Context) (list []types.OfferExpireQueueEntry)
GetOfferExpireQueue returns all offerExpireQueueEntry
func (Keeper) GetOfferExpireQueueByTime ¶
func (Keeper) GetOfferExpireQueueEntry ¶
func (k Keeper) GetOfferExpireQueueEntry( ctx sdk.Context, expireTime time.Time, offerKey []byte, ) (val types.OfferExpireQueueEntry, found bool)
GetOfferExpireQueueEntry returns a offerExpireQueueEntry from its index
func (Keeper) GetOffersByClass ¶
func (Keeper) GetOffersByNFT ¶
func (Keeper) GetRoyaltyConfig ¶
func (k Keeper) GetRoyaltyConfig( ctx sdk.Context, classId string, ) (config types.RoyaltyConfig, found bool)
GetRoyaltyConfig returns a royaltyConfigByClass from its index
func (Keeper) ISCNByClass ¶
func (k Keeper) ISCNByClass(goCtx context.Context, req *types.QueryISCNByClassRequest) (*types.QueryISCNByClassResponse, error)
func (Keeper) IterateAllBlindBoxContent ¶
func (k Keeper) IterateAllBlindBoxContent(ctx sdk.Context, callback func(types.BlindBoxContent))
func (Keeper) IterateBlindBoxContents ¶
func (Keeper) IterateClassRevealQueue ¶
func (k Keeper) IterateClassRevealQueue(ctx sdk.Context, cb func(val types.ClassRevealQueueEntry) (stop bool))
IterateClassRevealQueue iterates over all classRevealQueueEntry
func (Keeper) IterateClassRevealQueueByTime ¶
func (Keeper) IterateListingExpireQueue ¶
func (Keeper) IterateListingExpireQueueByTime ¶
func (Keeper) IterateListingsByClass ¶
func (Keeper) IterateListingsByNFT ¶
func (Keeper) IterateOfferExpireQueue ¶
func (Keeper) IterateOfferExpireQueueByTime ¶
func (Keeper) IterateOffersByClass ¶
func (Keeper) IterateOffersByNFT ¶
func (Keeper) Listing ¶
func (k Keeper) Listing(c context.Context, req *types.QueryListingRequest) (*types.QueryListingResponse, error)
func (Keeper) ListingExpireQueueByTimeIterator ¶
func (Keeper) ListingExpireQueueIterator ¶
func (Keeper) ListingIndex ¶
func (k Keeper) ListingIndex(c context.Context, req *types.QueryListingIndexRequest) (*types.QueryListingIndexResponse, error)
func (Keeper) ListingsByClass ¶
func (k Keeper) ListingsByClass(goCtx context.Context, req *types.QueryListingsByClassRequest) (*types.QueryListingsByClassResponse, error)
func (Keeper) ListingsByNFT ¶
func (k Keeper) ListingsByNFT(goCtx context.Context, req *types.QueryListingsByNFTRequest) (*types.QueryListingsByNFTResponse, error)
func (Keeper) MaxListingDuration ¶
func (Keeper) MaxListingDurationText ¶
func (Keeper) MaxRoyaltyBasisPoints ¶
func (Keeper) MaxRoyaltyBasisPointsText ¶
func (Keeper) NewClassParentFromInput ¶
func (k Keeper) NewClassParentFromInput(ctx sdk.Context, input types.ClassParentInput, parentAccBech32 string) (types.ClassParentWithOwner, error)
func (Keeper) Offer ¶
func (k Keeper) Offer(c context.Context, req *types.QueryOfferRequest) (*types.QueryOfferResponse, error)
func (Keeper) OfferExpireQueueByTimeIterator ¶
func (Keeper) OfferExpireQueueIterator ¶
func (Keeper) OfferIndex ¶
func (k Keeper) OfferIndex(c context.Context, req *types.QueryOfferIndexRequest) (*types.QueryOfferIndexResponse, error)
func (Keeper) OffersByClass ¶
func (k Keeper) OffersByClass(goCtx context.Context, req *types.QueryOffersByClassRequest) (*types.QueryOffersByClassResponse, error)
func (Keeper) OffersByNFT ¶
func (k Keeper) OffersByNFT(goCtx context.Context, req *types.QueryOffersByNFTRequest) (*types.QueryOffersByNFTResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) PruneAllListingsForNFT ¶
func (Keeper) PruneInvalidListingsForNFT ¶
func (Keeper) RemoveBlindBoxContent ¶
RemoveBlindBoxContent removes a blind box content from the store
func (Keeper) RemoveBlindBoxContents ¶
RemoveBlindBoxContent removes a blind box content from the store
func (Keeper) RemoveClassRevealQueueEntry ¶
func (k Keeper) RemoveClassRevealQueueEntry( ctx sdk.Context, revealTime time.Time, classId string, )
RemoveClassRevealQueueEntry removes a classRevealQueueEntry from the store
func (Keeper) RemoveClassesByAccount ¶
func (k Keeper) RemoveClassesByAccount( ctx sdk.Context, account sdk.AccAddress, )
RemoveClassesByAccount removes a classesByAccount from the store
func (Keeper) RemoveClassesByISCN ¶
RemoveClassesByISCN removes a classesByISCN from the store
func (Keeper) RemoveListing ¶
func (k Keeper) RemoveListing( ctx sdk.Context, classId string, nftId string, seller sdk.AccAddress, )
RemoveListing removes a listing from the store
func (Keeper) RemoveListingExpireQueueEntry ¶
func (k Keeper) RemoveListingExpireQueueEntry( ctx sdk.Context, expireTime time.Time, listingKey []byte, )
RemoveListingExpireQueueEntry removes a listingExpireQueueEntry from the store
func (Keeper) RemoveOffer ¶
RemoveOffer removes a offer from the store
func (Keeper) RemoveOfferExpireQueueEntry ¶
func (k Keeper) RemoveOfferExpireQueueEntry( ctx sdk.Context, expireTime time.Time, offerKey []byte, )
RemoveOfferExpireQueueEntry removes a offerExpireQueueEntry from the store
func (Keeper) RemoveRoyaltyConfig ¶
RemoveRoyaltyConfig removes a royaltyConfigByClass from the store
func (Keeper) RevealBlindBoxContents ¶
func (Keeper) RoyaltyConfig ¶
func (k Keeper) RoyaltyConfig(c context.Context, req *types.QueryRoyaltyConfigRequest) (*types.QueryRoyaltyConfigResponse, error)
func (Keeper) RoyaltyConfigIndex ¶
func (k Keeper) RoyaltyConfigIndex(c context.Context, req *types.QueryRoyaltyConfigIndexRequest) (*types.QueryRoyaltyConfigIndexResponse, error)
func (Keeper) SetBlindBoxContent ¶
func (k Keeper) SetBlindBoxContent(ctx sdk.Context, content types.BlindBoxContent)
SetBlindBoxContent set a specific blind box content in the store from its index
func (Keeper) SetClassRevealQueueEntry ¶
func (k Keeper) SetClassRevealQueueEntry(ctx sdk.Context, classRevealQueueEntry types.ClassRevealQueueEntry)
SetClassRevealQueueEntry set a specific classRevealQueueEntry in the store from its index
func (Keeper) SetClassesByAccount ¶
func (k Keeper) SetClassesByAccount(ctx sdk.Context, classesByAccount types.ClassesByAccount)
SetClassesByAccount set a specific classesByAccount in the store from its index
func (Keeper) SetClassesByISCN ¶
func (k Keeper) SetClassesByISCN(ctx sdk.Context, classesByISCN types.ClassesByISCN)
SetClassesByISCN set a specific classesByISCN in the store from its index
func (Keeper) SetListing ¶
func (k Keeper) SetListing(ctx sdk.Context, listing types.ListingStoreRecord)
SetListing set a specific listing in the store from its index
func (Keeper) SetListingExpireQueueEntry ¶
func (k Keeper) SetListingExpireQueueEntry(ctx sdk.Context, listingExpireQueueEntry types.ListingExpireQueueEntry)
SetListingExpireQueueEntry set a specific listingExpireQueueEntry in the store from its index
func (Keeper) SetOffer ¶
func (k Keeper) SetOffer(ctx sdk.Context, offer types.OfferStoreRecord)
SetOffer set a specific offer in the store from its index
func (Keeper) SetOfferExpireQueueEntry ¶
func (k Keeper) SetOfferExpireQueueEntry(ctx sdk.Context, offerExpireQueueEntry types.OfferExpireQueueEntry)
SetOfferExpireQueueEntry set a specific offerExpireQueueEntry in the store from its index
func (Keeper) SetRoyaltyConfig ¶
func (k Keeper) SetRoyaltyConfig(ctx sdk.Context, royaltyConfigByClass types.RoyaltyConfigByClass)
SetRoyaltyConfig set a specific royaltyConfigByClass in the store from its index
func (Keeper) UpdateClassRevealQueueEntry ¶
func (k Keeper) UpdateClassRevealQueueEntry(ctx sdk.Context, originalRevealTime time.Time, classId string, updatedRevealTime time.Time)
UpdateClassRevealQueueEntry updates a classRevealQueueEntry in the store
func (Keeper) UpdateListingExpireQueueEntry ¶
func (Keeper) UpdateOfferExpireQueueEntry ¶
func (Keeper) ValidateAndRefreshClassParent ¶
func (k Keeper) ValidateAndRefreshClassParent(ctx sdk.Context, classId string, parent types.ClassParent) (types.ClassParentWithOwner, error)
Source Files ¶
- acc_address.go
- blind_box_content.go
- blind_box_content_count.go
- class.go
- class_parent.go
- class_reveal.go
- class_reveal_queue.go
- class_validations.go
- classes_by_account.go
- classes_by_iscn.go
- grpc_query.go
- grpc_query_account_by_class.go
- grpc_query_blind_box_content.go
- grpc_query_classes_by_account.go
- grpc_query_classes_by_iscn.go
- grpc_query_iscn_by_class.go
- grpc_query_listing.go
- grpc_query_offer.go
- grpc_query_params.go
- grpc_query_royalty_config.go
- iscn_helper.go
- keeper.go
- listing.go
- listing_expire.go
- listing_expire_queue.go
- listing_validation.go
- mint_fee.go
- mint_period.go
- msg_server.go
- msg_server_blind_box_content.go
- msg_server_burn_nft.go
- msg_server_buy_nft.go
- msg_server_listing.go
- msg_server_mint_nft.go
- msg_server_new_class.go
- msg_server_offer.go
- msg_server_royalty_config.go
- msg_server_sell_nft.go
- msg_server_update_class.go
- offer.go
- offer_expire.go
- offer_expire_queue.go
- offer_validation.go
- pagination.go
- params.go
- royalty_allocation.go
- royalty_config.go
- royalty_config_validations.go