Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ node_modules
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings
.next
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ please refer to the table below.
| [@sei-js/create-sei](packages/create-sei) | CLI Tool used to quickly spin up Sei Projects and dApps in either the cosmos or EVM ecosystem |
| [@sei-js/mcp-server](packages/mcp-server) | MCP server for interacting with Sei via LLM's and agents |
| [@sei-js/sei-global-wallet](packages/sei-global-wallet) | A global wallet conforming to EIP-6963 allowing for AA across dApps. |
| [@sei-js/registry](packages/registry) | Typed constants for Sei chain info, tokens, networks, IBC, and gas configuration. |
| [@sei-js/ledger](packages/ledger) | TypeScript library transacting on Sei using a Ledger device. |

## Development
Expand All @@ -40,3 +41,13 @@ The correct Yarn version will be automatically used thanks to the `packageManage
### Building

To build all packages and docs, run `pnpm install` then `pnpm build:all`

### Testing

```bash
# Sequential (all packages via package scripts)
pnpm run test:all

# Parallel (all packages concurrently)
pnpm run test:parallel
Comment on lines 43 to +52
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new Testing section uses pnpm commands, but the Prerequisites section above still instructs yarn install and claims Yarn is the package manager. Since the repo packageManager is pnpm@9.0.0, these instructions are now contradictory. Align the prerequisites/install/build/test commands on a single package manager (or document both explicitly).

