filecoin-pin
Version:
Bridge IPFS content to Filecoin Onchain Cloud using familiar tools
49 lines • 1.67 kB
TypeScript
/**
* Payment-related constants for Filecoin Onchain Cloud
*
* This module contains all constants used in payment operations including
* decimals, lockup periods, buffer configurations, and pricing minimums.
*/
/**
* USDFC token decimals (ERC20 standard)
*/
export declare const USDFC_DECIMALS = 18;
/**
* Minimum FIL balance required for gas fees
*/
export declare const MIN_FIL_FOR_GAS: bigint;
/**
* Default lockup period required by WarmStorage (in days)
*/
export declare const DEFAULT_LOCKUP_DAYS = 30;
/**
* Floor price per piece for WarmStorage (minimum cost regardless of size)
* This is 0.06 USDFC per 30 days per piece
*/
export declare const FLOOR_PRICE_PER_30_DAYS: bigint;
/**
* Number of days the floor price covers
*/
export declare const FLOOR_PRICE_DAYS = 30;
/**
* Maximum allowances for trusted WarmStorage service
* Using MaxUint256 which MetaMask displays as "Unlimited"
*/
export declare const MAX_RATE_ALLOWANCE: bigint;
export declare const MAX_LOCKUP_ALLOWANCE: bigint;
/**
* Standard buffer configuration (10%) used across deposit/lockup calculations
*/
export declare const BUFFER_NUMERATOR = 11n;
export declare const BUFFER_DENOMINATOR = 10n;
/**
* Maximum precision scale used when converting small TiB (as a float) to integer(BigInt) math
*/
export declare const STORAGE_SCALE_MAX = 10000000;
export declare const STORAGE_SCALE_MAX_BI: bigint;
/** PDP Leaf Size - the payment rate is based on `rawSize` bytes rounded up to the next multiple of 32.
*
* @see - https://github.com/FilOzone/synapse-sdk/issues/339#issue-3539254596
*/
export declare const PDP_LEAF_SIZE = 32;
//# sourceMappingURL=constants.d.ts.map