flight

package
v1.0.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: GPL-3.0 Imports: 16 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SLI_Inst = SLI{}
View Source
var SRI_Inst = SRI{}

Functions

func DecTraceOuts

func DecTraceOuts(outs []txtool.Out, skr *keys.PKr) (douts []txtool.TDOut)

func GenTxParam

func GenTxParam(param *PreTxParam, tk keys.Uint512) (p txtool.GTxParam, e error)

func GetBlock

func GetBlock(num uint64, hash *common.Hash) (ret *localdb.Block)

func GetOut

func GetOut(root *keys.Uint256, num uint64) (out *localdb.RootState)

func SignTx

func SignTx(sk *keys.Uint512, paramTx *txtool.GTxParam) (tx txtool.GTx, err error)

Types

type PreTxParam

type PreTxParam struct {
	Gas      uint64
	GasPrice uint64
	From     keys.PKr
	Ins      []keys.Uint256
	Outs     []txtool.GOut
}

type SLI

type SLI struct {
}

func (*SLI) GenTx

func (self *SLI) GenTx(param *txtool.GTxParam) (gtx txtool.GTx, e error)

type SRI

type SRI struct {
}

func (*SRI) GetAnchor

func (self *SRI) GetAnchor(roots []keys.Uint256) (wits []txtool.Witness, e error)

func (*SRI) GetBlocksInfo

func (self *SRI) GetBlocksInfo(start uint64, count uint64) (blocks []txtool.Block, e error)

func (*SRI) GetBlocksInfoByDelay

func (self *SRI) GetBlocksInfoByDelay(start uint64, count uint64, delay uint64) (blocks []txtool.Block, e error)

Jump to

Keyboard shortcuts

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