Unleashing the Power of Smart Contracts: A Novice’s Roadmap

What are Good Contracts? Within the realm of blockchain expertise, good contracts are self-executing contracts with the phrases of the settlement between the customer and the vendor straight written into strains of code. These contracts can routinely facilitate, confirm, or implement the negotiation or efficiency of a contract, eliminating the necessity for mediators or intermediaries. […]

Building Hello World Smart Contracts: Solidity vs. Soroban Rust SDK – A Step-by-Step Guide

On this tutorial, we’ll discover the intricacies of two main good contract programming environments: Ethereum’s Solidity and Soroban’s Rust SDK. The EVM and Soroban What’s the EVM? The Ethereum Digital Machine (EVM) is a core part of the Ethereum blockchain community. It’s a digital surroundings that permits for the execution of good contracts and decentralized […]

Find The Bug in this Smart Contract [series] 2024

// SPDX-License-Identifier: MIT pragma solidity 0.8.18; /* * @writer not-so-secure-dev * @title PasswordStore * @discover This contract means that you can retailer a personal password that others will not be capable of see. * You may replace your password at any time. */ contract PasswordStore { error PasswordStore__NotOwner(); tackle non-public s_owner; //this isn’t actually non-public […]

abi.encode, abi.encodePacked, and abi.decode in Solidity 

In Solidity, a number of key features for encoding and decoding knowledge are abi.encode, encodePacked decode string.concat  ,bytes.concat and eventually, kind casting utilizing bytes or strings. These features mean you can convert Solidity knowledge varieties like strings, integers, addresses, and so on., right into a compact binary illustration and again once more. Understanding encode and […]

Create an NFT as a Developer: Deep Dive into Smart Contracts

Why NFTs? First, I don’t imagine NFTs are an enormous deal or vital to the way forward for web3. sure, I mentioned so, however I’m a programmer. I really like coding and spending time on Patrick’s course; I got here throughout NFTs and discovered quite a bit about them. Does that imply I’ve modified my […]

Enums and Events in Solidity

Enums or Enumerations in Solidity enable builders to create a brand new user-defined kind with a restricted set of attainable values. This could make the code extra readable and limit variables to solely legitimate values. In our instance Raffle contract, there’s one enum outlined referred to as RaffleState with two attainable values – OPEN and […]

Create a Raffle Draw Smart Contract Using Foundry 2024 (Part 1)

Sensible contracts enable conducting clear raffles on the blockchain by implementing guidelines in code. We are going to construct a decentralized Ethereum raffle that takes Ether entries, picks a random winner, and sends the prize cash mechanically. This text will information you thru constructing and understanding a Raffle sensible contract utilizing Foundry step-by-step. Stipulations Earlier […]

Build a Soroban smart contract deployer using Next.js

On this article, we are going to discover ways to construct a dapp that may deploy good contracts. Normally dapps work together with good contracts by invoking its strategies, however I needed to discover how contracts really get deployed on a blockchain community. Therefore, I made a decision to construct an online interface for a […]

Oracles with Soroban Smart Contracts: A Practical and Flexible On-Chain Framework

The most recent launch of soroban-kit 0.1.8 is now accessible, and it brings a set of instruments designed to streamline each synchronous and asynchronous cross-contract communication, notably for constructing extra sturdy oracle programs with soroban—thrilling matter for my first submit on style-tricks.com! On this article, I’ll stroll you thru the brand new soroban-kit::oracle module step-by-step. […]

I just started learning SOLIDITY! Study with me?

So I simply began studying Solidity – the language of blockchain and sensible contract. Initially, if you wish to do it with me, we will push one another to be taught extra. So comply with and discuss to me on X.com/rodonguyen I am studying from Learn Solidity: The COMPLETE Beginner’s Guide (Latest Version 0.8) by […]