Skip to content

StorageInfo

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

Comprehensive storage service information

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

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

Current user allowances (null if wallet not connected)

{ isApproved: boolean; lockupAllowance: bigint; lockupUsed: bigint; rateAllowance: bigint; rateUsed: bigint; service: 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: string

Service contract address

null


pricing: object

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

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: 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: ProviderInfo[]

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

List of approved service providers


serviceParameters: object

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

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

network: FilecoinNetworkType

Network type (mainnet or calibration)

paymentsAddress: string

Payments contract address

pdpVerifierAddress: string

PDP Verifier contract address

warmStorageAddress: string

Warm Storage service contract address