Copilot uses AI. Check for mistakes.
```
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"files": {
"ignoreUnknown": false,
"ignore": ["*/coverage/*", "*/dist/*", "packages/create-sei/templates/**"]
"ignore": ["*/coverage/*", "*/dist/*", "packages/create-sei/templates/**", "packages/create-sei/extensions/**"]
},
"formatter": {
"enabled": true,
Expand Down
81 changes: 68 additions & 13 deletions docs/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
"dark": "#780000"
},
"contextual": {
"options": ["copy", "chatgpt", "claude"]
"options": [
"copy",
"chatgpt",
"claude"
]
},
"navigation": {
"global": {
Expand Down Expand Up @@ -43,11 +47,16 @@
"pages": [
{
"group": "Introduction",
"pages": ["introduction", "overview"]
"pages": [
"introduction",
"overview"
]
},
{
"group": "Local Development",
"pages": ["contributing"]
"pages": [
"contributing"
]
}
]
},
Expand All @@ -58,15 +67,26 @@
"pages": [
{
"group": "About",
"pages": ["mcp-server/introduction", "mcp-server/transports"]
"pages": [
"mcp-server/introduction",
"mcp-server/transports"
]
},
{
"group": "Setup",
"pages": ["mcp-server/quickstart", "mcp-server/environment-variables", "mcp-server/troubleshooting"]
"pages": [
"mcp-server/quickstart",
"mcp-server/environment-variables",
"mcp-server/troubleshooting"
]
},
{
"group": "Capabilities",
"pages": ["mcp-server/tools", "mcp-server/prompts", "mcp-server/context"]
"pages": [
"mcp-server/tools",
"mcp-server/prompts",
"mcp-server/context"
]
}
]
},
Expand All @@ -77,7 +97,11 @@
"pages": [
{
"group": "Getting Started",
"pages": ["create-sei/welcome", "create-sei/quick-start", "create-sei/templates"]
"pages": [
"create-sei/welcome",
"create-sei/quick-start",
"create-sei/templates"
]
}
]
},
Expand All @@ -88,7 +112,10 @@
"pages": [
{
"group": "Getting Started",
"pages": ["sei-global-wallet/introduction", "sei-global-wallet/quickstart"]
"pages": [
"sei-global-wallet/introduction",
"sei-global-wallet/quickstart"
]
},
{
"group": "Integrations",
Expand All @@ -109,7 +136,10 @@
"pages": [
{
"group": "Getting Started",
"pages": ["precompiles/introduction", "precompiles/quick-start"]
"pages": [
"precompiles/introduction",
"precompiles/quick-start"
]
},
{
"group": "Precompiles",
Expand All @@ -129,11 +159,27 @@
}
]
},
{
"dropdown": "@sei-js/registry",
"description": "Chain constants and token lists",
"icon": "database",
"pages": [
{
"group": "Getting Started",
"pages": [
"registry/introduction",
"registry/usage"
]
}
]
},
{
"dropdown": "@sei-js/ledger",
"description": "Hardware wallet connection",
"icon": "shield",
"pages": ["ledger/introduction"]
"pages": [
"ledger/introduction"
]
},
{
"dropdown": "x402",
Expand All @@ -142,15 +188,24 @@
"pages": [
{
"group": "Introduction",
"pages": ["x402/introduction", "x402/overview", "x402/quickstart"]
"pages": [
"x402/introduction",
"x402/overview",
"x402/quickstart"
]
},
{
"group": "Facilitators",
"pages": ["x402/facilitators/introduction", "x402/facilitators/example"]
"pages": [
"x402/facilitators/introduction",
"x402/facilitators/example"
]
},
{
"group": "Client Integration",
"pages": ["x402/clients/fetch"]
"pages": [
"x402/clients/fetch"
]
},
{
"group": "Packages",
Expand Down
59 changes: 59 additions & 0 deletions docs/registry/introduction.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
title: "Introduction"
description: "@sei-js/registry provides typed constants for Sei chain info, tokens, networks, IBC channels, and gas configuration"
icon: "database"
---

## Overview

The `@sei-js/registry` package provides fully typed TypeScript constants sourced from the official [Sei chain registry](https://github.com/sei-protocol/chain-registry) and the community [asset list](https://github.com/Sei-Public-Goods/sei-assetlist). Use it to access chain metadata, network endpoints, token lists, IBC channel info, and gas configuration without hardcoding values.

## Key Exports

| Export | Description |
|---|---|
| `CHAIN_IDS` | Mainnet, testnet, and devnet chain ID strings |
| `CHAIN_INFO` | Core chain metadata (bech32 prefix, slip44, fee token, supported wallets) |
| `NETWORKS` | Network configs with RPC, REST, gRPC, EVM, and WebSocket endpoints |
| `TOKEN_LIST` | Community-maintained token list per network |
| `IBC_INFO` | IBC channel configurations per network |
| `GAS_INFO` | Gas denomination and pricing per network |
Comment on lines +13 to +20
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The markdown table in “Key Exports” uses double leading pipes (||) on each row, which won’t render as a standard Markdown table in most renderers. It should be a normal pipe table (| Export | Description |, etc.).

Copilot uses AI. Check for mistakes.

## Installation

<CodeGroup>

```bash npm
npm install @sei-js/registry
```

```bash yarn
yarn add @sei-js/registry
```

```bash pnpm
pnpm add @sei-js/registry
```

```bash bun
bun add @sei-js/registry
```

</CodeGroup>

## Quick Example

```typescript
import { CHAIN_IDS, NETWORKS, TOKEN_LIST } from "@sei-js/registry";

// Get the mainnet chain ID
console.log(CHAIN_IDS.mainnet); // "pacific-1"

// Access mainnet RPC endpoints
const mainnet = NETWORKS["pacific-1"];
console.log(mainnet.rpc[0].url);

// Find the SEI token on mainnet
const sei = TOKEN_LIST["pacific-1"].find((t) => t.symbol === "sei");
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The introduction page’s quick example also searches for t.symbol === "sei", but the registry’s token symbols are uppercase (e.g. SEI). This will likely return undefined. Update the example to use the correct casing or a normalized comparison.

Suggested change
const sei = TOKEN_LIST["pacific-1"].find((t) => t.symbol === "sei");
const sei = TOKEN_LIST["pacific-1"].find((t) => t.symbol === "SEI");

Copilot uses AI. Check for mistakes.
console.log(sei?.name); // "Sei"
```
Loading