ETH Price: $3,353.34 (-2.80%)
Gas: 2 Gwei

Token

CVL (CVL)
 

Overview

Max Total Supply

100,000,000 CVL

Holders

460

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
wgmeets.eth
Balance
192.747428977487238044 CVL

Value
$0.00
0x6e63a4caeccb4f341ee9c9175c9cc554bdb6d10b
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Civil is a community-owned platform for independent journalism. We are a growing network of news organizations and supporters committed to a free press, civil discourse and public accountability.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CVLToken

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2019-03-06
*/

// File: contracts/zeppelin-solidity/ownership/Ownable.sol

pragma solidity ^0.4.24;


/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
  address public owner;


  event OwnershipRenounced(address indexed previousOwner);
  event OwnershipTransferred(
    address indexed previousOwner,
    address indexed newOwner
  );


  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  constructor() public {
    owner = msg.sender;
  }

  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(msg.sender == owner);
    _;
  }

  /**
   * @dev Allows the current owner to relinquish control of the contract.
   * @notice Renouncing to ownership will leave the contract without an owner.
   * It will not be possible to call the functions with the `onlyOwner`
   * modifier anymore.
   */
  function renounceOwnership() public onlyOwner {
    emit OwnershipRenounced(owner);
    owner = address(0);
  }

  /**
   * @dev Allows the current owner to transfer control of the contract to a newOwner.
   * @param _newOwner The address to transfer ownership to.
   */
  function transferOwnership(address _newOwner) public onlyOwner {
    _transferOwnership(_newOwner);
  }

  /**
   * @dev Transfers control of the contract to a newOwner.
   * @param _newOwner The address to transfer ownership to.
   */
  function _transferOwnership(address _newOwner) internal {
    require(_newOwner != address(0));
    emit OwnershipTransferred(owner, _newOwner);
    owner = _newOwner;
  }
}

// File: contracts/token/Managed.sol

pragma solidity ^0.4.24;


contract Managed is Ownable {
  mapping (address => bool) public managers;

  modifier onlyManager () {
    require(isManager(), "Only managers may perform this action");
    _;
  }

  modifier onlyManagerOrOwner () {
    require(
      checkManagerStatus(msg.sender) || msg.sender == owner,
      "Only managers or owners may perform this action"
    );
    _;
  }

  function checkManagerStatus (address managerAddress) public view returns (bool) {
    return managers[managerAddress];
  }

  function isManager () public view returns (bool) {
    return checkManagerStatus(msg.sender);
  }

  function addManager (address managerAddress) public onlyOwner {
    managers[managerAddress] = true;
  }

  function removeManager (address managerAddress) public onlyOwner {
    managers[managerAddress] = false;
  }
}

// File: contracts/token/ManagedWhitelist.sol

pragma solidity ^0.4.24;


contract ManagedWhitelist is Managed {
  // CORE - addresses that are controller by Civil Foundation, Civil Media, or Civil Newsrooms
  mapping (address => bool) public coreList;
  // CIVILIAN - addresses that have completed the tutorial
  mapping (address => bool) public civilianList;
  // UNLOCKED - addresses that have completed "proof of use" requirements
  mapping (address => bool) public unlockedList;
  // VERIFIED - addresses that have completed KYC verification
  mapping (address => bool) public verifiedList;
  // STOREFRONT - addresses that will sell tokens on behalf of the Civil Foundation. these addresses can only transfer to VERIFIED users
  mapping (address => bool) public storefrontList;
  // NEWSROOM - multisig addresses created by the NewsroomFactory
  mapping (address => bool) public newsroomMultisigList;

  // addToCore allows a manager to add an address to the CORE list
  function addToCore (address operator) public onlyManagerOrOwner {
    coreList[operator] = true;
  }

  // removeFromCore allows a manager to remove an address frin the CORE list
  function removeFromCore (address operator) public onlyManagerOrOwner {
    coreList[operator] = false;
  }

  // addToCivilians allows a manager to add an address to the CORE list
  function addToCivilians (address operator) public onlyManagerOrOwner {
    civilianList[operator] = true;
  }

  // removeFromCivilians allows a manager to remove an address from the CORE list
  function removeFromCivilians (address operator) public onlyManagerOrOwner {
    civilianList[operator] = false;
  }
  // addToUnlocked allows a manager to add an address to the UNLOCKED list
  function addToUnlocked (address operator) public onlyManagerOrOwner {
    unlockedList[operator] = true;
  }

  // removeFromUnlocked allows a manager to remove an address from the UNLOCKED list
  function removeFromUnlocked (address operator) public onlyManagerOrOwner {
    unlockedList[operator] = false;
  }

  // addToVerified allows a manager to add an address to the VERIFIED list
  function addToVerified (address operator) public onlyManagerOrOwner {
    verifiedList[operator] = true;
  }
  // removeFromVerified allows a manager to remove an address from the VERIFIED list
  function removeFromVerified (address operator) public onlyManagerOrOwner {
    verifiedList[operator] = false;
  }

  // addToStorefront allows a manager to add an address to the STOREFRONT list
  function addToStorefront (address operator) public onlyManagerOrOwner {
    storefrontList[operator] = true;
  }
  // removeFromStorefront allows a manager to remove an address from the STOREFRONT list
  function removeFromStorefront (address operator) public onlyManagerOrOwner {
    storefrontList[operator] = false;
  }

  // addToNewsroomMultisigs allows a manager to remove an address from the STOREFRONT list
  function addToNewsroomMultisigs (address operator) public onlyManagerOrOwner {
    newsroomMultisigList[operator] = true;
  }
  // removeFromNewsroomMultisigs allows a manager to remove an address from the STOREFRONT list
  function removeFromNewsroomMultisigs (address operator) public onlyManagerOrOwner {
    newsroomMultisigList[operator] = false;
  }

  function checkProofOfUse (address operator) public {

  }

}

// File: contracts/token/ERC1404/ERC1404.sol

pragma solidity ^0.4.24;

contract ERC1404 {
  /// @notice Detects if a transfer will be reverted and if so returns an appropriate reference code
  /// @param from Sending address
  /// @param to Receiving address
  /// @param value Amount of tokens being transferred
  /// @return Code by which to reference message for rejection reasoning
  /// @dev Overwrite with your custom transfer restriction logic
  function detectTransferRestriction (address from, address to, uint256 value) public view returns (uint8);

  /// @notice Returns a human-readable message for a given restriction code
  /// @param restrictionCode Identifier for looking up a message
  /// @return Text showing the restriction's reasoning
  /// @dev Overwrite with your custom message and restrictionCode handling
  function messageForTransferRestriction (uint8 restrictionCode) public view returns (string);
}

// File: contracts/token/ERC1404/MessagesAndCodes.sol

