@sodax/types
v1.0.1-beta
Published
Sodax Types
Readme
@sodax/types
Shared TypeScript types and constants used throughout Sodax libraries.
Overview
This package provides a centralized collection of type definitions and constants for the Sodax ecosystem, including:
- Chain configurations: Hub and spoke chain definitions for EVM, Solana, Stellar, Sui, ICON, and Injective
- Token definitions: Supported tokens, hub assets, and vault configurations
- Chain-specific types: Wallet provider interfaces and transaction types for each supported blockchain
- Backend API types: Type definitions for configuration API responses
Structure
common/: Core types for chains, tokens, addresses, and chain configurationsconstants/: Chain IDs, token definitions, hub vaults, and spoke chain configurationsbackend/: API response types for configuration endpointsevm/: EVM-specific transaction and wallet provider typesstellar/: Stellar-specific transaction and wallet provider typessolana/: Solana-specific transaction and wallet provider typessui/: Sui-specific transaction and wallet provider typesicon/: ICON-specific transaction and wallet provider typesinjective/: Injective-specific transaction and wallet provider types
Usage
import type { ChainId, Token, SpokeChainConfig } from '@sodax/types';
import { CHAIN_IDS, spokeChainConfig } from '@sodax/types';