Skip to content

v0.10.4

Compare
Choose a tag to compare
@JakeUrban JakeUrban released this 16 Apr 21:40
· 476 commits to master since this release

Breaking Changes:

  • The "form" key from content_for_transaction()'s return value must be an instance of django.forms.Form
  • content_for_transaction() additionally accepts two keyword arguments, post_data and amount

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 a Transaction instead of an Asset

This fixes a bug. TransactionForm was previously validating withdrawal amounts against deposit asset limits.

Features

  • Adds the integration function save_sep9_fields() to both DepositIntegration and WithdrawalIntegration classes. This function allows anchors to store SEP-9 values passed by the wallet to the deposit/interactive and withdraw/interactive endpoints.

DB Changes

  • Transaction.paging_token was added as a nullable text field

Bug Fixes

  • Transaction.started_at and Transaction.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 and TIME_ZONE settings.
  • 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.
  • 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