Contract Overview
ETH Balance: 16.347 Ether
Mined:  0
No Of Transactions: 81 txns + 3 internalTxns
  Latest 25 txns from a total Of 81 transactions View All

TxHash Block Age From To Value [TxFee]
0x6135b0a79d3acb32b28e364bd129d0ee97ad77e08c6dcd458dbbdfc39e1e83fa7552871 day 1 hr ago0x91c31aa78f26e2f9289ab0f924c1c6e5127c86e5  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.00983985
0x749b59eda74f5452598b86b22617993df18365f28a8dc4a933ddd7ca7e4e0a097204596 days 17 hrs ago0x20426f457243b8ec7ce90a5056311aaeb524a4e2  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.0094176
0xdcfa2d09c7b3f36cce5fd67dd1cee6ea29f51b1cc1d9327377ed685bfe4eb74069833510 days 11 hrs ago0x7d9d939949892b9773d8f45ef6adec3a9cd0fb3e  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.00740318
0x06295cf58a9f982a0048378e3fdf2390f8525630516d4acb4041032c7f60f9bc69513610 days 23 hrs ago0x5016c84e8136bcb2a9c8976f5a0beecb0fc4d549  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.0075903
0x4b8bdc4bfabe059343a8558f1ea45b79906a93118e605c2363917e8a83cb8c9e64633218 days 14 hrs ago0x5a666e5de2d3714ef391dac8de9611ca7386ac95  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.01
0xe070a24b68fecf35f79fee98c36d3c544049bb2054f776f25aa51d33e10c2ec763418620 days 16 hrs ago0xe61f037d5d4db60f2ebd033939d1b5fda85c8245  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.00069568
0x18d7a4b9893f4c623517fe08e37ba430302e534a0039d5b46e9f0bc15da03a6163418620 days 16 hrs ago0xe61f037d5d4db60f2ebd033939d1b5fda85c8245  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.00069568
0x1d7d4c9df1e852829a48022daab8e1801ec1f408cc369198352c898a0789dfd263418120 days 16 hrs ago0xe61f037d5d4db60f2ebd033939d1b5fda85c8245  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.00099568
0xba34896b7bc2f36e900efe3885e02610bc657d2799895e9a985f989a8f049ed162876521 days 15 hrs ago0xb40e47b8e6f29731b1bb483cc8028fa121612794  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.00762778
0x53d508afb06913f0083f925f473eaeecb76438067bf38e05d6dcbcf8329caf8662590922 days 2 hrs ago0x902254c7ce7f87041fccc38ca18b0a25d36bd9d2  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.00069568
0x5ba4f11fff71e946a305b380d741e417afdca6ab10bb2af9a4abbe4ff43691b562590922 days 2 hrs ago0x902254c7ce7f87041fccc38ca18b0a25d36bd9d2  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.00099568
0x019005d984ed6da730c65002f71adb323ec5d4665788ae90bba86d3de503178a62590522 days 2 hrs ago0x902254c7ce7f87041fccc38ca18b0a25d36bd9d2  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.00101736
0xbf90b3325c8df792f695d0733828a716c9e94bd295ce10496fbbf50f48212aa462590422 days 3 hrs ago0x902254c7ce7f87041fccc38ca18b0a25d36bd9d2  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.01
0xea37d7176c792ec08f955259adb7f93abef6fdc5af78ba08a246f2561a83ccd862590422 days 3 hrs ago0x902254c7ce7f87041fccc38ca18b0a25d36bd9d2  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.00721534
0x1462fb82ac3c0d68bb88f600af21f122ba6066f0d0668bb21e045cd6a33e358662579822 days 3 hrs ago0x902254c7ce7f87041fccc38ca18b0a25d36bd9d2  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.00099568
0x87bf3dbf0f37fce2768661269db65df62327e86aebf06be05caadba3d8c5706a62577922 days 3 hrs ago0x902254c7ce7f87041fccc38ca18b0a25d36bd9d2  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.0074966
0x5929713067f678e057d264027ef8206c76198f6bdeaf7b2b96f0fe1314484ad862575522 days 4 hrs ago0x902254c7ce7f87041fccc38ca18b0a25d36bd9d2  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.01
0xf77490632ac099e30576e045407d22778f86330fc5b53591259d346e28f12dd162511722 days 6 hrs ago0xe61f037d5d4db60f2ebd033939d1b5fda85c8245  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.01
0x0726c5a925f1bce812bf271f834a7909a57845de01f8e500dabb8d8ab553d46c62500122 days 7 hrs ago0xe61f037d5d4db60f2ebd033939d1b5fda85c8245  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.00760904
0xf59bb9fd9f52105c0b29890973303a24266f4259f5be21a0401c33dec2dac34262498622 days 7 hrs ago0xb6e6fe5d9af6c6d81a5c75d7103caed46bb9a6f0  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.00757156
0x0dc5d8b2a268cb0a4ac3883001017287252e42580092c9d1596db86eb3a6d93858970229 days 1 hr ago0x32d4fb6d2f4efa7daaa6bff109c8f1916649b4cb  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.0003857
0xae9c16151dda462ad3e02973d6c89ec1df8a3cf5deecb74cb72e1c4635bd365d57505032 days 1 min ago0x32d4fb6d2f4efa7daaa6bff109c8f1916649b4cb  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880.6 Ether0.00296643
0x6b7fcb1f70c260e92fda1f73b123a60ad470d99ad69b4eaaecbd9a0a7fd303e557484932 days 47 mins ago0x32d4fb6d2f4efa7daaa6bff109c8f1916649b4cb  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.01163562
0x8089e8cceba231e3748891d713bb3bc254470f88841b736c8ac47532150e796357483032 days 50 mins ago0x32d4fb6d2f4efa7daaa6bff109c8f1916649b4cb  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.00099568
0x834ab0d2e8a0aa9049e95801a0f09b2997828fec96588abb4c2f8b4a4062070857365832 days 5 hrs ago0x32d4fb6d2f4efa7daaa6bff109c8f1916649b4cb  IN   0x7ac337474ca82e0f324fbbe8493f175e0f6811880 Ether0.01

