Contract 0x3b226ff6aad7851d3263e53cb7688d13a07f6e81

Contract Overview

Balance:
0 Ether

Token:
TxHash Block Age From To Value [TxFee]
0xf067423190fbfa3dcfdd7b2db05f87e5d9ddaca9221a549bd2439d8d1e8e47801057866820 hrs 39 mins ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00074278
0xee1be1507b28c68522bb51bc3512a311529d407d8fce56763ff5604b25d14f6f1057831022 hrs 26 mins ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00074278
0xf9cf8143121946aafda931c2ea99f495da606cadf26a16bfb1c7e38061117e0a105738671 day 20 hrs ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00074278
0xe0220bec9ff020f543f71c3fd1d14726299db43d9522e2a271e07b354a2dafaa105730862 days 47 mins ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00074278
0xfd51ff7e57e2d84b11f52fa122149a63f0b4ce7e08432e91d55c190ea81ad56e105729282 days 1 hr ago0x93a685523e1231233b50308d14ca9642ccbd3604 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00004568
0xef7dfb2c8f539a11a12a1b68fa72ef8f8dd6ae94419578e75b453e4ff110c811105728562 days 1 hr ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00104278
0xe33bf3c7101976be9bdb25325fa557a192176774e634452a7da6de5d9d1403ea105723022 days 4 hrs ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00104278
0x71e66c7bf9e8fae3eed3d4760caf496ed7443f37cb9206525cec48838d2c7965105690112 days 21 hrs ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00074278
0x091f4b8ecebd746599c2df8e3c88173db81e209278413437530a286aaeb24e85105667013 days 8 hrs ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00074278
0x565b5d02a279f4cbdcfd9c9fe342478c7aa06b8d07788c6a4e5cb8d7b5a6ece4105641713 days 21 hrs ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00074278
0xb5107d044199d8b4bf095e9174dc34406412f8e32aaf452d6665ab02900ff646105616334 days 10 hrs ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00074278
0x9b093ad82e122f05b12b14ba3eb91c7f7d928cc3463b01111c16ccf73df47221105593424 days 22 hrs ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00074278
0x525a38a39c155725cce7d448ca094337186d2634f553d0d76cda19c88c113ed1105540965 days 16 hrs ago0x4e01a855901c9d6f80b1c171c1d5dd0060f6fdc7 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00003068
0x9a277c0dbab76677c2ea860eeb80d1f64c61e0b0b6aff5c5808e5e00a6c8c624105540935 days 16 hrs ago0x4e01a855901c9d6f80b1c171c1d5dd0060f6fdc7 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.000045744
0x8c770ed2f5f3537f4287e47d9e1ca20f1ef7dbf189831f3db5aa7ccc84f3ddec105540845 days 16 hrs ago0x4e01a855901c9d6f80b1c171c1d5dd0060f6fdc7 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00004568
0xcb9ea11d392fb081cb2c5f7327269f729a309fc34a474fc48b1053e2bb334837105523235 days 22 hrs ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00074278
0x2c490ec2c49b99cafc019c403feef95602f10754f77f28eda4b7c0390dced67a105521745 days 22 hrs ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00074278
0x45d6fcd7037f67840216bc4d638c22a62300e8b66b34f481ccfb95150d736dad105477106 days 13 hrs ago0xe46ad8db2ebbc5f25d0d73406b135e73fdd6abd9 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00004568
0xdacaf14ad1fd833b0216cf260dd0c63330f0eb03c028fdefdebaf35cc06654cc105454156 days 21 hrs ago0x7dd8199517ffa1809dd6a8d5a8ec9498b11eb8b0 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.0000508
0x47c8eb355e73d456da2a10dffbd0ed56ef9a41fa61793e15048a4e21d9e2af19105453756 days 21 hrs ago0x7dd8199517ffa1809dd6a8d5a8ec9498b11eb8b0 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.000047594
0x6e54fb562f5e6c528e0dcdf3031b0ecbdd80c20368b9f353b1dcd3c2143a2782105453626 days 21 hrs ago0x7dd8199517ffa1809dd6a8d5a8ec9498b11eb8b0 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00006136
0xef648ab5f612e3f322d6a12b044130fab2630616e1086f3a84bd4c0227ed4350105453506 days 21 hrs ago0x7dd8199517ffa1809dd6a8d5a8ec9498b11eb8b0 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00009136
0x7663e2f27fe864c10297c3ffba8268b5a085f8a83b8d983b24210a1b0fc61a5d105447756 days 23 hrs ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00074278
0xc647920f86dd740744a85839cd4a754a77a3dd6bc33c021d0ffc74b09b4dbdbc105447606 days 23 hrs ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00074278
0xdcbf17b8519054defa967e38dc905e495b1a4064594959ace591d591a1eecd10105378887 days 23 hrs ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49 IN  0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00104278
[ Download CSV Export 

Latest 25 internal transaction, Click here to view more Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
0xc0766240e52e9eb2ea2b0e8c5917802f6fac8f14fa2baeac582c2fdc780ddfb1105813217 hrs 4 mins ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x0e2fda03ac8db014bf684fd8d097ce28a0ce31b8d77eb377e7fb1ecd1dfff075105729302 days 1 hr ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x476f124e3822524fe80494efb2ba5b3f72dc0b00870fbd44ea213365cb2b5c58105540985 days 16 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x0bf52b0017a96f0d159a72d3a88728c4b4ae59d485c4b489c97ee5c33cbd97cf105540885 days 16 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x3f96749f7afe5b974fd3df34d4d84c1f0c52c4ddfd4f1a706ec1472b74edc20e105477346 days 13 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0xc39487b2f56eae49d6c7e0d6fe47a26ef8aba9d6ca48f34803816401134caa9b105477046 days 13 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0xa4b163461ef1d135fb48265eb44ad7693e9042fc6da172ef5f2faa46d5f52f821050697712 days 6 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x3a444103ba595404c1125a8154ffa8051768d4b4fea3d5e200845f0360b7923e1050697212 days 6 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x589b4cef1b5b39aa180befbfe3d0b4ec6f844e0833525369ff151675c40cd2b41049809513 days 12 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x572fe9593ab9a4296424056a53a33e9549f0cdc4a241cd10d4dc9c04f968bc8f1047424916 days 20 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0xdcd91fa391f410008306d499f3b989c6958e9dad16805b52cf9568e01bb71f141045335919 days 18 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0xa8c17a62e6c014106095910566ad1552cc33e00e1ac8ace80be664866fcec04e1044637721 days 3 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x81245cbab8809f27d5d0ad1792d2182924fbd53b9ef2354c82a18beaf0881bd91044525821 days 9 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x5e403050652ff9395945bad736466c818e29a451a92fb592f8295e17d1f645ae1044046822 days 9 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0xcedb84a45b9831b2bb6f748c0f01aec15f5118813a93097c22680b3f518d1d431043972922 days 12 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0xaa7997cae5b788beaff19d2d2d17d48fa576e1a8ff038faa289efcf0883c22d61043942622 days 14 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0xb32a40d70462cbae5403771b20d1b25ce944d20d98f05a9ebdd724b3a59c7a6c1042511924 days 22 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x3655d888cb6c435804bc93203338806fd5b6483080f210d3a33b6f03e0de465a1041778425 days 23 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x4048003033dbc63129397d327b4b4962e5c2a65d05406974fbf2dafa44ee8b681041776325 days 23 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x7c8753ad70fbaaadf570b1cd2c2a40f15b7661843b9e4e6258d0054866bb7cc01041544526 days 7 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0xa086dbd1aa68b55aa77a0ef4ad6efbeac4b303498ad023e9859f0798fadb65f71041516426 days 8 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0xf27cd19e74914acaae6f80bc4a2653810567e0ebee8d79e33128aec3f8de00901041476726 days 9 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x2f1301783d75927dd6edfcbc5e706dbd79036848e7be5d127016c3801795b1161040759527 days 9 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0xb7b2c79f1fe8956aab23c8734ab3d31092a5072df76f39e8a27ece44d09d11221040661627 days 12 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x81eb8cd72fe275dc17165f2d9af8bfbae1bbce5c63eedebb3125de721567dc3a1040606127 days 14 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
[ Download CSV Export 

Contract Source Code Verified (Exact Match)

Contract Name:
SingularityNetToken

Compiler Version
v0.4.20+commit.3155dd80

Optimization Enabled:
No

Runs (Optimizer):
200

Contract Source Code

pragma solidity ^0.4.13;

library SafeMath {
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    if (a == 0) {
      return 0;
    }
    uint256 c = a * b;
    assert(c / a == b);
    return c;
  }

  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 c;
  }

  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    assert(c >= a);
    return c;
  }
}

