Valuable Credentials For Degrees

Contract Purpose

The contract has as purpose to keep and present with transparency the available certifications, members subscribed to them and the certified members.

Customizable Variables

uint256 certificationsCounter
uint256 membersCounter

categories is a map of categoryId->categories text
subCategories is a map of subCategoryId->subCategories text
items is a map of itemId->item text
categoriesToSubcategoriesMap is a map that links the subcategories to the relative category by categoryId->subCategoryId
subCategoriesToItemsMap is a map that links the items to the relative subcategory by subCategoryId->itemId
itemValue is a map that links the value to the relative item
address public owner stores the contract owner address

Exposed Methods

  1. addCertification adds a new certification to the _certifications mapping Parameters:

    • string _certifications
  2. subscribeToCertification member can subscribe to a certification

    • uint256 _certificationId
  3. addMember used to add a new member; Only the contract owner can add new members

    • address _member
  4. getCertification get the certification by id Parameters:

    • uint256 _certificationId
  5. getMemberCertificationStatus gets if a member has passed and has the specified certification

    • address _memberAddress
    • uint256 _certificationId
  6. setCertifiedMember gets the item amount Parameters:

    • uint256 _certificationId
    • address _memberAddress


  1. addCertification("Certified in java")"
  2. addMember(0xca35b7d915458ef540ade6068dfe2f44e8fa733c)
  3. setCertifiedMember(1,0xca35b7d915458ef540ade6068dfe2f44e8fa733c)
  4. getCertification(1)
  5. getMemberCertificationStatus(0xca35b7d915458ef540ade6068dfe2f44e8fa733c,1)
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract