Darwinia Network Documentation

website·Indexed 34 days ago

https://docs.darwinia.network/

Technical documentation for the Darwinia Network, featuring guides on Ethereum compatibility, JSON-RPC APIs, and precompiles. Includes instructions for node operators to run Collator, Archive, and EVM Trace nodes, as well as developer tutorials for interacting with smart contracts using Ethers.js, Web3.js, Hardhat, and Foundry.

Tokens
16.5K
Snippets
75
Records
136
Agent score
65%

What's inside Darwinia

  1. Overview of Envio Indexing Framework

    Envio is a multi-chain EVM blockchain indexing framework optimized for querying real-time and historical data on Darwinia. It consists of two primary components:

    1. HyperIndex: A feature-rich indexing solution that aggregates blockchain data accessible via custom GraphQL queries. It supports indexers written in JavaScript, TypeScript, or ReScript and provides automatic code generation.
    2. HyperSync: A real-time data query layer that bypasses traditional JSON-RPC for up to 1000x faster syncing of historical data. It is used by default in HyperIndex, though RPC remains optional. HyperSync is also available as a standalone API for data analysts using JavaScript, Python, or Rust clients, exporting data in JSON, Arrow, or Parquet formats.
  2. Overview of Foundry tools for Ethereum development

    Foundry is a Rust-based Ethereum development environment used for managing dependencies, compiling projects, running tests, and interacting with blockchains via the command line. It is compatible with the Darwinia Ethereum API.

    Key tools include:

    • Forge: Used for compiling, testing, and deploying contracts.
    • Cast: A CLI for interacting with smart contracts.
    • Anvil: A local TestNet node capable of forking existing networks.
    • Chisel: A Solidity REPL for quick snippet testing.
  3. Overview of the Darwinia Blockchain Network

    Darwinia is a community-run blockchain network focused on enhancing cross-chain capabilities for decentralized applications (dApps), facilitating secure and seamless inter-blockchain transactions.
  4. Overview of the Darwinia Network

    Darwinia is an EVM-compliant network built on the Polkadot framework designed to enhance cross-chain functionalities for decentralized applications. It acts as a bridge between the Polkadot ecosystem (e.g., AssetHub) and the Ethereum ecosystem, integrating with tools like the Helix Bridge and the Msgport protocol to facilitate asset and data movement.
  5. Use Ethereum Precompile Contracts on Darwinia

    Darwinia chains provide full compatibility and access to all standard Ethereum Precompile Contracts. These are built-in smart contracts implemented at a low level in the Ethereum Virtual Machine (EVM) used to perform complex cryptographic operations (such as elliptic curve cryptography and hash functions) more efficiently and securely than native opcodes.
  6. Understand Darwinia Ethereum Compatibility

    Darwinia achieves EVM compatibility via the Polkadot EVM layer known as Frontier. It is designed to maintain opcode compatibility and align with Ethereum innovations to minimize friction for applications migrating from or developed on the Ethereum chain.
  7. Understand the role of Darwinia Collators

    Collators in the Darwinia Network are responsible for block production and ensuring block liveness. They collect transactions from users on the parachain and generate state transition proofs for Relay Chain validators, providing the blocks necessary for finalization on the relay chain.
  8. Understand the transition to Darwinia 2.0

    Darwinia 2.0 was created by merging legacy deployments (solo chains, parachain deployments, and multiple test networks) into a single Darwinia parachain. This merge was designed to simplify the network structure and resolve technical incompatibilities regarding the account system and crypto primitives with Ethereum. Users with accounts in Darwinia 1.0 can migrate their assets to Darwinia 2.0 using the provided migration application.
  9. Interact with Darwinia Conviction Voting via Ethereum

    The Conviction Voting Precompile enables Ethereum users to participate in the Darwinia network's governance processes. This precompile bridges Ethereum-compatible calls to the pallet-conviction-vote module in Substrate, which handles core governance functions such as proposing and retracting votes based on the Polkadot OpenGov framework.
  10. Access Substrate pallet storage via StateStorage precompile

    The state_storage precompile allows EVM contracts on the Darwinia network to access and retrieve data from allowed Substrate pallet storage. While most pallet interactions are handled by dedicated precompiles (e.g., staking or deposit pallets), this general-purpose precompile is used when a contract needs to read data from pallet storage using a specific Substrate storage key.
  11. Understand the role of a Collator in Darwinia

    In the Darwinia network (a Polkadot parachain), block production and chain security are decoupled. While Polkadot manages the security of the parachain's consensus, the Collator is specifically responsible for accepting transactions and producing new blocks.