v0.10.4
Breaking Changes:
- The
"form"
key fromcontent_for_transaction()
's return value must be an instance ofdjango.forms.Form
content_for_transaction()
additionally accepts two keyword arguments,post_data
andamount
These change was made so anchors could initialize their own forms. This is particularly useful for pre-populating form fields with values from SEP-9.
TransactionForm.__init__()
requires aTransaction
instead of anAsset
This fixes a bug. TransactionForm
was previously validating withdrawal amounts against deposit asset limits.
Features
- Adds the integration function
save_sep9_fields()
to bothDepositIntegration
andWithdrawalIntegration
classes. This function allows anchors to store SEP-9 values passed by the wallet to thedeposit/interactive
andwithdraw/interactive
endpoints.
DB Changes
Transaction.paging_token
was added as a nullable text field
Bug Fixes
Transaction.started_at
andTransaction.completed_at
are now recorded as datetimes in UTC.- Previously, they were recorded in the time zone specified by the anchor using Django's
USE_TZ
andTIME_ZONE
settings.
- Previously, they were recorded in the time zone specified by the anchor using Django's
- The
watch_transactions
management command now streams transactions from Horizon starting from the most recently completed withdraw.- Previously,
watch_transactions
started from"now"
, which means the anchor could've potentially missed incoming withdrawal transactions if the process went down.
- Previously,
Transaction.stellar_transaction_id
is now saved for withdrawal transactions. Previously, it was only saved for deposit transactions.
Miscellaneous
- Added
TRANSFER_SERVER_0024
to the stellar.toml file - Endpoints return 403 on bad or missing JWT tokens, instead of 400