"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var sdk_1 = __importDefault(require("@universal-login/sdk"));
exports.createServices = function (config, _a) {
    var provider = (_a === void 0 ? {} : _a).provider;
    var providerOrProviderUrl = provider || config.jsonRpcUrl;
    var sdk = new sdk_1.default(config.relayerUrl, providerOrProviderUrl, { applicationInfo: { type: 'laptop' }, observedTokensAddresses: config.tokens, saiTokenAddress: config.saiTokenAddress });
    sdk.featureFlagsService.enableAll(new URLSearchParams(window.location.search).getAll('feature'));
    return {
        sdk: sdk,
        config: config,
    };
};
exports.ServiceContext = react_1.default.createContext({});
//# sourceMappingURL=createServices.js.map