UNPKG

vana-sdk

Version:

A TypeScript library for interacting with Vana Network smart contracts

12 lines 634 B
import { GetContractReturnType } from "viem"; import { ContractAbis, VanaContract } from "../abi"; import { createClient } from "../core/client"; /** * Gets a typed contract instance for the specified contract name * * @param contractName - Name of the contract to instantiate * @param client - Optional viem client instance * @returns A typed contract instance with methods corresponding to the contract's ABI */ export declare function getContractController<T extends VanaContract>(contract: T, client?: ReturnType<typeof createClient>): GetContractReturnType<ContractAbis[T]>; //# sourceMappingURL=contractController.d.ts.map