import type { TokenCurrency } from "./types"; export type FrameworkCryptoAssetsStore = { findTokenById(tokenId: string): Promise; findTokenByAddressInCurrency( address: string, currencyId: string, tokenIdentifier?: string, ): Promise; getTokensSyncHash(currencyId: string): Promise; }; let current: FrameworkCryptoAssetsStore | undefined; export function setCryptoAssetsStore(store: FrameworkCryptoAssetsStore): void { current = store; } export function getCryptoAssetsStore(): FrameworkCryptoAssetsStore { if (!current) { throw new Error( "Framework crypto assets store not initialized. Call setCryptoAssetsStore() at bootstrap.", ); } return current; }