rewardTx

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: GPL-3.0 Imports: 11 Imported by: 17

Documentation

Index

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

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 `` /* 135-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

func (rtx *RewardTx) CheckIntegrity() error

CheckIntegrity checks for not nil fields and negative value

func (*RewardTx) Descriptor

func (*RewardTx) Descriptor() ([]byte, []int)

func (*RewardTx) Equal

func (this *RewardTx) Equal(that interface{}) bool

func (*RewardTx) GetData

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

GetData returns the data of the reward transaction

func (*RewardTx) GetEpoch

func (m *RewardTx) GetEpoch() uint32

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

func (m *RewardTx) GetRcvAddr() []byte

func (*RewardTx) GetRcvUserName

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

GetRcvUserName returns the receiver user name from the reward transaction

func (*RewardTx) GetRound

func (m *RewardTx) GetRound() uint64

func (*RewardTx) GetSndAddr

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

GetSndAddr returns the sender address from the reward transaction

func (*RewardTx) GetValue

func (m *RewardTx) GetValue() *math_big.Int

func (*RewardTx) GoString

func (this *RewardTx) GoString() string

func (*RewardTx) IsInterfaceNil

func (rtx *RewardTx) IsInterfaceNil() bool

IsInterfaceNil verifies if underlying object is nil

func (*RewardTx) Marshal

func (m *RewardTx) Marshal() (dAtA []byte, err error)

func (*RewardTx) MarshalTo

func (m *RewardTx) MarshalTo(dAtA []byte) (int, error)

func (*RewardTx) MarshalToSizedBuffer

func (m *RewardTx) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RewardTx) ProtoMessage

func (*RewardTx) ProtoMessage()

func (*RewardTx) Reset

func (m *RewardTx) Reset()

func (*RewardTx) SetData

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

SetData sets the data of the reward transaction

func (*RewardTx) SetRcvAddr

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

SetRcvAddr sets the receiver address of the reward transaction

func (*RewardTx) SetSndAddr

func (rtx *RewardTx) SetSndAddr(_ []byte)

SetSndAddr sets the sender address of the reward transaction

func (*RewardTx) SetValue

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

SetValue sets the value of the transaction

func (*RewardTx) Size

func (m *RewardTx) Size() (n int)

func (*RewardTx) String

func (this *RewardTx) String() string

func (*RewardTx) Unmarshal

func (m *RewardTx) Unmarshal(dAtA []byte) error

func (*RewardTx) XXX_DiscardUnknown

func (m *RewardTx) XXX_DiscardUnknown()

func (*RewardTx) XXX_Marshal

func (m *RewardTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RewardTx) XXX_Merge

func (m *RewardTx) XXX_Merge(src proto.Message)

func (*RewardTx) XXX_Size

func (m *RewardTx) XXX_Size() int

func (*RewardTx) XXX_Unmarshal

func (m *RewardTx) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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