Veles - Carbon Credits Pallet
  • Get Started
    • What is the Veles pallet
    • What are carbon credits
    • How to use the Veles pallet
  • Pallet entities and functionalities
    • Entities
      • Authority Accounts
      • Carbon Footprint Accounts
      • Trader Accounts
      • Project Owner Accounts
      • Validator Accounts
      • Projects
      • Carbon Credit Batches
    • Functionalities
      • Authority exclusive functionalities
        • Update vote pass ratio
        • Update penalty levels
        • Update beneficiary splits
        • Update time value
        • Update fee value
      • Validator exclusive functionalities
        • Cast vote
        • Open complaint
      • Project owner exclusive functionalities
        • Propose project
        • Propose carbon credit batch
        • Repay debts
      • Carbon footprint account exclusive functionalities
      • General functionalities
        • Register for trader account
        • Register for project validator account
        • Register for project owner account
        • Submit carbon footprint report
        • Create sale order
        • Close sale order
        • Complete sale order
    • Timed events
    • Penalty rules
  • Contact
    • Contact
Powered by GitBook
On this page
  • Note:
  • Carbon credit batch status:
  1. Pallet entities and functionalities
  2. Functionalities
  3. Validator exclusive functionalities

Open complaint

PreviousCast voteNextProject owner exclusive functionalities

Last updated 10 months ago

Apart from voting on a certain subject (i.e. a proposal or complaint), a validator can also open a complaint for a certain account ID or hash based entity. The two functionalities that allow a validator to do this are: open_account_complaint(documentation_ipfs, complaint_for, complaint_type) and open_hash_complaint(documentation_ipfs, complaint_for, complaint_type).

Note:

The only key difference between these two functionalities is the value type for the complaint_for parameter, as on functionality accepts only AccountId values for this parameter while the other one accepts only hash values (i.e. H256 values). This is due to the fact that we store user based types via the users AccountId value, while on the other hand we store projects and carbon credit batches under their corresponding hash values.

If a validator wishes to open a complaint for a account ID based entity, he/she should provide some adequate documentation for their claim in the form of a IPFS link to said documentation. Apart from this, the validator should also provide the account ID of the entity for which the complaint is being opened and the type of complaint that is in question (e.g. project owner complaint, project complaint, etc.). When providing the documentation for the complaint the validator needs to use some form of documentation (IPFS link) that previously hasn't been used. Failing to do so will result in the functionality failing.

It is also worth mentioning that there is a corresponding fee associated with this functionality call. .

Carbon credit batch status:

All of the possible complaints except the batch complaint work in a similar fashion in that their passing would result in the increase of the penalty level for the entity to whom the complaint was meant for. The carbon credit batch on the other had functions so that the carbon credit batch becomes "frozen" once a complaint has been submitted for it. If the complaint passes the batch will be "redacted" and if not it will once again gain the "active" status

Here you can find more about the pallet fees