import { __extends } from "tslib";
import { CachedSolanaRpcFactory } from "..";
// Creates mocked cached Solana RPC factory by using the mocked retry Solana RPC factory.
var MockCachedSolanaRpcFactory = /** @class */ (function (_super) {
    __extends(MockCachedSolanaRpcFactory, _super);
    function MockCachedSolanaRpcFactory(mockRetrySolanaRpcFactory) {
        var cachedConstructorParams = [];
        for (var _i = 1; _i < arguments.length; _i++) {
            cachedConstructorParams[_i - 1] = arguments[_i];
        }
        var _this = _super.apply(this, cachedConstructorParams) || this;
        _this.retryTransport = mockRetrySolanaRpcFactory.createTransport();
        _this.retryRpcClient = mockRetrySolanaRpcFactory.createRpcClient();
        return _this;
    }
    return MockCachedSolanaRpcFactory;
}(CachedSolanaRpcFactory));
export { MockCachedSolanaRpcFactory };
//# sourceMappingURL=MockCachedSolanaRpcFactory.js.map