Documentation ¶
Index ¶
- Constants
- Variables
- func InitExecutor(cfg *types.Chain33Config)
- func InitFork(cfg *types.Chain33Config)
- type CallJvmContract
- func (*CallJvmContract) Descriptor() ([]byte, []int)
- func (m *CallJvmContract) GetActionData() []string
- func (m *CallJvmContract) GetName() string
- func (*CallJvmContract) ProtoMessage()
- func (m *CallJvmContract) Reset()
- func (m *CallJvmContract) String() string
- func (m *CallJvmContract) XXX_DiscardUnknown()
- func (m *CallJvmContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CallJvmContract) XXX_Merge(src proto.Message)
- func (m *CallJvmContract) XXX_Size() int
- func (m *CallJvmContract) XXX_Unmarshal(b []byte) error
- type CheckJVMAddrResp
- func (*CheckJVMAddrResp) Descriptor() ([]byte, []int)
- func (m *CheckJVMAddrResp) GetExistAlready() bool
- func (*CheckJVMAddrResp) ProtoMessage()
- func (m *CheckJVMAddrResp) Reset()
- func (m *CheckJVMAddrResp) String() string
- func (m *CheckJVMAddrResp) XXX_DiscardUnknown()
- func (m *CheckJVMAddrResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CheckJVMAddrResp) XXX_Merge(src proto.Message)
- func (m *CheckJVMAddrResp) XXX_Size() int
- func (m *CheckJVMAddrResp) XXX_Unmarshal(b []byte) error
- type CheckJVMContractNameReq
- func (*CheckJVMContractNameReq) Descriptor() ([]byte, []int)
- func (m *CheckJVMContractNameReq) GetJvmContractName() string
- func (*CheckJVMContractNameReq) ProtoMessage()
- func (m *CheckJVMContractNameReq) Reset()
- func (m *CheckJVMContractNameReq) String() string
- func (m *CheckJVMContractNameReq) XXX_DiscardUnknown()
- func (m *CheckJVMContractNameReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CheckJVMContractNameReq) XXX_Merge(src proto.Message)
- func (m *CheckJVMContractNameReq) XXX_Size() int
- func (m *CheckJVMContractNameReq) XXX_Unmarshal(b []byte) error
- type ContractLog
- type CreateJvmContract
- func (*CreateJvmContract) Descriptor() ([]byte, []int)
- func (m *CreateJvmContract) GetCode() string
- func (m *CreateJvmContract) GetName() string
- func (*CreateJvmContract) ProtoMessage()
- func (m *CreateJvmContract) Reset()
- func (m *CreateJvmContract) String() string
- func (m *CreateJvmContract) XXX_DiscardUnknown()
- func (m *CreateJvmContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateJvmContract) XXX_Merge(src proto.Message)
- func (m *CreateJvmContract) XXX_Size() int
- func (m *CreateJvmContract) XXX_Unmarshal(b []byte) error
- type JVMContractAction
- func (*JVMContractAction) Descriptor() ([]byte, []int)
- func (m *JVMContractAction) GetCallJvmContract() *CallJvmContract
- func (m *JVMContractAction) GetCreateJvmContract() *CreateJvmContract
- func (m *JVMContractAction) GetTy() int32
- func (m *JVMContractAction) GetUpdateJvmContract() *UpdateJvmContract
- func (m *JVMContractAction) GetValue() isJVMContractAction_Value
- func (*JVMContractAction) ProtoMessage()
- func (m *JVMContractAction) Reset()
- func (m *JVMContractAction) String() string
- func (m *JVMContractAction) XXX_DiscardUnknown()
- func (m *JVMContractAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JVMContractAction) XXX_Merge(src proto.Message)
- func (*JVMContractAction) XXX_OneofWrappers() []interface{}
- func (m *JVMContractAction) XXX_Size() int
- func (m *JVMContractAction) XXX_Unmarshal(b []byte) error
- type JVMContractAction_CallJvmContract
- type JVMContractAction_CreateJvmContract
- type JVMContractAction_UpdateJvmContract
- type JVMContractData
- func (*JVMContractData) Descriptor() ([]byte, []int)
- func (m *JVMContractData) GetAbi() []byte
- func (m *JVMContractData) GetAddr() string
- func (m *JVMContractData) GetCode() []byte
- func (m *JVMContractData) GetCodeHash() []byte
- func (m *JVMContractData) GetCreator() string
- func (m *JVMContractData) GetName() string
- func (*JVMContractData) ProtoMessage()
- func (m *JVMContractData) Reset()
- func (m *JVMContractData) String() string
- func (m *JVMContractData) XXX_DiscardUnknown()
- func (m *JVMContractData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JVMContractData) XXX_Merge(src proto.Message)
- func (m *JVMContractData) XXX_Size() int
- func (m *JVMContractData) XXX_Unmarshal(b []byte) error
- type JVMContractObject
- func (*JVMContractObject) Descriptor() ([]byte, []int)
- func (m *JVMContractObject) GetAddr() string
- func (m *JVMContractObject) GetData() *JVMContractData
- func (*JVMContractObject) ProtoMessage()
- func (m *JVMContractObject) Reset()
- func (m *JVMContractObject) String() string
- func (m *JVMContractObject) XXX_DiscardUnknown()
- func (m *JVMContractObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JVMContractObject) XXX_Merge(src proto.Message)
- func (m *JVMContractObject) XXX_Size() int
- func (m *JVMContractObject) XXX_Unmarshal(b []byte) error
- type JVMQueryReq
- func (*JVMQueryReq) Descriptor() ([]byte, []int)
- func (m *JVMQueryReq) GetContract() string
- func (m *JVMQueryReq) GetPara() []string
- func (*JVMQueryReq) ProtoMessage()
- func (m *JVMQueryReq) Reset()
- func (m *JVMQueryReq) String() string
- func (m *JVMQueryReq) XXX_DiscardUnknown()
- func (m *JVMQueryReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JVMQueryReq) XXX_Merge(src proto.Message)
- func (m *JVMQueryReq) XXX_Size() int
- func (m *JVMQueryReq) XXX_Unmarshal(b []byte) error
- type JVMQueryResponse
- func (*JVMQueryResponse) Descriptor() ([]byte, []int)
- func (m *JVMQueryResponse) GetResult() []string
- func (m *JVMQueryResponse) GetSuccess() bool
- func (*JVMQueryResponse) ProtoMessage()
- func (m *JVMQueryResponse) Reset()
- func (m *JVMQueryResponse) String() string
- func (m *JVMQueryResponse) XXX_DiscardUnknown()
- func (m *JVMQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JVMQueryResponse) XXX_Merge(src proto.Message)
- func (m *JVMQueryResponse) XXX_Size() int
- func (m *JVMQueryResponse) XXX_Unmarshal(b []byte) error
- type JVMStateChangeItem
- func (*JVMStateChangeItem) Descriptor() ([]byte, []int)
- func (m *JVMStateChangeItem) GetCurrentValue() []byte
- func (m *JVMStateChangeItem) GetKey() string
- func (m *JVMStateChangeItem) GetPreValue() []byte
- func (*JVMStateChangeItem) ProtoMessage()
- func (m *JVMStateChangeItem) Reset()
- func (m *JVMStateChangeItem) String() string
- func (m *JVMStateChangeItem) XXX_DiscardUnknown()
- func (m *JVMStateChangeItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JVMStateChangeItem) XXX_Merge(src proto.Message)
- func (m *JVMStateChangeItem) XXX_Size() int
- func (m *JVMStateChangeItem) XXX_Unmarshal(b []byte) error
- type JvmContratOpType
- type JvmType
- func (jvm JvmType) ActionName(tx *types.Transaction) string
- func (jvm JvmType) Amount(tx *types.Transaction) (int64, error)
- func (jvm *JvmType) GetLogMap() map[int64]*types.LogInfo
- func (jvm *JvmType) GetPayload() types.Message
- func (jvm JvmType) GetRealToAddr(tx *types.Transaction) string
- func (jvm *JvmType) GetTypeMap() map[string]int32
- type LogJVMContractData
- func (*LogJVMContractData) Descriptor() ([]byte, []int)
- func (m *LogJVMContractData) GetAbiHash() string
- func (m *LogJVMContractData) GetAddr() string
- func (m *LogJVMContractData) GetCodeHash() string
- func (m *LogJVMContractData) GetCreator() string
- func (m *LogJVMContractData) GetName() string
- func (*LogJVMContractData) ProtoMessage()
- func (m *LogJVMContractData) Reset()
- func (m *LogJVMContractData) String() string
- func (m *LogJVMContractData) XXX_DiscardUnknown()
- func (m *LogJVMContractData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogJVMContractData) XXX_Merge(src proto.Message)
- func (m *LogJVMContractData) XXX_Size() int
- func (m *LogJVMContractData) XXX_Unmarshal(b []byte) error
- type ReceiptJVMContract
- func (*ReceiptJVMContract) Descriptor() ([]byte, []int)
- func (m *ReceiptJVMContract) GetCaller() string
- func (m *ReceiptJVMContract) GetContractAddr() string
- func (m *ReceiptJVMContract) GetContractName() string
- func (*ReceiptJVMContract) ProtoMessage()
- func (m *ReceiptJVMContract) Reset()
- func (m *ReceiptJVMContract) String() string
- func (m *ReceiptJVMContract) XXX_DiscardUnknown()
- func (m *ReceiptJVMContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReceiptJVMContract) XXX_Merge(src proto.Message)
- func (m *ReceiptJVMContract) XXX_Size() int
- func (m *ReceiptJVMContract) XXX_Unmarshal(b []byte) error
- type ReceiptLocalData
- func (*ReceiptLocalData) Descriptor() ([]byte, []int)
- func (m *ReceiptLocalData) GetCurValue() []byte
- func (m *ReceiptLocalData) GetKey() []byte
- func (m *ReceiptLocalData) GetPreValue() []byte
- func (*ReceiptLocalData) ProtoMessage()
- func (m *ReceiptLocalData) Reset()
- func (m *ReceiptLocalData) String() string
- func (m *ReceiptLocalData) XXX_DiscardUnknown()
- func (m *ReceiptLocalData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReceiptLocalData) XXX_Merge(src proto.Message)
- func (m *ReceiptLocalData) XXX_Size() int
- func (m *ReceiptLocalData) XXX_Unmarshal(b []byte) error
- type UpdateJvmContract
- func (*UpdateJvmContract) Descriptor() ([]byte, []int)
- func (m *UpdateJvmContract) GetCode() string
- func (m *UpdateJvmContract) GetName() string
- func (*UpdateJvmContract) ProtoMessage()
- func (m *UpdateJvmContract) Reset()
- func (m *UpdateJvmContract) String() string
- func (m *UpdateJvmContract) XXX_DiscardUnknown()
- func (m *UpdateJvmContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateJvmContract) XXX_Merge(src proto.Message)
- func (m *UpdateJvmContract) XXX_Size() int
- func (m *UpdateJvmContract) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const ( CheckNameExistsFunc = "CheckContractNameExist" EstimateGasJvm = "EstimateGasJvm" JvmDebug = "JvmDebug" JvmGetAbi = "JvmGetAbi" ConvertJSON2Abi = "ConvertJson2Abi" Success = int(0) Exception_Fail = int(1) JvmX = "jvm" UserJvmX = "user.jvm." CreateJvmContractStr = "CreateJvmContract" CallJvmContractStr = "CallJvmContract" UpdateJvmContractStr = "UpdateJvmContract" QueryJvmContract = "JavaContract" NameRegExp = "^[a-zA-Z0-9]+$" AccountOpFail = false AccountOpSuccess = true RetryNum = int(10) GRPCRecSize = 5 * 30 * 1024 * 1024 Coin_Precision int64 = (1e4) MaxCodeSize = 2 * 1024 * 1024 )
View Source
const ( CreateJvmContractAction = 1 + iota CallJvmContractAction UpdateJvmContractAction )
View Source
const ( // TyLogContractDataJvm 合约代码日志 TyLogContractDataJvm = iota + 100 // TyLogCallContractJvm 合约调用日志 TyLogCallContractJvm // TyLogStateChangeItemJvm 合约状态变化的日志 TyLogStateChangeItemJvm // TyLogCreateUserJvmContract 合约创建用户的日志 TyLogCreateUserJvmContract // TyLogUpdateUserJvmContract 合约更新用户的日志 TyLogUpdateUserJvmContract // TyLogLocalDataJvm 合约本地数据日志 TyLogLocalDataJvm )
log for Jvm
Variables ¶
View Source
var ( ErrContractAddressCollisionJvm = errors.New("The Name of contract was used by other contract already") ErrMaxCodeSizeExceededJvm = errors.New("Jvm: max code size exceeded") ErrNUllJvmContract = errors.New("Jvm: null jvm contract") ErrContractNotExist = errors.New("Jvm: contract not exist") ErrWrongContractAddr = errors.New("Jvm: wrong contract addr") ErrAddrNotExists = errors.New("Jvm: contract addr not exists") ErrNullContractName = errors.New("Jvm: Null Contract Name") ErrNoCreator = errors.New("Jvm: no creator for contract") ErrWrongContracName = errors.New("Jvm: Contract name should be a-z and 0-9") ErrWrongContracNameLen = errors.New("Jvm: Contract name length should within [4-16]") ErrNoPermission = errors.New("Jvm: action without permission") ErrActionNotSupport = errors.New("Jvm: action not support") ErrWriteJavaClass = errors.New("Jvm: Failed to write java class to file") ErrGetJvmFailed = errors.New("Jvm: Failed to get go-jvm exector") ErrSetLocalNotAllowed = errors.New("Jvm: Set Local DB only Allowed during tx exec") ErrJvmCodeString = errors.New("Jvm: Wrong jvm code string") )
Functions ¶
func InitExecutor ¶
func InitExecutor(cfg *types.Chain33Config)
InitExecutor defines register executor
Types ¶
type CallJvmContract ¶
type CallJvmContract struct { //合约名称 Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` //执行参数 ActionData []string `protobuf:"bytes,2,rep,name=actionData,proto3" json:"actionData,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
调用Jvm合约
func (*CallJvmContract) Descriptor ¶
func (*CallJvmContract) Descriptor() ([]byte, []int)
func (*CallJvmContract) GetActionData ¶
func (m *CallJvmContract) GetActionData() []string
func (*CallJvmContract) GetName ¶
func (m *CallJvmContract) GetName() string
func (*CallJvmContract) ProtoMessage ¶
func (*CallJvmContract) ProtoMessage()
func (*CallJvmContract) Reset ¶
func (m *CallJvmContract) Reset()
func (*CallJvmContract) String ¶
func (m *CallJvmContract) String() string
func (*CallJvmContract) XXX_DiscardUnknown ¶
func (m *CallJvmContract) XXX_DiscardUnknown()
func (*CallJvmContract) XXX_Marshal ¶
func (m *CallJvmContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CallJvmContract) XXX_Merge ¶
func (m *CallJvmContract) XXX_Merge(src proto.Message)
func (*CallJvmContract) XXX_Size ¶
func (m *CallJvmContract) XXX_Size() int
func (*CallJvmContract) XXX_Unmarshal ¶
func (m *CallJvmContract) XXX_Unmarshal(b []byte) error
type CheckJVMAddrResp ¶
type CheckJVMAddrResp struct { ExistAlready bool `protobuf:"varint,1,opt,name=existAlready,proto3" json:"existAlready,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CheckJVMAddrResp) Descriptor ¶
func (*CheckJVMAddrResp) Descriptor() ([]byte, []int)
func (*CheckJVMAddrResp) GetExistAlready ¶
func (m *CheckJVMAddrResp) GetExistAlready() bool
func (*CheckJVMAddrResp) ProtoMessage ¶
func (*CheckJVMAddrResp) ProtoMessage()
func (*CheckJVMAddrResp) Reset ¶
func (m *CheckJVMAddrResp) Reset()
func (*CheckJVMAddrResp) String ¶
func (m *CheckJVMAddrResp) String() string
func (*CheckJVMAddrResp) XXX_DiscardUnknown ¶
func (m *CheckJVMAddrResp) XXX_DiscardUnknown()
func (*CheckJVMAddrResp) XXX_Marshal ¶
func (m *CheckJVMAddrResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CheckJVMAddrResp) XXX_Merge ¶
func (m *CheckJVMAddrResp) XXX_Merge(src proto.Message)
func (*CheckJVMAddrResp) XXX_Size ¶
func (m *CheckJVMAddrResp) XXX_Size() int
func (*CheckJVMAddrResp) XXX_Unmarshal ¶
func (m *CheckJVMAddrResp) XXX_Unmarshal(b []byte) error
type CheckJVMContractNameReq ¶
type CheckJVMContractNameReq struct { JvmContractName string `protobuf:"bytes,1,opt,name=JvmContractName,proto3" json:"JvmContractName,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CheckJVMContractNameReq) Descriptor ¶
func (*CheckJVMContractNameReq) Descriptor() ([]byte, []int)
func (*CheckJVMContractNameReq) GetJvmContractName ¶
func (m *CheckJVMContractNameReq) GetJvmContractName() string
func (*CheckJVMContractNameReq) ProtoMessage ¶
func (*CheckJVMContractNameReq) ProtoMessage()
func (*CheckJVMContractNameReq) Reset ¶
func (m *CheckJVMContractNameReq) Reset()
func (*CheckJVMContractNameReq) String ¶
func (m *CheckJVMContractNameReq) String() string
func (*CheckJVMContractNameReq) XXX_DiscardUnknown ¶
func (m *CheckJVMContractNameReq) XXX_DiscardUnknown()
func (*CheckJVMContractNameReq) XXX_Marshal ¶
func (m *CheckJVMContractNameReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CheckJVMContractNameReq) XXX_Merge ¶
func (m *CheckJVMContractNameReq) XXX_Merge(src proto.Message)
func (*CheckJVMContractNameReq) XXX_Size ¶
func (m *CheckJVMContractNameReq) XXX_Size() int
func (*CheckJVMContractNameReq) XXX_Unmarshal ¶
func (m *CheckJVMContractNameReq) XXX_Unmarshal(b []byte) error
type ContractLog ¶
type ContractLog struct { // 合约地址 Address string // 对应交易哈希 TxHash common.Hash // 日志序号 Index int // 此合约提供的主题信息 Topics []common.Hash // 日志数据 Data []byte }
ContractLog 合约在日志,对应EVM中的Log指令,可以生成指定的日志信息 目前这些日志只是在合约执行完成时进行打印,没有其它用途
type CreateJvmContract ¶
type CreateJvmContract struct { // 用户自定义Jvm合约名字,必须是user.Jvm.xxx的风格,且xxx由a-zA-Z0-9组成的4-16字符长度组成 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 合约字节码 Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
创建JVM合约
func (*CreateJvmContract) Descriptor ¶
func (*CreateJvmContract) Descriptor() ([]byte, []int)
func (*CreateJvmContract) GetCode ¶
func (m *CreateJvmContract) GetCode() string
func (*CreateJvmContract) GetName ¶
func (m *CreateJvmContract) GetName() string
func (*CreateJvmContract) ProtoMessage ¶
func (*CreateJvmContract) ProtoMessage()
func (*CreateJvmContract) Reset ¶
func (m *CreateJvmContract) Reset()
func (*CreateJvmContract) String ¶
func (m *CreateJvmContract) String() string
func (*CreateJvmContract) XXX_DiscardUnknown ¶
func (m *CreateJvmContract) XXX_DiscardUnknown()
func (*CreateJvmContract) XXX_Marshal ¶
func (m *CreateJvmContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateJvmContract) XXX_Merge ¶
func (m *CreateJvmContract) XXX_Merge(src proto.Message)
func (*CreateJvmContract) XXX_Size ¶
func (m *CreateJvmContract) XXX_Size() int
func (*CreateJvmContract) XXX_Unmarshal ¶
func (m *CreateJvmContract) XXX_Unmarshal(b []byte) error
type JVMContractAction ¶
type JVMContractAction struct { // Types that are valid to be assigned to Value: // *JVMContractAction_CreateJvmContract // *JVMContractAction_CallJvmContract // *JVMContractAction_UpdateJvmContract Value isJVMContractAction_Value `protobuf_oneof:"value"` Ty int32 `protobuf:"varint,4,opt,name=ty,proto3" json:"ty,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*JVMContractAction) Descriptor ¶
func (*JVMContractAction) Descriptor() ([]byte, []int)
func (*JVMContractAction) GetCallJvmContract ¶
func (m *JVMContractAction) GetCallJvmContract() *CallJvmContract
func (*JVMContractAction) GetCreateJvmContract ¶
func (m *JVMContractAction) GetCreateJvmContract() *CreateJvmContract
func (*JVMContractAction) GetTy ¶
func (m *JVMContractAction) GetTy() int32
func (*JVMContractAction) GetUpdateJvmContract ¶
func (m *JVMContractAction) GetUpdateJvmContract() *UpdateJvmContract
func (*JVMContractAction) GetValue ¶
func (m *JVMContractAction) GetValue() isJVMContractAction_Value
func (*JVMContractAction) ProtoMessage ¶
func (*JVMContractAction) ProtoMessage()
func (*JVMContractAction) Reset ¶
func (m *JVMContractAction) Reset()
func (*JVMContractAction) String ¶
func (m *JVMContractAction) String() string
func (*JVMContractAction) XXX_DiscardUnknown ¶
func (m *JVMContractAction) XXX_DiscardUnknown()
func (*JVMContractAction) XXX_Marshal ¶
func (m *JVMContractAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*JVMContractAction) XXX_Merge ¶
func (m *JVMContractAction) XXX_Merge(src proto.Message)
func (*JVMContractAction) XXX_OneofWrappers ¶
func (*JVMContractAction) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*JVMContractAction) XXX_Size ¶
func (m *JVMContractAction) XXX_Size() int
func (*JVMContractAction) XXX_Unmarshal ¶
func (m *JVMContractAction) XXX_Unmarshal(b []byte) error
type JVMContractAction_CallJvmContract ¶
type JVMContractAction_CallJvmContract struct {
CallJvmContract *CallJvmContract `protobuf:"bytes,2,opt,name=callJvmContract,proto3,oneof"`
}
type JVMContractAction_CreateJvmContract ¶
type JVMContractAction_CreateJvmContract struct {
CreateJvmContract *CreateJvmContract `protobuf:"bytes,1,opt,name=createJvmContract,proto3,oneof"`
}
type JVMContractAction_UpdateJvmContract ¶
type JVMContractAction_UpdateJvmContract struct {
UpdateJvmContract *UpdateJvmContract `protobuf:"bytes,3,opt,name=updateJvmContract,proto3,oneof"`
}
type JVMContractData ¶
type JVMContractData 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"` 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 []byte `protobuf:"bytes,7,opt,name=abi,proto3" json:"abi,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
存放合约固定数据
func (*JVMContractData) Descriptor ¶
func (*JVMContractData) Descriptor() ([]byte, []int)
func (*JVMContractData) GetAbi ¶
func (m *JVMContractData) GetAbi() []byte
func (*JVMContractData) GetAddr ¶
func (m *JVMContractData) GetAddr() string
func (*JVMContractData) GetCode ¶
func (m *JVMContractData) GetCode() []byte
func (*JVMContractData) GetCodeHash ¶
func (m *JVMContractData) GetCodeHash() []byte
func (*JVMContractData) GetCreator ¶
func (m *JVMContractData) GetCreator() string
func (*JVMContractData) GetName ¶
func (m *JVMContractData) GetName() string
func (*JVMContractData) ProtoMessage ¶
func (*JVMContractData) ProtoMessage()
func (*JVMContractData) Reset ¶
func (m *JVMContractData) Reset()
func (*JVMContractData) String ¶
func (m *JVMContractData) String() string
func (*JVMContractData) XXX_DiscardUnknown ¶
func (m *JVMContractData) XXX_DiscardUnknown()
func (*JVMContractData) XXX_Marshal ¶
func (m *JVMContractData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*JVMContractData) XXX_Merge ¶
func (m *JVMContractData) XXX_Merge(src proto.Message)
func (*JVMContractData) XXX_Size ¶
func (m *JVMContractData) XXX_Size() int
func (*JVMContractData) XXX_Unmarshal ¶
func (m *JVMContractData) XXX_Unmarshal(b []byte) error
type JVMContractObject ¶
type JVMContractObject struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Data *JVMContractData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
合约对象信息
func (*JVMContractObject) Descriptor ¶
func (*JVMContractObject) Descriptor() ([]byte, []int)
func (*JVMContractObject) GetAddr ¶
func (m *JVMContractObject) GetAddr() string
func (*JVMContractObject) GetData ¶
func (m *JVMContractObject) GetData() *JVMContractData
func (*JVMContractObject) ProtoMessage ¶
func (*JVMContractObject) ProtoMessage()
func (*JVMContractObject) Reset ¶
func (m *JVMContractObject) Reset()
func (*JVMContractObject) String ¶
func (m *JVMContractObject) String() string
func (*JVMContractObject) XXX_DiscardUnknown ¶
func (m *JVMContractObject) XXX_DiscardUnknown()
func (*JVMContractObject) XXX_Marshal ¶
func (m *JVMContractObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*JVMContractObject) XXX_Merge ¶
func (m *JVMContractObject) XXX_Merge(src proto.Message)
func (*JVMContractObject) XXX_Size ¶
func (m *JVMContractObject) XXX_Size() int
func (*JVMContractObject) XXX_Unmarshal ¶
func (m *JVMContractObject) XXX_Unmarshal(b []byte) error
type JVMQueryReq ¶
type JVMQueryReq struct { Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` Para []string `protobuf:"bytes,2,rep,name=para,proto3" json:"para,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*JVMQueryReq) Descriptor ¶
func (*JVMQueryReq) Descriptor() ([]byte, []int)
func (*JVMQueryReq) GetContract ¶
func (m *JVMQueryReq) GetContract() string
func (*JVMQueryReq) GetPara ¶
func (m *JVMQueryReq) GetPara() []string
func (*JVMQueryReq) ProtoMessage ¶
func (*JVMQueryReq) ProtoMessage()
func (*JVMQueryReq) Reset ¶
func (m *JVMQueryReq) Reset()
func (*JVMQueryReq) String ¶
func (m *JVMQueryReq) String() string
func (*JVMQueryReq) XXX_DiscardUnknown ¶
func (m *JVMQueryReq) XXX_DiscardUnknown()
func (*JVMQueryReq) XXX_Marshal ¶
func (m *JVMQueryReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*JVMQueryReq) XXX_Merge ¶
func (m *JVMQueryReq) XXX_Merge(src proto.Message)
func (*JVMQueryReq) XXX_Size ¶
func (m *JVMQueryReq) XXX_Size() int
func (*JVMQueryReq) XXX_Unmarshal ¶
func (m *JVMQueryReq) XXX_Unmarshal(b []byte) error
type JVMQueryResponse ¶
type JVMQueryResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Result []string `protobuf:"bytes,2,rep,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*JVMQueryResponse) Descriptor ¶
func (*JVMQueryResponse) Descriptor() ([]byte, []int)
func (*JVMQueryResponse) GetResult ¶
func (m *JVMQueryResponse) GetResult() []string
func (*JVMQueryResponse) GetSuccess ¶
func (m *JVMQueryResponse) GetSuccess() bool
func (*JVMQueryResponse) ProtoMessage ¶
func (*JVMQueryResponse) ProtoMessage()
func (*JVMQueryResponse) Reset ¶
func (m *JVMQueryResponse) Reset()
func (*JVMQueryResponse) String ¶
func (m *JVMQueryResponse) String() string
func (*JVMQueryResponse) XXX_DiscardUnknown ¶
func (m *JVMQueryResponse) XXX_DiscardUnknown()
func (*JVMQueryResponse) XXX_Marshal ¶
func (m *JVMQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*JVMQueryResponse) XXX_Merge ¶
func (m *JVMQueryResponse) XXX_Merge(src proto.Message)
func (*JVMQueryResponse) XXX_Size ¶
func (m *JVMQueryResponse) XXX_Size() int
func (*JVMQueryResponse) XXX_Unmarshal ¶
func (m *JVMQueryResponse) XXX_Unmarshal(b []byte) error
type JVMStateChangeItem ¶
type JVMStateChangeItem 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:"-"` }
用于保存JVM只能合约中的状态数据变更
func (*JVMStateChangeItem) Descriptor ¶
func (*JVMStateChangeItem) Descriptor() ([]byte, []int)
func (*JVMStateChangeItem) GetCurrentValue ¶
func (m *JVMStateChangeItem) GetCurrentValue() []byte
func (*JVMStateChangeItem) GetKey ¶
func (m *JVMStateChangeItem) GetKey() string
func (*JVMStateChangeItem) GetPreValue ¶
func (m *JVMStateChangeItem) GetPreValue() []byte
func (*JVMStateChangeItem) ProtoMessage ¶
func (*JVMStateChangeItem) ProtoMessage()
func (*JVMStateChangeItem) Reset ¶
func (m *JVMStateChangeItem) Reset()
func (*JVMStateChangeItem) String ¶
func (m *JVMStateChangeItem) String() string
func (*JVMStateChangeItem) XXX_DiscardUnknown ¶
func (m *JVMStateChangeItem) XXX_DiscardUnknown()
func (*JVMStateChangeItem) XXX_Marshal ¶
func (m *JVMStateChangeItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*JVMStateChangeItem) XXX_Merge ¶
func (m *JVMStateChangeItem) XXX_Merge(src proto.Message)
func (*JVMStateChangeItem) XXX_Size ¶
func (m *JVMStateChangeItem) XXX_Size() int
func (*JVMStateChangeItem) XXX_Unmarshal ¶
func (m *JVMStateChangeItem) XXX_Unmarshal(b []byte) error
type JvmContratOpType ¶
type JvmContratOpType int
type JvmType ¶
type JvmType struct {
types.ExecTypeBase
}
JvmType EVM类型定义
func (JvmType) ActionName ¶
func (jvm JvmType) ActionName(tx *types.Transaction) string
ActionName 获取ActionName
func (JvmType) GetRealToAddr ¶
func (jvm JvmType) GetRealToAddr(tx *types.Transaction) string
GetRealToAddr 获取实际地址
type LogJVMContractData ¶
type LogJVMContractData 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"` Addr string `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"` CodeHash string `protobuf:"bytes,4,opt,name=codeHash,proto3" json:"codeHash,omitempty"` AbiHash string `protobuf:"bytes,5,opt,name=abiHash,proto3" json:"abiHash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogJVMContractData) Descriptor ¶
func (*LogJVMContractData) Descriptor() ([]byte, []int)
func (*LogJVMContractData) GetAbiHash ¶
func (m *LogJVMContractData) GetAbiHash() string
func (*LogJVMContractData) GetAddr ¶
func (m *LogJVMContractData) GetAddr() string
func (*LogJVMContractData) GetCodeHash ¶
func (m *LogJVMContractData) GetCodeHash() string
func (*LogJVMContractData) GetCreator ¶
func (m *LogJVMContractData) GetCreator() string
func (*LogJVMContractData) GetName ¶
func (m *LogJVMContractData) GetName() string
func (*LogJVMContractData) ProtoMessage ¶
func (*LogJVMContractData) ProtoMessage()
func (*LogJVMContractData) Reset ¶
func (m *LogJVMContractData) Reset()
func (*LogJVMContractData) String ¶
func (m *LogJVMContractData) String() string
func (*LogJVMContractData) XXX_DiscardUnknown ¶
func (m *LogJVMContractData) XXX_DiscardUnknown()
func (*LogJVMContractData) XXX_Marshal ¶
func (m *LogJVMContractData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogJVMContractData) XXX_Merge ¶
func (m *LogJVMContractData) XXX_Merge(src proto.Message)
func (*LogJVMContractData) XXX_Size ¶
func (m *LogJVMContractData) XXX_Size() int
func (*LogJVMContractData) XXX_Unmarshal ¶
func (m *LogJVMContractData) XXX_Unmarshal(b []byte) error
type ReceiptJVMContract ¶
type ReceiptJVMContract 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
合约创建/调用日志
func (*ReceiptJVMContract) Descriptor ¶
func (*ReceiptJVMContract) Descriptor() ([]byte, []int)
func (*ReceiptJVMContract) GetCaller ¶
func (m *ReceiptJVMContract) GetCaller() string
func (*ReceiptJVMContract) GetContractAddr ¶
func (m *ReceiptJVMContract) GetContractAddr() string
func (*ReceiptJVMContract) GetContractName ¶
func (m *ReceiptJVMContract) GetContractName() string
func (*ReceiptJVMContract) ProtoMessage ¶
func (*ReceiptJVMContract) ProtoMessage()
func (*ReceiptJVMContract) Reset ¶
func (m *ReceiptJVMContract) Reset()
func (*ReceiptJVMContract) String ¶
func (m *ReceiptJVMContract) String() string
func (*ReceiptJVMContract) XXX_DiscardUnknown ¶
func (m *ReceiptJVMContract) XXX_DiscardUnknown()
func (*ReceiptJVMContract) XXX_Marshal ¶
func (m *ReceiptJVMContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReceiptJVMContract) XXX_Merge ¶
func (m *ReceiptJVMContract) XXX_Merge(src proto.Message)
func (*ReceiptJVMContract) XXX_Size ¶
func (m *ReceiptJVMContract) XXX_Size() int
func (*ReceiptJVMContract) XXX_Unmarshal ¶
func (m *ReceiptJVMContract) XXX_Unmarshal(b []byte) error
type ReceiptLocalData ¶
type ReceiptLocalData struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` CurValue []byte `protobuf:"bytes,2,opt,name=curValue,proto3" json:"curValue,omitempty"` PreValue []byte `protobuf:"bytes,3,opt,name=preValue,proto3" json:"preValue,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
存放本地数据库的数据
func (*ReceiptLocalData) Descriptor ¶
func (*ReceiptLocalData) Descriptor() ([]byte, []int)
func (*ReceiptLocalData) GetCurValue ¶
func (m *ReceiptLocalData) GetCurValue() []byte
func (*ReceiptLocalData) GetKey ¶
func (m *ReceiptLocalData) GetKey() []byte
func (*ReceiptLocalData) GetPreValue ¶
func (m *ReceiptLocalData) GetPreValue() []byte
func (*ReceiptLocalData) ProtoMessage ¶
func (*ReceiptLocalData) ProtoMessage()
func (*ReceiptLocalData) Reset ¶
func (m *ReceiptLocalData) Reset()
func (*ReceiptLocalData) String ¶
func (m *ReceiptLocalData) String() string
func (*ReceiptLocalData) XXX_DiscardUnknown ¶
func (m *ReceiptLocalData) XXX_DiscardUnknown()
func (*ReceiptLocalData) XXX_Marshal ¶
func (m *ReceiptLocalData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReceiptLocalData) XXX_Merge ¶
func (m *ReceiptLocalData) XXX_Merge(src proto.Message)
func (*ReceiptLocalData) XXX_Size ¶
func (m *ReceiptLocalData) XXX_Size() int
func (*ReceiptLocalData) XXX_Unmarshal ¶
func (m *ReceiptLocalData) XXX_Unmarshal(b []byte) error
type UpdateJvmContract ¶
type UpdateJvmContract struct { // 用户需要更新的Jvm合约 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 合约字节码 Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
更新Jvm合约
func (*UpdateJvmContract) Descriptor ¶
func (*UpdateJvmContract) Descriptor() ([]byte, []int)
func (*UpdateJvmContract) GetCode ¶
func (m *UpdateJvmContract) GetCode() string
func (*UpdateJvmContract) GetName ¶
func (m *UpdateJvmContract) GetName() string
func (*UpdateJvmContract) ProtoMessage ¶
func (*UpdateJvmContract) ProtoMessage()
func (*UpdateJvmContract) Reset ¶
func (m *UpdateJvmContract) Reset()
func (*UpdateJvmContract) String ¶
func (m *UpdateJvmContract) String() string
func (*UpdateJvmContract) XXX_DiscardUnknown ¶
func (m *UpdateJvmContract) XXX_DiscardUnknown()
func (*UpdateJvmContract) XXX_Marshal ¶
func (m *UpdateJvmContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateJvmContract) XXX_Merge ¶
func (m *UpdateJvmContract) XXX_Merge(src proto.Message)
func (*UpdateJvmContract) XXX_Size ¶
func (m *UpdateJvmContract) XXX_Size() int
func (*UpdateJvmContract) XXX_Unmarshal ¶
func (m *UpdateJvmContract) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.