Contract 0xb4007597dA3402a1E2B69c8E1c6DD753D01a8035

 
Txn Hash Method
Block
From
To
Value
0x00fa073341d84055359a6b4bdf1b52d8ab5d3ea5ddffd7c4f0012e6bbde36eb7Apply And Lock S...50207312018-02-03 2:39:251331 days 23 hrs agoBlockbits: Deployer IN  0xb4007597da3402a1e2b69c8e1c6dd753d01a80350 Ether0.0016967910
0x6f22f8ac9cc8dce521e6247ee1540dd54d70fa10f428ecddcb272e586ace6286Apply And Lock S...50207232018-02-03 2:37:331331 days 23 hrs agoBlockbits: Deployer IN  0xb4007597da3402a1e2b69c8e1c6dd753d01a80350 Ether0.00110
0x6a1b7a5acf504706528689af44483895ef4935c1abc0ab300ab9833a9c53096eSet Initial Appl...50154182018-02-02 5:04:381332 days 20 hrs agoBlockbits: Deployer IN  0xb4007597da3402a1e2b69c8e1c6dd753d01a80350 Ether0.0004449910
0x849ee61dd79ea8812f8463ae1df5936897f78e3be150f958e34f401073a02a690x6060604050152162018-02-02 4:18:331332 days 21 hrs agoBlockbits: Deployer IN  Create: FundingManager0 Ether0.0596546210
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x410cb9f4c685e86fbbc52740a09e23433e42c7f1c7ff8b9b52edc7f895b7cd8352566522018-03-15 0:19:501292 days 1 hr ago 0xb4007597da3402a1e2b69c8e1c6dd753d01a8035 0x0de557efb3f3f9e6b08799b2945da5d85e36f6bc0.1 Ether
0x410cb9f4c685e86fbbc52740a09e23433e42c7f1c7ff8b9b52edc7f895b7cd8352566522018-03-15 0:19:501292 days 1 hr ago 0xb4007597da3402a1e2b69c8e1c6dd753d01a8035  Contract Creation0 Ether
0x410cb9f4c685e86fbbc52740a09e23433e42c7f1c7ff8b9b52edc7f895b7cd8352566522018-03-15 0:19:501292 days 1 hr ago 0x58534c480ef96b6478940f9bbf6748da8f2ec935 0xb4007597da3402a1e2b69c8e1c6dd753d01a80350.1 Ether
0x5eb5cb5d7e7c281e8d5224f29af33b3ced79535c3cb648871717123034406ebf52277632018-03-10 2:17:351296 days 23 hrs ago 0xb4007597da3402a1e2b69c8e1c6dd753d01a8035 0x8e60fc8ca7d4308e0ade6e7cbebaf89d501286ff0.27 Ether
0x5eb5cb5d7e7c281e8d5224f29af33b3ced79535c3cb648871717123034406ebf52277632018-03-10 2:17:351296 days 23 hrs ago 0xb4007597da3402a1e2b69c8e1c6dd753d01a8035  Contract Creation0 Ether
0x5eb5cb5d7e7c281e8d5224f29af33b3ced79535c3cb648871717123034406ebf52277632018-03-10 2:17:351296 days 23 hrs ago 0x58534c480ef96b6478940f9bbf6748da8f2ec935 0xb4007597da3402a1e2b69c8e1c6dd753d01a80350.27 Ether
0x975b145f48a8ae431b55bbd139bdba9ae39f1714d3f4b0f7498176baa1f0fe1651503112018-02-24 22:30:111310 days 3 hrs ago 0xb4007597da3402a1e2b69c8e1c6dd753d01a8035 0xd8b80a72706e48c72842b610eafabdb5ad58f20b0.01 Ether
0x975b145f48a8ae431b55bbd139bdba9ae39f1714d3f4b0f7498176baa1f0fe1651503112018-02-24 22:30:111310 days 3 hrs ago 0xb4007597da3402a1e2b69c8e1c6dd753d01a8035  Contract Creation0 Ether
0x975b145f48a8ae431b55bbd139bdba9ae39f1714d3f4b0f7498176baa1f0fe1651503112018-02-24 22:30:111310 days 3 hrs ago 0x58534c480ef96b6478940f9bbf6748da8f2ec935 0xb4007597da3402a1e2b69c8e1c6dd753d01a80350.01 Ether
0xe63c3806d0bc00b515ba23759146639b2cf1e7ef938c9a1f79ceb59d30dd3e1a50550292018-02-08 20:49:461326 days 5 hrs ago 0xb4007597da3402a1e2b69c8e1c6dd753d01a8035 0x542210a423c6919d5ff9978e7963fb652173a5ed2 Ether
0xe63c3806d0bc00b515ba23759146639b2cf1e7ef938c9a1f79ceb59d30dd3e1a50550292018-02-08 20:49:461326 days 5 hrs ago 0xb4007597da3402a1e2b69c8e1c6dd753d01a8035  Contract Creation0 Ether
0xe63c3806d0bc00b515ba23759146639b2cf1e7ef938c9a1f79ceb59d30dd3e1a50550292018-02-08 20:49:461326 days 5 hrs ago 0x58534c480ef96b6478940f9bbf6748da8f2ec935 0xb4007597da3402a1e2b69c8e1c6dd753d01a80352 Ether
0xed94657a4549775f33059c4e4a558d2dae4c2ce8a5f3d2e03b569345032edca950425192018-02-06 18:16:111328 days 7 hrs ago 0xb4007597da3402a1e2b69c8e1c6dd753d01a8035 0x5bb6a917b0ce3c206898b07061861f69bfe97e060.2 Ether
0xed94657a4549775f33059c4e4a558d2dae4c2ce8a5f3d2e03b569345032edca950425192018-02-06 18:16:111328 days 7 hrs ago 0xb4007597da3402a1e2b69c8e1c6dd753d01a8035  Contract Creation0 Ether
0xed94657a4549775f33059c4e4a558d2dae4c2ce8a5f3d2e03b569345032edca950425192018-02-06 18:16:111328 days 7 hrs ago 0x58534c480ef96b6478940f9bbf6748da8f2ec935 0xb4007597da3402a1e2b69c8e1c6dd753d01a80350.2 Ether
0xac905a0312dcf9c5da3429310cb8bd8b82a1a70cda98ce4b4c8c53ec2deb6cd650376912018-02-05 22:45:241329 days 3 hrs ago 0xb4007597da3402a1e2b69c8e1c6dd753d01a8035 0xa018c2e0fcdc3e787c83afddc60d91a2b3b099b01.5 Ether
0xac905a0312dcf9c5da3429310cb8bd8b82a1a70cda98ce4b4c8c53ec2deb6cd650376912018-02-05 22:45:241329 days 3 hrs ago 0xb4007597da3402a1e2b69c8e1c6dd753d01a8035  Contract Creation0 Ether
0xac905a0312dcf9c5da3429310cb8bd8b82a1a70cda98ce4b4c8c53ec2deb6cd650376912018-02-05 22:45:241329 days 3 hrs ago 0x58534c480ef96b6478940f9bbf6748da8f2ec935 0xb4007597da3402a1e2b69c8e1c6dd753d01a80351.5 Ether
0xc7011e1c2c99f46a0f57d8e66fe46d1a4bb224982c4603f1bafa9398c68efb7650350502018-02-05 11:58:341329 days 14 hrs ago 0xb4007597da3402a1e2b69c8e1c6dd753d01a8035 0x3fe471711df36695c8b7c4df5385542cbf828a2a0.25 Ether
0xc7011e1c2c99f46a0f57d8e66fe46d1a4bb224982c4603f1bafa9398c68efb7650350502018-02-05 11:58:341329 days 14 hrs ago 0x58534c480ef96b6478940f9bbf6748da8f2ec935 0xb4007597da3402a1e2b69c8e1c6dd753d01a80350.25 Ether
0xe66a6c4fce8dccc2e76ec765220c4e2460038c050c27ea06033f6382b584519e50350432018-02-05 11:56:271329 days 14 hrs ago 0xb4007597da3402a1e2b69c8e1c6dd753d01a8035 0x3fe471711df36695c8b7c4df5385542cbf828a2a0.25 Ether
0xe66a6c4fce8dccc2e76ec765220c4e2460038c050c27ea06033f6382b584519e50350432018-02-05 11:56:271329 days 14 hrs ago 0x58534c480ef96b6478940f9bbf6748da8f2ec935 0xb4007597da3402a1e2b69c8e1c6dd753d01a80350.25 Ether
0x28bd397ce5c96bb3850e45060877675a894ab74c326279ed2342d4f94d0635ee50348752018-02-05 11:16:171329 days 14 hrs ago 0xb4007597da3402a1e2b69c8e1c6dd753d01a8035 0x3fe471711df36695c8b7c4df5385542cbf828a2a0.1 Ether
0x28bd397ce5c96bb3850e45060877675a894ab74c326279ed2342d4f94d0635ee50348752018-02-05 11:16:171329 days 14 hrs ago 0x58534c480ef96b6478940f9bbf6748da8f2ec935 0xb4007597da3402a1e2b69c8e1c6dd753d01a80350.1 Ether
0x4974d384e7748749ebb942cf8a143af732b8c897268a7daff24dfb2267e3643c50343902018-02-05 9:20:451329 days 16 hrs ago 0xb4007597da3402a1e2b69c8e1c6dd753d01a8035 0x3fe471711df36695c8b7c4df5385542cbf828a2a0.1 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FundingManager

Compiler Version
v0.4.17+commit.bdeb9e52

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-02-02
*/

pragma solidity ^0.4.17;

/*

 * source       https://github.com/blockbitsio/

 * @name        Application Entity Generic Contract
 * @package     BlockBitsIO
 * @author      Micky Socaci <[email protected]>

    Used for the ABI interface when assets need to call Application Entity.

    This is required, otherwise we end up loading the assets themselves when we load the ApplicationEntity contract
    and end up in a loop
*/



contract ApplicationEntityABI {

    address public ProposalsEntity;
    address public FundingEntity;
    address public MilestonesEntity;
    address public MeetingsEntity;
    address public BountyManagerEntity;
    address public TokenManagerEntity;
    address public ListingContractEntity;
    address public FundingManagerEntity;
    address public NewsContractEntity;

    bool public _initialized = false;
    bool public _locked = false;
    uint8 public CurrentEntityState;
    uint8 public AssetCollectionNum;
    address public GatewayInterfaceAddress;
    address public deployerAddress;
    address testAddressAllowUpgradeFrom;
    mapping (bytes32 => uint8) public EntityStates;
    mapping (bytes32 => address) public AssetCollection;
    mapping (uint8 => bytes32) public AssetCollectionIdToName;
    mapping (bytes32 => uint256) public BylawsUint256;
    mapping (bytes32 => bytes32) public BylawsBytes32;

    function ApplicationEntity() public;
    function getEntityState(bytes32 name) public view returns (uint8);
    function linkToGateway( address _GatewayInterfaceAddress, bytes32 _sourceCodeUrl ) external;
    function setUpgradeState(uint8 state) public ;
    function addAssetProposals(address _assetAddresses) external;
    function addAssetFunding(address _assetAddresses) external;
    function addAssetMilestones(address _assetAddresses) external;
    function addAssetMeetings(address _assetAddresses) external;
    function addAssetBountyManager(address _assetAddresses) external;
    function addAssetTokenManager(address _assetAddresses) external;
    function addAssetFundingManager(address _assetAddresses) external;
    function addAssetListingContract(address _assetAddresses) external;
    function addAssetNewsContract(address _assetAddresses) external;
    function getAssetAddressByName(bytes32 _name) public view returns (address);
    function setBylawUint256(bytes32 name, uint256 value) public;
    function getBylawUint256(bytes32 name) public view returns (uint256);
    function setBylawBytes32(bytes32 name, bytes32 value) public;
    function getBylawBytes32(bytes32 name) public view returns (bytes32);
    function initialize() external returns (bool);
    function getParentAddress() external view returns(address);
    function createCodeUpgradeProposal( address _newAddress, bytes32 _sourceCodeUrl ) external returns (uint256);
    function acceptCodeUpgradeProposal(address _newAddress) external;
    function initializeAssetsToThisApplication() external returns (bool);
    function transferAssetsToNewApplication(address _newAddress) external returns (bool);
    function lock() external returns (bool);
    function canInitiateCodeUpgrade(address _sender) public view returns(bool);
    function doStateChanges() public;
    function hasRequiredStateChanges() public view returns (bool);
    function anyAssetHasChanges() public view returns (bool);
    function extendedAnyAssetHasChanges() internal view returns (bool);
    function getRequiredStateChanges() public view returns (uint8, uint8);
    function getTimestamp() view public returns (uint256);

}

/*

 * source       https://github.com/blockbitsio/

 * @name        Application Asset Contract
 * @package     BlockBitsIO
 * @author      Micky Socaci <[email protected]>

 Any contract inheriting this will be usable as an Asset in the Application Entity

*/




