Skip to content

Latest commit

 

History

History
307 lines (264 loc) · 8.16 KB

MockCxToken.md

File metadata and controls

307 lines (264 loc) · 8.16 KB

MockCxToken.sol

View Source: contracts/mock/base/MockCxToken.sol

↗ Extends: ERC20

MockCxToken

Functions

function () public nonpayable ERC20 

Arguments

Name Type Description
Source Code
constructor() ERC20("Test", "Test") {
    super._mint(msg.sender, 1 ether);
  }

burn

function burn(uint256 amount) external nonpayable

Arguments

Name Type Description
amount uint256
Source Code
function burn(uint256 amount) external {
    super._burn(msg.sender, amount);
  }

expiresOn

function expiresOn() external view
returns(uint256)

Arguments

Name Type Description
Source Code
function expiresOn() external view returns (uint256) {
    return block.timestamp + 30 days; // solhint-disable-line
  }

getClaimablePolicyOf

function getClaimablePolicyOf(address ) external pure
returns(uint256)

Arguments

Name Type Description
address
Source Code
function getClaimablePolicyOf(address) external pure returns (uint256) {
    return 1000 ether;
  }

COVER_KEY

function COVER_KEY() external pure
returns(bytes32)

Arguments

Name Type Description
Source Code
function COVER_KEY() external pure returns (bytes32) {
    // solhint-disable-previous-line
    return "test";
  }

PRODUCT_KEY

function PRODUCT_KEY() external pure
returns(bytes32)

Arguments

Name Type Description
Source Code
function PRODUCT_KEY() external pure returns (bytes32) {
    // solhint-disable-previous-line
    return "";
  }

Contracts