Skip to content

Commit ffaf19c

Browse files
committed
(feat) Updated proto definitions from injective-core with the candidate version for v1.13 upgrade
1 parent 37cdcce commit ffaf19c

File tree

577 files changed

+13696
-9722
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

577 files changed

+13696
-9722
lines changed

Makefile

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,10 @@ endef
2929
clean-all:
3030
$(call clean_repos)
3131

32-
clone-injective-core:
33-
git clone https://github.com/InjectiveLabs/injective-core.git -b dev --depth 1 --single-branch
34-
3532
clone-injective-indexer:
3633
git clone https://github.com/InjectiveLabs/injective-indexer.git -b release/v1.13.x --depth 1 --single-branch
3734

38-
clone-cometbft:
39-
git clone https://github.com/InjectiveLabs/cometbft.git -b v0.38.x-inj --depth 1 --single-branch
40-
rm cometbft/buf.yaml
41-
42-
clone-wasmd:
43-
git clone https://github.com/InjectiveLabs/wasmd.git -b v0.51.x-inj --depth 1 --single-branch
44-
45-
clone-cosmos-sdk:
46-
git clone https://github.com/InjectiveLabs/cosmos-sdk.git -b v0.50.x-inj --depth 1 --single-branch
47-
48-
clone-ibc-go:
49-
git clone https://github.com/InjectiveLabs/ibc-go.git -b v8.3.x-inj --depth 1 --single-branch
50-
51-
clone-all: clone-cosmos-sdk clone-cometbft clone-ibc-go clone-wasmd clone-injective-core clone-injective-indexer
35+
clone-all: clone-injective-indexer
5236

5337
copy-proto:
5438
rm -rf pyinjective/proto

pyinjective/proto/amino/amino_pb2.py

Lines changed: 3 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,29 @@
11
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
22
"""Client and server classes corresponding to protobuf-defined services."""
33
import grpc
4+
import warnings
45

6+
7+
GRPC_GENERATED_VERSION = '1.64.1'
8+
GRPC_VERSION = grpc.__version__
9+
EXPECTED_ERROR_RELEASE = '1.65.0'
10+
SCHEDULED_RELEASE_DATE = 'June 25, 2024'
11+
_version_not_supported = False
12+
13+
try:
14+
from grpc._utilities import first_version_is_lower
15+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
16+
except ImportError:
17+
_version_not_supported = True
18+
19+
if _version_not_supported:
20+
warnings.warn(
21+
f'The grpc package installed is at version {GRPC_VERSION},'
22+
+ f' but the generated code in amino/amino_pb2_grpc.py depends on'
23+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
24+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
25+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
26+
+ f' This warning will become an error in {EXPECTED_ERROR_RELEASE},'
27+
+ f' scheduled for release on {SCHEDULED_RELEASE_DATE}.',
28+
RuntimeWarning
29+
)

pyinjective/proto/capability/v1/capability_pb2.py

Lines changed: 10 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,29 @@
11
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
22
"""Client and server classes corresponding to protobuf-defined services."""
33
import grpc
4+
import warnings
45

6+
7+
GRPC_GENERATED_VERSION = '1.64.1'
8+
GRPC_VERSION = grpc.__version__
9+
EXPECTED_ERROR_RELEASE = '1.65.0'
10+
SCHEDULED_RELEASE_DATE = 'June 25, 2024'
11+
_version_not_supported = False
12+
13+
try:
14+
from grpc._utilities import first_version_is_lower
15+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
16+
except ImportError:
17+
_version_not_supported = True
18+
19+
if _version_not_supported:
20+
warnings.warn(
21+
f'The grpc package installed is at version {GRPC_VERSION},'
22+
+ f' but the generated code in capability/v1/capability_pb2_grpc.py depends on'
23+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
24+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
25+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
26+
+ f' This warning will become an error in {EXPECTED_ERROR_RELEASE},'
27+
+ f' scheduled for release on {SCHEDULED_RELEASE_DATE}.',
28+
RuntimeWarning
29+
)

pyinjective/proto/capability/v1/genesis_pb2.py

Lines changed: 8 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,29 @@
11
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
22
"""Client and server classes corresponding to protobuf-defined services."""
33
import grpc
4+
import warnings
45

6+
7+
GRPC_GENERATED_VERSION = '1.64.1'
8+
GRPC_VERSION = grpc.__version__
9+
EXPECTED_ERROR_RELEASE = '1.65.0'
10+
SCHEDULED_RELEASE_DATE = 'June 25, 2024'
11+
_version_not_supported = False
12+
13+
try:
14+
from grpc._utilities import first_version_is_lower
15+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
16+
except ImportError:
17+
_version_not_supported = True
18+
19+
if _version_not_supported:
20+
warnings.warn(
21+
f'The grpc package installed is at version {GRPC_VERSION},'
22+
+ f' but the generated code in capability/v1/genesis_pb2_grpc.py depends on'
23+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
24+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
25+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
26+
+ f' This warning will become an error in {EXPECTED_ERROR_RELEASE},'
27+
+ f' scheduled for release on {SCHEDULED_RELEASE_DATE}.',
28+
RuntimeWarning
29+
)

pyinjective/proto/cosmos/app/runtime/v1alpha1/module_pb2.py

Lines changed: 7 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)