rewardTx

package
v1.0.35 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RewardTxGoToCapn added in v1.0.20

func RewardTxGoToCapn(seg *capn.Segment, src *RewardTx) capnp.RewardTxCapn

RewardTxGoToCapn is a helper function to copy fields from a RewardTx object to a RewardTxCapn object

Types

type RewardTx

type RewardTx struct {
	Round   uint64   `capid:"1" json:"round"`
	Epoch   uint32   `capid:"2" json:"epoch"`
	Value   *big.Int `capid:"3" json:"value"`
	RcvAddr []byte   `capid:"4" json:"receiver"`
	ShardId uint32   `capid:"5" json:"shardId"`
}

RewardTx holds the data for a reward transaction

func RewardTxCapnToGo added in v1.0.20

func RewardTxCapnToGo(src capnp.RewardTxCapn, dest *RewardTx) *RewardTx

RewardTxCapnToGo is a helper function to copy fields from a RewardTxCapn object to a RewardTx object

func (*RewardTx) GetData

func (rtx *RewardTx) GetData() string

GetData returns the data of the reward transaction

func (*RewardTx) GetRecvAddress added in v1.0.20

func (rtx *RewardTx) GetRecvAddress() []byte

GetRecvAddress returns the receiver address from the reward transaction

func (*RewardTx) GetSndAddress added in v1.0.20

func (rtx *RewardTx) GetSndAddress() []byte

GetSndAddress returns the sender address from the reward transaction

func (*RewardTx) GetValue

func (rtx *RewardTx) GetValue() *big.Int

GetValue returns the value of the reward transaction

func (*RewardTx) IsInterfaceNil

func (rtx *RewardTx) IsInterfaceNil() bool

IsInterfaceNil verifies if underlying object is nil

func (*RewardTx) Load added in v1.0.20

func (rtx *RewardTx) Load(r io.Reader) error

Load loads the data from the stream into a RewardTx object through Capnp protocol

func (*RewardTx) Save added in v1.0.20

func (rtx *RewardTx) Save(w io.Writer) error

Save saves the serialized data of a RewardTx into a stream through Capnp protocol

func (*RewardTx) SetData

func (rtx *RewardTx) SetData(data string)

SetData sets the data of the reward transaction

func (*RewardTx) SetRecvAddress added in v1.0.20

func (rtx *RewardTx) SetRecvAddress(addr []byte)

SetRecvAddress sets the receiver address of the reward transaction

func (*RewardTx) SetSndAddress added in v1.0.20

func (rtx *RewardTx) SetSndAddress(addr []byte)

SetSndAddress sets the sender address of the reward transaction

func (*RewardTx) SetValue

func (rtx *RewardTx) SetValue(value *big.Int)

SetValue sets the value of the reward transaction

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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