Documentation ¶
Index ¶
- func NewMsgServer(keeper Keeper) token.MsgServer
- func NewQueryServer(keeper Keeper) token.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) 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.Contract, 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.Contract, owner, to sdk.AccAddress, ...) string
- 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 (Keeper) Abandon ¶
func (k Keeper) Abandon(ctx sdk.Context, contractID string, grantee sdk.AccAddress, permission token.Permission)
func (Keeper) AuthorizeOperator ¶
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *token.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) (*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) OperatorBurn ¶
func (Keeper) RevokeOperator ¶
Click to show internal directories.
Click to hide internal directories.