base

package
v0.0.0-...-59a8832 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: 13 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthHeight        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowHeight          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupHeight = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSplit        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSplit          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSplit = fmt.Errorf("proto: unexpected end of group")
)

Functions

func CurrentHeight

func CurrentHeight(context context.Context) types.Height

func NewHeight

func NewHeight(value int64) types.Height

func NewSplit

func NewSplit(value sdkTypes.Int) types.Split

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(legacyAmino *codec.LegacyAmino)

Types

type Height

type Height struct {
	Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
}

func (*Height) Bytes

func (height *Height) Bytes() []byte

func (*Height) Compare

func (height *Height) Compare(compareHeight types.Height) int

func (*Height) Descriptor

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

func (*Height) Get

func (height *Height) Get() int64

func (*Height) Marshal

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

func (*Height) MarshalTo

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

func (*Height) MarshalToSizedBuffer

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

func (*Height) ProtoMessage

func (*Height) ProtoMessage()

func (*Height) Reset

func (m *Height) Reset()

func (*Height) Size

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

func (*Height) String

func (m *Height) String() string

func (*Height) Unmarshal

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

func (*Height) ValidateBasic

func (height *Height) ValidateBasic() error

func (*Height) XXX_DiscardUnknown

func (m *Height) XXX_DiscardUnknown()

func (*Height) XXX_Marshal

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

func (*Height) XXX_Merge

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

func (*Height) XXX_Size

func (m *Height) XXX_Size() int

func (*Height) XXX_Unmarshal

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

type Split

type Split struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

func (*Split) Add

func (split *Split) Add(inValue sdkTypes.Int) types.Split

func (*Split) CanSend

func (split *Split) CanSend(outValue sdkTypes.Int) bool

func (*Split) Descriptor

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

func (*Split) GetValue

func (split *Split) GetValue() sdkTypes.Int

func (*Split) Marshal

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

func (*Split) MarshalTo

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

func (*Split) MarshalToSizedBuffer

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

func (*Split) ProtoMessage

func (*Split) ProtoMessage()

func (*Split) Reset

func (m *Split) Reset()

func (*Split) Size

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

func (*Split) String

func (m *Split) String() string

func (*Split) Subtract

func (split *Split) Subtract(outValue sdkTypes.Int) types.Split

func (*Split) Unmarshal

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

func (*Split) ValidateBasic

func (split *Split) ValidateBasic() error

func (*Split) XXX_DiscardUnknown

func (m *Split) XXX_DiscardUnknown()

func (*Split) XXX_Marshal

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

func (*Split) XXX_Merge

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

func (*Split) XXX_Size

func (m *Split) XXX_Size() int

func (*Split) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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