contract Ownable {
  address public owner;


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


  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  function Ownable() 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 transfer control of the contract to a newOwner.
   * @param newOwner The address to transfer ownership to.
   */
  function transferOwnership(address newOwner) public onlyOwner {
    require(newOwner != address(0));
    OwnershipTransferred(owner, newOwner);
    owner = newOwner;
  }

}

contract Pausable is Ownable {
  event Pause();
  event Unpause();

  bool public paused = false;


  /**
   * @dev Modifier to make a function callable only when the contract is not paused.
   */
  modifier whenNotPaused() {
    require(!paused);
    _;
  }

  /**
   * @dev Modifier to make a function callable only when the contract is paused.
   */
  modifier whenPaused() {
    require(paused);
    _;
  }

  /**
   * @dev called by the owner to pause, triggers stopped state
   */
  function pause() onlyOwner whenNotPaused public {
    paused = true;
    Pause();
  }

  /**
   * @dev called by the owner to unpause, returns to normal state
   */
  function unpause() onlyOwner whenPaused public {
    paused = false;
    Unpause();
  }
}

contract ERC20Basic {
  uint256 public totalSupply;
  function balanceOf(address who) public view returns (uint256);
  function transfer(address to, uint256 value) public returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}

contract BasicToken is ERC20Basic {
  using SafeMath for uint256;

  mapping(address => uint256) balances;

  /**
  * @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) {
    require(_to != address(0));
    require(_value <= balances[msg.sender]);

    // SafeMath.sub will throw if there is not enough balance.
    balances[msg.sender] = balances[msg.sender].sub(_value);
    balances[_to] = balances[_to].add(_value);
    Transfer(msg.sender, _to, _value);
    return true;
  }

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

}

contract ERC20 is ERC20Basic {
  function allowance(address owner, address spender) public view returns (uint256);
  function transferFrom(address from, address to, uint256 value) public returns (bool);
  function approve(address spender, uint256 value) public returns (bool);
  event Approval(address indexed owner, address indexed spender, uint256 value);
}

contract StandardToken is ERC20, BasicToken {

  mapping (address => mapping (address => uint256)) internal allowed;


  /**
   * @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) {
    require(_to != address(0));
    require(_value <= balances[_from]);
    require(_value <= allowed[_from][msg.sender]);

    balances[_from] = balances[_from].sub(_value);
    balances[_to] = balances[_to].add(_value);
    allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
    Transfer(_from, _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) {
    allowed[msg.sender][_spender] = _value;
    Approval(msg.sender, _spender, _value);
    return true;
  }

  /**
   * @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];
  }

  /**
   * 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
   */
  function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
    allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
    Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

  function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) {
    uint oldValue = allowed[msg.sender][_spender];
    if (_subtractedValue > oldValue) {
      allowed[msg.sender][_spender] = 0;
    } else {
      allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
    }
    Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

}

contract BurnableToken is StandardToken {

    event Burn(address indexed burner, uint256 value);

    /**
     * @dev Burns a specific amount of tokens.
     * @param _value The amount of token to be burned.
     */
    function burn(uint256 _value) public {
        require(_value > 0);
        require(_value <= balances[msg.sender]);
        // no need to require value <= totalSupply, since that would imply the
        // sender's balance is greater than the totalSupply, which *should* be an assertion failure

        address burner = msg.sender;
        balances[burner] = balances[burner].sub(_value);
        totalSupply = totalSupply.sub(_value);
        Burn(burner, _value);
    }
}

contract PausableToken is StandardToken, Pausable {

  function transfer(address _to, uint256 _value) public whenNotPaused returns (bool) {
    return super.transfer(_to, _value);
  }

  function transferFrom(address _from, address _to, uint256 _value) public whenNotPaused returns (bool) {
    return super.transferFrom(_from, _to, _value);
  }

  function approve(address _spender, uint256 _value) public whenNotPaused returns (bool) {
    return super.approve(_spender, _value);
  }

  function increaseApproval(address _spender, uint _addedValue) public whenNotPaused returns (bool success) {
    return super.increaseApproval(_spender, _addedValue);
  }

  function decreaseApproval(address _spender, uint _subtractedValue) public whenNotPaused returns (bool success) {
    return super.decreaseApproval(_spender, _subtractedValue);
  }
}

