app

package
v0.0.0-...-634d97d Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: GPL-3.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSeroLight

func NewSeroLight()

Types

type ContractTxReq

type ContractTxReq struct {
	From     string   `json:"from"`
	To       string   `json:"to"`
	Value    string   `json:"value"`
	GasPrice string   `json:"gas_price"`
	Gas      string   `json:"gas"`
	Currency string   `json:"cy"`
	Data     string   `json:"data"`
	Token    TokenReq `json:"token"`
	//AssetTktReq map[string]interface{} `json:"tkt"`
	Catg string `json:"catg"`
	Tkt  string `json:"tkt"`
}

type NilValue

type NilValue struct {
	Nil    c_type.Uint256
	Num    uint64
	TxHash c_type.Uint256
	TxInfo TxInfo
}

type SEROLight

type SEROLight struct {
	// contains filtered or unexported fields
}

func (*SEROLight) CheckNil

func (self *SEROLight) CheckNil()

func (*SEROLight) DeployContractTx

func (self *SEROLight) DeployContractTx(ctq ContractTxReq, password string) (txHash string, err error)

func (*SEROLight) ExecuteContractTx

func (self *SEROLight) ExecuteContractTx(ctq ContractTxReq, password string) (txHash string, err error)

func (*SEROLight) GetBalances

func (self *SEROLight) GetBalances(pk c_type.Uint512) (balances map[string]*big.Int, tickets map[string][]string, isSync bool)

func (*SEROLight) GetUtxoNum

func (self *SEROLight) GetUtxoNum(pk c_type.Uint512) map[string]uint64

func (*SEROLight) SyncOut

func (self *SEROLight) SyncOut()

type TokenReq

type TokenReq struct {
	TxHash          string
	ContractAddress string
	Name            string
	Symbol          string
	Decimal         uint8
	Total           string
}

Jump to

Keyboard shortcuts

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