Skip to content

StorageInfo

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

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

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

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

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

List of approved service providers


serviceParameters: object

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

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: `0x${string}`

Payments contract address

pdpVerifierAddress: `0x${string}`

PDP Verifier contract address

warmStorageAddress: `0x${string}`

Warm Storage service contract address