Skip to content

Commit

Permalink
fix: makefile to wait chain
Browse files Browse the repository at this point in the history
  • Loading branch information
r3v4s committed Dec 17, 2023
1 parent 89ba6f6 commit 11182b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion _test/init_only.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ help:
@cat $(MAKEFILE) | grep '^[a-z][^:]*:' | cut -d: -f1 | sort | sed 's/^/ /'

.PHONY: all
all: deploy faucet approve pool-setup position-setup done
all: wait deploy faucet approve pool-setup position-setup done

.PHONY: deploy
deploy: deploy-grc20s deploy-gnft deploy-gov deploy-pool deploy-position deploy-staker deploy-router deploy-grc20_wrapper
Expand All @@ -40,6 +40,9 @@ pool-setup: pool-init pool-create
.PHONY: position-setup
position-setup: position-mint

wait:
$(shell sleep 10)

# Deploy Tokens
deploy-grc20s:
$(info ************ [GRC20] deploy tokens ************)
Expand Down
5 changes: 4 additions & 1 deletion _test/live_test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ help:
@cat $(MAKEFILE) | grep '^[a-z][^:]*:' | cut -d: -f1 | sort | sed 's/^/ /'

.PHONY: all
all: deploy faucet approve pool-setup position-mint staker-stake router-swap staker-unstake done
all: wait deploy faucet approve pool-setup position-mint staker-stake router-swap staker-unstake done

.PHONY: deploy
deploy: deploy-foo deploy-bar deploy-baz deploy-qux deploy-wugnot deploy-gns deploy-obl deploy-gnft deploy-gov deploy-pool deploy-position deploy-staker deploy-router deploy-grc20_wrapper
Expand Down Expand Up @@ -64,6 +64,9 @@ staker-unstake: unstake-token-1 burn-token-1 # burn-token-2
.PHONY: stake-test
stake-test: deploy faucet-gsa approve-gsa pool-setup create-external-incentive faucet-lp01 approve-lp01 faucet-lp02 approve-lp02 wrap mint-01 mint-02 stake-token-1 stake-token-2

wait:
$(shell sleep 10)

# Deploy Tokens
deploy-foo:
$(info ************ [FOO] deploy foo ************)
Expand Down

0 comments on commit 11182b9

Please sign in to comment.