import { __extends } from "tslib";
import { RetrySolanaRpcFactory } from "..";
// Creates mocked retry Solana RPC factory by using the mocked rate limited Solana RPC factory.
var MockRetrySolanaRpcFactory = /** @class */ (function (_super) {
    __extends(MockRetrySolanaRpcFactory, _super);
    function MockRetrySolanaRpcFactory(mockRateLimitedSolanaRpcFactory) {
        var retryConstructorParams = [];
        for (var _i = 1; _i < arguments.length; _i++) {
            retryConstructorParams[_i - 1] = arguments[_i];
        }
        var _this = _super.apply(this, retryConstructorParams) || this;
        // Use the mock rate limited transport instead of creating a real one
        _this.rateLimitedTransport = mockRateLimitedSolanaRpcFactory.createTransport();
        _this.logger = mockRateLimitedSolanaRpcFactory.logger;
        return _this;
    }
    return MockRetrySolanaRpcFactory;
}(RetrySolanaRpcFactory));
export { MockRetrySolanaRpcFactory };
//# sourceMappingURL=MockRetrySolanaRpcFactory.js.map