Contract Overview
Balance: 33.053570240546136045 Ether
Transactions: 1366 txns
 Latest 25 transactions from a total of 1366 transactions

TxHash Age From To Value [TxFee]
0x94b49b25908425e310a26bf70443d3d58279ada8b014be17e9420f19ba08aeef58 days 19 hrs ago0xc4779087595e9c87b94e862f33a55a63e62bbcf8  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050.03983208 Ether0.00162428
0x4fc6b03af66d3774f6d184a3f2c6aca9c67eaf92dc1ce76998f424029c443bd858 days 22 hrs ago0xbb1699d16368ebc13bdc29e6a1aad50a21be45eb  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050 Ether0.000041076
0x58deb070c6c062115a939208838cef56620056fa44b67eb73f54f27a86bc64e858 days 23 hrs ago0xc6c969413399a1f32321dc938b4fa2dfd1fb4a9b  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050.0958 Ether0.00162428
0x9f76fd47be1f0f020ed9c208bad7a269930cc8280a79babaa1621273b55ae1fb59 days 4 hrs ago0xaeedf5f2ee1c05b7e70a0c63e13391eaa3ea61e4  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050.039908484 Ether0.0017403
0x461c183d10f02182d5bb59ddc2b4b44d45c57bd7e4a2c0b887afe2ac8440c19159 days 13 hrs ago0x44b02a67746e0976f8760be02d49f4ec3a209243  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050.044 Ether0.0023204
0xae145d76bda9dc462af8b3a19a74856cb9bf26c27306fa721a673f2bcb5c62ca59 days 15 hrs ago0xc6d5d8f5e23602d0511148de20850f2f490be490  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050.044 Ether0.0023204
0x086e9f2cf301c111007ce8d879ab7834482270b827ec4e4eb8ed91b471d0e083101 days 12 hrs ago0xbb1699d16368ebc13bdc29e6a1aad50a21be45eb  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050 Ether0.0040436
0x2931efbe1347703fc63b74c85fb363be3130b411a8b5cb6e62670189cf64f9c0101 days 12 hrs ago0xbb1699d16368ebc13bdc29e6a1aad50a21be45eb  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050 Ether0.0037608
0xf88d258eff06c5da54754b670088de4ea417b2410d9e1b70390fc27d49ef7c76101 days 12 hrs ago0xbb1699d16368ebc13bdc29e6a1aad50a21be45eb  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050 Ether0.0041086
0x760034c62211fbeaf0653c7f1b5f1eaa5790bae899c39977209edb86256364ee101 days 12 hrs ago0xbb1699d16368ebc13bdc29e6a1aad50a21be45eb  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050 Ether0.0037534
0x6609524e1a1fec963c477c4e35e258aed639ea988cc5a20b34e571a53cece7e4101 days 12 hrs ago0xbb1699d16368ebc13bdc29e6a1aad50a21be45eb  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050 Ether0.004115
0x894a6e747ba6523df7a56612602dc8136065881a832ea838b75da372652da871101 days 12 hrs ago0xbb1699d16368ebc13bdc29e6a1aad50a21be45eb  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050 Ether0.0041118
0x406109581081d97b13e09dca2bdf828ba390879f2de211c3b222f2e46a5f090d101 days 12 hrs ago0xbb1699d16368ebc13bdc29e6a1aad50a21be45eb  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050 Ether0.0041076
0x2054678674d337fe6815fd0fa02b7c58abdff7dab78ca606096e9a1fbf2da15d101 days 12 hrs ago0xbb1699d16368ebc13bdc29e6a1aad50a21be45eb  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050 Ether0.0037576
0x895d91c6345a5bf5d86a03ed189642f4be8e9131235236c77d5f9f016c1742fa101 days 12 hrs ago0xbb1699d16368ebc13bdc29e6a1aad50a21be45eb  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050 Ether0.0041044
0x9693a020971353800fd7b86383c669a9d988a93c0bf47e1caa4d39937e2e72ab101 days 12 hrs ago0xbb1699d16368ebc13bdc29e6a1aad50a21be45eb  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050 Ether0.004115
0xe822e235001067ae2a1e6b80acd632657a57417e88d350d2f3a871ba4f0660f7101 days 12 hrs ago0xbb1699d16368ebc13bdc29e6a1aad50a21be45eb  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050 Ether0.0040468
0x8f56b213b893298225c55e0a0478b26f5cb3669242824be1d3436ec65e609e9a101 days 12 hrs ago0xbb1699d16368ebc13bdc29e6a1aad50a21be45eb  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050 Ether0.004051
0x91e39b9dea2caf3ddd5873c68b1d2de396219d1d22069694622eef1e8b71ae63101 days 12 hrs ago0xbb1699d16368ebc13bdc29e6a1aad50a21be45eb  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050 Ether0.0040478
0x1dd36739b45615f8352f3e72b9cce837a6fcc09ac1dcf9151780c3c214c2f626101 days 12 hrs ago0xbb1699d16368ebc13bdc29e6a1aad50a21be45eb  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050 Ether0.0037566
0xcb2edd1611223354712750455ce03a526729a4d56e53f2d564ce68df542e7bb7101 days 12 hrs ago0xbb1699d16368ebc13bdc29e6a1aad50a21be45eb  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050 Ether0.0040468
0xdc6843494f68c8623cadac527f628536165f0b7d7743d87f28a02a82769882ce101 days 12 hrs ago0xbb1699d16368ebc13bdc29e6a1aad50a21be45eb  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050 Ether0.004051
0xfa1017f4a7ceab42dd0129682edba188eadbb0f719396d373398601ade850fe4101 days 12 hrs ago0xbb1699d16368ebc13bdc29e6a1aad50a21be45eb  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050 Ether0.004114
0x08d47828bc75ded18f256b2a10323df189215b6a3e0b62f486dbca65efcbe51d101 days 12 hrs ago0xbb1699d16368ebc13bdc29e6a1aad50a21be45eb  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050 Ether0.004051
0x81ba77ab5213618777d41d41b7bfa64f047daadbfc5c5dcf638eda382733d3d1101 days 12 hrs ago0xbb1699d16368ebc13bdc29e6a1aad50a21be45eb  IN   0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050 Ether0.0040436
[ 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
0x4fc6b03af66d3774f6d184a3f2c6aca9c67eaf92dc1ce76998f424029c443bd8315020358 days 22 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050xaeedf5f2ee1c05b7e70a0c63e13391eaa3ea61e40.033908484 Ether
0x4fc6b03af66d3774f6d184a3f2c6aca9c67eaf92dc1ce76998f424029c443bd8315020358 days 22 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050xbb1699d16368ebc13bdc29e6a1aad50a21be45eb0.006 Ether
0x086e9f2cf301c111007ce8d879ab7834482270b827ec4e4eb8ed91b471d0e0832908712101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050x73f01ad7181f631bdd3dde7e84b41c85c68d7a960.000000000000099 Ether
0x086e9f2cf301c111007ce8d879ab7834482270b827ec4e4eb8ed91b471d0e0832908712101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050xbb1699d16368ebc13bdc29e6a1aad50a21be45eb0.000000000000001 Ether
0x2931efbe1347703fc63b74c85fb363be3130b411a8b5cb6e62670189cf64f9c02908712101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050x1e8872064353ba83cc9733d65ed5d0cf52ce6be50.985 Ether
0xf88d258eff06c5da54754b670088de4ea417b2410d9e1b70390fc27d49ef7c762908712101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050xef9f17acdfdb53299b9371df8f240b8e0a225b1e0.0983279704879 Ether
0xf88d258eff06c5da54754b670088de4ea417b2410d9e1b70390fc27d49ef7c762908712101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050xbb1699d16368ebc13bdc29e6a1aad50a21be45eb0.00000081 Ether
0x760034c62211fbeaf0653c7f1b5f1eaa5790bae899c39977209edb86256364ee2908712101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050x3e53ae418b4de4d35889f0bf0962fc447aa17a0f0.0487497826088 Ether
0x6609524e1a1fec963c477c4e35e258aed639ea988cc5a20b34e571a53cece7e42908712101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050x4fae713c482459cf5d88a3d87c07aabc01a5da782.9404 Ether
0x6609524e1a1fec963c477c4e35e258aed639ea988cc5a20b34e571a53cece7e42908712101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050xbb1699d16368ebc13bdc29e6a1aad50a21be45eb0.059 Ether
0x894a6e747ba6523df7a56612602dc8136065881a832ea838b75da372652da8712908712101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050xda00fb02508cc0f0f06cd99cd492058a7abd5ed71.97524438745464038 Ether
0x894a6e747ba6523df7a56612602dc8136065881a832ea838b75da372652da8712908712101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050xbb1699d16368ebc13bdc29e6a1aad50a21be45eb0.008 Ether
0x406109581081d97b13e09dca2bdf828ba390879f2de211c3b222f2e46a5f090d2908712101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050xf389844a07ae4f0bb7361775f25d7fa60c2f3ff92.9586441176472 Ether
0x406109581081d97b13e09dca2bdf828ba390879f2de211c3b222f2e46a5f090d2908712101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050xbb1699d16368ebc13bdc29e6a1aad50a21be45eb0.039 Ether
0x2054678674d337fe6815fd0fa02b7c58abdff7dab78ca606096e9a1fbf2da15d2908712101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050x6b9040da187efdc572fd970053141e586542b8590.0483890909093 Ether
0x895d91c6345a5bf5d86a03ed189642f4be8e9131235236c77d5f9f016c1742fa2908712101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050x64ad7e86e424211ea80fd0269c5d411b9193a0bc0.0993451900003 Ether
0x895d91c6345a5bf5d86a03ed189642f4be8e9131235236c77d5f9f016c1742fa2908712101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050xbb1699d16368ebc13bdc29e6a1aad50a21be45eb0.00000081 Ether
0x9693a020971353800fd7b86383c669a9d988a93c0bf47e1caa4d39937e2e72ab2908710101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050x37cdb27ab69a5ea91f8e9bb4fa2da12bdb5c61b00.0987 Ether
0x9693a020971353800fd7b86383c669a9d988a93c0bf47e1caa4d39937e2e72ab2908710101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050xbb1699d16368ebc13bdc29e6a1aad50a21be45eb0.001 Ether
0xe822e235001067ae2a1e6b80acd632657a57417e88d350d2f3a871ba4f0660f72908710101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050x73f01ad7181f631bdd3dde7e84b41c85c68d7a960.000000000000099 Ether
0xe822e235001067ae2a1e6b80acd632657a57417e88d350d2f3a871ba4f0660f72908710101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050xbb1699d16368ebc13bdc29e6a1aad50a21be45eb0.000000000000001 Ether
0x8f56b213b893298225c55e0a0478b26f5cb3669242824be1d3436ec65e609e9a2908710101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050x73f01ad7181f631bdd3dde7e84b41c85c68d7a960.000000000000099 Ether
0x8f56b213b893298225c55e0a0478b26f5cb3669242824be1d3436ec65e609e9a2908710101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050xbb1699d16368ebc13bdc29e6a1aad50a21be45eb0.000000000000001 Ether
0x91e39b9dea2caf3ddd5873c68b1d2de396219d1d22069694622eef1e8b71ae632908710101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050x73f01ad7181f631bdd3dde7e84b41c85c68d7a960.000000000000099 Ether
0x91e39b9dea2caf3ddd5873c68b1d2de396219d1d22069694622eef1e8b71ae632908710101 days 12 hrs ago0x84dcbedf1ac6f69947d5a9ae34d9dcdd6ba1da050xbb1699d16368ebc13bdc29e6a1aad50a21be45eb0.000000000000001 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: Unidirectional
Compiler Text: v0.4.19+commit.c4cbbb05
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.19;

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) {
    uint256 c = a / b;
    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;
  }
}

