types

package
Version: v1.65.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: BSD-3-Clause Imports: 8 Imported by: 16

Documentation

Index

Constants

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

	// TyLogContractData  合约代码变更日志
	TyLogContractData = 601
	// TyLogContractState  合约状态数据变更日志
	TyLogContractState = 602
	// TyLogCallContract  合约状态数据变更日志
	TyLogCallContract = 603
	// TyLogEVMStateChangeItem  合约状态数据变更项日志
	TyLogEVMStateChangeItem = 604
	// TyLogEVMEventData 合约生成新的event日志数据
	TyLogEVMEventData = 605

	// MaxGasLimit  最大Gas消耗上限 5
	MaxGasLimit = (100000000 * 5)
)
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"
	// ForkEVMYoloV1 YoloV1虚拟机指令分叉
	ForkEVMYoloV1 = "ForkEVMYoloV1"
	//ForkEVMTxGroup 交易组中的交易通过GAS检查
	ForkEVMTxGroup = "ForkEVMTxGroup"
)

Variables

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

	// ExecerEvm EVM执行器名称
	ExecerEvm = []byte(ExecutorName)
	// UserPrefix 执行器前缀
	UserPrefix = []byte(EvmPrefix)
)
View Source
var File_evmcontract_proto protoreflect.FileDescriptor

Functions

func InitExecutor

func InitExecutor(cfg *types.Chain33Config)

InitExecutor ...

func InitFork

func InitFork(cfg *types.Chain33Config)

InitFork ...

Types

type CheckEVMAddrReq

type CheckEVMAddrReq struct {
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckEVMAddrReq) Descriptor deprecated

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

Deprecated: Use CheckEVMAddrReq.ProtoReflect.Descriptor instead.

func (*CheckEVMAddrReq) GetAddr

func (x *CheckEVMAddrReq) GetAddr() string

func (*CheckEVMAddrReq) ProtoMessage

func (*CheckEVMAddrReq) ProtoMessage()

func (*CheckEVMAddrReq) ProtoReflect added in v1.65.3

func (x *CheckEVMAddrReq) ProtoReflect() protoreflect.Message

func (*CheckEVMAddrReq) Reset

func (x *CheckEVMAddrReq) Reset()

func (*CheckEVMAddrReq) String

func (x *CheckEVMAddrReq) String() string

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"`
	// contains filtered or unexported fields
}

func (*CheckEVMAddrResp) Descriptor deprecated

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

Deprecated: Use CheckEVMAddrResp.ProtoReflect.Descriptor instead.

func (*CheckEVMAddrResp) GetAliasName

func (x *CheckEVMAddrResp) GetAliasName() string

func (*CheckEVMAddrResp) GetContract

func (x *CheckEVMAddrResp) GetContract() bool

func (*CheckEVMAddrResp) GetContractAddr

func (x *CheckEVMAddrResp) GetContractAddr() string

func (*CheckEVMAddrResp) GetContractName

func (x *CheckEVMAddrResp) GetContractName() string

func (*CheckEVMAddrResp) ProtoMessage

func (*CheckEVMAddrResp) ProtoMessage()

func (*CheckEVMAddrResp) ProtoReflect added in v1.65.3

func (x *CheckEVMAddrResp) ProtoReflect() protoreflect.Message

func (*CheckEVMAddrResp) Reset

func (x *CheckEVMAddrResp) Reset()

func (*CheckEVMAddrResp) String

func (x *CheckEVMAddrResp) String() string

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"`
	//交易参数
	Para []byte `protobuf:"bytes,5,opt,name=para,proto3" json:"para,omitempty"`
	// 合约别名,方便识别
	Alias string `protobuf:"bytes,6,opt,name=alias,proto3" json:"alias,omitempty"`
	// 交易备注
	Note string `protobuf:"bytes,7,opt,name=note,proto3" json:"note,omitempty"`
	// 调用合约地址
	ContractAddr string `protobuf:"bytes,8,opt,name=contractAddr,proto3" json:"contractAddr,omitempty"`
	// contains filtered or unexported fields
}

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

func (*EVMContractAction) Descriptor deprecated

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

Deprecated: Use EVMContractAction.ProtoReflect.Descriptor instead.

func (*EVMContractAction) GetAlias

func (x *EVMContractAction) GetAlias() string

func (*EVMContractAction) GetAmount

func (x *EVMContractAction) GetAmount() uint64

func (*EVMContractAction) GetCode

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

func (*EVMContractAction) GetContractAddr added in v1.65.3

func (x *EVMContractAction) GetContractAddr() string

