//#region src/deployments/types.d.ts /** * Shapes for the generated deployment records. * * The generated file annotates each record with one of these rather than using `as const`. * That matters for consumers: `as const` would publish the literal ids in the `.d.mts`, so * `getDeployment('testnet').network === 'mainnet'` would be a compile ERROR rather than * `false`, spreading a record to override one field would fail, and every redeploy would * silently change the published types. */ /** Which on-chain deployment a set of ids came from. */ interface DeploymentInfo { deployment: string; network: string; chainId: string; /** The initial deployment's source commit; later package IDs come from Published.toml. */ sourceCommit: string; } /** * Scale constants the deployment owns rather than the SDK. * * Only `positionLotSize` is currently read by the SDK (`PredictClient#assertLot`); the other * three are shipped as the deployment's own record of its scales. `units.ts` still hardcodes * the USDC and fixed-point decimals, so do not read this as "the SDK derives its scaling * from here" — wiring that up is separate work. */ interface DeploymentUnits { /** Predict-only: order quantity must be a whole number of these. */ positionLotSize: number; fixedPointScale: number; quoteCoinDecimals: number; positionQuantityDecimals: number; } //#endregion export { DeploymentInfo, DeploymentUnits }; //# sourceMappingURL=types.d.mts.map