Documentation ¶
Index ¶
- Constants
- Variables
- type Asset
- type AssetAccount
- type AssetAddr
- type AssetSymbol
- type Ctrl
- type Dict
- func (dict Dict) Exists(key string) bool
- func (dict Dict) GetBool(key string) (bool, *errors.Error)
- func (dict Dict) GetDict(key string) (Dict, *errors.Error)
- func (dict Dict) GetFloat32(key string) (float32, *errors.Error)
- func (dict Dict) GetFloat64(key string) (float64, *errors.Error)
- func (dict Dict) GetInt16(key string) (int16, *errors.Error)
- func (dict Dict) GetInt32(key string) (int32, *errors.Error)
- func (dict Dict) GetInt64(key string) (int64, *errors.Error)
- func (dict Dict) GetString(key string) (string, *errors.Error)
- func (dict Dict) MustExists(key ...string) *errors.Error
- func (dict Dict) MustSet(key string, value interface{}) Dict
- func (dict *Dict) Scan(value interface{}) error
- func (dict Dict) Set(key string, value interface{}) *errors.Error
- func (dict Dict) Value() (driver.Value, error)
- type EncryptedPassword
- type Identity
- type IdentityAddr
- type Link
- type Memo
- type Meta
- type MetaID
- type MetaRef
- type Network
- type NetworkAddr
- type NetworkSymbol
- type NodeAddr
- type Participant
- type ParticipantAddr
- type Password
- type Signature
- type Stake
- type StakeAccount
- type StakeAddr
- type StakeSymbol
- type Tag
- type Token
- type TokenAccount
- type TokenAccountAddr
- type TokenAddr
- type TokenSymbol
- type Tx
- type ValuableNode
Constants ¶
View Source
const ( MetaName = "name" MetaUri = "uri" MetaDescription = "description" )
View Source
const ( TokenCtrlNonDivisible = 1 TokenCtrlNonTransferable = 2 TokenCtrlBurnable = 3 TokenCtrlNonCollateral = 4 )
Variables ¶
View Source
var DictErrInvalidType = errors.Verify("the value obtained is not of the expected type")
View Source
var DictErrInvalidValue = errors.Verify("dict value must be a string or a Dict")
View Source
var DictErrKeyNotFound = errors.Verify("no such key in this dict")
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct { Link Link `json:"link" bson:"link"` Authority keys.Address `json:"authority" bson:"authority"` Network NetworkAddr `json:"network" bson:"network"` Address AssetAddr `json:"address" bson:"address"` Symbol string `json:"symbol" bson:"symbol"` Ctrl Ctrl `json:"ctrl" bson:"ctrl"` Tag Tag `json:"tag" bson:"tag"` Meta Meta `json:"meta" bson:"meta"` }
type AssetAccount ¶
type AssetSymbol ¶
type AssetSymbol string
func (AssetSymbol) Validate ¶
func (s AssetSymbol) Validate() *errors.Error
type EncryptedPassword ¶
type EncryptedPassword string
func NewEncryptedPassword ¶
func NewEncryptedPassword(pwd Password) EncryptedPassword
func (EncryptedPassword) Match ¶
func (ep EncryptedPassword) Match(pwd Password) bool
type Identity ¶
type Identity struct { Address IdentityAddr `bson:"address" json:"address"` NineoraID keys.NineoraID `bson:"nineora_id" json:"nineora_id"` Link Link `bson:"link" json:"link"` Ctrl Ctrl `bson:"ctrl,omitempty" json:"ctrl,omitempty"` Tag Tag `bson:"tag,omitempty" json:"tag,omitempty"` Meta Meta `bson:"meta,omitempty" json:"meta,omitempty"` }
type IdentityAddr ¶
type NetworkAddr ¶
type NetworkSymbol ¶
type NetworkSymbol string
func (NetworkSymbol) Validate ¶
func (s NetworkSymbol) Validate() *errors.Error
type Participant ¶
type ParticipantAddr ¶
type Password ¶
type Password string
func NewPassword ¶
func (Password) EncryptedPassword ¶
func (p Password) EncryptedPassword() EncryptedPassword
type Stake ¶
type Stake struct { Link Link `json:"link" bson:"link"` Authority keys.Address `json:"authority" bson:"authority"` Network NetworkAddr `json:"network" bson:"network"` Symbol StakeSymbol `json:"symbol" bson:"symbol"` Total uint64 `json:"total" bson:"total"` Ctrl Ctrl `json:"ctrl" bson:"ctrl"` Tag Tag `json:"tag" bson:"tag"` Meta Meta `json:"meta" bson:"meta"` }
type StakeAccount ¶
type StakeSymbol ¶
type StakeSymbol string
func (StakeSymbol) Validate ¶
func (s StakeSymbol) Validate() *errors.Error
type Token ¶
type Token struct { Link Link `json:"link" bson:"link"` Authority keys.Address `json:"authority" bson:"authority"` Network NetworkAddr `json:"network" bson:"network"` Mint TokenAddr `json:"address" bson:"address"` Symbol string `json:"symbol" bson:"symbol"` Decimals uint8 `json:"decimals" bson:"decimals"` Ctrl Ctrl `json:"ctrl" bson:"ctrl"` Tag Tag `json:"tag" bson:"tag"` Meta Meta `json:"meta" bson:"meta"` }
type TokenAccount ¶
type TokenAccount struct { Address TokenAccountAddr `json:"address" bson:"address"` Mint TokenAddr `json:"mint" bson:"mint"` Symbol TokenSymbol `json:"symbol" bson:"symbol"` Supply uint64 `json:"supply" bson:"supply"` Balance uint64 `json:"balance" bson:"balance"` Decimals uint8 `json:"decimals" bson:"decimals"` }
func (*TokenAccount) UiAmount ¶
func (t *TokenAccount) UiAmount() string
type TokenAccountAddr ¶
type TokenSymbol ¶
type TokenSymbol string
func (TokenSymbol) Validate ¶
func (s TokenSymbol) Validate() *errors.Error
type ValuableNode ¶
type ValuableNode struct { Network NetworkAddr `json:"network" bson:"network"` Superior keys.Address `json:"superior" bson:"superior"` Authority keys.Address `json:"authority" bson:"authority"` Symbol string `json:"symbol" bson:"symbol"` Ctrl Ctrl `json:"ctrl" bson:"ctrl"` Tag Tag `json:"tag" bson:"tag"` Meta Meta `json:"meta" bson:"meta"` }
Click to show internal directories.
Click to hide internal directories.