Skip to content

Latest commit

 

History

History
355 lines (298 loc) · 9.37 KB

ICxToken.md

File metadata and controls

355 lines (298 loc) · 9.37 KB

ICxToken.sol

View Source: contracts/interfaces/ICxToken.sol

↗ Extends: IERC20 ↘ Derived Contracts: cxToken

ICxToken

Events

event CoverageStartSet(uint256  policyId, bytes32  coverKey, bytes32  productKey, address  account, uint256  effectiveFrom, uint256  amount);

Functions

mint

function mint(uint256 policyId, bytes32 coverKey, bytes32 productKey, address to, uint256 amount) external nonpayable

Arguments

Name Type Description
policyId uint256
coverKey bytes32
productKey bytes32
to address
amount uint256
Source Code
function mint(
    uint256 policyId,
    bytes32 coverKey,
    bytes32 productKey,
    address to,
    uint256 amount
  ) external;

burn

function burn(uint256 amount) external nonpayable

Arguments

Name Type Description
amount uint256
Source Code
function burn(uint256 amount) external;

createdOn

function createdOn() external view
returns(uint256)

Arguments

Name Type Description
Source Code
function createdOn() external view returns (uint256);

expiresOn

function expiresOn() external view
returns(uint256)

Arguments

Name Type Description
Source Code
function expiresOn() external view returns (uint256);

COVER_KEY

function COVER_KEY() external view
returns(bytes32)

Arguments

Name Type Description
Source Code
function COVER_KEY() external view returns (bytes32);

PRODUCT_KEY

function PRODUCT_KEY() external view
returns(bytes32)

Arguments

Name Type Description
Source Code
function PRODUCT_KEY() external view returns (bytes32);

getCoverageStartsFrom

function getCoverageStartsFrom(address account, uint256 date) external view
returns(uint256)

Arguments

Name Type Description
account address
date uint256
Source Code
function getCoverageStartsFrom(address account, uint256 date) external view returns (uint256);

getClaimablePolicyOf

function getClaimablePolicyOf(address account) external view
returns(uint256)

Arguments

Name Type Description
account address
Source Code
function getClaimablePolicyOf(address account) external view returns (uint256);

Contracts