base

package
v0.0.0-...-483ab13 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: Apache-2.0 Imports: 17 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 NewSignature

func NewSignature(id ids.ID, signatureBytes []byte, validityHeight types.Height) types.Signature

func NewSplit

func NewSplit(ownerID ids.IdentityID, ownableID ids.OwnableID, value sdkTypes.Dec) 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 {
	OwnerID   *base.IdentityID   `protobuf:"bytes,1,opt,name=owner_i_d,json=ownerID,proto3" json:"owner_i_d,omitempty"`
	OwnableID *base.AnyOwnableID `protobuf:"bytes,2,opt,name=ownable_i_d,json=ownableID,proto3" json:"ownable_i_d,omitempty"`
	Value     string             `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
}

func (*Split) CanSend

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

func (*Split) Descriptor

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

func (*Split) GetOwnableID

func (split *Split) GetOwnableID() ids.OwnableID

func (*Split) GetOwnerID

func (split *Split) GetOwnerID() ids.IdentityID

func (*Split) GetValue

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

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) Receive

func (split *Split) Receive(inValue sdkTypes.Dec) types.Split

func (*Split) Reset

func (m *Split) Reset()

func (*Split) Send

func (split *Split) Send(outValue sdkTypes.Dec) types.Split

func (*Split) Size

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

func (*Split) String

func (m *Split) String() string

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