The Consortium Contract Projects page lets administrators create, copy, and delete contract projects on a Contract Blockchain. After you create a project, open it in the Cloud IDE to write, debug, and deploy Solidity smart contracts.
Only Solidity smart contracts are supported.
Prerequisites
Before you begin, ensure that you have:
Access to the Blockchain as a Service (BaaS) console
Administrator permissions on a Contract Blockchain consortium
Go to the Consortium Contract Projects page
In the BaaS console, under Ant BlockChain, click Contract Blockchain, select a consortium, and click Manage to open the Blockchain Management page.
In the left-side navigation pane, click Project Management to open the Consortium Contract Projects page.
Create a contract project
Click Create Contract Project.
In the dialog box, enter a name, version, and description for the project. The version must contain only letters, digits, and periods—for example,
1.0orv2.1.0.Click Start. The new project appears in the project list.
To write and deploy the contract, click Edit to open the project in the Cloud IDE. See Cloud IDE Instructions.
Edit a contract project
Select a contract project and click Edit. The Cloud IDE page opens. For how to edit, debug, and deploy contracts, see Cloud IDE Instructions.
Copy a contract project
In the Actions column of the project you want to copy, click Copy.
In the dialog box, enter a name, version, and description for the copied project. The version must contain only letters, digits, and periods—for example,
1.0orv2.1.0.If the name you enter matches an existing project, the system automatically appends a serial number to make it unique.
Click Start. The copied project appears in the project list and is ready to edit.
Delete a contract project
Before deleting a project, consider copying it as a backup—deleted projects cannot be recovered.
In the Actions column of the target project, click Delete.
In the dialog box, click OK to confirm.
What's next
After creating a contract project, follow this workflow to go live:
Edit — Open the project in the Cloud IDE to write your Solidity contract code.
Debug — Test the contract in the Cloud IDE before deployment.
Deploy — Deploy the contract to the consortium blockchain.
For step-by-step guidance on all three stages, see Cloud IDE Instructions.