Skip to content

Latest commit

 

History

History
345 lines (300 loc) · 10.3 KB

IClaimsProcessor.md

File metadata and controls

345 lines (300 loc) · 10.3 KB

IClaimsProcessor.sol

View Source: contracts/interfaces/IClaimsProcessor.sol

↗ Extends: IMember ↘ Derived Contracts: Processor

IClaimsProcessor

Events

event Claimed(address  cxToken, bytes32 indexed coverKey, bytes32 indexed productKey, uint256  incidentDate, address indexed account, address  reporter, uint256  amount, uint256  reporterFee, uint256  platformFee, uint256  claimed);
event ClaimPeriodSet(bytes32 indexed coverKey, uint256  previous, uint256  current);
event BlacklistSet(bytes32 indexed coverKey, bytes32 indexed productKey, uint256 indexed incidentDate, address  account, bool  status);

Functions

claim

function claim(address cxToken, bytes32 coverKey, bytes32 productKey, uint256 incidentDate, uint256 amount) external nonpayable

Arguments

Name Type Description
cxToken address
coverKey bytes32
productKey bytes32
incidentDate uint256
amount uint256
Source Code
function claim(
    address cxToken,
    bytes32 coverKey,
    bytes32 productKey,
    uint256 incidentDate,
    uint256 amount
  ) external;

validate

function validate(address cxToken, bytes32 coverKey, bytes32 productKey, uint256 incidentDate, uint256 amount) external view
returns(bool)

Arguments

Name Type Description
cxToken address
coverKey bytes32
productKey bytes32
incidentDate uint256
amount uint256
Source Code
function validate(
    address cxToken,
    bytes32 coverKey,
    bytes32 productKey,
    uint256 incidentDate,
    uint256 amount
  ) external view returns (bool);

setClaimPeriod

function setClaimPeriod(bytes32 coverKey, uint256 value) external nonpayable

Arguments

Name Type Description
coverKey bytes32
value uint256
Source Code
function setClaimPeriod(bytes32 coverKey, uint256 value) external;

getClaimExpiryDate

function getClaimExpiryDate(bytes32 coverKey, bytes32 productKey) external view
returns(uint256)

Arguments

Name Type Description
coverKey bytes32
productKey bytes32
Source Code
function getClaimExpiryDate(bytes32 coverKey, bytes32 productKey) external view returns (uint256);

setBlacklist

function setBlacklist(bytes32 coverKey, bytes32 productKey, uint256 incidentDate, address[] accounts, bool[] statuses) external nonpayable

Arguments

Name Type Description
coverKey bytes32
productKey bytes32
incidentDate uint256
accounts address[]
statuses bool[]
Source Code
function setBlacklist(
    bytes32 coverKey,
    bytes32 productKey,
    uint256 incidentDate,
    address[] calldata accounts,
    bool[] calldata statuses
  ) external;

isBlacklisted

function isBlacklisted(bytes32 coverKey, bytes32 productKey, uint256 incidentDate, address account) external view
returns(bool)

Arguments

Name Type Description
coverKey bytes32
productKey bytes32
incidentDate uint256
account address
Source Code
function isBlacklisted(
    bytes32 coverKey,
    bytes32 productKey,
    uint256 incidentDate,
    address account
  ) external view returns (bool);

Contracts