contract ApplicationAsset {

    event EventAppAssetOwnerSet(bytes32 indexed _name, address indexed _owner);
    event EventRunBeforeInit(bytes32 indexed _name);
    event EventRunBeforeApplyingSettings(bytes32 indexed _name);


    mapping (bytes32 => uint8) public EntityStates;
    mapping (bytes32 => uint8) public RecordStates;
    uint8 public CurrentEntityState;

    event EventEntityProcessor(bytes32 indexed _assetName, uint8 indexed _current, uint8 indexed _required);
    event DebugEntityRequiredChanges( bytes32 _assetName, uint8 indexed _current, uint8 indexed _required );

    bytes32 public assetName;

    /* Asset records */
    uint8 public RecordNum = 0;

    /* Asset initialised or not */
    bool public _initialized = false;

    /* Asset settings present or not */
    bool public _settingsApplied = false;

    /* Asset owner ( ApplicationEntity address ) */
    address public owner = address(0x0) ;
    address public deployerAddress;

    function ApplicationAsset() public {
        deployerAddress = msg.sender;
    }

    function setInitialApplicationAddress(address _ownerAddress) public onlyDeployer requireNotInitialised {
        owner = _ownerAddress;
    }

    function setInitialOwnerAndName(bytes32 _name) external
        requireNotInitialised
        onlyOwner
        returns (bool)
    {
        // init states
        setAssetStates();
        assetName = _name;
        // set initial state
        CurrentEntityState = getEntityState("NEW");
        runBeforeInitialization();
        _initialized = true;
        EventAppAssetOwnerSet(_name, owner);
        return true;
    }

    function setAssetStates() internal {
        // Asset States
        EntityStates["__IGNORED__"]     = 0;
        EntityStates["NEW"]             = 1;
        // Funding Stage States
        RecordStates["__IGNORED__"]     = 0;
    }

    function getRecordState(bytes32 name) public view returns (uint8) {
        return RecordStates[name];
    }

    function getEntityState(bytes32 name) public view returns (uint8) {
        return EntityStates[name];
    }

    function runBeforeInitialization() internal requireNotInitialised  {
        EventRunBeforeInit(assetName);
    }

    function applyAndLockSettings()
        public
        onlyDeployer
        requireInitialised
        requireSettingsNotApplied
        returns(bool)
    {
        runBeforeApplyingSettings();
        _settingsApplied = true;
        return true;
    }

    function runBeforeApplyingSettings() internal requireInitialised requireSettingsNotApplied  {
        EventRunBeforeApplyingSettings(assetName);
    }

    function transferToNewOwner(address _newOwner) public requireInitialised onlyOwner returns (bool) {
        require(owner != address(0x0) && _newOwner != address(0x0));
        owner = _newOwner;
        EventAppAssetOwnerSet(assetName, owner);
        return true;
    }

    function getApplicationAssetAddressByName(bytes32 _name)
        public
        view
        returns(address)
    {
        address asset = ApplicationEntityABI(owner).getAssetAddressByName(_name);
        if( asset != address(0x0) ) {
            return asset;
        } else {
            revert();
        }
    }

    function getApplicationState() public view returns (uint8) {
        return ApplicationEntityABI(owner).CurrentEntityState();
    }

    function getApplicationEntityState(bytes32 name) public view returns (uint8) {
        return ApplicationEntityABI(owner).getEntityState(name);
    }

    function getAppBylawUint256(bytes32 name) public view requireInitialised returns (uint256) {
        ApplicationEntityABI CurrentApp = ApplicationEntityABI(owner);
        return CurrentApp.getBylawUint256(name);
    }

    function getAppBylawBytes32(bytes32 name) public view requireInitialised returns (bytes32) {
        ApplicationEntityABI CurrentApp = ApplicationEntityABI(owner);
        return CurrentApp.getBylawBytes32(name);
    }

    modifier onlyOwner() {
        require(msg.sender == owner);
        _;
    }

    modifier onlyApplicationEntity() {
        require(msg.sender == owner);
        _;
    }

    modifier requireInitialised() {
        require(_initialized == true);
        _;
    }

    modifier requireNotInitialised() {
        require(_initialized == false);
        _;
    }

    modifier requireSettingsApplied() {
        require(_settingsApplied == true);
        _;
    }

    modifier requireSettingsNotApplied() {
        require(_settingsApplied == false);
        _;
    }

    modifier onlyDeployer() {
        require(msg.sender == deployerAddress);
        _;
    }

    modifier onlyAsset(bytes32 _name) {
        address AssetAddress = getApplicationAssetAddressByName(_name);
        require( msg.sender == AssetAddress);
        _;
    }

    function getTimestamp() view public returns (uint256) {
        return now;
    }


}

/*

 * source       https://github.com/blockbitsio/

 * @name        Application Asset Contract ABI
 * @package     BlockBitsIO
 * @author      Micky Socaci <[email protected]>

 Any contract inheriting this will be usable as an Asset in the Application Entity

*/



contract ABIApplicationAsset {

    bytes32 public assetName;
    uint8 public CurrentEntityState;
    uint8 public RecordNum;
    bool public _initialized;
    bool public _settingsApplied;
    address public owner;
    address public deployerAddress;
    mapping (bytes32 => uint8) public EntityStates;
    mapping (bytes32 => uint8) public RecordStates;

    function setInitialApplicationAddress(address _ownerAddress) public;
    function setInitialOwnerAndName(bytes32 _name) external returns (bool);
    function getRecordState(bytes32 name) public view returns (uint8);
    function getEntityState(bytes32 name) public view returns (uint8);
    function applyAndLockSettings() public returns(bool);
    function transferToNewOwner(address _newOwner) public returns (bool);
    function getApplicationAssetAddressByName(bytes32 _name) public returns(address);
    function getApplicationState() public view returns (uint8);
    function getApplicationEntityState(bytes32 name) public view returns (uint8);
    function getAppBylawUint256(bytes32 name) public view returns (uint256);
    function getAppBylawBytes32(bytes32 name) public view returns (bytes32);
    function getTimestamp() view public returns (uint256);


}

/*

 * source       https://github.com/blockbitsio/

 * @name        Token Manager Contract
 * @package     BlockBitsIO
 * @author      Micky Socaci <[email protected]>

*/





contract ABITokenManager is ABIApplicationAsset {

    address public TokenSCADAEntity;
    address public TokenEntity;
    address public MarketingMethodAddress;
    bool OwnerTokenBalancesReleased = false;

    function addSettings(address _scadaAddress, address _tokenAddress, address _marketing ) public;
    function getTokenSCADARequiresHardCap() public view returns (bool);
    function mint(address _to, uint256 _amount) public returns (bool);
    function finishMinting() public returns (bool);
    function mintForMarketingPool(address _to, uint256 _amount) external returns (bool);
    function ReleaseOwnersLockedTokens(address _multiSigOutputAddress) public returns (bool);

}

/*

 * source       https://github.com/blockbitsio/

 * @name        Proposals Contract
 * @package     BlockBitsIO
 * @author      Micky Socaci <[email protected]>

 Contains the Proposals Contract code deployed and linked to the Application Entity

*/





contract ABIProposals is ABIApplicationAsset {

    address public Application;
    address public ListingContractEntity;
    address public FundingEntity;
    address public FundingManagerEntity;
    address public TokenManagerEntity;
    address public TokenEntity;
    address public MilestonesEntity;

    struct ProposalRecord {
        address creator;
        bytes32 name;
        uint8 actionType;
        uint8 state;
        bytes32 hash;                       // action name + args hash
        address addr;
        bytes32 sourceCodeUrl;
        uint256 extra;
        uint256 time_start;
        uint256 time_end;
        uint256 index;
    }

    struct VoteStruct {
        address voter;
        uint256 time;
        bool    vote;
        uint256 power;
        bool    annulled;
        uint256 index;
    }

    struct ResultRecord {
        uint256 totalAvailable;
        uint256 requiredForResult;
        uint256 totalSoFar;
        uint256 yes;
        uint256 no;
        bool    requiresCounting;
    }

    uint8 public ActiveProposalNum;
    uint256 public VoteCountPerProcess;
    bool public EmergencyFundingReleaseApproved;

    mapping (bytes32 => uint8) public ActionTypes;
    mapping (uint8 => uint256) public ActiveProposalIds;
    mapping (uint256 => bool) public ExpiredProposalIds;
    mapping (uint256 => ProposalRecord) public ProposalsById;
    mapping (bytes32 => uint256) public ProposalIdByHash;
    mapping (uint256 => mapping (uint256 => VoteStruct) ) public VotesByProposalId;
    mapping (uint256 => mapping (address => VoteStruct) ) public VotesByCaster;
    mapping (uint256 => uint256) public VotesNumByProposalId;
    mapping (uint256 => ResultRecord ) public ResultsByProposalId;
    mapping (uint256 => uint256) public lastProcessedVoteIdByProposal;
    mapping (uint256 => uint256) public ProcessedVotesByProposal;
    mapping (uint256 => uint256) public VoteCountAtProcessingStartByProposal;

    function getRecordState(bytes32 name) public view returns (uint8);
    function getActionType(bytes32 name) public view returns (uint8);
    function getProposalState(uint256 _proposalId) public view returns (uint8);
    function getBylawsProposalVotingDuration() public view returns (uint256);
    function getBylawsMilestoneMinPostponing() public view returns (uint256);
    function getBylawsMilestoneMaxPostponing() public view returns (uint256);
    function getHash(uint8 actionType, bytes32 arg1, bytes32 arg2) public pure returns ( bytes32 );
    function process() public;
    function hasRequiredStateChanges() public view returns (bool);
    function getRequiredStateChanges() public view returns (uint8);
    function addCodeUpgradeProposal(address _addr, bytes32 _sourceCodeUrl) external returns (uint256);
    function createMilestoneAcceptanceProposal() external returns (uint256);
    function createMilestonePostponingProposal(uint256 _duration) external returns (uint256);
    function getCurrentMilestonePostponingProposalDuration() public view returns (uint256);
    function getCurrentMilestoneProposalStatusForType(uint8 _actionType ) public view returns (uint8);
    function createEmergencyFundReleaseProposal() external returns (uint256);
    function createDelistingProposal(uint256 _projectId) external returns (uint256);
    function RegisterVote(uint256 _proposalId, bool _myVote) public;
    function hasPreviousVote(uint256 _proposalId, address _voter) public view returns (bool);
    function getTotalTokenVotingPower(address _voter) public view returns ( uint256 );
    function getVotingPower(uint256 _proposalId, address _voter) public view returns ( uint256 );
    function setVoteCountPerProcess(uint256 _perProcess) external;
    function ProcessVoteTotals(uint256 _proposalId, uint256 length) public;
    function canEndVoting(uint256 _proposalId) public view returns (bool);
    function getProposalType(uint256 _proposalId) public view returns (uint8);
    function expiryChangesState(uint256 _proposalId) public view returns (bool);
    function needsProcessing(uint256 _proposalId) public view returns (bool);
    function getMyVoteForCurrentMilestoneRelease(address _voter) public view returns (bool);
    function getHasVoteForCurrentMilestoneRelease(address _voter) public view returns (bool);
    function getMyVote(uint256 _proposalId, address _voter) public view returns (bool);

}

/*

 * source       https://github.com/blockbitsio/

 * @name        Milestones Contract
 * @package     BlockBitsIO
 * @author      Micky Socaci <[email protected]>

 Contains the Milestones Contract code deployed and linked to the Application Entity

*/





contract ABIMilestones is ABIApplicationAsset {

    struct Record {
        bytes32 name;
        string description;                     // will change to hash pointer ( external storage )
        uint8 state;
        uint256 duration;
        uint256 time_start;                     // start at unixtimestamp
        uint256 last_state_change_time;         // time of last state change
        uint256 time_end;                       // estimated end time >> can be increased by proposal
        uint256 time_ended;                     // actual end time
        uint256 meeting_time;
        uint8 funding_percentage;
        uint8 index;
    }

    uint8 public currentRecord;
    uint256 public MilestoneCashBackTime = 0;
    mapping (uint8 => Record) public Collection;
    mapping (bytes32 => bool) public MilestonePostponingHash;
    mapping (bytes32 => uint256) public ProposalIdByHash;

    function getBylawsProjectDevelopmentStart() public view returns (uint256);
    function getBylawsMinTimeInTheFutureForMeetingCreation() public view returns (uint256);
    function getBylawsCashBackVoteRejectedDuration() public view returns (uint256);
    function addRecord( bytes32 _name, string _description, uint256 _duration, uint8 _perc ) public;
    function getMilestoneFundingPercentage(uint8 recordId) public view returns (uint8);
    function doStateChanges() public;
    function getRecordStateRequiredChanges() public view returns (uint8);
    function hasRequiredStateChanges() public view returns (bool);
    function afterVoteNoCashBackTime() public view returns ( bool );
    function getHash(uint8 actionType, bytes32 arg1, bytes32 arg2) public pure returns ( bytes32 );
    function getCurrentHash() public view returns ( bytes32 );
    function getCurrentProposalId() internal view returns ( uint256 );
    function setCurrentMilestoneMeetingTime(uint256 _meeting_time) public;
    function isRecordUpdateAllowed(uint8 _new_state ) public view returns (bool);
    function getRequiredStateChanges() public view returns (uint8, uint8, uint8);
    function ApplicationIsInDevelopment() public view returns(bool);
    function MeetingTimeSetFailure() public view returns (bool);

}

/*

 * source       https://github.com/blockbitsio/

 * @name        Funding Contract ABI
 * @package     BlockBitsIO
 * @author      Micky Socaci <[email protected]>

 Contains the Funding Contract code deployed and linked to the Application Entity


    !!! Links directly to Milestones

*/





contract ABIFunding is ABIApplicationAsset {

    address public multiSigOutputAddress;
    address public DirectInput;
    address public MilestoneInput;
    address public TokenManagerEntity;
    address public FundingManagerEntity;

    struct FundingStage {
        bytes32 name;
        uint8   state;
        uint256 time_start;
        uint256 time_end;
        uint256 amount_cap_soft;            // 0 = not enforced
        uint256 amount_cap_hard;            // 0 = not enforced
        uint256 amount_raised;              // 0 = not enforced
        // funding method settings
        uint256 minimum_entry;
        uint8   methods;                    // FundingMethodIds
        // token settings
        uint256 fixed_tokens;
        uint8   price_addition_percentage;  //
        uint8   token_share_percentage;
        uint8   index;
    }

    mapping (uint8 => FundingStage) public Collection;
    uint8 public FundingStageNum;
    uint8 public currentFundingStage;
    uint256 public AmountRaised;
    uint256 public MilestoneAmountRaised;
    uint256 public GlobalAmountCapSoft;
    uint256 public GlobalAmountCapHard;
    uint8 public TokenSellPercentage;
    uint256 public Funding_Setting_funding_time_start;
    uint256 public Funding_Setting_funding_time_end;
    uint256 public Funding_Setting_cashback_time_start;
    uint256 public Funding_Setting_cashback_time_end;
    uint256 public Funding_Setting_cashback_before_start_wait_duration;
    uint256 public Funding_Setting_cashback_duration;


    function addFundingStage(
        bytes32 _name,
        uint256 _time_start,
        uint256 _time_end,
        uint256 _amount_cap_soft,
        uint256 _amount_cap_hard,   // required > 0
        uint8   _methods,
        uint256 _minimum_entry,
        uint256 _fixed_tokens,
        uint8   _price_addition_percentage,
        uint8   _token_share_percentage
    )
    public;

    function addSettings(address _outputAddress, uint256 soft_cap, uint256 hard_cap, uint8 sale_percentage, address _direct, address _milestone ) public;
    function getStageAmount(uint8 StageId) public view returns ( uint256 );
    function allowedPaymentMethod(uint8 _payment_method) public pure returns (bool);
    function receivePayment(address _sender, uint8 _payment_method) payable public returns(bool);
    function canAcceptPayment(uint256 _amount) public view returns (bool);
    function getValueOverCurrentCap(uint256 _amount) public view returns (uint256);
    function isFundingStageUpdateAllowed(uint8 _new_state ) public view returns (bool);
    function getRecordStateRequiredChanges() public view returns (uint8);
    function doStateChanges() public;
    function hasRequiredStateChanges() public view returns (bool);
    function getRequiredStateChanges() public view returns (uint8, uint8, uint8);

}

