RSSAmplifier

Blog

David Barreto's Blog

Software Developer @ Starknet Foundation

david-barreto.comRSS feed ↗20 posts

Latest posts

Integrating Docker Sandbox with OpenCode and Venice

In a previous article I concluded that the most crypto aligned tech stack for a coding agent was OpenCode as the harness, GLM 5.2 as the LLM, Venice as the inference provider and Docker Sandbox for isolation. The goal of this tutorial is to show you how to integrate all these technologies together. Installation The ... Read more

Coding Agents, Containers and Sandboxes: How to Protect Developer Secrets (Repost)

I wrote this article on the Starknet.io blog. You can read the article here.

Selecting a Crypto-Aligned AI Coding Stack

Recently I started working on a new course on how to use coding agents to effectively create Starknet apps and the first question that came to mind was, which tech stack should I use for teaching? For my everyday job I use Claude Code with Opus 4.8 because the Starknet Foundation (SNF) provides a subscription ... Read more

Account Abstraction on Starknet, Part III (Repost)

I wrote this article on the Starknet Edu blog. You can find the article here.

Account Abstraction on Starknet, Part II (Repost)

I wrote this article on the Starknet Edu blog. You can find the article here.

Account Abstraction on Starknet, Part I (Repost)

I wrote this article on the Starknet Edu blog. You can find the article here.

The Improved Starknet Syntax (Repost)

I wrote this article on the Starknet Edu blog. You can find the article here.

Testing a Cairo 1 Smart Contract with Protostar (Repost)

I wrote this article on the Starknet Edu blog. You can find the article here.

Setting up a StarkNet Dev Environment with Docker (Repost)

I wrote this article on the Starknet Edu blog. You can find the article here.

Setting Up A StarkNet Dev Environment with Python (Repost)

I wrote this article on the Starknet Edu blog. You can find the article here.

Choosing a StarkNet Development Tool (Repost)

I wrote this article on the Starknet Edu blog. You can find the article here.

Updating Python on macOS

Today it was announced that StarkNet 0.10.0 was released to the Goerli testnet. This update means that there’s a new version of the cairo-lang python package (version 0.10.0) whose release notes mentions that it depends on python 3.9 instead of 3.7. I haven’t used python in a long time as I have relied mostly on ... Read more

StarkNet ERC721 Workshop: Exercise 7

Note: This article was updated on Sep 20th, 2022 to use Cairo 0.10 Adding Metadata Looking for exercise 6? Click here. Solution To truly understand what’s expected from us on this exercise we have to start by exploring what ex7_add_metadata does. Evaluator.cairo In a nutshell, ex7_add_metadata is calling the function tokenURI for the NFT with token_id ... Read more

StarkNet ERC721 Workshop: Exercise 6

Note: This article was updated on Sep 20th, 2022 to use Cairo 0.10 Claiming an NFT Looking for exercise 5? Click here. Solution The provided dummy smart contract has two functions that would allow us to mint an NFT: mint and claim. The function mint only allows the owner of the smart contract to mint a ... Read more

StarkNet ERC721 Workshop: Exercise 5

Note: This article was updated on Sep 20th, 2022 to use Cairo 0.10 Adding Permissions and Payments Looking for exercise 4? Click here. Solution We start as always by duplicating the smart contract created on the previous exercise to use it as the base for this one. To get dummy tokens we have to go to ... Read more

StarkNet ERC721 Workshop: Exercise 4

Note: This article was updated on Sep 20th, 2022 to use Cairo 0.10 Burning NFTs Create a function to allow breeders to declare dead animals (burn the NFT) Deploy your new contract Call submit_exercise() in the Evaluator to configure the contract you want evaluated Call ex4_declare_dead_animal() to get points (2 pts) Looking for exercise 3? Click ... Read more

StarkNet ERC721 Workshop: Exercise 3

Note: This article was updated on Sep 20th, 2022 to use Cairo 0.10 Minting NFTs Looking for exercise 2? Click here. Solution To start, let s make a copy of the ERC721 smart contract we created on exercise 2 as the base for this exercise. Because now only breeders can mint new NFTs, we need to keep ... Read more

StarkNet ERC721 Workshop: Exercise 2

Note: This article was updated on Sep 20th, 2022 to use Cairo 0.10 Creating Token Attributes Looking for exercise 1? Click here. Solution We start as the exercise suggests by calling the function ex2a_get_animal_rank of the Evaluator (0x06d2…) using Voyager and Argent X (you can also use Braavos as an alternative). To know which characteristics ... Read more

StarkNet ERC721 Workshop: Exercise 1

Note: This article was updated on Sep 20th, 2022 to use Cairo 0.10 Deploying an ERC721 Looking for the project setup? Click here. Solution The goal of this exercise is to learn how to deploy a smart contract to StarkNet’s Goerli test network and to learn how to interact with them using StarkNet’s block explorer ... Read more

StarkNet ERC721 Workshop: Setup

Note: I wrote a better guide on how to setup a local development environment here. Use that guide instead of this one as I ve updated all the articles on this series to use it. In this tutorial we will be completing the ERC721 workshop created by the StarkWare team so developers can get familiarized with ... Read more