DeveloperBreeze

Solidity Programming Tutorials, Guides & Best Practices

Explore 7+ expertly crafted solidity tutorials, components, and code examples. Stay productive and build faster with proven implementation strategies and design patterns from DeveloperBreeze.

Blockchain Libraries Cheatsheet

Cheatsheet August 23, 2024
solidity

  • Description: A comprehensive Bitcoin library for .NET, designed for developing Bitcoin applications with C#.
  • Use Cases:
  • Develop Bitcoin wallets and applications in C#.
  • Handle Bitcoin transactions and blocks programmatically.
  • Build and deploy full-featured Bitcoin services on .NET.
  • Key Features:
  • Full support for Bitcoin protocol and SegWit.
  • Compatible with various .NET environments.
  • Detailed examples and documentation for easy integration.
  • Installation:

Blockchain Development Tools, Libraries, and Frameworks Cheatsheet

Cheatsheet August 23, 2024
solidity

  • Description: An open-source blockchain explorer for Ethereum-based networks.
  • Key Features:
  • Provides a user-friendly interface for exploring blocks, transactions, and tokens.
  • Supports custom networks and sidechains.
  • Allows token holders to track token balances and transaction histories.
  • Easy to deploy and customize.
  • Website: BlockScout

Writing an ERC-20 Token Contract with OpenZeppelin

Tutorial August 22, 2024
solidity

     async function main() {
         const [deployer] = await ethers.getSigners();

         console.log("Deploying contracts with the account:", deployer.address);

         const MyToken = await ethers.getContractFactory("MyToken");
         const myToken = await MyToken.deploy("MyToken", "MTK", ethers.utils.parseUnits("1000000", 18));

         console.log("MyToken deployed to:", myToken.address);
     }

     main()
         .then(() => process.exit(0))
         .catch((error) => {
             console.error(error);
             process.exit(1);
         });
  • getSigners: Retrieves the list of accounts provided by the Ethereum node, with the first account used as the deployer.
  • getContractFactory: Gets the contract to deploy.
  • deploy: Deploys the contract with the specified parameters (name, symbol, and initial supply).
  • parseUnits: Converts the initial supply to the correct units, considering the token’s decimals.