rewardTx

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

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")
)
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 `` /* 132-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) Descriptor

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

func (*RewardTx) Equal

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

func (*RewardTx) GetData

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

GetData returns the data of the reward transaction

func (*RewardTx) GetEpoch

func (m *RewardTx) GetEpoch() uint32

func (*RewardTx) GetGasLimit

func (_ *RewardTx) GetGasLimit() uint64

GetGasLimit returns the gas limit of the smart reward transaction

func (*RewardTx) GetGasPrice

func (_ *RewardTx) GetGasPrice() uint64

GetGasPrice returns the gas price of the smart reward transaction

func (*RewardTx) GetNonce

func (_ *RewardTx) GetNonce() uint64

GetNonce returns 0 as reward transactions do not have a nonce

func (*RewardTx) GetRcvAddr

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

func (*RewardTx) GetRound

func (m *RewardTx) GetRound() uint64

func (*RewardTx) GetSndAddr

func (_ *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 (_ *RewardTx) SetData(data []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 (_ *RewardTx) SetSndAddr(addr []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

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

func (Type) EnumDescriptor() ([]byte, []int)

func (Type) String

func (x Type) String() string

Jump to

Keyboard shortcuts

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