assets

package
v1.0.1-rc6-dev-review3 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: GPL-3.0 Imports: 6 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Tkn *Token  `rlp:"nil"`
	Tkt *Ticket `rlp:"nil"`
}

func NewAsset

func NewAsset(tkn *Token, tkt *Ticket) (ret Asset)

func NewAssetByType

func NewAssetByType(asset *c_type.Asset) (ret Asset)

func (*Asset) Clone

func (self *Asset) Clone() (ret Asset)

func (*Asset) HasAsset

func (self *Asset) HasAsset() bool

func (*Asset) IsValid

func (self *Asset) IsValid() bool

func (*Asset) ToFlatAsset

func (self *Asset) ToFlatAsset() (ret FlatAssert)

func (*Asset) ToHash

func (self *Asset) ToHash() (ret c_type.Uint256)

func (Asset) ToRef

func (self Asset) ToRef() (ret *Asset)

func (*Asset) ToTypeAsset

func (self *Asset) ToTypeAsset() (ret c_type.Asset)

type CKState

type CKState struct {
	// contains filtered or unexported fields
}

func NewCKState

func NewCKState(outPlus bool, fee *Token) (ret CKState)

func (*CKState) AddIn

func (self *CKState) AddIn(asset *Asset) (added bool)

func (*CKState) AddOut

func (self *CKState) AddOut(asset *Asset) (added bool)

func (*CKState) Check

func (self *CKState) Check() (e error)

func (*CKState) CheckTicket

func (self *CKState) CheckTicket() (e error)

func (*CKState) CheckToken

func (self *CKState) CheckToken() (e error)

func (*CKState) GetList

func (self *CKState) GetList() (tkns []Token, tkts []Ticket)

func (*CKState) Tkns

func (self *CKState) Tkns() (ret []Token)

func (*CKState) Tkts

func (self *CKState) Tkts() (ret []Ticket)

type FlatAssert

type FlatAssert struct {
	Tkn Token
	Tkt Ticket
}

type Ticket

type Ticket struct {
	Category c_type.Uint256
	Value    c_type.Uint256
}

func (*Ticket) Clone

func (self *Ticket) Clone() (ret Ticket)

func (*Ticket) ToHash

func (self *Ticket) ToHash() (ret c_type.Uint256)

func (Ticket) ToRef

func (this Ticket) ToRef() (ret *Ticket)

type Token

type Token struct {
	Currency c_type.Uint256
	Value    utils.U256
}

func (*Token) Clone

func (self *Token) Clone() (ret Token)

func (*Token) IsValid

func (self *Token) IsValid() bool

func (*Token) ToHash

func (self *Token) ToHash() (ret c_type.Uint256)

func (Token) ToRef

func (this Token) ToRef() (ret *Token)

func (*Token) ToTypeAsset

func (self *Token) ToTypeAsset() c_type.Asset

Jump to

Keyboard shortcuts

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