Skip to content

StorageInfo

Defined in: packages/synapse-sdk/src/types.ts:440

Comprehensive storage service information

allowances: { isApproved: boolean; lockupAllowance: bigint; lockupUsed: bigint; rateAllowance: bigint; rateUsed: bigint; service: `0x${string}`; } | null

Defined in: packages/synapse-sdk/src/types.ts:485

Current user allowances (null if wallet not connected)

{ isApproved: boolean; lockupAllowance: bigint; lockupUsed: bigint; rateAllowance: bigint; rateUsed: bigint; service: `0x${string}`; }

isApproved: boolean

Whether the service operator is approved to act on behalf of the wallet

lockupAllowance: bigint

Maximum lockup amount allowed

lockupUsed: bigint

Current lockup allowance used

rateAllowance: bigint

Maximum payment rate per epoch allowed

rateUsed: bigint

Current rate allowance used

service: `0x${string}`

Service contract address

null


pricing: object

Defined in: packages/synapse-sdk/src/types.ts:442

Pricing information for storage services

noCDN: object

Pricing without CDN

perTiBPerDay: bigint

Cost per TiB per day in token units

perTiBPerEpoch: bigint

Cost per TiB per epoch in token units

perTiBPerMonth: bigint

Cost per TiB per month in token units

tokenAddress: `0x${string}`

Token contract address

tokenSymbol: string

Token symbol (always USDFC for now)

withCDN: object

Pricing with CDN enabled

perTiBPerDay: bigint

Cost per TiB per day in token units

perTiBPerEpoch: bigint

Cost per TiB per epoch in token units

perTiBPerMonth: bigint

Cost per TiB per month in token units


providers: PDPProvider[]

Defined in: packages/synapse-sdk/src/types.ts:468

List of approved service providers


serviceParameters: object

Defined in: packages/synapse-sdk/src/types.ts:471

Service configuration parameters

epochDuration: number

Duration of each epoch in seconds

epochsPerDay: bigint

Number of epochs in a day

epochsPerMonth: bigint

Number of epochs in a month

maxUploadSize: number

Maximum allowed upload size in bytes

minUploadSize: number

Minimum allowed upload size in bytes