Contract 0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec1

Contract Overview

Balance:
8.488523719366734742 Ether
TxHash Block Age From To Value [TxFee]
0x6b5c3ca92ee720fe2eaa5cd9264a2e8455688e2ce52c2b08dce1def57cad48e8406853315 hrs 39 mins ago0xab5689a25e0e6a2ae21b91084761146f419429a8 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10 Ether0.000101076
0xc26dfaff109f329fc9225d7dfda009143e615f6f49c48bb1976746c96d7173e1406853115 hrs 39 mins ago0xef606698e20e8cccbb10bfe4e6f7313bdfff968b IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10.020862753 Ether0.000096596
0xd42eb55319e79cea7480165bce217086eb87a60f989940562916f71bbe0a6122406827016 hrs 45 mins ago0x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e5 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10 Ether0.0004447344
0x11ac534aeac54d333e172451ccecfd3f1ccb3319e900b6479b8615ec9ceb0fc4406826216 hrs 47 mins ago0x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e5 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10.014251557617476 Ether0.0004250224
0x2a6869fa3b45ccba0e9b8ea7779c3da9f227d7d0c8533fa56cf99a4b968db21f406819517 hrs 3 mins ago0x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e5 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10 Ether0.000603792
0x7d550a0bab1974ff9bdcb60b4982aab68fa22ad40cde3ef18f5cc04c39c075f1406819317 hrs 4 mins ago0x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e5 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10.014237787027496 Ether0.000866384
0x7fe306aa8e7be5a7f8e95de61d997b8bf51b31f88a1ba2fb2b71daae6a0ec84b40640411 day 10 hrs ago0x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e5 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10 Ether0.000303228
0x6d9f3a6b3a68b98702eac94d42c90caf68eb60669803c3c99ad1859775b06b9c40640401 day 10 hrs ago0xee5235d9f11f77de8aeb53a73c6f26b9e7db1662 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10.151728134559761 Ether0.000096596
0xa4156365e5401b417a618bbe38d98154545e66cb02858fc8159bec87d12bbd9940637871 day 11 hrs ago0x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e5 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10 Ether0.000303228
0xf424ddb39414f6a745235e2aafddcff02aa66713fa01f26accc28d1111dd7f2740637851 day 11 hrs ago0xee5235d9f11f77de8aeb53a73c6f26b9e7db1662 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10.299999928601753 Ether0.000216596
0xd9efa940c845bc818046986f0b47453c9240507e792bd5ba194d6fa526425b3940630031 day 14 hrs ago0x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e5 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10 Ether0.000303228
0x5082cc4a2b6f08d45683f7d1f1c842a6253842fef4e657734b29aa8f37f7fa5140630011 day 14 hrs ago0xa6641da78181692ad695da121eece545a4857257 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10.014863164201772 Ether0.000096596
0xc113ec7d11b831b159cd77df1672319477964dbfa07c8a62728d5bde8082f48840629191 day 15 hrs ago0xa6641da78181692ad695da121eece545a4857257 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10 Ether0.000101076
0xabf4f1b82979799b29ccdf258189c94b731a219e655625bd08e079b66a44751c40629181 day 15 hrs ago0x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e5 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10.014280295017389 Ether0.000289788
0x3f8991b8f479f5e1d0f1f0977c7385a2e129a79c1e16e2ce6dd800bcdaca286140629171 day 15 hrs ago0x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e5 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10 Ether0.000303228
0xfbf39fcc6ad68e1f5d4d9de9aac810be2f25a69eeab1185bfd17482920dcc48d40629161 day 15 hrs ago0xa6641da78181692ad695da121eece545a4857257 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10.014863164201772 Ether0.000096596
0xfec9ea9e34a085f3554673fa1a435d66ad86e2c9391cfacc3bba4706ae51cb8840624491 day 17 hrs ago0x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e5 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10 Ether0.0002422752
0x6bdd82efa544723569ed5f492504a2808adc1691dd836f733b875be1fa5810ad40624471 day 17 hrs ago0xa6641da78181692ad695da121eece545a4857257 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10.014836983801672 Ether0.000096596
0x1fbde7dc3c207e890357cbf735b8e2c4790a916e1fb155d104af220a1c2567f840623171 day 17 hrs ago0x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e5 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10 Ether0.000202152
0x181e5a40c16e18f20385c663d66074f44383363dcbf945a0bfc9b730b131076e40621991 day 18 hrs ago0x3237bff416d396fb6779effa5f7d6cc63f51eb3d IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10 Ether0.000101076
0xd4f6e5e83b278883af3eb5286198dfe0a455ede2996c5b72f0e13d306bcc5ecb40621981 day 18 hrs ago0xf6f3da1f5d91dcdd596f7d3bbf41f59f112ffa58 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10.006822783984512 Ether0.000096596
0xa2b78d84f5fbc5d64803aa500f32ce3cda5c9a196a5b38040688810755de353c40621861 day 18 hrs ago0xf6f3da1f5d91dcdd596f7d3bbf41f59f112ffa58 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10.009241602024449 Ether0.000216596
0x67a901966b6e97b74ecc6473b27692027626e46ad9dd24dab1cbedb761c8cf6740621331 day 18 hrs ago0x3237bff416d396fb6779effa5f7d6cc63f51eb3d IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10 Ether0.000101076
0x4f767269e104cf78cbe430d576cf31b352d7e0c433081744e0da64862359121d40621321 day 18 hrs ago0xf6f3da1f5d91dcdd596f7d3bbf41f59f112ffa58 IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10.0009475315375 Ether0.000096596
0x7f92c2244f29ced06b270d789fa7816fcfc8ae07a1bbabad604208d47cd5f30240621231 day 18 hrs ago0x3237bff416d396fb6779effa5f7d6cc63f51eb3d IN  0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10 Ether0.000101076
[ 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
0x6b5c3ca92ee720fe2eaa5cd9264a2e8455688e2ce52c2b08dce1def57cad48e8406853315 hrs 39 mins ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10xab5689a25e0e6a2ae21b91084761146f419429a80.020862753 Ether
0xd42eb55319e79cea7480165bce217086eb87a60f989940562916f71bbe0a6122406827016 hrs 45 mins ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10xbad0c166f4029955209189093f21e5f8e440b42b0.01425155761747684 Ether
0x2a6869fa3b45ccba0e9b8ea7779c3da9f227d7d0c8533fa56cf99a4b968db21f406819517 hrs 3 mins ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10xbad0c166f4029955209189093f21e5f8e440b42b0.01423778702749622 Ether
0x7fe306aa8e7be5a7f8e95de61d997b8bf51b31f88a1ba2fb2b71daae6a0ec84b40640411 day 10 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e50.151728134559761604 Ether
0xa4156365e5401b417a618bbe38d98154545e66cb02858fc8159bec87d12bbd9940637871 day 11 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e50.299999928601753501 Ether
0xd9efa940c845bc818046986f0b47453c9240507e792bd5ba194d6fa526425b3940630031 day 14 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e50.014863164201772565 Ether
0xc113ec7d11b831b159cd77df1672319477964dbfa07c8a62728d5bde8082f48840629191 day 15 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10xa6641da78181692ad695da121eece545a48572570.014280295017389327 Ether
0x3f8991b8f479f5e1d0f1f0977c7385a2e129a79c1e16e2ce6dd800bcdaca286140629171 day 15 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e50.014863164201772565 Ether
0xfec9ea9e34a085f3554673fa1a435d66ad86e2c9391cfacc3bba4706ae51cb8840624491 day 17 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e50.014836983801672311 Ether
0x1fbde7dc3c207e890357cbf735b8e2c4790a916e1fb155d104af220a1c2567f840623171 day 17 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e50.009241602024449153 Ether
0x181e5a40c16e18f20385c663d66074f44383363dcbf945a0bfc9b730b131076e40621991 day 18 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10x3237bff416d396fb6779effa5f7d6cc63f51eb3d0.006822783984512711 Ether
0x67a901966b6e97b74ecc6473b27692027626e46ad9dd24dab1cbedb761c8cf6740621331 day 18 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10x3237bff416d396fb6779effa5f7d6cc63f51eb3d0.0009475315375 Ether
0x7f92c2244f29ced06b270d789fa7816fcfc8ae07a1bbabad604208d47cd5f30240621231 day 18 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10x3237bff416d396fb6779effa5f7d6cc63f51eb3d0.012709862499999999 Ether
0x22871c027cf2d0e94be1c0b41a7f0ed5168b78939a5452fb934270ce384d057340584412 days 9 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10xa6641da78181692ad695da121eece545a48572570.014744902358767639 Ether
0x0372d3c3448ea33bd1e87caa45f71e35b294e3d6970834f840be7a6d88466ad540584102 days 9 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10xa6641da78181692ad695da121eece545a48572570.014758091380892139 Ether
0x5f7e9e8ae7a0f95e31ded70b9f594c8fb626697cb5b80a44c362afe701b1a4ed40584052 days 9 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e50.014179342699288526 Ether
0x547b3663dfe8d34fbb309de5bd1f4d55011bb11ae5d9ca55c98425dc13cfebb940569582 days 15 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e50.014180244060481109 Ether
0x04e58d2313c5b7f40b42816be9bed012cfcd668305ee8dd86c23e26869a182d240569472 days 15 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e50.014180832560429035 Ether
0x1c4f8213af17b08ca2675b35b7c0b78562f92e6f7928a421ffab6b2cbd3f88f540569322 days 15 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e50.014177339688250085 Ether
0xa3376f20ec7293905e6f8dd78e4c45c577677b2dd833b730c4b1cc6ce29eaf0840569242 days 16 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e50.014181203054117846 Ether
0xf9638e8d77ff717314d77c7ba596525318eb7453f1405375079f47763d35be9640568962 days 16 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10x87f67392f4f079ec8bca5fa0f4f1c6f7330c35e50.014172886316364968 Ether
0xfa47085f50ec422238c9c8e539a064ac50322a6035f6391019d9ddc122769f7640532713 days 7 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10xd420bdcceeb30f97f4589543ce8173b32b2f7d5b0.02894591427 Ether
0x1e8874bb76eb12beca374eb251da90064cdbeee26580a6d566a4d8f7b4bbae0e40532433 days 7 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10xd420bdcceeb30f97f4589543ce8173b32b2f7d5b0.02894960135 Ether
0x9255763228e8665176c21aaa1c7ed7c38e00de8ca572f56c1dcf699d2b72ff8140532153 days 7 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10xd420bdcceeb30f97f4589543ce8173b32b2f7d5b0.02895990501 Ether
0xeb57e187e1ab597f83ba6665ad1defcfd78905813fb285d3a16202db33740c5840526463 days 9 hrs ago0x5937f7cda3670a6fa111ae83ab4a39cfb5b89ec10xb9d4e0d48a0d614dd147d96efe35833f839c09910.028959729788231899 Ether
[ Download CSV Export 

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Verified Source Code for Contract 0xBB40748d4c88c0fa14306ab20007E7B9357eF054

Contract Name:
EthToSmthSwaps

Compiler Version
v0.5.0+commit.1d4f565a

Optimization Enabled:
No

Runs (Optimizer):
200

Contract Source Code

pragma solidity ^0.5.0;

contract EthToSmthSwaps {

  using SafeMath for uint;

  address public owner;
  address public ratingContractAddress;
  uint256 SafeTime = 1 hours; // atomic swap timeOut

  struct Swap {
    address payable targetWallet;
    bytes32 secret;
    bytes20 secretHash;
    uint256 createdAt;
    uint256 balance;
  }

  // ETH Owner => BTC Owner => Swap
  mapping(address => mapping(address => Swap)) public swaps;
  mapping(address => mapping(address => uint)) public participantSigns;

  constructor () public {
    owner = msg.sender;
  }

  event CreateSwap(address _buyer, address _seller, uint256 _value, bytes20 _secretHash, uint256 createdAt);

  // ETH Owner creates Swap with secretHash
  // ETH Owner make token deposit
  function createSwap(bytes20 _secretHash, address payable _participantAddress) public payable {
    require(msg.value > 0);
    require(swaps[msg.sender][_participantAddress].balance == uint256(0));

    swaps[msg.sender][_participantAddress] = Swap(
      _participantAddress,
      bytes32(0),
      _secretHash,
      now,
      msg.value
    );

    emit CreateSwap(_participantAddress, msg.sender, msg.value, _secretHash, now);
  }

  // ETH Owner creates Swap with secretHash
  // ETH Owner make token deposit
  function createSwapTarget(bytes20 _secretHash, address payable _participantAddress, address payable _targetWallet) public payable {
    require(msg.value > 0);
    require(swaps[msg.sender][_participantAddress].balance == uint256(0));

    swaps[msg.sender][_participantAddress] = Swap(
      _targetWallet,
      bytes32(0),
      _secretHash,
      now,
      msg.value
    );

    emit CreateSwap(_participantAddress, msg.sender, msg.value, _secretHash, now);
  }

  function getBalance(address _ownerAddress) public view returns (uint256) {
    return swaps[_ownerAddress][msg.sender].balance;
  }

  // Get target wallet (buyer check)
  function getTargetWallet(address _ownerAddress) public view returns (address) {
      return swaps[_ownerAddress][msg.sender].targetWallet;
  }

  event Withdraw(address _buyer, address _seller, bytes20 _secretHash, uint256 withdrawnAt);

  // BTC Owner withdraw money and adds secret key to swap
  // BTC Owner receive +1 reputation
  function withdraw(bytes32 _secret, address _ownerAddress) public {
    Swap memory swap = swaps[_ownerAddress][msg.sender];

    require(swap.secretHash == ripemd160(abi.encodePacked(_secret)));
    require(swap.balance > uint256(0));
    require(swap.createdAt.add(SafeTime) > now);

    swap.targetWallet.transfer(swap.balance);

    swaps[_ownerAddress][msg.sender].balance = 0;
    swaps[_ownerAddress][msg.sender].secret = _secret;

    emit Withdraw(msg.sender, _ownerAddress, swap.secretHash, now);
  }
  // BTC Owner withdraw money and adds secret key to swap
  // BTC Owner receive +1 reputation
  function withdrawNoMoney(bytes32 _secret, address participantAddress) public {
    Swap memory swap = swaps[msg.sender][participantAddress];

    require(swap.secretHash == ripemd160(abi.encodePacked(_secret)));
    require(swap.balance > uint256(0));
    require(swap.createdAt.add(SafeTime) > now);

    swap.targetWallet.transfer(swap.balance);

    swaps[msg.sender][participantAddress].balance = 0;
    swaps[msg.sender][participantAddress].secret = _secret;

    emit Withdraw(participantAddress, msg.sender, swap.secretHash, now);
  }
  // BTC Owner withdraw money and adds secret key to swap
  // BTC Owner receive +1 reputation
  function withdrawOther(bytes32 _secret, address _ownerAddress, address participantAddress) public {
    Swap memory swap = swaps[_ownerAddress][participantAddress];

    require(swap.secretHash == ripemd160(abi.encodePacked(_secret)));
    require(swap.balance > uint256(0));
    require(swap.createdAt.add(SafeTime) > now);

    swap.targetWallet.transfer(swap.balance);

    swaps[_ownerAddress][participantAddress].balance = 0;
    swaps[_ownerAddress][participantAddress].secret = _secret;

    emit Withdraw(participantAddress, _ownerAddress, swap.secretHash, now);
  }

  // ETH Owner receive secret
  function getSecret(address _participantAddress) public view returns (bytes32) {
    return swaps[msg.sender][_participantAddress].secret;
  }

  event Close(address _buyer, address _seller);



  event Refund(address _buyer, address _seller, bytes20 _secretHash);

  // ETH Owner refund money
  // BTC Owner gets -1 reputation
  function refund(address _participantAddress) public {
    Swap memory swap = swaps[msg.sender][_participantAddress];

    require(swap.balance > uint256(0));
    require(swap.createdAt.add(SafeTime) < now);

    msg.sender.transfer(swap.balance);

    clean(msg.sender, _participantAddress);

    emit Refund(_participantAddress, msg.sender, swap.secretHash);
  }

  function clean(address _ownerAddress, address _participantAddress) internal {
    delete swaps[_ownerAddress][_participantAddress];
    delete participantSigns[_ownerAddress][_participantAddress];
  }
}

library SafeMath {
    /**
    * @dev Multiplies two unsigned integers, reverts on overflow.
    */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring '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;
        }

        uint256 c = a * b;
        require(c / a == b);

        return c;
    }

    /**
    * @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero.
    */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
    * @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend).
    */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a);
        uint256 c = a - b;

        return c;
    }

    /**
    * @dev Adds two unsigned integers, reverts on overflow.
    */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a);

        return c;
    }

    /**
    * @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo),
    * reverts when dividing by zero.
    */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b != 0);
        return a % b;
    }
}

Contract ABI

[{"constant":false,"inputs":[{"name":"_secret","type":"bytes32"},{"name":"_ownerAddress","type":"address"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_participantAddress","type":"address"}],"name":"getSecret","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"participantSigns","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_secret","type":"bytes32"},{"name":"participantAddress","type":"address"}],"name":"withdrawNoMoney","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_secretHash","type":"bytes20"},{"name":"_participantAddress","type":"address"},{"name":"_targetWallet","type":"address"}],"name":"createSwapTarget","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"swaps","outputs":[{"name":"targetWallet","type":"address"},{"name":"secret","type":"bytes32"},{"name":"secretHash","type":"bytes20"},{"name":"createdAt","type":"uint256"},{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_secretHash","type":"bytes20"},{"name":"_participantAddress","type":"address"}],"name":"createSwap","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_secret","type":"bytes32"},{"name":"_ownerAddress","type":"address"},{"name":"participantAddress","type":"address"}],"name":"withdrawOther","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"ratingContractAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_ownerAddress","type":"address"}],"name":"getTargetWallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_ownerAddress","type":"address"}],"name":"getBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_participantAddress","type":"address"}],"name":"refund","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_buyer","type":"address"},{"indexed":false,"name":"_seller","type":"address"},{"indexed":false,"name":"_value","type":"uint256"},{"indexed":false,"name":"_secretHash","type":"bytes20"},{"indexed":false,"name":"createdAt","type":"uint256"}],"name":"CreateSwap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_buyer","type":"address"},{"indexed":false,"name":"_seller","type":"address"},{"indexed":false,"name":"_secretHash","type":"bytes20"},{"indexed":false,"name":"withdrawnAt","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_buyer","type":"address"},{"indexed":false,"name":"_seller","type":"address"}],"name":"Close","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_buyer","type":"address"},{"indexed":false,"name":"_seller","type":"address"},{"indexed":false,"name":"_secretHash","type":"bytes20"}],"name":"Refund","type":"event"}]