func (*EVMContractAction) GetGasLimit

func (x *EVMContractAction) GetGasLimit() uint64

func (*EVMContractAction) GetGasPrice

func (x *EVMContractAction) GetGasPrice() uint32

func (*EVMContractAction) GetNote

func (x *EVMContractAction) GetNote() string

func (*EVMContractAction) GetPara added in v1.65.3

func (x *EVMContractAction) GetPara() []byte

func (*EVMContractAction) ProtoMessage

func (*EVMContractAction) ProtoMessage()

func (*EVMContractAction) ProtoReflect added in v1.65.3

func (x *EVMContractAction) ProtoReflect() protoreflect.Message

func (*EVMContractAction) Reset

func (x *EVMContractAction) Reset()

func (*EVMContractAction) String

func (x *EVMContractAction) String() string

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"`
	// contains filtered or unexported fields
}

存放合约固定数据

func (*EVMContractData) Descriptor deprecated

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

Deprecated: Use EVMContractData.ProtoReflect.Descriptor instead.

func (*EVMContractData) GetAbi

func (x *EVMContractData) GetAbi() string

func (*EVMContractData) GetAddr

func (x *EVMContractData) GetAddr() string

func (*EVMContractData) GetAlias

func (x *EVMContractData) GetAlias() string

func (*EVMContractData) GetCode

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

func (*EVMContractData) GetCodeHash

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

func (*EVMContractData) GetCreator

func (x *EVMContractData) GetCreator() string

func (*EVMContractData) GetName

func (x *EVMContractData) GetName() string

func (*EVMContractData) ProtoMessage

func (*EVMContractData) ProtoMessage()

func (*EVMContractData) ProtoReflect added in v1.65.3

func (x *EVMContractData) ProtoReflect() protoreflect.Message

func (*EVMContractData) Reset

func (x *EVMContractData) Reset()

func (*EVMContractData) String

func (x *EVMContractData) String() string

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"`
	// contains filtered or unexported fields
}

存放合约固定数据

func (*EVMContractDataCmd) Descriptor deprecated

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

Deprecated: Use EVMContractDataCmd.ProtoReflect.Descriptor instead.

func (*EVMContractDataCmd) GetAddr

func (x *EVMContractDataCmd) GetAddr() string

func (*EVMContractDataCmd) GetAlias

func (x *EVMContractDataCmd) GetAlias() string

func (*EVMContractDataCmd) GetCode

func (x *EVMContractDataCmd) GetCode() string

func (*EVMContractDataCmd) GetCodeHash

func (x *EVMContractDataCmd) GetCodeHash() string

func (*EVMContractDataCmd) GetCreator

func (x *EVMContractDataCmd) GetCreator() string

func (*EVMContractDataCmd) GetName

func (x *EVMContractDataCmd) GetName() string

func (*EVMContractDataCmd) ProtoMessage

func (*EVMContractDataCmd) ProtoMessage()

func (*EVMContractDataCmd) ProtoReflect added in v1.65.3

func (x *EVMContractDataCmd) ProtoReflect() protoreflect.Message

func (*EVMContractDataCmd) Reset

func (x *EVMContractDataCmd) Reset()

func (*EVMContractDataCmd) String

func (x *EVMContractDataCmd) String() string

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"`
	// contains filtered or unexported fields
}

合约对象信息

func (*EVMContractObject) Descriptor deprecated

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

Deprecated: Use EVMContractObject.ProtoReflect.Descriptor instead.

func (*EVMContractObject) GetAddr

func (x *EVMContractObject) GetAddr() string

func (*EVMContractObject) GetData

func (x *EVMContractObject) GetData() *EVMContractData

func (*EVMContractObject) GetState

func (x *EVMContractObject) GetState() *EVMContractState

func (*EVMContractObject) ProtoMessage

func (*EVMContractObject) ProtoMessage()

func (*EVMContractObject) ProtoReflect added in v1.65.3

func (x *EVMContractObject) ProtoReflect() protoreflect.Message

func (*EVMContractObject) Reset

func (x *EVMContractObject) Reset()

func (*EVMContractObject) String

func (x *EVMContractObject) String() string

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 */
	// contains filtered or unexported fields
}

存放合约变化数据

func (*EVMContractState) Descriptor deprecated

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

Deprecated: Use EVMContractState.ProtoReflect.Descriptor instead.

func (*EVMContractState) GetNonce

func (x *EVMContractState) GetNonce() uint64

func (*EVMContractState) GetStorage

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

func (*EVMContractState) GetStorageHash

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

func (*EVMContractState) GetSuicided

func (x *EVMContractState) GetSuicided() bool

func (*EVMContractState) ProtoMessage

func (*EVMContractState) ProtoMessage()

func (*EVMContractState) ProtoReflect added in v1.65.3

func (x *EVMContractState) ProtoReflect() protoreflect.Message

func (*EVMContractState) Reset

func (x *EVMContractState) Reset()

func (*EVMContractState) String

func (x *EVMContractState) String() string

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 */
	// contains filtered or unexported fields
}

存放合约变化数据

func (*EVMContractStateCmd) Descriptor deprecated

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

Deprecated: Use EVMContractStateCmd.ProtoReflect.Descriptor instead.

func (*EVMContractStateCmd) GetNonce

func (x *EVMContractStateCmd) GetNonce() uint64

func (*EVMContractStateCmd) GetStorage

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

func (*EVMContractStateCmd) GetStorageHash

func (x *EVMContractStateCmd) GetStorageHash() string

func (*EVMContractStateCmd) GetSuicided

func (x *EVMContractStateCmd) GetSuicided() bool

func (*EVMContractStateCmd) ProtoMessage

func (*EVMContractStateCmd) ProtoMessage()

func (*EVMContractStateCmd) ProtoReflect added in v1.65.3

func (x *EVMContractStateCmd) ProtoReflect() protoreflect.Message

func (*EVMContractStateCmd) Reset

func (x *EVMContractStateCmd) Reset()

func (*EVMContractStateCmd) String

func (x *EVMContractStateCmd) String() string

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"`
	// contains filtered or unexported fields
}

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

func (*EVMStateChangeItem) Descriptor deprecated

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

Deprecated: Use EVMStateChangeItem.ProtoReflect.Descriptor instead.

func (*EVMStateChangeItem) GetCurrentValue

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

func (*EVMStateChangeItem) GetKey

func (x *EVMStateChangeItem) GetKey() string

func (*EVMStateChangeItem) GetPreValue

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

func (*EVMStateChangeItem) ProtoMessage

func (*EVMStateChangeItem) ProtoMessage()

func (*EVMStateChangeItem) ProtoReflect added in v1.65.3

func (x *EVMStateChangeItem) ProtoReflect() protoreflect.Message

func (*EVMStateChangeItem) Reset

func (x *EVMStateChangeItem) Reset()

func (*EVMStateChangeItem) String

func (x *EVMStateChangeItem) String() string

type EstimateEVMGasReq

type EstimateEVMGasReq struct {
	Tx   string `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	// contains filtered or unexported fields
}

func (*EstimateEVMGasReq) Descriptor deprecated

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

Deprecated: Use EstimateEVMGasReq.ProtoReflect.Descriptor instead.

func (*EstimateEVMGasReq) GetFrom added in v1.65.3

func (x *EstimateEVMGasReq) GetFrom() string

func (*EstimateEVMGasReq) GetTx added in v1.65.3

func (x *EstimateEVMGasReq) GetTx() string

func (*EstimateEVMGasReq) ProtoMessage

func (*EstimateEVMGasReq) ProtoMessage()

func (*EstimateEVMGasReq) ProtoReflect added in v1.65.3

func (x *EstimateEVMGasReq) ProtoReflect() protoreflect.Message

func (*EstimateEVMGasReq) Reset

func (x *EstimateEVMGasReq) Reset()

func (*EstimateEVMGasReq) String

func (x *EstimateEVMGasReq) String() string

type EstimateEVMGasResp

type EstimateEVMGasResp struct {
	Gas uint64 `protobuf:"varint,1,opt,name=gas,proto3" json:"gas,omitempty"`
	// contains filtered or unexported fields
}

func (*EstimateEVMGasResp) Descriptor deprecated

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

Deprecated: Use EstimateEVMGasResp.ProtoReflect.Descriptor instead.

func (*EstimateEVMGasResp) GetGas

func (x *EstimateEVMGasResp) GetGas() uint64

func (*EstimateEVMGasResp) ProtoMessage

func (*EstimateEVMGasResp) ProtoMessage()

func (*EstimateEVMGasResp) ProtoReflect added in v1.65.3

func (x *EstimateEVMGasResp) ProtoReflect() protoreflect.Message

func (*EstimateEVMGasResp) Reset

func (x *EstimateEVMGasResp) Reset()

func (*EstimateEVMGasResp) String

func (x *EstimateEVMGasResp) String() string

type EvmCalcNewContractAddrReq added in v1.65.3

type EvmCalcNewContractAddrReq struct {
	Caller string `protobuf:"bytes,1,opt,name=caller,proto3" json:"caller,omitempty"`
	Txhash string `protobuf:"bytes,2,opt,name=txhash,proto3" json:"txhash,omitempty"`
	// contains filtered or unexported fields
}

func (*EvmCalcNewContractAddrReq) Descriptor deprecated added in v1.65.3

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

Deprecated: Use EvmCalcNewContractAddrReq.ProtoReflect.Descriptor instead.

func (*EvmCalcNewContractAddrReq) GetCaller added in v1.65.3

func (x *EvmCalcNewContractAddrReq) GetCaller() string

func (*EvmCalcNewContractAddrReq) GetTxhash added in v1.65.3

func (x *EvmCalcNewContractAddrReq) GetTxhash() string

func (*EvmCalcNewContractAddrReq) ProtoMessage added in v1.65.3

func (*EvmCalcNewContractAddrReq) ProtoMessage()

func (*EvmCalcNewContractAddrReq) ProtoReflect added in v1.65.3

func (*EvmCalcNewContractAddrReq) Reset added in v1.65.3

func (x *EvmCalcNewContractAddrReq) Reset()

func (*EvmCalcNewContractAddrReq) String added in v1.65.3

func (x *EvmCalcNewContractAddrReq) String() string

type EvmContractCallReq

type EvmContractCallReq struct {
	Amount       int64  `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,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"`
	Parameter    string `protobuf:"bytes,4,opt,name=parameter,proto3" json:"parameter,omitempty"`
	ContractAddr string `protobuf:"bytes,5,opt,name=contractAddr,proto3" json:"contractAddr,omitempty"`
	Expire       string `protobuf:"bytes,6,opt,name=expire,proto3" json:"expire,omitempty"`
	ParaName     string `protobuf:"bytes,7,opt,name=paraName,proto3" json:"paraName,omitempty"`
	Abi          string `protobuf:"bytes,8,opt,name=abi,proto3" json:"abi,omitempty"`
	// contains filtered or unexported fields
}

