Documentation ¶
Index ¶
- func RewardTxGoToCapn(seg *capn.Segment, src *RewardTx) capnp.RewardTxCapn
- type RewardTx
- func (rtx *RewardTx) GetData() []byte
- func (scr *RewardTx) GetGasLimit() uint64
- func (scr *RewardTx) GetGasPrice() uint64
- func (scr *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) Load(r io.Reader) error
- func (rtx *RewardTx) Save(w io.Writer) error
- 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 ¶
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) 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) Load ¶ added in v1.0.20
Load loads the data from the stream into a RewardTx object through Capnp protocol
func (*RewardTx) Save ¶ added in v1.0.20
Save saves the serialized data of a RewardTx into a stream through Capnp protocol
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