|
1 |
| -# Origin |
2 |
| -version_branch = v0.34.24 |
3 |
| -tendermint = https://raw.githubusercontent.com/tendermint/tendermint/$(version_branch) |
4 |
| - |
5 |
| -# Outputs |
6 |
| -tmabci = protos/tendermint/abci/types.proto |
7 |
| -tmtypes = protos/tendermint/types/types.proto |
8 |
| -tmpubkey = protos/tendermint/crypto/keys.proto |
9 |
| -tmproof = protos/tendermint/crypto/proof.proto |
10 |
| -tmparams = protos/tendermint/types/params.proto |
11 |
| -tmversions = protos/tendermint/version/types.proto |
12 |
| -tmvalidator = protos/tendermint/types/validator.proto |
13 |
| - |
14 |
| -# Only run this to rebuild/update protobufs from the tendermint source |
15 |
| -update-proto: |
16 |
| - curl $(tendermint)/proto/tendermint/abci/types.proto > $(tmabci) |
17 |
| - curl $(tendermint)/proto/tendermint/crypto/keys.proto > $(tmpubkey) |
18 |
| - curl $(tendermint)/proto/tendermint/crypto/proof.proto > $(tmproof) |
19 |
| - curl $(tendermint)/proto/tendermint/types/params.proto > $(tmparams) |
20 |
| - curl $(tendermint)/proto/tendermint/types/types.proto > $(tmtypes) |
21 |
| - curl $(tendermint)/proto/tendermint/types/validator.proto > $(tmvalidator) |
22 |
| - curl $(tendermint)/proto/tendermint/version/types.proto > $(tmversions) |
23 |
| - curl $(tendermint)/version/version.go | grep -F -eTMVersionDefault -eABCISemVer > tm_version.txt |
24 |
| - @python build_proto.py |
25 |
| - |
26 |
| -test_tm: |
27 |
| - @rm -Rf .test_pyabci |
28 |
| - @tendermint --home .test_pyabci init |
29 |
| - @tendermint --home .test_pyabci node |
30 | 1 |
|
31 | 2 | test:
|
32 | 3 | pytest .
|
|
37 | 8 | clean:
|
38 | 9 | @rm -Rf dist/
|
39 | 10 |
|
40 |
| -# PyPi package deploy: |
41 |
| -# 1. build-dist |
42 |
| -# 2. test-pypi |
43 |
| -# 3. update-pypi |
44 |
| -build-dist: |
45 |
| - python -m build |
46 |
| - |
47 |
| -publish-test: |
48 |
| - twine upload dist/* --repository testpypi |
49 |
| - |
50 |
| -publish: |
51 |
| - twine upload dist/* --repository pypi |
52 |
| - |
53 |
| -rc: |
54 |
| - cp ~/.tendermint/xian ~/.tendermint/xian_last -r |
55 |
| - rm -rf ~/.tendermint/xian |
56 |
| - |
57 | 11 | wipe:
|
58 | 12 | rm -rf ~/.tendermint/xian
|
59 | 13 | ./tendermint unsafe-reset-all
|
60 | 14 |
|
61 | 15 | up:
|
62 | 16 | cd ./src/xian && CONFIG_PATH=config/config-testnet.toml pm2 start xian_abci.py
|
63 |
| - pm2 start "./tendermint node --rpc.laddr tcp://0.0.0.0:26657" --name tendermint |
| 17 | + pm2 start "./cometbft node --rpc.laddr tcp://0.0.0.0:26657" --name cometbft |
64 | 18 | pm2 logs --lines 1000
|
65 | 19 |
|
66 | 20 | down:
|
67 |
| - pm2 delete tendermint xian_abci |
| 21 | + pm2 delete cometbft xian_abci |
68 | 22 |
|
69 | 23 | restart:
|
70 | 24 | make down
|
71 | 25 | make up
|
72 | 26 |
|
73 | 27 | init:
|
74 |
| - ./tendermint init |
| 28 | + ./cometbft init |
75 | 29 |
|
76 | 30 | node-id:
|
77 |
| - ./tendermint show-node-id |
| 31 | + ./cometbft show-node-id |
78 | 32 |
|
79 | 33 | dwu:
|
80 | 34 | make down
|
|
0 commit comments