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

cloud_functions: update wormchain rpcs #171

Merged
merged 1 commit into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cloud_functions/src/computeTvlTvm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import { assertEnvironmentVariable } from './utils';
import { TokenPrice } from '@wormhole-foundation/wormhole-monitor-database';
import { Firestore } from 'firebase-admin/firestore';

const WORMCHAIN_URL: string = 'https://wormchain.jumpisolated.com';
const WORMCHAIN_URL: string = 'https://tncnt-eu-wormchain-main-01.rpc.p2p.world';
// If for some reason the above URL is not working, use this one:
// const WORMCHAIN_URL: string = 'https://wormchain-rpc.quickapi.com';
// In the future add the ability to have multiple URLs and try them all until one works.
const ACCOUNTANT_CONTRACT_ADDRESS: string =
'wormhole14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9srrg465';
const PAGE_LIMIT: number = 2000; // throws a gas limit error over this
Expand Down
1 change: 1 addition & 0 deletions cloud_functions/src/wormchainMonitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type RetrievedInfo = {

const WormchainRPCs: ClientRPC[] = [
{ address: 'https://wormchain-lcd.quickapi.com/', provider: 'ChainLayer' },
{ address: 'https://tncnt-eu-wormchain-main-01.rpc.p2p.world/lcd/', provider: 'P2P' },
];
const CLIENT_STATE_QUERY: string = 'ibc/core/client/v1/client_states/';
const BLOCK_QUERY: string = 'cosmos/base/tendermint/v1beta1/blocks/';
Expand Down