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: mock block explorer #573

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

parodyBit
Copy link
Contributor

adds a tool to run a mock version of the block explorer to get simulated transactions to test specific cases

to enable the feature:

  • in lib/constanst.dart set USE_EXPLORER_MOCK and USE_MOCK_WALLETS_FILE to true
  • set the EXPLORER_MOCK_ADDRESS to the correct local address in the .env file
  • run dart bin/mock_explorer.dart
  • run the main app

the test transactions in bin/mock_data.json are tied to the test node xprv in the .env.example file

adds a tool to run a mock version of the block explorer to get simulated transactions to test specific cases.

to enable the feature:
- in `lib/constanst.dart` set `USE_EXPLORER_MOCK` and `USE_MOCK_WALLETS_FILE ` to true
- set the `EXPLORER_MOCK_ADDRESS`  to the correct local address in the .env file
- run `dart bin/mock_explorer.dart`
- run the main app

the test transactions in `bin/mock_data.json` are tied to the test node xprv in the .env.example file
@parodyBit parodyBit requested a review from gabaldon September 6, 2024 02:16
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