Releases: stellar/django-polaris
Releases · stellar/django-polaris
v2.3.4
Updates
- Updated SEP-24
POST /transactions/deposit/interactive
endpointaccount
request parameter optional to reflect the specification (#656)
Bug Fixes
v2.3.3
Bug Fixes
- Adds support for streaming Fee-Bump Transactions using the
watch_transactions
command
v2.3.2
v2.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
andPOST /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)
- Adds two endpoints,
Bug Fixes
- Properly decodes transaction envelopes containing claimable balance operations in Polaris' deposit submission logic (#638)
v2.3.0
Dependencies
- Updates Python
stellar-sdk
tov8.0
- This removes the need for the
ENABLE_SEP_0023
environment variable to be set
- This removes the need for the
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 (notQUOTE_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
v2.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
v2.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
Data Model
- Adds a
PolarisHeartBeat
table used to manage application-layer advisory locks on database resources - Adds
Transaction.queue
,Transaction.queued_at
, andTransaction.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
v2.1.2
v2.1.0
This release adds support for using SEP-38 quotes in SEP-6, 24, and 31 transactions. It also adds support for authenticating, sending payments to, and receiving payments from multiplexed accounts.
Breaking Changes
- SEP-24 templates have been updated with altered template variables. If you're using the default templates provided by Polaris, ensure your views are still rendering correctly. See the
.content_for_template()
integration function documentation for a detailed list of changes to the template variables.
Endpoints
- Added all SEP-38 Anchor RFQ API endpoints
- Added SEP-6
GET /deposit-exchange
andGET /withdraw-exchange
endpoints for using quotes - Updated SEP-31
POST /transactions
to accept quotes - SEP-10 authenticates clients using shared accounts
Integrations
QuoteIntegration
base class for SEP-38 integrations- The integration functions correspond directly to endpoints defined in the specification
.content_for_template()
can now return atemplate_name
key-value pair for rendering a custom template- The default template variables present in
deposit.html
andwithdraw.html
have been greatly expanded, and the values can be overridden using.content_for_template()
. The integration function documentation for specifics.
Data Model
- Add the following models:
Quote
,ExchangePair
,OffChainAsset
, &DeliveryMethod
- Adds a
Transaction.account_memo
column for a shared account using memos to disambiguate users - Adds a
Transaction.muxed_account
column.Transaction.stellar_account
will always be theG...
address derived from the muxed account, if present. - Adds a
Transaction.quote
column - Adds a
Transaction.fee_asset
column - Adds a
Asset.sep38_enabled
column - Updates the following fields to be nullable:
Transaction.deposit_fee_fixed
Transaction.deposit_fee_percent
Transaction.withdrawal_fee_fixed
Transaction.withdrawal_fee_percent
Transaction.send_fee_percent
Transaction.send_fee_fixed
- Updates
Transaction.kind
to support the following new values:deposit-exchange
andwithdrawal-exchange
- Added
Asset.asset_identification_format
property for using SEP-38 asset format
Environment Variables
- The python SDK's
ENABLE_SEP_0023
environment variable must be truthy
Miscellaneous
SEP10Token
now has the additional properties:muxed_account
,memo
Bug Fixes
GET /transaction(s)
response bodies contained improperly formatted datetime strings