assets

package
v0.7.2-dev-review Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2019 License: GPL-3.0 Imports: 4 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 (*Asset) Clone

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

func (*Asset) ToFlatAsset

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

func (*Asset) ToHash

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

type FlatAssert

type FlatAssert 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