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(providers): updating Pokt endpoint #479

Merged
merged 1 commit into from
Jan 22, 2024
Merged

Conversation

geekbrother
Copy link
Contributor

Description

The Pokt provider announced changing the endpoint:

Any traffic sent through the new endpoint path is not impacted. The RPC endpoint paths have changed from, https://{chain}.gateway.pokt.network/v1/lb/{app_id} to https://{chain}.rpc.grove.city/v1/{app_id}. The old paths will remain functional until February 01, 2024. 

This PR implements changes according to the new provider changes and adds minor fixes.

Resolves #461

How Has This Been Tested?

Functional (integration) tests for the provider and used chains.

Due Diligence

  • Breaking change
  • Requires a documentation update
  • Requires a e2e/integration test update

@@ -13,6 +13,7 @@ Chain name with associated `chainId` query param to use.
- Arbitrum Goerli (`eip155:421613`)
- Polygon (`eip155:137`)
- Polygon Mumbai (`eip155:80001`)
- Polygon Zkevm (`eip155:1101`)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We forgot to add it to the list despite we were supporting it for at least 7 months.

// Weight::new(Priority::Normal).unwrap(),
// ),
// ),
// AVAX mainnet
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know why this was commented, but we are supporting eip155:43114 in other providers as well as Grove/Pokt supports it.

@@ -76,10 +76,6 @@ fn default_supported_chains() -> HashMap<String, (String, Weight)> {
"eip155:5".into(),
("eth-goerli".into(), Weight::new(Priority::Normal).unwrap()),
),
(
Copy link
Contributor Author

@geekbrother geekbrother Jan 17, 2024

Choose a reason for hiding this comment

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

Is not supported by Pokt/Grove anymore https://docs.grove.city/guides/getting-started/supported-blockchains.
We don't need to remove it from the supported list because it's supported by Infura.

// Binance mainnet
check_if_rpc_is_responding_correctly_for_supported_chain(ctx, "eip155:56", "0x38").await;

// Gnosis
check_if_rpc_is_responding_correctly_for_supported_chain(ctx, "eip155:100", "0x64").await
// Ethereum
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adding missing tests for supported chains.

@geekbrother geekbrother marked this pull request as ready for review January 17, 2024 11:35
@geekbrother geekbrother requested a review from xav as a code owner January 17, 2024 11:35
@geekbrother geekbrother merged commit 6fa8672 into master Jan 22, 2024
12 checks passed
@geekbrother geekbrother deleted the fix/new_pokt_endpoints branch January 22, 2024 13:37
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.

fix: change the Pokt provider rpc endpoint
2 participants