butaneprotocol / translucent-compat

Deprecated in favour of blaze https://github.com/butaneprotocol/blaze-cardano
https://github.com/butaneprotocol/blaze-cardano
Other
15 stars 8 forks source link

we should remove the dependency for translucent in Utils #20

Open joacohoyos opened 7 months ago

joacohoyos commented 7 months ago

Sometimes to use some utility functions you need to instantiate a new instance just to do translucent.utils.<whatever>.

This is inconvenient and ideally would be done under a namespace or just free functions that you can import anywhere.

Checking what's translucent needed inside the utils class, it's only being used to get the network setting. This could be fixed by passing the network as an extra parameter and decoupling the utility functions from any instance.