/scarb-contract-template

Template for creating Cairo Starknet contract projects with Scarb

Primary LanguageCairoMIT LicenseMIT

⚠️ This is now archived. Use Starknet-Foundry tempalte instead

Cairo Contract template with Scarb PRs Welcome example workflow License: MIT

Simple template of a Cairo 1.0 contract built with Scarb The example shows a contract that receives an ERC20 address and a list of addresses to send tokens to

This repo requires Scarb 0.5.1

Install Scarb with:

asdf plugin add scarb
asdf install scarb latest

(See more instructions for asdf-scarb installation

Disclaimer

This is just an example, more features will be added as the language is improved while keeping it minimal

Building

scarb build

Testing

scarb test

Running the scripts

The scripts use starknet-rs to interact with the network

Build the scripts with cargo build --release

Thanks

If you like it then you shoulda put a ⭐ on it