-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathindex.ts
37 lines (35 loc) · 1.43 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import ChainInfoJSON from '../../chain-registry/chain_info.json';
/**
* Represents the essential information about an official Sei network.
*/
export interface ChainInfo {
/** The name of the chain. (Sei) */
chain_name: string;
/** The type of network, indicating whether it's a mainnet, testnet, or devnet. */
network_type: 'mainnet' | 'testnet' | 'devnet';
/** The unique identifier for the Sei network. 'pacific-1' | 'atlantic-2' | 'arctic-1' */
chain_id: string;
/** The name of the daemon process that runs the node software for the blockchain. (seid) */
daemon_name: string;
/** The prefix used for Bech32 encoded addresses on the network. (sei) */
bech32_prefix: string;
/** An array of cryptographic algorithms supported by the network for key generation. */
key_algos: string[];
/** The SLIP-44 coin type number assigned to the network for HD wallet purposes. */
slip44: number;
/** The denomination of the fee token used for transaction fees on the network. */
fee_token: string;
/** A list of wallet software that supports this blockchain network. */
supported_wallets: string[];
}
/**
* A constant that holds the chain information, imported from the official Sei [chain-registry](https://github.com/sei-protocol/chain-registry).
*
* @example
* ```tsx
* import { CHAIN_INFO } from '@sei-js/registry';
*
* console.log(CHAIN_INFO.bech32_prefix); // 'sei'
* ```
*/
export const CHAIN_INFO: ChainInfo = ChainInfoJSON as ChainInfo;