Documentation ¶
Index ¶
- Constants
- type BookKeeper
- type BookKeeperAction
- type Coinbase
- type Commit
- func (c *Commit) Data(version byte) []byte
- func (c *Commit) Deserialize(r io.Reader, version byte) error
- func (c *Commit) Equal(p2 *Commit) bool
- func (c *Commit) MarshalJson() ([]byte, error)
- func (c *Commit) Serialize(w io.Writer, version byte) error
- func (c *Commit) UnmarshalJson(data []byte) error
- type CommitInfo
- type DeleteName
- func (a *DeleteName) Data(version byte) []byte
- func (a *DeleteName) Deserialize(r io.Reader, version byte) error
- func (a *DeleteName) Equal(b *DeleteName) bool
- func (a *DeleteName) MarshalJson() ([]byte, error)
- func (a *DeleteName) Serialize(w io.Writer, version byte) error
- func (a *DeleteName) UnmarshalJson(data []byte) error
- type DeleteNameInfo
- type IssueAsset
- type Prepaid
- func (p *Prepaid) Data(version byte) []byte
- func (p *Prepaid) Deserialize(r io.Reader, version byte) error
- func (p *Prepaid) Equal(b *Prepaid) bool
- func (p *Prepaid) MarshalJson() ([]byte, error)
- func (p *Prepaid) Serialize(w io.Writer, version byte) error
- func (p *Prepaid) UnmarshalJson(data []byte) error
- type PrepaidInfo
- type RegisterAsset
- func (a *RegisterAsset) Data(version byte) []byte
- func (a *RegisterAsset) Deserialize(r io.Reader, version byte) error
- func (a *RegisterAsset) Equal(b *RegisterAsset) bool
- func (a *RegisterAsset) MarshalJson() ([]byte, error)
- func (a *RegisterAsset) Serialize(w io.Writer, version byte) error
- func (a *RegisterAsset) UnmarshalJson(data []byte) error
- type RegisterAssetInfo
- type RegisterName
- func (a *RegisterName) Data(version byte) []byte
- func (a *RegisterName) Deserialize(r io.Reader, version byte) error
- func (a *RegisterName) Equal(b *RegisterName) bool
- func (a *RegisterName) MarshalJson() ([]byte, error)
- func (a *RegisterName) Serialize(w io.Writer, version byte) error
- func (a *RegisterName) UnmarshalJson(data []byte) error
- type RegisterNameInfo
- type TransferAsset
- type Withdraw
- func (p *Withdraw) Data(version byte) []byte
- func (p *Withdraw) Deserialize(r io.Reader, version byte) error
- func (p *Withdraw) Equal(p2 *Withdraw) bool
- func (p *Withdraw) MarshalJson() ([]byte, error)
- func (p *Withdraw) Serialize(w io.Writer, version byte) error
- func (p *Withdraw) UnmarshalJson(data []byte) error
- type WithdrawInfo
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) 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) MarshalJson ¶
func (*Coinbase) UnmarshalJson ¶
type Commit ¶
type Commit struct { SigChain []byte Submitter Uint160 }
func (*Commit) MarshalJson ¶
func (*Commit) UnmarshalJson ¶
type CommitInfo ¶
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) 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) UnmarshalJson ¶
func (a *IssueAsset) UnmarshalJson(data []byte) error
type Prepaid ¶
type Prepaid struct { Asset Uint256 Amount Fixed64 Rates Fixed64 }
func (*Prepaid) MarshalJson ¶
func (*Prepaid) UnmarshalJson ¶
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 ¶
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) UnmarshalJson ¶
func (a *RegisterName) UnmarshalJson(data []byte) error
type RegisterNameInfo ¶
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) MarshalJson ¶
func (*Withdraw) UnmarshalJson ¶
type WithdrawInfo ¶
type WithdrawInfo struct {
ProgramHash string `json:"programHash"`
}
Click to show internal directories.
Click to hide internal directories.