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.

31 lines
1.0 KiB

  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=ERC777.abi --bin=ERC777.bin --pkg=ERC777 --out=ERC777.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. Specifically they have been processed in the commit with hash: `60e03e981f1ce607c27d405952bfc98de376f0c5`
  11. > abigen version 1.9.21
  12. ---
  13. ERC20 go code was generated with the following command:
  14. ```
  15. abigen --sol erc20.sol --pkg erc20 --out erc20/erc20.go
  16. ```
  17. Versions:
  18. ```
  19. $ abigen --version
  20. abigen version 1.9.21-stable-0287d548
  21. $ solc --version
  22. solc, the solidity compiler commandline interface
  23. Version: 0.7.1+commit.f4a555be.Linux.g++
  24. ```