transutil

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTranSet

func NewTranSet(to string, balanceType string, amount []byte) *kvtranset.KVTrans

func NewVersion

func NewVersion(protoVersion *transet.Version) *version.Height

Types

type SenderCounter

type SenderCounter struct {
	Sender  string
	Counter uint64
	Ink     *big.Int
}

type TranSet

type TranSet struct {
	From      string
	FromVer   *transet.Version
	KvTranSet *kvtranset.KVTranSet
}

func (*TranSet) FromProtoBytes

func (tranSet *TranSet) FromProtoBytes(protoBytes []byte) error

FromProtoBytes deserializes protobytes into TxReadWriteSet proto message and populates 'TxRwSet'

func (*TranSet) ToProtoBytes

func (tranSet *TranSet) ToProtoBytes() ([]byte, error)

ToProtoBytes constructs TxReadWriteSet proto message and serializes using protobuf Marshal

type TranSetBuilder

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

func NewTranSetBuilder

func NewTranSetBuilder() *TranSetBuilder

func (*TranSetBuilder) AddToTranSet

func (builder *TranSetBuilder) AddToTranSet(to string, balanceType string, amount []byte)

func (*TranSetBuilder) GetTranSet

func (builder *TranSetBuilder) GetTranSet() *TranSet

func (*TranSetBuilder) SetSender

func (builder *TranSetBuilder) SetSender(sender string, version *transet.Version)

Jump to

Keyboard shortcuts

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