Manage contract projects

更新时间:
复制 MD 格式

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

  1. In the BaaS console, under Ant BlockChain, click Contract Blockchain, select a consortium, and click Manage to open the Blockchain Management page.

  2. In the left-side navigation pane, click Project Management to open the Consortium Contract Projects page.

Create a contract project

  1. Click Create Contract Project.

  2. 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.0 or v2.1.0.

  3. 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

  1. In the Actions column of the project you want to copy, click Copy.

  2. 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.0 or v2.1.0.

    If the name you enter matches an existing project, the system automatically appends a serial number to make it unique.
  3. 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.

  1. In the Actions column of the target project, click Delete.

  2. In the dialog box, click OK to confirm.

What's next

After creating a contract project, follow this workflow to go live:

  1. Edit — Open the project in the Cloud IDE to write your Solidity contract code.

  2. Debug — Test the contract in the Cloud IDE before deployment.

  3. Deploy — Deploy the contract to the consortium blockchain.

For step-by-step guidance on all three stages, see Cloud IDE Instructions.