arnaucube
arnaucube/hermez-nodePublic Self-hosted repository
hermez-node/eth/contracts/README.md
eth/contracts/README.mdRaw
 1## Contracts
 2
 3The go code of the contracts has been generated with the following command:
 4
 5```
 6abigen --abi=WithdrawalDelayer.abi --bin=WithdrawalDelayer.bin --pkg=WithdrawalDelayer --out=WithdrawalDelayer.go
 7abigen --abi=Hermez.abi --bin=Hermez.bin --pkg=Hermez --out=Hermez.go
 8abigen --abi=HermezAuctionProtocol.abi --bin=HermezAuctionProtocol.bin --pkg=HermezAuctionProtocol --out=HermezAuctionProtocol.go
 9abigen --abi=ERC777.abi --bin=ERC777.bin --pkg=ERC777 --out=ERC777.go
10```
11You must compile the contracts to get the `.bin` and `.abi` files. The contracts used are in the repo: https://github.com/hermeznetwork/contracts
12
13Specifically they have been processed in the commit with hash: `60e03e981f1ce607c27d405952bfc98de376f0c5`
14
15> abigen version 1.9.21
16
17---
18
19ERC20 go code was generated with the following command:
20```
21abigen --sol erc20.sol --pkg erc20 --out erc20/erc20.go
22```
23
24Versions:
25```
26 $ abigen --version
27abigen version 1.9.21-stable-0287d548
28 $ solc --version
29solc, the solidity compiler commandline interface
30Version: 0.7.1+commit.f4a555be.Linux.g++
31```