Skip to content

greged93/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 mod tidy
go run main.go

starknet

cd examples/starknet
go mod tidy

python3.7 -m venv ~/cairo_venv; source ~/cairo_venv/bin/activate; export STARKNET_NETWORK=alpha-goerli
starknet-compile ../../gateway/contracts/counter.cairo --output counter_compiled.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

Packages

No packages published

Languages

  • Go 91.0%
  • Cairo 8.2%
  • Other 0.8%