types

package
v0.0.0-...-0abe6a2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EvmCreateAction 创建合约
	EvmCreateAction = 1
	// EvmCallAction 调用合约
	EvmCallAction = 2

	// TyLogContractData  合约代码变更日志
	TyLogContractData = 601
	// TyLogContractState  合约状态数据变更日志
	TyLogContractState = 602
	// TyLogCallContract  合约状态数据变更日志
	TyLogCallContract = 603
	// TyLogEVMStateChangeItem  合约状态数据变更项日志
	TyLogEVMStateChangeItem = 604

	// MaxGasLimit  最大Gas消耗上限
	MaxGasLimit = 10000000
)
View Source
const (
	// EVMEnable 启用EVM
	EVMEnable = "Enable"
	// ForkEVMState EVM合约中的数据分散存储,支持大数据量
	ForkEVMState = "ForkEVMState"
	// ForkEVMKVHash EVM合约状态数据生成哈希,保存在主链的StateDB中
	ForkEVMKVHash = "ForkEVMKVHash"
	// ForkEVMABI EVM合约支持ABI绑定和调用
	ForkEVMABI = "ForkEVMABI"
	// ForkEVMFrozen EVM合约用户金额冻结
	ForkEVMFrozen = "ForkEVMFrozen"
)

Variables

View Source
var (
	// EvmPrefix  本执行器前缀
	EvmPrefix = "user.evm."
	// ExecutorName  本执行器名称
	ExecutorName = "evm"

	// ExecerEvm EVM执行器名称
	ExecerEvm = []byte(ExecutorName)
	// UserPrefix 执行器前缀
	UserPrefix = []byte(EvmPrefix)
)

Functions

This section is empty.

Types

type CheckEVMAddrReq

