@paxoslabs/earn-sdk
Version:
Paxos Labs Earn SDK
16 lines (13 loc) • 573 B
text/typescript
import { V as VaultKey, a as Vault } from './config-BQynVNDC.mjs';
type ChainId = number | `${number}`;
/**
* Gets the numeric chain ID from any valid chain ID input
*/
declare function toChainId(value: ChainId): number;
/**
* Fetches configuration for a specific vault
* @param vaultKey The vault key to fetch configuration for (can be a known VaultKey or a new vault key from the API)
* @returns Promise<Vault>
*/
declare function fetchVaultConfig(vaultKey: VaultKey | string): Promise<Vault>;
export { type ChainId as C, fetchVaultConfig as f, toChainId as t };