-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
15 lines (13 loc) · 927 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
ALL: contracts
config.json:
@echo Please rename config.json.sample to config.json and fill in the details
@false
contracts: contract/Makefile config.json node_modules/tronweb/dist/TronWeb.js
@cd contract && $(MAKE)
@echo -n "var WrappedTalleoToken = '" > website/WrappedTalleoToken.js
@cat contract/wrappedTalleoToken_sol_WrappedTalleoToken.abi >> website/WrappedTalleoToken.js
@echo "';" >> website/WrappedTalleoToken.js
@sed -n -e 's/\s*"contractAddress": "\(T[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]*\)",/var contractAddress = "\1";/p' < config.json >> website/WrappedTalleoToken.js
@sed -n -e 's/\s*"bridgeAddress": "\(TA[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]*\)",/var bridgeAddress = "\1";/p' < config.json >> website/WrappedTalleoToken.js
@cp node_modules/tronweb/dist/TronWeb.js website/TronWeb.js
@cp node_modules/tronweb/dist/TronWeb.js.map website/TronWeb.js.map