Hot answers tagged

1

The idea behind the blockchain is that it's permissionless and transparent. Anyone can verify the blockchain state at any point. Etherscan is just one such UI and anyone can create a front-end to read the state (calling view functions). Regarding writing to the blockchain, anyone with a valid signature can call the external/public functions. So whatever you ...


1

Bulk minting ERC-721 is not costly. Although the implementation you are considering might be suboptimal. In fact, the very first ERC-721 NFT, Su Squares, minted 10,000 tokens in one transaction. The Su Squares smart contract is now open source, permissively licensed and is referenced in the ERC-721 document.


1

Each token in your ERC-1155 collection will have a unique ID. Could you elaborate more on the problem you're facing? Unless you're talking about nesting fungible or semi-fungible tokens as a 2nd-level structure? For example you can have ERC-1155 collection with IDs = 1, 2, 3 and then under each ID you can have 100 fractions which are fungible tokens ...


1

The cause for the gas consumption might be connected to the error message. Before Solidity 0.8.0 if a contract fails because of an assert it uses an invalid opcode and therefore it uses up all remaining gas. So if you set a high gas limit it will eat up all the gas. If a contract fails because of a revert no additional gas will be used up. More info on this ...


1

sqrtPriceX96 is stored as a uint160, but from a mathematical perspective it behaves as a Q64.96 value, not an integer. Q64.96 is a way of representing a fixed-point number, and it has its own rules regarding how it can and cannot be manipulated. Under the hood, all the conversions pertaining to the log formula are handled by the TickMath library. If you go ...


Only top voted, non community-wiki answers of a minimum length are eligible