func (*EvmContractCallReq) Descriptor deprecated

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

Deprecated: Use EvmContractCallReq.ProtoReflect.Descriptor instead.

func (*EvmContractCallReq) GetAbi

func (x *EvmContractCallReq) GetAbi() string

func (*EvmContractCallReq) GetAmount

func (x *EvmContractCallReq) GetAmount() int64

func (*EvmContractCallReq) GetContractAddr added in v1.65.3

func (x *EvmContractCallReq) GetContractAddr() string

func (*EvmContractCallReq) GetExpire

func (x *EvmContractCallReq) GetExpire() string

func (*EvmContractCallReq) GetFee

func (x *EvmContractCallReq) GetFee() int64

func (*EvmContractCallReq) GetNote

func (x *EvmContractCallReq) GetNote() string

func (*EvmContractCallReq) GetParaName

func (x *EvmContractCallReq) GetParaName() string

func (*EvmContractCallReq) GetParameter added in v1.65.3

func (x *EvmContractCallReq) GetParameter() string

func (*EvmContractCallReq) ProtoMessage

func (*EvmContractCallReq) ProtoMessage()

func (*EvmContractCallReq) ProtoReflect added in v1.65.3

func (x *EvmContractCallReq) ProtoReflect() protoreflect.Message

func (*EvmContractCallReq) Reset

func (x *EvmContractCallReq) Reset()

func (*EvmContractCallReq) String

func (x *EvmContractCallReq) String() string

type EvmContractCreateReq

