Skip to content

Commit

Permalink
Indexer endpt
Browse files Browse the repository at this point in the history
  • Loading branch information
philipjames44 committed Mar 5, 2024
1 parent 4189769 commit 717ec21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/constants/configConstants.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
export interface GrpcConfig {
grpcEndpoint: string;
indexerEndpoint: string;
}

const defaultPenumbraGrpcEndpoint = "https://grpc.testnet.penumbra.zone";
const defaultIndexerEndpoint = "postgresql://penumbra:penumbra@db.testnet-preview.penumbra.zone:5432/penumbra?sslmode=disable"

export const testnetConstants: GrpcConfig = {
grpcEndpoint: process.env.PENUMBRA_GRPC_ENDPOINT ? process.env.PENUMBRA_GRPC_ENDPOINT : defaultPenumbraGrpcEndpoint,
indexerEndpoint: process.env.PENUMBRA_INDEXER_ENDPOINT ? process.env.PENUMBRA_INDEXER_ENDPOINT : defaultIndexerEndpoint
};

0 comments on commit 717ec21

Please sign in to comment.