types

package
v0.1.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthVoteExtensions        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVoteExtensions          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupVoteExtensions = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type OracleVoteExtension

type OracleVoteExtension struct {
	// Prices defines a map of id(CurrencyPair) -> price.Bytes() . i.e. 1 -> 0x123.. (bytes).
	// Notice the `id` function is determined by the `CurrencyPairIDStrategy` used in the
	// VoteExtensionHandler.
	Prices map[uint64][]byte `` /* 154-byte string literal not displayed */
}

OracleVoteExtension defines the vote extension structure for oracle prices.

func (*OracleVoteExtension) Descriptor

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

func (*OracleVoteExtension) GetPrices

func (m *OracleVoteExtension) GetPrices() map[uint64][]byte

func (*OracleVoteExtension) Marshal

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

func (*OracleVoteExtension) MarshalTo

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

func (*OracleVoteExtension) MarshalToSizedBuffer

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

func (*OracleVoteExtension) ProtoMessage

func (*OracleVoteExtension) ProtoMessage()

func (*OracleVoteExtension) Reset

func (m *OracleVoteExtension) Reset()

func (*OracleVoteExtension) Size

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

func (*OracleVoteExtension) String

func (m *OracleVoteExtension) String() string

func (*OracleVoteExtension) Unmarshal

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

func (*OracleVoteExtension) XXX_DiscardUnknown

func (m *OracleVoteExtension) XXX_DiscardUnknown()

func (*OracleVoteExtension) XXX_Marshal

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

func (*OracleVoteExtension) XXX_Merge

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

func (*OracleVoteExtension) XXX_Size

func (m *OracleVoteExtension) XXX_Size() int

func (*OracleVoteExtension) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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