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 5 of 13

2.0.2

Bug Fixes

- Call `SEP31ReceiverIntegration.info()` from `POST /transactions` requests with the appropriate keyword arguments
- This only affects those whose `.info()` implementation used the function's arguments.
- If your implementation returned a static dictionary this change has no effect

Miscellaneous

- Allow clients to send an empty `fields` object in SEP-31 `POST /transactions` requests
- This is not in-line with the specification but is semantically identical to sending a `"fields": {"transaction": {}}` value

2.0.1

Bug Fixes

- Includes Polaris' static JavaScript files in the packaged distribution
- These files are required for SEP-24
- This bug was introduced in Polaris v1.6

2.0

Update: this version will not run properly for SEP-24 deployments. Use version 2.0.1 or higher.

Breaking Changes

Dependencies
- Upgraded `django` to 3.2
- Upgraded `stellar-sdk` to 4.1
- Upgraded `pyjwt` to 2.1
- Removed `psycopg2-binary`
- Add `pytest-asyncio` to dev dependencies
- Require latest minor version of all other dependencies, accept future minor updates

Data Model

- Removed the `Asset.distribution_account_master_signer` property
- Removed the `Asset.distribution_account_signers` property
- Removed the `Asset.distribution_account_thresholds` property
- Added the `Asset.get_distribution_account_data()` method
- Added the `Asset.get_distribution_account_signers()` method
- Added the `Asset.get_distribution_account_thresholds()` method
- Added the `Asset.get_distribution_account_master_signer()` method

Templates
- Updated all template `block` tags to use double quotes

Middleware
- Remove `PolarisSameSiteMiddleware`

Integrations
- All unimplemented integration functions raise `NotImplementedError()`
- Removed `DepositIntegration.instructions_for_pending_deposit()`
- Removed JavaScript integrations (`TemplateScript`, `register_integrations(scripts=<>)`)
- Added the `rest_framework.request.Request` to all integration functions called within requests
- Added a new `SEP10Token` object to all integration functions called within requests authenticated via SEP-10
- Added `*args` and `**kwargs` parameters to all integration functions so adding future parameters is non-breaking

CLI Commands
- Renamed `poll_pending_deposits` to `process_pending_deposits` and made it asynchronous, merged `check_trustlines` functionality into this command
- Integration functions called within this process are still called from a synchronous context
- Remove `check_trustlines` command

1.6.4

**Polaris v1 releases use a version of the Stellar SDK that is not fully compatible with Stellar's Protocol 18 and above. Upgrade to Polaris v2 to ensure full compatibility.**

With Protocol 18 of the Stellar Network, deserializing `TransactionResult` objects containing path payment information is no longer possible with v2 of the Python Stellar SDK. This patch release removes the deserialization of transaction results from `watch_transactions` while maintaining the current functionality.

Fixes

- The `watch_transaction` command can now successfully process Strict Send payments

1.6.3

Updates

- Handle cases where account balances contain liquidity pool shares (Protocol 18)

1.6.2

Bug Fixes

- Includes Polaris' static JavaScript files in the packaged distribution
- These files are required for SEP-24
- This bug was introduced in Polaris v1.6

Page 5 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.