Luniverse
Searchโ€ฆ
How to Deploy Smart Contract
In Luniverse, you can generate Blockchain Transactions by deploying the smart contracts on the side chain through GUI.
  • In Luniverse, you can deploy and use a smart contract written based on Solidity on Luniverse PoA and Hyperledger Besu.

How to Deploy Smart Contract

1. Select [Contract] โ†’ [Smart Contract] from the menu on the left of Home.
2. Select the [Deploy Management] tab.
3. Click [Deploy & Import] to go to the smart contract deployment process.
4. In Luniverse, you can retrieve the smart contract information that you will deploy through the following two methods:
  • Retrieving the registered contract resource
  • Retrieving the externally distributed smart contract
โ€‹

How to Retrieve the Registered Contract Resource

5. Select the [Retrieve stored contract resource] radio button.
6. Select the Environment in which you will deploy the Smart Contract.
For a detailed guideline on Environment, check the link below:
๐Ÿ‘‡
โ€‹
7. If the Environment that you selected does not have an Environment Account (Luniverse Wallet Account), click [+Create Environment Account] to create one.
For a detailed guideline on how to issue an Environment, check the link below:
๐Ÿ‘‡
โ€‹
8. Select the [Contract Resource] tab.
9. If there is no registered Contract Resource, click [+Create New Contract Resource] to create and upload a Contract Resource.
For a detailed guideline on how to upload contract resources, check the link below:
๐Ÿ‘‡
โ€‹
10. The name and description information that you entered when registering the selected contract resource are displayed. You can edit this information.
11. Select the smart contract that you would like to deploy.
12. If the selected smart contract requires a parameter, an input field for the parameter is added at the bottom. Enter a value in [Value] according to the name and type.
13. Click [Deploy] to check the Private Authentication pop-up.
14. The Private Authentication will be handled in the Processing Private Authentication below
โ€‹

How to retrieve an externally distributed smart contract

5. Select [Import contract address & bytecode] button.
6. Select the Environment in which you will deploy the Smart Contract.
For a detailed guideline on Environment, check the link below:
๐Ÿ‘‡
โ€‹
7. If the Environment that you selected does not have any Environment Account, click [+Create Environment Account] to create an Environment Account.
For a detailed guideline on how to issue Environment, check the link below:
๐Ÿ‘‡
โ€‹
8. Select the smart contract that you will deploy. The name must consist of a combination of 3 to 32 letters.
9. Enter a description for the smart contract. (optional)
10. Enter the externally deployed smart contract address.
11. Enter the ABI of the externally deployed smart contract.
12. Enter the Bytecode of the externally deployed smart contract.
13. Click [Deploy] to check the Private Authentication pop-up.
14. The Private Authentication will be handled in the Processing Private Authentication below.
When an externally deployed smart contract is retrieved and deployed through the [Import contract address & bytecode] function, the smart contract information is created as a contract resource and uploaded automatically.
โ€‹

Processing Private Authentication

1. Select one of the Environment Accounts in the Environment to deploy the smart contract that you selected above.

When Environment Account is Externally Owned Account (EOA) type

2. Select the type of Authentication.
  • Download Keystore File (VALUT Service) + Passphrase
    3. Enter the passphrase value set when creating the Environment Account.
    4. Click [Confirm] to start deploying the smart contract.
  • Upload Keystore File + Passphrase
    3. Click [Upload File (json)].
    4. Select the keystore file you downloaded when creating Environment Account.
    5. Enter the passphrase value set when creating the Environment Account.
    6. Click [Confirm] to start deploying the smart contract.
  • Enter Private Key
    3. Enter the private key that was issued when creating the Environment Account.
    4. Click [Confirm] to start deploying the smart contract.
โ€‹
When Environment Account is Delegated EOA (DEOA) type
2. Click [Confirm] to proceed with the deployment.

Authenticate by DEOA

In the case of Delegated EOA (DEOA), Luniverse manages the private key on your behalf. If you choose DEOA, the signature will be proceeded automatically.

How to Manage Smart Contract

In Luniverse, you can check the list of deployed smart contracts and current status information. You can check detailed information on the smart contract that has been deployed and delete the smart contract that you want.
โ€‹
1. 1. Select [Contract] โ†’ [Smart Contract] from the menu on the left of Home.
2. Select the [Deploy Management] tab.
3. You can check the deployment status of the smart contract through the STATUS item. The types of status information are as follows:
  • Deploying
  • Deployed
  • Denied
  • Failed
4. Click [Deployed] of the STATUS item to check the following detailed information:
  • Smart Contract Name
  • Description: Smart contract description
  • Selected Contract: Contract information used for smart contract deployment
  • Contract Address: Smart contract address
  • Environment: Information on Environment in which the smart contract is deployed
  • Developed by: User information who deployed the smart contract
  • Creation Time: The date the smart contract was deployed
  • Constructor Parameters: Parameter information entered when deploying the smart contract
  • Contract Resource: Type information of the used contract resource (Solidity or ABI + Bytecode)
  • SOURCECODE: If the type of the used contract resource is Solidity, the contents of [Solidity File (.sol)]
  • ABI: If the type of the used contract resource is ABI + Bytecode, the contents of the ABI
  • BYTECODE: If the type of the used contract resource is ABI + Bytecode, the contents of Bytecode
5. You can delete the contract resource through the โ€œdeleteโ€ button [
] located on the right. Please note that deleted data cannot be recovered. Note: Even if the smart contract is deleted, the transaction history remains.
Copy link
On this page
How to Deploy Smart Contract
How to Retrieve the Registered Contract Resource
How to retrieve an externally distributed smart contract
Processing Private Authentication
How to Manage Smart Contract