Repository

In Bunzz, user can create their own custom module templates by uploading their smart contract solidity files. There are a few things to make sure of before creating custom module templates πŸ‘‡

  1. Please put all solidity files that relate to the module in ONE directory

  2. Third-party libraries like openzeppelin also need to be stored in the directory

    But only @openzeppelin/contracts 4.3.2 is available in the system. It doesn’t need to be stored.

  3. The uploaded file need to contain only one definition of contract, interface, or library. (ERC20 and IERC20 must be put in different files)

  4. The uploaded file must have completely the same name as the definition of contract, interface, or library. ( The filename for ERC20 must be ERC20.sol)

  5. The uploaded directory is required to contain only one root contract. detailarrow-up-right

Create a module template

Let's create a module template

  • In "Repository" page, we will see all the module templates that we've created before.

  • Click "Create a module template"

  • Click "Select contracts" to upload our solidity files

  • After uploading the smart contract solidity files we will see all the fields related to this module template. For example, module template name, description, interfaces, arguments and documentation. We need to provide the required fields to further continue.

  • Click "Upload"

  • Now, we can see the module template is created. We can see the "Document", "Code" and "Argument" of this module template by clicking on respective tabs.

"Document" of this module template
  • Click "Code" tab

  • Click the file to view the code

  • Click "Arguments" tab to view the arguments of this module template

For any questions or feedback you may have, please feel free to contact us on Bunzz Discord Serverarrow-up-right.

Last updated