@Test public void testInstall() throws Exception { accountService.install(); }
public void install() throws Exception { if (accountRepo.getChaincodeDeployOperations().checkInstallChaincode(accountRepo.getCriteria().getChaincodeID())) { return; } InstallProposal proposal = ProposalBuilder.install(); proposal.clientUser("admin"); accountRepo.install(proposal, Paths.get(accountRepo.getConfig().getCommonRootPath(), "chaincode/go/sample_11").toFile()); }
AccountService { public void install() throws Exception { if (accountRepo.getChaincodeDeployOperations().checkInstallChaincode(accountRepo.getCriteria().getChaincodeID())) { return; } InstallProposal proposal = ProposalBuilder.install(); proposal.clientUser("admin"); accountRepo.install(proposal, Paths.get(accountRepo.getConfig().getCommonRootPath(), "chaincode/go/sample_11").toFile()); } }
AccountService { public void install() throws Exception { if (accountRepo.getChaincodeDeployOperations().checkInstallChaincode(accountRepo.getCriteria().getChaincodeID())) { return; } InstallProposal proposal = ProposalBuilder.install(); proposal.clientUser("admin"); accountRepo.install(proposal, Paths.get(accountRepo.getConfig().getCommonRootPath(), "chaincode/go/sample_11").toFile()); }  }
AccountService { public void install() throws Exception { if (accountRepo.getChaincodeDeployOperations().checkInstallChaincode(accountRepo.getCriteria().getChaincodeID())) { return; } InstallProposal proposal = ProposalBuilder.install(); proposal.clientUser("admin"); accountRepo.install(proposal, Paths.get(accountRepo.getConfig().getCommonRootPath(), "chaincode/go/sample_11").toFile()); }  void install(); ResultSet instantiate(Account account); ResultSet upgrade(); ResultSet invoke(String from, String to, int amount); ResultSet query(String account); }
AccountService { public void install() throws Exception { if (accountRepo.getChaincodeDeployOperations().checkInstallChaincode(accountRepo.getCriteria().getChaincodeID())) { return; } InstallProposal proposal = ProposalBuilder.install(); proposal.clientUser("admin"); accountRepo.install(proposal, Paths.get(accountRepo.getConfig().getCommonRootPath(), "chaincode/go/sample_11").toFile()); }  void install(); ResultSet instantiate(Account account); ResultSet upgrade(); ResultSet invoke(String from, String to, int amount); ResultSet query(String account);  }