Deploying a smart contract from Luniverse Console

Deploy a smart contract created in Solidity to the chain through the GUI from Luniverse Console.

Luniverse provides a GUI through which you can deploy smart contracts to the Side Chain and generate blockchain transactions with a few simple clicks.

  • A CO of the Side Chain may directly deploy smart contracts to the Side Chain.

  • With CO’s approval, a Member of the Side Chain may also deploy smart contracts on the Side Chain.

Requesting deployment of smart contracts from the console

  1. In [Console], select the Side Chain to which you wish to deploy a smart contract to go to the [Chain Overview] page.

2. Click [User Contract List] on the left menu to go to the [User Contract List] page.

3. Smart contracts that is currently deployed to the chain or requested to be deployed are listed on the [User Contract List] page.

4. Click [+Create User Contract] to go to the [Create User Contract] page.

Enter the details about the contract to deploy.

5. Name: Enter the name of the contract to deploy. 3 to 20 alphanumeric characters and two special characters (underscore “(_)” and dash “(–)”) can be used. However, these special characters cannot be used as the first or last character of the name.

e.g., _1contract (X) 1contract- (X) 1-contract (O)

6. Description: Enter details about the contract to deploy.

7. Contract file: Upload a contract file in the format of .sol.

8. When the contract file is successfully uploaded, the [Contract Select] feature is activated. Choose a contract to deploy from the uploaded files.

9. When you select a contract, a field for entering the contract parameters required for creating the initial contract is activated. Enter the appropriate values for the contract parameters.

When the CO deploys a contract

10. When you click [Apply], the message “Do you want to register a contract?” appears in a pop-up window.

When you click [OK], a pop-up window for entering your private key to execute the transaction for deploying the contract appears. When you enter the private key or upload the keystore file, you can proceed with signing the transaction, and the message “Contract deployment requested” appears in a pop-up window. When you click [OK] in the pop-up window, you’ll be directed to the [User Contract List] page.

11. On the [User Contract List] page, the status of the contract that has been deployed changes from “Deploying” to “Deployed.”

When a Member deploys a contract

10. When you click [Apply], the message “Do you want to register a contract?” appears in a pop-up window.

When you click [OK], the message “Registered” appears in a pop-up window. When you click [OK] in the pop-up window, you’ll be directed to the [User Contract List] page.

11. On the [User Contract List] page, the status of the contract which has been requested to be deployed changes to “Review Requested,” and the request for review and deployment is submitted to the CO.

(CO) Reviewing the smart contract requested by a Member

  1. If the Member requests a review of the contract, the CO receives the message “Contract Deploy Approve Requested” that appears in the notifications window at the bottom right corner of the Console screen.

  2. Click the message to go to the [User Contract List] page.

3. Click [Review Required] to go to the page that shows the requested contract in a read-only format.

4. Review the requested contract. Download and review the contract file when it is necessary to review the source code.

5-1. Approving a contract

(1) Click [Approve] if you approve that the contract can be deployed to the chain after the review. (2) The message "Do you want to approve deploying this contract?" appears in a pop-up window. If you click [OK], the message "The deployment of the requested contract has been approved." appears. When you click [OK] in the pop-up window, you’ll be directed to the [User Contract List] page. (3) On the [User Contract List] page, the status of the approved contract changes to [Ready to Deploy].

5-2. Rejecting a contract

(1) Click [Reject] if you confirm that the contract cannot be deployed to the chain after the review. (2) The message "Do you want to reject deploying this contract?" appears in a pop-up window. If you click [OK], the message "The deployment of the requested contract has been rejected." appears. When you click [OK] in the pop-up window, you’ll be directed to the [User Contract List] page. (3) On the [User Contract List] page, the status of the approved contract changes to [Read Only].

(Member) Deploying the reviewed smart contract

  1. Go to the [User Contract List] page of the Side Chain for which the deployment of the contract is requested.

  2. On the [User Contract List] page, click the contract with the status of [Ready to Deploy] to go to the page containing details of the approved contract.

3. [Deploy] A pop-up window for entering your private key to sign the transaction for deploying the contract appears. When you enter the private key or upload the keystore file, you can proceed with signing the transaction, and the message “Contract deployment requested” appears in a pop-up window. When you click [OK] in the pop-up window, you’ll be directed to the [User Contract List] page.

4. On the [User Contract List] page, the status of the contract that has been deployed changes from “Deploying” to “Deployed.”