wormhole/generate-abi.sh

14 lines
458 B
Bash
Raw Normal View History

2020-08-17 14:01:59 -07:00
#!/bin/bash
# Regenerate bridge/pkg/ethereum/abi using a running eth-devnet's state.
(
cd third_party/abigen
docker build -t localhost/certusone/wormhole-abigen:latest .
)
kubectl exec -c tests eth-devnet-0 -- npx truffle run abigen Wormhole
kubectl exec -c tests eth-devnet-0 -- cat abigenBindings/abi/Wormhole.abi | \
docker run --rm -i localhost/certusone/wormhole-abigen:latest /bin/abigen --abi - --pkg abi > \
bridge/pkg/ethereum/abi/abi.go