utils

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAllowance added in v0.5.0

func CheckAllowance(cdc *codec.Codec, cliCtx context.CLIContext, issueID string, owner sdk.AccAddress, spender sdk.AccAddress, amount sdk.Int) error

func CheckFreeze added in v0.5.0

func CheckFreeze(cdc *codec.Codec, cliCtx context.CLIContext, issueID string, from sdk.AccAddress, to sdk.AccAddress) error

func CheckIssueId

func CheckIssueId(issueID string) sdk.Error

func GetDecimalsInt added in v0.5.0

func GetDecimalsInt(decimals uint) sdk.Int

func GetIssueByID added in v0.5.0

func GetIssueByID(cdc *codec.Codec, cliCtx context.CLIContext, issueID string) (types.Issue, error)

func GetIssueTags added in v0.5.0

func GetIssueTags(issueID string, sender sdk.AccAddress) sdk.Tags

func GetRandomString

func GetRandomString(l int) string

func IsIssueId

func IsIssueId(issueID string) bool

func IssueOwnerCheck

func IssueOwnerCheck(cdc *codec.Codec, cliCtx context.CLIContext, sender auth.Account, issueID string) (types.Issue, error)

func MulDecimals

func MulDecimals(totalSupply sdk.Int, decimals uint) sdk.Int

func QuoDecimals

func QuoDecimals(totalSupply sdk.Int, decimals uint) sdk.Int

Types

This section is empty.

Jump to

Keyboard shortcuts

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