pragma solidity ^0.4.24;

library MessagesAndCodes {
  string public constant EMPTY_MESSAGE_ERROR = "Message cannot be empty string";
  string public constant CODE_RESERVED_ERROR = "Given code is already pointing to a message";
  string public constant CODE_UNASSIGNED_ERROR = "Given code does not point to a message";

  struct Data {
    mapping (uint8 => string) messages;
    uint8[] codes;
  }

  function messageIsEmpty (string _message)
      internal
      pure
      returns (bool isEmpty)
  {
    isEmpty = bytes(_message).length == 0;
  }

  function messageExists (Data storage self, uint8 _code)
      internal
      view
      returns (bool exists)
  {
    exists = bytes(self.messages[_code]).length > 0;
  }

  function addMessage (Data storage self, uint8 _code, string _message)
      public
      returns (uint8 code)
  {
    require(!messageIsEmpty(_message), EMPTY_MESSAGE_ERROR);
    require(!messageExists(self, _code), CODE_RESERVED_ERROR);

    // enter message at code and push code onto storage
    self.messages[_code] = _message;
    self.codes.push(_code);
    code = _code;
  }

  function autoAddMessage (Data storage self, string _message)
      public
      returns (uint8 code)
  {
    require(!messageIsEmpty(_message), EMPTY_MESSAGE_ERROR);

    // find next available code to store the message at
    code = 0;
    while (messageExists(self, code)) {
      code++;
    }

    // add message at the auto-generated code
    addMessage(self, code, _message);
  }

  function removeMessage (Data storage self, uint8 _code)
      public
      returns (uint8 code)
  {
    require(messageExists(self, _code), CODE_UNASSIGNED_ERROR);

    // find index of code
    uint8 indexOfCode = 0;
    while (self.codes[indexOfCode] != _code) {
      indexOfCode++;
    }

    // remove code from storage by shifting codes in array
    for (uint8 i = indexOfCode; i < self.codes.length - 1; i++) {
      self.codes[i] = self.codes[i + 1];
    }
    self.codes.length--;

    // remove message from storage
    self.messages[_code] = "";
    code = _code;
  }

  function updateMessage (Data storage self, uint8 _code, string _message)
      public
      returns (uint8 code)
  {
    require(!messageIsEmpty(_message), EMPTY_MESSAGE_ERROR);
    require(messageExists(self, _code), CODE_UNASSIGNED_ERROR);

    // update message at code
    self.messages[_code] = _message;
    code = _code;
  }
}

// File: contracts/multisig/Factory.sol

pragma solidity ^0.4.19;

contract Factory {

  /*
    *  Events
    */
  event ContractInstantiation(address sender, address instantiation);

  /*
    *  Storage
    */
  mapping(address => bool) public isInstantiation;
  mapping(address => address[]) public instantiations;

  /*
    * Public functions
    */
  /// @dev Returns number of instantiations by creator.
  /// @param creator Contract creator.
  /// @return Returns number of instantiations by creator.
  function getInstantiationCount(address creator)
    public
    view
    returns (uint)
  {
    return instantiations[creator].length;
  }

  /*
    * Internal functions
    */
  /// @dev Registers contract in factory registry.
  /// @param instantiation Address of contract instantiation.
  function register(address instantiation)
      internal
  {
    isInstantiation[instantiation] = true;
    instantiations[msg.sender].push(instantiation);
    emit ContractInstantiation(msg.sender, instantiation);
  }
}

// File: contracts/interfaces/IMultiSigWalletFactory.sol

pragma solidity ^0.4.19;

interface IMultiSigWalletFactory {
  function create(address[] _owners, uint _required) public returns (address wallet);
}

// File: contracts/newsroom/ACL.sol

pragma solidity ^0.4.19;


/**
@title String-based Access Control List
@author The Civil Media Company
@dev The owner of this smart-contract overrides any role requirement in the requireRole modifier,
and so it is important to use the modifier instead of checking hasRole when creating actual requirements.
The internal functions are not secured in any way and should be extended in the deriving contracts to define
requirements that suit that specific domain.
*/
contract ACL is Ownable {
  event RoleAdded(address indexed granter, address indexed grantee, string role);
  event RoleRemoved(address indexed granter, address indexed grantee, string role);

  mapping(string => RoleData) private roles;

  modifier requireRole(string role) {
    require(isOwner(msg.sender) || hasRole(msg.sender, role));
    _;
  }

  function ACL() Ownable() public {
  }

  /**
  @notice Returns whether a specific addres has a role. Keep in mind that the owner can override role checks
  @param user The address for which role check is done
  @param role A constant name of the role being checked
  */
  function hasRole(address user, string role) public view returns (bool) {
    return roles[role].actors[user];
  }

  /**
  @notice Returns if the specified address is owner of this smart-contract and thus can override any role checks
  @param user The checked address
  */
  function isOwner(address user) public view returns (bool) {
    return user == owner;
  }

  function _addRole(address grantee, string role) internal {
    roles[role].actors[grantee] = true;
    emit RoleAdded(msg.sender, grantee, role);
  }

  function _removeRole(address grantee, string role) internal {
    delete roles[role].actors[grantee];
    emit RoleRemoved(msg.sender, grantee, role);
  }

  struct RoleData {
    mapping(address => bool) actors;
  }
}

// File: contracts/zeppelin-solidity/ECRecovery.sol

pragma solidity ^0.4.24;


/**
 * @title Elliptic curve signature operations
 * @dev Based on https://gist.github.com/axic/5b33912c6f61ae6fd96d6c4a47afde6d
 * TODO Remove this library once solidity supports passing a signature to ecrecover.
 * See https://github.com/ethereum/solidity/issues/864
 */

library ECRecovery {

  /**
   * @dev Recover signer address from a message by using their signature
   * @param _hash bytes32 message, the hash is the signed message. What is recovered is the signer address.
   * @param _sig bytes signature, the signature is generated using web3.eth.sign()
   */
  function recover(bytes32 _hash, bytes _sig)
    internal
    pure
    returns (address)
  {
    bytes32 r;
    bytes32 s;
    uint8 v;

    // Check the signature length
    if (_sig.length != 65) {
      return (address(0));
    }

    // Divide the signature in r, s and v variables
    // ecrecover takes the signature parameters, and the only way to get them
    // currently is to use assembly.
    // solium-disable-next-line security/no-inline-assembly
    assembly {
      r := mload(add(_sig, 32))
      s := mload(add(_sig, 64))
      v := byte(0, mload(add(_sig, 96)))
    }

    // Version of signature should be 27 or 28, but 0 and 1 are also possible versions
    if (v < 27) {
      v += 27;
    }

    // If the version is correct return the signer address
    if (v != 27 && v != 28) {
      return (address(0));
    } else {
      // solium-disable-next-line arg-overflow
      return ecrecover(_hash, v, r, s);
    }
  }

  /**
   * toEthSignedMessageHash
   * @dev prefix a bytes32 value with "\x19Ethereum Signed Message:"
   * and hash the result
   */
  function toEthSignedMessageHash(bytes32 _hash)
    internal
    pure
    returns (bytes32)
  {
    // 32 is the length in bytes of hash,
    // enforced by the type signature above
    return keccak256(
      abi.encodePacked("\x19Ethereum Signed Message:\n32", _hash)
    );
  }
}

