simple

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BcContract = "0xb78f12Cb3924607A8BC6a66799e159E3459097e9"
View Source
var BcPledgeContract = "0xFa58d9f83D1D86DF22435e67D5F7422337624737"
View Source
var SystemContract = "0x2ba8A6318fb0390e8693af78c8086C086D923A96"

Functions

func AccountCreate

func AccountCreate(passwd string)

func AccountCreateByKey

func AccountCreateByKey(keyStr, passwd string)

func ActionCallBalanceOfBt

func ActionCallBalanceOfBt(url string, addr, symbol string, contract types.Address)

func ActionCallBalenceofBc

func ActionCallBalenceofBc(url string, addr string)

func ActionCallGetDecimalsBt

func ActionCallGetDecimalsBt(url string, symbol string, contract types.Address)

func ActionCallGetNameBt

func ActionCallGetNameBt(url string, symbol string, contract types.Address)

func ActionCallGetSupplyBt

func ActionCallGetSupplyBt(url string, symbol string, contract types.Address)

func ActionCallPledgeofBc

func ActionCallPledgeofBc(url string, addr string)

func Blockproductor_start

func Blockproductor_start(url string, pwd string)

func GetAccountNonce

func GetAccountNonce(url, addr string) uint64

func GetBlocCertificateByNumer

func GetBlocCertificateByNumer(url, blkNumber string)

func GetBlockNumer

func GetBlockNumer(url string) uint64

func GetPriKey

func GetPriKey(passord string) (*ecdsa.PrivateKey, types.Address, error)

func MakeBcPledgeTransaction

func MakeBcPledgeTransaction(addr types.Address, key *ecdsa.PrivateKey, nc uint64, amount, txFee uint64) *transaction.Transaction

func MakeBcRedeemTransaction

func MakeBcRedeemTransaction(addr types.Address, key *ecdsa.PrivateKey, nc uint64, amount, txFee uint64) *transaction.Transaction

func MakeBcTransaction

func MakeBcTransaction(addr types.Address, key *ecdsa.PrivateKey, nc uint64, to string, amount, txFee uint64, memo string) *transaction.Transaction

func MakeSystemTransaction

func MakeSystemTransaction(key *ecdsa.PrivateKey, nc uint64, txFee uint64, path string) *transaction.Transaction

func NewKey

func NewKey()

func SendRawTransaction

func SendRawTransaction(url string, tx *transaction.Transaction)

func TxPost

func TxPost(url string, method string, paras ...interface{}) []byte

Types

type Big_token_create

type Big_token_create struct {
	Key     *ecdsa.PrivateKey
	ConAddr types.Address

	Nc    uint64
	TxFee uint64

	Symbol   string
	Name     string
	Decimals string
	Supply   string
	IsIssue  uint32

	BlkNumber uint64
	Expiry    uint32
}

func (*Big_token_create) MakeTransaction

func (b *Big_token_create) MakeTransaction() *transaction.Transaction

type Big_token_issue

type Big_token_issue struct {
	Key     *ecdsa.PrivateKey
	ConAddr types.Address

	Nc    uint64
	TxFee uint64

	Symbol string
	Amount string
	Memo   string

	BlkNumber uint64
	Expiry    uint32
}

func (*Big_token_issue) MakeTransaction

func (b *Big_token_issue) MakeTransaction() *transaction.Transaction

type Big_token_tr

type Big_token_tr struct {
	Key     *ecdsa.PrivateKey
	ConAddr types.Address

	Nc    uint64
	TxFee uint64

	To     string
	Amount string
	Symbol string
	Memo   string

	BlkNumber uint64
	Expiry    uint32
}

func (*Big_token_tr) MakeTransaction

func (b *Big_token_tr) MakeTransaction() *transaction.Transaction

type TrScanRlt

type TrScanRlt struct {
	From   string
	To     string
	Amount uint64
	Memo   string
}

func GetBlockByNumer

func GetBlockByNumer(url, blkNumber string) []TrScanRlt

Jump to

Keyboard shortcuts

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