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

feat: create reusable chains package #3562

Merged
merged 2 commits into from
Dec 6, 2024
Merged

feat: create reusable chains package #3562

merged 2 commits into from
Dec 6, 2024

Conversation

therealemjy
Copy link
Member

@therealemjy therealemjy commented Nov 25, 2024

Changes

  • create reusable chains package
  • update environment variables used for subgraph URLs so that only keys for third-party services are included
  • move codegen config to src directory and rename it codegen.config.ts

Copy link

changeset-bot bot commented Nov 25, 2024

🦋 Changeset detected

Latest commit: 3c8d00f

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 Nov 25, 2024

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 Dec 4, 2024 2:16pm
dapp-preview ✅ Ready (Inspect) Visit Preview Dec 4, 2024 2:16pm
dapp-testnet ✅ Ready (Inspect) Visit Preview Dec 4, 2024 2:16pm
venus.io ✅ Ready (Inspect) Visit Preview Dec 4, 2024 2:16pm

Copy link
Contributor

github-actions bot commented Nov 25, 2024

Coverage Report for ./apps/evm

Status Category Percentage Covered / Total
🔵 Lines 83.25% 44842 / 53861
🔵 Statements 83.25% 44842 / 53861
🔵 Functions 73.17% 985 / 1346
🔵 Branches 88.99% 6268 / 7043
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
apps/evm/src/clients/api/queries/getProposal/useGetProposal.ts 0% 0% 0% 0% 1-86
apps/evm/src/clients/api/queries/getProposalState/useGetProposalState.ts 0% 0% 0% 0% 1-46
apps/evm/src/clients/api/queries/getProposals/index.ts 100% 76.47% 100% 100%
apps/evm/src/clients/api/queries/getProposals/useGetProposals.ts 0% 0% 0% 0% 1-96
apps/evm/src/clients/api/queries/getVenusVaiVaultDailyRate/index.spec.ts 100% 100% 100% 100%
apps/evm/src/clients/subgraph/queries/isolatedPools/getIsolatedPoolParticipantsCount/index.ts 28.57% 100% 0% 28.57% 12-16
apps/evm/src/clients/subgraph/utilities/formatToProposal/index.ts 90.9% 35.13% 100% 90.9% 97-102, 105-106, 144-146, 163, 182, 185, 188, 215
apps/evm/src/clients/subgraph/utilities/formatToProposal/formatToRemoteProposal/index.ts 96.77% 97.14% 100% 96.77% 53-55
apps/evm/src/clients/subgraph/utilities/formatToProposal/formatToRemoteProposal/getRemoteProposalState/index.ts 100% 100% 100% 100%
apps/evm/src/clients/subgraph/utilities/formatToProposal/formatToRemoteProposal/getRemoteProposalState/__tests__/index.spec.ts 100% 100% 100% 100%
apps/evm/src/config/envVariables.ts 81.48% 0% 100% 81.48% 14, 18, 22, 26, 30
apps/evm/src/config/index.ts 100% 0% 100% 100%
apps/evm/src/config/rpcUrls.ts 100% 100% 100% 100%
apps/evm/src/config/subgraphUrls.ts 100% 100% 100% 100%
apps/evm/src/constants/governance.ts 100% 100% 100% 100%
apps/evm/src/containers/ConnectWallet/index.tsx 100% 100% 100% 100%
apps/evm/src/containers/Layout/Header/TopBar/ChainSelect/index.tsx 100% 87.5% 100% 100%
apps/evm/src/hooks/useGetChainMetadata/index.tsx 100% 100% 100% 100%
apps/evm/src/hooks/useGetChainMetadata/__tests__/index.spec.tsx 100% 100% 100% 100%
apps/evm/src/libs/wallet/chains.ts 96.29% 50% 100% 96.29% 40
apps/evm/src/libs/wallet/Web3Wrapper/config.ts 0% 0% 0% 0% 1-30
apps/evm/src/pages/Account/Settings/index.tsx 0% 0% 0% 0% 1-44
apps/evm/src/pages/Bridge/ChainSelect/index.tsx 100% 100% 100% 100%
apps/evm/src/pages/Bridge/__tests__/index.spec.tsx 100% 100% 100% 100%
apps/evm/src/pages/IsolatedPools/PoolTable/index.spec.tsx 100% 100% 100% 100%
apps/evm/src/pages/Proposal/Commands/BscCommand/index.tsx 94.2% 84.21% 100% 94.2% 54-57
apps/evm/src/pages/Proposal/Commands/Command/index.tsx 100% 100% 50% 100%
apps/evm/src/pages/Proposal/Commands/NonBscCommand/index.tsx 95.29% 90.9% 100% 95.29% 46-47, 55-56
apps/evm/src/types/index.ts 100% 100% 100% 100%
apps/evm/src/utilities/generateExplorerUrl.ts 72.22% 33.33% 50% 72.22% 13-15, 25-26
apps/evm/src/utilities/getProposalState/index.ts 100% 100% 100% 100%
apps/evm/src/utilities/getProposalState/__tests__/index.spec.ts 100% 100% 100% 100%
Generated in workflow #9587 for commit 3c8d00f by the Vitest Coverage Report Action

@therealemjy
Copy link
Member Author

therealemjy commented Dec 4, 2024

Note for later: before merging this PR, the BSC governance subgraph URL needs to be updated to the latest deployment (once published).

@therealemjy therealemjy merged commit 7f5455a into main Dec 6, 2024
9 checks passed
@therealemjy therealemjy deleted the feat/chains-package branch December 6, 2024 14:29
therealemjy added a commit that referenced this pull request Dec 6, 2024
* feat: create reusable chains package

* feat: remove RPC and subgraph URLs from chains package
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