utils

package
v0.0.0-...-20952ba Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppTemplate = `` /* 218-byte string literal not displayed */
View Source
var G45_AT_PRIVATE_CODE string
View Source
var G45_AT_PUBLIC_CODE string
View Source
var G45_C_CODE string
View Source
var G45_FAT_PRIVATE_CODE string
View Source
var G45_FAT_PUBLIC_CODE string
View Source
var G45_NFT_PRIVATE_CODE string
View Source
var G45_NFT_PUBLIC_CODE string
View Source
var T345_NFT string

Functions

func AppAuthors

func AppAuthors(app *cli.App) string

func CreateFoldersIfNotExists

func CreateFoldersIfNotExists(folder string)

func DecodeAddress

func DecodeAddress(value string) (string, error)

func DecodeString

func DecodeString(value string) (string, error)

func OpenDB

func OpenDB(env string) *sql.DB

Types

type Count

type Count struct {
	Filename string
	// contains filtered or unexported fields
}

func (*Count) Get

func (c *Count) Get(key string) uint64

func (*Count) Load

func (c *Count) Load() error

func (*Count) Save

func (c *Count) Save() error

func (*Count) Set

func (c *Count) Set(key string, value uint64)

type G45_AT

type G45_AT struct {
	SCID             string
	Private          bool
	Minter           string
	OriginalMinter   string
	FrozenMetadata   bool
	FrozenMint       bool
	FrozenCollection bool
	MetadataFormat   string
	Metadata         string
	MaxSupply        uint64
	TotalSupply      uint64
	Decimals         uint64
	Collection       string
	Owners           map[string]uint64
	Timestamp        uint64
}

func (*G45_AT) JsonMetadata

func (asset *G45_AT) JsonMetadata() (map[string]interface{}, error)

func (*G45_AT) Parse

func (asset *G45_AT) Parse(scId string, result *rpc.GetSC_Result) error

func (*G45_AT) Print

func (asset *G45_AT) Print()

func (*G45_AT) Validate

func (asset *G45_AT) Validate(code string) (bool, error)

type G45_C

type G45_C struct {
	SCID           string
	FrozenAssets   bool
	FrozenMetadata bool
	Owner          string
	OriginalOwner  string
	Collection     string
	MetadataFormat string
	Metadata       string
	Assets         map[string]uint64
	AssetCount     uint64
	Timestamp      uint64
}

func (*G45_C) JsonMetadata

func (asset *G45_C) JsonMetadata() (map[string]interface{}, error)

func (*G45_C) Parse

func (collection *G45_C) Parse(scId string, result *rpc.GetSC_Result) error

func (*G45_C) Print

func (asset *G45_C) Print()

func (*G45_C) Validate

func (asset *G45_C) Validate(code string) (bool, error)

type G45_FAT

type G45_FAT struct {
	SCID             string
	Private          bool
	Minter           string
	FrozenMetadata   bool
	FrozenCollection bool
	MetadataFormat   string
	Metadata         string
	MaxSupply        uint64
	TotalSupply      uint64
	Decimals         uint64
	Collection       string
	Owners           map[string]uint64
	Timestamp        uint64
}

func (*G45_FAT) JsonMetadata

func (asset *G45_FAT) JsonMetadata() (map[string]interface{}, error)

func (*G45_FAT) Parse

func (asset *G45_FAT) Parse(scId string, result *rpc.GetSC_Result) error

func (*G45_FAT) Print

func (asset *G45_FAT) Print()

func (*G45_FAT) Validate

func (asset *G45_FAT) Validate(code string) (bool, error)

type G45_NFT

type G45_NFT struct {
	SCID           string
	Private        bool
	Minter         string
	MetadataFormat string
	Metadata       string
	Collection     string
	Owner          string
	Timestamp      uint64
}

func (*G45_NFT) JsonMetadata

func (asset *G45_NFT) JsonMetadata() (map[string]interface{}, error)

func (*G45_NFT) Parse

func (asset *G45_NFT) Parse(scId string, result *rpc.GetSC_Result) error

func (*G45_NFT) Print

func (asset *G45_NFT) Print()

func (*G45_NFT) Validate

func (asset *G45_NFT) Validate(code string) (bool, error)

Jump to

Keyboard shortcuts

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