Skip to content

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