Claim Manager

Insurance Smart Contract

getClaimRules

function getClaimRules() external view returns (ClaimRules)

Get the claim rules.

NameTypeDescription

[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.

NameTypeDescription

cr

The claim rules.

ClaimRulesChanged

event ClaimRulesChanged(ClaimRules claimRules)

This event is emitted when the claim rules are changed.

NameTypeDescription

claimRules

The claim rules.

getClaimLength

function getClaimLength() external view returns (uint256)

Get the claim length.

NameTypeDescription

[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.

NameTypeDescription

claimData

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

NameTypeDescription

[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;
}

Last updated