vasku
Version:
TVM-Solidity contract development framework
40 lines • 1.06 kB
TypeScript
import { type VaskuConfig } from '../../config/types';
import { type Metadata } from './index';
export type Cache = {
compiler: string;
linker: string;
contracts: Record<string, Metadata>;
};
/**
* Read metadata from cache
* @param config
* @return Example:
* {
* 'TokenRoot.tsol': {
* modificationTime: 1685314482,
* imports: ['ITokenRoot.tsol']
* },
* 'TokenWallet.tsol': {
* modificationTime: 1685314482,
* imports: ['ITokenWallet.tsol']
* }
* }
*/
export declare function readCache(config: VaskuConfig): Record<string, Metadata>;
/**
* Write metadata to cache
* @param config
* @param metadata Example:
* {
* 'TokenRoot.tsol': {
* modificationTime: 1685314482,
* imports: ['ITokenRoot.tsol']
* },
* 'TokenWallet.tsol': {
* modificationTime: 1685314482,
* imports: ['ITokenWallet.tsol']
* }
* }
*/
export declare function writeCache(config: VaskuConfig, metadata: Record<string, Metadata>): void;
//# sourceMappingURL=cache.d.ts.map