library ECRecovery {

  function recover(bytes32 hash, bytes sig) public pure returns (address) {
    bytes32 r;
    bytes32 s;
    uint8 v;

    if (sig.length != 65) {
      return (address(0));
    }

    assembly {
      r := mload(add(sig, 32))
      s := mload(add(sig, 64))
      v := byte(0, mload(add(sig, 96)))
    }

    if (v < 27) {
      v += 27;
    }

    if (v != 27 && v != 28) {
      return (address(0));
    } else {
      return ecrecover(hash, v, r, s);
    }
  }

}



contract Unidirectional {
    using SafeMath for uint256;

    struct PaymentChannel {
        address sender;
        address receiver;
        uint256 value;

        uint32 settlingPeriod;
        uint256 settlingUntil;
    }

    mapping (bytes32 => PaymentChannel) public channels;

    event DidOpen(bytes32 indexed channelId, address indexed sender, address indexed receiver, uint256 value);
    event DidDeposit(bytes32 indexed channelId, uint256 deposit);
    event DidClaim(bytes32 indexed channelId);
    event DidStartSettling(bytes32 indexed channelId);
    event DidSettle(bytes32 indexed channelId);

    function open(bytes32 channelId, address receiver, uint32 settlingPeriod) public payable {
        require(isAbsent(channelId));

        channels[channelId] = PaymentChannel({
            sender: msg.sender,
            receiver: receiver,
            value: msg.value,
            settlingPeriod: settlingPeriod,
            settlingUntil: 0
        });

        DidOpen(channelId, msg.sender, receiver, msg.value);
    }

    function canDeposit(bytes32 channelId, address origin) public view returns(bool) {
        PaymentChannel memory channel = channels[channelId];
        bool isSender = channel.sender == origin;
        return isOpen(channelId) && isSender;
    }

    function deposit(bytes32 channelId) public payable {
        require(canDeposit(channelId, msg.sender));

        channels[channelId].value += msg.value;

        DidDeposit(channelId, msg.value);
    }

    function canStartSettling(bytes32 channelId, address origin) public view returns(bool) {
        PaymentChannel memory channel = channels[channelId];
        bool isSender = channel.sender == origin;
        return isOpen(channelId) && isSender;
    }

    function startSettling(bytes32 channelId) public {
        require(canStartSettling(channelId, msg.sender));

        PaymentChannel storage channel = channels[channelId];
        channel.settlingUntil = block.number + channel.settlingPeriod;

        DidStartSettling(channelId);
    }

    function canSettle(bytes32 channelId) public view returns(bool) {
        PaymentChannel memory channel = channels[channelId];
        bool isWaitingOver = isSettling(channelId) && block.number >= channel.settlingUntil;
        return isSettling(channelId) && isWaitingOver;
    }

    function settle(bytes32 channelId) public {
        require(canSettle(channelId));
        PaymentChannel storage channel = channels[channelId];
        channel.sender.transfer(channel.value);

        delete channels[channelId];
        DidSettle(channelId);
    }

    function canClaim(bytes32 channelId, uint256 payment, address origin, bytes signature) public view returns(bool) {
        PaymentChannel memory channel = channels[channelId];
        bool isReceiver = origin == channel.receiver;
        bytes32 hash = recoveryPaymentDigest(channelId, payment);
        bool isSigned = channel.sender == ECRecovery.recover(hash, signature);

        return isReceiver && isSigned;
    }

    function claim(bytes32 channelId, uint256 payment, bytes signature) public {
        require(canClaim(channelId, payment, msg.sender, signature));

        PaymentChannel memory channel = channels[channelId];

        if (payment >= channel.value) {
            channel.receiver.transfer(channel.value);
        } else {
            channel.receiver.transfer(payment);
            channel.sender.transfer(channel.value.sub(payment));
        }

        delete channels[channelId];

        DidClaim(channelId);
    }

    function isPresent(bytes32 channelId) public view returns(bool) {
        return !isAbsent(channelId);
    }

    function isAbsent(bytes32 channelId) public view returns(bool) {
        PaymentChannel memory channel = channels[channelId];
        return channel.sender == 0;
    }

    function isSettling(bytes32 channelId) public view returns(bool) {
        PaymentChannel memory channel = channels[channelId];
        return channel.settlingUntil != 0;
    }

    function isOpen(bytes32 channelId) public view returns(bool) {
        return isPresent(channelId) && !isSettling(channelId);
    }

    function paymentDigest(bytes32 channelId, uint256 payment) public view returns(bytes32) {
        return keccak256(address(this), channelId, payment);
    }

    function recoveryPaymentDigest(bytes32 channelId, uint256 payment) internal view returns(bytes32) {
        bytes memory prefix = "\x19Ethereum Signed Message:\n32";
        return keccak256(prefix, paymentDigest(channelId, payment));
    }
}

    Contract ABI  
[{"constant":true,"inputs":[{"name":"channelId","type":"bytes32"}],"name":"isPresent","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"channelId","type":"bytes32"},{"name":"origin","type":"address"}],"name":"canDeposit","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"channelId","type":"bytes32"},{"name":"payment","type":"uint256"}],"name":"paymentDigest","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"channelId","type":"bytes32"},{"name":"origin","type":"address"}],"name":"canStartSettling","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"channelId","type":"bytes32"}],"name":"isAbsent","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"channelId","type":"bytes32"}],"name":"isSettling","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"channelId","type":"bytes32"},{"name":"payment","type":"uint256"},{"name":"signature","type":"bytes"}],"name":"claim","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"channels","outputs":[{"name":"sender","type":"address"},{"name":"receiver","type":"address"},{"name":"value","type":"uint256"},{"name":"settlingPeriod","type":"uint32"},{"name":"settlingUntil","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"channelId","type":"bytes32"}],"name":"isOpen","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"channelId","type":"bytes32"}],"name":"settle","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"channelId","type":"bytes32"}],"name":"canSettle","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"channelId","type":"bytes32"}],"name":"deposit","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"channelId","type":"bytes32"},{"name":"receiver","type":"address"},{"name":"settlingPeriod","type":"uint32"}],"name":"open","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"channelId","type":"bytes32"}],"name":"startSettling","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"channelId","type":"bytes32"},{"name":"payment","type":"uint256"},{"name":"origin","type":"address"},{"name":"signature","type":"bytes"}],"name":"canClaim","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"channelId","type":"bytes32"},{"indexed":true,"name":"sender","type":"address"},{"indexed":true,"name":"receiver","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"DidOpen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"channelId","type":"bytes32"},{"indexed":false,"name":"deposit","type":"uint256"}],"name":"DidDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"channelId","type":"bytes32"}],"name":"DidClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"channelId","type":"bytes32"}],"name":"DidStartSettling","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"channelId","type":"bytes32"}],"name":"DidSettle","type":"event"}]

  Contract Creation Code Switch To Opcodes View
6060604052341561000f57600080fd5b610d9e8061001e6000396000f3006060604052600436106100d95763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041662f31e7681146100de5780632f8f0c921461010857806341b6fcf71461012a5780634722361c1461010857806360546602146101555780636683f9ae1461016b5780637964ea87146101815780637a7ebd7b146101df5780637c35be7a14610235578063987757dd1461024b578063ad37908914610261578063b214faa514610277578063ba6cc6c314610282578063e62eea47146102a2578063ec8be5b9146102b8575b600080fd5b34156100e957600080fd5b6100f4600435610320565b604051901515815260200160405180910390f35b341561011357600080fd5b6100f4600435600160a060020a0360243516610332565b341561013557600080fd5b6101436004356024356103c7565b60405190815260200160405180910390f35b341561016057600080fd5b6100f460043561040c565b341561017657600080fd5b6100f4600435610486565b341561018c57600080fd5b6101dd600480359060248035919060649060443590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506104fa95505050505050565b005b34156101ea57600080fd5b6101f56004356106c3565b604051600160a060020a03958616815293909416602084015260408084019290925263ffffffff166060830152608082019290925260a001905180910390f35b341561024057600080fd5b6100f4600435610705565b341561025657600080fd5b6101dd600435610726565b341561026c57600080fd5b6100f460043561080c565b6101dd6004356108a7565b6101dd600435600160a060020a036024351663ffffffff6044351661090f565b34156102ad57600080fd5b6101dd600435610a46565b34156102c357600080fd5b6100f460048035906024803591600160a060020a03604435169160849060643590810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610ab295505050505050565b600061032b8261040c565b1592915050565b600061033c610d32565b6000848152602081905260408082209060a0905190810160409081528254600160a060020a039081168352600184015481166020840152600284015491830191909152600383015463ffffffff1660608301526004909201546080820152925084168251600160a060020a03161490506103b585610705565b80156103be5750805b95945050505050565b6000308383604051600160a060020a03939093166c01000000000000000000000000028352601483019190915260348201526054016040518091039020905092915050565b6000610416610d32565b600083815260208190526040908190209060a0905190810160409081528254600160a060020a0390811683526001840154166020830152600283015490820152600382015463ffffffff166060820152600490910154608082015290508051600160a060020a0316159392505050565b6000610490610d32565b600083815260208190526040908190209060a0905190810160409081528254600160a060020a0390811683526001840154166020830152600283015490820152600382015463ffffffff166060820152600490910154608082019081529091505115159392505050565b610502610d32565b61050e84843385610ab2565b151561051957600080fd5b600084815260208190526040908190209060a0905190810160409081528254600160a060020a03908116835260018401541660208301526002830154908201908152600383015463ffffffff166060830152600490920154608082015291505183106105bf578060200151600160a060020a03166108fc82604001519081150290604051600060405180830381858888f1935050505015156105ba57600080fd5b61063c565b8060200151600160a060020a031683156108fc0284604051600060405180830381858888f1935050505015156105f457600080fd5b8051600160a060020a03166108fc6106178584604001519063ffffffff610c6c16565b9081150290604051600060405180830381858888f19350505050151561063c57600080fd5b600084815260208190526040808220805473ffffffffffffffffffffffffffffffffffffffff19908116825560018201805490911690556002810183905560038101805463ffffffff191690556004019190915584907f3de43c9e481138453c3cfea2781e18a609abb6448556669b257edc7de710fd64905160405180910390a250505050565b60006020819052908152604090208054600182015460028301546003840154600490940154600160a060020a03938416949290931692909163ffffffff169085565b600061071082610320565b8015610720575061032b82610486565b92915050565b60006107318261080c565b151561073c57600080fd5b5060008181526020819052604090819020805460028201549192600160a060020a039091169180156108fc029151600060405180830381858888f19350505050151561078757600080fd5b600082815260208190526040808220805473ffffffffffffffffffffffffffffffffffffffff19908116825560018201805490911690556002810183905560038101805463ffffffff191690556004019190915582907f74fb75c3de2cff5e8a78cf9b1f49a5bea60126b42ed45bb4b2b25b7da03e4d1b905160405180910390a25050565b6000610816610d32565b6000838152602081905260408082209060a0905190810160409081528254600160a060020a0390811683526001840154166020830152600283015490820152600382015463ffffffff1660608201526004909101546080820152915061087b84610486565b801561088b575081608001514310155b905061089684610486565b801561089f5750805b949350505050565b6108b18133610332565b15156108bc57600080fd5b6000818152602081905260409081902060020180543490810190915582917f6f850cda6d6b2f5cca622bc2d4739e4ed917c12d29f9a92b9e6c127abe39842491905190815260200160405180910390a250565b6109188361040c565b151561092357600080fd5b60a06040519081016040908152600160a060020a0333811683528416602080840191909152348284015263ffffffff8416606084015260006080840181905286815290819052208151815473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0391909116178155602082015160018201805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039290921691909117905560408201518160020155606082015160038201805463ffffffff191663ffffffff92909216919091179055608082015160049091015550600160a060020a03808316903316847f2f7cfc632227c054da7caaf75268353dba6206f53e9f7a547a193e66ab8c94dc3460405190815260200160405180910390a4505050565b6000610a528233610332565b1515610a5d57600080fd5b5060008181526020819052604090819020600381015463ffffffff16430160048201559082907fd6461a3a92fd600fe23f236b2e25c2fd0c197a66b2f990989f0b210d578f4617905160405180910390a25050565b6000610abc610d32565b600086815260208190526040808220829182919060a0905190810160409081528254600160a060020a03908116835260018401541660208301908152600284015491830191909152600383015463ffffffff1660608301526004909201546080820152945051600160a060020a031687600160a060020a0316149250610b428989610c7e565b9150732f35d171e35fbeeffbc4d8d86c7d4bed33685e6e6319045a2583886000604051602001526040517c010000000000000000000000000000000000000000000000000000000063ffffffff851602815260048101838152604060248301908152909160440183818151815260200191508051906020019080838360005b83811015610bd9578082015183820152602001610bc1565b50505050905090810190601f168015610c065780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b1515610c2357600080fd5b6102c65a03f41515610c3457600080fd5b5050506040518051600160a060020a031690508451600160a060020a0316149050828015610c5f5750805b9998505050505050505050565b600082821115610c7857fe5b50900390565b6000610c88610d60565b60408051908101604052601c81527f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152905080610cc985856103c7565b6040518083805190602001908083835b60208310610cf85780518252601f199092019160209182019101610cd9565b6001836020036101000a03801982511681845116179092525050509190910192835250506020019050604051809103902091505092915050565b60a0604051908101604090815260008083526020830181905290820181905260608201819052608082015290565b602060405190810160405260008152905600a165627a7a7230582054107390e3abdedc00b3ae8b66039c130a5995a3ce03c1875e71bb0084435c460029

   Library Used
ECRecovery : 0x2f35d171e35fbeeffbc4d8d86c7d4bed33685e6e

   Swarm Source:
bzzr://54107390e3abdedc00b3ae8b66039c130a5995a3ce03c1875e71bb0084435c46

 

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