Skip to content

Commit

Permalink
WIP(Makefile): use deploy-contract script to start contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Mar 7, 2024
1 parent 68c8811 commit 395204c
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions contract/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,18 @@ print-key: /root/.agoric/user1.key
@agd keys show user1 -a --keyring-backend="test"
@echo

SCRIPT=start-sell-concert-tickets.js
PERMIT=start-sell-concert-tickets-permit.json
start-contract: $(SCRIPT) $(PERMIT) install-bundles
scripts/propose-start-contract.sh

install-bundles: bundles/bundle-list
./scripts/install-bundles.sh

build-proposal: bundles/bundle-list

bundles/bundle-list $(SCRIPT) $(PERMIT):
./scripts/build-proposal.sh

start-contract: start-sell-tickets-contract start-postal-service-contract

start-sell-tickets-contract:
yarn node ./scripts/deploy-contract.js --service . \
--install src/sell-concert-tickets.contract.js \
--evals ./src/platform-goals/endo1.core.js ./src/platform-goals/board-aux.core.js \
./src/postal-service.proposal.js

start-postal-service-contract:
yarn node ./scripts/deploy-contract.js --service . \
--install src/postal-service.contract.js \
--evals ./src/postal-service.proposal.js

# bundle-X.json.installed show that bundle-X.json was installed
# see also e2e-tools.js
Expand Down

0 comments on commit 395204c

Please sign in to comment.