assets

package
v0.3.2-beta.rc.5-hotfix.2 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: GPL-3.0 Imports: 3 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 NewPackageByToken

func NewPackageByToken(tkn *Token) (ret Asset)

func (*Asset) Clone

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

func (*Asset) GetTicket

func (self *Asset) GetTicket() (ret Ticket)

func (*Asset) GetToken

func (self *Asset) GetToken() (ret Token)

func (*Asset) ToCompleteAsset

func (self *Asset) ToCompleteAsset() (ret CompleteAsset)

func (*Asset) ToHash

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

func (Asset) ToRef

func (this Asset) ToRef() (ret *Asset)

type CompleteAsset

type CompleteAsset struct {
	Tkn Token
	Tkt Ticket
}

type Ticket

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

func (*Ticket) Clone

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

func (*Ticket) ToHash

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

func (Ticket) ToRef

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

type Token

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

func (*Token) Clone

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

func (*Token) ToHash

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

func (Token) ToRef

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

Jump to

Keyboard shortcuts

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