-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[done] upgrade deploy with incremental sequence.
- Loading branch information
1 parent
3585a19
commit adf3e15
Showing
4 changed files
with
115 additions
and
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import * as helper from '../app/helper.js'; | ||
import {ChaincodeDefinitionOperator} from '../app/installHelper.js'; | ||
import {consoleLogger} from '@davidkhala/logger/log4.js'; | ||
|
||
const channel = 'allchannel'; | ||
|
||
export async function dev(org, chaincodeID, init_required = false) { | ||
const admin = helper.getOrgAdmin(org); | ||
const logger = consoleLogger(`chaincode:${chaincodeID}`); | ||
const peers = helper.newPeers([0, 1], org); | ||
const operator = new ChaincodeDefinitionOperator(channel, admin, peers, init_required); | ||
await operator.connect(); | ||
const [installed, uncommitted, committed] = await operator.queryInstalled(chaincodeID); | ||
const definitions = await operator.queryDefinition(chaincodeID); | ||
logger.debug({installed, uncommitted, committed, definitions}); | ||
await operator.disconnect(); | ||
} |
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