Documentation ¶
Index ¶
- type RewardTx
- func (rtx *RewardTx) GetData() []byte
- func (rtx *RewardTx) GetGasLimit() uint64
- func (rtx *RewardTx) GetGasPrice() uint64
- func (rtx *RewardTx) GetNonce() uint64
- func (rtx *RewardTx) GetRecvAddress() []byte
- func (rtx *RewardTx) GetSndAddress() []byte
- func (rtx *RewardTx) GetValue() *big.Int
- func (rtx *RewardTx) IsInterfaceNil() bool
- func (rtx *RewardTx) SetData(data []byte)
- func (rtx *RewardTx) SetRecvAddress(addr []byte)
- func (rtx *RewardTx) SetSndAddress(addr []byte)
- func (rtx *RewardTx) SetValue(value *big.Int)
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"` ShardId uint32 `json:"shardId"` Epoch uint32 `json:"epoch"` }
RewardTx holds the data for a reward transaction
func (*RewardTx) GetGasLimit ¶
GetGasLimit returns the gas limit of the smart reward transaction
func (*RewardTx) GetGasPrice ¶
GetGasPrice returns the gas price of the smart reward transaction
func (*RewardTx) GetRecvAddress ¶ added in v1.0.20
GetRecvAddress returns the receiver address from the reward transaction
func (*RewardTx) GetSndAddress ¶ added in v1.0.20
GetSndAddress returns the sender address from the reward transaction
func (*RewardTx) IsInterfaceNil ¶
IsInterfaceNil verifies if underlying object is nil
func (*RewardTx) SetRecvAddress ¶ added in v1.0.20
SetRecvAddress sets the receiver address of the reward transaction
func (*RewardTx) SetSndAddress ¶ added in v1.0.20
SetSndAddress sets the sender address of the reward transaction
Click to show internal directories.
Click to hide internal directories.