"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SolanaClusterRpcFactory = exports.SolanaBaseRpcFactory = void 0;
var tslib_1 = require("tslib");
var kit_1 = require("@solana/kit");
var SolanaBaseRpcFactory = (function () {
    function SolanaBaseRpcFactory(chainId) {
        this.chainId = chainId;
    }
    SolanaBaseRpcFactory.prototype.createRpcClient = function () {
        return (0, kit_1.createSolanaRpcFromTransport)(this.createTransport());
    };
    return SolanaBaseRpcFactory;
}());
exports.SolanaBaseRpcFactory = SolanaBaseRpcFactory;
var SolanaClusterRpcFactory = (function (_super) {
    tslib_1.__extends(SolanaClusterRpcFactory, _super);
    function SolanaClusterRpcFactory(clusterUrl) {
        var baseConstructorParams = [];
        for (var _i = 1; _i < arguments.length; _i++) {
            baseConstructorParams[_i - 1] = arguments[_i];
        }
        var _this = _super.apply(this, baseConstructorParams) || this;
        _this.clusterUrl = clusterUrl;
        return _this;
    }
    return SolanaClusterRpcFactory;
}(SolanaBaseRpcFactory));
exports.SolanaClusterRpcFactory = SolanaClusterRpcFactory;
//# sourceMappingURL=baseRpcFactories.js.map