When to use arrays vs mappings in Solidity?
Arrays are useful when you know the size of the collection in advance, and you need to be able to iterate over the elements in a specific order. Mappings are useful when you don't know the size of the collection in advance, and you need to be able to quickly lookup values. Here are a few specific scenarios where you might choose to use one over the other: 1. Use an array when you need to store a collection of items that need to be accessed by index. 2. Use a mapping when you need to asso...
Ethereum vanity addresses
Ethereum vanity address is a one-of-a-kind customized address that has portions of it chosen rather than being created at random. Why would you create a vanity address? First of all, it looks cool. The second thing it can help you with is to reinforce your brand and make you more noticeable. How to generate your own vanity address? Creating a vanity address is a straightforward trial-and-error process. When performing high-risk cryptographic operations, such as private key creation, it is imp...
Bored Ape Yacht Club: Smart Contract Breakdown
Bored Ape Yacht Club (BAYC) is a popular NFT collection created by Yuga Labs. In this post, we’ll go over BAYC smart contract code. The source code is available on EtherScan.ERC721BAYC is implemented as an ERC721 token, a standard that defines a set of functions that a smart contract must implement in order to be considered a compliant ERC721 token. These functions include the ability to transfer tokens, approve other addresses to manage your tokens, and check token ownership.ERC721 interface...
Co-founder & CTO of Blank. Building software and helping companies enter web3.
Are you writing Solidity in Visual Studio Code?
Here are three helpful extensions to make your coding experience better.
Solidity Visual Developer
Supports developers in writing secure and well-understood code.
It supports you with the following features:
Advanced Solidity Language Support
Code Augmentation
Source Exploration
Visual Security Linting
ETHover
Enables you to hover over an Ethereum address and:
Open it in etherscan
Show $ETH balance
Download the bytecode and disassemble it
Show reconstructed contract source
Show verified contract source
+ much more
Slither
Offers integration for Slither, a Solidity static analysis framework.
It enables you to run a set of vulnerability detectors on your Solidity smart contracts in order to annotate potentially risky code and obtain recommended changes.
Are you writing Solidity in Visual Studio Code?
Here are three helpful extensions to make your coding experience better.
Solidity Visual Developer
Supports developers in writing secure and well-understood code.
It supports you with the following features:
Advanced Solidity Language Support
Code Augmentation
Source Exploration
Visual Security Linting
ETHover
Enables you to hover over an Ethereum address and:
Open it in etherscan
Show $ETH balance
Download the bytecode and disassemble it
Show reconstructed contract source
Show verified contract source
+ much more
Slither
Offers integration for Slither, a Solidity static analysis framework.
It enables you to run a set of vulnerability detectors on your Solidity smart contracts in order to annotate potentially risky code and obtain recommended changes.
When to use arrays vs mappings in Solidity?
Arrays are useful when you know the size of the collection in advance, and you need to be able to iterate over the elements in a specific order. Mappings are useful when you don't know the size of the collection in advance, and you need to be able to quickly lookup values. Here are a few specific scenarios where you might choose to use one over the other: 1. Use an array when you need to store a collection of items that need to be accessed by index. 2. Use a mapping when you need to asso...
Ethereum vanity addresses
Ethereum vanity address is a one-of-a-kind customized address that has portions of it chosen rather than being created at random. Why would you create a vanity address? First of all, it looks cool. The second thing it can help you with is to reinforce your brand and make you more noticeable. How to generate your own vanity address? Creating a vanity address is a straightforward trial-and-error process. When performing high-risk cryptographic operations, such as private key creation, it is imp...
Bored Ape Yacht Club: Smart Contract Breakdown
Bored Ape Yacht Club (BAYC) is a popular NFT collection created by Yuga Labs. In this post, we’ll go over BAYC smart contract code. The source code is available on EtherScan.ERC721BAYC is implemented as an ERC721 token, a standard that defines a set of functions that a smart contract must implement in order to be considered a compliant ERC721 token. These functions include the ability to transfer tokens, approve other addresses to manage your tokens, and check token ownership.ERC721 interface...
Share Dialog
Share Dialog
Co-founder & CTO of Blank. Building software and helping companies enter web3.

Subscribe to 0xMarko

Subscribe to 0xMarko
<100 subscribers
<100 subscribers
No activity yet