payload

package
v0.3.14-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const BookKeeperPayloadVersion byte = 0x00
View Source
const IssueAssetPayloadVersion byte = 0x00
View Source
const RegisterPayloadVersion byte = 0x00
View Source
const TransferAssetayloadVersion byte = 0x00

Variables

This section is empty.

Functions

This section is empty.

Types

type BookKeeper

type BookKeeper struct {
	PubKey *crypto.PubKey
	Action BookKeeperAction
	Cert   []byte
	Issuer *crypto.PubKey
}

func (*BookKeeper) Data

func (self *BookKeeper) Data(version byte) []byte

func (*BookKeeper) Deserialize

func (self *BookKeeper) Deserialize(r io.Reader, version byte) error

func (*BookKeeper) MarshalJson

func (self *BookKeeper) MarshalJson() ([]byte, error)

Bookkeeper will not be used, So the MarshalJson & UnmarshalJson has no content.

func (*BookKeeper) Serialize

func (self *BookKeeper) Serialize(w io.Writer, version byte) error

func (*BookKeeper) UnmarshalJson

func (self *BookKeeper) UnmarshalJson(data []byte) error

type BookKeeperAction

type BookKeeperAction byte
const (
	BookKeeperAction_ADD BookKeeperAction = 0
	BookKeeperAction_SUB BookKeeperAction = 1
)

type Coinbase

type Coinbase struct {
}

func (*Coinbase) Data

func (c *Coinbase) Data(version byte) []byte

func (*Coinbase) Deserialize

func (c *Coinbase) Deserialize(r io.Reader, version byte) error

func (*Coinbase) MarshalJson

func (c *Coinbase) MarshalJson() ([]byte, error)

func (*Coinbase) Serialize

func (c *Coinbase) Serialize(w io.Writer, version byte) error

func (*Coinbase) UnmarshalJson

func (c *Coinbase) UnmarshalJson(data []byte) error

type Commit

type Commit struct {
	SigChain  []byte
	Submitter Uint160
}

func (*Commit) Data

func (c *Commit) Data(version byte) []byte

func (*Commit) Deserialize

func (c *Commit) Deserialize(r io.Reader, version byte) error

func (*Commit) Equal

func (c *Commit) Equal(p2 *Commit) bool

func (*Commit) MarshalJson

func (c *Commit) MarshalJson() ([]byte, error)

func (*Commit) Serialize

func (c *Commit) Serialize(w io.Writer, version byte) error

func (*Commit) UnmarshalJson

func (c *Commit) UnmarshalJson(data []byte) error

type CommitInfo

type CommitInfo struct {
	SigChain  string `json:"sigChain"`
	Submitter string `json:"submitter"`
}

type DeleteName

type DeleteName struct {
	Registrant []byte
}

func (*DeleteName) Data

func (a *DeleteName) Data(version byte) []byte

func (*DeleteName) Deserialize

func (a *DeleteName) Deserialize(r io.Reader, version byte) error

func (*DeleteName) Equal

func (a *DeleteName) Equal(b *DeleteName) bool

func (*DeleteName) MarshalJson

func (a *DeleteName) MarshalJson() ([]byte, error)

func (*DeleteName) Serialize

func (a *DeleteName) Serialize(w io.Writer, version byte) error

func (*DeleteName) UnmarshalJson

func (a *DeleteName) UnmarshalJson(data []byte) error

type DeleteNameInfo

type DeleteNameInfo struct {
	Registrant string `json:"registrant"`
}

type IssueAsset

type IssueAsset struct {
}

func (*IssueAsset) Data

func (a *IssueAsset) Data(version byte) []byte

func (*IssueAsset) Deserialize

func (a *IssueAsset) Deserialize(r io.Reader, version byte) error

func (*IssueAsset) MarshalJson

func (a *IssueAsset) MarshalJson() ([]byte, error)

func (*IssueAsset) Serialize

func (a *IssueAsset) Serialize(w io.Writer, version byte) error

func (*IssueAsset) UnmarshalJson

func (a *IssueAsset) UnmarshalJson(data []byte) error

type Prepaid

type Prepaid struct {
	Asset  Uint256
	Amount Fixed64
	Rates  Fixed64
}

func (*Prepaid) Data

func (p *Prepaid) Data(version byte) []byte

func (*Prepaid) Deserialize

func (p *Prepaid) Deserialize(r io.Reader, version byte) error

func (*Prepaid) Equal

func (p *Prepaid) Equal(b *Prepaid) bool

func (*Prepaid) MarshalJson

func (p *Prepaid) MarshalJson() ([]byte, error)

func (*Prepaid) Serialize

func (p *Prepaid) Serialize(w io.Writer, version byte) error

func (*Prepaid) UnmarshalJson

func (p *Prepaid) UnmarshalJson(data []byte) error

type PrepaidInfo

type PrepaidInfo struct {
	Asset  string `json:"asset"`
	Amount string `json:"amount"`
	Rates  string `json:"rates"`
}

define PrepaidInfo

type RegisterAsset

type RegisterAsset struct {
	Asset      *asset.Asset
	Amount     common.Fixed64
	Issuer     *crypto.PubKey
	Controller common.Uint160
}

func (*RegisterAsset) Data

func (a *RegisterAsset) Data(version byte) []byte

func (*RegisterAsset) Deserialize

func (a *RegisterAsset) Deserialize(r io.Reader, version byte) error

func (*RegisterAsset) Equal

func (a *RegisterAsset) Equal(b *RegisterAsset) bool

func (*RegisterAsset) MarshalJson

func (a *RegisterAsset) MarshalJson() ([]byte, error)

func (*RegisterAsset) Serialize

func (a *RegisterAsset) Serialize(w io.Writer, version byte) error

func (*RegisterAsset) UnmarshalJson

func (a *RegisterAsset) UnmarshalJson(data []byte) error

type RegisterAssetInfo

type RegisterAssetInfo struct {
	Asset      *asset.Asset   `json:"asset"`
	Amount     string         `json:"amount"`
	Issuer     *crypto.PubKey `json:"issuer"`
	Controller string         `json:"controller"`
}

define RegisterAssetInfo

type RegisterName

type RegisterName struct {
	Registrant []byte
	Name       string
}

func (*RegisterName) Data

func (a *RegisterName) Data(version byte) []byte

func (*RegisterName) Deserialize

func (a *RegisterName) Deserialize(r io.Reader, version byte) error

func (*RegisterName) Equal

func (a *RegisterName) Equal(b *RegisterName) bool

func (*RegisterName) MarshalJson

func (a *RegisterName) MarshalJson() ([]byte, error)

func (*RegisterName) Serialize

func (a *RegisterName) Serialize(w io.Writer, version byte) error

func (*RegisterName) UnmarshalJson

func (a *RegisterName) UnmarshalJson(data []byte) error

type RegisterNameInfo

type RegisterNameInfo struct {
	Registrant string `json:"registrant"`
	Name       string `json:"name"`
}

type TransferAsset

type TransferAsset struct {
}

func (*TransferAsset) Data

func (a *TransferAsset) Data(version byte) []byte

func (*TransferAsset) Deserialize

func (a *TransferAsset) Deserialize(r io.Reader, version byte) error

func (*TransferAsset) MarshalJson

func (a *TransferAsset) MarshalJson() ([]byte, error)

func (*TransferAsset) Serialize

func (a *TransferAsset) Serialize(w io.Writer, version byte) error

func (*TransferAsset) UnmarshalJson

func (a *TransferAsset) UnmarshalJson(data []byte) error

type Withdraw

type Withdraw struct {
	ProgramHash Uint160
}

func (*Withdraw) Data

func (p *Withdraw) Data(version byte) []byte

func (*Withdraw) Deserialize

func (p *Withdraw) Deserialize(r io.Reader, version byte) error

func (*Withdraw) Equal

func (p *Withdraw) Equal(p2 *Withdraw) bool

func (*Withdraw) MarshalJson

func (p *Withdraw) MarshalJson() ([]byte, error)

func (*Withdraw) Serialize

func (p *Withdraw) Serialize(w io.Writer, version byte) error

func (*Withdraw) UnmarshalJson

func (p *Withdraw) UnmarshalJson(data []byte) error

type WithdrawInfo

type WithdrawInfo struct {
	ProgramHash string `json:"programHash"`
}

Jump to

Keyboard shortcuts

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