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

refactor(contracts-node): reduce duplicated code with binary sourcing #255

Merged

Conversation

peterwht
Copy link
Contributor

@peterwht peterwht commented Jul 19, 2024

Refactors the usage of substrate-contracts-node for pop up contract and pop test contract --e2e. These now use the functionality defined in pop-parachains specifically for sourcing node-binaries from GitHub.

@peterwht peterwht marked this pull request as ready for review July 19, 2024 15:48
@peterwht peterwht merged commit 0b3a288 into peter/feat-e2e-test-improvements Jul 19, 2024
@peterwht peterwht deleted the peter/refactor-binary-sourcing branch July 19, 2024 15:49
AlexD10S pushed a commit that referenced this pull request Jul 25, 2024
…ts (#254)

* feat(contracts-e2e): auto-source contracts-node binary if not present

* chore(contract-e2e): deprecate --features e2e-tests

* fix: remove unnecessary async function

* refactor(contracts-node): reduce duplicated code with binary sourcing (#255)

* refactor(up-contract): use Binary struct from parachains -> up -> sourcing to auto-launch contracts-node

* refactor(contracts_node): reduce duplicated code -- checkpoint, not working

* refactor(contracts_node): use Binary and Source structs for substrate-contracts-node

* chore: small changes

* chore: small changes

* chore: add e2e help, prevent cmd output, and cleanup

* refactor(contracts_node): introduce helper to download contracts node if it does not exist

* refactor(sourcing): move sourcing functionality to `pop-common` (#258)

* refactor(sourcing): move sourcing to pop-common

* refactor(sourcing-tests): move sourcing tests to pop-common

* refactor(sourcing): better imports

* refactor(sourcing): clean sourcing module with better component categorization. Other cleanups

* fix: failing tests

* fix: needed to download contracts_node for test

* fix: add contracts feature, more tests need s c n downloaded

* fix: manually create temp dir

* fix: append pop_tmp folder in tests

* refactor: e2e test improvements (#263)

* fix: use async sleep in async context

* refactor: remove unnecessary module

* refactor: standardise sourcing ux

* fix: temp dir issue

* chore: component locations, minor improvements

---------

Co-authored-by: Frank Bell <[email protected]>
AlexD10S added a commit that referenced this pull request Jul 26, 2024
…contracts-node` (#262)

* feat(contracts-e2e): auto-source contracts-node binary if not present

* chore(contract-e2e): deprecate --features e2e-tests

* fix: remove unnecessary async function

* refactor(contracts-node): reduce duplicated code with binary sourcing (#255)

* refactor(up-contract): use Binary struct from parachains -> up -> sourcing to auto-launch contracts-node

* refactor(contracts_node): reduce duplicated code -- checkpoint, not working

* refactor(contracts_node): use Binary and Source structs for substrate-contracts-node

* chore: small changes

* chore: small changes

* chore: add e2e help, prevent cmd output, and cleanup

* refactor(contracts_node): introduce helper to download contracts node if it does not exist

* refactor(sourcing): move sourcing functionality to `pop-common` (#258)

* refactor(sourcing): move sourcing to pop-common

* refactor(sourcing-tests): move sourcing tests to pop-common

* refactor(sourcing): better imports

* refactor(sourcing): clean sourcing module with better component categorization. Other cleanups

* fix: failing tests

* fix: needed to download contracts_node for test

* refactor: consistency with pop up parachains to recover contracts-node

* refactor: improvements

* test: unit test for new methods

* fix: comment

* refactor: remove support for standalone binary

* refactor: duplicate code after merge and docs

* refactor: remove code from merge

* fix: unit test

* fix: merge regressions

* fix: ui

* chore: add license missing in new files

* chore: add license missing in new files

* refactor: imports

* refactor: remove warnings

---------

Co-authored-by: Peter White <[email protected]>
Co-authored-by: Peter White <[email protected]>
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.

1 participant