### Quickstart: Fetch Price Data Source: https://context7_llms Guide on integrating token price feeds using DIA's Push or Pull oracles. ```javascript _jsx(Card, { title: "Fetch Price Data", icon: "rocket", iconType: "solid", href: "/how-to-guides/fetch-price-data", children: _jsx(_components.p, { children: "Integrate token price feeds with Push or Pull oracles." }) }) ``` -------------------------------- ### Quickstart: Migrate from Chainlink Source: https://context7_llms Guidance on switching to DIA-compatible oracles with minimal code changes. ```javascript _jsx(Card, { title: "Migrate from Chainlink", icon: "repeat", iconType: "solid", href: "/nexus/how-to-guides/migrate-to-dia#migrate-to-dia", children: _jsx(_components.p, { children: "Switch to DIA-compatible oracles with minimal code chang" }) }) ``` -------------------------------- ### Quickstart: Fund an Oracle Source: https://context7_llms Learn the process of funding DIA's gas wallet to enable oracle updates. ```javascript _jsx(Card, { title: "Fund an Oracle", icon: "wallet", iconType: "solid", href: "/nexus/how-to-guides/fund-the-oracle", children: _jsx(_components.p, { children: "Learn how to fund DIA’s gas wallet to enable oracle updates." }) }) ``` -------------------------------- ### DIA Oracle How-To Guides Source: https://context7_llms This snippet details several how-to guides for interacting with DIA oracles. It covers adding verifiable randomness, funding the oracle's gas wallet, and migrating from Chainlink oracles with minimal code changes. ```javascript { title: "Add Verifiable Randomness", icon: "dice-d6", iconType: "solid", href: "/nexus/how-to-guides/add-verifiable-randomness", children: _jsx(_components.p, { children: "Add verifiable randomness to your smart contracts with xRandom." }) }, { title: "Fund an Oracle", icon: "wallet", iconType: "solid", href: "/nexus/how-to-guides/fund-the-oracle", children: _jsx(_components.p, { children: "Learn how to fund DIA’s gas wallet to enable oracle updates." }) }, { title: "Migrate from Chainlink", icon: "repeat", iconType: "solid", href: "/nexus/how-to-guides/migrate-to-dia#migrate-to-dia", children: _jsx(_components.p, { children: "Switch to DIA-compatible oracles with minimal code changes." }) } ``` -------------------------------- ### DIA Oracles Content Sections Source: https://context7_llms This snippet demonstrates the structure for content sections on the DIA Oracles documentation site, including descriptive text about DIA, its oracle stacks (Lumina and Nexus), and links to API references and quickstart guides. It uses custom components like CardGroup and Card, rendered with JSX. ```jsx _jsxs("div", { className: "prose prose-lg dark:prose-invert mint-max-w-6xl mint-mx-auto mint-px-5 mint-py-12", children: [_jsx("h2", { children: "What is DIA" }), _jsx("p", { children: _jsx(_components.p, { children: _jsx(_components.strong, { children: "DIA is a trustless oracle provider that delivers data feeds for tokens, LSTs, RWAs, randomness, and more to any blockchain." }) }) }), _jsx("p", { children: _jsx(_components.p, { children: "Unlike traditional oracles that rely on opaque third-party data, DIA takes a novel approach, sourcing data directly from its origin. This ensures full transparency, complete customization, and support for any data type across ecosystems." }) }), _jsx("p", { children: _jsx(_components.p, { children: "With integrations with 100+ data sources, support for 60+ blockchains, and powering over 200 dApps, DIA continues to scale its network while empowering Web3 ecosystems to thrive." }) }), _jsx("h2", { children: "Choose a Stack" }), _jsx("p", { children: _jsx(_components.p, { children: "DIA currently offers two oracle stacks. Select the one that fits your integration needs:" }) }), _jsxs(CardGroup, { cols: 2, children: [_jsx(Card, { title: "Lumina", icon: "bolt", iconType: "solid", href: "/lumina", children: _jsx(_components.p, { children: "DIA’s next-gen trustless oracles. Fully onchain computed on DIA’s Lasernet L2. Supports Push & Pull oracles." }) }), _jsx(Card, { title: "Nexus", icon: "layer-group", iconType: "solid", href: "/nexus", children: _jsx(_components.p, { children: "DIA’s classic oracle stack, in production since 2020. Includes price feeds, randomness, and fair-value feeds." }) })] }), _jsx("div", { className: "mint-mt-6", children: _jsx(CardGroup, { cols: 1, children: _jsx(Card, { title: "API Reference", icon: "magnifying-glass-chart", iconType: "solid", href: "/reference/apis", children: _jsx(_components.p, { children: "Power your off-chain application with DIA’s API feeds (Rest and GraphQL)." }) }) }) }), _jsx("h2", { children: "Quickstarts" }), _jsxs(CardGroup, { cols: 2, children: [_jsx(Card, { title: "Fetch Price Data", icon: "rocket", iconType: "solid", href: "/how-to-guides/fetch-price-data", children: _jsx(_components.p, { children: "Integrate token price feeds with Push or Pull oracles." }) }), _jsx(Card, { title: "Generate Randomness", icon: "shuffle", iconType: "solid", href: "/nexus/how-to/generate-randomness/solidity", ``` -------------------------------- ### Quickstart: Generate Randomness Source: https://context7_llms Instructions for adding verifiable randomness to smart contracts using DIA's xRandom feature. ```javascript _jsx(Card, { title: "Generate Randomness", icon: "shuffle", iconType: "solid", href: "/nexus/how-to/generate-randomness/solidity", children: _jsx(_components.p, { children: "Add verifiable randomness to your smart contracts with xRandom." }) }) ``` -------------------------------- ### Responsive CSS Classes (Small Screens) Source: https://context7_llms CSS classes that apply styles for screen sizes starting from 640px (sm breakpoint). ```css @media (min-width: 640px) { .sm\:mint-max-w-\[80\%\] { max-width: 80% } .sm\:mint-px-6 { padding-left: 1.5rem; padding-right: 1.5rem } .sm\:mint-text-4xl { font-size: 2.25rem; line-height: 2.5rem } .sm\:mint-text-lg { font-size: 1.125rem; line-height: 1.75rem } .sm\:mint-leading-tight { line-height: 1.25 } } ``` -------------------------------- ### Initialize LocalStorageAndAnalyticsProviders Source: https://context7_llms This JavaScript snippet initializes the LocalStorageAndAnalyticsProviders within the application. It lists the associated JavaScript chunks required for its functionality, indicating a part of the application's client-side setup. ```javascript self.__next_f.push([1,"2d:I[71476,[\"3473\",\"static/chunks/891cff7f-2ca7d0df884db9d0.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"4129\",\"static/chunks/7bf36345-5ba13855b95a82b2.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"1725\",\"static/chunks/d30757c7-56ff534f625704fe.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"803\",\"static/chunks/cd24890f-549fb4ba2f588ca6.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"7261\",\"static/chunks/7261-2b892dc828f6e161.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"3892\",\"static/chunks/3892-251b69e2384ed286.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"7417\",\"static/chunks/7417-548f041b716e378a.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"1953\",\"static/chunks/1953-639d64e349958881.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"9095\",\"static/chunks/9095-5e8c25cebc4b2bd6.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"9779\",\"static/chunks/9779-7bb45d52151006b8.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"3619\",\"static/chunks/3619-2c24842c619fda67.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"2398\",\"static/chunks/2398-3c77a562bc9286bb.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"1862\",\"static/chunks/1862-d7c7b8aab3b4ffe6.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"2755\",\"static/chunks/2755-e2a765a591a8496d.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"1350\",\"static/chunks/1350-743c71d7707cb6c1.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"5456\",\"static/chunks/app/%255Fsites/%5Bsubdomain%5D/(multitenant)/layout-b596e085fd7c2d45.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\"],\"LocalStorageAndAnalyticsProviders\",1]\n"]) ``` -------------------------------- ### Responsive CSS Classes (Medium Screens) Source: https://context7_llms CSS classes that apply styles for screen sizes starting from 768px (md breakpoint). ```css @media (min-width: 768px) { .md\:mint-h-\[26rem\] { height: 26rem } .md\:mint-max-w-\[70\%\] { max-width: 70% } .md\:mint-px-8 { padding-left: 2rem; padding-right: 2rem } .md\:mint-text-5xl { font-size: 3rem; line-height: 1 } .md\:mint-text-xl { font-size: 1.25rem; line-height: 1.75rem } .md\:mint-leading-\[1\.2\] { line-height: 1.2 } } ``` -------------------------------- ### Responsive CSS Classes (Large Screens) Source: https://context7_llms CSS classes that apply styles for screen sizes starting from 1024px (lg breakpoint). ```css @media (min-width: 1024px) { .lg\:mint-flex { display: flex } .lg\:mint-max-w-\[60\%\] { max-width: 60% } .lg\:mint-text-6xl { font-size: 3.75rem; line-height: 1 } } ``` -------------------------------- ### Initialize SearchProvider Source: https://context7_llms This JavaScript snippet initializes the SearchProvider for the application. It lists the necessary JavaScript chunks, suggesting its role in handling search-related functionalities and data fetching. ```javascript self.__next_f.push([1,"2e:I[46826,[\"3473\",\"static/chunks/891cff7f-2ca7d0df884db9d0.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"4129\",\"static/chunks/7bf36345-5ba13855b95a82b2.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"1725\",\"static/chunks/d30757c7-56ff534f625704fe.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"803\",\"static/chunks/cd24890f-549fb4ba2f588ca6.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"7261\",\"static/chunks/7261-2b892dc828f6e161.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"3892\",\"static/chunks/3892-251b69e2384ed286.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"7417\",\"static/chunks/7417-548f041b716e378a.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"1953\",\"static/chunks/1953-639d64e349958881.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"9095\",\"static/chunks/9095-5e8c25cebc4b2bd6.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"9779\",\"static/chunks/9779-7bb45d52151006b8.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"3619\",\"static/chunks/3619-2c24842c619fda67.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"2398\",\"static/chunks/2398-3c77a562bc9286bb.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"1862\",\"static/chunks/1862-d7c7b8aab3b4ffe6.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"2755\",\"static/chunks/2755-e2a765a591a8496d.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"1350\",\"static/chunks/1350-743c71d7707cb6c1.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\",\"5456\",\"static/chunks/app/%255Fsites/%5Bsubdomain%5D/(multitenant)/layout-b596e085fd7c2d45.js?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df\"],\"SearchProvider\",1]\n"]) ``` -------------------------------- ### External CSS and Font Loading Source: https://context7_llms Includes links to external CSS files and font resources, such as KaTeX for mathematical typesetting. These are loaded via `` tags in the HTML head, ensuring necessary styles and fonts are available. ```APIDOC ExternalResources: - type: "stylesheet" href: "/docs/_next/static/css/2f58f4c3f6239c10.css?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df" precedence: "next" - type: "stylesheet" href: "/docs/_next/static/css/f61b4e54ca51c353.css?dpl=dpl_4cvasEmnnmTHoUNUH6upjSUH65df" precedence: "next" - type: "stylesheet" href: "https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css" integrity: "sha384-Xi8rHCmBmhbuyyhbI88391ZKP2dmfnOl4rT9ZfRI7mLTdk1wblIUnrIq35nqwEvC" crossOrigin: "anonymous" ``` -------------------------------- ### DIA Oracles Documentation Configuration Source: https://context7_llms This snippet represents the configuration object used to build the DIA Oracles documentation website. It defines the site's appearance, navigation, and content organization using a structured format. ```javascript self.__next_f.push([1,"13:[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$1f\",null,{\"fallback\":null,\"children\":\"$L20\"}]}]}]]])\n"])<\/script>