Skip to content

Commit

Permalink
update stellar-sdk to 9.0.0-a2
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeUrban committed Sep 17, 2023
1 parent 6a0d9b0 commit cef013d
Show file tree
Hide file tree
Showing 6 changed files with 226 additions and 70 deletions.
272 changes: 216 additions & 56 deletions poetry.lock

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions polaris/sep24/deposit.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
from stellar_sdk.strkey import StrKey
from stellar_sdk.exceptions import (
Ed25519PublicKeyInvalidError,
MuxedEd25519AccountInvalidError,
ValueError as StellarSdkValueError,
MuxedEd25519AccountInvalidError
)

from polaris import settings
Expand Down Expand Up @@ -476,7 +475,7 @@ def deposit(token: SEP10Token, request: Request) -> Response:
if destination_account.startswith("M"):
try:
stellar_account = StrKey.decode_muxed_account(destination_account).ed25519
except (MuxedEd25519AccountInvalidError, StellarSdkValueError):
except (MuxedEd25519AccountInvalidError, ValueError):
return render_error_response(_("invalid 'account'"))
else:
try:
Expand Down
5 changes: 2 additions & 3 deletions polaris/sep24/withdraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
from stellar_sdk.strkey import StrKey
from stellar_sdk.exceptions import (
Ed25519PublicKeyInvalidError,
MuxedEd25519AccountInvalidError,
ValueError as StellarSdkValueError,
MuxedEd25519AccountInvalidError
)

from polaris import settings
Expand Down Expand Up @@ -469,7 +468,7 @@ def withdraw(
if source_account and source_account.startswith("M"):
try:
StrKey.decode_muxed_account(source_account)
except (MuxedEd25519AccountInvalidError, StellarSdkValueError):
except (MuxedEd25519AccountInvalidError, ValueError):
return render_error_response(_("invalid 'account'"))
elif source_account:
try:
Expand Down
5 changes: 2 additions & 3 deletions polaris/sep6/deposit.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
from stellar_sdk.exceptions import (
MemoInvalidException,
Ed25519PublicKeyInvalidError,
MuxedEd25519AccountInvalidError,
ValueError as StellarSdkValueError,
MuxedEd25519AccountInvalidError
)

from polaris import settings
Expand Down Expand Up @@ -220,7 +219,7 @@ def parse_request_args(
if account.startswith("M"):
try:
StrKey.decode_muxed_account(account)
except (MuxedEd25519AccountInvalidError, StellarSdkValueError):
except (MuxedEd25519AccountInvalidError, ValueError):
return {"error": render_error_response(_("invalid 'account'"))}
else:
try:
Expand Down
5 changes: 2 additions & 3 deletions polaris/sep6/withdraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
from stellar_sdk.exceptions import (
MemoInvalidException,
Ed25519PublicKeyInvalidError,
MuxedEd25519AccountInvalidError,
ValueError as StellarSdkValueError,
MuxedEd25519AccountInvalidError
)

from polaris import settings
Expand Down Expand Up @@ -163,7 +162,7 @@ def parse_request_args(
if account and account.startswith("M"):
try:
StrKey.decode_muxed_account(account)
except (MuxedEd25519AccountInvalidError, StellarSdkValueError):
except (MuxedEd25519AccountInvalidError, ValueError):
return {"error": render_error_response(_("invalid 'account'"))}
elif account:
try:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "django-polaris"
version = "2.3.8"
version = "2.4.0-rc1"
description = "An extendable Django server for Stellar Ecosystem Proposals."
license = "Apache-2.0"
authors = ["Stellar Development Foundation <[email protected]>"]
Expand Down Expand Up @@ -43,7 +43,7 @@ django-environ = "*"
django-model-utils = "^4.1"
djangorestframework = "^3.12"
whitenoise = "^5.3"
stellar-sdk = "^8.0"
stellar-sdk = { version = "9.0.0-a2", extras=["aiohttp"] }
aiohttp = "^3.7"
django-cors-headers = "^3.7"
toml = "*"
Expand Down

0 comments on commit cef013d

Please sign in to comment.