Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To load the name of the functions which is present in chaincode #25

Open
ashish9308 opened this issue Jan 7, 2017 · 3 comments
Open

Comments

@ashish9308
Copy link

Is there any way so that i can see the list of functions which is present in the chaincode by using this sdk. Earlier by using chaincode investigator i was able to see the functions.
This kind of output i want to see.
Example:
[ibc-js] Found cc invoke function: issueCommercialPaper
[ibc-js] Found cc invoke function: transferPaper
[ibc-js] Found cc invoke function: createAccounts
[ibc-js] Found cc invoke function: createAccount
[ibc-js] Found cc invoke function: init

@mastersingh24
Copy link

Hi @ashish9308 - this demo uses the official NodeSDK ("hfc") produced by the Hyperledger Fabric project itself. hfc does not have built in support for "parsing" the chaincode source and looking for functions.

Chaincode investigator used https://github.com/IBM-Blockchain/ibm-blockchain-js under the covers which basically "parsed" the Go source file(s) of the chaincode and tried to find the functions

@ashish9308
Copy link
Author

Hello @mastersing24 thanks for your quick responce.If i want to add the same parsing feature here in this code then it will work?

@mastersingh24
Copy link

@ashish9308 - you could certainly try to copy and modify https://github.com/IBM-Blockchain/ibm-blockchain-js/blob/master/index.js#L146 in order to accomplish this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants