Skip to content

Commit f1aab05

Browse files
authored
Update Makefile
1 parent 09455aa commit f1aab05

File tree

1 file changed

+1
-54
lines changed

1 file changed

+1
-54
lines changed

Makefile

+1-54
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,5 @@
1-
.PHONY: update_system install_packages clone_repos setup_venv download_cometbft configure_node_local install test dev clean wipe up down restart init node-id dwu pull pull-and-install
2-
3-
update_system:
4-
sudo apt-get update
5-
sudo add-apt-repository ppa:deadsnakes/ppa -y
6-
sudo apt-get update
7-
8-
install_packages:
9-
sudo apt-get install pkg-config python3.11 python3.11-dev python3.11-venv libhdf5-dev build-essential
10-
11-
clone_repos:
12-
git clone https://github.com/xian-network/xian-core.git
13-
cd xian-core && git clone https://github.com/xian-network/contracting.git
14-
15-
setup_venv:
16-
cd xian-core && python3.11 -m venv xian_venv
17-
cd xian-core && source xian_venv/bin/activate && pip install -e contracting/ -e .
18-
19-
download_cometbft:
20-
wget https://github.com/cometbft/cometbft/releases/download/v0.38.6/cometbft_0.38.6_linux_amd64.tar.gz
21-
tar -xf cometbft_0.38.6_linux_amd64.tar.gz
22-
rm cometbft_0.38.6_linux_amd64.tar.gz
23-
./cometbft init
24-
25-
configure_node_local:
26-
cd xian-core && source xian_venv/bin/activate && python src/xian/tools/configure.py --moniker "Node" --copy-genesis True --genesis-file-name genesis.json --validator-privkey "cd6cc45ffe7cebf09c6c6025575d50bb42c6c70c07e1dbc5150aaadc98705c2b"
27-
28-
install: update_system install_packages clone_repos setup_venv download_cometbft configure_node_local
29-
@echo "Installation and setup for local node completed. Use 'make up' to start the node and 'make down' to stop it."
30-
31-
test:
32-
pytest .
33-
34-
dev:
35-
cd xian-core && source xian_venv/bin/activate && pip install --editable '.[dev]'
36-
37-
clean:
38-
@rm -Rf dist/
39-
401
wipe:
41-
rm -rf ~/.cometbft/xian
42-
./cometbft unsafe-reset-all
2+
rm -rf ~/.cometbft
433

444
up:
455
cd ./src/xian && pm2 start xian_abci.py
@@ -53,22 +13,9 @@ restart:
5313
make down
5414
make up
5515

56-
init:
57-
./cometbft init
58-
5916
node-id:
6017
./cometbft show-node-id
6118

62-
dwu:
63-
make down
64-
make wipe
65-
make init
66-
make up
67-
6819
pull:
6920
cd ./xian-core/contracting && git pull && cd ../..
7021
git pull
71-
72-
pull-and-install:
73-
make pull
74-
make install

0 commit comments

Comments
 (0)