"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SolanaClusterRpcFactory = exports.SolanaBaseRpcFactory = void 0;
const kit_1 = require("@solana/kit");
class SolanaBaseRpcFactory {
    constructor() { }
    createRpcClient() {
        return (0, kit_1.createSolanaRpcFromTransport)(this.createTransport());
    }
}
exports.SolanaBaseRpcFactory = SolanaBaseRpcFactory;
class SolanaClusterRpcFactory extends SolanaBaseRpcFactory {
    clusterUrl;
    chainId;
    constructor(clusterUrl, chainId) {
        super();
        this.clusterUrl = clusterUrl;
        this.chainId = chainId;
    }
}
exports.SolanaClusterRpcFactory = SolanaClusterRpcFactory;
//# sourceMappingURL=baseRpcFactories.js.map