We onboard devs to the Starknet ecosystem. Our discord : https://discord.gg/onlydust To create Stars, you need Only Dust.
How to create a Starknet Node
How to create a Starknet node in a few minutes, this article will explain how to build a starknet node quickly and easier.A few months ago it was complicated to have a syncing Node, especially on Görli, You’re thinking you were sync but you were not, nobody had a Node Sync because pathfinder was not stable with a lot of blocks. We encountered a few errors like this screenshot. Now in this article, I will explain how to build a sync Node quickly and easier.Error catched on Starknet NodeAt Only...
How to create a Starknet Node
How to create a Starknet node in a few minutes, this article will explain how to build a starknet node quickly and easier.A few months ago it was complicated to have a syncing Node, especially on Görli, You’re thinking you were sync but you were not, nobody had a Node Sync because pathfinder was not stable with a lot of blocks. We encountered a few errors like this screenshot. Now in this article, I will explain how to build a sync Node quickly and easier.Error catched on Starknet NodeAt Only...
Testing your StarkNet contracts with Protostar
Protostar is a great and promising dev tool for StarkNet, that we at OnlyDust are using more and more in our projects. By the way, for a comparison between Protostar and Nile, get a look at this article. One very cool thing with Protostar is that it allows to write tests in Cairo. And besides that, at the time of writing this, Protostar execute tests a lot faster than other testing solutions. In this article, I will give some tips to write unit tests with Protostar efficiently, and some propo...
Testing your StarkNet contracts with Protostar
Protostar is a great and promising dev tool for StarkNet, that we at OnlyDust are using more and more in our projects. By the way, for a comparison between Protostar and Nile, get a look at this article. One very cool thing with Protostar is that it allows to write tests in Cairo. And besides that, at the time of writing this, Protostar execute tests a lot faster than other testing solutions. In this article, I will give some tips to write unit tests with Protostar efficiently, and some propo...
A standard on Github labels for contribution
How to make your need for external contribution explicit and widely visible?At Only Dust we believe than in a close future most developers will get paid in crypto to contribute to open source projects, not as employees but as contributors.To help it happen there is a lot to do: create communities, involve companies, create some kind of on-chain platform for missions to be posted on. That’s a lot to do, too much for one sprint or even one year. So we decided to start small, to find quick wins ...
A standard on Github labels for contribution
How to make your need for external contribution explicit and widely visible?At Only Dust we believe than in a close future most developers will get paid in crypto to contribute to open source projects, not as employees but as contributors.To help it happen there is a lot to do: create communities, involve companies, create some kind of on-chain platform for missions to be posted on. That’s a lot to do, too much for one sprint or even one year. So we decided to start small, to find quick wins ...
Array stream library for Cairo
The lack of for loops in Cairo can be a bit disturbing for new comers. Even for experienced developers, having to write recursive functions every time you want to do something with an array can be time-consuming. This is why we at OnlyDust developed Cairo Streams, an array stream library that can save you a lot of time and make your code easier to read and understand. This library provides high-level functions such as foreach, filter, map and reduce. Here is how it looks like:let (local array...
Array stream library for Cairo
The lack of for loops in Cairo can be a bit disturbing for new comers. Even for experienced developers, having to write recursive functions every time you want to do something with an array can be time-consuming. This is why we at OnlyDust developed Cairo Streams, an array stream library that can save you a lot of time and make your code easier to read and understand. This library provides high-level functions such as foreach, filter, map and reduce. Here is how it looks like:let (local array...
SOLID cairo - The iterator pattern
When learning a new programming language, you can sometimes feel confused about new paradigms. For me it happened with cairo and its lack of for loops. Indeed, as the memory is immutable in cairo, the usage of iterators is not possible. Only recursion remains. To illustrate this article, let’s assume we have a grid structure (with a width and height) and that each cell can be accessed using its (x,y) coordinates.We will use the OOP-like pattern described hereLet’s see how it looks:# grid.cair...
SOLID cairo - The iterator pattern
When learning a new programming language, you can sometimes feel confused about new paradigms. For me it happened with cairo and its lack of for loops. Indeed, as the memory is immutable in cairo, the usage of iterators is not possible. Only recursion remains. To illustrate this article, let’s assume we have a grid structure (with a width and height) and that each cell can be accessed using its (x,y) coordinates.We will use the OOP-like pattern described hereLet’s see how it looks:# grid.cair...