Skip to content

berzanorg/starknet-token-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starknet Token Contract

This repository contains the source code of an ERC20 smart contract.

This project is licensed under GPL.

I use Cairo, Scarb and Starkli for developing the contract.

You can find detailed information about Cairo, Scarb and Starkli below.

The source code of the smart contract is at https://github.com/BerzanOrg/starknet-token-contract.

Cairo

Cairo is a programming language for writing provable programs.

Cairo is Rust-inspired, allowing developers to write Starknet smart contracts in a safe and convenient manner.

Scarb

Scarb is the project management tool for the Cairo language.

Scarb manages your dependencies, compiles your projects and works as an extensible platform assisting in development.

Starkli

Starkli is a command line tool for interacting with Starknet, powered by starknet-rs.

Starkli allows you to query Starknet and make transactions with ease. It's fast, easy to install, and intuitive to use.

Documentation

https://book.cairo-lang.org

https://docs.swmansion.com/scarb

https://book.starkli.rs/introduction

Usage

Build

$ scarb build

Declare

$ starkli declare target/dev/token_Token.contract_class.json

Deploy

$ starkli deploy <CLASS_HASH> <TOKEN_NAME> <TOKEN_SYMBOL> <TOKEN_SUPPLY> <TOKEN_RECIPIENT>

Note

Built with love, sweat and tears by Berzan.