types

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCodec

func RegisterCodec(codec *codec.Codec)

Types

type Data

type Data interface {
	String() string

	GenerateHash() string

	AsString() (string, error)
	AsDec() (sdkTypes.Dec, error)
	AsHeight() (Height, error)
	AsID() (ID, error)

	Get() interface{}

	Equal(Data) bool
}

type Fact

type Fact interface {
	GetHash() string
	GetType() string
	GetSignatures() Signatures

	Sign(keyring.Keyring) Fact
}

type Height

type Height interface {
	Get() int64
	IsGreaterThan(Height) bool
}

type ID

type ID interface {
	String() string
	Bytes() []byte
	Equal(ID) bool
}

type Immutables

type Immutables interface {
	Get() Properties
	GetHashID() ID
}

type MetaFact

type MetaFact interface {
	GetData() Data
	RemoveData() Fact
	Fact
}

type MetaProperties

type MetaProperties interface {
	GetMetaProperty(ID) MetaProperty

	GetMetaPropertyList() []MetaProperty

	AddMetaProperty(MetaProperty) MetaProperties
	RemoveMetaProperty(MetaProperty) MetaProperties
	MutateMetaProperty(MetaProperty) MetaProperties

	RemoveData() Properties

	Properties
}

type MetaProperty

type MetaProperty interface {
	GetMetaFact() MetaFact
	RemoveData() Property
	Property
}

type Mutables

type Mutables interface {
	Get() Properties
	Mutate(...Property) Mutables
}

type NFT

type NFT interface {
	GetID() ID
	GetClassificationID() ID
}

type NFTWallet

type NFTWallet interface {
	GetAccAddress() sdkTypes.AccAddress
	GetNFTID() ID
}

type Parameter

type Parameter interface {
	String() string
	Equal(Parameter) bool
	Validate() error

	GetID() ID
	GetData() Data
	GetValidator() func(interface{}) error

	Mutate(Data) Parameter
}

type Properties

type Properties interface {
	Get(ID) Property

	GetList() []Property

	Add(Property) Properties
	Remove(Property) Properties
	Mutate(Property) Properties
}

type Property

type Property interface {
	GetID() ID
	GetFact() Fact
}

type Share

type Share interface {
	GetAmount() int
}

type Signature

type Signature interface {
	String() string
	Bytes() []byte

	GetID() ID

	Verify(crypto.PubKey, []byte) bool
	GetValidityHeight() Height
	HasExpired(Height) bool
}

type Signatures

type Signatures interface {
	Get(ID) Signature

	GetList() []Signature

	Add(Signature) Signatures
	Remove(Signature) Signatures
	Mutate(Signature) Signatures
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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