data

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCodec

func RegisterCodec(codec *codec.Codec)

Types

type AccAddressData

type AccAddressData interface {
	Data
	Get() sdkTypes.AccAddress
}

type BooleanData

type BooleanData interface {
	Data
	Get() bool
}

type Data

type Data interface {
	GetID() ids.DataID

	String() string
	Bytes() []byte

	GetType() ids.StringID
	ZeroValue() Data
	// GenerateHash returns the hash of the Data as an ID
	// * Returns ID of empty bytes when the value of Data is that Data type's zero value
	GenerateHashID() ids.HashID

	traits.Listable
}

TODO URI and ID data type

type DecData

type DecData interface {
	Data
	Get() sdkTypes.Dec
}

type HeightData

type HeightData interface {
	Data
	Get() types.Height
}

type IDData

type IDData interface {
	Data
	Get() ids.ID
}

type ListData

type ListData interface {
	Get() []Data

	Search(Data) (int, bool)
	Add(...Data) ListData
	Remove(...Data) ListData

	Data
}

type StringData

type StringData interface {
	Data
	Get() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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