Skip to content

Latest commit

 

History

History
219 lines (198 loc) · 6.86 KB

MockCxTokenStore.md

File metadata and controls

219 lines (198 loc) · 6.86 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();
    FakePriceOracle oracle = new FakePriceOracle();

    this.setAddress(ProtoUtilV1.CNS_CORE, address(protocol));
    this.setAddress(ProtoUtilV1.CNS_NPM_PRICE_ORACLE, address(oracle));

    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