make balances
This commit is contained in:
24
Makefile
24
Makefile
@@ -199,6 +199,30 @@ submodule-check :
|
||||
submodule-master: # checkout master for all submodules
|
||||
git submodule foreach 'git checkout master; git pull origin master'
|
||||
|
||||
# Debugging
|
||||
|
||||
MEH := $(shell grep 'MEH 0x' tmp/mock.log | awk '{print $$2}')
|
||||
USXD := $(shell grep 'USXD 0x' tmp/mock.log | awk '{print $$2}')
|
||||
DEX := $(shell grep -A 1 Dexorder tmp/mock.log | tail -1 | xargs)
|
||||
VAULT := $(shell grep 'created vault' tmp/server.log | awk '{print $$3}')
|
||||
|
||||
balances:
|
||||
@echo
|
||||
@echo "Vault: $(VAULT):"
|
||||
@echo "Dexorder: $(DEX):"
|
||||
@echo "MEH: $(MEH):"
|
||||
@echo "USXD: $(USXD):"
|
||||
@echo
|
||||
@echo vault balances:
|
||||
@HEX=$$(cast call $(MEH) "balanceOf(address)" $(VAULT)); python -c "print('MEH ',$$HEX)"
|
||||
@HEX=$$(cast call $(USXD) "balanceOf(address)" $(VAULT)); python -c "print('USXD ',$$HEX)"
|
||||
@echo native $$(cast balance $(VAULT)) # native
|
||||
@echo
|
||||
@echo dexorder balances:
|
||||
@HEX=$$(cast call $(MEH) "balanceOf(address)" $(DEX)); python -c "print('MEH ',$$HEX)"
|
||||
@HEX=$$(cast call $(USXD) "balanceOf(address)" $(DEX)); python -c "print('USXD ',$$HEX)"
|
||||
@echo native $$(cast balance $(DEX)) # native
|
||||
|
||||
# Utility targets
|
||||
|
||||
FORCE :
|
||||
|
||||
Reference in New Issue
Block a user