celo-org / social-connect

Protocol mapping social identifiers to blockchain addresses
https://socialconnect.xyz
Apache License 2.0
7 stars 7 forks source link

Migrate From ContractKit to Viem #294

Open aaronmgdr opened 1 month ago

aaronmgdr commented 1 month ago

Description

Rather than use ContractKit use viem as the rpc caller / contracts library.

Changes

Tested

Needs someone who understand the system really well to really test it out.

TODO

dont merge until we get this deployed to staging.

Related issues

Backwards compatibility

No. This is a Major Change

Documentation

documented in changesets the differences

changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: 1f8fb50ff32a99541fa638456b5fbec47a529080

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages | Name | Type | | ----------------------------------- | ----- | | @celo/phone-number-privacy-monitor | Major | | @celo/phone-number-privacy-combiner | Major | | @celo/identity | Major | | @celo/encrypted-backup | Patch | | @celo/phone-number-privacy-common | Major | | @celo/phone-number-privacy-signer | Major | | odis-example-scripts | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

gitguardian[bot] commented 1 month ago

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | | | -------------- | ------------------ | ------------------------------ | ---------------- | --------------- | -------------------- | | [10990680](https://dashboard.gitguardian.com/workspace/286247/incidents/10990680?occurrence=164141646) | Triggered | Generic High Entropy Secret | 4a7b2c89a3d73f31a93b4f990642f4f3e83a5394 | packages/common/src/test/values.ts | [View secret](https://github.com/celo-org/social-connect/commit/4a7b2c89a3d73f31a93b4f990642f4f3e83a5394#diff-aa6f35428977e8794b45db673f986523b391c1591bb387ba55a99eb118971e86L7) |
🛠 Guidelines to remediate hardcoded secrets
1. Understand the implications of revoking this secret by investigating where it is used in your code. 2. Replace and store your secret safely. [Learn here](https://blog.gitguardian.com/secrets-api-management?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) the best practices. 3. Revoke and [rotate this secret](https://docs.gitguardian.com/secrets-detection/secrets-detection-engine/detectors/generics/generic_high_entropy_secret#revoke-the-secret?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). 4. If possible, [rewrite git history](https://blog.gitguardian.com/rewriting-git-history-cheatsheet?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data. To avoid such incidents in the future consider - following these [best practices](https://blog.gitguardian.com/secrets-api-management/?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) for managing and storing secrets including API keys and other credentials - install [secret detection on pre-commit](https://docs.gitguardian.com/ggshield-docs/integrations/git-hooks/pre-commit?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) to catch secret before it leaves your machine and ease remediation.

🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

socket-security[bot] commented 1 month ago

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@celo/contractkit@8.3.0 filesystem, network +5 5.28 MB app-tooling
npm/viem@2.21.14 network Transitive: environment, filesystem +17 20.9 MB jmoxey

View full report↗︎