π A Massive Refactor + React Support
Big news: ChainGate just got its biggest upgrade yet.
Version 0.6.0 delivers a full internal restructuring, setting the foundation for the upcoming 1.0 release β along with a cleaner API, improved performance, and initial support for React apps.
What's new in 0.6.0β
π§ Total codebase refactorβ
The internal architecture of ChainGate has been completely restructured. This enables better modularity, clearer logic, and smoother upgrades going forward β all in preparation for the upcoming 1.0 stable release.
π« No more client dependencyβ
The chaingate
framework no longer depends on the separate ChainGate client. Everything is now managed internally. To initialize utility methods, simply use:
const { utils } = await initializeUtils({ apiKey })
No need to manually configure clients anymore.
πͺ² Bug fixes galoreβ
Many long-standing bugs have been addressed. You should notice increased stability and fewer edge-case issues.
π API changes: .amount
and .amountFiat
β
Amount helpers have moved to a new, more consistent location:
currency.utils.amount('0.05')
currency.utils.amountFiat('100', 'eur')
This replaces the older currency.amount(...)
pattern. All amount-related logic is now accessed via .utils
.
βοΈ Initial React supportβ
The new release includes first-class support for React:
useWallet()
β manage and access wallet context in your appuseUtils()
β access currency utility methods across components
More React hooks are on the way!
Upgrade to 0.6.0
now and get ready for whatβs coming next. The path to 1.0
starts here.