import ContractAbi from "../../smartcontract/contractAbi"; /** * Loads contracts with internal cache */ export default class ContractLoader { private readonly apiUrl; private readonly cache; constructor(apiUrl?: string); /** * Load a contract * * @param contractAddress contractAddress in base58 or hex */ load(contractAddress: string): Promise; /** * Retrieve a (cached) contract * * @param contractAddress contractAddress in base58 or hex */ get(contractAddress: string): Promise; /** * Retrieve a (cached) contract * * @param contractAddress contractAddress in base58 or hex */ getApi(contractAddress: string): Promise; }