0xInuarashi Profile picture
Building random things in web3 Thoughts are my own 🏘️ @cypherlabz - dev studio + quant 📧 DM for inquiries
Dec 4, 2022 19 tweets 6 min read
Let's take a look at the CryptoPunks contract which predates the ERC721 standard,

and also explain why a CryptoPunk was unintentionally sold today for 0.01 ETH (13$)

👇 CryptoPunks, deployed on 22 June 2017, is an NFT that actually pre-dates the ERC721 standard that powers all NFT collections now and is actually one of the inspirations for the ERC721 standard.
Apr 23, 2022 22 tweets 11 min read
etherscan.io/address/0xf42c…
34 Million USD gone. Just like that. Locked in the contract forever.

A lot of people put light on the grieving which locked processRefunds() for a bit, that was the first exploit.

Luckily that was unlocked, but funds are still locked forever. How?

🧵 1/ 2/ Let's take a look at an overview.

People took bids. It stored their data. Then, they were eligible for refunds.

By calling processRefunds(), a loop is made according to a refundProgress counter which then does the refund.
Apr 20, 2022 5 tweets 3 min read
A guide to DMing @0xInuarashi

1/ I won't reply if you just say hi, let me know what you want lol

2/ Ask about GAS chips dm @0xRimuru_eth

3/ Ask about GAS collabs dm @gronkwizard

4/ I can take like a month to reply, I rarely check but I read them all when I do Image @0xRimuru_eth @gronkwizard thanks for art done by @nliel4
Feb 23, 2022 8 tweets 3 min read
Here's a fun one...

A contract-agnostic global walletOfOwner for you to call any contract without the native function with

Just put the contract address, then the wallet address, then the tokenId you want to start at (generally this is 0 or 1)

etherscan.io/address/0x7e57…

1/X Image 2/ First, I created an interface. This allows us to call the methods of other contracts. Image
Jan 11, 2022 20 tweets 7 min read
1/ 🤑 How to reduce gas and achieve Enumerable functions for NFTs 101

Reduce gas by up to 80% on mints and achieve Enumerable functions such as walletOfOwner with view-only functions

A thread! 🧵

👇 2/ First, we have to understand the difference between a basic ERC721 vs an ERC721Enumerable implementation.

The two main things that people look for in ERC721Enumerable are:

1. TotalSupply tracker
2. WalletOfOwner (TokenOfOwnerByIndex)

This makes contracts easier to write.
Oct 31, 2021 9 tweets 2 min read
1/ So there is a social engineering scam going on in servers, targeted at NFT figures and Project Moderator / Owners.

Have a read in this thread below. 2/ Firstly, the scammer will join the server with a new, burner account (or I guess, they could be an existing account) and frame you to the mods that you are a scammer. They will send your discord ID for the mod to ban, which instead of the supposite scammer, it's you instead.