dashpay / platform-tutorials

Code for the tutorials found on https://docs.dash.org/platform
MIT License
2 stars 5 forks source link

refactor: extract client instantiation to module #36

Closed thephez closed 7 months ago

thephez commented 7 months ago

Client instantiation is now handled outside the individual tutorials. This both cuts down on the amount of code present in each tutorial and makes it easy to modify client options. Many of the SDK client options are also provided (commented out) in the new setupDashClient module.

See #35 for background discussion. A PR will also be required in dashpay/docs-platform to align the docs with this change.

thephez commented 7 months ago

@riongull, you can take a look at this if you'd like. There may be more things that could be done, but I did want to keep this as just a "refactor".

riongull commented 7 months ago

Looks great! Thanks for making these changes. I'll have Anthony run through it for DX (developer experience) after it's merged into the latest docs.