{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/predict/config/index.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\nimport { MAINNET_CONFIG } from './mainnet.js';\nimport { TESTNET_CONFIG } from './testnet.js';\nimport type { PredictConfig } from './types.js';\nimport type { NetworkArg } from '../../deployments/index.js';\n\nexport { TESTNET_CONFIG, MAINNET_CONFIG };\nexport type { PredictConfig, PredictPackages, UnderlyingConfig } from './types.js';\n\nexport function getConfig(network: NetworkArg): PredictConfig {\n\tif (network === 'testnet') return TESTNET_CONFIG;\n\tif (network === 'mainnet') return MAINNET_CONFIG;\n\tthrow new Error(\n\t\t`@mysten/deepbook-v3/predict: no Predict deployment recorded for network '${network}'. ` +\n\t\t\t'Predict is recorded for testnet and mainnet; for your own deployment pass `config` to ' +\n\t\t\t'PredictClient ' +\n\t\t\t'or `predict({ config })`.',\n\t);\n}\n\n// Provenance: which on-chain deployment these ids came from.\nexport {\n\tgetDeployment,\n\tgetUnits,\n\tMAINNET_DEPLOYMENT,\n\tMAINNET_UNITS,\n\tTESTNET_DEPLOYMENT,\n\tTESTNET_UNITS,\n} from '../../deployments/index.js';\n"],"mappings":";;;;;;;AAUA,SAAgB,UAAU,SAAoC;AAC7D,KAAI,YAAY,UAAW,QAAO;AAClC,KAAI,YAAY,UAAW,QAAO;AAClC,OAAM,IAAI,MACT,4EAA4E,QAAQ,sIAIpF"}