UNPKG

@biconomy/sdk

Version:

SDK for Biconomy integration with support for account abstraction, smart accounts, ERC-4337.

25 lines 1.18 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createMeeClient = void 0; const Utils_1 = require("../account/utils/Utils.js"); const createHttpClient_1 = require("./createHttpClient.js"); const mee_1 = require("./decorators/mee/index.js"); const DEFAULT_MEE_NODE_URL = "https://mee-node.biconomy.io"; const createMeeClient = (params) => { (0, Utils_1.inProduction)() && console.warn(` --------------------------- READ ---------------------------------------------- You are using the Developer Preview of the Biconomy MEE. The underlying contracts are still being audited, and the multichain tokens exported from this package are yet to be verified. -------------------------------------------------------------------------------`); const { url = DEFAULT_MEE_NODE_URL, pollingInterval = 1000, account } = params; const httpClient = (0, createHttpClient_1.default)(url); const baseMeeClient = Object.assign(httpClient, { pollingInterval, account }); return baseMeeClient.extend(mee_1.meeActions); }; exports.createMeeClient = createMeeClient; //# sourceMappingURL=createMeeClient.js.map