all files / contracts/ ApplicationEntitySecond.sol

90% Statements 9/10
75% Branches 3/4
100% Functions 4/4
90% Lines 9/10
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53                                            10× 10×                             12×                
/*
 
 * @name        Application Entity Contract
 * @package     BlockBitsIO
 * @author      Micky Socaci <micky@nowlive.ro>
 
 Contains the main company Entity Contract code deployed and linked to the Gateway Interface.
 
    * used for testing upgrade proposals.
 
*/
 
pragma solidity ^0.4.17;
 
import "./Entity/UpgradeTestAsset.sol";
import "./ApplicationEntity.sol";
 
contract ApplicationEntitySecond is ApplicationEntity {
 
    UpgradeTestAsset public UpgradeTestAssetEntity;
 
    function addAssetUpgradeTestAsset(address _assetAddresses) external requireNotInitialised onlyDeployer {
        UpgradeTestAssetEntity = UpgradeTestAsset(_assetAddresses);
        assetInitialized("UpgradeTestAsset", _assetAddresses);
    }
 
    function initializeNewAssetToThisApplication(bytes32 _name) external onlyDeployer returns (bool) {
        address current = AssetCollection[_name];
        Eif(current != address(0x0)) {
            if(!current.call(bytes4(keccak256("setInitialOwnerAndName(bytes32)")), _name) ) {
                revert();
            }
        } else {
            revert();
        }
        EventAppEntityInitAssetsToThis( AssetCollectionNum );
 
        return true;
    }
 
    // UPGRADED
 
    // use this when extending "has changes"
    function extendedAnyAssetHasChanges() internal view returns (bool) {
        return false;
    }
 
    // use this when extending "asset state processor"
    function extendedAssetProcessor() internal {
 
    }
 
}