ClaimManager
The ClaimManager contract manages the lifecycle of claims from initiation to resolution. It coordinates interactions between users, the Liquidity Manager, and arbitration courts. This contracts ensures a fair and transparent system for cover holders to submit claims and receive compensation when eligible.
Enums info
ClaimStatus
RulingOptions
The neutral "refuse to arbitrate" option IS ALWAYS 0
Structs info
ClaimRead
Claim
State variables info
baseMetaEvidenceURI
coverToken
liquidityManager
arbitrator
evidenceGuardian
overruleGuardian
nextClaimId
claims
disputeIdToClaimId
claimIdToEvidence
claimIdToCounterEvidence
claimCollateral
klerosExtraData
challengePeriod
overrulePeriod
evidenceUploadPeriod
numberOfRulingOptions
courtClosed
Modifiers info
onlyArbitrator
Check that the caller is the arbitrator contract
coverExists
Check that the cover exists
Parameters:
claimsExists
Check that the claim exists
Parameters:
Read Functions info
arbitrationCost
Returns the cost of arbitration for a Kleros dispute.
Return values:
metaEvidenceURI
Returns the URI of the meta-evidence for a claim
Parameters:
Return values:
coverIdToClaimIds
Returns all claim IDs associated with a cover.
Parameters:
Return values:
claimInfo
Get a claim by its ID.
Parameters:
Return values:
claimInfos
Returns multiple claims by their IDs.
Parameters:
Return values:
claimsByCoverId
Returns all the claims associated with a cover.
Parameters:
Return values:
claimsByAccount
Returns all the claims of a user.
Parameters:
Return values:
getClaimEvidence
Returns the evidence submitted by claimant for a claim.
Parameters:
Return values:
getClaimCounterEvidence
Returns the counter-evidence submitted by prosecutor or Athena for a claim.
Parameters:
Return values:
Write Functions info
submitEvidenceForClaim
Adds evidence IPFS CIDs for a claim.
Parameters:
initiateClaim
Initiates a payment claim to Kleros by a cover holder.
Parameters:
disputeClaim
Allows a user to challenge a pending claim by creating a dispute in Kleros.
Parameters:
withdrawCompensation
Allows the claimant to withdraw the compensation after a dispute has been resolved in their favor or the challenge period has elapsed.
Intentionally public to prevent claimant from indefinitely blocking withdrawals from a pool by not executing the claims ruling.
Parameters:
Events info
ClaimCreated
DisputeResolved
MetaEvidence
To be emitted when meta-evidence is submitted.
Parameters:
Evidence
To be raised when evidence is submitted. Should point to the resource (evidences are not to be stored on chain due to gas considerations).
Parameters:
Dispute
To be emitted when a dispute is created to link the correct meta-evidence to the disputeID.
Parameters:
Last updated