ContractKit 9.0 is here, with the beta version available now and the final build coming soon. This release introduces key changes, including improvements to L2 support, a major refactor of identity-related functions, and enhanced backwards compatibility.
Install
~Beta out now. Final build will be released within the next few weeks~
EDIT: final release is out
npm install @celo/contractkit
Why a major release?
In this release, we removed lib/identity
functions and placed them in new @celo/metadata-claims
package, ensuring a more modular and focused set of tools.
Do I need this for L2 Support?
Probably not. The previous contractkit version 8.3.1 supports L2 features for sending and signing transactions, fee currency directory, and fixed bugs with ledger support. However…
What’s New for L2 Support in 9.0?
This version does improve L2 support in the following ways
-
Backwards compatibility for some kit methods using epoch’s block numbers.
getEpochSize
getFirstBlockNumberForEpoch
getEpochNumberOfBlock
-
Better warnings on methods that fail on L2.
-
Fixes for
LockGoldWrapper.getAccountsSlashed
-
Fix
EpochManager.finishNextEpochProcessTx
(callgetElectedAccounts
instead ofgetElected
)
More Info
–
The cLabs Developer Tooling Team