v2 Migration
v2 introduces significant improvements including the replacement of `Connex` with improved developer experience
What's Changed in 2.0
Major Breaking Changes
Connex Removal:
useConnex
is replaced withuseThor
New Contract Interaction Patterns: Introduction of
useCallClause
andexecuteMultipleClausesCall
Enhanced Transaction Building: New
useBuildTransaction
hook with improved type safetyImproved Type Safety: Better TypeScript support with stricter typing
Migration Path
Preparation Steps
Create a git branch for migration
Identify all places where
useConnex
is used (This is the main breaking change and easiest to find)Run
tsc
compiler to see all broken referencesFix the compiler errors and migrate incrementally. The new methods provide type-safe returns that will guide you
Verify functionality as you fix each error
Ensure you have adequate test coverage before starting
Getting Help
Documentation: Refer to individual migration guide sections
GitHub Issues: Report issues
Next Steps
Start with the API Changes guide to update your core dependencies and imports
Review Contract Patterns to understand new interaction methods
Apply Best Practices for optimal performance
Consult Troubleshooting if you encounter issues
Last updated
Was this helpful?