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

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