Skip to content

FloRichardAloeCorp/caigo

Repository files navigation

Golang Library for StarkNet

Go Reference

Caigo is an MIT-licensed Go library for interacting with StarkNet.

Getting Started

  • library documentation available at pkg.go.dev.
  • example initializing the StarkCurve for signing and verification
  • example for StarkNet interactions including deploy, call, invoke, and poll transaction

Compatibility and stability

Caigo is currently under active development and will under go breaking changes until the initial stable(v1.0.0) release. The example directories and *_test.go files should always be applicable for the latest commitment on the main branch. NOTE: examples and tests may be out of sync with tagged versions and pkg.go.dev documentation

Run Examples

starkcurve

cd examples/starkcurve
go run main.go

starknet

cd examples/starknet
wget https://github.com/starknet-edu/ultimate-env/blob/main/counter.cairo
python3.7 -m venv ~/cairo_venv; source ~/cairo_venv/bin/activate; export STARKNET_NETWORK=alpha-goerli
starknet-compile counter.cairo --output counter_compiled.json --abi counter_abi.json
go run main.go

Run Tests

go test -v

Run Benchmarks

go test -bench=.

Issues

If you find an issue/bug or have a feature request please submit an issue here Issues

Contributing

If you are looking to contribute, please head to the Contributing section.

About

Golang Library for StarkNet/Cairo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 96.8%
  • Cairo 2.9%
  • Shell 0.3%