James Bachini

November 2024

  • Building Smart Contract Event Filtering Systems for DApps

    Building Smart Contract Event Filtering Systems for DApps

    How events work in web3 Events in Web3 act as logs of significant occurrences within a smart contract. When a specific function is executed, the smart contract can “emit” an event, signalling to external systems that something has happened. These emitted events are stored on the blockchain, but they do not modify the contract’s state.…

  • Automating Web3 Interactions In Rust | Minting Ethereum NFT’s With Ethers-rs

    Automating Web3 Interactions In Rust | Minting Ethereum NFT’s With Ethers-rs

    In this tutorial we are going to be deploying a simple NFT contract to Ethereum and then minting new NFT’s using a bot built with Rust and ethers-rs Let’s start by heading to Remix and deploying this contract to Ethereum’s Sepolia testnet. It has already been deployed here if you want to skip this step:…

  • Building A Cross Chain Token Bridge With LayerZero v2

    Building A Cross Chain Token Bridge With LayerZero v2

    This tutorial will guide you through the process of building a token bridge using LayerZero v2, specifically employing the OFTAdapter on mainnet and the OFT.sol contract on all other chains. We’ll cover the setup and deployment workflow, ensuring you have a comprehensive understanding of the process. Before we delve into the deployment process, it’s crucial…

  • Practical Applications Of Merkle Trees

    Practical Applications Of Merkle Trees

    Merkle trees are a useful tool for blockchain developers offering a myriad of benefits, chief among them being the efficient verification of large data sets and proof of inclusion. By leveraging Merkle trees developers can significantly optimise gas costs and enhance the overall performance of their decentralised applications. In this article we will look at…

  • How To Connect An Arduino To A Soroban Smart Contract

    How To Connect An Arduino To A Soroban Smart Contract

    This tutorial will guide you through the process of connecting an Arduino to a Soroban smart contract on the Stellar blockchain. We’ll create a system where blockchain events can trigger physical actions through an Arduino. James On YouTube Watch On YouTube: https://youtu.be/C4a9O7AFAVc | Subscribe All the code for this project is open source at: https://github.com/jamesbachini/Arduino-Soroban-Controller…

  • Implementing RBAC Patterns in Solidity

    Implementing RBAC Patterns in Solidity

    We can implement role based access control or RBAC patterns in Solidity using OpenZeppelin’s AccessControl.sol library. This allows developers to manage different roles and assign permissions dynamically. Here’s a step by step guide based on the information provided. Understanding Roles in Access Control The essence of RBAC in Solidity involves defining roles, where each role…

  • The Future Of Prompt Engineering | Best Practices For LLM Models

    The Future Of Prompt Engineering | Best Practices For LLM Models

    This article will explore how prompt engineering for LLM models like ChatGPT is evolving and how you can stay ahead of the game. Prompt Design Principles As large language models (LLMs) continue to evolve, the art of prompt engineering has become increasingly crucial. At its core, effective prompt design hinges on clarity, specificity, and context…

  • Tokenomics 101 Designing Effective Token Models

    Tokenomics 101 Designing Effective Token Models

    Tokenomics Fundamentals Tokenomics refers to the economic model and framework that governs the use, distribution, and value of tokens. At its core, tokenomics is the study of the supply and demand of tokens, how they incentivise users and developers, and the role they play in driving network effects. Unlike traditional currencies, tokens are highly versatile…

  • Why Inflows Into Spot Bitcoin ETFs Don’t Push Prices Up

    Why Inflows Into Spot Bitcoin ETFs Don’t Push Prices Up

    The Bitcoin Spot ETFs are a gateway for institutional inflows into Bitcoin, potentially driving up prices. However, on the 29th and 30th October over $1.763 Billion USD flowed into the Bitcoin ETFs*. During this period the BTC/USD price barely moved. Here’s a closer look at why spot Bitcoin ETF inflows don’t always translate into an…