/*

 * source       https://github.com/blockbitsio/

 * @name        Token Contract
 * @package     BlockBitsIO
 * @author      Micky Socaci <[email protected]>

 Zeppelin ERC20 Standard Token

*/



contract ABIToken {

    string public  symbol;
    string public  name;
    uint8 public   decimals;
    uint256 public totalSupply;
    string public  version;
    mapping (address => uint256) public balances;
    mapping (address => mapping (address => uint256)) allowed;
    address public manager;
    address public deployer;
    bool public mintingFinished = false;
    bool public initialized = false;

    function transfer(address _to, uint256 _value) public returns (bool);
    function balanceOf(address _owner) public view returns (uint256 balance);
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool);
    function approve(address _spender, uint256 _value) public returns (bool);
    function allowance(address _owner, address _spender) public view returns (uint256 remaining);
    function increaseApproval(address _spender, uint _addedValue) public returns (bool success);
    function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool success);
    function mint(address _to, uint256 _amount) public returns (bool);
    function finishMinting() public returns (bool);

    event Transfer(address indexed from, address indexed to, uint256 indexed value);
    event Approval(address indexed owner, address indexed spender, uint256 indexed value);
    event Mint(address indexed to, uint256 amount);
    event MintFinished();
}

/*

 * source       https://github.com/blockbitsio/

 * @name        Token Stake Calculation And Distribution Algorithm - Type 3 - Sell a variable amount of tokens for a fixed price
 * @package     BlockBitsIO
 * @author      Micky Socaci <[email protected]>


    Inputs:

    Defined number of tokens per wei ( X Tokens = 1 wei )
    Received amount of ETH
    Generates:

    Total Supply of tokens available in Funding Phase respectively Project
    Observations:

    Will sell the whole supply of Tokens available to Current Funding Phase
    Use cases:

    Any Funding Phase where you want the first Funding Phase to determine the token supply of the whole Project

*/




contract ABITokenSCADAVariable {
    bool public SCADA_requires_hard_cap = true;
    bool public initialized;
    address public deployerAddress;
    function addSettings(address _fundingContract) public;
    function requiresHardCap() public view returns (bool);
    function getTokensForValueInCurrentStage(uint256 _value) public view returns (uint256);
    function getTokensForValueInStage(uint8 _stage, uint256 _value) public view returns (uint256);
    function getBoughtTokens( address _vaultAddress, bool _direct ) public view returns (uint256);
}

/*

 * source       https://github.com/blockbitsio/

 * @name        Funding Contract ABI
 * @package     BlockBitsIO
 * @author      Micky Socaci <[email protected]>

 Contains the Funding Contract code deployed and linked to the Application Entity

*/





contract ABIFundingManager is ABIApplicationAsset {

    bool public fundingProcessed;
    bool FundingPoolBalancesAllocated;
    uint8 public VaultCountPerProcess;
    uint256 public lastProcessedVaultId;
    uint256 public vaultNum;
    uint256 public LockedVotingTokens;
    bytes32 public currentTask;
    mapping (bytes32 => bool) public taskByHash;
    mapping  (address => address) public vaultList;
    mapping  (uint256 => address) public vaultById;

    function receivePayment(address _sender, uint8 _payment_method, uint8 _funding_stage) payable public returns(bool);
    function getMyVaultAddress(address _sender) public view returns (address);
    function setVaultCountPerProcess(uint8 _perProcess) external;
    function getHash(bytes32 actionType, bytes32 arg1) public pure returns ( bytes32 );
    function getCurrentMilestoneProcessed() public view returns (bool);
    function processFundingFailedFinished() public view returns (bool);
    function processFundingSuccessfulFinished() public view returns (bool);
    function getCurrentMilestoneIdHash() internal view returns (bytes32);
    function processMilestoneFinished() public view returns (bool);
    function processEmergencyFundReleaseFinished() public view returns (bool);
    function getAfterTransferLockedTokenBalances(address vaultAddress, bool excludeCurrent) public view returns (uint256);
    function VaultRequestedUpdateForLockedVotingTokens(address owner) public;
    function doStateChanges() public;
    function hasRequiredStateChanges() public view returns (bool);
    function getRequiredStateChanges() public view returns (uint8, uint8);
    function ApplicationInFundingOrDevelopment() public view returns(bool);

}

/*

 * source       https://github.com/blockbitsio/

 * @name        Funding Vault
 * @package     BlockBitsIO
 * @author      Micky Socaci <[email protected]>

    each purchase creates a separate funding vault contract
*/













contract FundingVault {

    /* Asset initialised or not */
    bool public _initialized = false;

    /*
        Addresses:
        vaultOwner - the address of the wallet that stores purchases in this vault ( investor address )
        outputAddress - address where funds go upon successful funding or successful milestone release
        managerAddress - address of the "FundingManager"
    */
    address public vaultOwner ;
    address public outputAddress;
    address public managerAddress;

    /*
        Lock and BlackHole settings
    */

    bool public allFundingProcessed = false;
    bool public DirectFundingProcessed = false;

    /*
        Assets
    */
    // ApplicationEntityABI public ApplicationEntity;
    ABIFunding FundingEntity;
    ABIFundingManager FundingManagerEntity;
    ABIMilestones MilestonesEntity;
    ABIProposals ProposalsEntity;
    ABITokenSCADAVariable TokenSCADAEntity;
    ABIToken TokenEntity ;

    /*
        Globals
    */
    uint256 public amount_direct = 0;
    uint256 public amount_milestone = 0;

    // bylaws
    bool public emergencyFundReleased = false;
    uint8 emergencyFundPercentage = 0;
    uint256 BylawsCashBackOwnerMiaDuration;
    uint256 BylawsCashBackVoteRejectedDuration;
    uint256 BylawsProposalVotingDuration;

    struct PurchaseStruct {
        uint256 unix_time;
        uint8 payment_method;
        uint256 amount;
        uint8 funding_stage;
        uint16 index;
    }

    mapping(uint16 => PurchaseStruct) public purchaseRecords;
    uint16 public purchaseRecordsNum;

    event EventPaymentReceived(uint8 indexed _payment_method, uint256 indexed _amount, uint16 indexed _index );
    event VaultInitialized(address indexed _owner);

    function initialize(
        address _owner,
        address _output,
        address _fundingAddress,
        address _milestoneAddress,
        address _proposalsAddress
    )
        public
        requireNotInitialised
        returns(bool)
    {
        VaultInitialized(_owner);

        outputAddress = _output;
        vaultOwner = _owner;

        // whomever creates this contract is the manager.
        managerAddress = msg.sender;

        // assets
        FundingEntity = ABIFunding(_fundingAddress);
        FundingManagerEntity = ABIFundingManager(managerAddress);
        MilestonesEntity = ABIMilestones(_milestoneAddress);
        ProposalsEntity = ABIProposals(_proposalsAddress);

        address TokenManagerAddress = FundingEntity.getApplicationAssetAddressByName("TokenManager");
        ABITokenManager TokenManagerEntity = ABITokenManager(TokenManagerAddress);

        address TokenAddress = TokenManagerEntity.TokenEntity();
        TokenEntity = ABIToken(TokenAddress);

        address TokenSCADAAddress = TokenManagerEntity.TokenSCADAEntity();
        TokenSCADAEntity = ABITokenSCADAVariable(TokenSCADAAddress);

        // set Emergency Fund Percentage if available.
        address ApplicationEntityAddress = TokenManagerEntity.owner();
        ApplicationEntityABI ApplicationEntity = ApplicationEntityABI(ApplicationEntityAddress);

        // get Application Bylaws
        emergencyFundPercentage             = uint8( ApplicationEntity.getBylawUint256("emergency_fund_percentage") );
        BylawsCashBackOwnerMiaDuration      = ApplicationEntity.getBylawUint256("cashback_owner_mia_dur") ;
        BylawsCashBackVoteRejectedDuration  = ApplicationEntity.getBylawUint256("cashback_investor_no") ;
        BylawsProposalVotingDuration        = ApplicationEntity.getBylawUint256("proposal_voting_duration") ;

        // init
        _initialized = true;
        return true;
    }



    /*
        The funding contract decides if a vault should receive payments or not, since it's the one that creates them,
        no point in creating one if you can't accept payments.
    */

    mapping (uint8 => uint256) public stageAmounts;
    mapping (uint8 => uint256) public stageAmountsDirect;

    function addPayment(
        uint8 _payment_method,
        uint8 _funding_stage
    )
        public
        payable
        requireInitialised
        onlyManager
        returns (bool)
    {
        if(msg.value > 0 && FundingEntity.allowedPaymentMethod(_payment_method)) {

            // store payment
            PurchaseStruct storage purchase = purchaseRecords[++purchaseRecordsNum];
                purchase.unix_time = now;
                purchase.payment_method = _payment_method;
                purchase.amount = msg.value;
                purchase.funding_stage = _funding_stage;
                purchase.index = purchaseRecordsNum;

            // assign payment to direct or milestone
            if(_payment_method == 1) {
                amount_direct+= purchase.amount;
                stageAmountsDirect[_funding_stage]+=purchase.amount;
            }

            if(_payment_method == 2) {
                amount_milestone+= purchase.amount;
            }

            // in order to not iterate through purchase records, we just increase funding stage amount.
            // issue with iterating over them, while processing vaults, would be that someone could create a large
            // number of payments, which would result in an "out of gas" / stack overflow issue, that would lock
            // our contract, so we don't really want to do that.
            // doing it this way also saves some gas
            stageAmounts[_funding_stage]+=purchase.amount;

            EventPaymentReceived( purchase.payment_method, purchase.amount, purchase.index );
            return true;
        } else {
            revert();
        }
    }

    function getBoughtTokens() public view returns (uint256) {
        return TokenSCADAEntity.getBoughtTokens( address(this), false );
    }

    function getDirectBoughtTokens() public view returns (uint256) {
        return TokenSCADAEntity.getBoughtTokens( address(this), true );
    }


    mapping (uint8 => uint256) public etherBalances;
    mapping (uint8 => uint256) public tokenBalances;
    uint8 public BalanceNum = 0;

    bool public BalancesInitialised = false;
    function initMilestoneTokenAndEtherBalances() internal
    {
        if(BalancesInitialised == false) {

            uint256 milestoneTokenBalance = TokenEntity.balanceOf(address(this));
            uint256 milestoneEtherBalance = this.balance;

            // no need to worry about fractions because at the last milestone, we send everything that's left.

            // emergency fund takes it's percentage from initial balances.
            if(emergencyFundPercentage > 0) {
                tokenBalances[0] = milestoneTokenBalance / 100 * emergencyFundPercentage;
                etherBalances[0] = milestoneEtherBalance / 100 * emergencyFundPercentage;

                milestoneTokenBalance-=tokenBalances[0];
                milestoneEtherBalance-=etherBalances[0];
            }

            // milestones percentages are then taken from what's left.
            for(uint8 i = 1; i <= MilestonesEntity.RecordNum(); i++) {

                uint8 perc = MilestonesEntity.getMilestoneFundingPercentage(i);
                tokenBalances[i] = milestoneTokenBalance / 100 * perc;
                etherBalances[i] = milestoneEtherBalance / 100 * perc;
            }

            BalanceNum = i;
            BalancesInitialised = true;
        }
    }

    function ReleaseFundsAndTokens()
        public
        requireInitialised
        onlyManager
        returns (bool)
    {
        // first make sure cashback is not possible, and that we've not processed everything in this vault
        if(!canCashBack() && allFundingProcessed == false) {

            if(FundingManagerEntity.CurrentEntityState() == FundingManagerEntity.getEntityState("FUNDING_SUCCESSFUL_PROGRESS")) {

                // case 1, direct funding only
                if(amount_direct > 0 && amount_milestone == 0) {

                    // if we have direct funding and no milestone balance, transfer everything and lock vault
                    // to save gas in future processing runs.

                    // transfer tokens to the investor
                    TokenEntity.transfer(vaultOwner, TokenEntity.balanceOf( address(this) ) );

                    // transfer ether to the owner's wallet
                    outputAddress.transfer(this.balance);

                    // lock vault.. and enable black hole methods
                    allFundingProcessed = true;

                } else {
                // case 2 and 3, direct funding only

                    if(amount_direct > 0 && DirectFundingProcessed == false ) {
                        TokenEntity.transfer(vaultOwner, getDirectBoughtTokens() );
                        // transfer "direct funding" ether to the owner's wallet
                        outputAddress.transfer(amount_direct);
                        DirectFundingProcessed = true;
                    }

                    // process and initialize milestone balances, emergency fund, etc, once
                    initMilestoneTokenAndEtherBalances();
                }
                return true;

            } else if(FundingManagerEntity.CurrentEntityState() == FundingManagerEntity.getEntityState("MILESTONE_PROCESS_PROGRESS")) {

                // get current milestone so we know which one we need to release funds for.
                uint8 milestoneId = MilestonesEntity.currentRecord();

                uint256 transferTokens = tokenBalances[milestoneId];
                uint256 transferEther = etherBalances[milestoneId];

                if(milestoneId == BalanceNum - 1) {
                    // we're processing the last milestone and balance, this means we're transferring everything left.
                    // this is done to make sure we've transferred everything, even "ether that got mistakenly sent to this address"
                    // as well as the emergency fund if it has not been used.
                    transferTokens = TokenEntity.balanceOf(address(this));
                    transferEther = this.balance;
                }

                // set balances to 0 so we can't transfer multiple times.
                // tokenBalances[milestoneId] = 0;
                // etherBalances[milestoneId] = 0;

                // transfer tokens to the investor
                TokenEntity.transfer(vaultOwner, transferTokens );

                // transfer ether to the owner's wallet
                outputAddress.transfer(transferEther);

                if(milestoneId == BalanceNum - 1) {
                    // lock vault.. and enable black hole methods
                    allFundingProcessed = true;
                }

                return true;
            }
        }

        return false;
    }


    function releaseTokensAndEtherForEmergencyFund()
        public
        requireInitialised
        onlyManager
        returns (bool)
    {
        if( emergencyFundReleased == false && emergencyFundPercentage > 0) {

            // transfer tokens to the investor
            TokenEntity.transfer(vaultOwner, tokenBalances[0] );

            // transfer ether to the owner's wallet
            outputAddress.transfer(etherBalances[0]);

            emergencyFundReleased = true;
            return true;
        }
        return false;
    }

    function ReleaseFundsToInvestor()
        public
        requireInitialised
        isOwner
    {
        if(canCashBack()) {

            // IF we're doing a cashback
            // transfer vault tokens back to owner address
            // send all ether to wallet owner

            // get token balance
            uint256 myBalance = TokenEntity.balanceOf(address(this));
            // transfer all vault tokens to owner
            if(myBalance > 0) {
                TokenEntity.transfer(outputAddress, myBalance );
            }

            // now transfer all remaining ether back to investor address
            vaultOwner.transfer(this.balance);

            // update FundingManager Locked Token Amount, so we don't break voting
            FundingManagerEntity.VaultRequestedUpdateForLockedVotingTokens( vaultOwner );

            // disallow further processing, so we don't break Funding Manager.
            // this method can still be called to collect future black hole ether to this vault.
            allFundingProcessed = true;
        }
    }

    /*
        1 - if the funding of the project Failed, allows investors to claim their locked ether back.
        2 - if the Investor votes NO to a Development Milestone Completion Proposal, where the majority
            also votes NO allows investors to claim their locked ether back.
        3 - project owner misses to set the time for a Development Milestone Completion Meeting allows investors
        to claim their locked ether back.
    */
    function canCashBack() public view requireInitialised returns (bool) {

        // case 1
        if(checkFundingStateFailed()) {
            return true;
        }
        // case 2
        if(checkMilestoneStateInvestorVotedNoVotingEndedNo()) {
            return true;
        }
        // case 3
        if(checkOwnerFailedToSetTimeOnMeeting()) {
            return true;
        }

        return false;
    }

    function checkFundingStateFailed() public view returns (bool) {
        if(FundingEntity.CurrentEntityState() == FundingEntity.getEntityState("FAILED_FINAL") ) {
            return true;
        }

        // also check if funding period ended, and 7 days have passed and no processing was done.
        if( FundingEntity.getTimestamp() >= FundingEntity.Funding_Setting_cashback_time_start() ) {

            // should only be possible if funding entity has been stuck in processing for more than 7 days.
            if( FundingEntity.CurrentEntityState() != FundingEntity.getEntityState("SUCCESSFUL_FINAL") ) {
                return true;
            }
        }

        return false;
    }

    function checkMilestoneStateInvestorVotedNoVotingEndedNo() public view returns (bool) {
        if(MilestonesEntity.CurrentEntityState() == MilestonesEntity.getEntityState("VOTING_ENDED_NO") ) {
            // first we need to make sure we actually voted.
            if( ProposalsEntity.getHasVoteForCurrentMilestoneRelease(vaultOwner) == true) {
                // now make sure we voted NO, and if so return true
                if( ProposalsEntity.getMyVoteForCurrentMilestoneRelease( vaultOwner ) == false) {
                    return true;
                }
            }
        }
        return false;
    }

    function checkOwnerFailedToSetTimeOnMeeting() public view returns (bool) {
        // Looks like the project owner is missing in action
        // they only have to do 1 thing, which is set the meeting time 7 days before the end of the milestone so that
        // investors know when they need to show up for a progress report meeting

        // as they did not, we consider them missing in action and allow investors to retrieve their locked ether back
        if( MilestonesEntity.CurrentEntityState() == MilestonesEntity.getEntityState("DEADLINE_MEETING_TIME_FAILED") ) {
            return true;
        }
        return false;
    }


    modifier isOwner() {
        require(msg.sender == vaultOwner);
        _;
    }

    modifier onlyManager() {
        require(msg.sender == managerAddress);
        _;
    }

    modifier requireInitialised() {
        require(_initialized == true);
        _;
    }

    modifier requireNotInitialised() {
        require(_initialized == false);
        _;
    }
}

/*

 * source       https://github.com/blockbitsio/

 * @name        Funding Contract
 * @package     BlockBitsIO
 * @author      Micky Socaci <[email protected]>

 Contains the Funding Contract code deployed and linked to the Application Entity

*/















contract FundingManager is ApplicationAsset {

    ABIFunding FundingEntity;
    ABITokenManager TokenManagerEntity;
    ABIToken TokenEntity;
    ABITokenSCADAVariable TokenSCADAEntity;
    ABIProposals ProposalsEntity;
    ABIMilestones MilestonesEntity;

    uint256 public LockedVotingTokens = 0;

    event EventFundingManagerReceivedPayment(address indexed _vault, uint8 indexed _payment_method, uint256 indexed _amount );
    event EventFundingManagerProcessedVault(address _vault, uint256 id );

    mapping  (address => address) public vaultList;
    mapping  (uint256 => address) public vaultById;
    uint256 public vaultNum = 0;

    function setAssetStates() internal {
        // Asset States
        EntityStates["__IGNORED__"]                 = 0;
        EntityStates["NEW"]                         = 1;
        EntityStates["WAITING"]                     = 2;

        EntityStates["FUNDING_FAILED_START"]        = 10;
        EntityStates["FUNDING_FAILED_PROGRESS"]     = 11;
        EntityStates["FUNDING_FAILED_DONE"]         = 12;

        EntityStates["FUNDING_SUCCESSFUL_START"]    = 20;
        EntityStates["FUNDING_SUCCESSFUL_PROGRESS"] = 21;
        EntityStates["FUNDING_SUCCESSFUL_DONE"]     = 22;
        EntityStates["FUNDING_SUCCESSFUL_ALLOCATE"] = 25;


        EntityStates["MILESTONE_PROCESS_START"]     = 30;
        EntityStates["MILESTONE_PROCESS_PROGRESS"]  = 31;
        EntityStates["MILESTONE_PROCESS_DONE"]      = 32;

        EntityStates["EMERGENCY_PROCESS_START"]     = 40;
        EntityStates["EMERGENCY_PROCESS_PROGRESS"]  = 41;
        EntityStates["EMERGENCY_PROCESS_DONE"]      = 42;


        EntityStates["COMPLETE_PROCESS_START"]     = 100;
        EntityStates["COMPLETE_PROCESS_PROGRESS"]  = 101;
        EntityStates["COMPLETE_PROCESS_DONE"]      = 102;

        // Funding Stage States
        RecordStates["__IGNORED__"]     = 0;

    }

    function runBeforeApplyingSettings()
        internal
        requireInitialised
        requireSettingsNotApplied
    {
        address FundingAddress = getApplicationAssetAddressByName('Funding');
        FundingEntity = ABIFunding(FundingAddress);
        EventRunBeforeApplyingSettings(assetName);

        address TokenManagerAddress = getApplicationAssetAddressByName('TokenManager');
        TokenManagerEntity = ABITokenManager(TokenManagerAddress);

        TokenEntity = ABIToken(TokenManagerEntity.TokenEntity());

        address TokenSCADAAddress = TokenManagerEntity.TokenSCADAEntity();
        TokenSCADAEntity = ABITokenSCADAVariable(TokenSCADAAddress) ;

        address MilestonesAddress = getApplicationAssetAddressByName('Milestones');
        MilestonesEntity = ABIMilestones(MilestonesAddress) ;

        address ProposalsAddress = getApplicationAssetAddressByName('Proposals');
        ProposalsEntity = ABIProposals(ProposalsAddress) ;
    }



    function receivePayment(address _sender, uint8 _payment_method, uint8 _funding_stage)
        payable
        public
        requireInitialised
        onlyAsset('Funding')
        returns(bool)
    {
        // check that msg.value is higher than 0, don't really want to have to deal with minus in case the network breaks this somehow
        if(msg.value > 0) {
            FundingVault vault;

            // no vault present
            if(!hasVault(_sender)) {
                // create and initialize a new one
                vault = new FundingVault();
                if(vault.initialize(
                    _sender,
                    FundingEntity.multiSigOutputAddress(),
                    address(FundingEntity),
                    address(getApplicationAssetAddressByName('Milestones')),
                    address(getApplicationAssetAddressByName('Proposals'))
                )) {
                    // store new vault address.
                    vaultList[_sender] = vault;
                    // increase internal vault number
                    vaultNum++;
                    // assign vault to by int registry
                    vaultById[vaultNum] = vault;

                } else {
                    revert();
                }
            } else {
                // use existing vault
                vault = FundingVault(vaultList[_sender]);
            }

            EventFundingManagerReceivedPayment(vault, _payment_method, msg.value);

            if( vault.addPayment.value(msg.value)( _payment_method, _funding_stage ) ) {

                // if payment is received in the vault then mint tokens based on the received value!
                TokenManagerEntity.mint( vault, TokenSCADAEntity.getTokensForValueInCurrentStage(msg.value) );

                return true;
            } else {
                revert();
            }
        } else {
            revert();
        }
    }

    function getMyVaultAddress(address _sender) public view returns (address) {
        return vaultList[_sender];
    }

    function hasVault(address _sender) internal view returns(bool) {
        if(vaultList[_sender] != address(0x0)) {
            return true;
        } else {
            return false;
        }
    }

    bool public fundingProcessed = false;
    uint256 public lastProcessedVaultId = 0;
    uint8 public VaultCountPerProcess = 10;
    bytes32 public currentTask = "";

    mapping (bytes32 => bool) public taskByHash;

    function setVaultCountPerProcess(uint8 _perProcess) external onlyDeployer {
        if(_perProcess > 0) {
            VaultCountPerProcess = _perProcess;
        } else {
            revert();
        }
    }

    function getHash(bytes32 actionType, bytes32 arg1) public pure returns ( bytes32 ) {
        return keccak256(actionType, arg1);
    }

    function getCurrentMilestoneProcessed() public view returns (bool) {
        return taskByHash[ getHash("MILESTONE_PROCESS_START", getCurrentMilestoneIdHash() ) ];
    }



    function ProcessVaultList(uint8 length) internal {

        if(taskByHash[currentTask] == false) {
            if(
                CurrentEntityState == getEntityState("FUNDING_FAILED_PROGRESS") ||
                CurrentEntityState == getEntityState("FUNDING_SUCCESSFUL_PROGRESS") ||
                CurrentEntityState == getEntityState("MILESTONE_PROCESS_PROGRESS") ||
                CurrentEntityState == getEntityState("EMERGENCY_PROCESS_PROGRESS") ||
                CurrentEntityState == getEntityState("COMPLETE_PROCESS_PROGRESS")
            ) {

                uint256 start = lastProcessedVaultId + 1;
                uint256 end = start + length - 1;

                if(end > vaultNum) {
                    end = vaultNum;
                }

                // first run
                if(start == 1) {
                    // reset LockedVotingTokens, as we reindex them
                    LockedVotingTokens = 0;
                }

                for(uint256 i = start; i <= end; i++) {
                    address currentVault = vaultById[i];
                    EventFundingManagerProcessedVault(currentVault, i);
                    ProcessFundingVault(currentVault);
                    lastProcessedVaultId++;
                }
                if(lastProcessedVaultId >= vaultNum ) {
                    // reset iterator and set task state to true so we can't call it again.
                    lastProcessedVaultId = 0;
                    taskByHash[currentTask] = true;
                }
            } else {
                revert();
            }
        } else {
            revert();
        }
    }

    function processFundingFailedFinished() public view returns (bool) {
        bytes32 thisHash = getHash("FUNDING_FAILED_START", "");
        return taskByHash[thisHash];
    }

    function processFundingSuccessfulFinished() public view returns (bool) {
        bytes32 thisHash = getHash("FUNDING_SUCCESSFUL_START", "");
        return taskByHash[thisHash];
    }

    function getCurrentMilestoneIdHash() internal view returns (bytes32) {
        return bytes32(MilestonesEntity.currentRecord());
    }

    function processMilestoneFinished() public view returns (bool) {
        bytes32 thisHash = getHash("MILESTONE_PROCESS_START", getCurrentMilestoneIdHash());
        return taskByHash[thisHash];
    }

    function processEmergencyFundReleaseFinished() public view returns (bool) {
        bytes32 thisHash = getHash("EMERGENCY_PROCESS_START", bytes32(0));
        return taskByHash[thisHash];
    }

    function ProcessFundingVault(address vaultAddress ) internal {
        FundingVault vault = FundingVault(vaultAddress);

        if(vault.allFundingProcessed() == false) {

            if(CurrentEntityState == getEntityState("FUNDING_SUCCESSFUL_PROGRESS")) {

                // tokens are minted and allocated to this vault when it receives payments.
                // vault should now hold as many tokens as the investor bought using direct and milestone funding,
                // as well as the ether they sent
                // "direct funding" release -> funds to owner / tokens to investor
                if(!vault.ReleaseFundsAndTokens()) {
                    revert();
                }

            } else if(CurrentEntityState == getEntityState("MILESTONE_PROCESS_PROGRESS")) {
                // release funds to owner / tokens to investor
                if(!vault.ReleaseFundsAndTokens()) {
                    revert();
                }

            } else if(CurrentEntityState == getEntityState("EMERGENCY_PROCESS_PROGRESS")) {
                // release emergency funds to owner / tokens to investor
                if(!vault.releaseTokensAndEtherForEmergencyFund()) {
                    revert();
                }
            }

            // For proposal voting, we need to know how many investor locked tokens remain.
            LockedVotingTokens+= getAfterTransferLockedTokenBalances(vaultAddress, true);

        }
    }

    function getAfterTransferLockedTokenBalances(address vaultAddress, bool excludeCurrent) public view returns (uint256) {
        FundingVault vault = FundingVault(vaultAddress);
        uint8 currentMilestone = MilestonesEntity.currentRecord();

        uint256 LockedBalance = 0;
        // handle emergency funding first
        if(vault.emergencyFundReleased() == false) {
            LockedBalance+=vault.tokenBalances(0);
        }

        // get token balances starting from current
        uint8 start = currentMilestone;

        if(CurrentEntityState != getEntityState("FUNDING_SUCCESSFUL_PROGRESS")) {
            if(excludeCurrent == true) {
                start++;
            }
        }

        for(uint8 i = start; i < vault.BalanceNum() ; i++) {
            LockedBalance+=vault.tokenBalances(i);
        }
        return LockedBalance;

    }

    function VaultRequestedUpdateForLockedVotingTokens(address owner) public {
        // validate sender
        address vaultAddress = vaultList[owner];
        if(msg.sender == vaultAddress){
            // get token balances starting from current
            LockedVotingTokens-= getAfterTransferLockedTokenBalances(vaultAddress, false);
        }
    }

    bool FundingPoolBalancesAllocated = false;

    function AllocateAfterFundingBalances() internal {
        // allocate owner, advisor, bounty pools
        if(FundingPoolBalancesAllocated == false) {

            // mint em!
            uint256 mintedSupply = TokenEntity.totalSupply();
            uint256 salePercent = getAppBylawUint256("token_sale_percentage");

            // find one percent
            uint256 onePercent = (mintedSupply * 1 / salePercent * 100) / 100;

            // bounty tokens
            uint256 bountyPercent = getAppBylawUint256("token_bounty_percentage");
            uint256 bountyValue = onePercent * bountyPercent;

            address BountyManagerAddress = getApplicationAssetAddressByName("BountyManager");
            TokenManagerEntity.mint( BountyManagerAddress, bountyValue );

            // project tokens
            // should be 40
            uint256 projectPercent = 100 - salePercent - bountyPercent;
            uint256 projectValue = onePercent * projectPercent;

            // project tokens get minted to Token Manager's address, and are locked there
            TokenManagerEntity.mint( TokenManagerEntity, projectValue );
            TokenManagerEntity.finishMinting();

            FundingPoolBalancesAllocated = true;
        }
    }


    function doStateChanges() public {

        var (returnedCurrentEntityState, EntityStateRequired) = getRequiredStateChanges();
        bool callAgain = false;

        DebugEntityRequiredChanges( assetName, returnedCurrentEntityState, EntityStateRequired );

        if(EntityStateRequired != getEntityState("__IGNORED__") ) {
            EntityProcessor(EntityStateRequired);
            callAgain = true;
        }
    }

    function hasRequiredStateChanges() public view returns (bool) {
        bool hasChanges = false;
        var (returnedCurrentEntityState, EntityStateRequired) = getRequiredStateChanges();
        // suppress unused local variable warning
        returnedCurrentEntityState = 0;
        if(EntityStateRequired != getEntityState("__IGNORED__") ) {
            hasChanges = true;
        }
        return hasChanges;
    }

    function EntityProcessor(uint8 EntityStateRequired) internal {

        EventEntityProcessor( assetName, CurrentEntityState, EntityStateRequired );

        // Update our Entity State
        CurrentEntityState = EntityStateRequired;
        // Do State Specific Updates

// Funding Failed
        if ( EntityStateRequired == getEntityState("FUNDING_FAILED_START") ) {
            // set ProcessVaultList Task
            currentTask = getHash("FUNDING_FAILED_START", "");
            CurrentEntityState = getEntityState("FUNDING_FAILED_PROGRESS");
        } else if ( EntityStateRequired == getEntityState("FUNDING_FAILED_PROGRESS") ) {
            ProcessVaultList(VaultCountPerProcess);

// Funding Successful
        } else if ( EntityStateRequired == getEntityState("FUNDING_SUCCESSFUL_START") ) {

            // init SCADA variable cache.
            //if(TokenSCADAEntity.initCacheForVariables()) {

            // start processing vaults
            currentTask = getHash("FUNDING_SUCCESSFUL_START", "");
            CurrentEntityState = getEntityState("FUNDING_SUCCESSFUL_PROGRESS");

        } else if ( EntityStateRequired == getEntityState("FUNDING_SUCCESSFUL_PROGRESS") ) {
            ProcessVaultList(VaultCountPerProcess);

        } else if ( EntityStateRequired == getEntityState("FUNDING_SUCCESSFUL_ALLOCATE") ) {
            AllocateAfterFundingBalances();

// Milestones
        } else if ( EntityStateRequired == getEntityState("MILESTONE_PROCESS_START") ) {
            currentTask = getHash("MILESTONE_PROCESS_START", getCurrentMilestoneIdHash() );
            CurrentEntityState = getEntityState("MILESTONE_PROCESS_PROGRESS");

        } else if ( EntityStateRequired == getEntityState("MILESTONE_PROCESS_PROGRESS") ) {
            ProcessVaultList(VaultCountPerProcess);

// Emergency funding release
        } else if ( EntityStateRequired == getEntityState("EMERGENCY_PROCESS_START") ) {
            currentTask = getHash("EMERGENCY_PROCESS_START", bytes32(0) );
            CurrentEntityState = getEntityState("EMERGENCY_PROCESS_PROGRESS");
        } else if ( EntityStateRequired == getEntityState("EMERGENCY_PROCESS_PROGRESS") ) {
            ProcessVaultList(VaultCountPerProcess);

// Completion
        } else if ( EntityStateRequired == getEntityState("COMPLETE_PROCESS_START") ) {
            currentTask = getHash("COMPLETE_PROCESS_START", "");
            CurrentEntityState = getEntityState("COMPLETE_PROCESS_PROGRESS");

        } else if ( EntityStateRequired == getEntityState("COMPLETE_PROCESS_PROGRESS") ) {
            // release platform owner tokens from token manager
            TokenManagerEntity.ReleaseOwnersLockedTokens( FundingEntity.multiSigOutputAddress() );
            CurrentEntityState = getEntityState("COMPLETE_PROCESS_DONE");
        }

    }

    /*
     * Method: Get Entity Required State Changes
     *
     * @access       public
     * @type         method
     *
     * @return       ( uint8 CurrentEntityState, uint8 EntityStateRequired )
     */
    function getRequiredStateChanges() public view returns (uint8, uint8) {

        uint8 EntityStateRequired = getEntityState("__IGNORED__");

        if(ApplicationInFundingOrDevelopment()) {

            if ( CurrentEntityState == getEntityState("WAITING") ) {
                /*
                    This is where we decide if we should process something
                */

                // For funding
                if(FundingEntity.CurrentEntityState() == FundingEntity.getEntityState("FAILED")) {
                    EntityStateRequired = getEntityState("FUNDING_FAILED_START");
                }
                else if(FundingEntity.CurrentEntityState() == FundingEntity.getEntityState("SUCCESSFUL")) {
                    // make sure we haven't processed this yet
                    if(taskByHash[ getHash("FUNDING_SUCCESSFUL_START", "") ] == false) {
                        EntityStateRequired = getEntityState("FUNDING_SUCCESSFUL_START");
                    }
                }
                else if(FundingEntity.CurrentEntityState() == FundingEntity.getEntityState("SUCCESSFUL_FINAL")) {

                    if ( processMilestoneFinished() == false) {
                        if(
                            MilestonesEntity.CurrentEntityState() == MilestonesEntity.getEntityState("VOTING_ENDED_YES") ||
                            MilestonesEntity.CurrentEntityState() == MilestonesEntity.getEntityState("VOTING_ENDED_NO_FINAL")
                        ) {
                            EntityStateRequired = getEntityState("MILESTONE_PROCESS_START");
                        }
                    }

                    if(processEmergencyFundReleaseFinished() == false) {
                        if(ProposalsEntity.EmergencyFundingReleaseApproved() == true) {
                            EntityStateRequired = getEntityState("EMERGENCY_PROCESS_START");
                        }
                    }

                    // else, check if all milestones have been processed and try finalising development process
                    // EntityStateRequired = getEntityState("COMPLETE_PROCESS_START");


                }

            } else if ( CurrentEntityState == getEntityState("FUNDING_SUCCESSFUL_PROGRESS") ) {
                // still in progress? check if we should move to done
                if ( processFundingSuccessfulFinished() ) {
                    EntityStateRequired = getEntityState("FUNDING_SUCCESSFUL_ALLOCATE");
                } else {
                    EntityStateRequired = getEntityState("FUNDING_SUCCESSFUL_PROGRESS");
                }

            } else if ( CurrentEntityState == getEntityState("FUNDING_SUCCESSFUL_ALLOCATE") ) {

                if(FundingPoolBalancesAllocated) {
                    EntityStateRequired = getEntityState("FUNDING_SUCCESSFUL_DONE");
                }

            } else if ( CurrentEntityState == getEntityState("FUNDING_SUCCESSFUL_DONE") ) {
                EntityStateRequired = getEntityState("WAITING");

    // Funding Failed
            } else if ( CurrentEntityState == getEntityState("FUNDING_FAILED_PROGRESS") ) {
                // still in progress? check if we should move to done
                if ( processFundingFailedFinished() ) {
                    EntityStateRequired = getEntityState("FUNDING_FAILED_DONE");
                } else {
                    EntityStateRequired = getEntityState("FUNDING_FAILED_PROGRESS");
                }

    // Milestone process
            } else if ( CurrentEntityState == getEntityState("MILESTONE_PROCESS_PROGRESS") ) {
                // still in progress? check if we should move to done

                if ( processMilestoneFinished() ) {
                    EntityStateRequired = getEntityState("MILESTONE_PROCESS_DONE");
                } else {
                    EntityStateRequired = getEntityState("MILESTONE_PROCESS_PROGRESS");
                }

            } else if ( CurrentEntityState == getEntityState("MILESTONE_PROCESS_DONE") ) {

                if(processMilestoneFinished() == false) {
                    EntityStateRequired = getEntityState("WAITING");

                } else if(MilestonesEntity.currentRecord() == MilestonesEntity.RecordNum()) {
                    EntityStateRequired = getEntityState("COMPLETE_PROCESS_START");
                }

    // Emergency funding release
            } else if ( CurrentEntityState == getEntityState("EMERGENCY_PROCESS_PROGRESS") ) {
                // still in progress? check if we should move to done

                if ( processEmergencyFundReleaseFinished() ) {
                    EntityStateRequired = getEntityState("EMERGENCY_PROCESS_DONE");
                } else {
                    EntityStateRequired = getEntityState("EMERGENCY_PROCESS_PROGRESS");
                }
            } else if ( CurrentEntityState == getEntityState("EMERGENCY_PROCESS_DONE") ) {
                EntityStateRequired = getEntityState("WAITING");

    // Completion
            } else if ( CurrentEntityState == getEntityState("COMPLETE_PROCESS_PROGRESS") ) {
                EntityStateRequired = getEntityState("COMPLETE_PROCESS_PROGRESS");
            }
        } else {

            if( CurrentEntityState == getEntityState("NEW") ) {
                // general so we know we initialized
                EntityStateRequired = getEntityState("WAITING");
            }
        }

        return (CurrentEntityState, EntityStateRequired);
    }

    function ApplicationInFundingOrDevelopment() public view returns(bool) {
        uint8 AppState = getApplicationState();
        if(
            AppState == getApplicationEntityState("IN_FUNDING") ||
            AppState == getApplicationEntityState("IN_DEVELOPMENT")
        ) {
            return true;
        }
        return false;
    }



}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"fundingProcessed","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getTimestamp","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"name","type":"bytes32"}],"name":"getRecordState","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"owner","type":"address"}],"name":"VaultRequestedUpdateForLockedVotingTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"_initialized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_perProcess","type":"uint8"}],"name":"setVaultCountPerProcess","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"vaultById","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"processMilestoneFinished","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"vaultList","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"vaultNum","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"RecordNum","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"taskByHash","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"RecordStates","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"EntityStates","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ApplicationInFundingOrDevelopment","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getApplicationState","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCurrentMilestoneProcessed","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"CurrentEntityState","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferToNewOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"lastProcessedVaultId","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"bytes32"}],"name":"getApplicationAssetAddressByName","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"actionType","type":"bytes32"},{"name":"arg1","type":"bytes32"}],"name":"getHash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"LockedVotingTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"processFundingSuccessfulFinished","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getRequiredStateChanges","outputs":[{"name":"","type":"uint8"},{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"applyAndLockSettings","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"bytes32"}],"name":"setInitialOwnerAndName","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"processEmergencyFundReleaseFinished","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_sender","type":"address"}],"name":"getMyVaultAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"VaultCountPerProcess","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_ownerAddress","type":"address"}],"name":"setInitialApplicationAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"processFundingFailedFinished","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_sender","type":"address"},{"name":"_payment_method","type":"uint8"},{"name":"_funding_stage","type":"uint8"}],"name":"receivePayment","outputs":[{"name":"","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"assetName","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_settingsApplied","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"name","type":"bytes32"}],"name":"getAppBylawBytes32","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"name","type":"bytes32"}],"name":"getEntityState","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"vaultAddress","type":"address"},{"name":"excludeCurrent","type":"bool"}],"name":"getAfterTransferLockedTokenBalances","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"name","type":"bytes32"}],"name":"getAppBylawUint256","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"deployerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"name","type":"bytes32"}],"name":"getApplicationEntityState","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currentTask","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"doStateChanges","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"hasRequiredStateChanges","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_vault","type":"address"},{"indexed":true,"name":"_payment_method","type":"uint8"},{"indexed":true,"name":"_amount","type":"uint256"}],"name":"EventFundingManagerReceivedPayment","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_vault","type":"address"},{"indexed":false,"name":"id","type":"uint256"}],"name":"EventFundingManagerProcessedVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_name","type":"bytes32"},{"indexed":true,"name":"_owner","type":"address"}],"name":"EventAppAssetOwnerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_name","type":"bytes32"}],"name":"EventRunBeforeInit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_name","type":"bytes32"}],"name":"EventRunBeforeApplyingSettings","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_assetName","type":"bytes32"},{"indexed":true,"name":"_current","type":"uint8"},{"indexed":true,"name":"_required","type":"uint8"}],"name":"EventEntityProcessor","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_assetName","type":"bytes32"},{"indexed":true,"name":"_current","type":"uint8"},{"indexed":true,"name":"_required","type":"uint8"}],"name":"DebugEntityRequiredChanges","type":"event"}]

606060405260048054600160b860020a03191690556000600c819055600f8190556010805460ff199081169091556011829055601280548216600a1790556013919091556015805490911690556005805433600160a060020a0316600160a060020a0319909116179055615663806100786000396000f300606060405236156102095763ffffffff60e060020a6000350416630db03955811461020e578063188ec356146102355780631af868661461025a5780632474186b146102865780633072cf60146102a757806330bbf7ec146102ba57806332f19a5c146102d35780633c22c9351461030557806341087dfa14610318578063415eea1b146103375780634a1a650d1461034a5780635eaf43b21461035d57806362e2f994146103735780636d0a11c31461038957806370be61d11461039f57806370c0f689146103b257806371461be9146103c55780637278d623146103d85780637372e9be146103eb5780637c5b5b061461040a5780637c5c78451461041d57806380c9597f1461043357806381a1384b1461044c57806385e61b4a1461045f57806388db84bc146104725780638da5cb5b146104a3578063af653861146104b6578063b84e183a146104c9578063b91070e8146104df578063ba104dd6146104f2578063bb256f6814610511578063bc9121cf14610524578063beeb057814610543578063c357907214610556578063c9230c5d14610576578063ddb9769c14610589578063df077c741461059c578063e490c513146105b2578063e8ccbf8d146105c8578063ed031ae3146105ec578063efdee94f14610602578063f01b1dc114610615578063f388b0461461062b578063f86282da1461063e578063fa9d235214610651575b600080fd5b341561021957600080fd5b610221610664565b604051901515815260200160405180910390f35b341561024057600080fd5b61024861066d565b60405190815260200160405180910390f35b341561026557600080fd5b610270600435610671565b60405160ff909116815260200160405180910390f35b341561029157600080fd5b6102a5600160a060020a0360043516610689565b005b34156102b257600080fd5b6102216106c9565b34156102c557600080fd5b6102a560ff600435166106d7565b34156102de57600080fd5b6102e9600435610711565b604051600160a060020a03909116815260200160405180910390f35b341561031057600080fd5b61022161072c565b341561032357600080fd5b6102e9600160a060020a036004351661076a565b341561034257600080fd5b610248610785565b341561035557600080fd5b61027061078b565b341561036857600080fd5b610221600435610794565b341561037e57600080fd5b6102706004356107a9565b341561039457600080fd5b6102706004356107be565b34156103aa57600080fd5b6102216107d3565b34156103bd57600080fd5b61027061085f565b34156103d057600080fd5b6102216108cf565b34156103e357600080fd5b610270610909565b34156103f657600080fd5b610221600160a060020a0360043516610912565b341561041557600080fd5b6102486109f8565b341561042857600080fd5b6102e96004356109fe565b341561043e57600080fd5b610248600435602435610a8b565b341561045757600080fd5b610248610aae565b341561046a57600080fd5b610221610ab4565b341561047d57600080fd5b610485610ad1565b60405160ff9283168152911660208201526040908101905180910390f35b34156104ae57600080fd5b6102e9611624565b34156104c157600080fd5b61022161163a565b34156104d457600080fd5b6102216004356116a7565b34156104ea57600080fd5b61022161178a565b34156104fd57600080fd5b6102e9600160a060020a03600435166117a6565b341561051c57600080fd5b6102706117c4565b341561052f57600080fd5b6102a5600160a060020a03600435166117cd565b341561054e57600080fd5b610221611836565b610221600160a060020a036004351660ff60243581169060443516611853565b341561058157600080fd5b610248611c63565b341561059457600080fd5b610221611c69565b34156105a757600080fd5b610248600435611c78565b34156105bd57600080fd5b610270600435611d12565b34156105d357600080fd5b610248600160a060020a03600435166024351515611d27565b34156105f757600080fd5b610248600435611fa3565b341561060d57600080fd5b6102e961201c565b341561062057600080fd5b61027060043561202b565b341561063657600080fd5b6102486120a5565b341561064957600080fd5b6102a56120ab565b341561065c57600080fd5b610221612133565b60105460ff1681565b4290565b60008181526001602052604090205460ff165b919050565b600160a060020a038082166000908152600d602052604090205481169033168114156106c5576106ba816000611d27565b600c80549190910390555b5050565b600454610100900460ff1681565b60055433600160a060020a039081169116146106f257600080fd5b60008160ff161115610209576012805460ff191660ff83161790555b50565b600e60205260009081526040902054600160a060020a031681565b60008061074f6000805160206200559883398151915261074a612179565b610a8b565b60008181526014602052604090205460ff16925090505b5090565b600d60205260009081526040902054600160a060020a031681565b600f5481565b60045460ff1681565b60146020526000908152604090205460ff1681565b60016020526000908152604090205460ff1681565b60006020819052908152604090205460ff1681565b6000806107de61085f565b90506108097f494e5f46554e44494e470000000000000000000000000000000000000000000061202b565b60ff168160ff16148061084957506108407f494e5f444556454c4f504d454e5400000000000000000000000000000000000061202b565b60ff168160ff16145b156108575760019150610766565b600091505090565b60045460009063010000009004600160a060020a0316637278d62382604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156108b057600080fd5b6102c65a03f115156108c157600080fd5b505050604051805191505090565b6000601460006108f06000805160206200559883398151915261074a612179565b815260208101919091526040016000205460ff16905090565b60025460ff1681565b60045460009060ff61010090910416151560011461092f57600080fd5b60045433600160a060020a039081166301000000909204161461095157600080fd5b60045463010000009004600160a060020a03161580159061097a5750600160a060020a03821615155b151561098557600080fd5b6004805476ffffffffffffffffffffffffffffffffffffffff00000019166301000000600160a060020a0385811682029290921792839055600354920416907f6f7b0a882e7ac0b47fcdb9814cfdaef1622128fa5d29e3318c730c3a5301e8c460405160405180910390a3506001919050565b60115481565b600454600090819063010000009004600160a060020a031663689216c784836040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b1515610a5a57600080fd5b6102c65a03f11515610a6b57600080fd5b5050506040518051915050600160a060020a038116156102095792915050565b600082826040519182526020820152604090810190518091039020905092915050565b600c5481565b60008061074f600080516020620055d88339815191526000610a8b565b6000806000610aee60008051602062005518833981519152611d12565b9050610af86107d3565b156115c457610b1360c860020a6657414954494e4702611d12565b60025460ff9081169116141561113f57600654600160a060020a031663e490c51360006040516020015260405160e060020a63ffffffff83160281527f4641494c454400000000000000000000000000000000000000000000000000006004820152602401602060405180830381600087803b1515610b9157600080fd5b6102c65a03f11515610ba257600080fd5b505050604051805160065460ff9091169150600160a060020a0316637278d6236000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610bf957600080fd5b6102c65a03f11515610c0a57600080fd5b5050506040518051905060ff161415610c3c57610c3560008051602062005538833981519152611d12565b905061113a565b600654600160a060020a031663e490c51360006040516020015260405160e060020a63ffffffff83160281527f5355434345535346554c000000000000000000000000000000000000000000006004820152602401602060405180830381600087803b1515610caa57600080fd5b6102c65a03f11515610cbb57600080fd5b505050604051805160065460ff9091169150600160a060020a0316637278d6236000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610d1257600080fd5b6102c65a03f11515610d2357600080fd5b5050506040518051905060ff161415610d8b5760146000610d54600080516020620055d88339815191526000610a8b565b815260208101919091526040016000205460ff161515610d8657610c35600080516020620055d8833981519152611d12565b61113a565b600654600160a060020a031663e490c51360006040516020015260405160e060020a63ffffffff83160281527f5355434345535346554c5f46494e414c000000000000000000000000000000006004820152602401602060405180830381600087803b1515610df957600080fd5b6102c65a03f11515610e0a57600080fd5b505050604051805160065460ff9091169150600160a060020a0316637278d6236000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610e6157600080fd5b6102c65a03f11515610e7257600080fd5b5050506040518051905060ff16141561113a57610e8d61072c565b15156110a457600b54600160a060020a031663e490c51360006040516020015260405160e060020a63ffffffff83160281527f564f54494e475f454e4445445f594553000000000000000000000000000000006004820152602401602060405180830381600087803b1515610f0157600080fd5b6102c65a03f11515610f1257600080fd5b5050506040518051600b5460ff9091169150600160a060020a0316637278d6236000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610f6957600080fd5b6102c65a03f11515610f7a57600080fd5b5050506040518051905060ff1614806110845750600b54600160a060020a031663e490c51360006040516020015260405160e060020a63ffffffff83160281527f564f54494e475f454e4445445f4e4f5f46494e414c00000000000000000000006004820152602401602060405180830381600087803b1515610ffc57600080fd5b6102c65a03f1151561100d57600080fd5b5050506040518051600b5460ff9091169150600160a060020a0316637278d6236000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561106457600080fd5b6102c65a03f1151561107557600080fd5b5050506040518051905060ff16145b156110a4576110a160008051602062005598833981519152611d12565b90505b6110ac61178a565b151561113a57600a54600160a060020a031663f00e41296000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156110fa57600080fd5b6102c65a03f1151561110b57600080fd5b5050506040518051151560011415905061113a57611137600080516020620055f8833981519152611d12565b90505b6115bf565b61115760008051602062005618833981519152611d12565b60025460ff908116911614156111b55761116f610ab4565b1561119d57610c357f46554e44494e475f5355434345535346554c5f414c4c4f434154450000000000611d12565b61113760008051602062005618833981519152611d12565b6111de7f46554e44494e475f5355434345535346554c5f414c4c4f434154450000000000611d12565b60025460ff908116911614156112225760155460ff161561113a576111377f46554e44494e475f5355434345535346554c5f444f4e45000000000000000000611d12565b61124b7f46554e44494e475f5355434345535346554c5f444f4e45000000000000000000611d12565b60025460ff908116911614156112715761113760c860020a6657414954494e4702611d12565b611289600080516020620054f8833981519152611d12565b60025460ff908116911614156112e7576112a1611836565b156112cf57610c357f46554e44494e475f4641494c45445f444f4e4500000000000000000000000000611d12565b611137600080516020620054f8833981519152611d12565b6112ff600080516020620055b8833981519152611d12565b60025460ff9081169116141561135d5761131761072c565b1561134557610c357f4d494c4553544f4e455f50524f434553535f444f4e4500000000000000000000611d12565b611137600080516020620055b8833981519152611d12565b6113867f4d494c4553544f4e455f50524f434553535f444f4e4500000000000000000000611d12565b60025460ff908116911614156114b75761139e61072c565b15156113ba57610c3560c860020a6657414954494e4702611d12565b600b54600160a060020a0316634a1a650d6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561140257600080fd5b6102c65a03f1151561141357600080fd5b5050506040518051600b5460ff9091169150600160a060020a03166307b3776c6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561146a57600080fd5b6102c65a03f1151561147b57600080fd5b5050506040518051905060ff16141561113a576111377f434f4d504c4554455f50524f434553535f535441525400000000000000000000611d12565b6114cf60008051602062005578833981519152611d12565b60025460ff9081169116141561152d576114e761178a565b1561151557610c357f454d455247454e43595f50524f434553535f444f4e4500000000000000000000611d12565b61113760008051602062005578833981519152611d12565b6115567f454d455247454e43595f50524f434553535f444f4e4500000000000000000000611d12565b60025460ff9081169116141561157c5761113760c860020a6657414954494e4702611d12565b61159460008051602062005558833981519152611d12565b60025460ff908116911614156115bf576115bc60008051602062005558833981519152611d12565b90505b611616565b6115ed7f4e45570000000000000000000000000000000000000000000000000000000000611d12565b60025460ff908116911614156116165761161360c860020a6657414954494e4702611d12565b90505b60025460ff16925090509091565b60045463010000009004600160a060020a031681565b60055460009033600160a060020a0390811691161461165857600080fd5b60045460ff61010090910416151560011461167257600080fd5b60045462010000900460ff161561168857600080fd5b6116906121e5565b506004805462ff0000191662010000179055600190565b600454600090610100900460ff16156116bf57600080fd5b60045433600160a060020a03908116630100000090920416146116e157600080fd5b6116e9612465565b60038290556117177f4e45570000000000000000000000000000000000000000000000000000000000611d12565b6002805460ff191660ff929092169190911790556117336127c9565b6004805461ff0019166101001790819055600160a060020a03630100000090910416827f6f7b0a882e7ac0b47fcdb9814cfdaef1622128fa5d29e3318c730c3a5301e8c460405160405180910390a3506001919050565b60008061074f600080516020620055f883398151915282610a8b565b600160a060020a039081166000908152600d60205260409020541690565b60125460ff1681565b60055433600160a060020a039081169116146117e857600080fd5b600454610100900460ff16156117fd57600080fd5b60048054600160a060020a0390921663010000000276ffffffffffffffffffffffffffffffffffffffff00000019909216919091179055565b60008061074f600080516020620055388339815191526000610a8b565b600454600090819060ff61010090910416151560011461187257600080fd5b7f46756e64696e6700000000000000000000000000000000000000000000000000600061189e826109fe565b905080600160a060020a031633600160a060020a03161415156118c057600080fd5b6000341115610209576118d28761280f565b1515611aa1576118e0613373565b604051809103906000f08015156118f657600080fd5b600654909350600160a060020a0380851691631459457a918a9116639880472f6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561194d57600080fd5b6102c65a03f1151561195e57600080fd5b5050506040518051600654909150600160a060020a031661199e7f4d696c6573746f6e6573000000000000000000000000000000000000000000006109fe565b6119c77f50726f706f73616c7300000000000000000000000000000000000000000000006109fe565b60006040516020015260405160e060020a63ffffffff8816028152600160a060020a0395861660048201529385166024850152918416604484015283166064830152909116608482015260a401602060405180830381600087803b1515611a2d57600080fd5b6102c65a03f11515611a3e57600080fd5b505050604051805190501561020957600160a060020a038088166000908152600d602090815260408083208054948816600160a060020a03199586168117909155600f8054600101908190558452600e9092529091208054909216179055611abf565b600160a060020a038088166000908152600d60205260409020541692505b348660ff1684600160a060020a03167f058e430b856ae0f022940fc41b8a5295cd954be7d13d1129a902808d0a1ae82060405160405180910390a482600160a060020a0316633a533d9134888860006040516020015260405160e060020a63ffffffff861602815260ff9283166004820152911660248201526044016020604051808303818588803b1515611b5357600080fd5b6125ee5a03f11515611b6457600080fd5b50505050604051805190501561020957600754600954600160a060020a03918216916340c10f1991869116633a3ac4f93460006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b1515611bd457600080fd5b6102c65a03f11515611be557600080fd5b5050506040518051905060006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515611c3b57600080fd5b6102c65a03f11515611c4c57600080fd5b505050604051805150600198975050505050505050565b60035481565b60045462010000900460ff1681565b600454600090819060ff610100909104161515600114611c9757600080fd5b5060045463010000009004600160a060020a03168063ee44da7e8460006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b1515611cf157600080fd5b6102c65a03f11515611d0257600080fd5b5050506040518051949350505050565b60009081526020819052604090205460ff1690565b600b5460009083908290819081908190600160a060020a03166307b3776c82604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611d7b57600080fd5b6102c65a03f11515611d8c57600080fd5b505050604051805194506000935050600160a060020a03851663be53874f84604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611de057600080fd5b6102c65a03f11515611df157600080fd5b505050604051805115159050611e725784600160a060020a03166301fc32526000806040516020015260405160e060020a63ffffffff841602815260ff9091166004820152602401602060405180830381600087803b1515611e5257600080fd5b6102c65a03f11515611e6357600080fd5b50505060405180519050830192505b839150611e8d60008051602062005618833981519152611d12565b60025460ff908116911614611eae5760018715151415611eae576001909101905b50805b84600160a060020a031663b2ad19936000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611ef757600080fd5b6102c65a03f11515611f0857600080fd5b5050506040518051905060ff168160ff161015611f975784600160a060020a03166301fc32528260006040516020015260405160e060020a63ffffffff841602815260ff9091166004820152602401602060405180830381600087803b1515611f7057600080fd5b6102c65a03f11515611f8157600080fd5b5050506040518051939093019250600101611eb1565b50909695505050505050565b600454600090819060ff610100909104161515600114611fc257600080fd5b5060045463010000009004600160a060020a03168063b44ce8938460006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b1515611cf157600080fd5b600554600160a060020a031681565b60045460009063010000009004600160a060020a031663e490c51383836040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561208557600080fd5b6102c65a03f1151561209657600080fd5b50505060405180519392505050565b60135481565b60008060006120b8610ad1565b92509250600090508160ff168360ff167fac3b1b9b04941d61d4294b1f52e47d24e8b1ab590d5775302fdd5108e15f43ee60035460405190815260200160405180910390a361211560008051602062005518833981519152611d12565b60ff83811691161461212e5761212a82612841565b5060015b505050565b6000808080612140610ad1565b915091506000915061216060008051602062005518833981519152611d12565b60ff82811691161461217157600192505b509092915050565b600b54600090600160a060020a03166307b3776c82604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156121c357600080fd5b6102c65a03f115156121d457600080fd5b505050604051805160ff1691505090565b600454600090819081908190819060ff61010090910416151560011461220a57600080fd5b60045462010000900460ff161561222057600080fd5b6122497f46756e64696e67000000000000000000000000000000000000000000000000006109fe565b60068054600160a060020a031916600160a060020a0383161790556003549095507fce50d83c2c178553c51fe8a83d1af61967b308e4ae48086d6526816b465e2f4960405160405180910390a26122bf7f546f6b656e4d616e6167657200000000000000000000000000000000000000006109fe565b60078054600160a060020a031916600160a060020a0383811691909117918290559195501663314475b26000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561232057600080fd5b6102c65a03f1151561233157600080fd5b505050604051805160088054600160a060020a031916600160a060020a03928316179055600754169050635b8315e46000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561239757600080fd5b6102c65a03f115156123a857600080fd5b505050604051805160098054600160a060020a031916600160a060020a03831617905593506123f890507f4d696c6573746f6e6573000000000000000000000000000000000000000000006109fe565b600b8054600160a060020a031916600160a060020a038316179055915061243e7f50726f706f73616c7300000000000000000000000000000000000000000000006109fe565b600a8054600160a060020a031916600160a060020a03929092169190911790555050505050565b7f82aa092d4c801429a1fff0e42bdcbb41efc63176230d4f4542b13200afb562e8805460ff199081169091557f26c6da47b1522bc44b5826073c13ff8f683a2d7bcb3e45f089817656015efae98054821660019081179091557f0b472e849ed7e57c6860ab569920f9b20f7226a8f60486df39cb8dfdc32464b98054831660021790557fe7ef8d1a1923461097dd13b8e2d3738c7ff3f2770b69728765b9e068dcefab7b80548316600a1790557f539178387d56c57e0b61a3f7fcc6d621c5a76e581a807121c6c2d769e69c415780548316600b1790557fdbfe74ecf3c6c8749d7a09ef57d1566b7eed7348ea0677d8cf57f8eaaf482e9580548316600c1790557fc2e76afd561bdf24de221f3fc2dfa43c89ab2a08f84b88a197afa1e659913d498054831660141790557fb6819a1e91141635bd48923b6fb44ebb32fd51469a3c61345e70f86d5ae479988054831660151790557ff30c27f893f68eaafa94a0985c193a8ce826ef001d01ad4a5895343c2c3e905d8054831660161790557f8a36501686688836eb464a169261b4807738ad2cde166527e031ea7573fc59638054831660191790557f706cbbf3e51ae81db9521b5642199266fd97075ef5c46719d38787b12a202cce80548316601e1790557fc4a5298f6ad670be0f354a72e5d7f7fc4d023d1a11af72d50920dd8d79614fde80548316601f1790557f3ec977615668ed89a5b18d42d173cb332019b98addc2a132a4b42777bacab2f48054831660209081179091557f0a4636f8d0695c773b9f6e356b76924ec650a499586788b653ecaff3777b075a8054841660281790557f41ae0b5a2e0224a331584e4100b7a476e1eedef10e22b2fcb1ddf137db06a11e8054841660291790557f7fbe454bd14f39ea00772673cde19ee9bbc6f7d3489c233dfa9126760344844580548416602a1790557f19634e7614eab81010be37db7ad803bd93b41d030e9b327acb0ee175427bb3028054841660641790557fd7d727546f50e31c8adcb815a7096e1b0f208569971343f4eba1d643f09bf0f58054841660651790557f57238b58c80f6e0cc3ad60cd630c3e9713a984922ea0b7dfb042bf1c3727e77680548416606617905560008051602062005518833981519152600052527fe4f12cd7531d4b60d6f694b938f9d161e42f7945d6c7e248621b398180482b7280549091169055565b600454610100900460ff16156127de57600080fd5b6003547f6bec69c1d4de72551859e2a42d5f8b4bbb7e6cde7f27a338ad426e098257dfba60405160405180910390a2565b600160a060020a038181166000908152600d60205260408120549091161561283957506001610684565b506000610684565b60025460035460ff8084169216907fa711172fadfeaff9adc3ca2a0ec885d631e96cc1d79e20a1603a1d535966729a60405160405180910390a46002805460ff191660ff83161790556128a260008051602062005538833981519152611d12565b60ff168160ff1614156128fd576128c9600080516020620055388339815191526000610a8b565b6013556128e4600080516020620054f8833981519152611d12565b6002805460ff191660ff9290921691909117905561070e565b612915600080516020620054f8833981519152611d12565b60ff168160ff161415612936576012546129319060ff16612cd3565b61070e565b61294e600080516020620055d8833981519152611d12565b60ff168160ff16141561299057612975600080516020620055d88339815191526000610a8b565b6013556128e460008051602062005618833981519152611d12565b6129a860008051602062005618833981519152611d12565b60ff168160ff1614156129c4576012546129319060ff16612cd3565b6129ed7f46554e44494e475f5355434345535346554c5f414c4c4f434154450000000000611d12565b60ff168160ff161415612a0257612931612eb4565b612a1a60008051602062005598833981519152611d12565b60ff168160ff161415612a5d57612a426000805160206200559883398151915261074a612179565b6013556128e4600080516020620055b8833981519152611d12565b612a75600080516020620055b8833981519152611d12565b60ff168160ff161415612a91576012546129319060ff16612cd3565b612aa9600080516020620055f8833981519152611d12565b60ff168160ff161415612aeb57612ad0600080516020620055f88339815191526000610a8b565b6013556128e460008051602062005578833981519152611d12565b612b0360008051602062005578833981519152611d12565b60ff168160ff161415612b1f576012546129319060ff16612cd3565b612b487f434f4d504c4554455f50524f434553535f535441525400000000000000000000611d12565b60ff168160ff161415612b9b57612b807f434f4d504c4554455f50524f434553535f5354415254000000000000000000006000610a8b565b6013556128e460008051602062005558833981519152611d12565b612bb360008051602062005558833981519152611d12565b60ff168160ff16141561070e57600754600654600160a060020a0391821691636fc200539116639880472f6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515612c1557600080fd5b6102c65a03f11515612c2657600080fd5b5050506040518051905060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b1515612c7757600080fd5b6102c65a03f11515612c8857600080fd5b5050506040518051905050612cbc7f434f4d504c4554455f50524f434553535f444f4e450000000000000000000000611d12565b6002805460ff191660ff9290921691909117905550565b60135460009081526014602052604081205481908190819060ff16151561020957612d0c600080516020620054f8833981519152611d12565b60025460ff90811691161480612d415750612d3560008051602062005618833981519152611d12565b60025460ff9081169116145b80612d6b5750612d5f600080516020620055b8833981519152611d12565b60025460ff9081169116145b80612d955750612d8960008051602062005578833981519152611d12565b60025460ff9081169116145b80612dbf5750612db360008051602062005558833981519152611d12565b60025460ff9081169116145b1561020957601154600101935060018560ff168501039250600f54831115612de757600f5492505b8360011415612df6576000600c555b8391505b828211612e8157506000818152600e60205260409081902054600160a060020a0316907f82700d8b1a7ac7daa3acda56e031d141fec4dd9f636311403e22d42ce0a0a886908290849051600160a060020a03909216825260208201526040908101905180910390a1612e6b81613158565b6011805460019081019091559190910190612dfa565b600f5460115410612ead57600060118190556013548152601460205260409020805460ff191660011790555b5050505050565b601554600090819081908190819081908190819060ff16151561314e57600854600160a060020a03166318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515612f1957600080fd5b6102c65a03f11515612f2a57600080fd5b505050604051805190509750612f5f7f746f6b656e5f73616c655f70657263656e746167650000000000000000000000611fa3565b965060648789811515612f6e57fe5b04606402811515612f7b57fe5b049550612fa77f746f6b656e5f626f756e74795f70657263656e74616765000000000000000000611fa3565b94508486029350612fd77f426f756e74794d616e61676572000000000000000000000000000000000000006109fe565b600754909350600160a060020a03166340c10f19848660006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561303957600080fd5b6102c65a03f1151561304a57600080fd5b50505060405180515050600754606488900386900392508683029150600160a060020a03166340c10f19818360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156130c257600080fd5b6102c65a03f115156130d357600080fd5b50505060405180515050600754600160a060020a0316637d64bcb46000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561312557600080fd5b6102c65a03f1151561313657600080fd5b505050604051805150506015805460ff191660011790555b5050505050505050565b80600160a060020a03811663e91ccdc06000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561319f57600080fd5b6102c65a03f115156131b057600080fd5b5050506040518051151590506106c5576131d860008051602062005618833981519152611d12565b60025460ff908116911614156132595780600160a060020a031663428be33f6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561322e57600080fd5b6102c65a03f1151561323f57600080fd5b50505060405180519050151561325457600080fd5b61335b565b613271600080516020620055b8833981519152611d12565b60025460ff908116911614156132c75780600160a060020a031663428be33f6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561322e57600080fd5b6132df60008051602062005578833981519152611d12565b60025460ff9081169116141561335b5780600160a060020a03166301e1ecb46000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561333557600080fd5b6102c65a03f1151561334657600080fd5b50505060405180519050151561335b57600080fd5b613366826001611d27565b600c805490910190555050565b604051612173806200338583390190560060606040526000805460ff191681556002805460a060020a61ffff02191690556009819055600a55600b805461ffff19908116909155601580549091169055341561004957600080fd5b61211b806100586000396000f3006060604052361561014e5763ffffffff60e060020a60003504166301e1ecb4811461015357806301fc32521461017a57806306525841146101a557806312aaafa7146101b85780631459457a146101cb5780631f52692b1461020257806321417350146102315780632490e16e1461024a578063272d20e71461025d5780633072cf60146102705780633738aa19146102835780633a533d9114610298578063428be33f146102ac5780635102f656146102bf57806359adda9b146102d857806364e21c9e146102eb5780636f9568c4146102fe5780637a72c30d1461031757806382f87fdb1461032a578063902c0dcc1461033d578063a74cc71c14610350578063aef0004a146103a2578063b2ad1993146103b5578063b8500e5e146103de578063be53874f14610408578063cf73a1bc1461041b578063e5df7b101461042e578063e91ccdc014610441575b600080fd5b341561015e57600080fd5b610166610454565b604051901515815260200160405180910390f35b341561018557600080fd5b61019360ff600435166105d5565b60405190815260200160405180910390f35b34156101b057600080fd5b6101666105e7565b34156101c357600080fd5b61019361063b565b34156101d657600080fd5b610166600160a060020a0360043581169060243581169060443581169060643581169060843516610641565b341561020d57600080fd5b610215610b89565b604051600160a060020a03909116815260200160405180910390f35b341561023c57600080fd5b61019360ff60043516610b9d565b341561025557600080fd5b610193610baf565b341561026857600080fd5b610193610c32565b341561027b57600080fd5b610166610c38565b341561028e57600080fd5b610296610c41565b005b61016660ff60043581169060243516610e59565b34156102b757600080fd5b61016661103d565b34156102ca57600080fd5b61019360ff60043516611760565b34156102e357600080fd5b610166611772565b34156102f657600080fd5b610166611876565b341561030957600080fd5b61019360ff60043516611898565b341561032257600080fd5b6101666118aa565b341561033557600080fd5b610166611ac0565b341561034857600080fd5b610166611d95565b341561035b57600080fd5b61036a61ffff60043516611da3565b60405194855260ff93841660208601526040808601939093529216606084015261ffff909116608083015260a0909101905180910390f35b34156103ad57600080fd5b610215611ddc565b34156103c057600080fd5b6103c8611deb565b60405160ff909116815260200160405180910390f35b34156103e957600080fd5b6103f1611df4565b60405161ffff909116815260200160405180910390f35b341561041357600080fd5b610166611dfe565b341561042657600080fd5b610215611e07565b341561043957600080fd5b610193611e16565b341561044c57600080fd5b610166611e79565b6000805460ff16151560011461046957600080fd5b60025433600160a060020a0390811691161461048457600080fd5b600b5460ff161580156104a25750600b54600061010090910460ff16115b156105ce576008546000805481805260146020527f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99c54600160a060020a039384169363a9059cbb9361010090930416916040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561053c57600080fd5b6102c65a03f1151561054d57600080fd5b505050604051805150506001546000805260136020527f8fa6efc3be94b5b348b21fea823fe8d100408cee9b7f90524494500445d8ff6c54600160a060020a039091169080156108fc0290604051600060405180830381858888f1935050505015156105b857600080fd5b50600b805460ff191660019081179091556105d2565b5060005b90565b60146020526000908152604090205481565b6000805460ff1615156001146105fc57600080fd5b610604611ac0565b15610611575060016105d2565b6106196118aa565b15610626575060016105d2565b61062e611772565b156105ce575060016105d2565b600a5481565b6000805481908190819081908190819060ff161561065e57600080fd5b8b600160a060020a03167f733be0fdaf77621eb46ef87502d63fea13e94bc406be6ae17d75d783e0ceaa8060405160405180910390a260018054600160a060020a03808e1673ffffffffffffffffffffffffffffffffffffffff1992831617909255600080548f84166101000274ffffffffffffffffffffffffffffffffffffffff0019909116178155600280543385169084161790819055600380548f8616908516179081905560048054851692861692909217909155600580548e8616908516179055600680548d8616941693909317909255911690637c5c7845906040516020015260405160e060020a63ffffffff83160281527f546f6b656e4d616e6167657200000000000000000000000000000000000000006004820152602401602060405180830381600087803b151561079757600080fd5b6102c65a03f115156107a857600080fd5b5050506040518051965086955050600160a060020a03851663314475b26000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156107fc57600080fd5b6102c65a03f1151561080d57600080fd5b50505060405180516008805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038381169190911790915590955086169050635b8315e46000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561088557600080fd5b6102c65a03f1151561089657600080fd5b50505060405180516007805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038381169190911790915590945086169050638da5cb5b6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561090e57600080fd5b6102c65a03f1151561091f57600080fd5b5050506040518051925082915050600160a060020a03811663b44ce89360006040516020015260405160e060020a63ffffffff83160281527f656d657267656e63795f66756e645f70657263656e74616765000000000000006004820152602401602060405180830381600087803b151561099957600080fd5b6102c65a03f115156109aa57600080fd5b5050506040518051600b805460ff9092166101000261ff001990921691909117905550600160a060020a03811663b44ce89360006040516020015260405160e060020a63ffffffff83160281527f636173686261636b5f6f776e65725f6d69615f647572000000000000000000006004820152602401602060405180830381600087803b1515610a3957600080fd5b6102c65a03f11515610a4a57600080fd5b5050506040518051600c5550600160a060020a03811663b44ce89360006040516020015260405160e060020a63ffffffff83160281527f636173686261636b5f696e766573746f725f6e6f0000000000000000000000006004820152602401602060405180830381600087803b1515610ac257600080fd5b6102c65a03f11515610ad357600080fd5b5050506040518051600d5550600160a060020a03811663b44ce89360006040516020015260405160e060020a63ffffffff83160281527f70726f706f73616c5f766f74696e675f6475726174696f6e00000000000000006004820152602401602060405180830381600087803b1515610b4b57600080fd5b6102c65a03f11515610b5c57600080fd5b5050506040518051600e55506000805460ff19166001908117909155965050505050505095945050505050565b6000546101009004600160a060020a031681565b60136020526000908152604090205481565b600754600090600160a060020a03166369f3c780306001846040516020015260405160e060020a63ffffffff8516028152600160a060020a03909216600483015215156024820152604401602060405180830381600087803b1515610c1357600080fd5b6102c65a03f11515610c2457600080fd5b505050604051805191505090565b60095481565b60005460ff1681565b6000805460ff161515600114610c5657600080fd5b60005433600160a060020a039081166101009092041614610c7657600080fd5b610c7e6105e7565b15610e5657600854600160a060020a03166370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b1515610cdc57600080fd5b6102c65a03f11515610ced57600080fd5b50505060405180519150506000811115610d8357600854600154600160a060020a039182169163a9059cbb91168360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610d6757600080fd5b6102c65a03f11515610d7857600080fd5b505050604051805150505b600054600160a060020a0361010090910481169030163180156108fc0290604051600060405180830381858888f193505050501515610dc157600080fd5b600454600054600160a060020a0391821691632474186b9161010090041660405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b1515610e1d57600080fd5b6102c65a03f11515610e2e57600080fd5b50506002805474ff0000000000000000000000000000000000000000191660a060020a179055505b50565b60008054819060ff161515600114610e7057600080fd5b60025433600160a060020a03908116911614610e8b57600080fd5b600034118015610f055750600354600160a060020a031663fff56a338560006040516020015260405160e060020a63ffffffff841602815260ff9091166004820152602401602060405180830381600087803b1515610ee957600080fd5b6102c65a03f11515610efa57600080fd5b505050604051805190505b1561014e57506010805461ffff8082166001908101821661ffff19909316831784556000928352600f6020526040909220428155808301805460ff808a1660ff199283168117909355346002850155600384018054918a16919092161780825595549093166101000262ffff001990951694909417909155911415610fae576002810180546009805490910190555460ff84166000908152601260205260409020805490910190555b8360ff1660021415610fc9576002810154600a805490910190555b60028101805460ff85811660009081526011602052604090819020805490930190925560038401549254600185015461010090940461ffff169390929116907fb3a74d55276d2594e97d86f7033844acae8587c3c5cb7712774f33cd65219d4c905160405180910390a45060019392505050565b6000805481908190819060ff16151560011461105857600080fd5b60025433600160a060020a0390811691161461107357600080fd5b61107b6105e7565b158015611092575060025460a060020a900460ff16155b1561175557600454600160a060020a031663e490c51360006040516020015260405160e060020a63ffffffff83160281527f46554e44494e475f5355434345535346554c5f50524f475245535300000000006004820152602401602060405180830381600087803b151561110557600080fd5b6102c65a03f1151561111657600080fd5b505050604051805160045460ff9091169150600160a060020a0316637278d6236000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561116d57600080fd5b6102c65a03f1151561117e57600080fd5b5050506040518051905060ff16141561143e5760006009541180156111a35750600a54155b156112fc5760085460008054600160a060020a039283169263a9059cbb92610100909204169083906370a082319030906040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561121857600080fd5b6102c65a03f1151561122957600080fd5b5050506040518051905060006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561127f57600080fd5b6102c65a03f1151561129057600080fd5b50505060405180515050600154600160a060020a039081169030163180156108fc0290604051600060405180830381858888f1935050505015156112d357600080fd5b6002805474ff0000000000000000000000000000000000000000191660a060020a179055611435565b600060095411801561132a57506002547501000000000000000000000000000000000000000000900460ff16155b1561142d57600854600054600160a060020a039182169163a9059cbb91610100900416611355610baf565b60006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156113a157600080fd5b6102c65a03f115156113b257600080fd5b50505060405180515050600154600954600160a060020a039091169080156108fc0290604051600060405180830381858888f1935050505015156113f557600080fd5b6002805475ff000000000000000000000000000000000000000000191675010000000000000000000000000000000000000000001790555b611435611e89565b6001935061175a565b600454600160a060020a031663e490c51360006040516020015260405160e060020a63ffffffff83160281527f4d494c4553544f4e455f50524f434553535f50524f47524553530000000000006004820152602401602060405180830381600087803b15156114ac57600080fd5b6102c65a03f115156114bd57600080fd5b505050604051805160045460ff9091169150600160a060020a0316637278d6236000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561151457600080fd5b6102c65a03f1151561152557600080fd5b5050506040518051905060ff16141561175557600554600160a060020a03166307b3776c6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561158057600080fd5b6102c65a03f1151561159157600080fd5b505050604051805160ff818116600081815260146020908152604080832054601390925290912054601554949850909650945091811660001901161415905061165657600854600160a060020a03166370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561162d57600080fd5b6102c65a03f1151561163e57600080fd5b505050604051805192505050600160a060020a033016315b60085460008054600160a060020a039283169263a9059cbb92610100909204169085906040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156116c357600080fd5b6102c65a03f115156116d457600080fd5b50505060405180515050600154600160a060020a031681156108fc0282604051600060405180830381858888f19350505050151561171157600080fd5b60155460ff9081166000190181169084161415611435576002805474ff0000000000000000000000000000000000000000191660a060020a1790556001935061175a565b600093505b50505090565b60116020526000908152604090205481565b600554600090600160a060020a031663e490c513826040516020015260405160e060020a63ffffffff83160281527f444541444c494e455f4d454554494e475f54494d455f4641494c4544000000006004820152602401602060405180830381600087803b15156117e257600080fd5b6102c65a03f115156117f357600080fd5b505050604051805160055460ff9091169150600160a060020a0316637278d6236000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561184a57600080fd5b6102c65a03f1151561185b57600080fd5b5050506040518051905060ff1614156105ce575060016105d2565b6002547501000000000000000000000000000000000000000000900460ff1681565b60126020526000908152604090205481565b600554600090600160a060020a031663e490c513826040516020015260405160e060020a63ffffffff83160281527f564f54494e475f454e4445445f4e4f00000000000000000000000000000000006004820152602401602060405180830381600087803b151561191a57600080fd5b6102c65a03f1151561192b57600080fd5b505050604051805160055460ff9091169150600160a060020a0316637278d6236000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561198257600080fd5b6102c65a03f1151561199357600080fd5b5050506040518051905060ff1614156105ce5760065460008054600160a060020a0392831692630113f86e9261010090920416906040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b1515611a0c57600080fd5b6102c65a03f11515611a1d57600080fd5b505050604051805115156001141590506105ce5760065460008054600160a060020a039283169263cd3fed6f9261010090920416906040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b1515611a9757600080fd5b6102c65a03f11515611aa857600080fd5b5050506040518051151590506105ce575060016105d2565b600354600090600160a060020a031663e490c513826040516020015260405160e060020a63ffffffff83160281527f4641494c45445f46494e414c00000000000000000000000000000000000000006004820152602401602060405180830381600087803b1515611b3057600080fd5b6102c65a03f11515611b4157600080fd5b505050604051805160035460ff9091169150600160a060020a0316637278d6236000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611b9857600080fd5b6102c65a03f11515611ba957600080fd5b5050506040518051905060ff161415611bc4575060016105d2565b600354600160a060020a031663f8408a8d6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611c0c57600080fd5b6102c65a03f11515611c1d57600080fd5b5050506040518051600354909150600160a060020a031663188ec3566000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611c7057600080fd5b6102c65a03f11515611c8157600080fd5b505050604051805190501015156105ce57600354600160a060020a031663e490c51360006040516020015260405160e060020a63ffffffff83160281527f5355434345535346554c5f46494e414c000000000000000000000000000000006004820152602401602060405180830381600087803b1515611d0057600080fd5b6102c65a03f11515611d1157600080fd5b505050604051805160035460ff9091169150600160a060020a0316637278d6236000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611d6857600080fd5b6102c65a03f11515611d7957600080fd5b5050506040518051905060ff161415156105ce575060016105d2565b601554610100900460ff1681565b600f602052600090815260409020805460018201546002830154600390930154919260ff918216929091811690610100900461ffff1685565b600154600160a060020a031681565b60155460ff1681565b60105461ffff1681565b600b5460ff1681565b600254600160a060020a031681565b600754600090600160a060020a03166369f3c7803083806040516020015260405160e060020a63ffffffff8516028152600160a060020a03909216600483015215156024820152604401602060405180830381600087803b1515610c1357600080fd5b60025460a060020a900460ff1681565b601554600090819081908190610100900460ff1615156120e957600854600160a060020a03166370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b1515611efc57600080fd5b6102c65a03f11515611f0d57600080fd5b5050506040518051600b5490955030600160a060020a0316319450600061010090910460ff1611159050611fac57600b5460008052610100900460ff16606480860482027f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99c8190559085049091027f8fa6efc3be94b5b348b21fea823fe8d100408cee9b7f90524494500445d8ff6c8190556013602052940393909203915b600191505b600554600160a060020a0316634a1a650d6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611ff957600080fd5b6102c65a03f1151561200a57600080fd5b5050506040518051905060ff168260ff161115156120ce57600554600160a060020a031663d1c1b9458360006040516020015260405160e060020a63ffffffff841602815260ff9091166004820152602401602060405180830381600087803b151561207557600080fd5b6102c65a03f1151561208657600080fd5b505050604051805160ff84811660009081526014602090815260408083209385166064808c04820290955560139092529091209187040290556001909301929150611fb19050565b6015805461010060ff1990911660ff85161761ff0019161790555b505050505600a165627a7a72305820395a316d38ef9e66011841cf3dad08193dfaef7e34ce2154af0f02dd926b1dd5002946554e44494e475f4641494c45445f50524f47524553530000000000000000005f5f49474e4f5245445f5f00000000000000000000000000000000000000000046554e44494e475f4641494c45445f5354415254000000000000000000000000434f4d504c4554455f50524f434553535f50524f475245535300000000000000454d455247454e43595f50524f434553535f50524f47524553530000000000004d494c4553544f4e455f50524f434553535f53544152540000000000000000004d494c4553544f4e455f50524f434553535f50524f475245535300000000000046554e44494e475f5355434345535346554c5f53544152540000000000000000454d455247454e43595f50524f434553535f535441525400000000000000000046554e44494e475f5355434345535346554c5f50524f47524553530000000000a165627a7a72305820475267bba371ba14806ff278a0f3487c1ef4e3fbd9daf7cf79665bda7504376f0029

Swarm Source

bzzr://475267bba371ba14806ff278a0f3487c1ef4e3fbd9daf7cf79665bda7504376f
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.