Uræus

Command line utilities to check StarkNet contracts written in Cairo.

⚠️ WARNING! ⚠️

This repo contains highly experimental code. Expect rapid iteration.

Prerequisites

📦 Installation

🧱 From crates.io

bash cargo install uraeus

🔧 From source

bash cargo install --path .

🔬 Usage

Verify

Verify checks if a source code matches a deployed contract.

``` uraeus-verify verify source code of deployed smart contracts

USAGE: uraeus verify [OPTIONS]

ARGS:

Address of the smart contract

OPTIONS: -b, --builddir Build directory [default: ] -h, --help Print help information -n, --name Contract name [default: main] -p, --projectdir Project root directory [default: ] ```

Example:

bash uraeus verify 0x0253db1872f5b9ad73ad17461fbbf0e987a23ea05d34c120311301bddb092dc8

Example verify

📗 Logging

Change log level using RUST_LOG environment variable.

Example:

bash RUST_LOG=debug cargo run -- verify 0x4bfedc224c8360eaa16969c5db2944d19c32dbabdb4fc0d93bb3ea759c7198c

🌡️ Testing

bash cargo test --verbose

🏄‍♂️ Test coverage

bash sh scripts/test_coverage.sh

🛠️ Development

Install git hooks

bash sh scripts/install_git_hooks.sh

📄 License

uraeus is released under the MIT.