Covest Labs Docs
  • Covest InSaaS Protocol
    • InSaaS Architecture
      • Basic Signed Quote Model
    • InSaaS Components
      • Governance
      • Risk Assessment
      • Claim Assessment
      • Validator Selection
      • Risk Carrier
    • InSaaS Smart Contracts
      • Policy States
      • Claim Case States
      • Operator
        • Pool Manager
        • Pricing Manager
        • Policy Manager
        • Claim Manager
      • Policyholder
        • Policy Manager
          • issuePolicy
          • redeemPolicy
          • Others
        • Claim Manager
          • submitClaim
          • Others
      • Claim Assessor
        • Claim Manager
      • Governance Board
        • Claim Manager
      • Contract Integration
  • Covest Warranty
    • Key Components
    • System Overview
    • Core Features
      • Contract Management
      • Warranty Certificate
      • Claim Management
      • Customer Portal
    • API Documentations
    • API Diagrams
      • Create Order Flow
      • Redeem Order Flow
Powered by GitBook
On this page
  • getClaimRules
  • setClaimRules
  • getClaimLength
  • createHashSubmitClaim
  1. Covest InSaaS Protocol
  2. InSaaS Smart Contracts
  3. Operator

Claim Manager

Insurance Smart Contract

getClaimRules

function getClaimRules() external view returns (ClaimRules)

Get the claim rules.

Name
Type
Description

[0]

The claim rules.

setClaimRules

function setClaimRules(ClaimRules _cr_) external

Set the claim rules.

Requirements:

  • msg.sender - The caller must have the role of SUPER_MANAGER_LEVEL.

Events:

  • ClaimRulesChanged Emitted when the claim rules are changed successfully.

Name
Type
Description

cr

The claim rules.

ClaimRulesChanged

event ClaimRulesChanged(ClaimRules claimRules)

This event is emitted when the claim rules are changed.

Name
Type
Description

claimRules

The claim rules.

getClaimLength

function getClaimLength() external view returns (uint256)

Get the claim length.

Name
Type
Description

[0]

uint256

The claim length.

createHashSubmitClaim

function createHashSubmitClaim(HashSubmitClaimParams _claimData_) external view returns (bytes32)

Create hash that verifier will sign and give it to user for submit claim policy.

Generates a hash of the parameters required for the verifier to sign the message and provide the signature to the user for the submit claim policy.

Name
Type
Description

claimData

The parameters of the submit claim policy are to be hashed.

Name
Type
Description

[0]

bytes32

The hash of the required parameters, which can then be used to generate a signature for the user to submit claim the policy.

HashSubmitClaimParams

struct HashSubmitClaimParams {
  string policyId;
  string documentHash;
  uint256 claimAmount;
  uint40 signatureValidUntil;
}
PreviousPolicy ManagerNextPolicyholder

Last updated 2 years ago

HashSubmitClaimParams
ClaimRules
ClaimRules
ClaimRules