Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ANCHOR-686] Add user_action_required_by #1368

Merged
merged 7 commits into from
May 17, 2024

Conversation

Ifropc
Copy link
Contributor

@Ifropc Ifropc commented May 17, 2024

Description

  • Add new field user_action_required_by to SEP-6/24/31 transactions and related DB entries.
  • Added configuration option for SEP-6 and SEP-24 to set initial value on transaction creation.
  • Added support for related RPC requests to update this field.
  • Added ability to query platform transactions sorted by user_action_required_by field

Context

Implements stellar/stellar-protocol#1484

Testing

  • ./gradlew test
  • New test cases covering all new features

Documentation

https://stellarorg.atlassian.net/browse/ANCHOR-688
https://stellarorg.atlassian.net/browse/ANCHOR-704

Known limitations

N/A

@Ifropc Ifropc changed the title [ANCHOR-686] Add user_action_required_by [ANCHOR-686] Add user_action_required_by May 17, 2024
Copy link

Code Coverage

Overall Project NaN% NaN% 🍏

There is no coverage information present for the Files changed

@Ifropc Ifropc changed the base branch from develop to release/2.7.0 May 17, 2024 17:04
@Ifropc Ifropc changed the base branch from release/2.7.0 to develop May 17, 2024 17:06
every { sep24Config.initialUserDeadlineSeconds } returns deadline
sep24Service.withdraw(createTestSep10JwtWithMemo(), createTestTransactionRequest())
val dbDeadline = slotTxn.captured.userActionRequiredBy.epochSecond
val expectedDeadline = Instant.now().plusSeconds(deadline).epochSecond
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We really should be injecting a Clock everywhere 😢

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ifropc Ifropc merged commit 618de46 into develop May 17, 2024
8 checks passed
@Ifropc Ifropc deleted the ANCHOR-686-add-action-required-by branch May 17, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants