Documentation ¶
Overview ¶
* Copyright (C) 2018 The ontology Authors * This file is part of The ontology library. * * The ontology is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The ontology is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with The ontology. If not, see <http://www.gnu.org/licenses/>.
Index ¶
- Constants
- type Bookkeeper
- type BookkeeperAction
- type DeployCode
- func (dc *DeployCode) Address() common.Address
- func (dc *DeployCode) Deserialization(source *common.ZeroCopySource) error
- func (dc *DeployCode) GetNeoCode() ([]byte, error)
- func (dc *DeployCode) GetRawCode() []byte
- func (dc *DeployCode) GetWasmCode() ([]byte, error)
- func (dc *DeployCode) Serialization(sink *common.ZeroCopySink)
- func (dc *DeployCode) ToArray() []byte
- func (dc *DeployCode) VmType() VmType
- type EIP155Code
- type InvokeCode
- type VmType
Constants ¶
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) Deserialization ¶ added in v1.8.1
func (self *Bookkeeper) Deserialization(source *common.ZeroCopySource) error
func (*Bookkeeper) Serialization ¶ added in v1.8.1
func (self *Bookkeeper) Serialization(sink *common.ZeroCopySink)
type BookkeeperAction ¶
type BookkeeperAction byte
const ( BookkeeperAction_ADD BookkeeperAction = 0 BookkeeperAction_SUB BookkeeperAction = 1 )
type DeployCode ¶
type DeployCode struct { 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 CreateDeployCode ¶ added in v1.8.0
func NewDeployCode ¶ added in v1.8.1
func NewDeployCode(code []byte, vmType VmType, name, version, author, email, description string) (*DeployCode, error)
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) GetNeoCode ¶ added in v1.8.1
func (dc *DeployCode) GetNeoCode() ([]byte, error)
func (*DeployCode) GetRawCode ¶ added in v1.8.1
func (dc *DeployCode) GetRawCode() []byte
func (*DeployCode) GetWasmCode ¶ added in v1.8.1
func (dc *DeployCode) GetWasmCode() ([]byte, error)
func (*DeployCode) Serialization ¶ added in v1.0.3
func (dc *DeployCode) Serialization(sink *common.ZeroCopySink)
func (*DeployCode) ToArray ¶
func (dc *DeployCode) ToArray() []byte
func (*DeployCode) VmType ¶ added in v1.8.0
func (dc *DeployCode) VmType() VmType
type EIP155Code ¶ added in v1.14.1
type EIP155Code struct {
EIPTx *types.Transaction
}
func (*EIP155Code) Deserialization ¶ added in v1.14.1
func (self *EIP155Code) Deserialization(source *common.ZeroCopySource) error
func (*EIP155Code) Serialization ¶ added in v1.14.1
func (self *EIP155Code) Serialization(sink *common.ZeroCopySink)
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) Serialization ¶ added in v1.0.3
func (self *InvokeCode) Serialization(sink *common.ZeroCopySink)