Contract Overview
Balance: 0 Ether
Transactions: 8870 txns
Token Tracker: SingularityNET Token (AGI)
 Latest 25 transactions from a total of 8870 transactions

TxHash Age From To Value [TxFee]
0xd3471efbaaaae426249e7d2c3017de980135549a9bff67ebb54f145e60c3ca2727 mins ago0x8288df3cd379ce616c125607af2efcac4c539005  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.000045552
0x23fed22ae19235b6ded51538937d06a363f63dbf9915f39e5b226ca31d607eb733 mins ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00104278
0xac5aa7420a0fbebe1e7023d7ea3a067e3e9e36e256d0ecb2ef442cb0ae26938213 hrs 36 mins ago0x924bb7dcc4116ec7bf9f4fa736011d8ea9e6ba9d  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.000045552
0x2a807bb19279f0f332d1f50b7a00b18b1da5979ed880dc618d1bed2f4c363fd413 hrs 37 mins ago0x924bb7dcc4116ec7bf9f4fa736011d8ea9e6ba9d  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.000045552
0x56f55b1048b9306fb78ed187a75a3299c6a3de7bff0d6dbfebc3adaa6796a90915 hrs 9 mins ago0x924bb7dcc4116ec7bf9f4fa736011d8ea9e6ba9d  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00027539
0x9a47e2f680c0c1905a4dafd41496dbe5c9d5733879eda899aaf5895be400a4d615 hrs 21 mins ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00104278
0xa2e3dc1cff6416ebf9c2cf9685c5fb33c261d8e72ea9083a55564dd14e4bf55b16 hrs 19 mins ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00104278
0xc4c80c13b3c83ec811103bb440741575571e10f886cc4c61642193ad05f6694116 hrs 47 mins ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00074278
0x9cae35408a936fe0bff733eb762b3cc9dc45fb2c5345fb37eed39d02bd95d5ff21 hrs 39 mins ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00074278
0x82672e18fd347d043f81b3486abe8e2b7ecbf07ebd68645586c93b2aea84df6423 hrs 41 mins ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00074278
0xba8643e3ca658160f50fa5dc15604b947b3dbdefd0dea28b5a8011bb5a3cc0dc1 day 18 hrs ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00074278
0xfc18c0fa45a150870ebed5ae7b8e5573b658595749cda69709d305c4131eb4661 day 21 hrs ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00074278
0x4931ac3ff1a3c82950de723704a46cd86e9f3976c5746e36887bc5c344a7d1001 day 23 hrs ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00074278
0x6de904db08f81f33e3eb40a5030d5311e97c3f1631eabc647629f4bf54142d5d2 days 1 hr ago0xc2ae32305d80eaac15f79e5f7126f5ceaf8db601  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00002588
0x0ac790d6b7cc6b2a7202ef4547a7aa9dd7fb30b4ce31a09fae99302d0eb3fb7d2 days 1 hr ago0xc2ae32305d80eaac15f79e5f7126f5ceaf8db601  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00004568
0xd56d6350981fb1e9d55c8be2a6cf472be8852a2be56964c80addbe8202b7d30a2 days 7 hrs ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00104278
0x81db0efeb5daadf50604e226a88fd3b87e9e11228387c87aefd0afc51549f6c42 days 11 hrs ago0xff2a327ed1ca40ce93f116c5d6646b56991c0dde  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.001522699
0xf6dba0eac5a85d9150e5d64bf931ab170934ebb59067542f83816cd77bd16adc2 days 11 hrs ago0xa6e06cf37110930d2906e6ae70ba6224eded917b  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00004568
0xd58c0a4ac998f966d7a0d5318f37280a0ac1346c010e97ae43599c7e0f7763e82 days 12 hrs ago0xd708a068f606893120ea34eece8a2f7448fca764  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.000045808
0x632b64de41d129e5613fd4fd34c5fdbf14c553d3dd0644089c9cea98105be1f82 days 15 hrs ago0x70079c960cf8b18c692acb8a4aae3d6827617df6  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.000136656
0xf973ef1d0889f33677abe4a59270a0656f547d989aab3e4121827b220837f8b52 days 16 hrs ago0xd3ca38c28878a152741bbe11306e92ab9e625e98  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810.1 Ether0.00010523
0x288bffcf8e45118460c4f28a9e0947aead8d33016a45ab74e3768eb402a55e452 days 18 hrs ago0xff2a327ed1ca40ce93f116c5d6646b56991c0dde  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00004568
0xfefecdbc338cf70cd3ecaf94a399eaa0beb45fd3143f553cf9a0287178860bfe2 days 18 hrs ago0xff2a327ed1ca40ce93f116c5d6646b56991c0dde  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00004568
0xe3006e446e5f0e3b0a2703848ae440fe6bcce81a29624e8c0daab186073dc9eb2 days 18 hrs ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00074278
0x561b73e618f8a091d64f716ab9d1e7fc13f730ef4bd8c0a765d31f5c0c780ba92 days 21 hrs ago0x5f1eb1f3ff1350c0a35e23013d0039a166c80b49  IN   0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether0.00104278
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 25 Internal Txns, Click here To View More View All
ParentTxHash Block Age From To Value
0x2875c9127eb4e50a09a55cc007eb1df567c6130b0e71870ebc9597d3ef0218811016871327 mins ago0x71997777d4e052311e432ada3fb737f04b6cda560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x14a2280348314d967f6a0c010c97e6bf59f06c4d0d32c38a037ac5602c95022c1016214813 hrs 36 mins ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x490880e9e42c4aca4c750a03f1dac4dd0fdf1fc24173efa8b91aafb7366f68561016214213 hrs 37 mins ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x6ceacf49946774244bfb143f95f6e73bf90b6bc81ac6d09e3b19747f112a1a05101475382 days 1 hr ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x193a14210178d848d6c24ac794bf7b7862a91352f91157ba078f16b3693e4208101438012 days 11 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0xac5ef31a3f4fc15433d1f7377830c960d1c8af85f6fc25dfa0d68d10c6d518f6101431572 days 12 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x5c99602a83b1feb0fdaaead4da7dcbf8635f468a75eeb5e5f9c1d92319a1029c101431072 days 12 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x65a442c206e3a0fc1be7461592ddb46ef0196e5a9fd5eb3d2ac8eea9656fc5d9101430862 days 12 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0xb527469fbc8b8f88093b113bc60a0d6515a3e9c31fa1e941032d8323044ce44d101430282 days 13 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x81d576d61c5affc903aee48f3f59c265ab1ed9902db7717700e86b4344a0bcd1101430132 days 13 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x0ce8c44bb3e62040b9f73723596989022e7ea6e65073ea634df82e98da3b20fb101424942 days 14 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x062695abcaae66bd0247f6950aea41670082821e135994878173cc81ee0e8d95101420402 days 15 hrs ago0x666bc4607c17e2a7edbdf3cd6a388d5b9a2e94b40x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0xb2f3144a51dcc1f96d5e48324d16661ea816309f758e1dc517c1d58b84412159101410852 days 18 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x72273a44b90386bca024d24f7786c8d56a6b92e844e0b3bd59b3e2db3bb6d566101409652 days 18 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x93769ac5962388364aa976c64970dc8f1c580313df4de9cb31d2d9253b4c1985101409592 days 18 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0xcf672e8b2f158f42271b40a3a3206f19fd0a38aab4ec8ecdeda31e75442a74e0101380883 days 1 hr ago0x7e50c697d33a2fee137631b970e82dff093ba0760x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x93707e8b8dea3ab872945f8a950effc0f94dc4741fe778ce8c7a57fdec215f32101286604 days 1 hr ago0x5a25e9dc62171feb11fc6eea67f1e3612ce217ee0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x4431f237abdc892bab903282221b186aea3abc253a39bfa5303e44f08ae7dfb2101286174 days 1 hr ago0x3bc673f21bf690820692e33d960215b75f78a1090x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x5fd74af0b025af9740b08b8933fa8ef6d9fc467212b624f71679d71bdf097f32101258104 days 8 hrs ago0x3d5552ac0054e3c740459b7165f32101615e28160x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x8cf5faffbd8a929d0b360b88c8bbceca74c02547eda0950bbd416a846504ff57101257264 days 8 hrs ago0x60248cb61ad9183cb493d7446c1ee7e993cf2e3a0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x2ccbbd2fee3a0ab715f41d381596cf29651c6677342a50bb4d7c43b68af93895101257154 days 8 hrs ago0xecdf0b0fda3343b51455b8fdaf6c7029886401d10x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x715bb670a843e8ad5f1cc8a90ddbea4b44e4a2396779cbe2787b68190f164619101215394 days 19 hrs ago0xdd4292864063d0da1f294ac65d74d55a44f4766c0x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0xf1cbe1d9adc8d70f6da1c0ea2c0719ab70a89d06644045a83629f4e5d8fa7367101195255 days 20 mins ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x70e48f8e5366f06ef92a063edb54b685d4fe39c170aae2a103ccfbd7fd1ede95101195225 days 21 mins ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
0x120ca3b8fcbae385b190641df77d2401dff9519c835bd15f5a8920993f8bf197101183845 days 3 hrs ago0x39f31ac7b393fe2c6660b95b878feb16ea8f31560x3b226ff6aad7851d3263e53cb7688d13a07f6e810 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity), NestedArrayFunctionCallDecoder (medium-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: SingularityNetToken
Compiler Text: v0.4.20+commit.3155dd80
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

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 Switch To Opcodes View
60606040526000600360146101000a81548160ff021916908315150217905550341561002a57600080fd5b33600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860ff16600a0a633b9aca0002600081905550600860ff16600a0a633b9aca0002600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611b9b806100df6000396000f300606060405260043610610107576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde031461010c578063095ea7b31461019a57806318160ddd146101f457806323b872dd1461021d5780632ff2e9dc14610296578063313ce567146102bf5780633f4ba83a146102ee57806342966c68146103035780635c975abb14610326578063661884631461035357806370a08231146103ad5780638456cb59146103fa5780638da5cb5b1461040f57806395d89b4114610464578063a9059cbb146104f2578063bec3fa171461054c578063d73dd623146105a6578063dd62ed3e14610600578063f2fde38b1461066c575b600080fd5b341561011757600080fd5b61011f6106a5565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561015f578082015181840152602081019050610144565b50505050905090810190601f16801561018c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101a557600080fd5b6101da600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506106de565b604051808215151515815260200191505060405180910390f35b34156101ff57600080fd5b61020761070e565b6040518082815260200191505060405180910390f35b341561022857600080fd5b61027c600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610714565b604051808215151515815260200191505060405180910390f35b34156102a157600080fd5b6102a9610746565b6040518082815260200191505060405180910390f35b34156102ca57600080fd5b6102d2610757565b604051808260ff1660ff16815260200191505060405180910390f35b34156102f957600080fd5b61030161075c565b005b341561030e57600080fd5b610324600480803590602001909190505061081c565b005b341561033157600080fd5b61033961097f565b604051808215151515815260200191505060405180910390f35b341561035e57600080fd5b610393600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610992565b604051808215151515815260200191505060405180910390f35b34156103b857600080fd5b6103e4600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506109c2565b6040518082815260200191505060405180910390f35b341561040557600080fd5b61040d610a0b565b005b341561041a57600080fd5b610422610acc565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561046f57600080fd5b610477610af2565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156104b757808201518184015260208101905061049c565b50505050905090810190601f1680156104e45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156104fd57600080fd5b610532600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610b2b565b604051808215151515815260200191505060405180910390f35b341561055757600080fd5b61058c600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610b5b565b604051808215151515815260200191505060405180910390f35b34156105b157600080fd5b6105e6600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610dc7565b604051808215151515815260200191505060405180910390f35b341561060b57600080fd5b610656600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610df7565b6040518082815260200191505060405180910390f35b341561067757600080fd5b6106a3600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610e7e565b005b6040805190810160405280601481526020017f53696e67756c61726974794e455420546f6b656e00000000000000000000000081525081565b6000600360149054906101000a900460ff161515156106fc57600080fd5b6107068383610fd6565b905092915050565b60005481565b6000600360149054906101000a900460ff1615151561073257600080fd5b61073d8484846110c8565b90509392505050565b600860ff16600a0a633b9aca000281565b600881565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156107b857600080fd5b600360149054906101000a900460ff1615156107d357600080fd5b6000600360146101000a81548160ff0219169083151502179055507f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b6000808211151561082c57600080fd5b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561087a57600080fd5b3390506108cf82600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461148790919063ffffffff16565b600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506109278260005461148790919063ffffffff16565b6000819055508073ffffffffffffffffffffffffffffffffffffffff167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5836040518082815260200191505060405180910390a25050565b600360149054906101000a900460ff1681565b6000600360149054906101000a900460ff161515156109b057600080fd5b6109ba83836114a0565b905092915050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610a6757600080fd5b600360149054906101000a900460ff16151515610a8357600080fd5b6001600360146101000a81548160ff0219169083151502179055507f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6040805190810160405280600381526020017f414749000000000000000000000000000000000000000000000000000000000081525081565b6000600360149054906101000a900460ff16151515610b4957600080fd5b610b538383611731565b905092915050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610bb957600080fd5b600082111515610bc857600080fd5b610c3c8260016000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461148790919063ffffffff16565b60016000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610cf382600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461195590919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b6000600360149054906101000a900460ff16151515610de557600080fd5b610def8383611973565b905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610eda57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610f1657600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600081600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561110557600080fd5b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561115357600080fd5b600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482111515156111de57600080fd5b61123082600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461148790919063ffffffff16565b600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506112c582600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461195590919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061139782600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461148790919063ffffffff16565b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b600082821115151561149557fe5b818303905092915050565b600080600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050808311156115b1576000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611645565b6115c4838261148790919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a3600191505092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561176e57600080fd5b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482111515156117bc57600080fd5b61180e82600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461148790919063ffffffff16565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506118a382600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461195590919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b600080828401905083811015151561196957fe5b8091505092915050565b6000611a0482600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461195590919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a360019050929150505600a165627a7a72305820f0ae88f6c0fb91b4e8a9c8567c6ea6205151eb3f3716b0046cfd027ca1e815d20029

   Swarm Source:
bzzr://f0ae88f6c0fb91b4e8a9c8567c6ea6205151eb3f3716b0046cfd027ca1e815d2

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward