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-eth-edu`
14at the commit with hash: `e6c5b7db8da2de1b9cc55e281c8d1dfa524b06f0`
15
16Alternatively, you can run the `update.sh` script like this:
17```
18./update.sh CONTRACT_REPO_PATH
19```
20
21Versions:
22```
23 solidity version 0.6.12
24```
25```
26 $ abigen --version
27abigen version 1.9.25-stable-e7872729
28```