Documentation ¶
Index ¶
- Variables
- type RewardTx
- func (rtx *RewardTx) CheckIntegrity() error
- func (*RewardTx) Descriptor() ([]byte, []int)
- func (this *RewardTx) Equal(that interface{}) bool
- func (rtx *RewardTx) GetData() []byte
- func (m *RewardTx) GetEpoch() uint32
- func (rtx *RewardTx) GetGasLimit() uint64
- func (rtx *RewardTx) GetGasPrice() uint64
- func (rtx *RewardTx) GetNonce() uint64
- func (m *RewardTx) GetRcvAddr() []byte
- func (rtx *RewardTx) GetRcvUserName() []byte
- func (m *RewardTx) GetRound() uint64
- func (rtx *RewardTx) GetSndAddr() []byte
- func (m *RewardTx) GetValue() *math_big.Int
- func (this *RewardTx) GoString() string
- func (rtx *RewardTx) IsInterfaceNil() bool
- func (m *RewardTx) Marshal() (dAtA []byte, err error)
- func (m *RewardTx) MarshalTo(dAtA []byte) (int, error)
- func (m *RewardTx) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RewardTx) ProtoMessage()
- func (m *RewardTx) Reset()
- func (rtx *RewardTx) SetData(_ []byte)
- func (rtx *RewardTx) SetRcvAddr(addr []byte)
- func (rtx *RewardTx) SetSndAddr(_ []byte)
- func (rtx *RewardTx) SetValue(value *big.Int)
- func (m *RewardTx) Size() (n int)
- func (this *RewardTx) String() string
- func (m *RewardTx) Unmarshal(dAtA []byte) error
- func (m *RewardTx) XXX_DiscardUnknown()
- func (m *RewardTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RewardTx) XXX_Merge(src proto.Message)
- func (m *RewardTx) XXX_Size() int
- func (m *RewardTx) XXX_Unmarshal(b []byte) error
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthRewardTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRewardTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupRewardTx = fmt.Errorf("proto: unexpected end of group") )
View Source
var Type_name = map[int32]string{
0: "UnknownTx",
1: "LeaderTx",
2: "BurnTx",
3: "ProtocolSustainabilityTx",
4: "ProtocolRewardsTx",
5: "ProtocolRewardsForMetaTx",
}
View Source
var Type_value = map[string]int32{
"UnknownTx": 0,
"LeaderTx": 1,
"BurnTx": 2,
"ProtocolSustainabilityTx": 3,
"ProtocolRewardsTx": 4,
"ProtocolRewardsForMetaTx": 5,
}
Functions ¶
This section is empty.
Types ¶
type RewardTx ¶
type RewardTx struct { Round uint64 `protobuf:"varint,1,opt,name=Round,proto3" json:"round"` Value *math_big.Int `` /* 144-byte string literal not displayed */ RcvAddr []byte `protobuf:"bytes,4,opt,name=RcvAddr,proto3" json:"receiver"` Epoch uint32 `protobuf:"varint,2,opt,name=Epoch,proto3" json:"epoch"` }
RewardTx holds the data for a reward transaction
func (*RewardTx) CheckIntegrity ¶
CheckIntegrity checks for not nil fields and negative value
func (*RewardTx) Descriptor ¶
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) GetRcvAddr ¶
func (*RewardTx) GetRcvUserName ¶
GetRcvUserName returns the receiver user name from the reward transaction
func (*RewardTx) GetSndAddr ¶
GetSndAddr returns the sender address from the reward transaction
func (*RewardTx) IsInterfaceNil ¶
IsInterfaceNil verifies if underlying object is nil
func (*RewardTx) MarshalToSizedBuffer ¶
func (*RewardTx) ProtoMessage ¶
func (*RewardTx) ProtoMessage()
func (*RewardTx) SetRcvAddr ¶
SetRcvAddr sets the receiver address of the reward transaction
func (*RewardTx) SetSndAddr ¶
SetSndAddr sets the sender address of the reward transaction
func (*RewardTx) XXX_DiscardUnknown ¶
func (m *RewardTx) XXX_DiscardUnknown()
func (*RewardTx) XXX_Marshal ¶
func (*RewardTx) XXX_Unmarshal ¶
type Type ¶
type Type int32
const ( // unknown type UnknownTx Type = 0 // LeaderTx identifies a leader reward tx type LeaderTx Type = 1 // BurnTx identifies a burn reward tx type BurnTx Type = 2 // ProtocolSustainabilityTx identifies a protocol sustainability reward tx type ProtocolSustainabilityTx Type = 3 // ProtocolRewardsTx identifies a protocol reward tx type ProtocolRewardsTx Type = 4 // ProtocolRewardsForMetaTx identifies a protocol reward for meta tx type ProtocolRewardsForMetaTx Type = 5 )
func (Type) EnumDescriptor ¶
Click to show internal directories.
Click to hide internal directories.