Django-polaris

Latest version: v2.5.0

Safety actively analyzes 688600 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 8 of 13

1.2.0

Features

- Added SEP-24 Claimable Balance Support ([protocol change](https://github.com/stellar/stellar-protocol/pull/757))
- Added `MAX_TRANSACTION_FEE_STROOPS` environment variable
- This allows anchors to increase their fee bid in order to minimize chances of `504 Timeout` responses from Horizon

Database Migrations

- Added `claimable_balance_id` and `claimable_balance_supported` columns to the `Transaction` model

Bug Fixes

- `watch_transactions` detects Path Payment operations ([StrictSend](https://developers.stellar.org/docs/start/list-of-operations/#path-payment-strict-send) & [StrictReceive](https://developers.stellar.org/docs/start/list-of-operations/#path-payment-strict-receive))
- In previous versions, only [Payment](https://developers.stellar.org/docs/start/list-of-operations/#payment) operations were detected
- CORS policy was added to SEP-31 endpoints
- In previous versions, SEP-31 endpoints did not include CORS policy headers in responses
- `pending_external` deposit transactions are now passed to `poll_pending_transactions()`
- In previous versions, only transactions that were in `pending_user_transfer_start` were passed
- `GET /transactions` returns records for assets only enabled for SEP-6
- In previous versions, an error response was returned if the requested asset was not also enabled for SEP-24
- `GET /fee` returns a fee for assets only enabled for SEP-6
- In previous versions, an error response was returned if the fee was for an asset that was not also enabled for SEP-24

1.1.5

Those who run Polaris on a domain different than the domain hosting their [SEP-1 stellar.toml](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0001.md) must upgrade to this version to be in compliance with SEP-10 v3.0

For example, if you run Polaris on `polaris.anchor.com` but your TOML file is hosted at `anchor.com/.well-known/stellar.toml`, you must upgrade.

Upgrades Polaris' `stellar-sdk` to version [2.10](https://github.com/StellarCN/py-stellar-base/releases/tag/2.10.0). This version includes support for [SEP-10 v3.0](https://github.com/stellar/stellar-protocol/commit/9d121f98fd2201a5edfe0ed2befe92f4bf88bfe4#diff-ee9a54c7750191073fc5b98bb37e3e0a7373ad6c3ed3c8a4a76c8b7177c5b59d).

Adds a `SEP10_HOME_DOMAINS` environment variable used in Polaris' SEP-10 authentication. See the [Environment Variables](https://django-polaris.readthedocs.io/en/stable/#environment-variables) documentation for more information.

1.1.4

**Bug Fixes**

- Polaris' SEP-6 endpoint removed non-standard fields from the client's `/deposit` request, but SEP-6 allows for custom fields originally described in `/info` to be sent as request parameters. This release changes this logic and passes all requests parameters to `DepositIntegration.process_sep6_request()`

1.1.3

**Bug Fixes**

- Polaris can now successfully process received withdrawal transactions with different TX and payment op source accounts

Polaris' `watch_transactions` had a faulty assumption that withdrawal transactions sent to the anchor's account would have a payment op source that matches the TX source. This release removes that assumption and always assigns the value of `Transaction.from_address` to the payment operation source.

_Note: the commit tagged for this release is not accurate, see the v1.1.3 branch for the code/commits._

1.1.2

Introduces performance improvements, migrations, and bug fixes.

**Performance Improvements**

Namely, this release improves distribution account loading performance for `Assets` by only loading when `Asset.distribution_account_*` is accessed instead of on `Asset` initialization. Only one Horizon API call will be made per-asset per-process.

**DB Migrations**

In order to make loading distribution account data more efficient, the following columns were removed from the database and replaced with `Asset` object properties:

- `distribution_account_signers`
- `distribution_account_thresholds`
- `distribution_account_master_signer`

This removes an unnecessary DB write operation when an asset's distribution account is loaded from Horizon.

**Bug Fixes**

- ensures the `amount` key-value pair passed to the registered fee function is a `Decimal` instead of `float`

1.1.1

Patch release upgrading Polaris' [Stellar SDK to 2.8](https://github.com/StellarCN/py-stellar-base/releases/tag/2.8.0), which includes support for Protocol 14. Note the SDK has a single breaking change:

- The type of `stellar_sdk.signer.Signer.signer_key` is changed from `Xdr.types.SignerKey` to `stellar_sdk.signer_key.SignerKey`.

This breaking change did not affect Polaris' use of the SDK, but it may affect your SDK usage.

Page 8 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.