Skip to main content

InspectionStatus

InspectionStatus

Inspection posible status.

enum InspectionStatus {
OPEN,
ACCEPTED,
INSPECTED,
INVALIDATED
}

Inspection

Inspection data structure.

Parameters

NameTypeDescription
struct Inspection {
uint64 id;
enum InspectionStatus status;
address regenerator;
address inspector;
uint32 treesResult;
uint32 biodiversityResult;
uint32 regenerationScore;
string proofPhotos;
string justificationReport;
uint256 validationsCount;
uint256 createdAt;
uint256 acceptedAt;
uint256 inspectedAt;
uint256 inspectedAtEra;
uint256 invalidatedAt;
}

ContractsDependency

System used contracts address.

struct ContractsDependency {
address communityRulesAddress;
address regeneratorRulesAddress;
address validationRulesAddress;
address inspectorRulesAddress;
address regenerationIndexRulesAddress;
address activistRulesAddress;
address voteRulesAddress;
}

EraImpact

Tracks the inspection impact of an Era.

This struct is used to register the impact of all inspection of an Era.

Parameters

NameTypeDescription
struct EraImpact {
uint256 trees;
uint256 biodiversity;
uint256 realizedInspections;
}