Skip to content

StorageInfo

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

Comprehensive storage service information

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

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

Current user allowances (null if wallet not connected)

null

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


pricing: object;

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

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

List of approved service providers


serviceParameters: object;

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

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