Skip to content

Commit 78c813d

Browse files
committed
(feat) Updated proto definitions from injective-core with the candidate version for v1.13 upgrade
1 parent 42e2629 commit 78c813d

File tree

263 files changed

+8150
-6343
lines changed

Some content is hidden

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

263 files changed

+8150
-6343
lines changed

pyinjective/proto/cosmos/app/v1alpha1/query_pb2_grpc.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,30 @@
1111
SCHEDULED_RELEASE_DATE = 'June 25, 2024'
1212
_version_not_supported = False
1313

14+
try:
15+
from grpc._utilities import first_version_is_lower
16+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
17+
except ImportError:
18+
_version_not_supported = True
19+
20+
if _version_not_supported:
21+
warnings.warn(
22+
f'The grpc package installed is at version {GRPC_VERSION},'
23+
+ f' but the generated code in cosmos/app/v1alpha1/query_pb2_grpc.py depends on'
24+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
25+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
26+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
27+
+ f' This warning will become an error in {EXPECTED_ERROR_RELEASE},'
28+
+ f' scheduled for release on {SCHEDULED_RELEASE_DATE}.',
29+
RuntimeWarning
30+
)
31+
32+
GRPC_GENERATED_VERSION = '1.64.1'
33+
GRPC_VERSION = grpc.__version__
34+
EXPECTED_ERROR_RELEASE = '1.65.0'
35+
SCHEDULED_RELEASE_DATE = 'June 25, 2024'
36+
_version_not_supported = False
37+
1438
try:
1539
from grpc._utilities import first_version_is_lower
1640
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)

pyinjective/proto/cosmos/auth/v1beta1/auth_pb2.py

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

pyinjective/proto/cosmos/auth/v1beta1/query_pb2_grpc.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,30 @@
1111
SCHEDULED_RELEASE_DATE = 'June 25, 2024'
1212
_version_not_supported = False
1313

14+
try:
15+
from grpc._utilities import first_version_is_lower
16+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
17+
except ImportError:
18+
_version_not_supported = True
19+
20+
if _version_not_supported:
21+
warnings.warn(
22+
f'The grpc package installed is at version {GRPC_VERSION},'
23+
+ f' but the generated code in cosmos/auth/v1beta1/query_pb2_grpc.py depends on'
24+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
25+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
26+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
27+
+ f' This warning will become an error in {EXPECTED_ERROR_RELEASE},'
28+
+ f' scheduled for release on {SCHEDULED_RELEASE_DATE}.',
29+
RuntimeWarning
30+
)
31+
32+
GRPC_GENERATED_VERSION = '1.64.1'
33+
GRPC_VERSION = grpc.__version__
34+
EXPECTED_ERROR_RELEASE = '1.65.0'
35+
SCHEDULED_RELEASE_DATE = 'June 25, 2024'
36+
_version_not_supported = False
37+
1438
try:
1539
from grpc._utilities import first_version_is_lower
1640
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)

pyinjective/proto/cosmos/auth/v1beta1/tx_pb2_grpc.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,30 @@
1111
SCHEDULED_RELEASE_DATE = 'June 25, 2024'
1212
_version_not_supported = False
1313

14+
try:
15+
from grpc._utilities import first_version_is_lower
16+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
17+
except ImportError:
18+
_version_not_supported = True
19+
20+
if _version_not_supported:
21+
warnings.warn(
22+
f'The grpc package installed is at version {GRPC_VERSION},'
23+
+ f' but the generated code in cosmos/auth/v1beta1/tx_pb2_grpc.py depends on'
24+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
25+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
26+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
27+
+ f' This warning will become an error in {EXPECTED_ERROR_RELEASE},'
28+
+ f' scheduled for release on {SCHEDULED_RELEASE_DATE}.',
29+
RuntimeWarning
30+
)
31+
32+
GRPC_GENERATED_VERSION = '1.64.1'
33+
GRPC_VERSION = grpc.__version__
34+
EXPECTED_ERROR_RELEASE = '1.65.0'
35+
SCHEDULED_RELEASE_DATE = 'June 25, 2024'
36+
_version_not_supported = False
37+
1438
try:
1539
from grpc._utilities import first_version_is_lower
1640
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)

pyinjective/proto/cosmos/authz/v1beta1/query_pb2_grpc.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,30 @@
1111
SCHEDULED_RELEASE_DATE = 'June 25, 2024'
1212
_version_not_supported = False
1313

14+
try:
15+
from grpc._utilities import first_version_is_lower
16+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
17+
except ImportError:
18+
_version_not_supported = True
19+
20+
if _version_not_supported:
21+
warnings.warn(
22+
f'The grpc package installed is at version {GRPC_VERSION},'
23+
+ f' but the generated code in cosmos/authz/v1beta1/query_pb2_grpc.py depends on'
24+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
25+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
26+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
27+
+ f' This warning will become an error in {EXPECTED_ERROR_RELEASE},'
28+
+ f' scheduled for release on {SCHEDULED_RELEASE_DATE}.',
29+
RuntimeWarning
30+
)
31+
32+
GRPC_GENERATED_VERSION = '1.64.1'
33+
GRPC_VERSION = grpc.__version__
34+
EXPECTED_ERROR_RELEASE = '1.65.0'
35+
SCHEDULED_RELEASE_DATE = 'June 25, 2024'
36+
_version_not_supported = False
37+
1438
try:
1539
from grpc._utilities import first_version_is_lower
1640
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)

pyinjective/proto/cosmos/authz/v1beta1/tx_pb2.py

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

0 commit comments

Comments
 (0)