generate-abi-celo.sh 546 B

12345678910111213141516171819202122
  1. #!/usr/bin/env bash
  2. # Regenerate node/pkg/celo/abi.
  3. set -euo pipefail
  4. (
  5. cd third_party/abigen-celo
  6. docker build -t localhost/certusone/wormhole-abigen-celo:latest .
  7. )
  8. function gen() {
  9. local name=$1
  10. local pkg=$2
  11. kubectl exec -c tests eth-devnet-0 -- npx truffle@5.4.1 run abigen $name
  12. kubectl exec -c tests eth-devnet-0 -- cat abigenBindings/abi/${name}.abi | \
  13. docker run --rm -i localhost/certusone/wormhole-abigen-celo:latest /bin/abigen --abi - --pkg ${pkg} > \
  14. node/pkg/celo/${pkg}/abi.go
  15. }
  16. gen Implementation abi