Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Latest commit

 

History

History
250 lines (217 loc) · 7.04 KB

IClaimsProcessor.md

File metadata and controls

250 lines (217 loc) · 7.04 KB

IClaimsProcessor.sol

View Source: contracts/interfaces/IClaimsProcessor.sol

↗ Extends: IMember ↘ Derived Contracts: Processor

IClaimsProcessor

Events

event Claimed(address indexed cxToken, bytes32 indexed key, uint256  incidentDate, address indexed account, address  reporter, uint256  amount, uint256  reporterFee, uint256  platformFee, uint256  claimed);
event ClaimPeriodSet(uint256  previous, uint256  current);

Functions

claim

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

Arguments

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

validate

function validate(address cxToken, bytes32 key, uint256 incidentDate) external view
returns(bool)

Arguments

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

setClaimPeriod

function setClaimPeriod(uint256 value) external nonpayable

Arguments

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

getClaimExpiryDate

function getClaimExpiryDate(bytes32 key) external view
returns(uint256)

Arguments

Name Type Description
key bytes32
Source Code
function getClaimExpiryDate(bytes32 key) external view returns (uint256);

Contracts