OutputType
OutputType =
object
Defined in: packages/synapse-core/src/utils/calculate-upload-costs.ts:97
Properties
Section titled “Properties”depositNeeded
Section titled “depositNeeded”depositNeeded:
bigint
Defined in: packages/synapse-core/src/utils/calculate-upload-costs.ts:120
Total USDFC to deposit. 0n when the account is sufficiently funded.
fees:
OutputType
Defined in: packages/synapse-core/src/utils/calculate-upload-costs.ts:106
Conservative sum of upload operation fees across all contexts.
lockups
Section titled “lockups”lockups:
object
Defined in: packages/synapse-core/src/utils/calculate-upload-costs.ts:108
Sum of additional lockups required across all contexts.
cacheMissLockup
Section titled “cacheMissLockup”cacheMissLockup:
bigint
cdnLockup
Section titled “cdnLockup”cdnLockup:
bigint
lifecycleLockup
Section titled “lifecycleLockup”lifecycleLockup:
bigint
rateDeltaPerEpoch
Section titled “rateDeltaPerEpoch”rateDeltaPerEpoch:
bigint
Aggregate recurring-rate increase used to calculate streaming lockup.
reserveReplenishment
Section titled “reserveReplenishment”reserveReplenishment:
bigint
Additional fixed lockup needed to replenish lifecycle reserves.
streamingLockup
Section titled “streamingLockup”streamingLockup:
bigint
total:
bigint
needsFwssMaxApproval
Section titled “needsFwssMaxApproval”needsFwssMaxApproval:
boolean
Defined in: packages/synapse-core/src/utils/calculate-upload-costs.ts:122
Whether FWSS needs maximum operator approval.
rates:
object
Defined in: packages/synapse-core/src/utils/calculate-upload-costs.ts:99
Sum of the final recurring rates for all affected data sets.
perEpoch
Section titled “perEpoch”perEpoch:
bigint
Aggregate on-chain rate per epoch.
perMonth
Section titled “perMonth”perMonth:
bigint
Aggregate higher-precision rate per month for display.
ready:
boolean
Defined in: packages/synapse-core/src/utils/calculate-upload-costs.ts:124
Whether no deposit or approval transaction is required.