Documentation ¶
Index ¶
- func NewMsgServer(keeper Keeper) collection.MsgServer
- func NewQueryServer(keeper Keeper) collection.QueryServer
- func ValidateLegacyContract(k Keeper, ctx sdk.Context, contractID string) error
- type Keeper
- func (k Keeper) Abandon(ctx sdk.Context, contractID string, grantee sdk.AccAddress, ...)
- func (k Keeper) Attach(ctx sdk.Context, contractID string, owner sdk.AccAddress, ...) error
- func (k Keeper) AuthorizeOperator(ctx sdk.Context, contractID string, holder, operator sdk.AccAddress) error
- func (k Keeper) BurnCoins(ctx sdk.Context, contractID string, from sdk.AccAddress, ...) ([]collection.Coin, error)
- func (k Keeper) CreateContract(ctx sdk.Context, creator sdk.AccAddress, contract collection.Contract) string
- func (k Keeper) CreateTokenClass(ctx sdk.Context, contractID string, class collection.TokenClass) (*string, error)
- func (k Keeper) Detach(ctx sdk.Context, contractID string, owner sdk.AccAddress, subject string) error
- func (k Keeper) ExportGenesis(ctx sdk.Context) *collection.GenesisState
- func (k Keeper) GetAuthorization(ctx sdk.Context, contractID string, holder, operator sdk.AccAddress) (*collection.Authorization, error)
- func (k Keeper) GetBalance(ctx sdk.Context, contractID string, address sdk.AccAddress, tokenID string) sdk.Int
- func (k Keeper) GetBurnt(ctx sdk.Context, contractID string, classID string) sdk.Int
- func (k Keeper) GetChildren(ctx sdk.Context, contractID string, tokenID string) []string
- func (k Keeper) GetContract(ctx sdk.Context, contractID string) (*collection.Contract, error)
- func (k Keeper) GetGrant(ctx sdk.Context, contractID string, grantee sdk.AccAddress, ...) (*collection.Grant, error)
- func (k Keeper) GetMinted(ctx sdk.Context, contractID string, classID string) sdk.Int
- func (k Keeper) GetNFT(ctx sdk.Context, contractID string, tokenID string) (*collection.NFT, error)
- func (k Keeper) GetParams(ctx sdk.Context) collection.Params
- func (k Keeper) GetParent(ctx sdk.Context, contractID string, tokenID string) (*string, error)
- func (k Keeper) GetRoot(ctx sdk.Context, contractID string, tokenID string) string
- func (k Keeper) GetRootOwner(ctx sdk.Context, contractID string, tokenID string) sdk.AccAddress
- func (k Keeper) GetSupply(ctx sdk.Context, contractID string, classID string) sdk.Int
- func (k Keeper) GetTokenClass(ctx sdk.Context, contractID, classID string) (collection.TokenClass, error)
- func (k Keeper) Grant(ctx sdk.Context, contractID string, granter, grantee sdk.AccAddress, ...)
- func (k Keeper) InitGenesis(ctx sdk.Context, data *collection.GenesisState)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MintFT(ctx sdk.Context, contractID string, to sdk.AccAddress, ...) error
- func (k Keeper) MintNFT(ctx sdk.Context, contractID string, to sdk.AccAddress, ...) ([]collection.NFT, error)
- func (k Keeper) ModifyContract(ctx sdk.Context, contractID string, operator sdk.AccAddress, ...) error
- func (k Keeper) ModifyNFT(ctx sdk.Context, contractID string, tokenID string, operator sdk.AccAddress, ...) error
- func (k Keeper) ModifyTokenClass(ctx sdk.Context, contractID string, classID string, operator sdk.AccAddress, ...) error
- func (k Keeper) RevokeOperator(ctx sdk.Context, contractID string, holder, operator sdk.AccAddress) error
- func (k Keeper) SendCoins(ctx sdk.Context, contractID string, from, to sdk.AccAddress, ...) error
- func (k Keeper) SetParams(ctx sdk.Context, params collection.Params)
- type Migrator
- type ProgressReporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServer ¶
func NewMsgServer(keeper Keeper) collection.MsgServer
NewMsgServer returns an implementation of the collection MsgServer interface for the provided Keeper.
func NewQueryServer ¶
func NewQueryServer(keeper Keeper) collection.QueryServer
NewQueryServer returns an implementation of the token QueryServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper defines the collection module Keeper
func NewKeeper ¶
func NewKeeper( cdc codec.Codec, key sdk.StoreKey, ck collection.ClassKeeper, ) Keeper
NewKeeper returns a collection keeper
func (Keeper) Abandon ¶
func (k Keeper) Abandon(ctx sdk.Context, contractID string, grantee sdk.AccAddress, permission collection.Permission)
func (Keeper) AuthorizeOperator ¶
func (Keeper) BurnCoins ¶
func (k Keeper) BurnCoins(ctx sdk.Context, contractID string, from sdk.AccAddress, amount []collection.Coin) ([]collection.Coin, error)
func (Keeper) CreateContract ¶
func (k Keeper) CreateContract(ctx sdk.Context, creator sdk.AccAddress, contract collection.Contract) string
func (Keeper) CreateTokenClass ¶
func (k Keeper) CreateTokenClass(ctx sdk.Context, contractID string, class collection.TokenClass) (*string, error)
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *collection.GenesisState
ExportGenesis returns a GenesisState for a given context.
func (Keeper) GetAuthorization ¶
func (k Keeper) GetAuthorization(ctx sdk.Context, contractID string, holder, operator sdk.AccAddress) (*collection.Authorization, error)
func (Keeper) GetBalance ¶
func (Keeper) GetChildren ¶
func (Keeper) GetContract ¶
func (Keeper) GetGrant ¶
func (k Keeper) GetGrant(ctx sdk.Context, contractID string, grantee sdk.AccAddress, permission collection.Permission) (*collection.Grant, error)
func (Keeper) GetRootOwner ¶
func (Keeper) GetTokenClass ¶
func (k Keeper) GetTokenClass(ctx sdk.Context, contractID, classID string) (collection.TokenClass, error)
func (Keeper) Grant ¶
func (k Keeper) Grant(ctx sdk.Context, contractID string, granter, grantee sdk.AccAddress, permission collection.Permission)
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, data *collection.GenesisState)
InitGenesis new collection genesis
func (Keeper) MintFT ¶
func (k Keeper) MintFT(ctx sdk.Context, contractID string, to sdk.AccAddress, amount []collection.Coin) error
func (Keeper) MintNFT ¶
func (k Keeper) MintNFT(ctx sdk.Context, contractID string, to sdk.AccAddress, params []collection.MintNFTParam) ([]collection.NFT, error)
func (Keeper) ModifyContract ¶
func (k Keeper) ModifyContract(ctx sdk.Context, contractID string, operator sdk.AccAddress, changes []collection.Attribute) error
func (Keeper) ModifyNFT ¶
func (k Keeper) ModifyNFT(ctx sdk.Context, contractID string, tokenID string, operator sdk.AccAddress, changes []collection.Attribute) error
func (Keeper) ModifyTokenClass ¶
func (k Keeper) ModifyTokenClass(ctx sdk.Context, contractID string, classID string, operator sdk.AccAddress, changes []collection.Attribute) error
func (Keeper) RevokeOperator ¶
type Migrator ¶ added in v0.48.0
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place store migrations.
func NewMigrator ¶ added in v0.48.0
NewMigrator returns a new Migrator.
type ProgressReporter ¶
type ProgressReporter struct {
// contains filtered or unexported fields
}
func (*ProgressReporter) Tick ¶
func (p *ProgressReporter) Tick()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.