Skip to content

Commit c8d23f1

Browse files
authored
Merge pull request #390 from InjectiveLabs/chore/final_v1_16_alignment_for_release
[CHORE] final v1.16 alignment for release
2 parents 553eaf8 + 370e7a4 commit c8d23f1

File tree

9 files changed

+799
-585
lines changed

9 files changed

+799
-585
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## [Unreleased] - 9999-99-99
5+
## [1.11.0] - 2025-07-29
66
### Added
77
- Added support for Exchange V2 proto queries and types
88
- Added support for ERC20 proto queries and types

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ clean-all:
3131
$(call clean_repos)
3232

3333
clone-injective-indexer:
34-
git clone https://github.com/InjectiveLabs/injective-indexer.git -b v1.16.20 --depth 1 --single-branch
34+
git clone https://github.com/InjectiveLabs/injective-indexer.git -b v1.16.54 --depth 1 --single-branch
3535

3636
clone-all: clone-injective-indexer
3737

buf.gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ inputs:
2323
# branch: v0.51.x-inj
2424
# subdir: proto
2525
- git_repo: https://github.com/InjectiveLabs/injective-core
26-
tag: v1.16.0-beta.3
26+
tag: v1.16.0
2727
subdir: proto
2828
# - git_repo: https://github.com/InjectiveLabs/injective-core
2929
# branch: master

poetry.lock

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

pyinjective/proto/exchange/injective_archiver_rpc_pb2.py

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

pyinjective/proto/exchange/injective_archiver_rpc_pb2_grpc.py

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ def __init__(self, channel):
2020
request_serializer=exchange_dot_injective__archiver__rpc__pb2.BalanceRequest.SerializeToString,
2121
response_deserializer=exchange_dot_injective__archiver__rpc__pb2.BalanceResponse.FromString,
2222
_registered_method=True)
23+
self.AccountStats = channel.unary_unary(
24+
'/injective_archiver_rpc.InjectiveArchiverRPC/AccountStats',
25+
request_serializer=exchange_dot_injective__archiver__rpc__pb2.AccountStatsRequest.SerializeToString,
26+
response_deserializer=exchange_dot_injective__archiver__rpc__pb2.AccountStatsResponse.FromString,
27+
_registered_method=True)
2328
self.Rpnl = channel.unary_unary(
2429
'/injective_archiver_rpc.InjectiveArchiverRPC/Rpnl',
2530
request_serializer=exchange_dot_injective__archiver__rpc__pb2.RpnlRequest.SerializeToString,
@@ -73,6 +78,13 @@ def Balance(self, request, context):
7378
context.set_details('Method not implemented!')
7479
raise NotImplementedError('Method not implemented!')
7580

81+
def AccountStats(self, request, context):
82+
"""Provide all-time stats for a given account address.
83+
"""
84+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
85+
context.set_details('Method not implemented!')
86+
raise NotImplementedError('Method not implemented!')
87+
7688
def Rpnl(self, request, context):
7789
"""Provide historical realized profit and loss data for a given account address.
7890
"""
@@ -137,6 +149,11 @@ def add_InjectiveArchiverRPCServicer_to_server(servicer, server):
137149
request_deserializer=exchange_dot_injective__archiver__rpc__pb2.BalanceRequest.FromString,
138150
response_serializer=exchange_dot_injective__archiver__rpc__pb2.BalanceResponse.SerializeToString,
139151
),
152+
'AccountStats': grpc.unary_unary_rpc_method_handler(
153+
servicer.AccountStats,
154+
request_deserializer=exchange_dot_injective__archiver__rpc__pb2.AccountStatsRequest.FromString,
155+
response_serializer=exchange_dot_injective__archiver__rpc__pb2.AccountStatsResponse.SerializeToString,
156+
),
140157
'Rpnl': grpc.unary_unary_rpc_method_handler(
141158
servicer.Rpnl,
142159
request_deserializer=exchange_dot_injective__archiver__rpc__pb2.RpnlRequest.FromString,
@@ -216,6 +233,33 @@ def Balance(request,
216233
metadata,
217234
_registered_method=True)
218235

236+
@staticmethod
237+
def AccountStats(request,
238+
target,
239+
options=(),
240+
channel_credentials=None,
241+
call_credentials=None,
242+
insecure=False,
243+
compression=None,
244+
wait_for_ready=None,
245+
timeout=None,
246+
metadata=None):
247+
return grpc.experimental.unary_unary(
248+
request,
249+
target,
250+
'/injective_archiver_rpc.InjectiveArchiverRPC/AccountStats',
251+
exchange_dot_injective__archiver__rpc__pb2.AccountStatsRequest.SerializeToString,
252+
exchange_dot_injective__archiver__rpc__pb2.AccountStatsResponse.FromString,
253+
options,
254+
channel_credentials,
255+
insecure,
256+
call_credentials,
257+
compression,
258+
wait_for_ready,
259+
timeout,
260+
metadata,
261+
_registered_method=True)
262+
219263
@staticmethod
220264
def Rpnl(request,
221265
target,

pyinjective/proto/exchange/injective_megavault_rpc_pb2.py

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2+
"""Client and server classes corresponding to protobuf-defined services."""
3+
import grpc
4+
5+
from pyinjective.proto.exchange import injective_megavault_rpc_pb2 as exchange_dot_injective__megavault__rpc__pb2
6+
7+
8+
class InjectiveMegavaultRPCStub(object):
9+
"""InjectiveMegavaultRPC defined a gRPC service for Injective Megavault.
10+
"""
11+
12+
def __init__(self, channel):
13+
"""Constructor.
14+
15+
Args:
16+
channel: A grpc.Channel.
17+
"""
18+
self.GetVault = channel.unary_unary(
19+
'/injective_megavault_rpc.InjectiveMegavaultRPC/GetVault',
20+
request_serializer=exchange_dot_injective__megavault__rpc__pb2.GetVaultRequest.SerializeToString,
21+
response_deserializer=exchange_dot_injective__megavault__rpc__pb2.GetVaultResponse.FromString,
22+
_registered_method=True)
23+
24+
25+
class InjectiveMegavaultRPCServicer(object):
26+
"""InjectiveMegavaultRPC defined a gRPC service for Injective Megavault.
27+
"""
28+
29+
def GetVault(self, request, context):
30+
"""Get the vault information
31+
"""
32+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
33+
context.set_details('Method not implemented!')
34+
raise NotImplementedError('Method not implemented!')
35+
36+
37+
def add_InjectiveMegavaultRPCServicer_to_server(servicer, server):
38+
rpc_method_handlers = {
39+
'GetVault': grpc.unary_unary_rpc_method_handler(
40+
servicer.GetVault,
41+
request_deserializer=exchange_dot_injective__megavault__rpc__pb2.GetVaultRequest.FromString,
42+
response_serializer=exchange_dot_injective__megavault__rpc__pb2.GetVaultResponse.SerializeToString,
43+
),
44+
}
45+
generic_handler = grpc.method_handlers_generic_handler(
46+
'injective_megavault_rpc.InjectiveMegavaultRPC', rpc_method_handlers)
47+
server.add_generic_rpc_handlers((generic_handler,))
48+
server.add_registered_method_handlers('injective_megavault_rpc.InjectiveMegavaultRPC', rpc_method_handlers)
49+
50+
51+
# This class is part of an EXPERIMENTAL API.
52+
class InjectiveMegavaultRPC(object):
53+
"""InjectiveMegavaultRPC defined a gRPC service for Injective Megavault.
54+
"""
55+
56+
@staticmethod
57+
def GetVault(request,
58+
target,
59+
options=(),
60+
channel_credentials=None,
61+
call_credentials=None,
62+
insecure=False,
63+
compression=None,
64+
wait_for_ready=None,
65+
timeout=None,
66+
metadata=None):
67+
return grpc.experimental.unary_unary(
68+
request,
69+
target,
70+
'/injective_megavault_rpc.InjectiveMegavaultRPC/GetVault',
71+
exchange_dot_injective__megavault__rpc__pb2.GetVaultRequest.SerializeToString,
72+
exchange_dot_injective__megavault__rpc__pb2.GetVaultResponse.FromString,
73+
options,
74+
channel_credentials,
75+
insecure,
76+
call_credentials,
77+
compression,
78+
wait_for_ready,
79+
timeout,
80+
metadata,
81+
_registered_method=True)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "injective-py"
3-
version = "1.11.0-rc6"
3+
version = "1.11.0"
44
description = "Injective Python SDK, with Exchange API Client"
55
authors = ["Injective Labs <[email protected]>"]
66
license = "Apache-2.0"

0 commit comments

Comments
 (0)