Skip to content

Commit 41dda82

Browse files
committed
cp-235: updated all proto definitions with the candidate indexer and chain core versions for v1.15 chain upgrade
1 parent a054d14 commit 41dda82

34 files changed

+1088
-493
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

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

5+
## [1.10.0] - 9999-99-99
6+
### Changed
7+
- Update in the implementation of the gas limit estimator to use the same values as the chain for the fixed gas messages
8+
59
## [1.9.0] - 9999-99-99
610
### Added
711
- Added support for all new queries and messages from the new Permissions module

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.13.117_RC1 --depth 1 --single-branch
34+
git clone https://github.com/InjectiveLabs/injective-indexer.git -b v1.14.25 --depth 1 --single-branch
3535

3636
clone-all: clone-injective-indexer
3737

buf.gen.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ inputs:
1212
- module: buf.build/googleapis/googleapis
1313
- module: buf.build/cosmos/ics23
1414
- git_repo: https://github.com/InjectiveLabs/cosmos-sdk
15-
tag: v0.50.9-inj-2
15+
tag: v0.50.9-inj-4
1616
- git_repo: https://github.com/InjectiveLabs/ibc-go
17-
tag: v8.3.2-inj-0
17+
tag: v8.6.1-inj
1818
- git_repo: https://github.com/InjectiveLabs/wasmd
19-
tag: v0.53.2-inj-1
19+
tag: v0.53.2-inj.2
2020
# - git_repo: https://github.com/InjectiveLabs/wasmd
2121
# branch: v0.51.x-inj
2222
# subdir: proto
2323
# - git_repo: https://github.com/InjectiveLabs/injective-core
24-
# tag: v1.13.0
24+
# tag: v1.15.0-alpha
2525
# subdir: proto
2626
- git_repo: https://github.com/InjectiveLabs/injective-core
27-
branch: testnet
27+
branch: master
2828
subdir: proto
2929
- directory: proto

examples/exchange_client/portfolio_rpc/1_AccountPortfolio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ async def main() -> None:
99
network = Network.testnet()
1010
client = AsyncClient(network)
1111
account_address = "inj1clw20s2uxeyxtam6f7m84vgae92s9eh7vygagt"
12-
portfolio = await client.fetch_account_portfolio_balances(account_address=account_address)
12+
portfolio = await client.fetch_account_portfolio_balances(account_address=account_address, usd=False)
1313
print(portfolio)
1414

1515

pyinjective/async_client.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,8 +2037,12 @@ async def fetch_binary_options_market(self, market_id: str) -> Dict[str, Any]:
20372037
return await self.exchange_derivative_api.fetch_binary_options_market(market_id=market_id)
20382038

20392039
# PortfolioRPC
2040-
async def fetch_account_portfolio_balances(self, account_address: str) -> Dict[str, Any]:
2041-
return await self.exchange_portfolio_api.fetch_account_portfolio_balances(account_address=account_address)
2040+
async def fetch_account_portfolio_balances(
2041+
self, account_address: str, usd: Optional[bool] = None
2042+
) -> Dict[str, Any]:
2043+
return await self.exchange_portfolio_api.fetch_account_portfolio_balances(
2044+
account_address=account_address, usd=usd
2045+
)
20422046

20432047
async def listen_account_portfolio_updates(
20442048
self,

pyinjective/client/indexer/grpc/indexer_grpc_portfolio_api.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Callable, Dict
1+
from typing import Any, Callable, Dict, Optional
22

33
from grpc.aio import Channel
44

@@ -21,8 +21,10 @@ async def fetch_account_portfolio(self, account_address: str) -> Dict[str, Any]:
2121

2222
return response
2323

24-
async def fetch_account_portfolio_balances(self, account_address: str) -> Dict[str, Any]:
25-
request = exchange_portfolio_pb.AccountPortfolioBalancesRequest(account_address=account_address)
24+
async def fetch_account_portfolio_balances(
25+
self, account_address: str, usd: Optional[bool] = None
26+
) -> Dict[str, Any]:
27+
request = exchange_portfolio_pb.AccountPortfolioBalancesRequest(account_address=account_address, usd=usd)
2628
response = await self._execute_call(call=self._stub.AccountPortfolioBalances, request=request)
2729

2830
return response

pyinjective/proto/exchange/injective_accounts_rpc_pb2.py

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

pyinjective/proto/exchange/injective_auction_rpc_pb2.py

Lines changed: 18 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)