2023-08-21 15:10:32 -04:00
|
|
|
# RLN Contracts
|
|
|
|
|
|
|
|
### Requirements:
|
|
|
|
- Node.js
|
|
|
|
- Go
|
2023-08-30 18:00:14 -04:00
|
|
|
- jq
|
2023-08-21 15:10:32 -04:00
|
|
|
- [solcjs 0.8.15](https://github.com/ethereum/solc-js)
|
|
|
|
- [abigen](https://github.com/ethereum/go-ethereum/tree/master/cmd/abigen)
|
|
|
|
|
|
|
|
### Build
|
|
|
|
1. Install solcjs with `npm install -g solc@0.8.15`
|
|
|
|
2. Clone [go-ethereum](https://github.com/ethereum/go-ethereum) and install `abigen`
|
|
|
|
```
|
|
|
|
cd $GOPATH/src/github.com/ethereum/go-ethereum
|
|
|
|
$ go install ./cmd/abigen
|
|
|
|
```
|
|
|
|
3. Execute `go generate` to create go bindings for the RLN smart contracts
|
|
|
|
```
|
|
|
|
go generate
|
|
|
|
```
|
|
|
|
|
|
|
|
### Notes
|
|
|
|
Follow https://github.com/vacp2p/rln-contract for updates on solc versions
|