GithubHelp home page GithubHelp logo

joshklop / starknet.go Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nethermindeth/starknet.go

0.0 0.0 0.0 2.67 MB

Golang Library for StarkNet/Cairo

License: MIT License

Shell 0.21% Go 90.82% Makefile 0.66% Cairo 8.31%

starknet.go's Introduction

Go Reference test

Get the gopher high on StarkNet

⚠️ starknet.go is currently under active development and is experiencing a rearchitecture. It will undergo breaking changes.

starknet.go will get your golang backends and WASM frontends to Starknet easily. With simple abstractions for the Starknet RPC, account management and common operations on the wallets. The package has excellent documentation for a smooth 0 to 1 experience.

🌟 Features

  • Seamless interaction with the Starknet RPC
  • Tight integration with Juno (uses the RPC types, resulting in updates and breaking changes landing quickly)
  • Account management: Deploy accounts easily
  • Good concurrency support

Getting Started

Run Examples

starkcurve

cd examples/curve
go mod tidy
go run main.go

starknet contract

cd examples/contract
go mod tidy
go run main.go

starknet account

cd examples/account
go mod tidy
go run main.go

RPC

starknet.go RPC implements the StarkNet RPC Spec:

Method Implemented (*)
starknet_getBlockByHash βœ”οΈ
starknet_getBlockByNumber βœ”οΈ
starknet_getTransactionByHash βœ”οΈ
starknet_getTransactionReceipt βœ”οΈ
starknet_getClass βœ”οΈ
starknet_getClassHashAt βœ”οΈ
starknet_getClassAt βœ”οΈ
starknet_call βœ”οΈ
starknet_blockNumber βœ”οΈ
starknet_chainId βœ”οΈ
starknet_syncing βœ”οΈ
starknet_getEvents βœ”οΈ
starknet_addInvokeTransaction βœ”οΈ
starknet_addDeployTransaction βœ”οΈ
starknet_addDeclareTransaction βœ”οΈ
starknet_estimateFee βœ”οΈ
starknet_getBlockTransactionCountByHash βœ”οΈ
starknet_getBlockTransactionCountByNumber βœ”οΈ
starknet_getTransactionByBlockNumberAndIndex βœ”οΈ
starknet_getTransactionByBlockHashAndIndex βœ”οΈ
starknet_getStorageAt βœ”οΈ
starknet_getNonce βœ”οΈ
starknet_getStateUpdate βœ”οΈ
*starknet_traceBlockTransactions ❌
*starknet_traceTransaction ❌

(*) some methods are not implemented because they are not yet available from eqlabs/pathfinder.

Run Tests

go test -v ./...

Run RPC Tests

go test -v ./rpc -env [mainnet|devnet|testnet|mock]

Run Benchmarks

go test -bench=.

Compatibility and stability

🀝 Contribute

We're always looking for passionate developers to join our community and contribute to starknet.go. Check out our contributing guide for more information on how to get started.

πŸ“– License

This project is licensed under the MIT license.

See LICENSE for more information.

Happy coding! πŸŽ‰

Contributors ✨

Thanks goes to these wonderful people (emoji key):

drspacemn
drspacemn

πŸ’»
Gregory Guillou
Gregory Guillou

πŸ’»
Tarrence van As
Tarrence van As

πŸ’»
Alex Sumner
Alex Sumner

πŸ’»
Yun
Yun

πŸ’»
Zoraiz Mahmood
Zoraiz Mahmood

πŸ’»
Lucas @ StarkWare
Lucas @ StarkWare

πŸ’»
Coburn
Coburn

πŸ’»
Larko
Larko

πŸ’»
oxlime
oxlime

πŸ’»
BlaΕΎ Hrastnik
BlaΕΎ Hrastnik

πŸ’»
Florian
Florian

πŸ’»
greged93
greged93

πŸ’»
Jean-SΓ©bastien Ney
Jean-SΓ©bastien Ney

πŸ’»
Kristijan Rebernisak
Kristijan Rebernisak

πŸ’»

This project follows the all-contributors specification. Contributions of any kind welcome!

starknet.go's People

Contributors

gregoryguillou avatar drspacemn avatar tarrencev avatar archseer avatar rianhughes avatar oxlime avatar cfal avatar larkooo avatar 0xcoburn avatar krehermann avatar cicr99 avatar 0xlucqs avatar rzmahmood avatar taco-paco avatar rootulp avatar broody avatar alex-sumner avatar florichardaloecorp avatar greged93 avatar jney avatar jorikschellekens avatar krebernisak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.