Contract Creation Code

6080604052610e1060025534801561001657600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612144806100666000396000f3fe6080604052600436106100c5576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631b258d50146100ca578063284180fc146101255780634d025fdf1461018a5780635721b89a1461020f5780638da5cb5b1461026a57806393716de8146102c157806399caf9751461033e578063a543bae714610429578063d348b5a414610486578063dcb5930a14610501578063e03ec01d14610558578063f8b2cb4f146105e9578063fa89401a1461064e575b600080fd5b3480156100d657600080fd5b50610123600480360360408110156100ed57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061069f565b005b34801561013157600080fd5b506101746004803603602081101561014857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610b23565b6040518082815260200191505060405180910390f35b34801561019657600080fd5b506101f9600480360360408110156101ad57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bac565b6040518082815260200191505060405180910390f35b34801561021b57600080fd5b506102686004803603604081101561023257600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bd1565b005b34801561027657600080fd5b5061027f611055565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61033c600480360360608110156102d757600080fd5b8101908080356bffffffffffffffffffffffff19169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061107a565b005b34801561034a57600080fd5b506103ad6004803603604081101561036157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061135f565b604051808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001846bffffffffffffffffffffffff19166bffffffffffffffffffffffff191681526020018381526020018281526020019550505050505060405180910390f35b6104846004803603604081101561043f57600080fd5b8101908080356bffffffffffffffffffffffff19169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506113db565b005b34801561049257600080fd5b506104ff600480360360608110156104a957600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506116bf565b005b34801561050d57600080fd5b50610516611b44565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561056457600080fd5b506105a76004803603602081101561057b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611b6a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156105f557600080fd5b506106386004803603602081101561060c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611c13565b6040518082815260200191505060405180910390f35b34801561065a57600080fd5b5061069d6004803603602081101561067157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611c9c565b005b6106a76120c0565b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060a060405190810160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015481526020016002820160009054906101000a90046c01000000000000000000000000026bffffffffffffffffffffffff19166bffffffffffffffffffffffff19168152602001600382015481526020016004820154815250509050600383604051602001808281526020019150506040516020818303038152906040526040518082805190602001908083835b60208310151561083d5780518252602082019150602081019050602083039250610818565b6001836020036101000a038019825116818451168082178552505050505050905001915050602060405180830381855afa15801561087f573d6000803e3d6000fd5b505050604051516c01000000000000000000000000026bffffffffffffffffffffffff191681604001516bffffffffffffffffffffffff19161415156108c457600080fd5b600081608001511115156108d757600080fd5b426108f16002548360600151611f3690919063ffffffff16565b1115156108fd57600080fd5b806000015173ffffffffffffffffffffffffffffffffffffffff166108fc82608001519081150290604051600060405180830381858888f1935050505015801561094b573d6000803e3d6000fd5b506000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206004018190555082600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055507fa670cc0e4f281aa123c418dd3959d0c502e351098b68a58a4a395f7208a3aeeb3383836040015142604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001836bffffffffffffffffffffffff19166bffffffffffffffffffffffff1916815260200182815260200194505050505060405180910390a1505050565b6000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101549050919050565b6004602052816000526040600020602052806000526040600020600091509150505481565b610bd96120c0565b600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060a060405190810160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015481526020016002820160009054906101000a90046c01000000000000000000000000026bffffffffffffffffffffffff19166bffffffffffffffffffffffff19168152602001600382015481526020016004820154815250509050600383604051602001808281526020019150506040516020818303038152906040526040518082805190602001908083835b602083101515610d6f5780518252602082019150602081019050602083039250610d4a565b6001836020036101000a038019825116818451168082178552505050505050905001915050602060405180830381855afa158015610db1573d6000803e3d6000fd5b505050604051516c01000000000000000000000000026bffffffffffffffffffffffff191681604001516bffffffffffffffffffffffff1916141515610df657600080fd5b60008160800151111515610e0957600080fd5b42610e236002548360600151611f3690919063ffffffff16565b111515610e2f57600080fd5b806000015173ffffffffffffffffffffffffffffffffffffffff166108fc82608001519081150290604051600060405180830381858888f19350505050158015610e7d573d6000803e3d6000fd5b506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206004018190555082600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055507fa670cc0e4f281aa123c418dd3959d0c502e351098b68a58a4a395f7208a3aeeb8233836040015142604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001836bffffffffffffffffffffffff19166bffffffffffffffffffffffff1916815260200182815260200194505050505060405180910390a1505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60003411151561108957600080fd5b6000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206004015414151561111757600080fd5b60a0604051908101604052808273ffffffffffffffffffffffffffffffffffffffff16815260200160006001028152602001846bffffffffffffffffffffffff1916815260200142815260200134815250600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff02191690836c010000000000000000000000009004021790555060608201518160030155608082015181600401559050507f67984a2c2da3fe41a664c2f5d2d644b1c822e267ad1b6d70545f2370dd72661c8233348642604051808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848152602001836bffffffffffffffffffffffff19166bffffffffffffffffffffffff191681526020018281526020019550505050505060405180910390a1505050565b6003602052816000526040600020602052806000526040600020600091509150508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020160009054906101000a90046c0100000000000000000000000002908060030154908060040154905085565b6000341115156113ea57600080fd5b6000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206004015414151561147857600080fd5b60a0604051908101604052808273ffffffffffffffffffffffffffffffffffffffff16815260200160006001028152602001836bffffffffffffffffffffffff1916815260200142815260200134815250600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff02191690836c010000000000000000000000009004021790555060608201518160030155608082015181600401559050507f67984a2c2da3fe41a664c2f5d2d644b1c822e267ad1b6d70545f2370dd72661c8133348542604051808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848152602001836bffffffffffffffffffffffff19166bffffffffffffffffffffffff191681526020018281526020019550505050505060405180910390a15050565b6116c76120c0565b600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060a060405190810160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015481526020016002820160009054906101000a90046c01000000000000000000000000026bffffffffffffffffffffffff19166bffffffffffffffffffffffff19168152602001600382015481526020016004820154815250509050600384604051602001808281526020019150506040516020818303038152906040526040518082805190602001908083835b60208310151561185d5780518252602082019150602081019050602083039250611838565b6001836020036101000a038019825116818451168082178552505050505050905001915050602060405180830381855afa15801561189f573d6000803e3d6000fd5b505050604051516c01000000000000000000000000026bffffffffffffffffffffffff191681604001516bffffffffffffffffffffffff19161415156118e457600080fd5b600081608001511115156118f757600080fd5b426119116002548360600151611f3690919063ffffffff16565b11151561191d57600080fd5b806000015173ffffffffffffffffffffffffffffffffffffffff166108fc82608001519081150290604051600060405180830381858888f1935050505015801561196b573d6000803e3d6000fd5b506000600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206004018190555083600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055507fa670cc0e4f281aa123c418dd3959d0c502e351098b68a58a4a395f7208a3aeeb8284836040015142604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001836bffffffffffffffffffffffff19166bffffffffffffffffffffffff1916815260200182815260200194505050505060405180910390a150505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600401549050919050565b611ca46120c0565b600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060a060405190810160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015481526020016002820160009054906101000a90046c01000000000000000000000000026bffffffffffffffffffffffff19166bffffffffffffffffffffffff1916815260200160038201548152602001600482015481525050905060008160800151111515611df657600080fd5b42611e106002548360600151611f3690919063ffffffff16565b101515611e1c57600080fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc82608001519081150290604051600060405180830381858888f19350505050158015611e66573d6000803e3d6000fd5b50611e713383611f57565b7f7d398516b5972c69dadc977fbce748582045eecd7ecb320ec0cf6d837856078282338360400151604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff19166bffffffffffffffffffffffff19168152602001935050505060405180910390a15050565b6000808284019050838110151515611f4d57600080fd5b8091505092915050565b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560018201600090556002820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600382016000905560048201600090555050600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600090555050565b60a060405190810160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020016000801916815260200160006bffffffffffffffffffffffff191681526020016000815260200160008152509056fea165627a7a72305820f7a4e5a02a1b0ad164b20091f7018b56101104dee63910d3e28f1569a250e9180029

Swarm Source

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