Code Monkey home page Code Monkey logo

go-learning's Introduction

go-learning

  • 安装 abigen
go get github.com/ethereum/go-ethereum
cd $GOPATH/src/github.com/ethereum/go-ethereum/
make
make devtools

## 之后把 cmd/abigen/main.go 编译为可执行文件,然后放到 /usr/local/bin 目录下

abigen --help
  • 安装 protobuf
brew install protobuf
  • 编译合约
solc Store.sol   --optimize  --bin --abi --output-dir .
  • 生成 go 文件
abigen --abi=Store.abi --pkg=store --out=Store.go
  • 编译可执行文件
go build

参考文档:

goethereumbook: https://goethereumbook.org/zh/
以太坊官网推荐: https://ethereum.org/en/developers/docs/programming-languages/golang/
go 源码: https://github.com/ethereum/go-ethereum
Perigord 一款 go dapp 开发工具: https://medium.com/decentralize-today/introducing-perigord-golang-tools-for-ethereum-dapp-development-60556c2d9fd
connect to ethereum with go: https://www.quicknode.com/guides/web3-sdks/how-to-connect-to-ethereum-network-using-go
Go Ethereum : https://geth.ethereum.org/
Go 设计与实现: https://draveness.me/golang/docs/part2-foundation/ch05-keyword/golang-make-and-new/
GO Ethereum 接口: https://pkg.go.dev/github.com/ava-labs/go-ethereum/accounts/keystore#NewKeyStore
go 代码样例网站: www.codegrepper.com/

安装 abigen : https://www.itread01.com/fxlpq.html
https://juejin.cn/post/6968086477729333262
https://www.jianshu.com/p/ddddc5a8e08a

go-learning's People

Contributors

longdacao avatar yingjingyang 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.