Claim Manager
Insurance Smart Contract
getClaimRules
function getClaimRules() external view returns (ClaimRules)
Get the claim rules.
Name
Type
Description
setClaimRules
function setClaimRules(ClaimRules _cr_) external
Set the claim rules.
Requirements:
msg.sender
- The caller must have the role ofSUPER_MANAGER_LEVEL
.
Events:
ClaimRulesChanged
Emitted when the claim rules are changed successfully.
Name
Type
Description
ClaimRulesChanged
event ClaimRulesChanged(ClaimRules claimRules)
This event is emitted when the claim rules are changed.
Name
Type
Description
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
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;
}
Last updated