[Download: CSV Export ]    
 Internal Transactions as a result of Contract Execution
  Latest 3 Internal Transactions

ParentTxHash Block Age From To Value
0x0dc5d8b2a268cb0a4ac3883001017287252e42580092c9d1596db86eb3a6d93858970229 days 1 hr ago0x7ac337474ca82e0f324fbbe8493f175e0f6811880x32d4fb6d2f4efa7daaa6bff109c8f1916649b4cb0.5 Ether
0xb71ec2b9775d39e91bb1821b39e1d8c3a64aa84359b2bb5d3ca17dd6b842d45850480443 days 13 hrs ago0x7ac337474ca82e0f324fbbe8493f175e0f6811880x7d9d939949892b9773d8f45ef6adec3a9cd0fb3e0.633 Ether
0x507750ec05ec2b68e9fcac12830e094ebc3b388884e96a4d16f5ed5a82abfc1f31167474 days 17 hrs ago0x7ac337474ca82e0f324fbbe8493f175e0f6811880x811f2474a062dd87ff47c106cf8f59981c2f0f7c0.3101 Ether
Contract Source Code Verified
Contract Name: AuctionHouse
Compiler Version: v0.4.4+commit.4633f3de
Optimization Enabled: Yes
Online Solidity Editor:  -NA-



  Contract Source Code   Find Similiar Contracts
pragma solidity ^0.4.2;

// Abstract contract for a not yet agreed upon standard for non-fungible
// on chain goods

contract Asset {
    function owner(string _recordId) returns (address ownerAddress);

    function setOwner(string _recordId, address _newOwner) returns (bool success);    
}

// This is the main contract that governs execution of auctions
// of non-fungible on-chain assets. Any user can initiate an auction
// for an item that conforms to the Asset interface described in
// Asset.sol

