DealManager

Contract behaviors:

  • storeDeal(deal)

  • existDealByUuid(uuid)

  • countDeals()

  • getDealByUuid(uuid)

  • getDealById(id)

Contract properties:

  • DealData[] public deals

  • mapping(string => uint256) public dealsByUuid

  • lastChangeAt

Contract events:

  • event DealStored(string uuid);

Roles:

  • DEFAULT_ADMIN_ROLE

  • EDITOR_ROLE

Admin-only functions:

  • storeDeal(EDITOR_ROLE)

CA

Last updated