Commit ae6206d1 authored by Jason Yellick's avatar Jason Yellick Committed by Gerrit Code Review
Browse files

Merge "FAB-10719 New message to serialize cc install package"

parents 95483dd8 54d4e372
......@@ -30,6 +30,7 @@ It has these top-level messages:
ChaincodeDeploymentSpec
ChaincodeInvocationSpec
LifecycleEvent
ChaincodeInstallPackage
ChaincodeEvent
ChaincodeMessage
GetState
......
......@@ -267,6 +267,39 @@ func (m *LifecycleEvent) GetChaincodeName() string {
return ""
}
// ChaincodeInstallPackage stores the necessary information about a chaincode.
type ChaincodeInstallPackage struct {
Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
Path string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"`
CodePackage []byte `protobuf:"bytes,3,opt,name=code_package,json=codePackage,proto3" json:"code_package,omitempty"`
}
func (m *ChaincodeInstallPackage) Reset() { *m = ChaincodeInstallPackage{} }
func (m *ChaincodeInstallPackage) String() string { return proto.CompactTextString(m) }
func (*ChaincodeInstallPackage) ProtoMessage() {}
func (*ChaincodeInstallPackage) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
func (m *ChaincodeInstallPackage) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *ChaincodeInstallPackage) GetPath() string {
if m != nil {
return m.Path
}
return ""
}
func (m *ChaincodeInstallPackage) GetCodePackage() []byte {
if m != nil {
return m.CodePackage
}
return nil
}
func init() {
proto.RegisterType((*ChaincodeID)(nil), "protos.ChaincodeID")
proto.RegisterType((*ChaincodeInput)(nil), "protos.ChaincodeInput")
......@@ -274,6 +307,7 @@ func init() {
proto.RegisterType((*ChaincodeDeploymentSpec)(nil), "protos.ChaincodeDeploymentSpec")
proto.RegisterType((*ChaincodeInvocationSpec)(nil), "protos.ChaincodeInvocationSpec")
proto.RegisterType((*LifecycleEvent)(nil), "protos.LifecycleEvent")
proto.RegisterType((*ChaincodeInstallPackage)(nil), "protos.ChaincodeInstallPackage")
proto.RegisterEnum("protos.ConfidentialityLevel", ConfidentialityLevel_name, ConfidentialityLevel_value)
proto.RegisterEnum("protos.ChaincodeSpec_Type", ChaincodeSpec_Type_name, ChaincodeSpec_Type_value)
proto.RegisterEnum("protos.ChaincodeDeploymentSpec_ExecutionEnvironment", ChaincodeDeploymentSpec_ExecutionEnvironment_name, ChaincodeDeploymentSpec_ExecutionEnvironment_value)
......@@ -282,45 +316,47 @@ func init() {
func init() { proto.RegisterFile("peer/chaincode.proto", fileDescriptor1) }
var fileDescriptor1 = []byte{
// 632 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0x6d, 0x6f, 0xda, 0x3c,
0x14, 0x6d, 0x80, 0xbe, 0xdd, 0x50, 0x94, 0xc7, 0x0f, 0xcf, 0x33, 0xd4, 0x4f, 0x2c, 0xd2, 0x34,
0x36, 0x4d, 0x41, 0x62, 0xd5, 0x36, 0x4d, 0x53, 0x25, 0x4a, 0xd2, 0x2a, 0x1d, 0x83, 0xca, 0x6d,
0x27, 0x6d, 0x5f, 0x50, 0xea, 0x5c, 0xc0, 0x6a, 0x70, 0xa2, 0x60, 0xa2, 0xe6, 0x67, 0xec, 0x97,
0xec, 0x27, 0x6e, 0xb2, 0x53, 0x5e, 0xba, 0xf6, 0xdb, 0x3e, 0x71, 0x7d, 0x7c, 0x7c, 0xee, 0x3d,
0x07, 0xc7, 0x50, 0x4f, 0x10, 0xd3, 0x36, 0x9b, 0x06, 0x5c, 0xb0, 0x38, 0x44, 0x27, 0x49, 0x63,
0x19, 0x93, 0x1d, 0xfd, 0x33, 0xb7, 0x87, 0x60, 0xf6, 0x96, 0x5b, 0xbe, 0x4b, 0x08, 0x54, 0x92,
0x40, 0x4e, 0x1b, 0x46, 0xd3, 0x68, 0xed, 0x53, 0x5d, 0x2b, 0x4c, 0x04, 0x33, 0x6c, 0x94, 0x0a,
0x4c, 0xd5, 0xa4, 0x01, 0xbb, 0x19, 0xa6, 0x73, 0x1e, 0x8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, 0x7c, 0x8c, 0x2c, 0x67, 0x11,
0x7a, 0x99, 0x9a, 0xf8, 0xc5, 0x66, 0x23, 0xfd, 0x0d, 0x16, 0x17, 0x7a, 0xad, 0x38, 0x08, 0x66,
0xf8, 0xfa, 0x08, 0xea, 0xbd, 0x58, 0x8c, 0x79, 0x88, 0x42, 0xf2, 0x20, 0xe2, 0x32, 0xef, 0x63,
0x86, 0x91, 0x32, 0x79, 0x71, 0x7d, 0xd2, 0xf7, 0x7b, 0xd6, 0x16, 0xb1, 0xa0, 0xda, 0x1b, 0x0e,
0x4e, 0x7d, 0xd7, 0x1b, 0x5c, 0xf9, 0xdd, 0xbe, 0x65, 0x9c, 0x0c, 0xc1, 0x8e, 0xd3, 0x89, 0x33,
0xcd, 0x13, 0x4c, 0x23, 0x0c, 0x27, 0x98, 0x3a, 0xe3, 0xe0, 0x26, 0xe5, 0x6c, 0xe9, 0x42, 0xbd,
0x1b, 0xdf, 0x5f, 0x4d, 0xb8, 0x9c, 0x2e, 0x6e, 0x1c, 0x16, 0xcf, 0xda, 0x1b, 0xd4, 0x76, 0x41,
0x6d, 0x17, 0xd4, 0xb6, 0xa2, 0xde, 0x14, 0x4f, 0xca, 0xdb, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff,
0xea, 0x1f, 0x3b, 0xe4, 0x71, 0x04, 0x00, 0x00,
// 658 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0xdd, 0x6e, 0xd3, 0x4c,
0x10, 0x86, 0xeb, 0x24, 0xfd, 0x1b, 0xa7, 0x91, 0xbf, 0xfd, 0x02, 0x44, 0x3d, 0x0a, 0x96, 0x10,
0x01, 0x21, 0x47, 0x0a, 0x15, 0x20, 0x84, 0x2a, 0xa5, 0xb1, 0x5b, 0xb9, 0x84, 0xa4, 0x72, 0x5b,
0x24, 0x38, 0x89, 0xdc, 0xf5, 0x24, 0x59, 0xd5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
0x30, 0xb1, 0xc6, 0xfe, 0x4d, 0xc2, 0xe8, 0x82, 0x95, 0xfc, 0x3b, 0x7d, 0x7f, 0x35, 0x61, 0x62,
0x3a, 0xbf, 0xb1, 0x68, 0x34, 0x6b, 0xaf, 0x49, 0xdb, 0x85, 0xb4, 0x5d, 0x48, 0xdb, 0x52, 0x7a,
0x53, 0xfc, 0xb8, 0xde, 0xfe, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x4f, 0x23, 0xff, 0x1c, 0xd7, 0x04,
0x00, 0x00,
}
......@@ -104,3 +104,10 @@ message ChaincodeInvocationSpec {
message LifecycleEvent {
string chaincode_name = 1;
}
// ChaincodeInstallPackage stores the necessary information about a chaincode.
message ChaincodeInstallPackage {
string type = 1;
string path = 2;
bytes code_package = 3;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment