StorageInfo
Defined in: packages/synapse-sdk/src/types.ts:451
Comprehensive storage service information
Properties
Section titled “Properties”allowances
Section titled “allowances”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)
Type Declaration
Section titled “Type Declaration”{ isApproved: boolean; lockupAllowance: bigint; lockupUsed: bigint; rateAllowance: bigint; rateUsed: bigint; service: string; }
isApproved
Section titled “isApproved”isApproved:
boolean
Whether the service operator is approved to act on behalf of the wallet
lockupAllowance
Section titled “lockupAllowance”lockupAllowance:
bigint
Maximum lockup amount allowed
lockupUsed
Section titled “lockupUsed”lockupUsed:
bigint
Current lockup allowance used
rateAllowance
Section titled “rateAllowance”rateAllowance:
bigint
Maximum payment rate per epoch allowed
rateUsed
Section titled “rateUsed”rateUsed:
bigint
Current rate allowance used
service
Section titled “service”service:
string
Service contract address
null
pricing
Section titled “pricing”pricing:
object
Defined in: packages/synapse-sdk/src/types.ts:453
Pricing information for storage services
noCDN:
object
Pricing without CDN
noCDN.perTiBPerDay
Section titled “noCDN.perTiBPerDay”perTiBPerDay:
bigint
Cost per TiB per day in token units
noCDN.perTiBPerEpoch
Section titled “noCDN.perTiBPerEpoch”perTiBPerEpoch:
bigint
Cost per TiB per epoch in token units
noCDN.perTiBPerMonth
Section titled “noCDN.perTiBPerMonth”perTiBPerMonth:
bigint
Cost per TiB per month in token units
tokenAddress
Section titled “tokenAddress”tokenAddress:
string
Token contract address
tokenSymbol
Section titled “tokenSymbol”tokenSymbol:
string
Token symbol (always USDFC for now)
withCDN
Section titled “withCDN”withCDN:
object
Pricing with CDN enabled
withCDN.perTiBPerDay
Section titled “withCDN.perTiBPerDay”perTiBPerDay:
bigint
Cost per TiB per day in token units
withCDN.perTiBPerEpoch
Section titled “withCDN.perTiBPerEpoch”perTiBPerEpoch:
bigint
Cost per TiB per epoch in token units
withCDN.perTiBPerMonth
Section titled “withCDN.perTiBPerMonth”perTiBPerMonth:
bigint
Cost per TiB per month in token units
providers
Section titled “providers”providers:
ProviderInfo[]
Defined in: packages/synapse-sdk/src/types.ts:479
List of approved service providers
serviceParameters
Section titled “serviceParameters”serviceParameters:
object
Defined in: packages/synapse-sdk/src/types.ts:482
Service configuration parameters
epochDuration
Section titled “epochDuration”epochDuration:
number
Duration of each epoch in seconds
epochsPerDay
Section titled “epochsPerDay”epochsPerDay:
bigint
Number of epochs in a day
epochsPerMonth
Section titled “epochsPerMonth”epochsPerMonth:
bigint
Number of epochs in a month
maxUploadSize
Section titled “maxUploadSize”maxUploadSize:
number
Maximum allowed upload size in bytes
minUploadSize
Section titled “minUploadSize”minUploadSize:
number
Minimum allowed upload size in bytes
network
Section titled “network”network:
FilecoinNetworkType
Network type (mainnet or calibration)
paymentsAddress
Section titled “paymentsAddress”paymentsAddress:
string
Payments contract address
pdpVerifierAddress
Section titled “pdpVerifierAddress”pdpVerifierAddress:
string
PDP Verifier contract address
warmStorageAddress
Section titled “warmStorageAddress”warmStorageAddress:
string
Warm Storage service contract address