types

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type ProposalInfo

type ProposalInfo struct {
	// TxsByLane contains information about how each partial proposal
	// was constructed by the block-sdk lanes.
	TxsByLane map[string]uint64 `` /* 179-byte string literal not displayed */
	// MaxBlockSize corresponds to the upper bound on the size of the
	// block that was used to construct this block proposal.
	MaxBlockSize int64 `protobuf:"varint,2,opt,name=max_block_size,json=maxBlockSize,proto3" json:"max_block_size,omitempty"`
	// MaxGasLimit corresponds to the upper bound on the gas limit of the
	// block that was used to construct this block proposal.
	MaxGasLimit uint64 `protobuf:"varint,3,opt,name=max_gas_limit,json=maxGasLimit,proto3" json:"max_gas_limit,omitempty"`
	// BlockSize corresponds to the size of this block proposal.
	BlockSize int64 `protobuf:"varint,4,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"`
	// GasLimit corresponds to the gas limit of this block proposal.
	GasLimit uint64 `protobuf:"varint,5,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
}

ProposalInfo contains the metadata about a given proposal that was built by the block-sdk. This is used to verify and consilidate proposal data across the network.

func (*ProposalInfo) Descriptor

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

func (*ProposalInfo) GetBlockSize

func (m *ProposalInfo) GetBlockSize() int64

func (*ProposalInfo) GetGasLimit

func (m *ProposalInfo) GetGasLimit() uint64

func (*ProposalInfo) GetMaxBlockSize

func (m *ProposalInfo) GetMaxBlockSize() int64

func (*ProposalInfo) GetMaxGasLimit

func (m *ProposalInfo) GetMaxGasLimit() uint64

func (*ProposalInfo) GetTxsByLane

func (m *ProposalInfo) GetTxsByLane() map[string]uint64

func (*ProposalInfo) Marshal

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

func (*ProposalInfo) MarshalTo

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

func (*ProposalInfo) MarshalToSizedBuffer

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

func (*ProposalInfo) ProtoMessage

func (*ProposalInfo) ProtoMessage()

func (*ProposalInfo) Reset

func (m *ProposalInfo) Reset()

func (*ProposalInfo) Size

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

func (*ProposalInfo) String

func (m *ProposalInfo) String() string

func (*ProposalInfo) Unmarshal

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

func (*ProposalInfo) XXX_DiscardUnknown

func (m *ProposalInfo) XXX_DiscardUnknown()

func (*ProposalInfo) XXX_Marshal

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

func (*ProposalInfo) XXX_Merge

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

func (*ProposalInfo) XXX_Size

func (m *ProposalInfo) XXX_Size() int

func (*ProposalInfo) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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