Deploy and Test Stablecoin Chaincode
You can deploy the chaincode directly from the Oracle Blockchain Platform console or by using Blockchain App Builder.
Deploying the Chaincode
Before you deploy the chaincode, create enrollment IDs for each token user and then map the token users to their respective enrollment IDs. Specify only one user for each enrollment. For more information about adding enrollments, see Add Enrollments to a REST Proxy in Using Oracle Blockchain Platform.
When you deploy the token chaincode, you must call the init method and pass the organization ID and user ID of the Token Admin user.
For information about deploying from the Oracle Blockchain Platform console, see Use Advanced Deployment in Using Oracle Blockchain Platform.
- Extract the
Stablecoin.ziparchive file. - Import the
Stablecoinchaincode to the Blockchain App Builder extension in Visual Studio Code. - Edit the
.ochain.jsonfile to update the value of theconfigFileLocationkey to the path of theStablecoin.ymlspecification file. - Open a terminal window and navigate to the chaincode folder, and then run the following command.
npm install