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: add pragma devnet chain to explorer #426

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion pragma-ui/src/components/common/NetworkSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Listbox, Transition } from "@headlessui/react";
import Image from "next/image";

const NetworkSelection = ({ setNetwork }) => {
const NETWORKS = ["sepolia", "mainnet"];
const NETWORKS = ["sepolia", "mainnet","pragmaDevnet"];
const [definedNetwork, setDefinedNetwork] = useState<string>("sepolia");

const setConfigurationNetwork = (network) => {
Expand Down
1 change: 1 addition & 0 deletions pragma-ui/src/providers/data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const DataContext = createContext<DataContextType | undefined>(undefined);
export const dataSources = {
sepolia: "/api/onchain?network=sepolia",
mainnet: "/api/onchain?network=mainnet",
pragmaDevnet: "/api/onchain?network=pragma_devnet",
offchain: "/api/proxy",
publishersSepolia: "/api/publishers?network=sepolia&dataType=spot_entry",
publishersMainnet: "/api/publishers?network=mainnet&dataType=spot_entry",
Expand Down