UNPKG

vana-sdk

Version:

A TypeScript library for interacting with Vana Network smart contracts

29 lines 916 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ContractClient = void 0; const contractController_1 = require("./contractController"); /** * Base contract client class that can be extended by specific contract clients */ class ContractClient { provider; contract; /** * @param contractName The name of the contract to use * @param provider The VanaProvider instance */ constructor(contractName, provider) { this.provider = provider; this.contract = (0, contractController_1.getContractController)(contractName, provider.client); } /** * Get the raw contract instance * Useful for direct access to all contract methods * @returns The raw contract instance */ getRawContract() { return this.contract; } } exports.ContractClient = ContractClient; //# sourceMappingURL=contractClient.js.map