Contract 0xb435c8Dd6eDd82918606F0B2d73970683806b004

 
Ad
Ad
Txn Hash Method
Block
From
To
Value
0x54ad2fca51357c49133ce68fab789d46c898b52559b83d24efa45534a8e03638Apply And Lock S...50207482018-02-03 2:42:361331 days 23 hrs agoBlockbits: Deployer IN  0xb435c8dd6edd82918606f0b2d73970683806b0040 Ether0.0002966710
0x575b0fee80405b6c6948051b6a307a07a1d6f8ef28eabd67b1dbff304630568cSet Initial Appl...50154252018-02-02 5:06:051332 days 20 hrs agoBlockbits: Deployer IN  0xb435c8dd6edd82918606f0b2d73970683806b0040 Ether0.0004412510
0x9a857a4f157358ff3496ac418063efc7d759ae7d452db4751c5b6a61170700c70x6060604050152632018-02-02 4:28:211332 days 21 hrs agoBlockbits: Deployer IN  Create: Meetings0 Ether0.0083160210
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Meetings

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        Meetings Contract
 * @package     BlockBitsIO
 * @author      Micky Socaci <[email protected]>

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

*/





contract Meetings is ApplicationAsset {
    struct Record {
        bytes32 hash;
        bytes32 name;
        uint8 state;
        uint256 time_start;                     // start at unixtimestamp
        uint256 duration;
        uint8 index;
    }
    mapping (uint8 => Record) public Collection;
}

Contract Security Audit

Contract ABI

[{"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":true,"inputs":[],"name":"_initialized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint8"}],"name":"Collection","outputs":[{"name":"hash","type":"bytes32"},{"name":"name","type":"bytes32"},{"name":"state","type":"uint8"},{"name":"time_start","type":"uint256"},{"name":"duration","type":"uint256"},{"name":"index","type":"uint8"}],"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":"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":"getApplicationState","outputs":[{"name":"","type":"uint8"}],"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":"_name","type":"bytes32"}],"name":"getApplicationAssetAddressByName","outputs":[{"name":"","type":"address"}],"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":false,"inputs":[{"name":"_ownerAddress","type":"address"}],"name":"setInitialApplicationAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"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"},{"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"}]

606060405260048054600160b860020a031916905560058054600160a060020a031916600160a060020a033316179055610b158061003e6000396000f3006060604052361561010c5763ffffffff60e060020a600035041663188ec35681146101115780631af86866146101365780633072cf601461016257806345f9ac2e146101895780634a1a650d146101df57806362e2f994146101f25780636d0a11c31461020857806370c0f6891461021e5780637278d623146102315780637372e9be146102445780637c5c7845146102635780638da5cb5b14610295578063af653861146102a8578063b84e183a146102bb578063bc9121cf146102d1578063c9230c5d146102f2578063ddb9769c14610305578063df077c7414610318578063e490c5131461032e578063ed031ae314610344578063efdee94f1461035a578063f01b1dc11461036d575b600080fd5b341561011c57600080fd5b610124610383565b60405190815260200160405180910390f35b341561014157600080fd5b61014c600435610387565b60405160ff909116815260200160405180910390f35b341561016d57600080fd5b61017561039c565b604051901515815260200160405180910390f35b341561019457600080fd5b6101a260ff600435166103aa565b604051958652602086019490945260ff92831660408087019190915260608601929092526080850152911660a083015260c0909101905180910390f35b34156101ea57600080fd5b61014c6103e4565b34156101fd57600080fd5b61014c6004356103ed565b341561021357600080fd5b61014c600435610402565b341561022957600080fd5b61014c610417565b341561023c57600080fd5b61014c610487565b341561024f57600080fd5b610175600160a060020a0360043516610490565b341561026e57600080fd5b610279600435610576565b604051600160a060020a03909116815260200160405180910390f35b34156102a057600080fd5b610279610603565b34156102b357600080fd5b610175610619565b34156102c657600080fd5b610175600435610686565b34156102dc57600080fd5b6102f0600160a060020a0360043516610769565b005b34156102fd57600080fd5b6101246107d2565b341561031057600080fd5b6101756107d8565b341561032357600080fd5b6101246004356107e7565b341561033957600080fd5b61014c600435610881565b341561034f57600080fd5b610124600435610896565b341561036557600080fd5b61027961090f565b341561037857600080fd5b61014c60043561091e565b4290565b60009081526001602052604090205460ff1690565b600454610100900460ff1681565b6006602052600090815260409020805460018201546002830154600384015460048501546005909501549394929360ff9283169391921686565b60045460ff1681565b60016020526000908152604090205460ff1681565b60006020819052908152604090205460ff1681565b60045460009063010000009004600160a060020a0316637278d62382604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561046857600080fd5b6102c65a03f1151561047957600080fd5b505050604051805191505090565b60025460ff1681565b60045460009060ff6101009091041615156001146104ad57600080fd5b60045433600160a060020a03908116630100000090920416146104cf57600080fd5b60045463010000009004600160a060020a0316158015906104f85750600160a060020a03821615155b151561050357600080fd5b6004805476ffffffffffffffffffffffffffffffffffffffff00000019166301000000600160a060020a0385811682029290921792839055600354920416907f6f7b0a882e7ac0b47fcdb9814cfdaef1622128fa5d29e3318c730c3a5301e8c460405160405180910390a3506001919050565b600454600090819063010000009004600160a060020a031663689216c784836040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b15156105d257600080fd5b6102c65a03f115156105e357600080fd5b5050506040518051915050600160a060020a0381161561010c5792915050565b60045463010000009004600160a060020a031681565b60055460009033600160a060020a0390811691161461063757600080fd5b60045460ff61010090910416151560011461065157600080fd5b60045462010000900460ff161561066757600080fd5b61066f610998565b506004805462ff0000191662010000179055600190565b600454600090610100900460ff161561069e57600080fd5b60045433600160a060020a03908116630100000090920416146106c057600080fd5b6106c86109f9565b60038290556106f67f4e45570000000000000000000000000000000000000000000000000000000000610881565b6002805460ff191660ff92909216919091179055610712610aa3565b6004805461ff0019166101001790819055600160a060020a03630100000090910416827f6f7b0a882e7ac0b47fcdb9814cfdaef1622128fa5d29e3318c730c3a5301e8c460405160405180910390a3506001919050565b60055433600160a060020a0390811691161461078457600080fd5b600454610100900460ff161561079957600080fd5b60048054600160a060020a0390921663010000000276ffffffffffffffffffffffffffffffffffffffff00000019909216919091179055565b60035481565b60045462010000900460ff1681565b600454600090819060ff61010090910416151560011461080657600080fd5b5060045463010000009004600160a060020a03168063ee44da7e8460006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561086057600080fd5b6102c65a03f1151561087157600080fd5b5050506040518051949350505050565b60009081526020819052604090205460ff1690565b600454600090819060ff6101009091041615156001146108b557600080fd5b5060045463010000009004600160a060020a03168063b44ce8938460006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561086057600080fd5b600554600160a060020a031681565b60045460009063010000009004600160a060020a031663e490c51383836040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561097857600080fd5b6102c65a03f1151561098957600080fd5b50505060405180519392505050565b60045460ff6101009091041615156001146109b257600080fd5b60045462010000900460ff16156109c857600080fd5b6003547fce50d83c2c178553c51fe8a83d1af61967b308e4ae48086d6526816b465e2f4960405160405180910390a2565b7f82aa092d4c801429a1fff0e42bdcbb41efc63176230d4f4542b13200afb562e8805460ff199081169091557f26c6da47b1522bc44b5826073c13ff8f683a2d7bcb3e45f089817656015efae98054821660019081179091557f5f5f49474e4f5245445f5f0000000000000000000000000000000000000000006000526020527fe4f12cd7531d4b60d6f694b938f9d161e42f7945d6c7e248621b398180482b7280549091169055565b600454610100900460ff1615610ab857600080fd5b6003547f6bec69c1d4de72551859e2a42d5f8b4bbb7e6cde7f27a338ad426e098257dfba60405160405180910390a25600a165627a7a723058201acf1eca7f799a23389e424bdb533ec39f6ab32e9338b9fe53bd667c651b483a0029

Swarm Source

bzzr://1acf1eca7f799a23389e424bdb533ec39f6ab32e9338b9fe53bd667c651b483a
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.