ContractKit SDKs v3.0.0
New Features
This release provides SDK support for querying ODIS 2.0.0, including the new ODIS quota endpoints. Changes are primarily in the @celo/identity
SDK.
Breaking Changes
@celo/identity
- It is no longer possible to query ODIS v1 in this version. Note that the previous quota calculation logic is still available under the "legacy PNP" endpoint in ODIS 2.0.0 (initially). We encourage upgrading to the new and improved PNP endpoint, as the legacy endpoint will eventually be deprecated.
- Underlying ODIS service URL has been updated.
- Several function signatures have changed, notably:
getPhoneNumberIdentifier
: new required parameters -- existing function calls must be updated.queryOdis
: new required parameters -- existing function calls must be updated.getBlindedPhoneNumberSignature
: optional parameters have changed -- existing function calls should be reviewed and possibly updated.
- Request and response types must now be imported directly from
@phone-number-privacy-common
. - Code related to ODIS matchmaking, including
OdisUtils.Matchmaking
, has been removed.
Other
- Reverts support for
StableTokenRegistry
, see this PR for more details
Fixes
- Provides more helpful error messages when instantiating the default
WasmBlsBlindingClient
.
Upgrades
@phone-number-privacy-common
from 1.0.39 to 2.0.0@celo/poprf
from ^0.1.6 to ^0.1.9