github-actions
released this
11 Dec 15:56
·
11 commits
to master
since this release
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]), }
Minor Changes
Patch Changes
-
#475
b366827
Thanks @aaronmgdr! - Publish lib instead of src -
Updated dependencies [
4ef76eb
,26b9779
]:- @celo/[email protected]
- @celo/[email protected]