Home

Awesome

StarkNet graffiti

A smol project to send graffitis between StarkNet and Ethereum

Introduction

Disclaimer

Don't expect any kind of benefit from using this, other than learning a bunch of cool stuff about StarNet, the first general purpose validity rollup on the Ethereum Mainnnet.

How it works

We use the L1 <-> L2 messaging bridge of Starknet to send a message to Mainnet. The message is then used in an event emitted on Mainnet, and is kept in the logs of Ethereum forever!

In the alpha phase, transactions are free on StarkNet, so you can try this without having to bridge any money to Starknet.

You can use this project to graff on Mainnet, graff on StarkNet, or deploy your own graffer.

Why?

Why not? I understand things things better when I tinker with them. This is a simple project to understand what it means for StarkNet to be deployed on Mainnet, and how messaging between StarkNet and Mainnet works.

Setting up

This project uses Truffle and the cairo-lang python package. There are easier ways to manage your smart contracts deployments on StarkNet, and the project will evolve to integrate them. If you want to help with this, look at the "contributing" section below.

Setting up truffle

If you don't have truffle installed on your machine, run

npm install truffle To install it locally in the repo. Then configure it. If you want to try on testnet, select the Goerli testnet.

Setting up Cairo

Go here for installation instructions.

Graffing on Mainnet

So you want to deface Testnet huh? Simple.

So now you wait for a few hours, for the state update to be published to mainnet.

Graffing from Testnet

Curious about going the opposite route?

Deployments

Contributing

This project was done in a few hours, and can be made better; your contributions are welcome! Here are things that you can do to help: