Skip to content

refactor: update contracts library to support viem #3752

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

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

therealemjy
Copy link
Member

@therealemjy therealemjy commented Jan 16, 2025

Changes

  • update contracts library to support viem. I updated two query functions: getCurrentVotes and getAllowance, to showcase how viem can be used. The end goal is to refactor all the query and mutation functions to use viem, so that we can then remove ethers.js from the repository
  • enable batching in wagmi config

Copy link

changeset-bot bot commented Jan 16, 2025

🦋 Changeset detected

Latest commit: 84e686a

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

This PR includes changesets to release 1 package
Name Type
@venusprotocol/evm Minor

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

Copy link

vercel bot commented Jan 16, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
app-alt.venus.io ✅ Ready (Inspect) Visit Preview Jan 17, 2025 10:17am
dapp-preview ✅ Ready (Inspect) Visit Preview Jan 17, 2025 10:17am
dapp-testnet ✅ Ready (Inspect) Visit Preview Jan 17, 2025 10:17am
venus.io ✅ Ready (Inspect) Visit Preview Jan 17, 2025 10:17am

Copy link
Contributor

github-actions bot commented Jan 16, 2025

Coverage Report for ./apps/evm

Status Category Percentage Covered / Total
🔵 Lines 81.78% 41016 / 50149
🔵 Statements 81.78% 41016 / 50149
🔵 Functions 72.34% 952 / 1316
🔵 Branches 89.05% 6087 / 6835
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
apps/evm/src/clients/api/queries/getAllowance/index.ts 100% 100% 100% 100%
apps/evm/src/clients/api/queries/getAllowance/useGetAllowance.ts 0% 0% 0% 0% 1-62
apps/evm/src/clients/api/queries/getAllowance/__tests__/index.spec.ts 100% 100% 100% 100%
apps/evm/src/clients/api/queries/getCurrentVotes/index.spec.ts 100% 100% 100% 100%
apps/evm/src/clients/api/queries/getCurrentVotes/index.ts 100% 100% 100% 100%
apps/evm/src/clients/api/queries/getCurrentVotes/useGetCurrentVotes.ts 0% 0% 0% 0% 1-47
apps/evm/src/libs/contracts/scripts/generateContractRecords/generateContracts/generateAbis/index.ts 100% 100% 100% 100%
apps/evm/src/libs/contracts/scripts/generateContractRecords/generateContracts/generateAbis/__tests__/index.spec.ts 100% 100% 100% 100%
apps/evm/src/libs/contracts/utilities/getUniqueContractAddress/index.ts 100% 100% 100% 100%
apps/evm/src/libs/wallet/Web3Wrapper/config.ts 0% 0% 0% 0% 1-37
Generated in workflow #9832 for commit 84e686a by the Vitest Coverage Report Action

@therealemjy therealemjy merged commit b41947c into main Jan 20, 2025
9 checks passed
@therealemjy therealemjy deleted the refactor/contracts-viem branch January 20, 2025 07:17
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.

2 participants