store

package
v0.10.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2022 License: MPL-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMapper

func NewMapper(cdc *wire.Codec, key sdk.StoreKey) mapper

Types

type ITokens

type ITokens []types.IToken

type Mapper

type Mapper interface {
	NewToken(ctx sdk.Context, token types.IToken) error
	ExistsBEP2(ctx sdk.Context, symbol string) bool
	ExistsMini(ctx sdk.Context, symbol string) bool
	ExistsCC(ctx context.CLIContext, symbol string) bool
	GetTokenList(ctx sdk.Context, showZeroSupplyTokens bool, isMini bool) ITokens
	GetToken(ctx sdk.Context, symbol string) (types.IToken, error)
	// we do not provide the updateToken method
	UpdateTotalSupply(ctx sdk.Context, symbol string, supply int64) error
	UpdateBind(ctx sdk.Context, symbol string, contractAddress string, decimals int8) error
	UpdateMiniTokenURI(ctx sdk.Context, symbol string, uri string) error
	UpdateOwner(ctx sdk.Context, symbol string, newOwner sdk.AccAddress) error
}

type MiniTokens

type MiniTokens []types.MiniToken

type Tokens

type Tokens []types.Token

func (Tokens) GetSymbols

func (t Tokens) GetSymbols() *[]string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL