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

Latest commit

 

History

History
191 lines (171 loc) · 5.71 KB

MockCxTokenStore.md

File metadata and controls

191 lines (171 loc) · 5.71 KB

MockCxTokenStore.sol

View Source: contracts/mock/cx-token/MockCxTokenStore.sol

↗ Extends: MockStore

MockCxTokenStore

Functions

initialize

function initialize() external nonpayable
returns(address)

Arguments

Name Type Description
Source Code
function initialize() external returns (address) {
    MockProtocol protocol = new MockProtocol();
    this.setAddress(ProtoUtilV1.CNS_CORE, address(protocol));

    return address(protocol);
  }

registerPolicyContract

function registerPolicyContract(address policy) external nonpayable

Arguments

Name Type Description
policy address
Source Code
function registerPolicyContract(address policy) external {
    super.setAddress(ProtoUtilV1.NS_CONTRACTS, ProtoUtilV1.CNS_COVER_POLICY, policy);
  }

Contracts