rewardTx

package
v1.0.90 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RewardTx

type RewardTx struct {
	Round   uint64   `json:"round"`
	Value   *big.Int `json:"value"`
	RcvAddr []byte   `json:"receiver"`
	Epoch   uint32   `json:"epoch"`
}

RewardTx holds the data for a reward transaction

func (*RewardTx) GetData

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

GetData returns the data of the reward transaction

func (*RewardTx) GetGasLimit

func (rtx *RewardTx) GetGasLimit() uint64

GetGasLimit returns the gas limit of the smart reward transaction

func (*RewardTx) GetGasPrice

func (rtx *RewardTx) GetGasPrice() uint64

GetGasPrice returns the gas price of the smart reward transaction

func (*RewardTx) GetNonce

func (rtx *RewardTx) GetNonce() uint64

GetNonce returns 0 as reward transactions do not have a nonce

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) SetData

func (rtx *RewardTx) SetData(data []byte)

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

Jump to

Keyboard shortcuts

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