You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
943 B

  1. ## Contracts
  2. The go code of the contracts has been generated with the following command:
  3. ```
  4. abigen --abi=WithdrawalDelayer.abi --bin=WithdrawalDelayer.bin --pkg=WithdrawalDelayer --out=WithdrawalDelayer.go
  5. abigen --abi=Hermez.abi --bin=Hermez.bin --pkg=Hermez --out=Hermez.go
  6. abigen --abi=HermezAuctionProtocol.abi --bin=HermezAuctionProtocol.bin --pkg=HermezAuctionProtocol --out=HermezAuctionProtocol.go
  7. abigen --abi=HEZ.abi --bin=HEZ.bin --pkg=HEZ --out=HEZ.go
  8. ```
  9. You must compile the contracts to get the `.bin` and `.abi` files. The contracts used are in the repo: https://github.com/hermeznetwork/contracts
  10. Branch: `feature/newDeploymentScript-eth-edu`
  11. at the commit with hash: `e6c5b7db8da2de1b9cc55e281c8d1dfa524b06f0`
  12. Alternatively, you can run the `update.sh` script like this:
  13. ```
  14. ./update.sh CONTRACT_REPO_PATH
  15. ```
  16. Versions:
  17. ```
  18. solidity version 0.6.12
  19. ```
  20. ```
  21. $ abigen --version
  22. abigen version 1.9.25-stable-e7872729
  23. ```