import { DeploymentInfo, DeploymentUnits } from "./types.mjs"; import { MAINNET_DEPLOYMENT, MAINNET_UNITS } from "./mainnet.mjs"; import { TESTNET_DEPLOYMENT, TESTNET_UNITS } from "./testnet.mjs"; import { SuiClientTypes } from "@mysten/sui/client"; //#region src/deployments/index.d.ts /** Networks this package carries ids for. */ type DeployedNetwork = 'testnet' | 'mainnet'; /** * Accepts the same wide network type the Sui client exposes, so `getUnits(client.network)` * composes. Narrowing to `DeployedNetwork` would reject that, and listing * `'testnet' | 'mainnet'` would be worse still: it admits exactly one value that always * throws while rejecting `'devnet'` at compile time. */ type NetworkArg = SuiClientTypes.Network; /** * @description Which deployment the ids on `network` came from — its name and the * deepbookv3 commit they were generated at. Useful when a bug report needs to say which * on-chain deployment an SDK build was pinned to. * @throws if the network has no deployment recorded, rather than returning placeholder ids. */ declare function getDeployment(network: NetworkArg): DeploymentInfo; /** * @description Scale constants for `network` — lot size, fixed-point scale, and coin * decimals. Deployment-wide, so any subpath formatting a custody balance can read them * rather than hardcoding 6. * @throws if the network has no recorded deployment. */ declare function getUnits(network: NetworkArg): DeploymentUnits; //#endregion export { DeployedNetwork, NetworkArg, getDeployment, getUnits }; //# sourceMappingURL=index.d.mts.map