// File: contracts/newsroom/Newsroom.sol

pragma solidity ^0.4.19;



/**
@title Newsroom - Smart-contract allowing for Newsroom-like goverance and content publishing

@dev The content number 0 is created automatically and it's use is reserved for the Newsroom charter / about page

Roles that are currently supported are:
- "editor" -> which can publish content, update revisions and add/remove more editors

To post cryptographicaly pre-approved content on the Newsroom, the author's signature must be included and
"Signed"-suffix functions used. Here are the steps to generate authors signature:
1. Take the address of this newsroom and the contentHash as bytes32 and tightly pack them
2. Calculate the keccak256 of tightly packed of above
3. Take the keccak and prepend it with the standard "Ethereum signed message" preffix (see ECRecovery and Ethereum's JSON PRC).
  a. Note - if you're using Ethereum's node instead of manual private key signing, that message shall be prepended by the Node itself
4. Take a keccak256 of that signed messaged
5. Verification can be done by using EC recovery algorithm using the authors signature
The verification can be seen in the internal `verifyRevisionsSignature` function.
The signing can be seen in (at)joincivil/utils package, function prepareNewsroomMessage function (and web3.eth.sign() it afterwards)
*/
contract Newsroom is ACL {
  using ECRecovery for bytes32;

  event ContentPublished(address indexed editor, uint indexed contentId, string uri);
  event RevisionSigned(uint indexed contentId, uint indexed revisionId, address indexed author);
  event RevisionUpdated(address indexed editor, uint indexed contentId, uint indexed revisionId, string uri);
  event NameChanged(string newName);

  string private constant ROLE_EDITOR = "editor";

  mapping(uint => Content) private contents;
  /*
  Maps the revision hash to original contentId where it was first used.
  This is used to prevent replay attacks in which a bad actor reuses an already used signature to sign a new revision of new content.
  New revisions with the same contentID can reuse signatures by design -> this is to allow the Editors to change the canonical URL (eg, website change).
  The end-client of those smart-contracts MUST (RFC-Like) verify the content to it's hash and the the hash to the signature.
  */
  mapping(bytes32 => UsedSignature) private usedSignatures;

  /**
  @notice The number of different contents in this Newsroom, indexed in <0, contentCount) (exclusive) range
  */
  uint public contentCount;
  /**
  @notice User readable name of this Newsroom
  */
  string public name;

  function Newsroom(string newsroomName, string charterUri, bytes32 charterHash) ACL() public {
    setName(newsroomName);
    publishContent(charterUri, charterHash, address(0), "");
  }

  /**
  @notice Gets the latest revision of the content at id contentId
  */
  function getContent(uint contentId) external view returns (bytes32 contentHash, string uri, uint timestamp, address author, bytes signature) {
    return getRevision(contentId, contents[contentId].revisions.length - 1);
  }

  /**
  @notice Gets a specific revision of the content. Each revision increases the ID from the previous one
  @param contentId Which content to get
  @param revisionId Which revision in that get content to get
  */
  function getRevision(
    uint contentId,
    uint revisionId
  ) public view returns (bytes32 contentHash, string uri, uint timestamp, address author, bytes signature)
  {
    Content storage content = contents[contentId];
    require(content.revisions.length > revisionId);

    Revision storage revision = content.revisions[revisionId];

    return (revision.contentHash, revision.uri, revision.timestamp, content.author, revision.signature);
  }

  /**
  @return Number of revisions for a this content, 0 if never published
  */
  function revisionCount(uint contentId) external view returns (uint) {
    return contents[contentId].revisions.length;
  }

  /**
  @notice Returns if the latest revision of the content at ID has the author's signature associated with it
  */
  function isContentSigned(uint contentId) public view returns (bool) {
    return isRevisionSigned(contentId, contents[contentId].revisions.length - 1);
  }

  /**
  @notice Returns if that specific revision of the content has the author's signature
  */
  function isRevisionSigned(uint contentId, uint revisionId) public view returns (bool) {
    Revision[] storage revisions = contents[contentId].revisions;
    require(revisions.length > revisionId);
    return revisions[revisionId].signature.length != 0;
  }

  /**
  @notice Changes the user-readable name of this contract.
  This function can be only called by the owner of the Newsroom
  */
  function setName(string newName) public onlyOwner() {
    require(bytes(newName).length > 0);
    name = newName;

    emit NameChanged(name);
  }

  /**
  @notice Adds a string-based role to the specific address, requires ROLE_EDITOR to use
  */
  function addRole(address who, string role) external requireRole(ROLE_EDITOR) {
    _addRole(who, role);
  }

  function addEditor(address who) external requireRole(ROLE_EDITOR) {
    _addRole(who, ROLE_EDITOR);
  }

  /**
  @notice Removes a string-based role from the specific address, requires ROLE_EDITOR to use
  */
  function removeRole(address who, string role) external requireRole(ROLE_EDITOR) {
    _removeRole(who, role);
  }

  /**
  @notice Saves the content's URI and it's hash into this Newsroom, this creates a new Content and Revision number 0.
  This function requires ROLE_EDITOR or owner to use.
  The content can be cryptographicaly secured / approved by author as per signing procedure
  @param contentUri Canonical URI to access the content. The client should then verify that the content has the same hash
  @param contentHash Keccak256 hash of the content that is linked
  @param author Author that cryptographically signs the content. Null if not signed
  @param signature Cryptographic signature of the author. Empty if not signed
  @return Content ID of the newly published content

  @dev Emits `ContentPublished`, `RevisionUpdated` and optionaly `ContentSigned` events
  */
  function publishContent(
    string contentUri,
    bytes32 contentHash,
    address author,
    bytes signature
  ) public requireRole(ROLE_EDITOR) returns (uint)
  {
    uint contentId = contentCount;
    contentCount++;

    require((author == address(0) && signature.length == 0) || (author != address(0) && signature.length != 0));
    contents[contentId].author = author;
    pushRevision(contentId, contentUri, contentHash, signature);

    emit ContentPublished(msg.sender, contentId, contentUri);
    return contentId;
  }

  /**
  @notice Updates the existing content with a new revision, the content id stays the same while revision id increases afterwards
  Requires that the content was first published
  This function can be only called by ROLE_EDITOR or the owner.
  The new revision can be left unsigned, even if the previous revisions were signed.
  If the new revision is also signed, it has to be approved by the same author that has signed the first revision.
  No signing can be done for articles that were published without any cryptographic author in the first place
  @param signature Signature that cryptographically approves this revision. Empty if not approved
  @return Newest revision id

  @dev Emits `RevisionUpdated`  event
  */
  function updateRevision(uint contentId, string contentUri, bytes32 contentHash, bytes signature) external requireRole(ROLE_EDITOR) {
    pushRevision(contentId, contentUri, contentHash, signature);
  }

  /**
  @notice Allows to backsign a revision by the author. This is indented when an author didn't have time to access
  to their private key but after time they do.
  The author must be the same as the one during publishing.
  If there was no author during publishing this functions allows to update the null author to a real one.
  Once done, the author can't be changed afterwards

  @dev Emits `RevisionSigned` event
  */
  function signRevision(uint contentId, uint revisionId, address author, bytes signature) external requireRole(ROLE_EDITOR) {
    require(contentId < contentCount);

    Content storage content = contents[contentId];

    require(content.author == address(0) || content.author == author);
    require(content.revisions.length > revisionId);

    if (contentId == 0) {
      require(isOwner(msg.sender));
    }

    content.author = author;

    Revision storage revision = content.revisions[revisionId];
    revision.signature = signature;

    require(verifyRevisionSignature(author, contentId, revision));

    emit RevisionSigned(contentId, revisionId, author);
  }

  function verifyRevisionSignature(address author, uint contentId, Revision storage revision) internal returns (bool isSigned) {
    if (author == address(0) || revision.signature.length == 0) {
      require(revision.signature.length == 0);
      return false;
    } else {
      // The url is is not used in the cryptography by design,
      // the rationale is that the Author can approve the content and the Editor might need to set the url
      // after the fact, or things like DNS change, meaning there would be a question of canonical url for that article
      //
      // The end-client of this smart-contract MUST (RFC-like) compare the authenticity of the content behind the URL with the hash of the revision
      bytes32 hashedMessage = keccak256(
        address(this),
        revision.contentHash
      ).toEthSignedMessageHash();

      require(hashedMessage.recover(revision.signature) == author);

      // Prevent replay attacks
      UsedSignature storage lastUsed = usedSignatures[hashedMessage];
      require(lastUsed.wasUsed == false || lastUsed.contentId == contentId);

      lastUsed.wasUsed = true;
      lastUsed.contentId = contentId;

      return true;
    }
  }

  function pushRevision(uint contentId, string contentUri, bytes32 contentHash, bytes signature) internal returns (uint) {
    require(contentId < contentCount);

    if (contentId == 0) {
      require(isOwner(msg.sender));
    }

    Content storage content = contents[contentId];

    uint revisionId = content.revisions.length;

    content.revisions.push(Revision(
      contentHash,
      contentUri,
      now,
      signature
    ));

    if (verifyRevisionSignature(content.author, contentId, content.revisions[revisionId])) {
      emit RevisionSigned(contentId, revisionId, content.author);
    }

    emit RevisionUpdated(msg.sender, contentId, revisionId, contentUri);
  }

  struct Content {
    Revision[] revisions;
    address author;
  }

  struct Revision {
    bytes32 contentHash;
    string uri;
    uint timestamp;
    bytes signature;
  }

  // Since all uints are 0x0 by default, we require additional bool to confirm that the contentID is not equal to content with actualy ID 0x0
  struct UsedSignature {
    bool wasUsed;
    uint contentId;
  }
}

