types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthVoteExtension        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVoteExtension          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupVoteExtension = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type InjectedTx

type InjectedTx struct {
	// assets_locked_events is a list of canonical AssetsLockedEvent forming
	// a sequence strictly increasing by 1. This list is derived from the
	// extended_commit_info field.
	AssetsLockedEvents []types.AssetsLockedEvent `protobuf:"bytes,1,rep,name=assets_locked_events,json=assetsLockedEvents,proto3" json:"assets_locked_events"`
	// extended_commit_info is the extended commit info of the previous block.
	// It holds the vote extensions that are used to derive the
	// assets_locked_events.
	ExtendedCommitInfo []byte `protobuf:"bytes,2,opt,name=extended_commit_info,json=extendedCommitInfo,proto3" json:"extended_commit_info,omitempty"`
}

InjectedTx defines the bridge-specific pseudo-tx used to inject previous-block vote extensions along with a sequence of canonical AssetsLocked events into the current block proposal.

func (*InjectedTx) Descriptor

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

func (*InjectedTx) GetAssetsLockedEvents

func (m *InjectedTx) GetAssetsLockedEvents() []types.AssetsLockedEvent

func (*InjectedTx) GetExtendedCommitInfo

func (m *InjectedTx) GetExtendedCommitInfo() []byte

func (*InjectedTx) Marshal

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

func (*InjectedTx) MarshalTo

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

func (*InjectedTx) MarshalToSizedBuffer

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

func (*InjectedTx) ProtoMessage

func (*InjectedTx) ProtoMessage()

func (*InjectedTx) Reset

func (m *InjectedTx) Reset()

func (*InjectedTx) Size

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

func (*InjectedTx) String

func (m *InjectedTx) String() string

func (*InjectedTx) Unmarshal

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

func (*InjectedTx) XXX_DiscardUnknown

func (m *InjectedTx) XXX_DiscardUnknown()

func (*InjectedTx) XXX_Marshal

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

func (*InjectedTx) XXX_Merge

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

func (*InjectedTx) XXX_Size

func (m *InjectedTx) XXX_Size() int

func (*InjectedTx) XXX_Unmarshal

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

type VoteExtension

type VoteExtension struct {
	// assets_locked_events is a list of AssetsLockedEvent that are part of the
	// vote extension.
	AssetsLockedEvents []types.AssetsLockedEvent `protobuf:"bytes,1,rep,name=assets_locked_events,json=assetsLockedEvents,proto3" json:"assets_locked_events"`
}

VoteExtension defines the vote extension structure for the Bitcoin bridge.

func (*VoteExtension) Descriptor

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

func (*VoteExtension) GetAssetsLockedEvents

func (m *VoteExtension) GetAssetsLockedEvents() []types.AssetsLockedEvent

func (*VoteExtension) Marshal

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

func (*VoteExtension) MarshalTo

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

func (*VoteExtension) MarshalToSizedBuffer

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

func (*VoteExtension) ProtoMessage

func (*VoteExtension) ProtoMessage()

func (*VoteExtension) Reset

func (m *VoteExtension) Reset()

func (*VoteExtension) Size

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

func (*VoteExtension) String

func (m *VoteExtension) String() string

func (*VoteExtension) Unmarshal

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

func (*VoteExtension) XXX_DiscardUnknown

func (m *VoteExtension) XXX_DiscardUnknown()

func (*VoteExtension) XXX_Marshal

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

func (*VoteExtension) XXX_Merge

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

func (*VoteExtension) XXX_Size

func (m *VoteExtension) XXX_Size() int

func (*VoteExtension) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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