Magic static void main
Install package:
# npm
npm install @kodadot1/static
# yarn
yarn add @kodadot1/static
# pnpm
pnpm install @kodadot1/static
Import:
// ESM
import * as static from "@kodadot1/static";
// CommonJS
const static = require("@kodadot1/static");
Static chain files such as decimals, symbol, ss58
import { CHAINS } from "@kodadot1/static";
Map of RPC endpoints for each chain
import { ENDPOINT_MAP } from "@kodadot1/static";
Map of subsquid indexer endpoints for each chain
import { INDEXERS, APOLLO_ENDPOINTS, toApolloEndpoint } from "@kodadot1/static";
Map of chain names for each chain. Suitable for frontend
import { NAMES } from "@kodadot1/static";
Map of clodflare workers we use
import { SERVICES } from "@kodadot1/static";
Misc types for each config
Made with 💛
Published under MIT License.