Luniverse
Searchโ€ฆ
How to Upload Contract Resource

How to Create and Upload Contract Resource

In Luniverse, you can register a smart contract with a contract resource and easily deploy it to multiple chains.
โ€‹
1. Select [Contract] โ†’ [Smart Contract] from the menu on the left of Home.
2. Select the [Contract Resources] tab.
3. Click [+Create Contract Resource] to go to the contract resource creation process.
4. Select either File Upload (.sol) or ABI + Bytecode for contract resource creation.
โ€‹

File Upload (.sol)

5. Select the [File Upload (.sol)] radio button.
6. Enter a name for the contract resource. The name of the contract resource must consist of 3~32 characters. You cannot use special characters.
7. Enter a description for the contract resource you are creating. (optional)
8. Click [Upload File (.sol)] to select a Solidity File (.sol) for contract resource creation.
9. Click [Create] to create the contract resource and upload it automatically.
If the size of the contract Solidity file (.sol) is large (1GB or more), the upload process may not proceed smoothly. In this case, please deploy the contract directly using the RPC-endpoint and import the contract on the console.

ABI + Bytecode ๋ฐฉ๋ฒ•

5. Select the [ABI + Bytecode] radio button.
6. Enter a name for the contract resource. The name of the contract resource must consist of 3~32 characters. You cannot use special characters
7. Enter a description for the contract resource you are creating. (optional)
8. Enter the solidity code and its compiled ABI and Bytecode to create the contract resource.
9. Click [Create] to create the contract resource and upload it automatically.

How to Manage Contract Resource

In Luniverse, you can check the list of contract resources currently registered and their detailed resources, and you can delete the contract resources if you want.
1. Select [Contract] โ†’ [Smart Contract] from the menu on the left of Home.
2. Select the [Contract Resources] tab.
3. You can check how the contract resource was created through the TYPE item. (Solidity or ABI + Bytecode)
4. IF the โ€œTYPEโ€ item is Solidity, you can download the Solidity Code through the download button [
] located on the right.
5. If the โ€œTYPEโ€ item is ABI + Bytecode, the download button [
] located on the right will be disabled.
6. If you click the Contract Resource list, you can check the configuration depending on TYPE items as follows:
  • Solidity : Content of the Solidity File (.sol) you selected when creating the contract resource
  • ABI + Bytecode : Content of ABI and Bytecode you entered when creating the contract resource
7. You can delete the contract resource through the โ€œdeleteโ€ button
] located on the right. Please note that deleted data cannot be recovered.
Copy link
On this page
How to Create and Upload Contract Resource
File Upload (.sol)
ABI + Bytecode ๋ฐฉ๋ฒ•
How to Manage Contract Resource