UNPKG

@cranberry-money/shared-constants

Version:

Shared constants for Blueberry platform

48 lines 2.11 kB
export declare const WALLET_VERIFICATION_STATUS: { readonly PENDING: "PENDING"; readonly VERIFIED: "VERIFIED"; }; export type WalletVerificationStatus = (typeof WALLET_VERIFICATION_STATUS)[keyof typeof WALLET_VERIFICATION_STATUS]; export declare const WALLET_TYPE: { readonly HARDWARE: "hardware"; readonly SOFTWARE: "software"; }; export type WalletTypeValue = (typeof WALLET_TYPE)[keyof typeof WALLET_TYPE]; export declare const BLOCKCHAIN: { readonly ETHEREUM: "ethereum"; readonly BITCOIN: "bitcoin"; readonly POLYGON: "polygon"; readonly SOLANA: "solana"; readonly AVALANCHE: "avalanche"; readonly ARCA: "arca"; }; export type BlockchainType = (typeof BLOCKCHAIN)[keyof typeof BLOCKCHAIN]; export interface ChainConfig { code: BlockchainType; name: string; shortName: string; isActive: boolean; explorerTxUrl: string; addressPlaceholder: string; confirmationTime: string; } export declare const SUPPORTED_CHAINS: ChainConfig[]; export declare function getChainConfig(code: string): ChainConfig | undefined; export declare function getChainByShortName(shortName: string): ChainConfig | undefined; export declare function getActiveChains(): ChainConfig[]; export declare function getChainName(chain: string): string; export declare function getChainShortCode(chain: string): string; export declare function isEthereumChain(chainShortCode: string): boolean; export declare function isBitcoinChain(chainShortCode: string): boolean; export declare function getBlockchainDisplayName(chainShortCode: string): string; export declare function getAddressPlaceholder(chainShortCode: string): string; export declare function getEstimatedConfirmationTime(chainShortCode: string): string; export declare function getBlockExplorerTxUrl(chain: string, txHash: string): string; export interface BuyableAssetConfig { symbol: string; name: string; chain: BlockchainType; } export declare const BUYABLE_ASSETS: BuyableAssetConfig[]; export declare function getEstimatedFee(chainShortName: string): number; //# sourceMappingURL=wallets.d.ts.map