///
import { FileSystem } from '../fileSystems';
export type VerifiedAssetMetadata = {
symbol: string;
decimals?: number;
logoURI?: string;
website?: string;
};
export type VerifiedAssetMetadataResponse = {
identifier: string;
} & VerifiedAssetMetadata;
export declare class VerifiedAssets {
private readonly assets;
private lastModified?;
export(): ExportedVerifiedAssets;
static restore(options: ExportedVerifiedAssets): VerifiedAssets;
getAssetData(assetId: Buffer | string): VerifiedAssetMetadata | undefined;
}
export type ExportedVerifiedAssets = {
assets: VerifiedAssetMetadataResponse[];
lastModified?: string;
};
export declare class AssetsVerificationApi {
private readonly timeout;
private readonly adapter?;
readonly url: string;
constructor(options: {
files: FileSystem;
url: string;
timeout?: number;
});
getVerifiedAssets(): Promise;
/**
* Queries the remote API for an updated version of `verifiedAssets`.
* @returns `true` if `verifiedAssets` has been updated; `false` otherwise,
*/
refreshVerifiedAssets(verifiedAssets: VerifiedAssets): Promise;
}
export declare function getDefaultAssetVerificationEndpoint(networkId?: number): string;
//# sourceMappingURL=assetsVerificationApi.d.ts.map