type CheckEVMAddrReq struct {
	Addr                 string   `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CheckEVMAddrReq) Descriptor

func (*CheckEVMAddrReq) Descriptor() ([]byte, []int)

func (*CheckEVMAddrReq) GetAddr

func (m *CheckEVMAddrReq) GetAddr() string

func (*CheckEVMAddrReq) ProtoMessage

func (*CheckEVMAddrReq) ProtoMessage()

func (*CheckEVMAddrReq) Reset

func (m *CheckEVMAddrReq) Reset()

func (*CheckEVMAddrReq) String

func (m *CheckEVMAddrReq) String() string

func (*CheckEVMAddrReq) XXX_DiscardUnknown

func (m *CheckEVMAddrReq) XXX_DiscardUnknown()

func (*CheckEVMAddrReq) XXX_Marshal

func (m *CheckEVMAddrReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckEVMAddrReq) XXX_Merge

func (m *CheckEVMAddrReq) XXX_Merge(src proto.Message)

func (*CheckEVMAddrReq) XXX_Size

func (m *CheckEVMAddrReq) XXX_Size() int

func (*CheckEVMAddrReq) XXX_Unmarshal

func (m *CheckEVMAddrReq) XXX_Unmarshal(b []byte) error

type CheckEVMAddrResp

type CheckEVMAddrResp struct {
	Contract             bool     `protobuf:"varint,1,opt,name=contract,proto3" json:"contract,omitempty"`
	ContractAddr         string   `protobuf:"bytes,2,opt,name=contractAddr,proto3" json:"contractAddr,omitempty"`
	ContractName         string   `protobuf:"bytes,3,opt,name=contractName,proto3" json:"contractName,omitempty"`
	AliasName            string   `protobuf:"bytes,4,opt,name=aliasName,proto3" json:"aliasName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CheckEVMAddrResp) Descriptor

func (*CheckEVMAddrResp) Descriptor() ([]byte, []int)

func (*CheckEVMAddrResp) GetAliasName

func (m *CheckEVMAddrResp) GetAliasName() string

func (*CheckEVMAddrResp) GetContract

func (m *CheckEVMAddrResp) GetContract() bool

func (*CheckEVMAddrResp) GetContractAddr

func (m *CheckEVMAddrResp) GetContractAddr() string

func (*CheckEVMAddrResp) GetContractName

func (m *CheckEVMAddrResp) GetContractName() string

func (*CheckEVMAddrResp) ProtoMessage

func (*CheckEVMAddrResp) ProtoMessage()

func (*CheckEVMAddrResp) Reset

func (m *CheckEVMAddrResp) Reset()

func (*CheckEVMAddrResp) String

func (m *CheckEVMAddrResp) String() string

func (*CheckEVMAddrResp) XXX_DiscardUnknown

func (m *CheckEVMAddrResp) XXX_DiscardUnknown()

func (*CheckEVMAddrResp) XXX_Marshal

func (m *CheckEVMAddrResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckEVMAddrResp) XXX_Merge

func (m *CheckEVMAddrResp) XXX_Merge(src proto.Message)

func (*CheckEVMAddrResp) XXX_Size

func (m *CheckEVMAddrResp) XXX_Size() int

func (*CheckEVMAddrResp) XXX_Unmarshal

func (m *CheckEVMAddrResp) XXX_Unmarshal(b []byte) error

type CreateCallTx

type CreateCallTx struct {
	// Amount 金额
	Amount uint64 `json:"amount"`
	// Code 合约代码
	Code string `json:"code"`
	// GasLimit gas限制
	GasLimit uint64 `json:"gasLimit"`
	// GasPrice gas定价
	GasPrice uint32 `json:"gasPrice"`
	// Note 备注
	Note string `json:"note"`
	// Alias 合约别名
	Alias string `json:"alias"`
	// Fee 交易手续费
	Fee int64 `json:"fee"`
	// Name 交易名称
	Name string `json:"name"`
	// IsCreate 是否创建合约
	IsCreate bool `json:"isCreate"`
	// Abi 创建合约或调用合约时附带的ABI数据
	Abi string `json:"abi"`
}

CreateCallTx 创建或调用合约交易结构

type EVMContractAction

type EVMContractAction struct {
	// 转账金额
	Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// 消耗限制,默认为Transaction.Fee
	GasLimit uint64 `protobuf:"varint,2,opt,name=gasLimit,proto3" json:"gasLimit,omitempty"`
	// gas价格,默认为1
	GasPrice uint32 `protobuf:"varint,3,opt,name=gasPrice,proto3" json:"gasPrice,omitempty"`
	// 合约数据
	Code []byte `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"`
	// 合约别名,方便识别
	Alias string `protobuf:"bytes,5,opt,name=alias,proto3" json:"alias,omitempty"`
	// 交易备注
	Note string `protobuf:"bytes,6,opt,name=note,proto3" json:"note,omitempty"`
	// 创建或调用合约时携带的ABI数据 ForkEVMABI
	Abi                  string   `protobuf:"bytes,7,opt,name=abi,proto3" json:"abi,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

创建/调用合约的请求结构

func (*EVMContractAction) Descriptor

func (*EVMContractAction) Descriptor() ([]byte, []int)

func (*EVMContractAction) GetAbi

func (m *EVMContractAction) GetAbi() string

func (*EVMContractAction) GetAlias

func (m *EVMContractAction) GetAlias() string

func (*EVMContractAction) GetAmount

func (m *EVMContractAction) GetAmount() uint64

func (*EVMContractAction) GetCode

func (m *EVMContractAction) GetCode() []byte

func (*EVMContractAction) GetGasLimit

func (m *EVMContractAction) GetGasLimit() uint64

func (*EVMContractAction) GetGasPrice

func (m *EVMContractAction) GetGasPrice() uint32

func (*EVMContractAction) GetNote

func (m *EVMContractAction) GetNote() string

func (*EVMContractAction) ProtoMessage

func (*EVMContractAction) ProtoMessage()

func (*EVMContractAction) Reset

func (m *EVMContractAction) Reset()

func (*EVMContractAction) String

func (m *EVMContractAction) String() string

func (*EVMContractAction) XXX_DiscardUnknown

func (m *EVMContractAction) XXX_DiscardUnknown()

func (*EVMContractAction) XXX_Marshal

func (m *EVMContractAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EVMContractAction) XXX_Merge

func (m *EVMContractAction) XXX_Merge(src proto.Message)

func (*EVMContractAction) XXX_Size

func (m *EVMContractAction) XXX_Size() int

func (*EVMContractAction) XXX_Unmarshal

func (m *EVMContractAction) XXX_Unmarshal(b []byte) error

type EVMContractData

type EVMContractData struct {
	Creator  string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Alias    string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"`
	Addr     string `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"`
	Code     []byte `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"`
	CodeHash []byte `protobuf:"bytes,6,opt,name=codeHash,proto3" json:"codeHash,omitempty"`
	// 绑定ABI数据 ForkEVMABI
	Abi                  string   `protobuf:"bytes,7,opt,name=abi,proto3" json:"abi,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

存放合约固定数据

func (*EVMContractData) Descriptor

func (*EVMContractData) Descriptor() ([]byte, []int)

func (*EVMContractData) GetAbi

func (m *EVMContractData) GetAbi() string

func (*EVMContractData) GetAddr

func (m *EVMContractData) GetAddr() string

func (*EVMContractData) GetAlias

func (m *EVMContractData) GetAlias() string

func (*EVMContractData) GetCode

func (m *EVMContractData) GetCode() []byte

func (*EVMContractData) GetCodeHash

func (m *EVMContractData) GetCodeHash() []byte

func (*EVMContractData) GetCreator

func (m *EVMContractData) GetCreator() string

func (*EVMContractData) GetName

func (m *EVMContractData) GetName() string

func (*EVMContractData) ProtoMessage

func (*EVMContractData) ProtoMessage()

func (*EVMContractData) Reset

func (m *EVMContractData) Reset()

func (*EVMContractData) String

func (m *EVMContractData) String() string

func (*EVMContractData) XXX_DiscardUnknown

func (m *EVMContractData) XXX_DiscardUnknown()

func (*EVMContractData) XXX_Marshal

func (m *EVMContractData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EVMContractData) XXX_Merge

func (m *EVMContractData) XXX_Merge(src proto.Message)

func (*EVMContractData) XXX_Size

func (m *EVMContractData) XXX_Size() int

func (*EVMContractData) XXX_Unmarshal

func (m *EVMContractData) XXX_Unmarshal(b []byte) error

type EVMContractDataCmd

type EVMContractDataCmd struct {
	Creator              string   `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Alias                string   `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"`
	Addr                 string   `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"`
	Code                 string   `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"`
	CodeHash             string   `protobuf:"bytes,6,opt,name=codeHash,proto3" json:"codeHash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

存放合约固定数据

func (*EVMContractDataCmd) Descriptor

func (*EVMContractDataCmd) Descriptor() ([]byte, []int)

func (*EVMContractDataCmd) GetAddr

func (m *EVMContractDataCmd) GetAddr() string

func (*EVMContractDataCmd) GetAlias

func (m *EVMContractDataCmd) GetAlias() string

func (*EVMContractDataCmd) GetCode

func (m *EVMContractDataCmd) GetCode() string

func (*EVMContractDataCmd) GetCodeHash

func (m *EVMContractDataCmd) GetCodeHash() string

func (*EVMContractDataCmd) GetCreator

func (m *EVMContractDataCmd) GetCreator() string

func (*EVMContractDataCmd) GetName

func (m *EVMContractDataCmd) GetName() string

func (*EVMContractDataCmd) ProtoMessage

func (*EVMContractDataCmd) ProtoMessage()

func (*EVMContractDataCmd) Reset

func (m *EVMContractDataCmd) Reset()

func (*EVMContractDataCmd) String

func (m *EVMContractDataCmd) String() string

func (*EVMContractDataCmd) XXX_DiscardUnknown

func (m *EVMContractDataCmd) XXX_DiscardUnknown()

func (*EVMContractDataCmd) XXX_Marshal

func (m *EVMContractDataCmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EVMContractDataCmd) XXX_Merge

func (m *EVMContractDataCmd) XXX_Merge(src proto.Message)

func (*EVMContractDataCmd) XXX_Size

func (m *EVMContractDataCmd) XXX_Size() int

func (*EVMContractDataCmd) XXX_Unmarshal

func (m *EVMContractDataCmd) XXX_Unmarshal(b []byte) error

type EVMContractObject

type EVMContractObject struct {
	Addr                 string            `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Data                 *EVMContractData  `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	State                *EVMContractState `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

合约对象信息

func (*EVMContractObject) Descriptor

func (*EVMContractObject) Descriptor() ([]byte, []int)

func (*EVMContractObject) GetAddr

func (m *EVMContractObject) GetAddr() string

func (*EVMContractObject) GetData

func (m *EVMContractObject) GetData() *EVMContractData

func (*EVMContractObject) GetState

func (m *EVMContractObject) GetState() *EVMContractState

func (*EVMContractObject) ProtoMessage

func (*EVMContractObject) ProtoMessage()

func (*EVMContractObject) Reset

func (m *EVMContractObject) Reset()

func (*EVMContractObject) String

func (m *EVMContractObject) String() string

func (*EVMContractObject) XXX_DiscardUnknown

func (m *EVMContractObject) XXX_DiscardUnknown()

func (*EVMContractObject) XXX_Marshal

func (m *EVMContractObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EVMContractObject) XXX_Merge

func (m *EVMContractObject) XXX_Merge(src proto.Message)

func (*EVMContractObject) XXX_Size

func (m *EVMContractObject) XXX_Size() int

func (*EVMContractObject) XXX_Unmarshal

func (m *EVMContractObject) XXX_Unmarshal(b []byte) error

type EVMContractState

type EVMContractState struct {
	Nonce                uint64            `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Suicided             bool              `protobuf:"varint,2,opt,name=suicided,proto3" json:"suicided,omitempty"`
	StorageHash          []byte            `protobuf:"bytes,3,opt,name=storageHash,proto3" json:"storageHash,omitempty"`
	Storage              map[string][]byte `` /* 155-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

存放合约变化数据

func (*EVMContractState) Descriptor

func (*EVMContractState) Descriptor() ([]byte, []int)

func (*EVMContractState) GetNonce

func (m *EVMContractState) GetNonce() uint64

func (*EVMContractState) GetStorage

func (m *EVMContractState) GetStorage() map[string][]byte

func (*EVMContractState) GetStorageHash

func (m *EVMContractState) GetStorageHash() []byte

func (*EVMContractState) GetSuicided

func (m *EVMContractState) GetSuicided() bool

func (*EVMContractState) ProtoMessage

func (*EVMContractState) ProtoMessage()

func (*EVMContractState) Reset

func (m *EVMContractState) Reset()

func (*EVMContractState) String

func (m *EVMContractState) String() string

func (*EVMContractState) XXX_DiscardUnknown

func (m *EVMContractState) XXX_DiscardUnknown()

func (*EVMContractState) XXX_Marshal

func (m *EVMContractState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EVMContractState) XXX_Merge

func (m *EVMContractState) XXX_Merge(src proto.Message)

func (*EVMContractState) XXX_Size

func (m *EVMContractState) XXX_Size() int

func (*EVMContractState) XXX_Unmarshal

func (m *EVMContractState) XXX_Unmarshal(b []byte) error

type EVMContractStateCmd

type EVMContractStateCmd struct {
	Nonce                uint64            `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Suicided             bool              `protobuf:"varint,2,opt,name=suicided,proto3" json:"suicided,omitempty"`
	StorageHash          string            `protobuf:"bytes,3,opt,name=storageHash,proto3" json:"storageHash,omitempty"`
	Storage              map[string]string `` /* 155-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

存放合约变化数据

func (*EVMContractStateCmd) Descriptor

func (*EVMContractStateCmd) Descriptor() ([]byte, []int)

func (*EVMContractStateCmd) GetNonce

func (m *EVMContractStateCmd) GetNonce() uint64

func (*EVMContractStateCmd) GetStorage

func (m *EVMContractStateCmd) GetStorage() map[string]string

func (*EVMContractStateCmd) GetStorageHash

func (m *EVMContractStateCmd) GetStorageHash() string

func (*EVMContractStateCmd) GetSuicided

func (m *EVMContractStateCmd) GetSuicided() bool

func (*EVMContractStateCmd) ProtoMessage

func (*EVMContractStateCmd) ProtoMessage()

func (*EVMContractStateCmd) Reset

func (m *EVMContractStateCmd) Reset()

func (*EVMContractStateCmd) String

func (m *EVMContractStateCmd) String() string

func (*EVMContractStateCmd) XXX_DiscardUnknown

func (m *EVMContractStateCmd) XXX_DiscardUnknown()

func (*EVMContractStateCmd) XXX_Marshal

func (m *EVMContractStateCmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EVMContractStateCmd) XXX_Merge

func (m *EVMContractStateCmd) XXX_Merge(src proto.Message)

func (*EVMContractStateCmd) XXX_Size

func (m *EVMContractStateCmd) XXX_Size() int

func (*EVMContractStateCmd) XXX_Unmarshal

func (m *EVMContractStateCmd) XXX_Unmarshal(b []byte) error

type EVMStateChangeItem

type EVMStateChangeItem struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	PreValue             []byte   `protobuf:"bytes,2,opt,name=preValue,proto3" json:"preValue,omitempty"`
	CurrentValue         []byte   `protobuf:"bytes,3,opt,name=currentValue,proto3" json:"currentValue,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

用于保存EVM只能合约中的状态数据变更

func (*EVMStateChangeItem) Descriptor

func (*EVMStateChangeItem) Descriptor() ([]byte, []int)

func (*EVMStateChangeItem) GetCurrentValue

func (m *EVMStateChangeItem) GetCurrentValue() []byte

func (*EVMStateChangeItem) GetKey

func (m *EVMStateChangeItem) GetKey() string

func (*EVMStateChangeItem) GetPreValue

func (m *EVMStateChangeItem) GetPreValue() []byte

func (*EVMStateChangeItem) ProtoMessage

func (*EVMStateChangeItem) ProtoMessage()

func (*EVMStateChangeItem) Reset

func (m *EVMStateChangeItem) Reset()

func (*EVMStateChangeItem) String

func (m *EVMStateChangeItem) String() string

func (*EVMStateChangeItem) XXX_DiscardUnknown

func (m *EVMStateChangeItem) XXX_DiscardUnknown()

func (*EVMStateChangeItem) XXX_Marshal

func (m *EVMStateChangeItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EVMStateChangeItem) XXX_Merge

func (m *EVMStateChangeItem) XXX_Merge(src proto.Message)

func (*EVMStateChangeItem) XXX_Size

func (m *EVMStateChangeItem) XXX_Size() int

func (*EVMStateChangeItem) XXX_Unmarshal

func (m *EVMStateChangeItem) XXX_Unmarshal(b []byte) error

type EstimateEVMGasReq

type EstimateEVMGasReq struct {
	To                   string   `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
	Code                 []byte   `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	Caller               string   `protobuf:"bytes,3,opt,name=caller,proto3" json:"caller,omitempty"`
	Amount               uint64   `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	Abi                  string   `protobuf:"bytes,5,opt,name=abi,proto3" json:"abi,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EstimateEVMGasReq) Descriptor

func (*EstimateEVMGasReq) Descriptor() ([]byte, []int)

func (*EstimateEVMGasReq) GetAbi

func (m *EstimateEVMGasReq) GetAbi() string

func (*EstimateEVMGasReq) GetAmount

func (m *EstimateEVMGasReq) GetAmount() uint64

func (*EstimateEVMGasReq) GetCaller

func (m *EstimateEVMGasReq) GetCaller() string

func (*EstimateEVMGasReq) GetCode

func (m *EstimateEVMGasReq) GetCode() []byte

func (*EstimateEVMGasReq) GetTo

func (m *EstimateEVMGasReq) GetTo() string

func (*EstimateEVMGasReq) ProtoMessage

func (*EstimateEVMGasReq) ProtoMessage()

func (*EstimateEVMGasReq) Reset

func (m *EstimateEVMGasReq) Reset()

func (*EstimateEVMGasReq) String

func (m *EstimateEVMGasReq) String() string

func (*EstimateEVMGasReq) XXX_DiscardUnknown

func (m *EstimateEVMGasReq) XXX_DiscardUnknown()

func (*EstimateEVMGasReq) XXX_Marshal

func (m *EstimateEVMGasReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EstimateEVMGasReq) XXX_Merge

func (m *EstimateEVMGasReq) XXX_Merge(src proto.Message)

func (*EstimateEVMGasReq) XXX_Size

func (m *EstimateEVMGasReq) XXX_Size() int

func (*EstimateEVMGasReq) XXX_Unmarshal

func (m *EstimateEVMGasReq) XXX_Unmarshal(b []byte) error

type EstimateEVMGasResp

type EstimateEVMGasResp struct {
	Gas                  uint64   `protobuf:"varint,1,opt,name=gas,proto3" json:"gas,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EstimateEVMGasResp) Descriptor

func (*EstimateEVMGasResp) Descriptor() ([]byte, []int)

func (*EstimateEVMGasResp) GetGas

func (m *EstimateEVMGasResp) GetGas() uint64

func (*EstimateEVMGasResp) ProtoMessage

func (*EstimateEVMGasResp) ProtoMessage()

func (*EstimateEVMGasResp) Reset

func (m *EstimateEVMGasResp) Reset()

func (*EstimateEVMGasResp) String

func (m *EstimateEVMGasResp) String() string

func (*EstimateEVMGasResp) XXX_DiscardUnknown

func (m *EstimateEVMGasResp) XXX_DiscardUnknown()

func (*EstimateEVMGasResp) XXX_Marshal

func (m *EstimateEVMGasResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EstimateEVMGasResp) XXX_Merge

func (m *EstimateEVMGasResp) XXX_Merge(src proto.Message)

func (*EstimateEVMGasResp) XXX_Size

func (m *EstimateEVMGasResp) XXX_Size() int

func (*EstimateEVMGasResp) XXX_Unmarshal

func (m *EstimateEVMGasResp) XXX_Unmarshal(b []byte) error

type EvmContractCallReq

type EvmContractCallReq struct {
	Amount               uint64   `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Code                 string   `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	Fee                  int64    `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"`
	Note                 string   `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
	Caller               string   `protobuf:"bytes,5,opt,name=caller,proto3" json:"caller,omitempty"`
	Abi                  string   `protobuf:"bytes,6,opt,name=abi,proto3" json:"abi,omitempty"`
	Exec                 string   `protobuf:"bytes,7,opt,name=exec,proto3" json:"exec,omitempty"`
	Expire               string   `protobuf:"bytes,8,opt,name=expire,proto3" json:"expire,omitempty"`
	ParaName             string   `protobuf:"bytes,9,opt,name=paraName,proto3" json:"paraName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EvmContractCallReq) Descriptor

func (*EvmContractCallReq) Descriptor() ([]byte, []int)

func (*EvmContractCallReq) GetAbi

func (m *EvmContractCallReq) GetAbi() string

func (*EvmContractCallReq) GetAmount

func (m *EvmContractCallReq) GetAmount() uint64

func (*EvmContractCallReq) GetCaller

func (m *EvmContractCallReq) GetCaller() string

func (*EvmContractCallReq) GetCode

func (m *EvmContractCallReq) GetCode() string

func (*EvmContractCallReq) GetExec

func (m *EvmContractCallReq) GetExec() string

func (*EvmContractCallReq) GetExpire

func (m *EvmContractCallReq) GetExpire() string

func (*EvmContractCallReq) GetFee

func (m *EvmContractCallReq) GetFee() int64

func (*EvmContractCallReq) GetNote

func (m *EvmContractCallReq) GetNote() string

func (*EvmContractCallReq) GetParaName

func (m *EvmContractCallReq) GetParaName() string

func (*EvmContractCallReq) ProtoMessage

func (*EvmContractCallReq) ProtoMessage()

func (*EvmContractCallReq) Reset

func (m *EvmContractCallReq) Reset()

func (*EvmContractCallReq) String

func (m *EvmContractCallReq) String() string

func (*EvmContractCallReq) XXX_DiscardUnknown

func (m *EvmContractCallReq) XXX_DiscardUnknown()

func (*EvmContractCallReq) XXX_Marshal

func (m *EvmContractCallReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EvmContractCallReq) XXX_Merge

func (m *EvmContractCallReq) XXX_Merge(src proto.Message)

func (*EvmContractCallReq) XXX_Size

func (m *EvmContractCallReq) XXX_Size() int

func (*EvmContractCallReq) XXX_Unmarshal

func (m *EvmContractCallReq) XXX_Unmarshal(b []byte) error

type EvmContractCreateReq

type EvmContractCreateReq struct {
	Code                 string   `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Fee                  int64    `protobuf:"varint,2,opt,name=fee,proto3" json:"fee,omitempty"`
	Note                 string   `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"`
	Alias                string   `protobuf:"bytes,4,opt,name=alias,proto3" json:"alias,omitempty"`
	Caller               string   `protobuf:"bytes,5,opt,name=caller,proto3" json:"caller,omitempty"`
	Abi                  string   `protobuf:"bytes,6,opt,name=abi,proto3" json:"abi,omitempty"`
	Expire               string   `protobuf:"bytes,7,opt,name=expire,proto3" json:"expire,omitempty"`
	ParaName             string   `protobuf:"bytes,8,opt,name=paraName,proto3" json:"paraName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EvmContractCreateReq) Descriptor

func (*EvmContractCreateReq) Descriptor() ([]byte, []int)

func (*EvmContractCreateReq) GetAbi

func (m *EvmContractCreateReq) GetAbi() string

func (*EvmContractCreateReq) GetAlias

func (m *EvmContractCreateReq) GetAlias() string

func (*EvmContractCreateReq) GetCaller

func (m *EvmContractCreateReq) GetCaller() string

func (*EvmContractCreateReq) GetCode

func (m *EvmContractCreateReq) GetCode() string

func (*EvmContractCreateReq) GetExpire

func (m *EvmContractCreateReq) GetExpire() string

func (*EvmContractCreateReq) GetFee

func (m *EvmContractCreateReq) GetFee() int64

func (*EvmContractCreateReq) GetNote

func (m *EvmContractCreateReq) GetNote() string

func (*EvmContractCreateReq) GetParaName

func (m *EvmContractCreateReq) GetParaName() string

func (*EvmContractCreateReq) ProtoMessage

func (*EvmContractCreateReq) ProtoMessage()

func (*EvmContractCreateReq) Reset

func (m *EvmContractCreateReq) Reset()

func (*EvmContractCreateReq) String

func (m *EvmContractCreateReq) String() string

func (*EvmContractCreateReq) XXX_DiscardUnknown

func (m *EvmContractCreateReq) XXX_DiscardUnknown()

func (*EvmContractCreateReq) XXX_Marshal

func (m *EvmContractCreateReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EvmContractCreateReq) XXX_Merge

func (m *EvmContractCreateReq) XXX_Merge(src proto.Message)

func (*EvmContractCreateReq) XXX_Size

func (m *EvmContractCreateReq) XXX_Size() int

func (*EvmContractCreateReq) XXX_Unmarshal

func (m *EvmContractCreateReq) XXX_Unmarshal(b []byte) error

type EvmContractTransferReq

type EvmContractTransferReq struct {
	Caller               string   `protobuf:"bytes,1,opt,name=caller,proto3" json:"caller,omitempty"`
	Amount               float32  `protobuf:"fixed32,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Exec                 string   `protobuf:"bytes,3,opt,name=exec,proto3" json:"exec,omitempty"`
	Expire               string   `protobuf:"bytes,4,opt,name=expire,proto3" json:"expire,omitempty"`
	IsWithdraw           bool     `protobuf:"varint,5,opt,name=isWithdraw,proto3" json:"isWithdraw,omitempty"`
	ParaName             string   `protobuf:"bytes,6,opt,name=paraName,proto3" json:"paraName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EvmContractTransferReq) Descriptor

func (*EvmContractTransferReq) Descriptor() ([]byte, []int)

func (*EvmContractTransferReq) GetAmount

func (m *EvmContractTransferReq) GetAmount() float32

func (*EvmContractTransferReq) GetCaller

func (m *EvmContractTransferReq) GetCaller() string

func (*EvmContractTransferReq) GetExec

func (m *EvmContractTransferReq) GetExec() string

func (*EvmContractTransferReq) GetExpire

func (m *EvmContractTransferReq) GetExpire() string

func (*EvmContractTransferReq) GetIsWithdraw

func (m *EvmContractTransferReq) GetIsWithdraw() bool

func (*EvmContractTransferReq) GetParaName

func (m *EvmContractTransferReq) GetParaName() string

func (*EvmContractTransferReq) ProtoMessage

func (*EvmContractTransferReq) ProtoMessage()

func (*EvmContractTransferReq) Reset

func (m *EvmContractTransferReq) Reset()

func (*EvmContractTransferReq) String

func (m *EvmContractTransferReq) String() string

func (*EvmContractTransferReq) XXX_DiscardUnknown

func (m *EvmContractTransferReq) XXX_DiscardUnknown()

func (*EvmContractTransferReq) XXX_Marshal

func (m *EvmContractTransferReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EvmContractTransferReq) XXX_Merge

func (m *EvmContractTransferReq) XXX_Merge(src proto.Message)

func (*EvmContractTransferReq) XXX_Size

func (m *EvmContractTransferReq) XXX_Size() int

func (*EvmContractTransferReq) XXX_Unmarshal

func (m *EvmContractTransferReq) XXX_Unmarshal(b []byte) error

type EvmDebugReq

type EvmDebugReq struct {
	// 0 query, 1 set, -1 clear
	Optype               int32    `protobuf:"varint,1,opt,name=optype,proto3" json:"optype,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EvmDebugReq) Descriptor

func (*EvmDebugReq) Descriptor() ([]byte, []int)

func (*EvmDebugReq) GetOptype

func (m *EvmDebugReq) GetOptype() int32

func (*EvmDebugReq) ProtoMessage

func (*EvmDebugReq) ProtoMessage()

func (*EvmDebugReq) Reset

func (m *EvmDebugReq) Reset()

func (*EvmDebugReq) String

func (m *EvmDebugReq) String() string

func (*EvmDebugReq) XXX_DiscardUnknown

func (m *EvmDebugReq) XXX_DiscardUnknown()

func (*EvmDebugReq) XXX_Marshal

func (m *EvmDebugReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EvmDebugReq) XXX_Merge

func (m *EvmDebugReq) XXX_Merge(src proto.Message)

func (*EvmDebugReq) XXX_Size

func (m *EvmDebugReq) XXX_Size() int

func (*EvmDebugReq) XXX_Unmarshal

func (m *EvmDebugReq) XXX_Unmarshal(b []byte) error

type EvmDebugResp

type EvmDebugResp struct {
	DebugStatus          string   `protobuf:"bytes,1,opt,name=debugStatus,proto3" json:"debugStatus,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EvmDebugResp) Descriptor

func (*EvmDebugResp) Descriptor() ([]byte, []int)

func (*EvmDebugResp) GetDebugStatus

func (m *EvmDebugResp) GetDebugStatus() string

func (*EvmDebugResp) ProtoMessage

func (*EvmDebugResp) ProtoMessage()

func (*EvmDebugResp) Reset

func (m *EvmDebugResp) Reset()

func (*EvmDebugResp) String

func (m *EvmDebugResp) String() string

func (*EvmDebugResp) XXX_DiscardUnknown

func (m *EvmDebugResp) XXX_DiscardUnknown()

func (*EvmDebugResp) XXX_Marshal

func (m *EvmDebugResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EvmDebugResp) XXX_Merge

func (m *EvmDebugResp) XXX_Merge(src proto.Message)

func (*EvmDebugResp) XXX_Size

func (m *EvmDebugResp) XXX_Size() int

func (*EvmDebugResp) XXX_Unmarshal

func (m *EvmDebugResp) XXX_Unmarshal(b []byte) error

type EvmQueryAbiReq

type EvmQueryAbiReq struct {
	Address              string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EvmQueryAbiReq) Descriptor

func (*EvmQueryAbiReq) Descriptor() ([]byte, []int)

func (*EvmQueryAbiReq) GetAddress

func (m *EvmQueryAbiReq) GetAddress() string

func (*EvmQueryAbiReq) ProtoMessage

func (*EvmQueryAbiReq) ProtoMessage()

func (*EvmQueryAbiReq) Reset

func (m *EvmQueryAbiReq) Reset()

func (*EvmQueryAbiReq) String

func (m *EvmQueryAbiReq) String() string

func (*EvmQueryAbiReq) XXX_DiscardUnknown

func (m *EvmQueryAbiReq) XXX_DiscardUnknown()

func (*EvmQueryAbiReq) XXX_Marshal

func (m *EvmQueryAbiReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EvmQueryAbiReq) XXX_Merge

func (m *EvmQueryAbiReq) XXX_Merge(src proto.Message)

func (*EvmQueryAbiReq) XXX_Size

func (m *EvmQueryAbiReq) XXX_Size() int

func (*EvmQueryAbiReq) XXX_Unmarshal

func (m *EvmQueryAbiReq) XXX_Unmarshal(b []byte) error

type EvmQueryAbiResp

type EvmQueryAbiResp struct {
	Address              string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Abi                  string   `protobuf:"bytes,2,opt,name=abi,proto3" json:"abi,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EvmQueryAbiResp) Descriptor

func (*EvmQueryAbiResp) Descriptor() ([]byte, []int)

func (*EvmQueryAbiResp) GetAbi

func (m *EvmQueryAbiResp) GetAbi() string

func (*EvmQueryAbiResp) GetAddress

func (m *EvmQueryAbiResp) GetAddress() string

func (*EvmQueryAbiResp) ProtoMessage

func (*EvmQueryAbiResp) ProtoMessage()

func (*EvmQueryAbiResp) Reset

func (m *EvmQueryAbiResp) Reset()

func (*EvmQueryAbiResp) String

func (m *EvmQueryAbiResp) String() string

func (*EvmQueryAbiResp) XXX_DiscardUnknown

func (m *EvmQueryAbiResp) XXX_DiscardUnknown()

func (*EvmQueryAbiResp) XXX_Marshal

func (m *EvmQueryAbiResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EvmQueryAbiResp) XXX_Merge

func (m *EvmQueryAbiResp) XXX_Merge(src proto.Message)

func (*EvmQueryAbiResp) XXX_Size

func (m *EvmQueryAbiResp) XXX_Size() int

func (*EvmQueryAbiResp) XXX_Unmarshal

func (m *EvmQueryAbiResp) XXX_Unmarshal(b []byte) error

type EvmQueryReq

type EvmQueryReq struct {
	Address              string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Input                string   `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"`
	Caller               string   `protobuf:"bytes,3,opt,name=caller,proto3" json:"caller,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EvmQueryReq) Descriptor

func (*EvmQueryReq) Descriptor() ([]byte, []int)

func (*EvmQueryReq) GetAddress

func (m *EvmQueryReq) GetAddress() string

func (*EvmQueryReq) GetCaller

func (m *EvmQueryReq) GetCaller() string

func (*EvmQueryReq) GetInput

func (m *EvmQueryReq) GetInput() string

func (*EvmQueryReq) ProtoMessage

func (*EvmQueryReq) ProtoMessage()

func (*EvmQueryReq) Reset

func (m *EvmQueryReq) Reset()

func (*EvmQueryReq) String

func (m *EvmQueryReq) String() string

func (*EvmQueryReq) XXX_DiscardUnknown

func (m *EvmQueryReq) XXX_DiscardUnknown()

func (*EvmQueryReq) XXX_Marshal

func (m *EvmQueryReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EvmQueryReq) XXX_Merge

func (m *EvmQueryReq) XXX_Merge(src proto.Message)

func (*EvmQueryReq) XXX_Size

func (m *EvmQueryReq) XXX_Size() int

func (*EvmQueryReq) XXX_Unmarshal

func (m *EvmQueryReq) XXX_Unmarshal(b []byte) error

type EvmQueryResp

type EvmQueryResp struct {
	Address              string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Input                string   `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"`
	Caller               string   `protobuf:"bytes,3,opt,name=caller,proto3" json:"caller,omitempty"`
	RawData              string   `protobuf:"bytes,4,opt,name=rawData,proto3" json:"rawData,omitempty"`
	JsonData             string   `protobuf:"bytes,5,opt,name=jsonData,proto3" json:"jsonData,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EvmQueryResp) Descriptor

func (*EvmQueryResp) Descriptor() ([]byte, []int)

func (*EvmQueryResp) GetAddress

func (m *EvmQueryResp) GetAddress() string

func (*EvmQueryResp) GetCaller

func (m *EvmQueryResp) GetCaller() string

func (*EvmQueryResp) GetInput

func (m *EvmQueryResp) GetInput() string

func (*EvmQueryResp) GetJsonData

func (m *EvmQueryResp) GetJsonData() string

func (*EvmQueryResp) GetRawData

func (m *EvmQueryResp) GetRawData() string

func (*EvmQueryResp) ProtoMessage

func (*EvmQueryResp) ProtoMessage()

func (*EvmQueryResp) Reset

func (m *EvmQueryResp) Reset()

func (*EvmQueryResp) String

func (m *EvmQueryResp) String() string

func (*EvmQueryResp) XXX_DiscardUnknown

func (m *EvmQueryResp) XXX_DiscardUnknown()

func (*EvmQueryResp) XXX_Marshal

func (m *EvmQueryResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EvmQueryResp) XXX_Merge

func (m *EvmQueryResp) XXX_Merge(src proto.Message)

func (*EvmQueryResp) XXX_Size

func (m *EvmQueryResp) XXX_Size() int

func (*EvmQueryResp) XXX_Unmarshal

func (m *EvmQueryResp) XXX_Unmarshal(b []byte) error

type EvmType

type EvmType struct {
	types.ExecTypeBase
}

EvmType EVM类型定义

func NewType

func NewType() *EvmType

NewType 新建EVM类型对象

func (EvmType) ActionName

func (evm EvmType) ActionName(tx *types.Transaction) string

ActionName 获取ActionName

func (EvmType) Amount

func (evm EvmType) Amount(tx *types.Transaction) (int64, error)

Amount 获取金额

func (EvmType) CreateTx

func (evm EvmType) CreateTx(action string, message json.RawMessage) (*types.Transaction, error)

CreateTx 创建交易对象

func (*EvmType) GetLogMap

func (evm *EvmType) GetLogMap() map[int64]*types.LogInfo

GetLogMap 获取日志类型映射

func (*EvmType) GetName

func (evm *EvmType) GetName() string

GetName 获取执行器名称

func (*EvmType) GetPayload

func (evm *EvmType) GetPayload() types.Message

GetPayload 获取消息负载结构

func (EvmType) GetRealToAddr

func (evm EvmType) GetRealToAddr(tx *types.Transaction) string

GetRealToAddr 获取实际地址

func (*EvmType) GetTypeMap

func (evm *EvmType) GetTypeMap() map[string]int32

GetTypeMap 获取类型映射

type ReceiptEVMContract

type ReceiptEVMContract struct {
	Caller       string `protobuf:"bytes,1,opt,name=caller,proto3" json:"caller,omitempty"`
	ContractName string `protobuf:"bytes,2,opt,name=contractName,proto3" json:"contractName,omitempty"`
	ContractAddr string `protobuf:"bytes,3,opt,name=contractAddr,proto3" json:"contractAddr,omitempty"`
	UsedGas      uint64 `protobuf:"varint,4,opt,name=usedGas,proto3" json:"usedGas,omitempty"`
	// 创建合约返回的代码
	Ret []byte `protobuf:"bytes,5,opt,name=ret,proto3" json:"ret,omitempty"`
	// json格式化后的返回值
	JsonRet              string   `protobuf:"bytes,6,opt,name=jsonRet,proto3" json:"jsonRet,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

合约创建/调用日志

func (*ReceiptEVMContract) Descriptor

func (*ReceiptEVMContract) Descriptor() ([]byte, []int)

func (*ReceiptEVMContract) GetCaller

func (m *ReceiptEVMContract) GetCaller() string

func (*ReceiptEVMContract) GetContractAddr

func (m *ReceiptEVMContract) GetContractAddr() string

func (*ReceiptEVMContract) GetContractName

func (m *ReceiptEVMContract) GetContractName() string

func (*ReceiptEVMContract) GetJsonRet

func (m *ReceiptEVMContract) GetJsonRet() string

func (*ReceiptEVMContract) GetRet

func (m *ReceiptEVMContract) GetRet() []byte

func (*ReceiptEVMContract) GetUsedGas

func (m *ReceiptEVMContract) GetUsedGas() uint64

func (*ReceiptEVMContract) ProtoMessage

func (*ReceiptEVMContract) ProtoMessage()

func (*ReceiptEVMContract) Reset

func (m *ReceiptEVMContract) Reset()

func (*ReceiptEVMContract) String

func (m *ReceiptEVMContract) String() string

func (*ReceiptEVMContract) XXX_DiscardUnknown

func (m *ReceiptEVMContract) XXX_DiscardUnknown()

func (*ReceiptEVMContract) XXX_Marshal

func (m *ReceiptEVMContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReceiptEVMContract) XXX_Merge

func (m *ReceiptEVMContract) XXX_Merge(src proto.Message)

func (*ReceiptEVMContract) XXX_Size

func (m *ReceiptEVMContract) XXX_Size() int

func (*ReceiptEVMContract) XXX_Unmarshal

func (m *ReceiptEVMContract) XXX_Unmarshal(b []byte) error

type ReceiptEVMContractCmd

type ReceiptEVMContractCmd struct {
	Caller string `protobuf:"bytes,1,opt,name=caller,proto3" json:"caller,omitempty"`
	// 合约创建时才会返回此内容
	ContractName string `protobuf:"bytes,2,opt,name=contractName,proto3" json:"contractName,omitempty"`
	ContractAddr string `protobuf:"bytes,3,opt,name=contractAddr,proto3" json:"contractAddr,omitempty"`
	UsedGas      uint64 `protobuf:"varint,4,opt,name=usedGas,proto3" json:"usedGas,omitempty"`
	// 创建合约返回的代码
	Ret                  string   `protobuf:"bytes,5,opt,name=ret,proto3" json:"ret,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

合约创建/调用日志

func (*ReceiptEVMContractCmd) Descriptor

func (*ReceiptEVMContractCmd) Descriptor() ([]byte, []int)

func (*ReceiptEVMContractCmd) GetCaller

func (m *ReceiptEVMContractCmd) GetCaller() string

func (*ReceiptEVMContractCmd) GetContractAddr

func (m *ReceiptEVMContractCmd) GetContractAddr() string

func (*ReceiptEVMContractCmd) GetContractName

func (m *ReceiptEVMContractCmd) GetContractName() string

func (*ReceiptEVMContractCmd) GetRet

func (m *ReceiptEVMContractCmd) GetRet() string

func (*ReceiptEVMContractCmd) GetUsedGas

func (m *ReceiptEVMContractCmd) GetUsedGas() uint64

func (*ReceiptEVMContractCmd) ProtoMessage

func (*ReceiptEVMContractCmd) ProtoMessage()

func (*ReceiptEVMContractCmd) Reset

func (m *ReceiptEVMContractCmd) Reset()

func (*ReceiptEVMContractCmd) String

func (m *ReceiptEVMContractCmd) String() string

func (*ReceiptEVMContractCmd) XXX_DiscardUnknown

func (m *ReceiptEVMContractCmd) XXX_DiscardUnknown()

func (*ReceiptEVMContractCmd) XXX_Marshal

func (m *ReceiptEVMContractCmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReceiptEVMContractCmd) XXX_Merge

func (m *ReceiptEVMContractCmd) XXX_Merge(src proto.Message)

func (*ReceiptEVMContractCmd) XXX_Size

func (m *ReceiptEVMContractCmd) XXX_Size() int

func (*ReceiptEVMContractCmd) XXX_Unmarshal

func (m *ReceiptEVMContractCmd) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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