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

End to End test #47

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

notTanveer
Copy link
Contributor

@notTanveer notTanveer commented Sep 28, 2024

This PR adds an end-to-end test for silent payments, ensuring that a crafted transaction sending 5.99 BTC to a Taproot address (with a 0.01 BTC fee) is correctly included in the silent block. The test compares the crafted transaction’s txid, output value, and scan tweak against the decoded silent block retrieved from the API (/silent-block/hash/{blockHash}). This ensures the transaction was successfully broadcast, mined, and that the correct amount was sent to the intended address.

e2e/indexer.e2e-spec.ts Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/common/common.ts Outdated Show resolved Hide resolved
@notTanveer notTanveer force-pushed the feature/e2e-test branch 2 times, most recently from b7aa40e to dfc3154 Compare October 7, 2024 18:53
Copy link
Contributor

@aruokhai aruokhai left a comment

Choose a reason for hiding this comment

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

Good Work Tanveer, just a few touches left.

e2e/indexer.e2e-spec.ts Outdated Show resolved Hide resolved
e2e/indexer.e2e-spec.ts Show resolved Hide resolved
e2e/indexer.e2e-spec.ts Outdated Show resolved Hide resolved
e2e/helpers/wallet.helper.ts Outdated Show resolved Hide resolved
e2e/indexer.e2e-spec.ts Outdated Show resolved Hide resolved
e2e/indexer.e2e-spec.ts Outdated Show resolved Hide resolved
e2e/indexer.e2e-spec.ts Outdated Show resolved Hide resolved
e2e/helpers/wallet.helper.ts Outdated Show resolved Hide resolved
e2e/indexer.e2e-spec.ts Outdated Show resolved Hide resolved
e2e/indexer.e2e-spec.ts Outdated Show resolved Hide resolved
@notTanveer notTanveer force-pushed the feature/e2e-test branch 3 times, most recently from 15cd163 to a6d07ef Compare October 8, 2024 20:27
e2e/indexer.e2e-spec.ts Outdated Show resolved Hide resolved
config/e2e.config.yaml Outdated Show resolved Hide resolved
src/indexer/indexer.service.ts Show resolved Hide resolved
e2e/helpers/api.helper.ts Show resolved Hide resolved
src/silent-blocks/silent-blocks.service.ts Outdated Show resolved Hide resolved
e2e/helpers/rpc.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/wallet.helper.ts Outdated Show resolved Hide resolved
e2e/indexer.e2e-spec.ts Outdated Show resolved Hide resolved
@notTanveer notTanveer force-pushed the feature/e2e-test branch 2 times, most recently from 260f2f0 to 9057cad Compare October 11, 2024 17:44
src/indexer/indexer.service.ts Outdated Show resolved Hide resolved
src/indexer/indexer.service.ts Outdated Show resolved Hide resolved
e2e/helpers/common.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/common.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/common.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/wallet.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/wallet.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/wallet.helper.ts Outdated Show resolved Hide resolved
e2e/indexer.e2e-spec.ts Outdated Show resolved Hide resolved
e2e/helpers/wallet.helper.ts Outdated Show resolved Hide resolved
e2e/indexer.e2e-spec.ts Outdated Show resolved Hide resolved
src/indexer/indexer.service.ts Outdated Show resolved Hide resolved
config/e2e.config.yaml Show resolved Hide resolved
src/indexer/indexer.service.ts Outdated Show resolved Hide resolved
src/indexer/indexer.service.ts Outdated Show resolved Hide resolved
@notTanveer notTanveer force-pushed the feature/e2e-test branch 3 times, most recently from ba1a280 to fa9a95a Compare October 14, 2024 11:18
e2e/helpers/wallet.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/wallet.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/wallet.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/wallet.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/wallet.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/wallet.helper.ts Outdated Show resolved Hide resolved
e2e/indexer.e2e-spec.ts Outdated Show resolved Hide resolved
e2e/indexer.e2e-spec.ts Outdated Show resolved Hide resolved
@notTanveer notTanveer force-pushed the feature/e2e-test branch 5 times, most recently from 5b18309 to 3681f57 Compare October 17, 2024 11:16
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see that you removed some useful comments from this file, please add them back

e2e/helpers/common.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/common.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/rpc.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/rpc.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/rpc.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/wallet.helper.ts Show resolved Hide resolved
e2e/indexer.e2e-spec.ts Show resolved Hide resolved
Copy link
Collaborator

@theanmolsharma theanmolsharma left a comment

Choose a reason for hiding this comment

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

nice work!! 🚀

@theanmolsharma theanmolsharma merged commit 861eef8 into Bitshala-Incubator:main Oct 17, 2024
4 checks passed
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.

3 participants