Skip to content

Commit 8cae7fd

Browse files
committed
"chore: fixed makefile and pulling from latest release of mainnet"
1 parent e660d24 commit 8cae7fd

File tree

11 files changed

+26
-23
lines changed

11 files changed

+26
-23
lines changed

Makefile

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,36 @@
1-
all:
1+
all: gen
22

33
gen: gen-client
44

55
gen-client:
6-
git clone --depth 1 --branch v1.13.2 https://github.com/InjectiveLabs/injective-core
7-
mkdir -p proto
8-
9-
cp -r injective-core/proto/* proto/
106
mkdir -p ./pyinjective/proto
117
buf generate --template buf.gen.yaml
128
rm -rf proto
139
$(call clean_repos)
14-
$(MAKE) fix-generated-proto-imports
10+
$(MAKE) fix-generated-proto-imports-1
1511

1612
PROTO_MODULES := cosmwasm gogoproto cosmos_proto cosmos testpb ibc amino tendermint injective
1713

18-
fix-generated-proto-imports:
14+
fix-generated-proto-imports-1:
1915
@touch pyinjective/proto/__init__.py
2016
@for module in $(PROTO_MODULES); do \
21-
find ./pyinjective/proto -type f -name "*.py" -exec sed -i "" -e "s/from $${module}/from pyinjective.proto.$${module}/g" {} \; ; \
17+
find ./pyinjective/proto -type f -name "*.py" -exec sed -i "s/from $${module}/from pyinjective.proto.$${module}/g" {} \; ; \
18+
done
19+
@find ./pyinjective/proto -type f -name "*.py" -exec sed -i "s/from google.api/from pyinjective.proto.google.api/g" {} \;
20+
fix-generated-proto-imports:
21+
@echo "Listing all Python files in pyinjective/proto:"
22+
@find ./pyinjective/proto -type f -name "*.py" -ls
23+
@echo "\nModules that will be processed:"
24+
@for module in $(PROTO_MODULES); do \
25+
echo "$$module"; \
2226
done
23-
@find ./pyinjective/proto -type f -name "*.py" -exec sed -i "" -e "s/from google.api/from pyinjective.proto.google.api/g" {} \;
2427

2528
define clean_repos
2629
rm -Rf cosmos-sdk
2730
rm -Rf ibc-go
2831
rm -Rf cometbft
2932
rm -Rf wasmd
3033
rm -Rf injective-core
31-
rm -Rf injective-indexer
3234
endef
3335

3436
clean-all:

buf.gen.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ inputs:
2020
# - git_repo: https://github.com/InjectiveLabs/wasmd
2121
# branch: v0.51.x-inj
2222
# subdir: proto
23-
- git_repo: https://github.com/InjectiveLabs/injective-core
24-
tag: v1.13.2
23+
- git_repo: https://github.com/enigmarikki/injective-core
24+
#tag: v1.13.2
25+
branch: master
2526
subdir: proto
2627
# - git_repo: https://github.com/InjectiveLabs/injective-core
2728
# branch: master
2829
# subdir: proto
29-
- directory: proto
30+
#- directory: proto

pyinjective/proto/google/api/annotations_pb2.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyinjective/proto/google/api/client_pb2.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyinjective/proto/google/api/expr/v1alpha1/checked_pb2.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyinjective/proto/google/api/expr/v1alpha1/eval_pb2.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyinjective/proto/google/api/expr/v1alpha1/explain_pb2.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyinjective/proto/google/api/expr/v1beta1/decl_pb2.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyinjective/proto/google/api/expr/v1beta1/eval_pb2.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyinjective/proto/google/api/expr/v1beta1/expr_pb2.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)