{"version":3,"file":"constants.mjs","names":[],"sources":["../src/constants.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { BlobStatus } from './storage-node/types.js';\nimport type { WalrusPackageConfig } from './types.js';\n\nexport const TESTNET_WALRUS_PACKAGE_CONFIG = {\n\tsystemObjectId: '0x6c2547cbbc38025cf3adac45f63cb0a8d12ecf777cdc75a4971612bf97fdf6af',\n\tstakingPoolId: '0xbe46180321c30aab2f8b3501e24048377287fa708018a5b7c2792b35fe339ee3',\n\texchangeIds: [\n\t\t'0xf4d164ea2def5fe07dc573992a029e010dba09b1a8dcbc44c5c2e79567f39073',\n\t\t'0x19825121c52080bb1073662231cfea5c0e4d905fd13e95f21e9a018f2ef41862',\n\t\t'0x83b454e524c71f30803f4d6c302a86fb6a39e96cdfb873c2d1e93bc1c26a3bc5',\n\t\t'0x8d63209cf8589ce7aef8f262437163c67577ed09f3e636a9d8e0813843fb8bf1',\n\t],\n} satisfies WalrusPackageConfig;\n\nexport const MAINNET_WALRUS_PACKAGE_CONFIG = {\n\tsystemObjectId: '0x2134d52768ea07e8c43570ef975eb3e4c27a39fa6396bef985b5abc58d03ddd2',\n\tstakingPoolId: '0x10b9d30c28448939ce6c4d6c6e0ffce4a7f8a4ada8248bdad09ef8b70e4a3904',\n} satisfies WalrusPackageConfig;\n\n// Below this size (bytes), skip the sliver status check and upload directly since the\n// upload fits in a single RTT (similar cost to the status check itself).\n// TCP payload (1440) × initial congestion window (4) − HTTP overhead (200). Matches Rust SDK.\nexport const SLIVER_STATUS_CHECK_THRESHOLD = 5_560;\n\n// Ranking of blob status types from earliest -> latest in the lifecycle of a blob.\nexport const statusLifecycleRank: Record<BlobStatus['type'], number> = {\n\tnonexistent: 0,\n\tdeletable: 1,\n\tpermanent: 2,\n\tinvalid: 3,\n};\n"],"mappings":";AAMA,MAAa,gCAAgC;CAC5C,gBAAgB;CAChB,eAAe;CACf,aAAa;EACZ;EACA;EACA;EACA;EACA;CACD;AAED,MAAa,gCAAgC;CAC5C,gBAAgB;CAChB,eAAe;CACf;AAKD,MAAa,gCAAgC;AAG7C,MAAa,sBAA0D;CACtE,aAAa;CACb,WAAW;CACX,WAAW;CACX,SAAS;CACT"}