Skip to content

OutputType

OutputType = object

Defined in: packages/synapse-core/src/utils/calculate-upload-costs.ts:97

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: object

Defined in: packages/synapse-core/src/utils/calculate-upload-costs.ts:108

Sum of additional lockups required across all contexts.

cacheMissLockup: bigint

cdnLockup: bigint

lifecycleLockup: bigint

rateDeltaPerEpoch: bigint

Aggregate recurring-rate increase used to calculate streaming lockup.

reserveReplenishment: bigint

Additional fixed lockup needed to replenish lifecycle reserves.

streamingLockup: bigint

total: bigint


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: bigint

Aggregate on-chain rate per epoch.

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.