Skip to content

Latest commit

 

History

History
325 lines (280 loc) · 9.57 KB

IResolvable.md

File metadata and controls

325 lines (280 loc) · 9.57 KB

IResolvable.sol

View Source: contracts/interfaces/IResolvable.sol

↘ Derived Contracts: IResolution, Resolvable

IResolvable

Events

event Resolved(bytes32 indexed coverKey, bytes32 indexed productKey, uint256  incidentDate, uint256  resolutionDeadline, bool  decision, bool  emergency, uint256  claimBeginsFrom, uint256  claimExpiresAt);
event CooldownPeriodConfigured(bytes32 indexed coverKey, uint256  period);
event ReportClosed(bytes32 indexed coverKey, bytes32 indexed productKey, address indexed closedBy, uint256  incidentDate);

Functions

resolve

function resolve(bytes32 coverKey, bytes32 productKey, uint256 incidentDate) external nonpayable

Arguments

Name Type Description
coverKey bytes32
productKey bytes32
incidentDate uint256
Source Code
function resolve(
    bytes32 coverKey,
    bytes32 productKey,
    uint256 incidentDate
  ) external;

emergencyResolve

function emergencyResolve(bytes32 coverKey, bytes32 productKey, uint256 incidentDate, bool decision) external nonpayable

Arguments

Name Type Description
coverKey bytes32
productKey bytes32
incidentDate uint256
decision bool
Source Code
function emergencyResolve(
    bytes32 coverKey,
    bytes32 productKey,
    uint256 incidentDate,
    bool decision
  ) external;

closeReport

function closeReport(bytes32 coverKey, bytes32 productKey, uint256 incidentDate) external nonpayable

Arguments

Name Type Description
coverKey bytes32
productKey bytes32
incidentDate uint256
Source Code
function closeReport(
    bytes32 coverKey,
    bytes32 productKey,
    uint256 incidentDate
  ) external;

configureCoolDownPeriod

function configureCoolDownPeriod(bytes32 coverKey, uint256 period) external nonpayable

Arguments

Name Type Description
coverKey bytes32
period uint256
Source Code
function configureCoolDownPeriod(bytes32 coverKey, uint256 period) external;

getCoolDownPeriod

function getCoolDownPeriod(bytes32 coverKey) external view
returns(uint256)

Arguments

Name Type Description
coverKey bytes32
Source Code
function getCoolDownPeriod(bytes32 coverKey) external view returns (uint256);

getResolutionDeadline

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

Arguments

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

Contracts