From 059e8fa1a7fbd00ebb086dd014f8171d7e075d4a Mon Sep 17 00:00:00 2001 From: frank <98238480+soundsonacid@users.noreply.github.com> Date: Fri, 5 Apr 2024 12:32:40 -0500 Subject: [PATCH] frank/0.7.46 (#153) --- .bumpversion.cfg | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/driftpy/__init__.py | 2 +- src/driftpy/drift_client.py | 8 +++++--- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index ae97e5be..8f93ee47 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.7.44 +current_version = 0.7.45 commit = True tag = True tag_name = {new_version} diff --git a/CHANGELOG.md b/CHANGELOG.md index cacd4660..02d01257 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -223,3 +223,11 @@ Fix minor bugs in `DriftUser` math functions Add `JitoTxSender` Update `drift.json` IDL + +## [0.7.45] - 2024-4-5 + +Update `perp_market_constants.py` + +## [0.7.46] - 2024-4-5 + +Fix bug where `DriftClient.send_ixs` wasn't properly awaited \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 222aaa0e..057a5271 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "driftpy" -version = "0.7.44" +version = "0.7.45" description = "A Python client for the Drift DEX" authors = ["x19 ", "bigz ", "frank "] license = "MIT" diff --git a/src/driftpy/__init__.py b/src/driftpy/__init__.py index 663743f7..41244394 100644 --- a/src/driftpy/__init__.py +++ b/src/driftpy/__init__.py @@ -1 +1 @@ -__version__ = "0.7.44" +__version__ = "0.7.46" diff --git a/src/driftpy/drift_client.py b/src/driftpy/drift_client.py index 862faded..a2da8ef7 100644 --- a/src/driftpy/drift_client.py +++ b/src/driftpy/drift_client.py @@ -1031,9 +1031,11 @@ async def cancel_orders( Returns: str: tx sig """ - return await self.send_ixs( - self.get_cancel_orders_ix( - market_type, market_index, direction, sub_account_id + return ( + await self.send_ixs( + self.get_cancel_orders_ix( + market_type, market_index, direction, sub_account_id + ) ) ).tx_sig