// File: contracts/newsroom/NewsroomFactory.sol

pragma solidity ^0.4.19;
// TODO(ritave): Think of a way to not require contracts out of package




/**
@title Newsroom with Board of Directors factory
@notice This smart-contract creates the full multi-smart-contract structure of a Newsroom in a single transaction
After creation the Newsroom is owned by the Board of Directors which is represented by a multisig-gnosis-based wallet
*/
contract NewsroomFactory is Factory {
  IMultiSigWalletFactory public multisigFactory;
  mapping (address => address) public multisigNewsrooms;

  function NewsroomFactory(address multisigFactoryAddr) public {
    multisigFactory = IMultiSigWalletFactory(multisigFactoryAddr);
  }

  /**
  @notice Creates a fully-set-up newsroom, a multisig wallet and transfers it's ownership straight to the wallet at hand
  */
  function create(string name, string charterUri, bytes32 charterHash, address[] initialOwners, uint initialRequired)
    public
    returns (Newsroom newsroom)
  {
    address wallet = multisigFactory.create(initialOwners, initialRequired);
    newsroom = new Newsroom(name, charterUri, charterHash);
    newsroom.addEditor(msg.sender);
    newsroom.transferOwnership(wallet);
    multisigNewsrooms[wallet] = newsroom;
    register(newsroom);
  }
}

// File: contracts/proof-of-use/telemetry/TokenTelemetryI.sol

pragma solidity ^0.4.23;

interface TokenTelemetryI {
  function onRequestVotingRights(address user, uint tokenAmount) external;
}

// File: contracts/token/CivilTokenController.sol

pragma solidity ^0.4.24;






contract CivilTokenController is ManagedWhitelist, ERC1404, TokenTelemetryI {
  using MessagesAndCodes for MessagesAndCodes.Data;
  MessagesAndCodes.Data internal messagesAndCodes;

  uint8 public constant SUCCESS_CODE = 0;
  string public constant SUCCESS_MESSAGE = "SUCCESS";

  uint8 public constant MUST_BE_A_CIVILIAN_CODE = 1;
  string public constant MUST_BE_A_CIVILIAN_ERROR = "MUST_BE_A_CIVILIAN";

  uint8 public constant MUST_BE_UNLOCKED_CODE = 2;
  string public constant MUST_BE_UNLOCKED_ERROR = "MUST_BE_UNLOCKED";

  uint8 public constant MUST_BE_VERIFIED_CODE = 3;
  string public constant MUST_BE_VERIFIED_ERROR = "MUST_BE_VERIFIED";

  constructor () public {
    messagesAndCodes.addMessage(SUCCESS_CODE, SUCCESS_MESSAGE);
    messagesAndCodes.addMessage(MUST_BE_A_CIVILIAN_CODE, MUST_BE_A_CIVILIAN_ERROR);
    messagesAndCodes.addMessage(MUST_BE_UNLOCKED_CODE, MUST_BE_UNLOCKED_ERROR);
    messagesAndCodes.addMessage(MUST_BE_VERIFIED_CODE, MUST_BE_VERIFIED_ERROR);

  }

  function detectTransferRestriction (address from, address to, uint value)
      public
      view
      returns (uint8)
  {
    // FROM is core or users that have proved use
    if (coreList[from] || unlockedList[from]) {
      return SUCCESS_CODE;
    } else if (storefrontList[from]) { // FROM is a storefront wallet
      // allow if this is going to a verified user or a core address
      if (verifiedList[to] || coreList[to]) {
        return SUCCESS_CODE;
      } else {
        // Storefront cannot transfer to wallets that have not been KYCed
        return MUST_BE_VERIFIED_CODE;
      }
    } else if (newsroomMultisigList[from]) { // FROM is a newsroom multisig
      // TO is CORE or CIVILIAN
      if ( coreList[to] || civilianList[to]) {
        return SUCCESS_CODE;
      } else {
        return MUST_BE_UNLOCKED_CODE;
      }
    } else if (civilianList[from]) { // FROM is a civilian
      // FROM is sending TO a core address or a newsroom
      if (coreList[to] || newsroomMultisigList[to]) {
        return SUCCESS_CODE;
      } else {
        // otherwise fail
        return MUST_BE_UNLOCKED_CODE;
      }
    } else {
      // reject if FROM is not a civilian
      return MUST_BE_A_CIVILIAN_CODE;
    }
  }

  function messageForTransferRestriction (uint8 restrictionCode)
    public
    view
    returns (string message)
  {
    message = messagesAndCodes.messages[restrictionCode];
  }

  function onRequestVotingRights(address user, uint tokenAmount) external {
    addToUnlocked(user);
  }
}

// File: contracts/zeppelin-solidity/token/ERC20/IERC20.sol

pragma solidity ^0.4.24;

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
interface IERC20 {
    function totalSupply() external view returns (uint256);

    function balanceOf(address who) external view returns (uint256);

    function allowance(address owner, address spender) external view returns (uint256);

    function transfer(address to, uint256 value) external returns (bool);

    function approve(address spender, uint256 value) external returns (bool);

    function transferFrom(address from, address to, uint256 value) external returns (bool);

    event Transfer(address indexed from, address indexed to, uint256 value);

    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// File: contracts/zeppelin-solidity/math/SafeMath.sol

pragma solidity ^0.4.24;


/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {

  /**
  * @dev Multiplies two numbers, throws on overflow.
  */
  function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
    // Gas optimization: this is cheaper than asserting 'a' not being zero, but the
    // benefit is lost if 'b' is also tested.
    // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
    if (_a == 0) {
      return 0;
    }

    c = _a * _b;
    assert(c / _a == _b);
    return c;
  }

  /**
  * @dev Integer division of two numbers, truncating the quotient.
  */
  function div(uint256 _a, uint256 _b) internal pure returns (uint256) {
    // assert(_b > 0); // Solidity automatically throws when dividing by 0
    // uint256 c = _a / _b;
    // assert(_a == _b * c + _a % _b); // There is no case in which this doesn't hold
    return _a / _b;
  }

  /**
  * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
  */
  function sub(uint256 _a, uint256 _b) internal pure returns (uint256) {
    assert(_b <= _a);
    return _a - _b;
  }

  /**
  * @dev Adds two numbers, throws on overflow.
  */
  function add(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
    c = _a + _b;
    assert(c >= _a);
    return c;
  }
}

// File: contracts/zeppelin-solidity/token/ERC20/ERC20.sol

pragma solidity ^0.4.24;



/**
 * @title Standard ERC20 token
 *
 * @dev Implementation of the basic standard token.
 * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
 * Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
 */
contract ERC20 is IERC20 {
  using SafeMath for uint256;

  mapping (address => uint256) private _balances;

  mapping (address => mapping (address => uint256)) private _allowed;

  uint256 private _totalSupply;

  /**
  * @dev Total number of tokens in existence
  */
  function totalSupply() public view returns (uint256) {
    return _totalSupply;
  }

  /**
  * @dev Gets the balance of the specified address.
  * @param owner The address to query the balance of.
  * @return An uint256 representing the amount owned by the passed address.
  */
  function balanceOf(address owner) public view returns (uint256) {
    return _balances[owner];
  }

  /**
    * @dev Function to check the amount of tokens that an owner allowed to a spender.
    * @param owner address The address which owns the funds.
    * @param spender address The address which will spend the funds.
    * @return A uint256 specifying the amount of tokens still available for the spender.
    */
  function allowance(address owner, address spender) public view returns (uint256) {
    return _allowed[owner][spender];
  }

  /**
  * @dev Transfer token for a specified address
  * @param to The address to transfer to.
  * @param value The amount to be transferred.
  */
  function transfer(address to, uint256 value) public returns (bool) {
    _transfer(msg.sender, to, value);
    return true;
  }

  /**
    * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
    * Beware that changing an allowance with this method brings the risk that someone may use both the old
    * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
    * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
    * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
    * @param spender The address which will spend the funds.
    * @param value The amount of tokens to be spent.
    */
  function approve(address spender, uint256 value) public returns (bool) {
    require(spender != address(0));

    _allowed[msg.sender][spender] = value;
    emit Approval(msg.sender, spender, value);
    return true;
  }

  /**
    * @dev Transfer tokens from one address to another
    * @param from address The address which you want to send tokens from
    * @param to address The address which you want to transfer to
    * @param value uint256 the amount of tokens to be transferred
    */
  function transferFrom(address from, address to, uint256 value) public returns (bool) {
    _allowed[from][msg.sender] = _allowed[from][msg.sender].sub(value);
    _transfer(from, to, value);
    return true;
  }

  /**
    * @dev Increase the amount of tokens that an owner allowed to a spender.
    * approve should be called when allowed_[_spender] == 0. To increment
    * allowed value is better to use this function to avoid 2 calls (and wait until
    * the first transaction is mined)
    * From MonolithDAO Token.sol
    * @param spender The address which will spend the funds.
    * @param addedValue The amount of tokens to increase the allowance by.
    */
  function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
    require(spender != address(0));

    _allowed[msg.sender][spender] = _allowed[msg.sender][spender].add(addedValue);
    emit Approval(msg.sender, spender, _allowed[msg.sender][spender]);
    return true;
  }

  /**
    * @dev Decrease the amount of tokens that an owner allowed to a spender.
    * approve should be called when allowed_[_spender] == 0. To decrement
    * allowed value is better to use this function to avoid 2 calls (and wait until
    * the first transaction is mined)
    * From MonolithDAO Token.sol
    * @param spender The address which will spend the funds.
    * @param subtractedValue The amount of tokens to decrease the allowance by.
    */
  function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
    require(spender != address(0));

    _allowed[msg.sender][spender] = _allowed[msg.sender][spender].sub(subtractedValue);
    emit Approval(msg.sender, spender, _allowed[msg.sender][spender]);
    return true;
  }

  /**
  * @dev Transfer token for a specified addresses
  * @param from The address to transfer from.
  * @param to The address to transfer to.
  * @param value The amount to be transferred.
  */
  function _transfer(address from, address to, uint256 value) internal {
    require(to != address(0));

    _balances[from] = _balances[from].sub(value);
    _balances[to] = _balances[to].add(value);
    emit Transfer(from, to, value);
  }

  /**
    * @dev Internal function that mints an amount of the token and assigns it to
    * an account. This encapsulates the modification of balances such that the
    * proper events are emitted.
    * @param account The account that will receive the created tokens.
    * @param value The amount that will be created.
    */
  function _mint(address account, uint256 value) internal {
    require(account != address(0));

    _totalSupply = _totalSupply.add(value);
    _balances[account] = _balances[account].add(value);
    emit Transfer(address(0), account, value);
  }

  /**
    * @dev Internal function that burns an amount of the token of a given
    * account.
    * @param account The account whose tokens will be burnt.
    * @param value The amount that will be burnt.
    */
  function _burn(address account, uint256 value) internal {
    require(account != address(0));

    _totalSupply = _totalSupply.sub(value);
    _balances[account] = _balances[account].sub(value);
    emit Transfer(account, address(0), value);
  }

  /**
    * @dev Internal function that burns an amount of the token of a given
    * account, deducting from the sender's allowance for said account. Uses the
    * internal burn function.
    * @param account The account whose tokens will be burnt.
    * @param value The amount that will be burnt.
    */
  function _burnFrom(address account, uint256 value) internal {
    // Should https://github.com/OpenZeppelin/zeppelin-solidity/issues/707 be accepted,
    // this function needs to emit an event with the updated approval.
    _allowed[account][msg.sender] = _allowed[account][msg.sender].sub(value);
    _burn(account, value);
  }
}

// File: contracts/zeppelin-solidity/token/ERC20/ERC20Detailed.sol

pragma solidity ^0.4.24;


/**
 * @title ERC20Detailed token
 * @dev The decimals are only for visualization purposes.
 * All the operations are done using the smallest and indivisible token unit,
 * just as on Ethereum all the operations are done in wei.
 */
contract ERC20Detailed is IERC20 {
  string private _name;
  string private _symbol;
  uint8 private _decimals;

  constructor (string name, string symbol, uint8 decimals) public {
    _name = name;
    _symbol = symbol;
    _decimals = decimals;
  }

  /**
    * @return the name of the token.
    */
  function name() public view returns (string) {
    return _name;
  }

  /**
    * @return the symbol of the token.
    */
  function symbol() public view returns (string) {
    return _symbol;
  }

  /**
    * @return the number of decimals of the token.
    */
  function decimals() public view returns (uint8) {
    return _decimals;
  }
}

// File: contracts/token/CVLToken.sol

pragma solidity ^0.4.24;






/// @title Extendable reference implementation for the ERC-1404 token
/// @dev Inherit from this contract to implement your own ERC-1404 token
contract CVLToken is ERC20, ERC20Detailed, Ownable, ERC1404 {

  ERC1404 public controller;

  constructor (uint256 _initialAmount,
    string _tokenName,
    uint8 _decimalUnits,
    string _tokenSymbol,
    ERC1404 _controller
    ) public ERC20Detailed(_tokenName, _tokenSymbol, _decimalUnits) {
    require(address(_controller) != address(0), "controller not provided");
    controller = _controller;
    _mint(msg.sender, _initialAmount);              // Give the creator all initial tokens
  }

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

  function changeController(ERC1404 _controller) public onlyOwner {
    require(address(_controller) != address(0), "controller not provided");
    controller = _controller;
  }

  modifier notRestricted (address from, address to, uint256 value) {
    require(controller.detectTransferRestriction(from, to, value) == 0, "token transfer restricted");
    _;
  }

  function transfer (address to, uint256 value)
      public
      notRestricted(msg.sender, to, value)
      returns (bool success)
  {
    success = super.transfer(to, value);
  }

  function transferFrom (address from, address to, uint256 value)
      public
      notRestricted(from, to, value)
      returns (bool success)
  {
    success = super.transferFrom(from, to, value);
  }

  function detectTransferRestriction (address from, address to, uint256 value) public view returns (uint8) {
    return controller.detectTransferRestriction(from, to, value);
  }

  function messageForTransferRestriction (uint8 restrictionCode) public view returns (string) {
    return controller.messageForTransferRestriction(restrictionCode);
  }


}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_controller","type":"address"}],"name":"changeController","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"restrictionCode","type":"uint8"}],"name":"messageForTransferRestriction","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"detectTransferRestriction","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"controller","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_initialAmount","type":"uint256"},{"name":"_tokenName","type":"string"},{"name":"_decimalUnits","type":"uint8"},{"name":"_tokenSymbol","type":"string"},{"name":"_controller","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"}],"name":"OwnershipRenounced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}]

