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

2.3.2

Bug Fixes

- SEP-6 withdrawals now uses the address returned from `CustodialIntegration.get_receiving_account_and_memo()`. Previously it always returned `Asset.distribution_account`

2.3.1

Features

- Adds complete support for using external SEP-24 interactive flows with Polaris deployments (633). See the SEP-24 documentation for more info.
- Adds two endpoints, `POST transactions/deposit/interactive/complete` and `POST /transactions/withdraw/interactive/complete`, for sending state collected during external interactive flows to Polaris servers
- Adds the `DepositIntegration.after_interactive_flow()` integration function for processing state collected during the external interactive flow (called on requests to the aforementioned endpoints)

Bug Fixes

- Properly decodes transaction envelopes containing claimable balance operations in Polaris' deposit submission logic (638)

2.3.0

Dependencies

- Updates Python [`stellar-sdk`](https://github.com/stellarcn/py-stellar-base) to `v8.0`
- This removes the need for the `ENABLE_SEP_0023` environment variable to be set

Bug Fixes

- Always return errors using the `Content-Type` of the calling endpoint (609)
- Ensure all endpoints are reachable with or without using a trailing slash (ex. `/auth/?` vs. `/auth?`) (611)
- Use `ANCHOR_QUOTE_SERVER` for SEP-38 stellar.toml attribute (not `QUOTE_SERVER`) (616)
- Use OS-agnostic functions for graceful shutdown of `process_pending_deposits` (615)

Packaging

- Add docs and dev server dependencies as optional dependencies when installing via PyPi

SEP-24 Default UI

- Minor padding adjustments to the logo image and guidance text
- Changed the default logo from the old Stellar logo to the new Stellar logo

2.2.1

Bug Fixes

- Allows the omission of the SEP-12 `account` request parameter. If specified, it must match the account authenticated via SEP-10
- Ensures the `"memo"` value passed to SEP-12 integration functions is always a string, even if `"memo_type"` is `"id"`

Miscellaneous

- Updates PyPi packaging configuration

2.2.0

Features

- Adds `polaris.integrations.CustodyIntegration` which can be used to integrate third-party custodial solutions with Polaris
- Improves Stellar transaction submission and related error handling
- Adds `polaris.middleware.TimezoneMiddleware` which can be used to detect a customer's timezone and display local datetimes in the SEP-24 interactive flow
- Improves SEP-24 transaction amount field default UI

Documentation

- Completely rewritten documentation, complete with User Guides and a complete API Reference viewable at [django-polaris.readthedocs.io](https://django-polaris.readthedocs.io/en/stable/)

Data Model

- Adds a `PolarisHeartBeat` table used to manage application-layer advisory locks on database resources
- Adds `Transaction.queue`, `Transaction.queued_at`, and `Transaction.submission_status` columns for transaction submission handling

Bug Fixes

- Update in-memory `decimal.Decimal` precision to match the database precision of 30 decimals (previously 28)
- Ensures transaction envelope is saved to the database prior to submission (previously lost on submission error)
- Adds SEP-38 `QUOTE_SERVER` attribute to auto-generated SEP-1 stellar.toml file, if SEP-38 is active

2.1.2

Bug Fixes

- Saves transaction envelopes to the database before instead of after submitting to Stellar
- Previously, if transaction submission failed, the transaction envelope would not be saved to the database

Page 3 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.