Documentation ¶
Index ¶
- func NewMsgServer(keeper Keeper) token.MsgServer
- func NewQueryServer(keeper Keeper) token.QueryServer
- type Keeper
- func (k Keeper) Abandon(ctx sdk.Context, contractID string, grantee sdk.AccAddress, ...)
- func (k Keeper) AuthorizeOperator(ctx sdk.Context, contractID string, holder, operator sdk.AccAddress) error
- func (k Keeper) Burn(ctx sdk.Context, contractID string, from sdk.AccAddress, amount sdk.Int) error
- func (k Keeper) ExportGenesis(ctx sdk.Context) *token.GenesisState
- func (k Keeper) GetAuthorization(ctx sdk.Context, contractID string, holder, operator sdk.AccAddress) (*token.Authorization, error)
- func (k Keeper) GetBalance(ctx sdk.Context, contractID string, addr sdk.AccAddress) sdk.Int
- func (k Keeper) GetBurnt(ctx sdk.Context, contractID string) sdk.Int
- func (k Keeper) GetClass(ctx sdk.Context, contractID string) (*token.TokenClass, error)
- func (k Keeper) GetGrant(ctx sdk.Context, contractID string, grantee sdk.AccAddress, ...) (*token.Grant, error)
- func (k Keeper) GetMinted(ctx sdk.Context, contractID string) sdk.Int
- func (k Keeper) GetSupply(ctx sdk.Context, contractID string) sdk.Int
- func (k Keeper) Grant(ctx sdk.Context, contractID string, granter, grantee sdk.AccAddress, ...)
- func (k Keeper) InitGenesis(ctx sdk.Context, data *token.GenesisState)
- func (k Keeper) Issue(ctx sdk.Context, class token.TokenClass, owner, to sdk.AccAddress, ...)
- func (k Keeper) Mint(ctx sdk.Context, contractID string, grantee, to sdk.AccAddress, amount sdk.Int) error
- func (k Keeper) Modify(ctx sdk.Context, contractID string, grantee sdk.AccAddress, ...) error
- func (k Keeper) OperatorBurn(ctx sdk.Context, contractID string, operator, from sdk.AccAddress, ...) error
- func (k Keeper) RevokeOperator(ctx sdk.Context, contractID string, holder, operator sdk.AccAddress) error
- func (k Keeper) Send(ctx sdk.Context, contractID string, from, to sdk.AccAddress, amount sdk.Int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServer ¶
NewMsgServer returns an implementation of the token MsgServer interface for the provided Keeper.
func NewQueryServer ¶
func NewQueryServer(keeper Keeper) token.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 token module Keeper
func NewKeeper ¶
func NewKeeper( cdc codec.Codec, key sdk.StoreKey, ak token.AccountKeeper, ck token.ClassKeeper, ) Keeper
NewKeeper returns a token keeper
func (Keeper) Abandon ¶ added in v0.46.0
func (k Keeper) Abandon(ctx sdk.Context, contractID string, grantee sdk.AccAddress, permission token.Permission)
func (Keeper) AuthorizeOperator ¶ added in v0.46.0
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *token.GenesisState
ExportGenesis returns a GenesisState for a given context.
func (Keeper) GetAuthorization ¶ added in v0.46.0
func (k Keeper) GetAuthorization(ctx sdk.Context, contractID string, holder, operator sdk.AccAddress) (*token.Authorization, error)
func (Keeper) GetBalance ¶
func (Keeper) Grant ¶
func (k Keeper) Grant(ctx sdk.Context, contractID string, granter, grantee sdk.AccAddress, permission token.Permission)
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, data *token.GenesisState)
InitGenesis new token genesis
func (Keeper) Issue ¶
func (k Keeper) Issue(ctx sdk.Context, class token.TokenClass, owner, to sdk.AccAddress, amount sdk.Int)
func (Keeper) OperatorBurn ¶ added in v0.46.0
func (Keeper) RevokeOperator ¶ added in v0.46.0
Click to show internal directories.
Click to hide internal directories.