Documentation ¶
Index ¶
- Variables
- type Address
- func (id Address) AsKey() string
- func (id Address) Bytes() []byte
- func (id Address) GoString() string
- func (id Address) MarshalCBOR() ([]byte, error)
- func (id Address) MarshalJSON() ([]byte, error)
- func (id Address) MarshalText() ([]byte, error)
- func (id Address) Ptr() *Address
- func (id Address) String() string
- func (id Address) ToStakeSymbol() (s StakeSymbol)
- func (id *Address) UnmarshalCBOR(data []byte) error
- func (id *Address) UnmarshalJSON(b []byte) error
- func (id *Address) UnmarshalText(b []byte) error
- func (id Address) Valid() bool
- type DataID
- func (id DataID) Bytes() []byte
- func (id DataID) GoString() string
- func (id DataID) MarshalCBOR() ([]byte, error)
- func (id DataID) MarshalJSON() ([]byte, error)
- func (id DataID) MarshalText() ([]byte, error)
- func (id DataID) Ptr() *DataID
- func (id DataID) String() string
- func (id *DataID) UnmarshalCBOR(data []byte) error
- func (id *DataID) UnmarshalJSON(b []byte) error
- func (id *DataID) UnmarshalText(b []byte) error
- func (id DataID) Valid() bool
- func (id DataID) VersionKey(version uint64) []byte
- type ID20
- func (id ID20) Bytes() []byte
- func (id ID20) GoString() string
- func (id ID20) MarshalCBOR() ([]byte, error)
- func (id ID20) MarshalJSON() ([]byte, error)
- func (id ID20) MarshalText() ([]byte, error)
- func (id ID20) Ptr() *ID20
- func (id ID20) String() string
- func (id *ID20) UnmarshalCBOR(data []byte) error
- func (id *ID20) UnmarshalJSON(b []byte) error
- func (id *ID20) UnmarshalText(b []byte) error
- func (id ID20) Valid() bool
- type ID32
- func (id ID32) Bytes() []byte
- func (id ID32) GoString() string
- func (id ID32) MarshalCBOR() ([]byte, error)
- func (id ID32) MarshalJSON() ([]byte, error)
- func (id ID32) MarshalText() ([]byte, error)
- func (id ID32) Ptr() *ID32
- func (id ID32) String() string
- func (id *ID32) UnmarshalCBOR(data []byte) error
- func (id *ID32) UnmarshalJSON(b []byte) error
- func (id *ID32) UnmarshalText(b []byte) error
- func (id ID32) Valid() bool
- type IDList
- func (list IDList[T]) CheckDuplicate() error
- func (list IDList[T]) CheckValid() error
- func (list IDList[T]) Equal(target IDList[T]) bool
- func (list IDList[T]) Has(id T) bool
- func (list IDList[T]) Len() int
- func (list IDList[T]) Less(i, j int) bool
- func (list IDList[T]) Sort()
- func (list IDList[T]) Swap(i, j int)
- func (list IDList[T]) ToValue() value.Value
- func (list IDList[T]) Valid() error
- type List
- type ModelID
- func (id ModelID) Bytes() []byte
- func (id ModelID) GoString() string
- func (id ModelID) MarshalCBOR() ([]byte, error)
- func (id ModelID) MarshalJSON() ([]byte, error)
- func (id ModelID) MarshalText() ([]byte, error)
- func (id ModelID) Ptr() *ModelID
- func (id ModelID) String() string
- func (id *ModelID) UnmarshalCBOR(data []byte) error
- func (id *ModelID) UnmarshalJSON(b []byte) error
- func (id *ModelID) UnmarshalText(b []byte) error
- func (id ModelID) Valid() bool
- type Set
- type StakeSymbol
- func (id StakeSymbol) Address() Address
- func (id StakeSymbol) Bytes() []byte
- func (id StakeSymbol) GoString() string
- func (id StakeSymbol) MarshalCBOR() ([]byte, error)
- func (id StakeSymbol) MarshalJSON() ([]byte, error)
- func (id StakeSymbol) MarshalText() ([]byte, error)
- func (id StakeSymbol) Ptr() *StakeSymbol
- func (id StakeSymbol) String() string
- func (id *StakeSymbol) UnmarshalCBOR(data []byte) error
- func (id *StakeSymbol) UnmarshalJSON(b []byte) error
- func (id *StakeSymbol) UnmarshalText(b []byte) error
- func (id StakeSymbol) Valid() bool
- type TokenSymbol
- func (id TokenSymbol) Address() Address
- func (id TokenSymbol) AsKey() string
- func (id TokenSymbol) Bytes() []byte
- func (id TokenSymbol) GoString() string
- func (id TokenSymbol) MarshalCBOR() ([]byte, error)
- func (id TokenSymbol) MarshalJSON() ([]byte, error)
- func (id TokenSymbol) MarshalText() ([]byte, error)
- func (id TokenSymbol) Ptr() *TokenSymbol
- func (id TokenSymbol) String() string
- func (id *TokenSymbol) UnmarshalCBOR(data []byte) error
- func (id *TokenSymbol) UnmarshalJSON(b []byte) error
- func (id *TokenSymbol) UnmarshalText(b []byte) error
- func (id TokenSymbol) Valid() bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 0x0000000000000000000000000000000000000000 LDCAccount = Address{} // 0xFFfFFFfFfffFFfFFffFFFfFfFffFFFfffFfFFFff GenesisAccount = Address{ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, } )
View Source
var EmptyAddress = Address{}
View Source
var EmptyDataID = DataID{}
View Source
var EmptyID20 = ID20{}
View Source
var EmptyID32 = ID32{}
View Source
var EmptyModelID = ModelID{}
View Source
var EmptyStake = StakeSymbol{}
View Source
var NativeToken = TokenSymbol{}
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address ID20
func AddressFromStr ¶
func (Address) MarshalCBOR ¶
func (Address) MarshalJSON ¶
func (Address) MarshalText ¶
func (Address) ToStakeSymbol ¶
func (id Address) ToStakeSymbol() (s StakeSymbol)
func (*Address) UnmarshalCBOR ¶
func (*Address) UnmarshalJSON ¶
func (*Address) UnmarshalText ¶
type DataID ¶
type DataID ID32
func DataIDFromStr ¶
func (DataID) MarshalCBOR ¶
func (DataID) MarshalJSON ¶
func (DataID) MarshalText ¶
func (*DataID) UnmarshalCBOR ¶
func (*DataID) UnmarshalJSON ¶
func (*DataID) UnmarshalText ¶
func (DataID) VersionKey ¶
type ID20 ¶
type ID20 [20]byte
func (ID20) MarshalCBOR ¶
func (ID20) MarshalJSON ¶
func (ID20) MarshalText ¶
func (*ID20) UnmarshalCBOR ¶
func (*ID20) UnmarshalJSON ¶
func (*ID20) UnmarshalText ¶
type ID32 ¶
type ID32 [32]byte
func ID32FromBytes ¶
func ID32FromData ¶
func ID32FromStr ¶ added in v0.1.0
func (ID32) MarshalCBOR ¶
func (ID32) MarshalJSON ¶
func (ID32) MarshalText ¶
func (*ID32) UnmarshalCBOR ¶
func (*ID32) UnmarshalJSON ¶
func (*ID32) UnmarshalText ¶
type IDList ¶
type IDList[T idT] []T
func (IDList[T]) CheckDuplicate ¶
func (IDList[T]) CheckValid ¶
type ModelID ¶
type ModelID ID20
func ModelIDFromHash ¶
func ModelIDFromStr ¶
func (ModelID) MarshalCBOR ¶
func (ModelID) MarshalJSON ¶
func (ModelID) MarshalText ¶
func (*ModelID) UnmarshalCBOR ¶
func (*ModelID) UnmarshalJSON ¶
func (*ModelID) UnmarshalText ¶
type StakeSymbol ¶
type StakeSymbol ID20
StakeSymbol
func StakeFromStr ¶
func StakeFromStr(s string) (StakeSymbol, error)
func (StakeSymbol) Address ¶
func (id StakeSymbol) Address() Address
func (StakeSymbol) Bytes ¶
func (id StakeSymbol) Bytes() []byte
func (StakeSymbol) GoString ¶
func (id StakeSymbol) GoString() string
func (StakeSymbol) MarshalCBOR ¶
func (id StakeSymbol) MarshalCBOR() ([]byte, error)
func (StakeSymbol) MarshalJSON ¶
func (id StakeSymbol) MarshalJSON() ([]byte, error)
func (StakeSymbol) MarshalText ¶
func (id StakeSymbol) MarshalText() ([]byte, error)
func (StakeSymbol) Ptr ¶
func (id StakeSymbol) Ptr() *StakeSymbol
func (StakeSymbol) String ¶
func (id StakeSymbol) String() string
func (*StakeSymbol) UnmarshalCBOR ¶
func (id *StakeSymbol) UnmarshalCBOR(data []byte) error
func (*StakeSymbol) UnmarshalJSON ¶
func (id *StakeSymbol) UnmarshalJSON(b []byte) error
func (*StakeSymbol) UnmarshalText ¶
func (id *StakeSymbol) UnmarshalText(b []byte) error
func (StakeSymbol) Valid ¶
func (id StakeSymbol) Valid() bool
type TokenSymbol ¶
type TokenSymbol ID20
TokenSymbol
func TokenFromStr ¶
func TokenFromStr(s string) (TokenSymbol, error)
func (TokenSymbol) Address ¶
func (id TokenSymbol) Address() Address
func (TokenSymbol) AsKey ¶
func (id TokenSymbol) AsKey() string
func (TokenSymbol) Bytes ¶
func (id TokenSymbol) Bytes() []byte
func (TokenSymbol) GoString ¶
func (id TokenSymbol) GoString() string
func (TokenSymbol) MarshalCBOR ¶
func (id TokenSymbol) MarshalCBOR() ([]byte, error)
func (TokenSymbol) MarshalJSON ¶
func (id TokenSymbol) MarshalJSON() ([]byte, error)
func (TokenSymbol) MarshalText ¶
func (id TokenSymbol) MarshalText() ([]byte, error)
func (TokenSymbol) Ptr ¶
func (id TokenSymbol) Ptr() *TokenSymbol
func (TokenSymbol) String ¶
func (id TokenSymbol) String() string
func (*TokenSymbol) UnmarshalCBOR ¶
func (id *TokenSymbol) UnmarshalCBOR(data []byte) error
func (*TokenSymbol) UnmarshalJSON ¶
func (id *TokenSymbol) UnmarshalJSON(b []byte) error
func (*TokenSymbol) UnmarshalText ¶
func (id *TokenSymbol) UnmarshalText(b []byte) error
func (TokenSymbol) Valid ¶
func (id TokenSymbol) Valid() bool
Click to show internal directories.
Click to hide internal directories.