Skip to content

Latest commit

 

History

History
457 lines (382 loc) · 12.8 KB

IReporter.md

File metadata and controls

457 lines (382 loc) · 12.8 KB

IReporter.sol

View Source: contracts/interfaces/IReporter.sol

↘ Derived Contracts: IGovernance, Reporter

IReporter

Events

event Reported(bytes32 indexed coverKey, bytes32 indexed productKey, address  reporter, uint256 indexed incidentDate, string  info, uint256  initialStake, uint256  resolutionTimestamp);
event Disputed(bytes32 indexed coverKey, bytes32 indexed productKey, address  reporter, uint256 indexed incidentDate, string  info, uint256  initialStake);
event ReportingBurnRateSet(uint256  previous, uint256  current);
event FirstReportingStakeSet(bytes32  coverKey, uint256  previous, uint256  current);
event ReporterCommissionSet(uint256  previous, uint256  current);

Functions

report

function report(bytes32 coverKey, bytes32 productKey, string info, uint256 stake) external nonpayable

Arguments

Name Type Description
coverKey bytes32
productKey bytes32
info string
stake uint256
Source Code
function report(
    bytes32 coverKey,
    bytes32 productKey,
    string calldata info,
    uint256 stake
  ) external;

dispute

function dispute(bytes32 coverKey, bytes32 productKey, uint256 incidentDate, string info, uint256 stake) external nonpayable

Arguments

Name Type Description
coverKey bytes32
productKey bytes32
incidentDate uint256
info string
stake uint256
Source Code
function dispute(
    bytes32 coverKey,
    bytes32 productKey,
    uint256 incidentDate,
    string calldata info,
    uint256 stake
  ) external;

getActiveIncidentDate

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

Arguments

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

getAttestation

function getAttestation(bytes32 coverKey, bytes32 productKey, address who, uint256 incidentDate) external view
returns(myStake uint256, totalStake uint256)

Arguments

Name Type Description
coverKey bytes32
productKey bytes32
who address
incidentDate uint256
Source Code
function getAttestation(
    bytes32 coverKey,
    bytes32 productKey,
    address who,
    uint256 incidentDate
  ) external view returns (uint256 myStake, uint256 totalStake);

getRefutation

function getRefutation(bytes32 coverKey, bytes32 productKey, address who, uint256 incidentDate) external view
returns(myStake uint256, totalStake uint256)

Arguments

Name Type Description
coverKey bytes32
productKey bytes32
who address
incidentDate uint256
Source Code
function getRefutation(
    bytes32 coverKey,
    bytes32 productKey,
    address who,
    uint256 incidentDate
  ) external view returns (uint256 myStake, uint256 totalStake);

getReporter

function getReporter(bytes32 coverKey, bytes32 productKey, uint256 incidentDate) external view
returns(address)

Arguments

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

getResolutionTimestamp

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

Arguments

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

setFirstReportingStake

function setFirstReportingStake(bytes32 coverKey, uint256 value) external nonpayable

Arguments

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

getFirstReportingStake

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

Arguments

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

setReportingBurnRate

function setReportingBurnRate(uint256 value) external nonpayable

Arguments

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

setReporterCommission

function setReporterCommission(uint256 value) external nonpayable

Arguments

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

Contracts