Skip to content

Commit 5999886

Browse files
committed
(fix) Updated proto definitions from latest injective-core and injective-indexer versions (candidate for chain upgrade to v1.13)
1 parent 2a63051 commit 5999886

File tree

304 files changed

+9396
-6936
lines changed

Some content is hidden

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

304 files changed

+9396
-6936
lines changed

buf.gen.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ inputs:
2222
- git_repo: https://github.com/InjectiveLabs/wasmd
2323
branch: v0.51.x-inj
2424
subdir: proto
25-
- git_repo: https://github.com/InjectiveLabs/injective-core
26-
tag: v1.12.1
27-
subdir: proto
25+
# - git_repo: https://github.com/InjectiveLabs/injective-core
26+
# tag: v1.12.1
27+
# subdir: proto
2828
- git_repo: https://github.com/InjectiveLabs/injective-core
2929
branch: dev
3030
subdir: proto

pyinjective/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
# If this is not imported, importing later grpcio (required by AsyncClient) fails in Mac machines with M1 and M2
33
from google.protobuf.internal import api_implementation # noqa: F401
44

5-
from .async_client import AsyncClient # noqa: F401
6-
from .transaction import Transaction # noqa: F401
7-
from .wallet import Address, PrivateKey, PublicKey # noqa: F401
5+
from pyinjective.async_client import AsyncClient # noqa: F401
6+
from pyinjective.transaction import Transaction # noqa: F401
7+
from pyinjective.wallet import Address, PrivateKey, PublicKey # noqa: F401

pyinjective/proto/amino/amino_pb2.py

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

pyinjective/proto/capability/v1/capability_pb2.py

Lines changed: 20 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,4 @@
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
54

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: 18 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,4 @@
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
54

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: 18 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)