docker rm -f $(docker ps -aq)
docker network prune
Navigate to the chaincode-docker-devmode directory of the fabric-samples clone:
cd fabric-samples
cd chaincode-docker-devmode
docker-compose -f docker-compose-simple.yaml up
docker exec -it chaincode bash
cd fxchaincode
go build
CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=mycc:0 ./fxchaincode
docker exec -it cli bash
peer chaincode install -p chaincodedev/chaincode/fxchaincode -n mycc -v 0
peer chaincode instantiate -n mycc -v 0 -c '{"Args":[""]}' -C myc
CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=mycc:1 ./fxchaincode
peer chaincode install -p chaincodedev/chaincode/fxchaincode -n mycc -v 1
peer chaincode upgrade -n mycc2 -v 1 -c '{"Args":[""]}' -C myc
cd go
docker-compose -f docker-compose.yml up
http://172.20.10.13:8080/?datadate=20181025&curr1=USD&curr2=TWD
- querySecurity(APIstub, args)
- initLedger(APIstub, args)
- createSecurity(APIstub, args)
- queryAllSecurities(APIstub, args)
- querySecurityStatus(APIstub, args)
- queryOwner(APIstub, args)
- queryOwnerAccount(APIstub, args)
- queryOwnerLength(APIstub, args)
- changeSecurity(APIstub, args)
- changeSecurityStatus(APIstub, args)
- changeOwnerAvaliable(APIstub, args)
- deleteSecurity(APIstub, args)
- deleteOwner(APIstub, args)
- updateOwnerInterest(APIstub, args)
- getHistoryForSecurity(APIstub, args)
- getHistoryTXIDForSecurity(APIstub, args)
- queryAllSecurityKeys(APIstub, args)
- changeBankSecurityTotals(APIstub, args)
- queryBankSecurityTotals(APIstub, args)
- querySecurityTotals(APIstub, args)
- initAccount(APIstub, args)
- deleteAccount(APIstub, args)
- getStateAsBytes(APIstub, args)
- updateAccountStatus(APIstub, args)
- updateAccount(APIstub, args)
- updateAsset(APIstub, args)
- updateAssetBalance(APIstub, args)
- deleteAsset(APIstub, args)
- queryAsset(APIstub, args)
- queryAssetInfo(APIstub, args)
- queryAssetLength(APIstub, args)
- queryAccountStatus(APIstub, args)
- queryAllAccounts(APIstub, args)
- getHistoryForAccount(APIstub, args)
- getHistoryTXIDForAccount(APIstub, args)
- queryAllAccountKeys(APIstub, args)
- initBank(APIstub, args)
- updateBank(APIstub, args)
- deleteBank(APIstub, args)
- verifyBankList(APIstub, args)
- getStateAsBytes(APIstub, args)
- queryAllBanks(APIstub, args)
- getHistoryForBank(APIstub, args)
- getHistoryTXIDForBank(APIstub, args)
- queryAllBankKeys(APIstub, args)
- queryBankTotals(APIstub, args)
- submitApproveTransaction(APIstub, args)
- submitEndDayTransaction(APIstub, args)
- securityTransfer(APIstub, args)
- securityCorrectTransfer(APIstub, args)
- queryTXIDTransactions(APIstub, args)
- queryTXKEYTransactions(APIstub, args)
- queryHistoryTXKEYTransactions(APIstub, args)
- getHistoryForTransaction(APIstub, args)
- getHistoryTXIDForTransaction(APIstub, args)
- getHistoryForQueuedTransaction(APIstub, args)
- getHistoryTXIDForQueuedTransaction(APIstub, args)
- queryAllTransactions(APIstub, args)
- queryAllQueuedTransactions(APIstub, args)
- queryAllHistoryTransactions(APIstub, args)
- queryAllTransactionKeys(APIstub, args)
- queryQueuedTransactionStatus(APIstub, args)
- queryHistoryTransactionStatus(APIstub, args)
- updateQueuedTransactionHcode(APIstub, args)
- updateHistoryTransactionHcode(APIstub, args)
- mapFunction(APIstub, function, args)
- get(APIstub, function, args)
- put(APIstub, function, args)
- remove(APIstub, function, args)
- keys(APIstub, function, args)
- query(APIstub, function, args)# fxchaincode-master