henry
@henry
TIL CryptoPunks ownership is an internal mapping mapping (uint => address) public punkIndexToAddress; Most docs state CryptoPunks are an ERC-20 token However, the contract only implements balanceOf(). If they were a true ERC-20 token, the owner of each punk would be untrackable onchain Instead, there is this function: transferPunk(address to, uint punkIndex) This ensures the owner mapping of a punk remains consistent onchain, when transferred - pre interesting !
1 reply
0 recast
16 reactions
iain
@iain
it's a proto 721 :) "colored coin" where the coins are not fungible
1 reply
0 recast
1 reaction