diff --git a/docs.json b/docs.json index 188f54d2..b68a6089 100644 --- a/docs.json +++ b/docs.json @@ -1471,7 +1471,6 @@ "evm/next/documentation/concepts/transactions", "evm/next/documentation/concepts/predeployed-contracts", "evm/next/documentation/concepts/eip-1559-feemarket", - "evm/next/documentation/concepts/performance", "evm/next/documentation/concepts/precision-handling" ] }, diff --git a/index.mdx b/index.mdx index a162a236..d6565a9d 100644 --- a/index.mdx +++ b/index.mdx @@ -15,27 +15,12 @@ import { TopicCard, TopicCardGrid } from '/snippets/topic-card-component.jsx'; customNavId: 'custom-nav-links', intervalId: null, + // Only style our custom nav here, don't touch Mintlify header/buttons css: \` - .nav-tabs, - div.nav-tabs, - .nav-tabs-item, - button[aria-haspopup="menu"], - button[data-state], - button.group[class*="rounded-full"] { - display: none !important; - visibility: hidden !important; - opacity: 0 !important; - height: 0 !important; - width: 0 !important; - overflow: hidden !important; - position: absolute !important; - left: -9999px !important; - } - #custom-nav-links { position: fixed !important; top: 20px !important; - right: 100px !important; + right: 160px !important; /* space for theme toggle (moon) */ display: flex !important; gap: 24px !important; align-items: center !important; @@ -79,7 +64,6 @@ import { TopicCard, TopicCardGrid } from '/snippets/topic-card-component.jsx'; document.documentElement.scrollTop = 0; document.body.scrollTop = 0; - // Also scroll the main content area if it exists const mainContent = document.querySelector('main'); if (mainContent) mainContent.scrollTop = 0; }, @@ -94,14 +78,11 @@ import { TopicCard, TopicCardGrid } from '/snippets/topic-card-component.jsx'; }, injectCustomNav() { - // Check if already injected if (document.getElementById(this.customNavId)) return; - // Create custom navigation container const navContainer = document.createElement('div'); navContainer.id = this.customNavId; - // Define navigation links const links = [ { label: 'Cosmos SDK', href: '/sdk/' }, { label: 'Cosmos EVM', href: '/evm/' }, @@ -110,7 +91,6 @@ import { TopicCard, TopicCardGrid } from '/snippets/topic-card-component.jsx'; { label: 'Hub', href: '/hub/' } ]; - // Create and append links links.forEach(link => { const anchor = document.createElement('a'); anchor.href = link.href; @@ -122,7 +102,6 @@ import { TopicCard, TopicCardGrid } from '/snippets/topic-card-component.jsx'; navContainer.appendChild(anchor); }); - // Append directly to body (using fixed positioning) document.body.appendChild(navContainer); }, @@ -146,7 +125,6 @@ import { TopicCard, TopicCardGrid } from '/snippets/topic-card-component.jsx'; this.injectCustomNav(); this.scrollToTop(); - // Start monitoring if not already if (!this.intervalId) { this.intervalId = setInterval(() => { if (this.isIndexPage()) { @@ -172,29 +150,24 @@ import { TopicCard, TopicCardGrid } from '/snippets/topic-card-component.jsx'; }, interceptNavigation() { - // Intercept link clicks to manage navigation document.addEventListener('click', (e) => { const link = e.target.closest('a[href]'); if (link && link.href) { const url = new URL(link.href, window.location.href); - // Special handling for logo clicks that should go to index const isLogoLink = link.querySelector('img[alt*="logo"]') || link.textContent.includes('Cosmos Documentation home'); if (isLogoLink && url.pathname === '/') { - // Force navigation to index page e.preventDefault(); window.location.href = '/'; return; } - // If navigating TO index page, ensure scroll to top if (url.pathname === '/' || url.pathname === '/index') { setTimeout(() => this.scrollToTop(), 0); } - // If navigating FROM index page to another page, ensure cleanup if (this.isIndexPage() && url.pathname !== window.location.pathname) { setTimeout(() => this.cleanup(), 0); } @@ -203,18 +176,14 @@ import { TopicCard, TopicCardGrid } from '/snippets/topic-card-component.jsx'; }, init() { - // Initial setup this.manageNavigation(); - // Set up event listeners document.addEventListener('DOMContentLoaded', () => this.manageNavigation()); window.addEventListener('load', () => this.manageNavigation()); window.addEventListener('popstate', () => this.manageNavigation()); - // Intercept navigation this.interceptNavigation(); - // Watch for URL changes (for Mintlify's client-side routing) let lastUrl = window.location.href; const urlObserver = new MutationObserver(() => { if (window.location.href !== lastUrl) { @@ -227,7 +196,6 @@ import { TopicCard, TopicCardGrid } from '/snippets/topic-card-component.jsx'; } }; - // Initialize the navigation manager indexNavManager.init(); })(); ` @@ -235,7 +203,7 @@ import { TopicCard, TopicCardGrid } from '/snippets/topic-card-component.jsx'; /> @@ -413,7 +305,6 @@ import { TopicCard, TopicCardGrid } from '/snippets/topic-card-component.jsx'; background: #000000 !important; } - /* Text colors */ #custom-index-content[data-theme="dark"] .text, #custom-index-content:not([data-theme]) .text { @@ -526,89 +417,134 @@ import { TopicCard, TopicCardGrid } from '/snippets/topic-card-component.jsx';
+
The most widely-adopted and battle-tested Layer 1 blockchain technology stack, in production with 200+ chains today.
- The Cosmos stack is the most widely-adopted and battle-tested Layer 1 blockchain technology stack, in production with 200+ chains today. It is performant, customizable, and EVM-compatible, offering engineers full end-to-end control of their blockchain infrastructure and implementation. +
++ The Cosmos stack is the most widely-adopted and battle-tested Layer 1 blockchain technology stack, in production with{' '} + 200+ chains today. It is performant, customizable, and EVM-compatible, offering engineers full + end-to-end control of their blockchain infrastructure and implementation.
-- The stack is modular by design — leverage pre-existing core components and integrate custom features and logic for your use case, compliance needs, governance, consensus, and performance requirements. This documentation explains the open-source stack components: Cosmos SDK, Cosmos EVM, IBC, and CometBFT. +
+ The stack is modular by design — leverage pre-existing core components and integrate custom features and logic for your + use case, compliance needs, governance, consensus, and performance requirements. This documentation explains the + open-source stack components: Cosmos SDK, Cosmos EVM, IBC, and{' '} + CometBFT.
- Explore the modular components that make up the Cosmos stack. Each component is optional, provides specific functionality and can be customized for your use case. +
++ Explore the modular components that make up the Cosmos stack. Each component is optional, provides specific functionality + and can be customized for your use case.
- The Cosmos SDK is a modular, open-source blockchain SDK for building secure, high-performance Layer 1 chains with full customizability. Developers can use the Cosmos SDK to easily and quickly spin up custom blockchains that can natively interoperate via a native integration with the Inter-Blockchain Communication Protocol. +
+ The Cosmos SDK is a modular, open-source blockchain SDK for building secure, high-performance Layer 1 chains with full + customizability. Developers can use the Cosmos SDK to easily and quickly spin up custom blockchains that can natively + interoperate via a native integration with the Inter-Blockchain Communication Protocol.
-- The Cosmos SDK is tailored for building secure, sovereign application-specific blockchains. Developers building with the Cosmos SDK can use predefined modules that cover standard blockchain functionality or create custom modules for their specific use case. This composable architecture enables robust customization. The SDK provides abstractions for permissioning, governance, state management, account abstraction, tokenization processes, application logic, and more. +
+ The Cosmos SDK is tailored for building secure, sovereign application-specific blockchains. Developers building with the + Cosmos SDK can use predefined modules that cover standard blockchain functionality or{' '} + create custom modules for their specific use case. This composable architecture enables robust + customization. The SDK provides abstractions for permissioning, governance, state management, account abstraction, + tokenization processes, application logic, and more.
- Cosmos EVM is a plug-and-play solution that adds EVM compatibility and customizability to Cosmos SDK chains. It provides complete Ethereum capabilities: Solidity smart contracts, Ethereum JSON-RPC, native support for the EVM wallet/token/user experience, and access to the entire Ethereum developer ecosystem. Its precompiles and extensions allow developers to leverage modules like IBC within the EVM and get native ERC-20 support for tokens on Cosmos. It can run any valid smart contract from Ethereum and also implement new features that are not yet available on the standard Ethereum VM. +
+ Cosmos EVM is a plug-and-play solution that adds EVM compatibility and customizability to Cosmos SDK chains. It provides + complete Ethereum capabilities: Solidity smart contracts, Ethereum JSON-RPC, native support for the EVM + wallet/token/user experience, and access to the entire Ethereum developer ecosystem. Its precompiles and + extensions allow developers to leverage modules like IBC within the EVM and get native ERC-20 support for + tokens on Cosmos. It can run any valid smart contract from Ethereum and also implement new features that are not yet + available on the standard Ethereum VM.
- The Inter-Blockchain Communication protocol (IBC) is a blockchain interoperability solution that allows blockchains to talk to each other. Blockchains that speak IBC can transfer any kind of data encoded in bytes—including tokens, messages, and arbitrary application logic. IBC is secure, permissionless, and designed to connect sovereign blockchains into a single interoperable network. +
+ The Inter-Blockchain Communication protocol (IBC) is a blockchain interoperability solution that allows blockchains to + talk to each other. Blockchains that speak IBC can transfer any kind of data encoded in bytes—including tokens, + messages, and arbitrary application logic. IBC is secure, permissionless, and designed to connect sovereign + blockchains into a single interoperable network.
- CometBFT is the most widely-adopted, battle-tested consensus engine in blockchain. It is a Byzantine Fault Tolerant (BFT) middleware that takes a state transition machine—written in any programming language—and securely replicates it on many machines. +
+ CometBFT is the most widely-adopted, battle-tested consensus engine in blockchain. It is a Byzantine Fault + Tolerant (BFT) middleware that takes a state transition machine—written in any programming language—and securely + replicates it on many machines.
-- CometBFT is highly performant and achieves speeds of up to 10,000 transactions per second (TPS). Its flagship feature, ABCI++, enables developers to add programmability and customization to every step of the consensus engine. Developers can use CometBFT for BFT state machine replication of applications written in any programming language and development environment. It is a fork of Tendermint. +
+ CometBFT is highly performant and achieves speeds of up to 10,000 transactions per second (TPS). Its + flagship feature, ABCI++, enables developers to add programmability and customization to every step of + the consensus engine. Developers can use CometBFT for BFT state machine replication of applications written in any + programming language and development environment. It is a fork of Tendermint.
- Cosmos Labs maintains the core components of the stack: Cosmos SDK, CometBFT, IBC, Cosmos EVM, and various developer tools and frameworks. In addition to developing and maintaining the Cosmos Stack, Cosmos Labs provides advisory and engineering services for blockchain solutions. +
+ ++ Cosmos Labs maintains the core components of the stack: Cosmos SDK, CometBFT, IBC, Cosmos EVM, and + various developer tools and frameworks. In addition to developing and maintaining the Cosmos Stack, Cosmos Labs provides + advisory and engineering services for blockchain solutions.
-- Cosmos Labs is a wholly-owned subsidiary of the Interchain Foundation, the Swiss nonprofit responsible for treasury management, funding public goods, and supporting governance for Cosmos. +
+ + Cosmos Labs + {' '} + is a wholly-owned subsidiary of the{' '} + + Interchain Foundation + + , the Swiss nonprofit responsible for treasury management, funding public goods, and supporting governance for Cosmos.
-+
The Cosmos Stack is supported by a global community of open-source contributors.