60806040523480156200001157600080fd5b50604051620011dc380380620011dc83398101604090815281516020808401519284015160608501516080860151948601805194969095929491019285918491869162000065916003919086019062000229565b5081516200007b90600490602085019062000229565b506005805460ff191660ff929092169190911761010060a860020a03191661010033021790555050600160a060020a03811615156200011b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f636f6e74726f6c6c6572206e6f742070726f7669646564000000000000000000604482015290519081900360640190fd5b60068054600160a060020a031916600160a060020a0383161790556200014b338664010000000062000156810204565b5050505050620002ce565b600160a060020a03821615156200016c57600080fd5b60025462000189908264010000000062000d416200021582021704565b600255600160a060020a038216600090815260208190526040902054620001bf908264010000000062000d416200021582021704565b600160a060020a0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b818101828110156200022357fe5b92915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200026c57805160ff19168380011785556200029c565b828001600101855582156200029c579182015b828111156200029c5782518255916020019190600101906200027f565b50620002aa929150620002ae565b5090565b620002cb91905b80821115620002aa5760008155600101620002b5565b90565b610efe80620002de6000396000f3006080604052600436106100fb5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610100578063095ea7b31461018a57806318160ddd146101c257806323b872dd146101e9578063313ce56714610213578063395093511461023e5780633cebb8231461026257806370a0823114610285578063715018a6146102a65780637f4ab1dd146102bb5780638da5cb5b146102d657806395d89b4114610307578063a457c2d71461031c578063a9059cbb14610340578063d4ce141514610364578063dd62ed3e1461038e578063f2fde38b146103b5578063f77c4791146103d6575b600080fd5b34801561010c57600080fd5b506101156103eb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014f578181015183820152602001610137565b50505050905090810190601f16801561017c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561019657600080fd5b506101ae600160a060020a0360043516602435610481565b604080519115158252519081900360200190f35b3480156101ce57600080fd5b506101d76104ff565b60408051918252519081900360200190f35b3480156101f557600080fd5b506101ae600160a060020a0360043581169060243516604435610505565b34801561021f57600080fd5b5061022861061e565b6040805160ff9092168252519081900360200190f35b34801561024a57600080fd5b506101ae600160a060020a0360043516602435610627565b34801561026e57600080fd5b50610283600160a060020a03600435166106d7565b005b34801561029157600080fd5b506101d7600160a060020a03600435166107cd565b3480156102b257600080fd5b506102836107e8565b3480156102c757600080fd5b5061011560ff600435166108ab565b3480156102e257600080fd5b506102eb6109a1565b60408051600160a060020a039092168252519081900360200190f35b34801561031357600080fd5b506101156109b5565b34801561032857600080fd5b506101ae600160a060020a0360043516602435610a16565b34801561034c57600080fd5b506101ae600160a060020a0360043516602435610a61565b34801561037057600080fd5b50610228600160a060020a0360043581169060243516604435610b79565b34801561039a57600080fd5b506101d7600160a060020a0360043581169060243516610c27565b3480156103c157600080fd5b50610283600160a060020a0360043516610c52565b3480156103e257600080fd5b506102eb610cc5565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104775780601f1061044c57610100808354040283529160200191610477565b820191906000526020600020905b81548152906001019060200180831161045a57829003601f168201915b5050505050905090565b6000600160a060020a038316151561049857600080fd5b336000818152600160209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60025490565b600654604080517fd4ce1415000000000000000000000000000000000000000000000000000000008152600160a060020a0380871660048301528086166024830152604482018590529151600093879387938793919092169163d4ce141591606480830192602092919082900301818a87803b15801561058457600080fd5b505af1158015610598573d6000803e3d6000fd5b505050506040513d60208110156105ae57600080fd5b505160ff1615610608576040805160e560020a62461bcd02815260206004820152601960248201527f746f6b656e207472616e73666572207265737472696374656400000000000000604482015290519081900360640190fd5b610613878787610cd4565b979650505050505050565b60055460ff1690565b6000600160a060020a038316151561063e57600080fd5b336000908152600160209081526040808320600160a060020a0387168452909152902054610672908363ffffffff610d4116565b336000818152600160209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b6005546101009004600160a060020a0316331461073e576040805160e560020a62461bcd02815260206004820152600960248201527f6e6f74206f776e65720000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600160a060020a038116151561079e576040805160e560020a62461bcd02815260206004820152601760248201527f636f6e74726f6c6c6572206e6f742070726f7669646564000000000000000000604482015290519081900360640190fd5b6006805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600160a060020a031660009081526020819052604090205490565b6005546101009004600160a060020a0316331461084f576040805160e560020a62461bcd02815260206004820152600960248201527f6e6f74206f776e65720000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600554604051610100909104600160a060020a0316907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a26005805474ffffffffffffffffffffffffffffffffffffffff0019169055565b600654604080517f7f4ab1dd00000000000000000000000000000000000000000000000000000000815260ff841660048201529051606092600160a060020a031691637f4ab1dd91602480830192600092919082900301818387803b15801561091357600080fd5b505af1158015610927573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561095057600080fd5b81019080805164010000000081111561096857600080fd5b8201602081018481111561097b57600080fd5b815164010000000081118282018710171561099557600080fd5b50909695505050505050565b6005546101009004600160a060020a031681565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104775780601f1061044c57610100808354040283529160200191610477565b6000600160a060020a0383161515610a2d57600080fd5b336000908152600160209081526040808320600160a060020a0387168452909152902054610672908363ffffffff610d5416565b600654604080517fd4ce14150000000000000000000000000000000000000000000000000000000081523360048201819052600160a060020a038087166024840152604483018690529251600094919387938793919091169163d4ce14159160648082019260209290919082900301818a87803b158015610ae157600080fd5b505af1158015610af5573d6000803e3d6000fd5b505050506040513d6020811015610b0b57600080fd5b505160ff1615610b65576040805160e560020a62461bcd02815260206004820152601960248201527f746f6b656e207472616e73666572207265737472696374656400000000000000604482015290519081900360640190fd5b610b6f8686610d66565b9695505050505050565b600654604080517fd4ce1415000000000000000000000000000000000000000000000000000000008152600160a060020a0386811660048301528581166024830152604482018590529151600093929092169163d4ce14159160648082019260209290919082900301818787803b158015610bf357600080fd5b505af1158015610c07573d6000803e3d6000fd5b505050506040513d6020811015610c1d57600080fd5b5051949350505050565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b6005546101009004600160a060020a03163314610cb9576040805160e560020a62461bcd02815260206004820152600960248201527f6e6f74206f776e65720000000000000000000000000000000000000000000000604482015290519081900360640190fd5b610cc281610d7c565b50565b600654600160a060020a031681565b600160a060020a0383166000908152600160209081526040808320338452909152812054610d08908363ffffffff610d5416565b600160a060020a0385166000908152600160209081526040808320338452909152902055610d37848484610e05565b5060019392505050565b81810182811015610d4e57fe5b92915050565b600082821115610d6057fe5b50900390565b6000610d73338484610e05565b50600192915050565b600160a060020a0381161515610d9157600080fd5b600554604051600160a060020a0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a360058054600160a060020a039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b600160a060020a0382161515610e1a57600080fd5b600160a060020a038316600090815260208190526040902054610e43908263ffffffff610d5416565b600160a060020a038085166000908152602081905260408082209390935590841681522054610e78908263ffffffff610d4116565b600160a060020a038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35050505600a165627a7a72305820dac04f05458cdeb4af0f3e06354cc2974db1073b65c7dde071a446ac4443cfc3002900000000000000000000000000000000000000000052b7d2dcc80cd2e400000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000d3661aa186d83692b29855d396a3a44bc8fd5836000000000000000000000000000000000000000000000000000000000000000343564c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000343564c0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106100fb5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610100578063095ea7b31461018a57806318160ddd146101c257806323b872dd146101e9578063313ce56714610213578063395093511461023e5780633cebb8231461026257806370a0823114610285578063715018a6146102a65780637f4ab1dd146102bb5780638da5cb5b146102d657806395d89b4114610307578063a457c2d71461031c578063a9059cbb14610340578063d4ce141514610364578063dd62ed3e1461038e578063f2fde38b146103b5578063f77c4791146103d6575b600080fd5b34801561010c57600080fd5b506101156103eb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014f578181015183820152602001610137565b50505050905090810190601f16801561017c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561019657600080fd5b506101ae600160a060020a0360043516602435610481565b604080519115158252519081900360200190f35b3480156101ce57600080fd5b506101d76104ff565b60408051918252519081900360200190f35b3480156101f557600080fd5b506101ae600160a060020a0360043581169060243516604435610505565b34801561021f57600080fd5b5061022861061e565b6040805160ff9092168252519081900360200190f35b34801561024a57600080fd5b506101ae600160a060020a0360043516602435610627565b34801561026e57600080fd5b50610283600160a060020a03600435166106d7565b005b34801561029157600080fd5b506101d7600160a060020a03600435166107cd565b3480156102b257600080fd5b506102836107e8565b3480156102c757600080fd5b5061011560ff600435166108ab565b3480156102e257600080fd5b506102eb6109a1565b60408051600160a060020a039092168252519081900360200190f35b34801561031357600080fd5b506101156109b5565b34801561032857600080fd5b506101ae600160a060020a0360043516602435610a16565b34801561034c57600080fd5b506101ae600160a060020a0360043516602435610a61565b34801561037057600080fd5b50610228600160a060020a0360043581169060243516604435610b79565b34801561039a57600080fd5b506101d7600160a060020a0360043581169060243516610c27565b3480156103c157600080fd5b50610283600160a060020a0360043516610c52565b3480156103e257600080fd5b506102eb610cc5565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104775780601f1061044c57610100808354040283529160200191610477565b820191906000526020600020905b81548152906001019060200180831161045a57829003601f168201915b5050505050905090565b6000600160a060020a038316151561049857600080fd5b336000818152600160209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60025490565b600654604080517fd4ce1415000000000000000000000000000000000000000000000000000000008152600160a060020a0380871660048301528086166024830152604482018590529151600093879387938793919092169163d4ce141591606480830192602092919082900301818a87803b15801561058457600080fd5b505af1158015610598573d6000803e3d6000fd5b505050506040513d60208110156105ae57600080fd5b505160ff1615610608576040805160e560020a62461bcd02815260206004820152601960248201527f746f6b656e207472616e73666572207265737472696374656400000000000000604482015290519081900360640190fd5b610613878787610cd4565b979650505050505050565b60055460ff1690565b6000600160a060020a038316151561063e57600080fd5b336000908152600160209081526040808320600160a060020a0387168452909152902054610672908363ffffffff610d4116565b336000818152600160209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b6005546101009004600160a060020a0316331461073e576040805160e560020a62461bcd02815260206004820152600960248201527f6e6f74206f776e65720000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600160a060020a038116151561079e576040805160e560020a62461bcd02815260206004820152601760248201527f636f6e74726f6c6c6572206e6f742070726f7669646564000000000000000000604482015290519081900360640190fd5b6006805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600160a060020a031660009081526020819052604090205490565b6005546101009004600160a060020a0316331461084f576040805160e560020a62461bcd02815260206004820152600960248201527f6e6f74206f776e65720000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600554604051610100909104600160a060020a0316907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a26005805474ffffffffffffffffffffffffffffffffffffffff0019169055565b600654604080517f7f4ab1dd00000000000000000000000000000000000000000000000000000000815260ff841660048201529051606092600160a060020a031691637f4ab1dd91602480830192600092919082900301818387803b15801561091357600080fd5b505af1158015610927573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561095057600080fd5b81019080805164010000000081111561096857600080fd5b8201602081018481111561097b57600080fd5b815164010000000081118282018710171561099557600080fd5b50909695505050505050565b6005546101009004600160a060020a031681565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104775780601f1061044c57610100808354040283529160200191610477565b6000600160a060020a0383161515610a2d57600080fd5b336000908152600160209081526040808320600160a060020a0387168452909152902054610672908363ffffffff610d5416565b600654604080517fd4ce14150000000000000000000000000000000000000000000000000000000081523360048201819052600160a060020a038087166024840152604483018690529251600094919387938793919091169163d4ce14159160648082019260209290919082900301818a87803b158015610ae157600080fd5b505af1158015610af5573d6000803e3d6000fd5b505050506040513d6020811015610b0b57600080fd5b505160ff1615610b65576040805160e560020a62461bcd02815260206004820152601960248201527f746f6b656e207472616e73666572207265737472696374656400000000000000604482015290519081900360640190fd5b610b6f8686610d66565b9695505050505050565b600654604080517fd4ce1415000000000000000000000000000000000000000000000000000000008152600160a060020a0386811660048301528581166024830152604482018590529151600093929092169163d4ce14159160648082019260209290919082900301818787803b158015610bf357600080fd5b505af1158015610c07573d6000803e3d6000fd5b505050506040513d6020811015610c1d57600080fd5b5051949350505050565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b6005546101009004600160a060020a03163314610cb9576040805160e560020a62461bcd02815260206004820152600960248201527f6e6f74206f776e65720000000000000000000000000000000000000000000000604482015290519081900360640190fd5b610cc281610d7c565b50565b600654600160a060020a031681565b600160a060020a0383166000908152600160209081526040808320338452909152812054610d08908363ffffffff610d5416565b600160a060020a0385166000908152600160209081526040808320338452909152902055610d37848484610e05565b5060019392505050565b81810182811015610d4e57fe5b92915050565b600082821115610d6057fe5b50900390565b6000610d73338484610e05565b50600192915050565b600160a060020a0381161515610d9157600080fd5b600554604051600160a060020a0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a360058054600160a060020a039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b600160a060020a0382161515610e1a57600080fd5b600160a060020a038316600090815260208190526040902054610e43908263ffffffff610d5416565b600160a060020a038085166000908152602081905260408082209390935590841681522054610e78908263ffffffff610d4116565b600160a060020a038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35050505600a165627a7a72305820dac04f05458cdeb4af0f3e06354cc2974db1073b65c7dde071a446ac4443cfc30029

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000052b7d2dcc80cd2e400000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000d3661aa186d83692b29855d396a3a44bc8fd5836000000000000000000000000000000000000000000000000000000000000000343564c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000343564c0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _initialAmount (uint256): 100000000000000000000000000
Arg [1] : _tokenName (string): CVL
Arg [2] : _decimalUnits (uint8): 18
Arg [3] : _tokenSymbol (string): CVL
Arg [4] : _controller (address): 0xD3661AA186D83692b29855D396a3a44bc8fD5836

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000052b7d2dcc80cd2e4000000
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [4] : 000000000000000000000000d3661aa186d83692b29855d396a3a44bc8fd5836
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 43564c0000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 43564c0000000000000000000000000000000000000000000000000000000000


Swarm Source

bzzr://dac04f05458cdeb4af0f3e06354cc2974db1073b65c7dde071a446ac4443cfc3
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.