v1.0.0
The main changes introduced in v1.0.0
:
- Easy Contract Interaction: The SDK generates
view
andtransact
methods for calling contract methods offchain and onchain without TxScripts. Documentation - Method Selector Enabled by Default: For better interoperability, the method selector is now enabled by default for interfaces. The index-based selector is deprecated.
- Backward Compatibility for Bytecodes: The CLI compiler now maintains backward compatibility for bytecodes if your contracts were deployed on mainnet or testnet. This change simplifies contract upgrades.
- Removal of
Project.build
: TheProject.build
method has been removed from the core package and is no longer recommended. You should use the compiler to compile the entire TypeScript project.
Action Required: If you are building a new project and haven’t deployed yet, we highly recommend upgrading to 1.x.x
. Remove the artifacts folder and re-compile everything to take advantage of the latest full node features.