Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages (beta) #355

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Version Packages (beta) #355

merged 1 commit into from
Oct 14, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Oct 4, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

master is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on master.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

@celo/[email protected]

Major Changes

Patch Changes

@celo/[email protected]

Major Changes

@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 the AccountMetadataSignerGetters type

    import { 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

@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 the AccountMetadataSignerGetters type

    import { 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

@celo/[email protected]

Major Changes

Patch Changes

@celo/[email protected]

Major Changes

Patch Changes

@celo/[email protected]

Patch Changes

@celo/[email protected]

Patch Changes

@celo/[email protected]

Patch Changes

@celo/[email protected]

Patch Changes

@celo/[email protected]

Patch Changes

@celo/[email protected]

Patch Changes

@celo/[email protected]

Patch Changes

@celo/[email protected]

Patch Changes

@celo/[email protected]

Patch Changes

@celo/[email protected]

Patch Changes

@celo/[email protected]

Patch Changes

@celo/[email protected]

Patch Changes

@celo/[email protected]

Patch Changes

@celo/[email protected]

Patch Changes

@celo/[email protected]

Patch Changes

@celo/[email protected]

Patch Changes


PR-Codex overview

This PR focuses on updating various Celo SDK packages to their beta versions, enhancing dependency management and incorporating new features. It includes significant version bumps and updates to changelogs across multiple packages.

Detailed summary

  • Updated @celo/base to 7.0.0-beta.0
  • Updated @celo/connect to 6.0.3-beta.0
  • Updated @celo/utils to 8.0.0-beta.0
  • Updated @celo/dev-utils to 0.0.6-beta.0
  • Added multiple changelog entries for various packages
  • Introduced new @celo/metadata-claims package at 1.0.0-beta.0
  • Updated @celo/contractkit to 9.0.0-beta.0
  • Updated versions in CHANGELOG.md files across several packages

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@github-actions github-actions bot requested a review from a team as a code owner October 4, 2024 07:58
Copy link

codecov bot commented Oct 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.51%. Comparing base (693f6e7) to head (83ca8f5).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #355   +/-   ##
=======================================
  Coverage   67.51%   67.51%           
=======================================
  Files         291      291           
  Lines       10984    10984           
  Branches     1549     1535   -14     
=======================================
  Hits         7416     7416           
+ Misses       3502     3501    -1     
- Partials       66       67    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions github-actions bot force-pushed the changeset-release/master branch from 1486ff1 to f41fa7a Compare October 4, 2024 16:45
@github-actions github-actions bot changed the title Version Packages Version Packages (beta) Oct 9, 2024
@github-actions github-actions bot force-pushed the changeset-release/master branch 2 times, most recently from 392b7d1 to 951c51a Compare October 11, 2024 11:01
@github-actions github-actions bot force-pushed the changeset-release/master branch from 951c51a to 83ca8f5 Compare October 14, 2024 11:27
@aaronmgdr aaronmgdr enabled auto-merge (squash) October 14, 2024 11:34
@aaronmgdr aaronmgdr merged commit 4988c40 into master Oct 14, 2024
21 checks passed
@aaronmgdr aaronmgdr deleted the changeset-release/master branch October 14, 2024 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant