diff --git a/dev-tools/startup/build-audius-libs.sh b/dev-tools/startup/build-audius-libs.sh new file mode 100644 index 00000000000..2d9d9dbe828 --- /dev/null +++ b/dev-tools/startup/build-audius-libs.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env sh + +set -e + +cat > strip_abi.js < data-contracts/ABIs/$(basename "$abi") +done + +for abi in ../eth-contracts/ABIs/*; do + node strip_abi.js < "$abi" > eth-contracts/ABIs/$(basename "$abi") +done + +cp scripts/AudiusClaimDistributor.json scripts/Wormhole.json eth-contracts/ABIs/ + +npx rollup -c -w diff --git a/docker-compose.yml b/docker-compose.yml index 60ebd66cbca..96ad9072808 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -145,12 +145,18 @@ services: build-audius-libs: build: libs - command: sh -c "cp scripts/AudiusClaimDistributor.json scripts/Wormhole.json eth-contracts/ABIs/" + command: sh /tmp/dev-tools/startup/build-audius-libs.sh volumes: - audius-libs:/usr/src/app - - poa-contracts-abis:/usr/src/app/data-contracts/ABIs - - eth-contracts-abis:/usr/src/app/eth-contracts/ABIs + - poa-contracts-abis:/usr/src/data-contracts/ABIs + - eth-contracts-abis:/usr/src/eth-contracts/ABIs - ./libs/src:/usr/src/app/src + - ./dev-tools:/tmp/dev-tools + depends_on: + poa-ganache: + condition: service_started + eth-ganache: + condition: service_started logging: *default-logging deploy: mode: global