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: replace RPC provider from Alchemy to Infura DIN #451

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

khanti42
Copy link
Collaborator

@khanti42 khanti42 commented Dec 5, 2024

This PR is to replace the Alchemy RPC provider by Infura DIN one.

The required changes in the CI/CD workflow will happen elsewhere.

@khanti42 khanti42 requested a review from a team as a code owner December 5, 2024 11:53
@khanti42 khanti42 requested review from Akaryatrh and stanleyyconsensys and removed request for a team December 5, 2024 11:53
packages/starknet-snap/package.json Show resolved Hide resolved
packages/starknet-snap/src/utils/din.test.ts Outdated Show resolved Hide resolved
packages/starknet-snap/src/utils/din.ts Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Dec 11, 2024

Quality Gate Passed Quality Gate passed for 'consensys_starknet-snap-wallet-ui'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

Copy link

sonarcloud bot commented Dec 11, 2024

Quality Gate Passed Quality Gate passed for 'consensys_starknet-snap-starknet-snap'

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
33.3% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

Copy link
Collaborator

@stanleyyconsensys stanleyyconsensys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, just 1 nit comment

import { getRPCUrl } from './rpc-provider';

describe('getRPCUrl', () => {
Config.rpcApiKey = 'test';
Copy link
Collaborator

@stanleyyconsensys stanleyyconsensys Dec 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Config.rpcApiKey = 'test';
beforeEach(function () {
Config.rpcApiKey = 'API_KEY';
});
afterEach(function () {
Config.rpcApiKey = undefined
});

reset it, in case you have some unexpected behaviour (the way using before and after is not suggest by MM, but i think it is okay for that case)

@stanleyyconsensys stanleyyconsensys changed the title feat: replace alchemy by infura din feat: replace RPC provider from Alchemy to Infura DIN Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants