-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add query to get instantiated chaincodes on a channel
This change adds a query which returns the details of all chaincodes instantiated on a specific channel. The return value is a ChaincodeQueryResponse proto which contains an array of ChaincodeInfo protos, which each contain the chaincode name, version, path, input arguments, ESCC name, and VSCC name. https://jira.hyperledger.org/browse/FAB-2236 Change-Id: I22ee931b3b3d05eaa5ba87d57611b8a66abf969d Signed-off-by: Will Lahti <wtlahti@us.ibm.com>
- Loading branch information
Showing
8 changed files
with
269 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
Copyright IBM Corp. 2017 All Rights Reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
syntax = "proto3"; | ||
|
||
option go_package = "github.com/hyperledger/fabric/protos/peer"; | ||
|
||
package protos; | ||
|
||
// ChaincodeQueryResponse returns information about each chaincode that pertains | ||
// to a query in lccc.go, such as GetChaincodes (returns all chaincodes | ||
// instantiated on a channel), and GetInstalledChaincodes (returns all chaincodes | ||
// installed on a peer) | ||
message ChaincodeQueryResponse { | ||
repeated ChaincodeInfo chaincodes = 1; | ||
} | ||
|
||
// ChaincodeInfo contains general information about an installed/instantiated | ||
// chaincode | ||
message ChaincodeInfo { | ||
string name = 1; | ||
string version = 2; | ||
// the path as specified by the install/instantiate transaction | ||
string path = 3; | ||
// the chaincode function upon instantiation and its arguments. This will be | ||
// blank if the query is returning information about installed chaincodes. | ||
string input = 4; | ||
string escc = 5; | ||
string vscc = 6; | ||
} |
Oops, something went wrong.