contract MarketJobInterface {

    event Deposited(address payer, uint256 amount);
    event Withdrew(address payee, uint256 amount);
    event JobCompleted();
    event JobAccepted();


    function withdraw() public;
    function setJobCompleted(bytes lastPacket) public;
    function setJobAccepted() public;
    function deposit(uint256 amount) public;

}

contract MarketJob is MarketJobInterface {
    using SafeMath for uint256;

    SingularityNetToken public token;
    address public masterAgent;
    bytes public jobDescriptor;
    bool public jobCompleted;
    bool public jobAccepted;
    bytes public jobResult;
    address public payer;

    event Deposited(address payer, uint256 amount);
    event Withdrew(address payee, uint256 amount);
    event JobCompleted();
    event JobAccepted();


    struct Job {
        uint256 amount;
        uint256 idService;
    }

    mapping (address => Job) public amounts;

    modifier jobDone {
        require(jobCompleted == true);
        _;
    }

    modifier jobApproved {
        require(jobAccepted == true);
        _;
    }

    modifier jobPending {
        require(jobCompleted == false);
        _;
    }

    modifier onlyPayer {
        require(msg.sender == payer);
        _;
    }

    modifier onlyMasterAgent {
        require(msg.sender == masterAgent);
        _;
    }

    function MarketJob(
        address[] _agents,
        uint256[] _amounts,
        uint256[] _services,
        address _token,
        address _payer,
        bytes _jobDescriptor
    ) {
        require(_agents.length == _amounts.length);
        require(_amounts.length == _services.length);
        masterAgent = msg.sender;
        payer = _payer;
        jobDescriptor = _jobDescriptor;
        jobCompleted = false;
        token = SingularityNetToken(_token);

        for (uint256 i = 0; i < _amounts.length; i++) {
            amounts[_agents[i]] = Job(_amounts[i],_services[i]);
        }
    }

    function deposit(uint256 amount) onlyPayer jobPending public {
        require(token.transferFrom(msg.sender, address(this), amount));
        Deposited(msg.sender,amount);
    }

    function setJobCompleted(bytes _jobResult) onlyMasterAgent jobPending public {
        jobCompleted = true;
        jobResult = _jobResult;
        JobCompleted();
    }

    function setJobAccepted() onlyPayer jobDone public {
        jobAccepted = true;
        JobAccepted();
    }

    function withdraw() jobDone jobApproved public {
        address agent = msg.sender;
        uint256 amount = amounts[agent].amount;
        require(amount > 0);

        amounts[agent].amount = 0;
        require(token.transfer(agent,amount));
        Withdrew(agent,amount);
    }
}

contract SingularityNetToken is PausableToken, BurnableToken {

    string public constant name = "SingularityNET Token";
    string public constant symbol = "AGI";
    uint8 public constant decimals = 8;
    uint256 public constant INITIAL_SUPPLY = 1000000000 * 10**uint256(decimals);
    
    /**
    * @dev SingularityNetToken Constructor
    */

    function SingularityNetToken() {
        totalSupply = INITIAL_SUPPLY;   
        balances[msg.sender] = INITIAL_SUPPLY;
    }

    function transferTokens(address beneficiary, uint256 amount) onlyOwner returns (bool) {
        require(amount > 0);

        balances[owner] = balances[owner].sub(amount);
        balances[beneficiary] = balances[beneficiary].add(amount);
        Transfer(owner, beneficiary, amount);

        return true;
    }
}

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":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"INITIAL_SUPPLY","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"beneficiary","type":"address"},{"name":"amount","type":"uint256"}],"name":"transferTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","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"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"burner","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","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":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","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"}]

Contract Creation Code

