Deploy and Test Generic Token Framework Chaincode
Deploying the Fungible Token Framework Chaincode
You can deploy the chaincode directly from the Oracle Blockchain Platform console or by using Blockchain App Builder. 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.
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.
- Extract the
DepositToken.ziparchive file. - Import the
DepositTokenchaincode to the Blockchain App Builder extension in Visual Studio Code. - Edit the
.ochain.jsonfile to update the value of theconfigFileLocationkey to the path of theDepositToken.ymlspecification file. - Open a terminal window and navigate to the chaincode folder, and
then run the following
command.
npm install
Deploying the Non-Fungible Token Framework Chaincode
You can deploy the chaincode directly from the Oracle Blockchain Platform console or by using Blockchain App Builder. 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.
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.
- Extract the
NFTCollectiblesWithERC721.ziparchive file. - Import the
NFTCollectiblesWithERC721chaincode to the Blockchain App Builder extension in Visual Studio Code. - Edit the
.ochain.jsonfile to update the value of theconfigFileLocationkey to the path of theNFTCollectiblesWithERC721-TypeScript.ymlspecification file. - Open a terminal window and navigate to the chaincode folder, and
then run the following
command.
npm install
Deploying the Combined Token Framework Chaincode
You can deploy the chaincode directly from the Oracle Blockchain Platform console or by using Blockchain App Builder. 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.
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.
- Extract the
NFTCollectiblesWithERC1155.ziparchive file. - Import the
NFTCollectiblesWithERC1155chaincode to the Blockchain App Builder extension in Visual Studio Code. - Edit the
.ochain.jsonfile to update the value of theconfigFileLocationkey to the path of theNFTCollectiblesWithERC1155-TypeScript.ymlspecification file. - Open a terminal window and navigate to the chaincode folder, and
then run the following
command.
npm install