type EvmContractCreateReq struct {
	Code      string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Abi       string `protobuf:"bytes,2,opt,name=abi,proto3" json:"abi,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"`
	Alias     string `protobuf:"bytes,5,opt,name=alias,proto3" json:"alias,omitempty"`
	Parameter string `protobuf:"bytes,6,opt,name=parameter,proto3" json:"parameter,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"`
	Amount    int64  `protobuf:"varint,9,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*EvmContractCreateReq) Descriptor deprecated

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

Deprecated: Use EvmContractCreateReq.ProtoReflect.Descriptor instead.

func (*EvmContractCreateReq) GetAbi

func (x *EvmContractCreateReq) GetAbi() string

func (*EvmContractCreateReq) GetAlias

func (x *EvmContractCreateReq) GetAlias() string

func (*EvmContractCreateReq) GetAmount added in v1.65.3

func (x *EvmContractCreateReq) GetAmount() int64

func (*EvmContractCreateReq) GetCode

func (x *EvmContractCreateReq) GetCode() string

func (*EvmContractCreateReq) GetExpire

func (x *EvmContractCreateReq) GetExpire() string

func (*EvmContractCreateReq) GetFee

func (x *EvmContractCreateReq) GetFee() int64

func (*EvmContractCreateReq) GetNote

func (x *EvmContractCreateReq) GetNote() string

func (*EvmContractCreateReq) GetParaName

func (x *EvmContractCreateReq) GetParaName() string

func (*EvmContractCreateReq) GetParameter added in v1.65.3

func (x *EvmContractCreateReq) GetParameter() string

func (*EvmContractCreateReq) ProtoMessage

func (*EvmContractCreateReq) ProtoMessage()

func (*EvmContractCreateReq) ProtoReflect added in v1.65.3

func (x *EvmContractCreateReq) ProtoReflect() protoreflect.Message

func (*EvmContractCreateReq) Reset

func (x *EvmContractCreateReq) Reset()

func (*EvmContractCreateReq) String

func (x *EvmContractCreateReq) String() string

type EvmDebugReq

type EvmDebugReq struct {

	// 0 query, 1 set, -1 clear
	Optype int32 `protobuf:"varint,1,opt,name=optype,proto3" json:"optype,omitempty"`
	// contains filtered or unexported fields
}

func (*EvmDebugReq) Descriptor deprecated

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

Deprecated: Use EvmDebugReq.ProtoReflect.Descriptor instead.

func (*EvmDebugReq) GetOptype

func (x *EvmDebugReq) GetOptype() int32

func (*EvmDebugReq) ProtoMessage

func (*EvmDebugReq) ProtoMessage()

func (*EvmDebugReq) ProtoReflect added in v1.65.3

func (x *EvmDebugReq) ProtoReflect() protoreflect.Message

func (*EvmDebugReq) Reset

func (x *EvmDebugReq) Reset()

func (*EvmDebugReq) String

func (x *EvmDebugReq) String() string

type EvmDebugResp

type EvmDebugResp struct {
	DebugStatus string `protobuf:"bytes,1,opt,name=debugStatus,proto3" json:"debugStatus,omitempty"`
	// contains filtered or unexported fields
}

func (*EvmDebugResp) Descriptor deprecated

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

Deprecated: Use EvmDebugResp.ProtoReflect.Descriptor instead.

func (*EvmDebugResp) GetDebugStatus

func (x *EvmDebugResp) GetDebugStatus() string

func (*EvmDebugResp) ProtoMessage

func (*EvmDebugResp) ProtoMessage()

func (*EvmDebugResp) ProtoReflect added in v1.65.3

func (x *EvmDebugResp) ProtoReflect() protoreflect.Message

func (*EvmDebugResp) Reset

func (x *EvmDebugResp) Reset()

func (*EvmDebugResp) String

func (x *EvmDebugResp) String() string

type EvmGetNonceReq added in v1.65.3

type EvmGetNonceReq struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*EvmGetNonceReq) Descriptor deprecated added in v1.65.3

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

Deprecated: Use EvmGetNonceReq.ProtoReflect.Descriptor instead.

func (*EvmGetNonceReq) GetAddress added in v1.65.3

func (x *EvmGetNonceReq) GetAddress() string

func (*EvmGetNonceReq) ProtoMessage added in v1.65.3

func (*EvmGetNonceReq) ProtoMessage()

func (*EvmGetNonceReq) ProtoReflect added in v1.65.3

func (x *EvmGetNonceReq) ProtoReflect() protoreflect.Message

func (*EvmGetNonceReq) Reset added in v1.65.3

func (x *EvmGetNonceReq) Reset()

func (*EvmGetNonceReq) String added in v1.65.3

func (x *EvmGetNonceReq) String() string

type EvmGetNonceRespose added in v1.65.3

type EvmGetNonceRespose struct {
	Nonce int64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// contains filtered or unexported fields
}

func (*EvmGetNonceRespose) Descriptor deprecated added in v1.65.3

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

Deprecated: Use EvmGetNonceRespose.ProtoReflect.Descriptor instead.

func (*EvmGetNonceRespose) GetNonce added in v1.65.3

func (x *EvmGetNonceRespose) GetNonce() int64

func (*EvmGetNonceRespose) ProtoMessage added in v1.65.3

func (*EvmGetNonceRespose) ProtoMessage()

func (*EvmGetNonceRespose) ProtoReflect added in v1.65.3

func (x *EvmGetNonceRespose) ProtoReflect() protoreflect.Message

func (*EvmGetNonceRespose) Reset added in v1.65.3

func (x *EvmGetNonceRespose) Reset()

func (*EvmGetNonceRespose) String added in v1.65.3

func (x *EvmGetNonceRespose) String() string

type EvmGetPackDataReq added in v1.65.3

type EvmGetPackDataReq struct {
	Abi       string `protobuf:"bytes,1,opt,name=abi,proto3" json:"abi,omitempty"`
	Parameter string `protobuf:"bytes,2,opt,name=parameter,proto3" json:"parameter,omitempty"`
	// contains filtered or unexported fields
}

func (*EvmGetPackDataReq) Descriptor deprecated added in v1.65.3

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

Deprecated: Use EvmGetPackDataReq.ProtoReflect.Descriptor instead.

func (*EvmGetPackDataReq) GetAbi added in v1.65.3

func (x *EvmGetPackDataReq) GetAbi() string

func (*EvmGetPackDataReq) GetParameter added in v1.65.3

func (x *EvmGetPackDataReq) GetParameter() string

func (*EvmGetPackDataReq) ProtoMessage added in v1.65.3

func (*EvmGetPackDataReq) ProtoMessage()

func (*EvmGetPackDataReq) ProtoReflect added in v1.65.3

func (x *EvmGetPackDataReq) ProtoReflect() protoreflect.Message

func (*EvmGetPackDataReq) Reset added in v1.65.3

func (x *EvmGetPackDataReq) Reset()

func (*EvmGetPackDataReq) String added in v1.65.3

func (x *EvmGetPackDataReq) String() string

type EvmGetPackDataRespose added in v1.65.3

type EvmGetPackDataRespose struct {
	PackData string `protobuf:"bytes,1,opt,name=packData,proto3" json:"packData,omitempty"`
	// contains filtered or unexported fields
}

func (*EvmGetPackDataRespose) Descriptor deprecated added in v1.65.3

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

Deprecated: Use EvmGetPackDataRespose.ProtoReflect.Descriptor instead.

func (*EvmGetPackDataRespose) GetPackData added in v1.65.3

func (x *EvmGetPackDataRespose) GetPackData() string

func (*EvmGetPackDataRespose) ProtoMessage added in v1.65.3

func (*EvmGetPackDataRespose) ProtoMessage()

func (*EvmGetPackDataRespose) ProtoReflect added in v1.65.3

func (x *EvmGetPackDataRespose) ProtoReflect() protoreflect.Message

func (*EvmGetPackDataRespose) Reset added in v1.65.3

func (x *EvmGetPackDataRespose) Reset()

func (*EvmGetPackDataRespose) String added in v1.65.3

func (x *EvmGetPackDataRespose) String() string

type EvmGetUnpackDataReq added in v1.65.3

type EvmGetUnpackDataReq struct {
	Abi       string `protobuf:"bytes,1,opt,name=abi,proto3" json:"abi,omitempty"`
	Parameter string `protobuf:"bytes,2,opt,name=parameter,proto3" json:"parameter,omitempty"`
	Data      string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*EvmGetUnpackDataReq) Descriptor deprecated added in v1.65.3

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

Deprecated: Use EvmGetUnpackDataReq.ProtoReflect.Descriptor instead.

func (*EvmGetUnpackDataReq) GetAbi added in v1.65.3

func (x *EvmGetUnpackDataReq) GetAbi() string

func (*EvmGetUnpackDataReq) GetData added in v1.65.3

func (x *EvmGetUnpackDataReq) GetData() string

func (*EvmGetUnpackDataReq) GetParameter added in v1.65.3

func (x *EvmGetUnpackDataReq) GetParameter() string

func (*EvmGetUnpackDataReq) ProtoMessage added in v1.65.3

func (*EvmGetUnpackDataReq) ProtoMessage()

func (*EvmGetUnpackDataReq) ProtoReflect added in v1.65.3

func (x *EvmGetUnpackDataReq) ProtoReflect() protoreflect.Message

func (*EvmGetUnpackDataReq) Reset added in v1.65.3

func (x *EvmGetUnpackDataReq) Reset()

func (*EvmGetUnpackDataReq) String added in v1.65.3

func (x *EvmGetUnpackDataReq) String() string

type EvmGetUnpackDataRespose added in v1.65.3

type EvmGetUnpackDataRespose struct {
	UnpackData []string `protobuf:"bytes,1,rep,name=unpackData,proto3" json:"unpackData,omitempty"`
	// contains filtered or unexported fields
}

func (*EvmGetUnpackDataRespose) Descriptor deprecated added in v1.65.3

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

Deprecated: Use EvmGetUnpackDataRespose.ProtoReflect.Descriptor instead.

func (*EvmGetUnpackDataRespose) GetUnpackData added in v1.65.3

func (x *EvmGetUnpackDataRespose) GetUnpackData() []string

func (*EvmGetUnpackDataRespose) ProtoMessage added in v1.65.3

func (*EvmGetUnpackDataRespose) ProtoMessage()

func (*EvmGetUnpackDataRespose) ProtoReflect added in v1.65.3

func (x *EvmGetUnpackDataRespose) ProtoReflect() protoreflect.Message

func (*EvmGetUnpackDataRespose) Reset added in v1.65.3

func (x *EvmGetUnpackDataRespose) Reset()

func (*EvmGetUnpackDataRespose) String added in v1.65.3

func (x *EvmGetUnpackDataRespose) String() string

type EvmQueryAbiReq

type EvmQueryAbiReq struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*EvmQueryAbiReq) Descriptor deprecated

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

Deprecated: Use EvmQueryAbiReq.ProtoReflect.Descriptor instead.

func (*EvmQueryAbiReq) GetAddress

func (x *EvmQueryAbiReq) GetAddress() string

func (*EvmQueryAbiReq) ProtoMessage

func (*EvmQueryAbiReq) ProtoMessage()

func (*EvmQueryAbiReq) ProtoReflect added in v1.65.3

func (x *EvmQueryAbiReq) ProtoReflect() protoreflect.Message

func (*EvmQueryAbiReq) Reset

func (x *EvmQueryAbiReq) Reset()

func (*EvmQueryAbiReq) String

func (x *EvmQueryAbiReq) String() string

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"`
	// contains filtered or unexported fields
}

