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
  1. Pallet entities and functionalities
  2. Functionalities
  3. Validator exclusive functionalities

Cast vote

PreviousValidator exclusive functionalitiesNextOpen complaint

Last updated 10 months ago

As the name of the functionality would suggest, a validator can cast a vote for a ongoing proposal (e.g. carbon footprint report, project proposal or carbon credit batch proposal) or a complaint (for a account ID based entity of hash based entity).

The validator can achieve this by utilizing the cast_vote(vote_type, ipfs, vote) functionality. When calling the functionality, the validator needs to provide the type of he/she is casting (i.e. for what is the vote meant for), as well as the IPFS link to the underlying documentation of the proposal/complaint and finally if he/she votes 'for' or 'against'.

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

Here you can find more about the pallet fees