contract AuctionHouse {

    struct Bid {
        address bidder;
        uint256 amount;
        uint timestamp;
    }

    enum AuctionStatus {Pending, Active, Inactive}

    struct Auction {
        // Location and ownership information of the item for sale
        address seller;
        address contractAddress; // Contract where the item exists
        string recordId;         // RecordID within the contract as per the Asset interface

        // Auction metadata
        string title;
        string description;      // Optionally markdown formatted?
        uint blockNumberOfDeadline;
        AuctionStatus status;

        // Distribution bonus
        uint distributionCut;    // In percent, ie 10 is a 10% cut to the distribution address
        address distributionAddress; 

        // Pricing
        uint256 startingPrice;   // In wei
        uint256 reservePrice;
        uint256 currentBid;

        Bid[] bids;
    }

    Auction[] public auctions;          // All auctions
    mapping(address => uint[]) public auctionsRunByUser; // Pointer to auctions index for auctions run by this user

    mapping(address => uint[]) public auctionsBidOnByUser; // Pointer to auctions index for auctions this user has bid on

    mapping(string => bool) activeContractRecordConcat;

    mapping(address => uint) refunds;

    address owner;

    // Events
    event AuctionCreated(uint id, string title, uint256 startingPrice, uint256 reservePrice);
    event AuctionActivated(uint id);
    event AuctionCancelled(uint id);
    event BidPlaced(uint auctionId, address bidder, uint256 amount);
    event AuctionEndedWithWinner(uint auctionId, address winningBidder, uint256 amount);
    event AuctionEndedWithoutWinner(uint auctionId, uint256 topBid, uint256 reservePrice);

    event LogFailure(string message);

    modifier onlyOwner {
        if (owner != msg.sender) throw;
        _;
    }

    modifier onlySeller(uint auctionId) {
        if (auctions[auctionId].seller != msg.sender) throw;
        _;
    }

    modifier onlyLive(uint auctionId) {
        Auction a = auctions[auctionId];
        if (a.status != AuctionStatus.Active) {
            throw;
        }

        // Auction should not be over
        if (block.number >= a.blockNumberOfDeadline) {
            throw;
        }
        _;
    }

    function AuctionHouse() {
        owner = msg.sender;
    }

    // Create an auction, transfer the item to this contract, activate the auction
    function createAuction(
                           string _title,
                           string _description,
                           address _contractAddressOfAsset,
                           string _recordIdOfAsset,
                           uint _deadline,   // in blocknumber
                           uint256 _startingPrice,
                           uint256 _reservePrice,
                           uint _distributionCut,
                           address _distributionCutAddress) returns (uint auctionId) {

        // Check to see if the seller owns the asset at the contract
        if (!partyOwnsAsset(msg.sender, _contractAddressOfAsset, _recordIdOfAsset)) {
            LogFailure("Seller does not own this asset");
            throw;
        }

        // Check to see if the auction deadline is in the future
        if (block.number >= _deadline) {
            LogFailure("Block number is not in the future");
            throw;
        }

        // Price validations
        if (_startingPrice < 0 || _reservePrice < 0) {
            LogFailure("StartingPrice or ReservePrice was below zero");
            throw;
        }

        // Distribution validations
        if (_distributionCut < 0 || _distributionCut > 100) {
            LogFailure("DistributionCut is invalid");
            throw;
        }

        if (activeContractRecordConcat[strConcat(addrToString(_contractAddressOfAsset), _recordIdOfAsset)] == true) {
            LogFailure("Item already on auction");
            throw;
        }

        auctionId = auctions.length++;
        Auction a = auctions[auctionId];
        a.seller = msg.sender;
        a.contractAddress = _contractAddressOfAsset;
        a.recordId = _recordIdOfAsset;
        a.title = _title;
        a.description = _description;
        a.blockNumberOfDeadline = _deadline;
        a.status = AuctionStatus.Pending;
        a.distributionCut = _distributionCut;
        a.distributionAddress = _distributionCutAddress;
        a.startingPrice = _startingPrice;
        a.reservePrice = _reservePrice;
        a.currentBid = _startingPrice;

        auctionsRunByUser[a.seller].push(auctionId);
        activeContractRecordConcat[strConcat(addrToString(_contractAddressOfAsset), _recordIdOfAsset)] = true;

        AuctionCreated(auctionId, a.title, a.startingPrice, a.reservePrice);

        return auctionId;
    }

    function partyOwnsAsset(address _party, address _contract, string _recordId) returns (bool success) {
        Asset assetContract = Asset(_contract);
        return assetContract.owner(_recordId) == _party;
    }

    /**
     * The auction fields are indexed in the return val as follows
     * [0]  -> Auction.seller
     * [1]  -> Auction.contractAddress
     * [2]  -> Auction.recordId
     * [3]  -> Auction.title
     * [4]  -> Auction.description
     * [5]  -> Auction.blockNumberOfDeadline
     * [6]  -> Auction.distributionCut
     * [7]  -> Auction.distributionAddress
     * [8]  -> Auction.startingPrice
     * [9] -> Auction.reservePrice
     * [10] -> Auction.currentBid
     * [11] -> Auction.bids.length      
     * []  -> Auction.status (Not included right now)
     */
    function getAuction(uint idx) returns (address, address, string, string, string, uint, uint, address, uint256, uint256, uint256, uint) {
        Auction a = auctions[idx];
        if (a.seller == 0) {
            throw;
        }

        return (a.seller,
                a.contractAddress,
                a.recordId,
                a.title,
                a.description,
                a.blockNumberOfDeadline,
                a.distributionCut,
                a.distributionAddress,
                a.startingPrice,
                a.reservePrice,
                a.currentBid,
                a.bids.length
                );
    }

    function getAuctionCount() returns (uint) {
        return auctions.length;
    }

    function getStatus(uint idx) returns (uint) {
        Auction a = auctions[idx];
        return uint(a.status);
    }

    function getAuctionsCountForUser(address addr) returns (uint) {
        return auctionsRunByUser[addr].length;
    }

    function getAuctionIdForUserAndIdx(address addr, uint idx) returns (uint) {
        return auctionsRunByUser[addr][idx];
    }

    function getActiveContractRecordConcat(string _contractRecordConcat) returns (bool) {
        return activeContractRecordConcat[_contractRecordConcat];
    }

    // Checks if this contract address is the owner of the item for the auction
    function activateAuction(uint auctionId) onlySeller(auctionId) returns (bool){
        Auction a = auctions[auctionId];

        if (!partyOwnsAsset(this, a.contractAddress, a.recordId)) throw;

        a.status = AuctionStatus.Active;
        AuctionActivated(auctionId);
        return true;
    }

    function cancelAuction(uint auctionId) onlySeller(auctionId) returns (bool) {
        Auction a = auctions[auctionId];

        if (!partyOwnsAsset(this, a.contractAddress, a.recordId)) throw;
        if (a.currentBid >= a.reservePrice) throw;   // Can't cancel the auction if someone has already outbid the reserve.

        Asset asset = Asset(a.contractAddress);
        if(!asset.setOwner(a.recordId, a.seller)) {
            throw;
        }

        // Refund to the bidder
        uint bidsLength = a.bids.length;
        if (bidsLength > 0) {
            Bid topBid = a.bids[bidsLength - 1];
            refunds[topBid.bidder] += topBid.amount;

            activeContractRecordConcat[strConcat(addrToString(a.contractAddress), a.recordId)] = false;
        }

        AuctionCancelled(auctionId);
        a.status = AuctionStatus.Inactive;
        return true;
    }

    /* BIDS */
    function getBidCountForAuction(uint auctionId) returns (uint) {
        Auction a = auctions[auctionId];
        return a.bids.length;
    }

    function getBidForAuctionByIdx(uint auctionId, uint idx) returns (address bidder, uint256 amount, uint timestamp) {
        Auction a = auctions[auctionId];
        if(idx > a.bids.length - 1) {
            throw;
        }

        Bid b = a.bids[idx];
        return (b.bidder, b.amount, b.timestamp);
    }

    function placeBid(uint auctionId) payable onlyLive(auctionId) returns (bool success) {
        uint256 amount = msg.value;
        Auction a = auctions[auctionId];

        if (a.currentBid >= amount) throw;

        uint bidIdx = a.bids.length++;
        Bid b = a.bids[bidIdx];
        b.bidder = msg.sender;
        b.amount = amount;
        b.timestamp = now;
        a.currentBid = amount;

        auctionsBidOnByUser[b.bidder].push(auctionId);

        // Log refunds for the previous bidder
        if (bidIdx > 0) {
            Bid previousBid = a.bids[bidIdx - 1];
            refunds[previousBid.bidder] += previousBid.amount;
        }

        BidPlaced(auctionId, b.bidder, b.amount);
        return true;
    }

    function getRefundValue() returns (uint) {
        return refunds[msg.sender];
    }

    function withdrawRefund() {
        uint refund = refunds[msg.sender];
        refunds[msg.sender] = 0;
        if (!msg.sender.send(refund))
            refunds[msg.sender] = refund;
    }

    function endAuction(uint auctionId) returns (bool success) {
        // Check if the auction is passed the end date
        Auction a = auctions[auctionId];
        activeContractRecordConcat[strConcat(addrToString(a.contractAddress), a.recordId)] = false;

        // Make sure auction hasn't already been ended
        if (a.status != AuctionStatus.Active) {
            LogFailure("Can not end an auction that's already ended");
            throw;
        }
        
        if (block.number < a.blockNumberOfDeadline) {
            LogFailure("Can not end an auction that hasn't hit the deadline yet");
            throw; 
        }

        Asset asset = Asset(a.contractAddress);

        // No bids, make the auction inactive
        if (a.bids.length == 0) {
            if(!asset.setOwner(a.recordId, a.seller)) {
                throw;
            }
            a.status = AuctionStatus.Inactive;
            return true;
        }

        Bid topBid = a.bids[a.bids.length - 1];

        // If the auction hit its reserve price
        if (a.currentBid >= a.reservePrice) {
            uint distributionShare = a.currentBid * a.distributionCut / 100;  // Calculate the distribution cut
            uint sellerShare = a.currentBid - distributionShare;

            if(!asset.setOwner(a.recordId, topBid.bidder)) {
                throw;
            } // Set the items new owner

            refunds[a.distributionAddress] += distributionShare;
            refunds[a.seller] += sellerShare;

            AuctionEndedWithWinner(auctionId, topBid.bidder, a.currentBid);
        } else {
            // Return the item to the owner and the money to the top bidder
            if(!asset.setOwner(a.recordId, a.seller)) {
                throw;
            }

            refunds[topBid.bidder] += a.currentBid;

            AuctionEndedWithoutWinner(auctionId, a.currentBid, a.reservePrice);
        }

        a.status = AuctionStatus.Inactive;
        return true;
    }

    function() {
        // Don't allow ether to be sent blindly to this contract
        throw;
    }

    function strConcat(string _a, string _b) internal returns (string) {
        bytes memory _ba = bytes(_a);
        bytes memory _bb = bytes(_b);
        bytes memory ab = new bytes (_ba.length + _bb.length);
        uint k = 0;
        for (uint i = 0; i < _ba.length; i++) ab[k++] = _ba[i];
        for (i = 0; i < _bb.length; i++) ab[k++] = _bb[i];
        return string(ab);
    }

    function addrToString(address x) returns (string) {
        bytes memory b = new bytes(20);
        for (uint i = 0; i < 20; i++)
            b[i] = byte(uint8(uint(x) / (2**(8*(19 - i)))));
        return string(b);
    }
}

  Contract ABI  