func (*EvmQueryAbiResp) Descriptor deprecated

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

Deprecated: Use EvmQueryAbiResp.ProtoReflect.Descriptor instead.

func (*EvmQueryAbiResp) GetAbi

func (x *EvmQueryAbiResp) GetAbi() string

func (*EvmQueryAbiResp) GetAddress

func (x *EvmQueryAbiResp) GetAddress() string

func (*EvmQueryAbiResp) ProtoMessage

func (*EvmQueryAbiResp) ProtoMessage()

func (*EvmQueryAbiResp) ProtoReflect added in v1.65.3

func (x *EvmQueryAbiResp) ProtoReflect() protoreflect.Message

func (*EvmQueryAbiResp) Reset

func (x *EvmQueryAbiResp) Reset()

func (*EvmQueryAbiResp) String

func (x *EvmQueryAbiResp) String() string

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"`
	// contains filtered or unexported fields
}

func (*EvmQueryReq) Descriptor deprecated

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

Deprecated: Use EvmQueryReq.ProtoReflect.Descriptor instead.

func (*EvmQueryReq) GetAddress

func (x *EvmQueryReq) GetAddress() string

func (*EvmQueryReq) GetCaller

func (x *EvmQueryReq) GetCaller() string

func (*EvmQueryReq) GetInput

