wormhole/generate-abi-celo.sh

23 lines
566 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# Regenerate node/pkg/celo/abi.
set -euo pipefail
(
cd third_party/abigen-celo
2022-08-26 09:35:22 -07:00
docker build -t localhost/wormhole-foundation/wormhole-abigen-celo:latest .
)
function gen() {
local name=$1
local pkg=$2
kubectl exec -c tests eth-devnet-0 -- npx truffle@5.4.1 run abigen $name
kubectl exec -c tests eth-devnet-0 -- cat abigenBindings/abi/${name}.abi | \
2022-08-26 09:35:22 -07:00
docker run --rm -i localhost/wormhole-foundation/wormhole-abigen-celo:latest /bin/abigen --abi - --pkg ${pkg} > \
node/pkg/celo/${pkg}/abi.go
}
gen Implementation abi