payload

package
v1.5.2-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2018 License: LGPL-3.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const BookkeeperPayloadVersion byte = 0x00

Variables

This section is empty.

Functions

This section is empty.

Types

type Bookkeeper

type Bookkeeper struct {
	PubKey keypair.PublicKey
	Action BookkeeperAction
	Cert   []byte
	Issuer keypair.PublicKey
}

Bookkeeper is an implementation of transaction payload for consensus bookkeeper list modification

func (*Bookkeeper) Deserialize

func (self *Bookkeeper) Deserialize(r io.Reader) error

Deserialize deserialize Bookkeeper from io.Reader

func (*Bookkeeper) Serialize

func (self *Bookkeeper) Serialize(w io.Writer) error

Serialize serialize Bookkeeper into io.Writer

type BookkeeperAction

type BookkeeperAction byte
const (
	BookkeeperAction_ADD BookkeeperAction = 0
	BookkeeperAction_SUB BookkeeperAction = 1
)

type DeployCode

type DeployCode struct {
	Code        []byte
	NeedStorage bool
	Name        string
	Version     string
	Author      string
	Email       string
	Description string
	// contains filtered or unexported fields
}

DeployCode is an implementation of transaction payload for deploy smartcontract

func (*DeployCode) Address added in v1.5.1

func (dc *DeployCode) Address() common.Address

func (*DeployCode) Deserialization added in v1.0.3

func (dc *DeployCode) Deserialization(source *common.ZeroCopySource) error

note: DeployCode.Code has data reference of param source

func (*DeployCode) Deserialize

func (dc *DeployCode) Deserialize(r io.Reader) error

func (*DeployCode) Serialization added in v1.0.3

func (dc *DeployCode) Serialization(sink *common.ZeroCopySink) error

func (*DeployCode) Serialize

func (dc *DeployCode) Serialize(w io.Writer) error

func (*DeployCode) ToArray

func (dc *DeployCode) ToArray() []byte

type InvokeCode

type InvokeCode struct {
	Code []byte
}

InvokeCode is an implementation of transaction payload for invoke smartcontract

func (*InvokeCode) Deserialization added in v1.0.3

func (self *InvokeCode) Deserialization(source *common.ZeroCopySource) error

note: InvokeCode.Code has data reference of param source

func (*InvokeCode) Deserialize

func (self *InvokeCode) Deserialize(r io.Reader) error

func (*InvokeCode) Serialization added in v1.0.3

func (self *InvokeCode) Serialization(sink *common.ZeroCopySink) error

func (*InvokeCode) Serialize

func (self *InvokeCode) Serialize(w io.Writer) error

Jump to

Keyboard shortcuts

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