Releases: celo-org/developer-tooling
@celo/[email protected]
Patch Changes
- Updated dependencies [
4ef76eb
]:- @celo/[email protected]
- @celo/[email protected]
@celo/[email protected]
Patch Changes
- Updated dependencies [
4ef76eb
]:- @celo/[email protected]
- @celo/[email protected]
@celo/[email protected]
Major Changes
-
#340
33ad4aa
Thanks @aaronmgdr! - Introducing @celo/metadata-claims These are a series of functions extracted from @celo/contractkit since they didnt strictly need depend on contractkit itsefl. Developers can now use IdentityMetadataWrapper with any js rpc library like ethers or viem or web3js without being forced to import ContractKit.Instead when using
IdentityMetadataWrapper
you should make an object that satisfis theAccountMetadataSignerGetters
typeimport { AccountMetadataSignerGetters } from '@celo/metadata-claims/lib/types'
using viem it would be like
const accountsMetaDataSignerGetters: AccountMetadataSignerGetters = { isAccount: async (address: string) => accounts.read.isAccount([address as Address]), getValidatorSigner: async (address: string) => accounts.read.getValidatorSigner([address as Address]), getVoteSigner: async (address: string) => accounts.read.getValidatorSigner([address as Address]), getAttestationSigner: async (address: string) => accounts.read.getValidatorSigner([address as Address]), }
Patch Changes
- Updated dependencies [
4ef76eb
]:- @celo/[email protected]
- @celo/[email protected]
@celo/[email protected]
Patch Changes
- Updated dependencies [
4ef76eb
]:- @celo/[email protected]
- @celo/[email protected]
@celo/[email protected]
Patch Changes
- Updated dependencies [
33ad4aa
,4ef76eb
]:- @celo/[email protected]
- @celo/[email protected]
- @celo/[email protected]
- @celo/[email protected]
- @celo/[email protected]
@celo/[email protected]
Patch Changes
- Updated dependencies [
33ad4aa
,4ef76eb
]:- @celo/[email protected]
- @celo/[email protected]
- @celo/[email protected]
- @celo/[email protected]
@celo/[email protected]
Patch Changes
- Updated dependencies []:
- @celo/[email protected]
@celo/[email protected]
Patch Changes
-
#389
5a0a922
Thanks @aaronmgdr! - Add warning that ETH derivation path will be the default in a future major breaking change. -
Updated dependencies [
4ef76eb
]:- @celo/[email protected]
- @celo/[email protected]
@celo/[email protected]
Major Changes
-
#340
33ad4aa
Thanks @aaronmgdr! - Removes all exports under the lib/identity folder. These have been move to a new @celo/metadata-claims package and should be imported from there.Note that folder structure is also flattened slightly. so replace
@celo/contractkit/lib/identity/claims/
with@celo/metadata-claims/lib/
example
- import { createAccountClaim } from '@celo/contractkit/lib/identity/claims/account' + import { createAccountClaim } from '@celo/metadata-claims/lib/account'
- import { ContractKit, IdentityMetadataWrapper, newKitFromWeb3 } from '@celo/contractkit' - import { ClaimTypes } from '@celo/contractkit/lib/identity' + import { ContractKit, newKitFromWeb3 } from '@celo/contractkit' + import { ClaimTypes, IdentityMetadataWrapper } from '@celo/metadata-claims'
Note that Contractkit is Not a dependency. Instead when using
IdentityMetadataWrapper
you should make an object that satisfis theAccountMetadataSignerGetters
typeimport { AccountMetadataSignerGetters } from '@celo/metadata-claims/lib/types'
using viem it would be like
const accountsMetaDataSignerGetters: AccountMetadataSignerGetters = { isAccount: async (address: string) => accounts.read.isAccount([address as Address]), getValidatorSigner: async (address: string) => accounts.read.getValidatorSigner([address as Address]), getVoteSigner: async (address: string) => accounts.read.getValidatorSigner([address as Address]), getAttestationSigner: async (address: string) => accounts.read.getValidatorSigner([address as Address]), }
Patch Changes
- Updated dependencies [
4ef76eb
]:- @celo/[email protected]
- @celo/[email protected]
- @celo/[email protected]
- @celo/[email protected]
@celo/[email protected]
Patch Changes
- Updated dependencies [
4ef76eb
]:- @celo/[email protected]
- @celo/[email protected]