Documentation ¶
Index ¶
- Variables
- func KeyAddressDenoms(addr string) []byte
- func KeyAllowance(denom string, owner sdk.AccAddress, spender sdk.AccAddress) []byte
- func KeyAllowances(denom string, owner sdk.AccAddress) []byte
- func KeyFreeze(denom string, accAddress sdk.AccAddress) []byte
- func KeyIdDenom(id uint64) []byte
- func KeyIssuer(denom string) []byte
- func KeySymbolDenom(symbol string) []byte
- func ParamKeyTable() params.KeyTable
- func PrefixFreeze(denom string) []byte
- type BankHooks
- type Hooks
- type Keeper
- func (k *Keeper) AddIssue(ctx sdk.Context, issue *types.CoinIssue)
- func (k *Keeper) Allowance(ctx sdk.Context, owner sdk.AccAddress, spender sdk.AccAddress, denom string) sdk.Coin
- func (k *Keeper) Allowances(ctx sdk.Context, owner sdk.AccAddress, denom string) types.Allowances
- func (k *Keeper) Approve(ctx sdk.Context, owner, spender sdk.AccAddress, coins sdk.Coins) sdk.Error
- func (k *Keeper) Burn(ctx sdk.Context, burner sdk.AccAddress, coins sdk.Coins) sdk.Error
- func (k Keeper) BurnFee(ctx sdk.Context) (res sdk.Coin)
- func (k *Keeper) BurnFrom(ctx sdk.Context, burner, from sdk.AccAddress, coins sdk.Coins) sdk.Error
- func (k Keeper) BurnFromFee(ctx sdk.Context) (res sdk.Coin)
- func (k *Keeper) ChangeDescription(ctx sdk.Context, owner sdk.AccAddress, denom string, description string) sdk.Error
- func (k *Keeper) ChangeFeatures(ctx sdk.Context, owner sdk.AccAddress, denom string, ...) sdk.Error
- func (k *Keeper) ChargeFee(ctx sdk.Context, sender sdk.AccAddress, fee sdk.Coin) sdk.Error
- func (k *Keeper) CheckFreeze(ctx sdk.Context, from sdk.AccAddress, to sdk.AccAddress, denom string) sdk.Error
- func (k *Keeper) CreateIssue(ctx sdk.Context, owner, issuer sdk.AccAddress, params *types.IssueParams) *types.CoinIssue
- func (k *Keeper) DecreaseAllowance(ctx sdk.Context, owner, spender sdk.AccAddress, coins sdk.Coins) sdk.Error
- func (k *Keeper) Freeze(ctx sdk.Context, freezer, holder sdk.AccAddress, denom, op string) sdk.Error
- func (k Keeper) FreezeFee(ctx sdk.Context) (res sdk.Coin)
- func (k *Keeper) GetCodec() *codec.Codec
- func (k *Keeper) GetFreeze(ctx sdk.Context, denom string, holder sdk.AccAddress) *types.Freeze
- func (k *Keeper) GetFreezes(ctx sdk.Context, denom string) []*types.AddressFreeze
- func (k *Keeper) GetIssue(ctx sdk.Context, denom string) (*types.CoinIssue, sdk.Error)
- func (k *Keeper) GetLastId(ctx sdk.Context) uint64
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) Hooks() Hooks
- func (k *Keeper) IncreaseAllowance(ctx sdk.Context, owner, spender sdk.AccAddress, coins sdk.Coins) sdk.Error
- func (k *Keeper) Issue(ctx sdk.Context, issue *types.CoinIssue) sdk.Error
- func (k Keeper) IssueFee(ctx sdk.Context) (res sdk.Coin)
- func (k *Keeper) List(ctx sdk.Context, params types.IssuesParams) types.CoinIssues
- func (k *Keeper) ListAll(ctx sdk.Context) types.CoinIssues
- func (k *Keeper) Mint(ctx sdk.Context, minter, to sdk.AccAddress, coins sdk.Coins) sdk.Error
- func (k Keeper) MintFee(ctx sdk.Context) (res sdk.Coin)
- func (k *Keeper) SetLastId(ctx sdk.Context, id uint64)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k *Keeper) Transfer(ctx sdk.Context, from, to sdk.AccAddress, coins sdk.Coins) sdk.Error
- func (k *Keeper) TransferFrom(ctx sdk.Context, sender, from, to sdk.AccAddress, coins sdk.Coins) sdk.Error
- func (k Keeper) TransferOwnerFee(ctx sdk.Context) (res sdk.Coin)
- func (k *Keeper) TransferOwnership(ctx sdk.Context, owner, to sdk.AccAddress, denom string) sdk.Error
- func (k *Keeper) Unfreeze(ctx sdk.Context, freezer, holder sdk.AccAddress, denom, op string) sdk.Error
- func (k Keeper) UnfreezeFee(ctx sdk.Context) (res sdk.Coin)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KeyFirstIssueDenom = []byte("firstIssueDenom") KeyLastIssueDenom = []byte("lastIssueDenom") KeyLastIssueId = []byte("lastIssueId") KeyDelimiter = ":" )
Key for getting a the next available proposalID from the store
Functions ¶
func KeyAddressDenoms ¶
Key for getting a specific address from the store
func KeyAllowance ¶
func KeyAllowance(denom string, owner sdk.AccAddress, spender sdk.AccAddress) []byte
Key for getting a specific allowed from the store
func KeyAllowances ¶ added in v0.1.3
func KeyAllowances(denom string, owner sdk.AccAddress) []byte
Key for getting a specific allowed from the store
func KeyIdDenom ¶
func KeySymbolDenom ¶
func ParamKeyTable ¶ added in v0.1.3
type declaration for parameters
func PrefixFreeze ¶
Types ¶
type BankHooks ¶ added in v0.1.3
type BankHooks struct {
// contains filtered or unexported fields
}
func NewBankHooks ¶ added in v0.1.3
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
IssueKeeper encodes/decodes accounts using the go-amino (binary) encoding/decoding library.
func NewKeeper ¶
func NewKeeper( cdc *codec.Codec, key sdk.StoreKey, ak types.AccountKeeper, ck types.CoinKeeper, sk types.SupplyKeeper, feeCollectorName string, paramsKeeper params.Keeper, paramSpace params.Subspace) Keeper
NewAccountKeeper returns a new sdk.AccountKeeper that uses go-amino to (binary) encode and decode concrete sdk.Accounts. nolint
func (*Keeper) Allowance ¶
func (k *Keeper) Allowance(ctx sdk.Context, owner sdk.AccAddress, spender sdk.AccAddress, denom string) sdk.Coin
func (*Keeper) Allowances ¶ added in v0.1.3
func (k *Keeper) Allowances(ctx sdk.Context, owner sdk.AccAddress, denom string) types.Allowances
func (Keeper) BurnFromFee ¶ added in v0.1.3
func (*Keeper) ChangeDescription ¶ added in v0.1.3
func (*Keeper) ChangeFeatures ¶ added in v0.1.3
func (k *Keeper) ChangeFeatures(ctx sdk.Context, owner sdk.AccAddress, denom string, features *types.IssueFeatures) sdk.Error
func (*Keeper) CheckFreeze ¶ added in v0.1.3
func (k *Keeper) CheckFreeze(ctx sdk.Context, from sdk.AccAddress, to sdk.AccAddress, denom string) sdk.Error
func (*Keeper) CreateIssue ¶
func (k *Keeper) CreateIssue(ctx sdk.Context, owner, issuer sdk.AccAddress, params *types.IssueParams) *types.CoinIssue
func (*Keeper) DecreaseAllowance ¶
func (*Keeper) GetFreezes ¶ added in v0.1.3
func (*Keeper) IncreaseAllowance ¶
func (*Keeper) List ¶
func (k *Keeper) List(ctx sdk.Context, params types.IssuesParams) types.CoinIssues
func (*Keeper) TransferFrom ¶
func (Keeper) TransferOwnerFee ¶ added in v0.1.3
func (*Keeper) TransferOwnership ¶ added in v0.1.3
Click to show internal directories.
Click to hide internal directories.