Skip to content

Commit

Permalink
cloud_function: add another endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
panoel committed Dec 21, 2023
1 parent ba48f56 commit d0a60bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cloud_functions/src/computeTvlTvm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import { TokenPrice } from '@wormhole-foundation/wormhole-monitor-database';
import { Firestore } from 'firebase-admin/firestore';

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

0 comments on commit d0a60bf

Please sign in to comment.