Skip to content

Commit 7d39001

Browse files
chore(release): Update nibiru-proto dependency for v0.14.0 binary (#109)
* test: all green w/ new binary * increment pyproject version for release * update changelog
1 parent e177308 commit 7d39001

File tree

6 files changed

+41
-25
lines changed

6 files changed

+41
-25
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,21 @@
33

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

6+
## v0.2.0 2022-08-24
7+
8+
### Breaking Changes
9+
10+
- Improve query error handling [#108](https://github.com/NibiruChain/py-sdk/pull/108)
11+
- feat: Split the design of txs between message and execution. [#96](https://github.com/NibiruChain/py-sdk/pull/96)
12+
- hotfix/test(query_clients): Test vpool.query.all_pools fn. Account for deserialize edge case #102. [#103](https://github.com/NibiruChain/py-sdk/pull/103)
13+
14+
### Improvements
15+
16+
- refactor(ci-cd): Update linter workflow. Cache poetry installation. [#96](https://github.com/NibiruChain/py-sdk/pull/96)
17+
- Remove legacy run-examples.sh [#97](https://github.com/NibiruChain/py-sdk/pull/97)
18+
- test: Add back utils_test file [#96](https://github.com/NibiruChain/py-sdk/pull/96)
19+
- docs: Update README.md [#104](https://github.com/NibiruChain/py-sdk/pull/104)
20+
621
## v0.1.0 2022-08-22
722

823
- feat(proto): use external proto pkg `nibiru_proto` for versioned types [#81](https://github.com/NibiruChain/py-sdk/pull/81)

nibiru/query_clients/vpool.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ def reserve_assets(self, pair: str):
2121

2222
def all_pools(self):
2323
req = vpool_type.QueryAllPoolsRequest()
24-
return self.query(self.api.AllPools, req)
24+
resp = self.query(self.api.AllPools, req)
25+
return resp
2526

2627
def base_asset_price(self, pair: str, direction: Direction, base_asset_amount: str):
2728
dir_pb = pbDirection.DIRECTION_UNSPECIFIED

poetry.lock

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

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "nibiru"
3-
version = "0.0.17"
3+
version = "0.2.0"
44
description = "Python SDK for interacting with Nibiru."
55
authors = ["Nibiru Chain <dev@nibiru.fi>"]
66
license = "MIT"
@@ -39,7 +39,7 @@ coincurve = "^17.0.0"
3939
aiocron = "^1.8"
4040
pytest = "^7.1.2"
4141
pre-commit = "^2.20.0"
42-
nibiru-proto = "^0.13.2"
42+
nibiru-proto = "^0.14.1"
4343
shutup = "^0.2.0"
4444

4545
[tool.poetry.dev-dependencies]

tests/pricefeed_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ def test_post_prices(oracle_agent: nibiru.Sdk):
124124

125125
# Unibi price object must be a dict with specific keys
126126
unibi_price = oracle_agent.query.pricefeed.price("unibi:unusd")["price"]
127-
dict_keys_must_match(unibi_price, ["pair_id", "price"])
127+
dict_keys_must_match(unibi_price, ["pair_id", "price", "twap"])
128128

129129
# At least one pair in prices must be unibi:unusd
130130
prices = oracle_agent.query.pricefeed.prices()["prices"]
131131
assert any([price["pair_id"] == "unibi:unusd" for price in prices])
132132

133133
# Unibi price object must be a dict with specific keys
134134
unibi_price = next(price for price in prices if price["pair_id"] == "unibi:unusd")
135-
dict_keys_must_match(unibi_price, ["pair_id", "price"])
135+
dict_keys_must_match(unibi_price, ["pair_id", "price", "twap"])

tests/vpool_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ def test_query_vpool_all_pools(agent: nibiru.Sdk):
4949

5050
vpool_prices = all_vpool_prices[0]
5151
assert isinstance(vpool_prices["block_number"], int), "block_number"
52-
assert isinstance(vpool_prices["index_price"], float), "index_price"
52+
assert isinstance(vpool_prices["index_price"], str), "index_price"
5353
assert isinstance(vpool_prices["mark_price"], float), "mark_price"
5454
assert isinstance(vpool_prices["swap_invariant"], int), "swap_invariant"
55-
assert isinstance(vpool_prices["twap_mark"], float), "twap_mark"
55+
assert isinstance(vpool_prices["twap_mark"], str), "twap_mark"
5656
assert isinstance(vpool_prices["pair"], str), "pair"
5757
tests.LOGGER.info(f"vpool_prices: {pprint.pformat(vpool_prices, indent=3)}")
5858

0 commit comments

Comments
 (0)