[{"constant":false,"inputs":[],"name":"withdrawRefund","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"auctionId","type":"uint256"},{"name":"idx","type":"uint256"}],"name":"getBidForAuctionByIdx","outputs":[{"name":"bidder","type":"address"},{"name":"amount","type":"uint256"},{"name":"timestamp","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"},{"name":"idx","type":"uint256"}],"name":"getAuctionIdForUserAndIdx","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"auctionId","type":"uint256"}],"name":"getBidCountForAuction","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"auctionId","type":"uint256"}],"name":"activateAuction","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_party","type":"address"},{"name":"_contract","type":"address"},{"name":"_recordId","type":"string"}],"name":"partyOwnsAsset","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"auctions","outputs":[{"name":"seller","type":"address"},{"name":"contractAddress","type":"address"},{"name":"recordId","type":"string"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"blockNumberOfDeadline","type":"uint256"},{"name":"status","type":"uint8"},{"name":"distributionCut","type":"uint256"},{"name":"distributionAddress","type":"address"},{"name":"startingPrice","type":"uint256"},{"name":"reservePrice","type":"uint256"},{"name":"currentBid","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"getRefundValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"idx","type":"uint256"}],"name":"getStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"idx","type":"uint256"}],"name":"getAuction","outputs":[{"name":"","type":"address"},{"name":"","type":"address"},{"name":"","type":"string"},{"name":"","type":"string"},{"name":"","type":"string"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"address"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"uint256"}],"name":"auctionsBidOnByUser","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"auctionId","type":"uint256"}],"name":"cancelAuction","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"auctionId","type":"uint256"}],"name":"placeBid","outputs":[{"name":"success","type":"bool"}],"payable":true,"type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"}],"name":"getAuctionsCountForUser","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"uint256"}],"name":"auctionsRunByUser","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"x","type":"address"}],"name":"addrToString","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"auctionId","type":"uint256"}],"name":"endAuction","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"getAuctionCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_title","type":"string"},{"name":"_description","type":"string"},{"name":"_contractAddressOfAsset","type":"address"},{"name":"_recordIdOfAsset","type":"string"},{"name":"_deadline","type":"uint256"},{"name":"_startingPrice","type":"uint256"},{"name":"_reservePrice","type":"uint256"},{"name":"_distributionCut","type":"uint256"},{"name":"_distributionCutAddress","type":"address"}],"name":"createAuction","outputs":[{"name":"auctionId","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_contractRecordConcat","type":"string"}],"name":"getActiveContractRecordConcat","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"inputs":[],"type":"constructor"},{"payable":false,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"id","type":"uint256"},{"indexed":false,"name":"title","type":"string"},{"indexed":false,"name":"startingPrice","type":"uint256"},{"indexed":false,"name":"reservePrice","type":"uint256"}],"name":"AuctionCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"id","type":"uint256"}],"name":"AuctionActivated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"id","type":"uint256"}],"name":"AuctionCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"auctionId","type":"uint256"},{"indexed":false,"name":"bidder","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"BidPlaced","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"auctionId","type":"uint256"},{"indexed":false,"name":"winningBidder","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"AuctionEndedWithWinner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"auctionId","type":"uint256"},{"indexed":false,"name":"topBid","type":"uint256"},{"indexed":false,"name":"reservePrice","type":"uint256"}],"name":"AuctionEndedWithoutWinner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"message","type":"string"}],"name":"LogFailure","type":"event"}]

  Contract Creation Code Switch To Opcodes View
606060405260058054600160a060020a0319166c01000000000000000000000000338102041790556125bd806100356000396000f3606060405236156100f05760e060020a6000350463110f887481146100fd5780631313c7391461016357806324a12edf146101b35780634bc32ea2146101f757806353488f0a146102365780635609825e14610284578063571a26a0146102db57806359e540951461035c5780635c622a0e1461038157806378bd7935146103c157806388c93e221461045557806396b5a7551461048f5780639979ef45146104e35780639abb2c161461052f5780639ecbab2314610559578063b7d534a114610593578063b9a2de3a146105a3578063c44e6640146105fa578063db7162a21461060a578063ede05887146107cb575b346100025761086f610002565b346100025761086f600160a060020a033316600081815260046020526040808220805490839055905190929183156108fc02918491818181858888f19350505050151561016057600160a060020a03331660009081526004602052604090208190555b50565b34610002576108716004356024356000600060006000600060006000508781548110156100025790600052602060002090600d0201600050600c81015490925060001901861115610da257610002565b3461000257610899600435602435600160a060020a038216600090815260016020526040812080548390811015610002576000918252602090912001549392505050565b34610002576108996004356000600060006000508381548110156100025790600052602060002090600d0201600050600c810154925090505b50919050565b34610002576108ab600435600060008233600160a060020a031660006000508281548110156100025790600052602060002090600d020160005054600160a060020a031614610de757610002565b3461000257604080516020600460443581810135601f81018490048402850184019095528484526108ab9482359460248035956064949293919092019181908401838280828437509496506106f695505050505050565b34610002576108bf6004356000805482908110156100025790600052602060002090600d02016000508054600182015460058301546006840154600785015460088601546009870154600a880154600b890154600160a060020a039889169a5096881698600281019860038201986004909201979660ff169594169291908c565b3461000257610899600160a060020a0333166000908152600460205260409020545b90565b34610002576108996004356000600060006000508381548110156100025790600052602060002090600d0201600050600681015460ff1692509050610230565b3461000257610aa5600435600060006020604051908101604052806000815260200150602060405190810160405280600081526020015060206040519081016040528060008152602001506000600060006000600060006000600060006000508e81548110156100025790600052602060002090600d02016000508054909150600160a060020a03161515610f0b57610002565b3461000257610899600435602435600260205260008281526040902080548290811015610002576000918252602090912001549150829050565b34610002576108ab600435600060006000600060008533600160a060020a031660006000508281548110156100025790600052602060002090600d020160005054600160a060020a03161461117b57610002565b6108ab60043560006000600060006000600086600060006000508281548110156100025790600052602060002090600d0201600050600681015490915060ff1660011461152757610002565b3461000257610899600435600160a060020a0381166000908152600160205260409020545b919050565b3461000257610899600435602435600160205260008281526040902080548290811015610002576000918252602090912001549150829050565b3461000257610c2b600435610d01565b34610002576108ab6004356000600060006000600060006000600050878154811015610002576000918252602082206001600d9092020190810154909650600390611870906113d690600160a060020a0316610d01565b346100025761089960005461037e565b34610002576108996004808035906020019082018035906020019191908080601f01602080910402602001604051908101604052809392919081815260200183838082843750506040805160208835808b0135601f810183900483028401830190945283835297999860449892975091909101945090925082915084018382808284375050604080516020606435808b0135601f8101839004830284018301909452838352979998359897608497509195506024919091019350909150819084018382808284375094965050933593505060a43591505060c43560e4356101043560006000611e39338a8a5b6000600083905084600160a060020a031681600160a060020a031663df55b41a856000604051602001526040518260e060020a02815260040180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f16801561078c5780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b156100025760325a03f11561000257505060405151600160a060020a0316919091149695505050505050565b34610002576108ab6004808035906020019082018035906020019191908080601f016020809104026020016040519081016040528093929190818152602001838380828437509496505050505050506000600360005082604051808280519060200190808383829060006004602084601f0104600302600f01f150905001915050908152602001604051809103902060009054906101000a900460ff169050610554565b005b60408051600160a060020a039094168452602084019290925282820152519081900360600190f35b60408051918252519081900360200190f35b604080519115158252519081900360200190f35b604051808d600160a060020a031681526020018c600160a060020a031681526020018060200180602001806020018b81526020018a815260200189815260200188600160a060020a0316815260200187815260200186815260200185815260200184810384528e8181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156109a15780601f10610976576101008083540402835291602001916109a1565b820191906000526020600020905b81548152906001019060200180831161098457829003601f168201915b505084810383528d54600260001961010060018416150201909116048082526020909101908e908015610a155780601f106109ea57610100808354040283529160200191610a15565b820191906000526020600020905b8154815290600101906020018083116109f857829003601f168201915b505084810382528c54600260001961010060018416150201909116048082526020909101908d908015610a895780601f10610a5e57610100808354040283529160200191610a89565b820191906000526020600020905b815481529060010190602001808311610a6c57829003601f168201915b50509f5050505050505050505050505050505060405180910390f35b604051808d600160a060020a031681526020018c600160a060020a031681526020018060200180602001806020018b81526020018a815260200189600160a060020a0316815260200188815260200187815260200186815260200185815260200184810384528e8181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f168015610b5e5780820380516001836020036101000a031916815260200191505b5084810383528d8181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f168015610bb75780820380516001836020036101000a031916815260200191505b5084810382528c8181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f168015610c105780820380516001836020036101000a031916815260200191505b509f5050505050505050505050505050505060405180910390f35b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f168015610c8b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b600c8501549250600083111561126857600c8501805460001985019081101561000257600091825260208083206003928302016001818101548254600160a060020a03908116875260049094526040862080549091019055890154909550611211916113d691165b6040805160208181018352600080835283519182018452808252925191929091601490805910610d2e5750595b908082528060200260200182016040528015610d45575b509150600090505b6014811015611868578060130360080260020a84600160a060020a03168115610002570460f860020a028282815181101561000257906020010190600160f860020a031916908160001a905350600101610d4d565b600c820180548790811015610002576000918252602090912060039091020180546001820154600290920154600160a060020a03909116999198509650945050505050565b6000805485908110156100025790600052602060002090600d020160005060018082015460028084018054604080516020601f600019988516156101000298909801909316949094049586018290048202840182019052848352949650610ecb943094600160a060020a039094169390830182828015610f015780601f10610ed657610100808354040283529160200191610f01565b60068201805460ff191660011790556040805185815290517f415fa4117f5dfe2641cf0fcb94a0283d48bc66a1533068b26c09bed6cf5a97f99181900360200190a1600192505b5050919050565b1515610e7d57610002565b820191906000526020600020905b815481529060010190602001808311610ee457829003601f168201915b50505050506106f6565b8060000160009054906101000a9004600160a060020a03168160010160009054906101000a9004600160a060020a0316826002016000508360030160005084600401600050856005016000505486600701600050548760080160009054906101000a9004600160a060020a0316886009016000505489600a01600050548a600b01600050548b600c0160005080549050898054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156110305780601f1061100557610100808354040283529160200191611030565b820191906000526020600020905b81548152906001019060200180831161101357829003601f168201915b50508c5460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959f508e9450925084019050828280156110be5780601f10611093576101008083540402835291602001916110be565b820191906000526020600020905b8154815290600101906020018083116110a157829003601f168201915b50508b5460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959e508d94509250840190508282801561114c5780601f106111215761010080835404028352916020019161114c565b820191906000526020600020905b81548152906001019060200180831161112f57829003601f168201915b505050505097509c509c509c509c509c509c509c509c509c509c509c509c505091939597999b5091939597999b565b6000805488908110156100025790600052602060002090600d020160005060018082015460028084018054604080516020601f6000199885161561010002989098019093169490940495860182900482028401820190528483529499506112b9943094600160a060020a039094169390830182828015610f015780601f10610ed657610100808354040283529160200191610f01565b604051808280519060200190808383829060006004602084601f0104600302600f01f150905001915050908152602001604051809103902060006101000a81548160ff021916908360f860020a9081020402179055505b6040805188815290517f2809c7e17bf978fbc7194c0a694b638c4215e9140cacc6c38ca36010b45697df9181900360200190a160068501805460ff19166002179055600195505b5050505050919050565b15156112c457610002565b600a850154600b860154106112d857610002565b6001808601548654604080516000602090910152805160e060020a63092b25e9028152600160a060020a0392831660248201819052600482019283526002808c0180546000199881161561010002989098019097160460448301819052939094169850889463092b25e994909390929182916064909101908590801561139f5780601f106113745761010080835404028352916020019161139f565b820191906000526020600020905b81548152906001019060200180831161138257829003601f168201915b50509350505050602060405180830381600087803b156100025760325a03f1156100025750506040515115159050610c9957610002565b600289810180546040805160206001841615610100026000190190931694909404601f81018390048302850183019091528084529083018282801561145c5780601f106114315761010080835404028352916020019161145c565b820191906000526020600020905b81548152906001019060200180831161143f57829003601f168201915b50505050505b604080516020818101835260008083528351808301855281905283518083018552819052835191820184528082528451865194519394879487949392839201908059106114ac5750595b9080825280602002602001820160405280156114c3575b50925060009150600090505b845181101561253557848181518110156100025790602001015160f860020a900460f860020a028383806001019450815181101561000257906020010190600160f860020a031916908160001a9053506001016114cf565b6005810154431061153757610002565b600080543498508a908110156100025790600052602060002090600d0201600050600b81015490965087901061156c57610002565b600c86018054600181018083559091908280158290116115a5576003028160030283600052602060002091820191016115a59190611747565b505050945085600c01600050858154811015610002576000918252602080832060039092029091018054600160a060020a031916606060020a3381020417815560018082018b905542600280840191909155600b8b018c90558254600160a060020a031685529092526040909220805491820180825592965091828183801582901161177757600083815260209020611777918101908301611854565b5050600d015b80821115611773578054600160a060020a03199081168255600180830180549092169091556002808301805460008083559391929181161561010002600019011604601f81901061183a57505b5060038201600050805460018160011615610100020316600290046000825580601f106121ab57505b5060048201600050805460018160011615610100020316600290046000825580601f106121c957505b5060006005830181905560068301805460ff1916905560078301819055600883018054600160a060020a031916905560098301819055600a8301819055600b8301819055600c830180548282559082526020909120611642916003028101905b80821115611773578054600160a060020a03191681556000600182018190556002820155600301611747565b5090565b50505060009283525060208220018a90558511156117db57600c8601805460001987019081101561000257906000526020600020906003020160005060018101548154600160a060020a031660009081526004602052604090208054909101905592505b83546001850154604080518c8152600160a060020a03909316602084015282810191909152517f0e54eff26401bf69b81b26f60bd85ef47f5d85275c1d268d84f68d6897431c479181900360600190a150600198975050505050505050565b601f01602090049060005260206000209081019061169591905b808211156117735760008155600101611854565b819250610ec4565b604051808280519060200190808383829060006004602084601f0104600302600f01f150905001915050908152602001604051809103902060006101000a81548160ff021916908360f860020a90810204021790555060018560060160009054906101000a900460ff1614151561195a57604080516020808252602b908201527f43616e206e6f7420656e6420616e2061756374696f6e2074686174277320616c818301527f726561647920656e6465640000000000000000000000000000000000000000006060820152905160008051602061259d8339815191529181900360800190a1610002565b60058501544310156119df576040805160208082526037908201527f43616e206e6f7420656e6420616e2061756374696f6e2074686174206861736e818301527f2774206869742074686520646561646c696e65207965740000000000000000006060820152905160008051602061259d8339815191529181900360800190a1610002565b6001850154600c860154600160a060020a0390911694501515611a8a578454604080516000602090910152805160e060020a63092b25e9028152600160a060020a0392831660248201819052600482019283526002808a018054600019600182161561010002011691909104604484018190529489169463092b25e9949193829160649091019085908015611b915780601f10611b6657610100808354040283529160200191611b91565b600c85018054600019810190811015610002579060005260206000209060030201600050600a860154600b8701549194509010611c615750506007830154600b8401548254604080516000602090910152805160e060020a63092b25e9028152600160a060020a0392831660248201819052600482019283526002808a018054610100600182161502600019011691909104604484018190526064978702889004979688900396958a169563092b25e9959294839291019085908015611d1a5780601f10611cef57610100808354040283529160200191611d1a565b820191906000526020600020905b815481529060010190602001808311611b7457829003601f168201915b50509350505050602060405180830381600087803b156100025760325a03f1156100025750506040515115159050611c4957610002565b6008850154600160a060020a039081166000908152600460209081526040808320805487019055885484168352918290208054850190558554600b89015483518c8152919094169181019190915280820192909252517fab41e3f06042d2db81478807ab10a02315433d6f63128f9e25858e37e2ac7dfe9181900360600190a15b60068501805460ff19166002179055600195506112af565b8454604080516000602090910152805160e060020a63092b25e9028152600160a060020a0392831660248201819052600482019283526002808a018054600019600182161561010002011691909104604484018190529489169463092b25e9949193829160649091019085908015611d7c5780601f10611d5157610100808354040283529160200191611d7c565b820191906000526020600020905b815481529060010190602001808311611cfd57829003601f168201915b50509350505050602060405180830381600087803b156100025760325a03f1156100025750506040515115159050611bc857610002565b820191906000526020600020905b815481529060010190602001808311611d5f57829003601f168201915b50509350505050602060405180830381600087803b156100025760325a03f1156100025750506040515115159050611db357610002565b600b850180548454600160a060020a031660009081526004602090815260409182902080549093019092559154600a88015483518b8152928301919091528183015290517f98a5874286afb2f907bb5ccecc1a560b7a2c0e9f1a48b09ea6c118fd70d1f0fc9181900360600190a160068501805460ff19166002179055600195506112af565b1515611e9257604080516020808252601e908201527f53656c6c657220646f6573206e6f74206f776e2074686973206173736574000081830152905160008051602061259d8339815191529181900360600190a1610002565b43879010611f13576040805160208082526021908201527f426c6f636b206e756d626572206973206e6f7420696e20746865206675747572818301527f65000000000000000000000000000000000000000000000000000000000000006060820152905160008051602061259d8339815191529181900360800190a1610002565b6000861080611f225750600085105b15611fa057604080516020808252602c908201527f5374617274696e675072696365206f7220526573657276655072696365207761818301527f732062656c6f77207a65726f00000000000000000000000000000000000000006060820152905160008051602061259d8339815191529181900360800190a1610002565b6000841080611faf5750606484115b1561200757604080516020808252601a908201527f446973747269627574696f6e43757420697320696e76616c696400000000000081830152905160008051602061259d8339815191529181900360600190a1610002565b60036120156120ba8b610d01565b604051808280519060200190808383829060006004602084601f0104600302600f01f150905001915050908152602001604051809103902060009054906101000a900460ff1615156001151514156120c0576040805160208082526017908201527f4974656d20616c7265616479206f6e2061756374696f6e00000000000000000081830152905160008051602061259d8339815191529181900360600190a1610002565b8a611462565b60008054600181018083559091908280158290116120f757600d0281600d0283600052602060002091820191016120f79190611648565b505060008054929450918491508110156100025790600052602060002090600d02016000508054606060020a338102819004600160a060020a0319928316178355600180840180548e840293909304929093169190911790915589516002808401805460008281526020908190209697509195601f958216156101000260001901909116929092048401819004820193908d01908390106121e757805160ff19168380011785555b50612217929150611854565b601f0160209004906000526020600020908101906116be9190611854565b601f0160209004906000526020600020908101906116e79190611854565b8280016001018555821561219f579182015b8281111561219f5782518260005055916020019190600101906121f9565b50508a816003016000509080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061227257805160ff19168380011785555b506122a2929150611854565b82800160010185558215612266579182015b82811115612266578251826000505591602001919060010190612284565b505089816004016000509080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106122fd57805160ff19168380011785555b5061232d929150611854565b828001600101855582156122f1579182015b828111156122f157825182600050559160200191906001019061230f565b50506005810187905560068101805460ff1916905560078101849055600881018054600160a060020a031916606060020a8581020417905560098101869055600a8101859055600b81018690558054600160a060020a03166000908152600160208190526040909120805491820180825590919082818380158290116123c4576000838152602090206123c4918101908301611854565b505050600092835250602090912001829055600160036123e66124e58c610d01565b604051808280519060200190808383829060006004602084601f0104600302600f01f150905001915050908152602001604051809103902060006101000a81548160ff021916908360f860020a9081020402179055507f5bf34ed94988e5dcdc7d1faaa54eb1d3b55f45d5f11457e235afb21a8ebbe73c8282600301600050836009016000505484600a016000505460405180858152602001806020018481526020018381526020018281038252858181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156125165780601f106124eb57610100808354040283529160200191612516565b8b611462565b820191906000526020600020905b8154815290600101906020018083116124f957829003601f168201915b50509550505050505060405180910390a1509998505050505050505050565b5060005b835181101561259157838181518110156100025790602001015160f860020a900460f860020a028383806001019450815181101561000257906020010190600160f860020a031916908160001a905350600101612539565b5090969550505050505056a2db52a45d71264723caeac03c235d51bb30cff5e1ac71c97a5842ec94fbb6af
View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward