Contract Overview
Balance: 0 Ether
Transactions: 514 txns
 Latest 25 transactions from a total of 514 transactions

TxHash Age From To Value [TxFee]
0x1b64cbff28e808d05144a0b9de3a5246aae8e5e6ee4102c195d406c43b19106033 days 18 hrs ago0xe918c8719bae0525786548b8da7fbef9b33d4e25  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0001304146
0x3b582c339f89eae7a1735e210e01647da815ca0c2454daedc5a7651fa75a656d33 days 18 hrs ago0x6260b5ef52d72732674ff4bde3b37a4222db1785  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0001331769
0xc503df3d57b8bbedc9f33666be4d8af31be6b63fd27994b41a6b04ba9366db7433 days 19 hrs ago0xee5235d9f11f77de8aeb53a73c6f26b9e7db1662  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0001302674
0x9f5988631c47101930af0abff456f3a8a89cd812103f66928516b0c31b5b903133 days 19 hrs ago0x3c1ad2bc83867df89b49b465c9d2a81138d05195  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0001331769
0x3358647fd1778c9718bf053bf2d96d1b2233fc98e730de88b2b48a82bac5433733 days 19 hrs ago0x3c1ad2bc83867df89b49b465c9d2a81138d05195  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0001304146
0x50ff6538147d54d149874dea85bf05b654b720bcd1cdb67edb17f6068cc628b333 days 19 hrs ago0xee5235d9f11f77de8aeb53a73c6f26b9e7db1662  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0001331769
0x29bd95bdb086995dbe5475b490e3d40fb50c1fd9f792a2d12b201141d48cfbe033 days 19 hrs ago0x3c1ad2bc83867df89b49b465c9d2a81138d05195  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0001304146
0xc8500bcf8a52b705b350a05e342015e5c1b761075f2eb449e13d11be85d2358533 days 19 hrs ago0xee5235d9f11f77de8aeb53a73c6f26b9e7db1662  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0003170113
0x6f2b44aa399fd0ac283dbb4c45e2e79da04403debd56ef74a5419d21cb2dfa6733 days 19 hrs ago0x813fdbe31cb74842d8db0039e1752105293d4130  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0001649146
0x02f5debfe71c54274cd82eeb4d08393e6661ff9d46eaf87eddec7560718f0a3733 days 19 hrs ago0xb51a5e70f5a4c8177d72dbf823dbc05030c0a319  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0003165697
0x15fa2672caa679a7cc4d22097addf46db88762563f9d78fc31fa02d2019410be33 days 20 hrs ago0x8db9c4330328ee1136a0305b3dcbb5463f50eb5d  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0003167169
0x877a0f42f99c769383daf4033c430dfd226e13953ec4551621850897a107b6bb33 days 21 hrs ago0x8db9c4330328ee1136a0305b3dcbb5463f50eb5d  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0000576127
0x6606e1e56f3ff7d915b13df484603727671f18dd8e1bf73d2cbcad94fd16d82f33 days 22 hrs ago0xee5235d9f11f77de8aeb53a73c6f26b9e7db1662  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0001304146
0xd09f054200ab37c2186a8f5c38d5c09643fdde369c14f9cfa61859576505a12533 days 22 hrs ago0x3c1ad2bc83867df89b49b465c9d2a81138d05195  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0001334713
0xfe288e49c263f4c0faa9aa9bf5c0c0f626258716a5c7add78d4949c6f8c7cd8633 days 22 hrs ago0xee5235d9f11f77de8aeb53a73c6f26b9e7db1662  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0001304146
0x5a6ac5366249370677e710dbcca923891d94ce79e4845d54df57fa895b9441e533 days 22 hrs ago0x3c1ad2bc83867df89b49b465c9d2a81138d05195  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0001331769
0x1f0d7ca7fb95729240d725d3bd08c1a91eeff6a2a6f69a6932b8a378b7a5501d33 days 22 hrs ago0xee5235d9f11f77de8aeb53a73c6f26b9e7db1662  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0001304146
0x7ae072a732f240dc2d25b9c4a669c0d3d4645e0e9e7c0e2f47a472a468b6580333 days 22 hrs ago0x3c1ad2bc83867df89b49b465c9d2a81138d05195  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0001331769
0xc7ecdbb61ba0fc0e9424c34e78a756452770092adbd9da389278eba47c786bd933 days 22 hrs ago0xee5235d9f11f77de8aeb53a73c6f26b9e7db1662  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0001304146
0xbee4d5d3031bacd3294c33e2904f96b5633eff1c89c4a912a7bc1749b77a5c0833 days 22 hrs ago0x3c1ad2bc83867df89b49b465c9d2a81138d05195  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0003167169
0x5fda55082e67ff92e071d579600a723ab737868ef3ffc6330c9e2a3f343a1fdb33 days 22 hrs ago0x1d69a1bd29b12d65c91b805ef17624fe94ec2716  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0001304146
0x30c578cfd1322d7280756269fc1d8e20bf4949def6ded4de8bbbb8a6908c123733 days 22 hrs ago0xee5235d9f11f77de8aeb53a73c6f26b9e7db1662  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0001224313
0x98778bf008217f729f4cb21cb0bc6e41b03c4b973f3af5fbed084330dfc212c833 days 22 hrs ago0x1d69a1bd29b12d65c91b805ef17624fe94ec2716  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0001304146
0x0ef578480f3cd9ddad21076b8672a154aa33eb64fc45d6c8f68976e4a05d4c3033 days 22 hrs ago0xee5235d9f11f77de8aeb53a73c6f26b9e7db1662  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0003170113
0x392895e81afd994f1169ce555cb723c2c814e933ef995d5e773e9ad7eafe382833 days 22 hrs ago0x8db9c4330328ee1136a0305b3dcbb5463f50eb5d  IN   0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0 Ether0.0000576127
[ 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
0x1b64cbff28e808d05144a0b9de3a5246aae8e5e6ee4102c195d406c43b191060370658333 days 18 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0x3b582c339f89eae7a1735e210e01647da815ca0c2454daedc5a7651fa75a656d370658133 days 18 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0xc503df3d57b8bbedc9f33666be4d8af31be6b63fd27994b41a6b04ba9366db74370636933 days 19 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0x9f5988631c47101930af0abff456f3a8a89cd812103f66928516b0c31b5b9031370636733 days 19 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0x3358647fd1778c9718bf053bf2d96d1b2233fc98e730de88b2b48a82bac54337370633033 days 19 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0x50ff6538147d54d149874dea85bf05b654b720bcd1cdb67edb17f6068cc628b3370632833 days 19 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0x29bd95bdb086995dbe5475b490e3d40fb50c1fd9f792a2d12b201141d48cfbe0370625933 days 19 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0xc8500bcf8a52b705b350a05e342015e5c1b761075f2eb449e13d11be85d23585370625733 days 19 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0x6f2b44aa399fd0ac283dbb4c45e2e79da04403debd56ef74a5419d21cb2dfa67370624833 days 19 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0x02f5debfe71c54274cd82eeb4d08393e6661ff9d46eaf87eddec7560718f0a37370624633 days 19 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0x15fa2672caa679a7cc4d22097addf46db88762563f9d78fc31fa02d2019410be370605233 days 20 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0x6606e1e56f3ff7d915b13df484603727671f18dd8e1bf73d2cbcad94fd16d82f370567433 days 22 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0xd09f054200ab37c2186a8f5c38d5c09643fdde369c14f9cfa61859576505a125370567233 days 22 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0xfe288e49c263f4c0faa9aa9bf5c0c0f626258716a5c7add78d4949c6f8c7cd86370565033 days 22 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0x5a6ac5366249370677e710dbcca923891d94ce79e4845d54df57fa895b9441e5370564733 days 22 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0x1f0d7ca7fb95729240d725d3bd08c1a91eeff6a2a6f69a6932b8a378b7a5501d370559933 days 22 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0x7ae072a732f240dc2d25b9c4a669c0d3d4645e0e9e7c0e2f47a472a468b65803370559833 days 22 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0xc7ecdbb61ba0fc0e9424c34e78a756452770092adbd9da389278eba47c786bd9370559033 days 22 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0xbee4d5d3031bacd3294c33e2904f96b5633eff1c89c4a912a7bc1749b77a5c08370558833 days 22 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0x5fda55082e67ff92e071d579600a723ab737868ef3ffc6330c9e2a3f343a1fdb370553433 days 22 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0x30c578cfd1322d7280756269fc1d8e20bf4949def6ded4de8bbbb8a6908c1237370553233 days 22 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0x98778bf008217f729f4cb21cb0bc6e41b03c4b973f3af5fbed084330dfc212c8370553133 days 22 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0x0ef578480f3cd9ddad21076b8672a154aa33eb64fc45d6c8f68976e4a05d4c30370553033 days 22 hrs ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0xaa871ec7e616e072dce6b7dee9b3ce300d3ce6ba28d604072cb344ef51592932370514034 days 17 mins ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
0x6fda265b08e2f516a21edd6dfd0f537e0c065ef4a233c098b52dc860e92f7452370513834 days 18 mins ago0xd4353e62b470fd6df25fb8d3da6b04357a1afcbe0xbaa3fa2ed111f3e8488c21861ea7b7dbb5a7b1210 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: EthTokenToSmthSwaps
Compiler Version: v0.4.24+commit.e67f0147
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.24;

// ----------------------------------------------------------------------------
// Safe maths from OpenZeppelin
// ----------------------------------------------------------------------------
library SafeMath {
  function mul(uint256 a, uint256 b) internal pure returns(uint256) {
    uint256 c = a * b;
    assert(a == 0 || 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 ERC20 {
    function transfer(address _to, uint256 _value) public;
    function transferFrom(address _from, address _to, uint256 _value) public returns(bool success);
}

contract EthTokenToSmthSwaps {

  using SafeMath for uint;

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

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

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

  // ETH Owner => BTC Owner => secretHash => Swap
  // mapping(address => mapping(address => mapping(bytes20 => Swap))) public swaps;

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

  event CreateSwap(address token, 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 _participantAddress, uint256 _value, address _token) public {
    require(_value > 0);
    require(swaps[msg.sender][_participantAddress].balance == uint256(0));
    require(ERC20(_token).transferFrom(msg.sender, this, _value));

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

    CreateSwap(_token, _participantAddress, msg.sender, _value, _secretHash, now);
  }
  // ETH Owner creates Swap with secretHash and targetWallet
  // ETH Owner make token deposit
  function createSwapTarget(bytes20 _secretHash, address _participantAddress, address _targetWallet, uint256 _value, address _token) public {
    require(_value > 0);
    require(swaps[msg.sender][_participantAddress].balance == uint256(0));
    require(ERC20(_token).transferFrom(msg.sender, this, _value));

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

    CreateSwap(_token, _participantAddress, msg.sender, _value, _secretHash, now);
  }
  function getBalance(address _ownerAddress) public view returns (uint256) {
    return swaps[_ownerAddress][msg.sender].balance;
  }

  event Withdraw(address _buyer, address _seller, uint256 withdrawnAt);
  // Get target wallet (buyer check)
  function getTargetWallet(address tokenOwnerAddress) public returns (address) {
      return swaps[tokenOwnerAddress][msg.sender].targetWallet;
  }
  // 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(_secret));
    require(swap.balance > uint256(0));
    require(swap.createdAt.add(SafeTime) > now);

    ERC20(swap.token).transfer(swap.targetWallet, swap.balance);

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

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

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

    ERC20(swap.token).transfer(swap.targetWallet, swap.balance);

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

    Withdraw(participantAddress, msg.sender, 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(_secret));
    require(swap.balance > uint256(0));
    require(swap.createdAt.add(SafeTime) > now);

    ERC20(swap.token).transfer(swap.targetWallet, swap.balance);

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

    Withdraw(participantAddress, _ownerAddress, now); 
  }

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

  event Refund();

  // 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);

    ERC20(swap.token).transfer(msg.sender, swap.balance);
    clean(msg.sender, _participantAddress);

    Refund();
  }

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

    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":false,"inputs":[{"name":"_secretHash","type":"bytes20"},{"name":"_participantAddress","type":"address"},{"name":"_targetWallet","type":"address"},{"name":"_value","type":"uint256"},{"name":"_token","type":"address"}],"name":"createSwapTarget","outputs":[],"payable":false,"stateMutability":"nonpayable","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":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"swaps","outputs":[{"name":"token","type":"address"},{"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":"_value","type":"uint256"},{"name":"_token","type":"address"}],"name":"createSwap","outputs":[],"payable":false,"stateMutability":"nonpayable","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":false,"inputs":[{"name":"tokenOwnerAddress","type":"address"}],"name":"getTargetWallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","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":"token","type":"address"},{"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":"withdrawnAt","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[],"name":"Refund","type":"event"}]

  Contract Creation Code Switch To Opcodes View
6080604052612a3060015534801561001657600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506124ca806100666000396000f3006080604052600436106100af576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631b258d50146100b4578063284180fc146101055780634b1a5773146101645780635721b89a1461020a5780638da5cb5b1461025b57806399caf975146102b2578063aa2e7ea0146103ca578063d348b5a414610450578063e03ec01d146104c1578063f8b2cb4f14610544578063fa89401a1461059b575b600080fd5b3480156100c057600080fd5b506101036004803603810190808035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506105de565b005b34801561011157600080fd5b50610146600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ab0565b60405180826000191660001916815260200191505060405180910390f35b34801561017057600080fd5b5061020860048036038101908080356bffffffffffffffffffffffff19169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610b39565b005b34801561021657600080fd5b506102596004803603810190808035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fde565b005b34801561026757600080fd5b506102706114b0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102be57600080fd5b50610313600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506114d5565b604051808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018560001916600019168152602001846bffffffffffffffffffffffff19166bffffffffffffffffffffffff19168152602001838152602001828152602001965050505050505060405180910390f35b3480156103d657600080fd5b5061044e60048036038101908080356bffffffffffffffffffffffff19169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611577565b005b34801561045c57600080fd5b506104bf6004803603810190808035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611a1b565b005b3480156104cd57600080fd5b50610502600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611eee565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561055057600080fd5b50610585600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611f97565b6040518082815260200191505060405180910390f35b3480156105a757600080fd5b506105dc600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612020565b005b6105e6612429565b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060c060405190810160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016002820154600019166000191681526020016003820160009054906101000a90046c01000000000000000000000000026bffffffffffffffffffffffff19166bffffffffffffffffffffffff191681526020016004820154815260200160058201548152505090506003836040518082600019166000191681526020019150506020604051808303816000865af11580156107ba573d6000803e3d6000fd5b505050604051516c01000000000000000000000000026bffffffffffffffffffffffff191681606001516bffffffffffffffffffffffff19161415156107ff57600080fd5b60008160a0015111151561081257600080fd5b4261082c60015483608001516122fb90919063ffffffff16565b11151561083857600080fd5b806000015173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82602001518360a001516040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b1580156108e757600080fd5b505af11580156108fb573d6000803e3d6000fd5b505050506000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206005018190555082600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020181600019169055507f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb338342604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a1505050565b6000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201549050919050565b600082111515610b4857600080fd5b6000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060050154141515610bd657600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015610cad57600080fd5b505af1158015610cc1573d6000803e3d6000fd5b505050506040513d6020811015610cd757600080fd5b81019080805190602001909291905050501515610cf357600080fd5b60c0604051908101604052808273ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1681526020016000600102600019168152602001866bffffffffffffffffffffffff1916815260200142815260200183815250600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040820151816002019060001916905560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff02191690836c01000000000000000000000000900402179055506080820151816004015560a082015181600501559050507fa942fb6162fdc98658856c3c9f64601635913193d896117e97fd78fb8cdde00a818533858942604051808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848152602001836bffffffffffffffffffffffff19166bffffffffffffffffffffffff19168152602001828152602001965050505050505060405180910390a15050505050565b610fe6612429565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060c060405190810160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016002820154600019166000191681526020016003820160009054906101000a90046c01000000000000000000000000026bffffffffffffffffffffffff19166bffffffffffffffffffffffff191681526020016004820154815260200160058201548152505090506003836040518082600019166000191681526020019150506020604051808303816000865af11580156111ba573d6000803e3d6000fd5b505050604051516c01000000000000000000000000026bffffffffffffffffffffffff191681606001516bffffffffffffffffffffffff19161415156111ff57600080fd5b60008160a0015111151561121257600080fd5b4261122c60015483608001516122fb90919063ffffffff16565b11151561123857600080fd5b806000015173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82602001518360a001516040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b1580156112e757600080fd5b505af11580156112fb573d6000803e3d6000fd5b505050506000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206005018190555082600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020181600019169055507f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb823342604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a1505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002602052816000526040600020602052806000526040600020600091509150508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020154908060030160009054906101000a90046c0100000000000000000000000002908060040154908060050154905086565b60008211151561158657600080fd5b6000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206005015414151561161457600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156116eb57600080fd5b505af11580156116ff573d6000803e3d6000fd5b505050506040513d602081101561171557600080fd5b8101908080519060200190929190505050151561173157600080fd5b60c0604051908101604052808273ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1681526020016000600102600019168152602001856bffffffffffffffffffffffff1916815260200142815260200183815250600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040820151816002019060001916905560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff02191690836c01000000000000000000000000900402179055506080820151816004015560a082015181600501559050507fa942fb6162fdc98658856c3c9f64601635913193d896117e97fd78fb8cdde00a818433858842604051808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848152602001836bffffffffffffffffffffffff19166bffffffffffffffffffffffff19168152602001828152602001965050505050505060405180910390a150505050565b611a23612429565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060c060405190810160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016002820154600019166000191681526020016003820160009054906101000a90046c01000000000000000000000000026bffffffffffffffffffffffff19166bffffffffffffffffffffffff191681526020016004820154815260200160058201548152505090506003846040518082600019166000191681526020019150506020604051808303816000865af1158015611bf7573d6000803e3d6000fd5b505050604051516c01000000000000000000000000026bffffffffffffffffffffffff191681606001516bffffffffffffffffffffffff1916141515611c3c57600080fd5b60008160a00151111515611c4f57600080fd5b42611c6960015483608001516122fb90919063ffffffff16565b111515611c7557600080fd5b806000015173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82602001518360a001516040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b158015611d2457600080fd5b505af1158015611d38573d6000803e3d6000fd5b505050506000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206005018190555083600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020181600019169055507f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb828442604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a150505050565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600501549050919050565b612028612429565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060c060405190810160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016002820154600019166000191681526020016003820160009054906101000a90046c01000000000000000000000000026bffffffffffffffffffffffff19166bffffffffffffffffffffffff1916815260200160048201548152602001600582015481525050905060008160a001511115156121d857600080fd5b426121f260015483608001516122fb90919063ffffffff16565b1015156121fe57600080fd5b806000015173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338360a001516040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b1580156122a957600080fd5b505af11580156122bd573d6000803e3d6000fd5b505050506122cb3383612319565b7f5d26862916391bf49478b2f5103b0720a842b45ef145a268f2cd1fb2aed5517860405160405180910390a15050565b600080828401905083811015151561230f57fe5b8091505092915050565b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560028201600090556003820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556004820160009055600582016000905550505050565b60c060405190810160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016000801916815260200160006bffffffffffffffffffffffff19168152602001600081526020016000815250905600a165627a7a7230582013081afdde01ccb1205915a9e7d2dbb9b53d5e40605ed6e587efd1b3a69f97480029

   Swarm Source:
bzzr://13081afdde01ccb1205915a9e7d2dbb9b53d5e40605ed6e587efd1b3a69f9748

 

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