Skip to content

alleslabs/celatone-frontend

Folders and files

NameName
Last commit message
Last commit date
Sep 11, 2024
Jan 11, 2024
Sep 17, 2024
Jan 11, 2024
Mar 7, 2025
Mar 18, 2025
Dec 9, 2022
Feb 19, 2025
Feb 25, 2025
Jun 18, 2024
Dec 9, 2022
Dec 9, 2022
Dec 9, 2022
Mar 18, 2025
Feb 16, 2023
Mar 11, 2025
Dec 9, 2022
Sep 19, 2023
Jan 12, 2023
Jan 11, 2024
Jan 9, 2025
Dec 9, 2022
Mar 12, 2025
Mar 18, 2025
Mar 17, 2025
Dec 9, 2022
Jul 8, 2024
Jul 8, 2024
Feb 6, 2023
Jul 8, 2024
Jul 31, 2024

Repository files navigation

Scan Frontend

An explorer for a CosmWasm-powered Cosmos ecosystem.

Development

Stack

The Scan frontend uses the following technologies:

Prerequisites

  1. Node.js (version >= 20) or using node version manager nvm (recommended, installation guide for nvm here).

Develop

  1. Clone the project either using the standard Git CLI or the GitHub gh CLI
# Git CLI
git clone https://github.com/alleslabs/celatone-frontend
# gh CLI
gh repo clone alleslabs/celatone-frontend
  1. Install the dependencies
# Navigate to the cloned repository
cd celatone-frontend
# Install dependencies
pnpm i
  1. Create a .env.local file in the root of the project and add the following environment variables
# The mnemonic of the wallet that will be used for estimate gas fees
NEXT_PUBLIC_DUMMY_MNEMONIC="your mnemonic here"
NEXT_PUBLIC_SUPPORTED_NETWORK_TYPES=local,devnet,testnet,mainnet
NEXT_PUBLIC_CHAIN=<chain-name>
NEXT_PUBLIC_CELATONE_API_OVERRIDE=http://localhost:8080
  1. Finally, run the development server
pnpm dev

The website will then be live on http://localhost:3000

Running Local

  1. Modify a devChainConfigs.ts under src/config/chain by adding your own chain config
{
    tier: "lite",
    chainId: "localinitia",
    chain: "localinitia",
    registryChainName: "localinitia",
    prettyName: "Local Initia",
    rest: "http://localhost:1317",
    rpc: "http://localhost:26657",
    wallets: ["keplr"], // keplr, compass, station
    features: {
      faucet: {
        enabled: false,
      },
      wasm: {
        enabled: false,
      },
      move: {
        enabled: true,
        moduleMaxFileSize: 1_048_576,
      },
      pool: {
        enabled: false,
      },
      publicProject: {
        enabled: false,
      },
      gov: {
        enabled: true,
        version: "v1",
        hideOpenProposal: true,
      },
      nft: {
        enabled: false,
      },
    },
    gas: {
      gasAdjustment: 1.5,
      maxGasLimit: 200_000_000,
    },
    extra: {
      layer: "1",
    },
    network_type: "testnet",
    logo_URIs: {
      png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.png",
      svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.svg",
    },
    fees: {
      fee_tokens: [
        {
          denom: "uinit",
          fixed_min_gas_price: 0.15,
          low_gas_price: 0.15,
          average_gas_price: 0.15,
          high_gas_price: 0.4,
        },
      ],
    },
    registry: {
      bech32_prefix: "init",
      slip44: 118,
      staking: {
        staking_tokens: [
          {
            denom: "uinit",
          },
        ],
      },
      assets: [
        {
          description: "The native token of Initia",
          denom_units: [
            {
              denom: "uinit",
              exponent: 0,
            },
            {
              denom: "INIT",
              exponent: 6,
            },
          ],
          base: "uinit",
          display: "INIT",
          name: "Initia Native Token",
          symbol: "INIT",
          images: [
            {
              png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.png",
              svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.svg",
            },
          ],
          logo_URIs: {
            png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.png",
            svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.svg",
          },
        },
      ],
    },
  }
  1. Update your project environment variables by
  • adding local type into NEXT_PUBLIC_SUPPORTED_NETWORK_TYPES
  • (move only) setting another variable NEXT_PUBLIC_INITIA_MOVE_DECODER
NEXT_PUBLIC_SUPPORTED_NETWORK_TYPES=local

# move only
NEXT_PUBLIC_INITIA_MOVE_DECODER=https://celatone-move-api-prod-jiod42ec2q-as.a.run.app