func (x *EvmQueryReq) GetInput() string

func (*EvmQueryReq) ProtoMessage

func (*EvmQueryReq) ProtoMessage()

func (*EvmQueryReq) ProtoReflect added in v1.65.3

func (x *EvmQueryReq) ProtoReflect() protoreflect.Message

func (*EvmQueryReq) Reset

func (x *EvmQueryReq) Reset()

func (*EvmQueryReq) String

func (x *EvmQueryReq) String() string

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"`
	// contains filtered or unexported fields
}

func (*EvmQueryResp) Descriptor deprecated

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

Deprecated: Use EvmQueryResp.ProtoReflect.Descriptor instead.

func (*EvmQueryResp) GetAddress

func (x *EvmQueryResp) GetAddress() string

func (*EvmQueryResp) GetCaller

func (x *EvmQueryResp) GetCaller() string

func (*EvmQueryResp) GetInput

func (x *EvmQueryResp) GetInput() string

func (*EvmQueryResp) GetJsonData

func (x *EvmQueryResp) GetJsonData() string

func (*EvmQueryResp) GetRawData

func (x *EvmQueryResp) GetRawData() string

func (*EvmQueryResp) ProtoMessage

func (*EvmQueryResp) ProtoMessage()

func (*EvmQueryResp) ProtoReflect added in v1.65.3

func (x *EvmQueryResp) ProtoReflect() protoreflect.Message

func (*EvmQueryResp) Reset

func (x *EvmQueryResp) Reset()

func (*EvmQueryResp) String

func (x *EvmQueryResp) String() string

type EvmTransferOnlyReq added in v1.65.3

type EvmTransferOnlyReq struct {
	To       string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
	Amount   int64  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	ParaName string `protobuf:"bytes,3,opt,name=paraName,proto3" json:"paraName,omitempty"`
	Note     string `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
	// contains filtered or unexported fields
}

func (*EvmTransferOnlyReq) Descriptor deprecated added in v1.65.3

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

Deprecated: Use EvmTransferOnlyReq.ProtoReflect.Descriptor instead.

func (*EvmTransferOnlyReq) GetAmount added in v1.65.3

func (x *EvmTransferOnlyReq) GetAmount() int64

func (*EvmTransferOnlyReq) GetNote added in v1.65.3

func (x *EvmTransferOnlyReq) GetNote() string

func (*EvmTransferOnlyReq) GetParaName added in v1.65.3

func (x *EvmTransferOnlyReq) GetParaName() string

func (*EvmTransferOnlyReq) GetTo added in v1.65.3

func (x *EvmTransferOnlyReq) GetTo() string

func (*EvmTransferOnlyReq) ProtoMessage added in v1.65.3

func (*EvmTransferOnlyReq) ProtoMessage()

func (*EvmTransferOnlyReq) ProtoReflect added in v1.65.3

func (x *EvmTransferOnlyReq) ProtoReflect() protoreflect.Message

func (*EvmTransferOnlyReq) Reset added in v1.65.3

func (x *EvmTransferOnlyReq) Reset()

func (*EvmTransferOnlyReq) String added in v1.65.3

func (x *EvmTransferOnlyReq) String() string

type EvmType

type EvmType struct {
	types.ExecTypeBase
}

EvmType EVM类型定义

func NewType

func NewType(cfg *types.Chain33Config) *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) 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"`
	// contains filtered or unexported fields
}

合约创建/调用日志

func (*ReceiptEVMContract) Descriptor deprecated

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

Deprecated: Use ReceiptEVMContract.ProtoReflect.Descriptor instead.

func (*ReceiptEVMContract) GetCaller

func (x *ReceiptEVMContract) GetCaller() string

func (*ReceiptEVMContract) GetContractAddr

func (x *ReceiptEVMContract) GetContractAddr() string

func (*ReceiptEVMContract) GetContractName

func (x *ReceiptEVMContract) GetContractName() string

func (*ReceiptEVMContract) GetJsonRet

func (x *ReceiptEVMContract) GetJsonRet() string

func (*ReceiptEVMContract) GetRet

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

func (*ReceiptEVMContract) GetUsedGas

func (x *ReceiptEVMContract) GetUsedGas() uint64

func (*ReceiptEVMContract) ProtoMessage

func (*ReceiptEVMContract) ProtoMessage()

func (*ReceiptEVMContract) ProtoReflect added in v1.65.3

func (x *ReceiptEVMContract) ProtoReflect() protoreflect.Message

func (*ReceiptEVMContract) Reset

func (x *ReceiptEVMContract) Reset()

func (*ReceiptEVMContract) String

func (x *ReceiptEVMContract) String() string

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"`
	// contains filtered or unexported fields
}

合约创建/调用日志

func (*ReceiptEVMContractCmd) Descriptor deprecated

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

Deprecated: Use ReceiptEVMContractCmd.ProtoReflect.Descriptor instead.

func (*ReceiptEVMContractCmd) GetCaller

func (x *ReceiptEVMContractCmd) GetCaller() string

func (*ReceiptEVMContractCmd) GetContractAddr

func (x *ReceiptEVMContractCmd) GetContractAddr() string

func (*ReceiptEVMContractCmd) GetContractName

func (x *ReceiptEVMContractCmd) GetContractName() string

func (*ReceiptEVMContractCmd) GetRet

func (x *ReceiptEVMContractCmd) GetRet() string

func (*ReceiptEVMContractCmd) GetUsedGas

func (x *ReceiptEVMContractCmd) GetUsedGas() uint64

func (*ReceiptEVMContractCmd) ProtoMessage

func (*ReceiptEVMContractCmd) ProtoMessage()

func (*ReceiptEVMContractCmd) ProtoReflect added in v1.65.3

func (x *ReceiptEVMContractCmd) ProtoReflect() protoreflect.Message

func (*ReceiptEVMContractCmd) Reset

func (x *ReceiptEVMContractCmd) Reset()

func (*ReceiptEVMContractCmd) String

func (x *ReceiptEVMContractCmd) String() string

Jump to

Keyboard shortcuts

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