60606040526000600360146101000a81548160ff021916908315150217905550341561002a57600080fd5b33600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860ff16600a0a633b9aca0002600081905550600860ff16600a0a633b9aca0002600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611b9b806100df6000396000f300606060405260043610610107576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde031461010c578063095ea7b31461019a57806318160ddd146101f457806323b872dd1461021d5780632ff2e9dc14610296578063313ce567146102bf5780633f4ba83a146102ee57806342966c68146103035780635c975abb14610326578063661884631461035357806370a08231146103ad5780638456cb59146103fa5780638da5cb5b1461040f57806395d89b4114610464578063a9059cbb146104f2578063bec3fa171461054c578063d73dd623146105a6578063dd62ed3e14610600578063f2fde38b1461066c575b600080fd5b341561011757600080fd5b61011f6106a5565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561015f578082015181840152602081019050610144565b50505050905090810190601f16801561018c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101a557600080fd5b6101da600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506106de565b604051808215151515815260200191505060405180910390f35b34156101ff57600080fd5b61020761070e565b6040518082815260200191505060405180910390f35b341561022857600080fd5b61027c600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610714565b604051808215151515815260200191505060405180910390f35b34156102a157600080fd5b6102a9610746565b6040518082815260200191505060405180910390f35b34156102ca57600080fd5b6102d2610757565b604051808260ff1660ff16815260200191505060405180910390f35b34156102f957600080fd5b61030161075c565b005b341561030e57600080fd5b610324600480803590602001909190505061081c565b005b341561033157600080fd5b61033961097f565b604051808215151515815260200191505060405180910390f35b341561035e57600080fd5b610393600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610992565b604051808215151515815260200191505060405180910390f35b34156103b857600080fd5b6103e4600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506109c2565b6040518082815260200191505060405180910390f35b341561040557600080fd5b61040d610a0b565b005b341561041a57600080fd5b610422610acc565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561046f57600080fd5b610477610af2565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156104b757808201518184015260208101905061049c565b50505050905090810190601f1680156104e45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156104fd57600080fd5b610532600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610b2b565b604051808215151515815260200191505060405180910390f35b341561055757600080fd5b61058c600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610b5b565b604051808215151515815260200191505060405180910390f35b34156105b157600080fd5b6105e6600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610dc7565b604051808215151515815260200191505060405180910390f35b341561060b57600080fd5b610656600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610df7565b6040518082815260200191505060405180910390f35b341561067757600080fd5b6106a3600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610e7e565b005b6040805190810160405280601481526020017f53696e67756c61726974794e455420546f6b656e00000000000000000000000081525081565b6000600360149054906101000a900460ff161515156106fc57600080fd5b6107068383610fd6565b905092915050565b60005481565b6000600360149054906101000a900460ff1615151561073257600080fd5b61073d8484846110c8565b90509392505050565b600860ff16600a0a633b9aca000281565b600881565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156107b857600080fd5b600360149054906101000a900460ff1615156107d357600080fd5b6000600360146101000a81548160ff0219169083151502179055507f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b6000808211151561082c57600080fd5b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561087a57600080fd5b3390506108cf82600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461148790919063ffffffff16565b600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506109278260005461148790919063ffffffff16565b6000819055508073ffffffffffffffffffffffffffffffffffffffff167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5836040518082815260200191505060405180910390a25050565b600360149054906101000a900460ff1681565b6000600360149054906101000a900460ff161515156109b057600080fd5b6109ba83836114a0565b905092915050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610a6757600080fd5b600360149054906101000a900460ff16151515610a8357600080fd5b6001600360146101000a81548160ff0219169083151502179055507f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6040805190810160405280600381526020017f414749000000000000000000000000000000000000000000000000000000000081525081565b6000600360149054906101000a900460ff16151515610b4957600080fd5b610b538383611731565b905092915050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610bb957600080fd5b600082111515610bc857600080fd5b610c3c8260016000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461148790919063ffffffff16565b60016000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610cf382600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461195590919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b6000600360149054906101000a900460ff16151515610de557600080fd5b610def8383611973565b905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610eda57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610f1657600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600081600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561110557600080fd5b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561115357600080fd5b600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482111515156111de57600080fd5b61123082600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461148790919063ffffffff16565b600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506112c582600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461195590919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061139782600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461148790919063ffffffff16565b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b600082821115151561149557fe5b818303905092915050565b600080600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050808311156115b1576000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611645565b6115c4838261148790919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a3600191505092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561176e57600080fd5b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482111515156117bc57600080fd5b61180e82600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461148790919063ffffffff16565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506118a382600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461195590919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b600080828401905083811015151561196957fe5b8091505092915050565b6000611a0482600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461195590919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a360019050929150505600a165627a7a72305820f0ae88f6c0fb91b4e8a9c8567c6ea6205151eb3f3716b0046cfd027ca1e815d20029

Swarm Source

bzzr://f0ae88f6c0fb91b4e8a9c8567c6ea6205151eb3f3716b0046cfd027ca1e815d2
Block Age Transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward