Coder Social home page Coder Social logo

cryptopunks's People

Contributors

7flash avatar megamattron avatar pents90 avatar zackshapiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cryptopunks's Issues

Use of the images

I couldn't find the terms of use / license.
Can I print the cryptopunks on a t-shirt, for example?

Didnt receive my ETH

Hi I sold my ultimate Cryptopunks but I didn't receive my ETH yet
Now I am very sad to lose my Cryptopunks

Website Down

Source: https://archive.fo/yWJv5

Please don't let this be the end of CryptoPunks!

Error Message:

The page isn’t redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

This problem can sometimes be caused by disabling or refusing to accept cookies.

Browser: Firefox (TOR)

PunkBought event is emitted from "acceptBidForPunk" with 0x0 for "toAddress" and 0 for "value"

Problem

PunkBought event emitted from acceptBidForPunk always has toAddress = 0 and value = 0.

See an example transaction on Etherscan

Investigation

At line 216

Bid bid = punkBids[punkIndex];`

bid is set to reference the map's value

and at line 277

punkBids[punkIndex] = Bid(false, punkIndex, 0x0, 0);`

the map's value is overridden with "null" Bid having 0x0 for bid.bidder and 0 for value,

then at line 229

PunkBought(punkIndex, bid.value, seller, bid.bidder);

bid.bidder = 0x0 and bid.value = 0

211.   function acceptBidForPunk(uint punkIndex, uint minPrice) {
212.        if (punkIndex >= 10000) throw;
213.        if (!allPunksAssigned) throw;                
214.        if (punkIndexToAddress[punkIndex] != msg.sender) throw;
215.        address seller = msg.sender;
216.        Bid bid = punkBids[punkIndex];
217.        if (bid.value == 0) throw;
218.        if (bid.value < minPrice) throw;
219.
220.        punkIndexToAddress[punkIndex] = bid.bidder;
221.        balanceOf[seller]--;
222.        balanceOf[bid.bidder]++;
223.        Transfer(seller, bid.bidder, 1);
224.
225.        punksOfferedForSale[punkIndex] = Offer(false, punkIndex, bid.bidder, 0, 0x0);
226.        uint amount = bid.value;
227.        punkBids[punkIndex] = Bid(false, punkIndex, 0x0, 0);
228.        pendingWithdrawals[seller] += amount;
229.        PunkBought(punkIndex, bid.value, seller, bid.bidder);
230.    }

Who is affected

DApps listening for CryptoPunk's events and willing to know history of punk's transfers with prices have to implement non-trivial workarounds to extract real values for toAddress and value:

  • toAddress value can be obtained from the event Transfer emitted at line 223, at which point the bid.bidder was not yet overridden
  • value can not be extracted precisely, since the Transfer emits 1 as the value.
    I see 2 options how a DApp can obtain the value:
    • listen for enterBidForPunk events for the same bidder and record the latest bid's value
    • call punkBids[punkIndex] right before the transaction for acceptBidForPunk is executed

All in all, this seems to be a minor bug not affecting correctness of the CryptoPunks contract but slightly complicating implementation for DApps.

Question!

Hey can the collectibles be use for running a volunteer donation campaing e.g and under which licensed ?

Bid address not replaced

I placed a bid on punk #3307 for .155 ether and it looks like the address of the bid before mine just stayed there. Either that or they were able to trump my bid with the exact same amount. Either way, my bid is apparently not valid, and I'm currently still missing the .155 ether.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.