Currently, when changing the electrs URL in the apps, we don't use the custom URL for most functions. This ensures that all the places that use the URL have the api provider injected instead of being created in place, allowing the injection of a provider with a custom URL.
π Changes
Does this PR introduce a breaking change?
[x] Yes, Incompatible API changes
[ ] No, Adds functionality (backwards compatible)
[ ] No, Bug fixes (backwards compatible)
Changes:
All functions that created their own instance of the Esplora API Provider now accept it as an argument instead.
Impact:
We will need to change the web extension and mobile apps to inject the provider in all the changed functions.
β Review checklist
Please ensure the following are true before merging:
[ ] Code Style is consistent with the project guidelines.
[ ] Code is readable and well-commented.
[ ] No unnecessary or debugging code has been added.
[ ] Security considerations have been taken into account.
[ ] The change has been manually tested and works as expected.
[ ] Breaking changes and their impacts have been considered and documented.
[ ] Code does not introduce new technical debt or issues.
π PR Type
What kind of change does this PR introduce?
π Background
Currently, when changing the electrs URL in the apps, we don't use the custom URL for most functions. This ensures that all the places that use the URL have the api provider injected instead of being created in place, allowing the injection of a provider with a custom URL.
π Changes
Does this PR introduce a breaking change?
Changes:
Impact:
β Review checklist
Please ensure the following are true before merging: