// Copyright (c) Mysten Labs, Inc. // SPDX-License-Identifier: Apache-2.0 // GENERATED by `pnpm sync-deployment` from the deploy tooling's own manifest // (`packages/predict/deployment/deployment.testnet.json`) and the Predict, Sessions and // account `Published.toml` records for current call targets and original type IDs. Do not // hand-edit: the next regeneration overwrites it, and a hand-patched id is exactly the drift // this file exists to prevent. To move to a new deployment, check the sibling deepbookv3 // checkout out to the new anchor and re-run the script. // // Deployment: deepbook-predict-testnet // sourceCommit: 4d752fb82d909a821c85bcc5d3963725efb546f4 // // Runtime-dependency-free — every subpath reads a slice of this, so a value import here // would pull that module into all of their graphs. The type import below is erased. // // Frozen: these are shared module singletons, so an accessor handing one to a caller who // mutates it would change what every other caller sees. import type { AccountIds, DeploymentInfo, DeploymentUnits, PredictIds, SessionsIds, } from './types.js'; /** Which on-chain deployment the ids below came from. */ export const TESTNET_DEPLOYMENT: DeploymentInfo = Object.freeze({ deployment: 'deepbook-predict-testnet', network: 'testnet', chainId: '4c78adac', sourceCommit: '4d752fb82d909a821c85bcc5d3963725efb546f4', }); /** Ids for the shared `account` primitive — the `/account` subpath's slice. */ export const TESTNET_ACCOUNT: AccountIds = Object.freeze({ accountPackageId: '0x1e57d6554b99e4ca68330322c3e5c409ba1b681642726b603bf1be92c1840ca9', accountRegistry: '0x511e11f7f5d5c1043d795180657603d59e06e90fbfcafd3f90c67ff0836bbd0c', /** * Call target of every account call. Type tags and derived addresses keep * `accountPackageId`, the original. */ accountPackageIdLatest: '0x4401eae9984271faf178b6a43c0f2f144b6274b6406aab09bf9db0b3c2b441a1', }); /** * Ids for time-limited sessions — the `/sessions` subpath's slice. * * `deepbookRegistry` is only needed by the DeepBook **spot** session wrappers; the Predict * wrappers never take it. It is carried here so a spot caller does not have to reach into * the package root for one id. */ export const TESTNET_SESSIONS: SessionsIds = Object.freeze({ sessionsPackageId: '0x3bb8b2db2727bcb401c922ea79456d2b454c149a7f67013c26499ccb00e6d951', sessionsPackageIdV1: '0x1908eee49d7a08d74a537d7f23766b363a145517fe0d3e0d85635d1682831ffd', sessionsConfig: '0xc096b97289821b27badfdf758d614bbbfa386f93d3faa409ecc1fcc6075d1186', accountPackageId: '0x1e57d6554b99e4ca68330322c3e5c409ba1b681642726b603bf1be92c1840ca9', accountRegistry: '0x511e11f7f5d5c1043d795180657603d59e06e90fbfcafd3f90c67ff0836bbd0c', /** * Call target of every account call. Type tags and derived addresses keep * `accountPackageId`, the original. */ accountPackageIdLatest: '0x4401eae9984271faf178b6a43c0f2f144b6274b6406aab09bf9db0b3c2b441a1', deepbookRegistry: '0x7c256edbda983a2cd6f946655f4bf3f00a41043993781f8674a7046e8c0e11d1', deepbookCoreAccountPackageId: '0x2a3a5f51e1c566e0a77c667596a8212d036b44aeac32790991c9eb97580fabb1', /** Required by every Predict session wrapper — they all take `config: &ProtocolConfig`. */ protocolConfig: '0x422a45c31128e69d0310ab3bed28bd14f730acf9f5681f70936d20c60d26bfb0', }); /** * Scale constants the deployment owns rather than the SDK. Deployment-wide: * `quoteCoinDecimals` and `fixedPointScale` apply to any subpath formatting a custody * balance, not just Predict. */ export const TESTNET_UNITS: DeploymentUnits = Object.freeze({ positionLotSize: 10000, fixedPointScale: 1000000000, quoteCoinDecimals: 6, positionQuantityDecimals: 6, }); /** Ids for DeepBook Predict — the `/predict` subpath's slice. */ export const TESTNET_PREDICT: PredictIds = Object.freeze({ network: 'testnet', packages: Object.freeze({ predict: '0xbb6a1595d6ab45f41658fcb032e0dfb2cd87f2613825a26f5bcbe98d2c8c9ce8', predictV1: '0x59d71119e990573a738dd3ff9c4c7d28d6893af69c87c1a7f3a2e90e280ce2f4', account: '0x1e57d6554b99e4ca68330322c3e5c409ba1b681642726b603bf1be92c1840ca9', accountLatest: '0x4401eae9984271faf178b6a43c0f2f144b6274b6406aab09bf9db0b3c2b441a1', propbook: '0xa83f9d7651de09672a40cea371c387bf954e0f3092947670d71428d4fbc9edd9', predictOrders: '0xc43f12fec34351058cf80d5fd127248f14a4045429f2f56ee20695c4c9cdf3bf', predictOrdersV1: '0xd723ddef890bff70bd492cd384c913b5e7daeb6e8900cb3a5606546ac4f3907f', predictMath: '0x2039bac8c1ec51ce3d7cb366ec36b45fdbbafe1aa2aaea0ed9bef52db40e1562', }), objects: Object.freeze({ registry: '0x85cfaa857f9dfca75f6ba624eead063c4a1bc9b701201b8f21e1f9c15833ccc4', protocolConfig: '0x422a45c31128e69d0310ab3bed28bd14f730acf9f5681f70936d20c60d26bfb0', poolVault: '0x6fd178a49848387d60ccfd3e53bf06969929970246a3a7983ae5bb2a5ed52ee3', oracleRegistry: '0xf4ad65184b2e4e9d8e50d44b02a76c64e9607f63e3dbc362e110c99e20a17161', accountRegistry: '0x511e11f7f5d5c1043d795180657603d59e06e90fbfcafd3f90c67ff0836bbd0c', }), quoteCoinType: '0xc028557a1ed49e42ed091e115aedefd70a442b184c18fbec5c48d5b6c0b8c184::usdc::USDC', /** * `plp` is the LP share coin type. It is NOT derivable from `packages.predict`: a Move * type tag keeps the ORIGINAL package id across an upgrade, while `packages.predict` * moves to the latest. They agree only while predict is at v1. */ coinTypes: Object.freeze({ plp: '0x59d71119e990573a738dd3ff9c4c7d28d6893af69c87c1a7f3a2e90e280ce2f4::plp::PLP', deep: '0x36dbef866a1d62bf7328989a10fb2f07d769f4ee587c0de4a0a256e57e0a58a8::deep::DEEP', }), units: TESTNET_UNITS, underlyings: Object.freeze({ BTC: Object.freeze({ symbol: 'BTC', propbookUnderlyingId: 1, pythFeed: '0x8ef99c3d14e57612d09a67bcc9b5bff568a80992df6beca2bfcd922973192faa', blockScholesValueStore: '0x1e5142471311505a7428b072230c9ffe8a747b3b9392720e39246af4aea08216', blockScholesSviStore: '0x0f1cbefd1dd2ba08ae700a7067c32e0718edf926fa18cea80bd231c02d509ece', }), }), oracle: Object.freeze({ pythLazerState: '0xe2b9096a5ea341a9f1eef126b2203727e29e73fdb0641ade2e1e32942f97e4d8', }), });