ParamsType
ParamsType =
object
Defined in: packages/synapse-core/src/warm-storage/calculate-deposit-needed.ts:8
Properties
Section titled “Properties”availableFunds
Section titled “availableFunds”availableFunds:
bigint
Defined in: packages/synapse-core/src/warm-storage/calculate-deposit-needed.ts:35
bufferEpochs?
Section titled “bufferEpochs?”
optionalbufferEpochs?:bigint
Defined in: packages/synapse-core/src/warm-storage/calculate-deposit-needed.ts:40
Safety margin in epochs for tx execution delay. Defaults to DEFAULT_BUFFER_EPOCHS (5).
currentLifecycleReserveBalance?
Section titled “currentLifecycleReserveBalance?”
optionalcurrentLifecycleReserveBalance?:bigint
Defined in: packages/synapse-core/src/warm-storage/calculate-deposit-needed.ts:22
Current lifecycle reserve balance. Required when isNewDataSet is false.
currentLockupRate
Section titled “currentLockupRate”currentLockupRate:
bigint
Defined in: packages/synapse-core/src/warm-storage/calculate-deposit-needed.ts:29
dataSetLeafCount
Section titled “dataSetLeafCount”dataSetLeafCount:
bigint
Defined in: packages/synapse-core/src/warm-storage/calculate-deposit-needed.ts:13
Aggregate leaf count reported by PDP Verifier. 0n for new data sets.
debt:
bigint
Defined in: packages/synapse-core/src/warm-storage/calculate-deposit-needed.ts:34
epochsPerMonth?
Section titled “epochsPerMonth?”
optionalepochsPerMonth?:bigint
Defined in: packages/synapse-core/src/warm-storage/calculate-deposit-needed.ts:16
Epochs per month. Defaults to EPOCHS_PER_MONTH (86400).
extraRunwayEpochs?
Section titled “extraRunwayEpochs?”
optionalextraRunwayEpochs?:bigint
Defined in: packages/synapse-core/src/warm-storage/calculate-deposit-needed.ts:31
Extra runway epochs beyond the required lockup. Defaults to DEFAULT_RUNWAY_EPOCHS (0).
isNewDataSet
Section titled “isNewDataSet”isNewDataSet:
boolean
Defined in: packages/synapse-core/src/warm-storage/calculate-deposit-needed.ts:19
lockupEpochs?
Section titled “lockupEpochs?”
optionallockupEpochs?:bigint
Defined in: packages/synapse-core/src/warm-storage/calculate-deposit-needed.ts:18
Lockup period in epochs. Defaults to priceList.lockups.defaultLockupPeriod.
pdpEndEpoch?
Section titled “pdpEndEpoch?”
optionalpdpEndEpoch?:bigint
Defined in: packages/synapse-core/src/warm-storage/calculate-deposit-needed.ts:26
Epoch at which the PDP payment rail ends. Required for an existing data set; must be 0n.
pendingOneTimePayments?
Section titled “pendingOneTimePayments?”
optionalpendingOneTimePayments?:bigint
Defined in: packages/synapse-core/src/warm-storage/calculate-deposit-needed.ts:24
One-time fees already pending on an existing data set. Defaults to 0.
pieceSizes
Section titled “pieceSizes”pieceSizes: readonly
bigint[]
Defined in: packages/synapse-core/src/warm-storage/calculate-deposit-needed.ts:11
Exact raw payload size of every piece planned for upload, in bytes.
priceList
Section titled “priceList”priceList:
OutputType
Defined in: packages/synapse-core/src/warm-storage/calculate-deposit-needed.ts:14
runwayInEpochs
Section titled “runwayInEpochs”runwayInEpochs:
bigint
Defined in: packages/synapse-core/src/warm-storage/calculate-deposit-needed.ts:36
withCDN
Section titled “withCDN”withCDN:
boolean
Defined in: packages/synapse-core/src/warm-storage/calculate-deposit-needed.ts:20