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=HEZ.abi --bin=HEZ.bin --pkg=HEZ --out=HEZ.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
13Branch: `feature/newDeploymentScript`
14Specifically they have been processed in the commit with hash: `4489f8e7fe4dd17cf22f1e96741b09bdf81946d8`
15
16Versions:
17```
18 $ abigen --version
19abigen version 1.9.21-stable-0287d548
20 $ solc --version
21solc, the solidity compiler commandline interface
22Version: 0.7.1+commit.f4a555be.Linux.g++
23```