@vaulverin/orca-sdk
Version:
Typescript SDK for the Orca protocol.
19 lines (18 loc) • 575 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OrcaImpl = void 0;
const orca_factory_1 = require("../orca-factory");
class OrcaImpl {
constructor(connection, network) {
this.connection = connection;
this.network = network;
this.factory = new orca_factory_1.OrcaFactory();
}
getPool(pool) {
return this.factory.getPool(this.connection, this.network, pool);
}
getFarm(farm) {
return this.factory.getFarm(this.connection, this.network, farm);
}
}
exports.OrcaImpl = OrcaImpl;