store

package
v0.10.22 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

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