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

feat(sdk): testing framework for puts (state transitions) in rs-sdk #1569

Open
wants to merge 243 commits into
base: v1.0-dev
Choose a base branch
from

Conversation

lklimek
Copy link
Contributor

@lklimek lklimek commented Nov 8, 2023

Issue being fixed or feature implemented

For the rs-sdk testing, we assume that each feature must have relevant test implemented.
Current rs-sdk test framework doesn't support testing of Puts (what includes state transitions).

What was done?

In this PR, we define a Wallet trait that provides access to wallet features.
On top of that, we include improvements to ContextProvider (formerly known as QuorumInfoProvider).

How Has This Been Tested?

Integrated with rs-platform-explorer (not pushed) - it builds. :)

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • I have made corresponding changes to the documentation if needed

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

lklimek and others added 30 commits June 28, 2023 14:03
lklimek and others added 10 commits December 4, 2023 19:29
Commit message:

feat(rs-sdk): add cancellation token and refactor address watcher

This commit introduces CancellationToken into the Rust SDK for graceful shutdowns. It also refactors the Address Watcher in the Subscriber module, changing its internal data structure from a BTreeMap to a Vec for storing JoinHandles of spawned tasks.

In addition, the commit reexports types from dashcore-rpc crate in the core module and modifies some import statements across different modules for better code organization. The Wallet interface is updated with a new function signature for signing core chain transactions.

Lastly, the commit includes changes to the test files to adapt to the new CancellationToken usage and other minor modifications.

These changes enhance the maintainability of the code and allow for more controlled execution flow, especially in scenarios requiring task cancellation.
@lklimek lklimek changed the base branch from feat/register to rs-sdk/no-mut-1 December 6, 2023 17:03
Co-authored-by: Ivan Shumkov <ivan@shumkov.ru>
Base automatically changed from rs-sdk/no-mut-1 to feat/register December 12, 2023 12:22
Base automatically changed from feat/register to v1.0-dev February 12, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-tests Run GH tests, even on draft
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants