Releases: alephium/alephium-web3
Releases · alephium/alephium-web3
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.
v0.17.0
- More refactorization for
web3-react
to make it more performant and developer friendly - Hook
useAccount
is replaced byuseWallet
What's Changed
- Calculating the contract id from tx without the need to wait for tx confirmation by @Lbqds in #235
- Enable react hooks eslint plugin by @Lbqds in #234
- Add useWallet hook by @Lbqds in #233
Full Changelog: v0.16.1...v0.17.0
v0.16.1
- Refactor
web3-react
to fix a few rerender issues - Validate contract fields so as to provide better error messages
What's Changed
- Check contract/script initial fields by @Lbqds in #222
- Fix the issue of re-rendering caused by useAccount by @Lbqds in #224
- Update explorer backend schema for v1.15.1 by @nop33 in #228
- Refactor connect context by @Lbqds in #227
- Make
addressGroup
optional by @Lbqds in #229 - Reset balance on disconnect by @Lbqds in #230
Full Changelog: v0.15.1...v0.16.1
v0.15.0
useBalance
can update based on pending transactionsuseAccount
is simplified- introduced
getSigner
andgetSigners
for testing purposes - redeploy contracts before deployment if the source code has been changed
- improved event subscription and nft utilities
What's Changed
- Improve useAccount by @h0ngcha0 in #212
- Ask the user whether to redeploy the contract when contract code changes by @Lbqds in #214
- Improve NFT utils by @h0ngcha0 in #213
- Improve event subscription by @Lbqds in #215
- Generate wallets for testing by @Lbqds in #219
- Improve useBalance hook by @Lbqds in #218
- Bump version to v0.14.7 by @h0ngcha0 in #217
Full Changelog: v0.14.6...v0.15.0
0.9.0
v0.8.0
Breaking Changes
- Update to be compatible with full node 2.0.1 APIs and explorer backend 1.13.3 APIs
- Token interface
IToken
is renamed asIFungibleToken
- An initial NFT standard is introduce, check
packages/web3/std/nft_collection_interface.ral
andpackages/web3/std/nft_interface.ral
ContractName.testFooMethod(...)
is renamed asContractName.tests.foo(...)
ContractName.callFooMethod(...)
is renamed asContractName.methods.foo(...)
All PRs
- Update full node to 2.0.1 by @Lbqds in #137
- Bump explorer_backend_version to 1.13.3 by @h0ngcha0 in #138
- Add NFT Interfaces by @h0ngcha0 in #136
- Improve generated method names by @Lbqds in #139
Full Changelog: v0.7.0...v0.8.0