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Q,kBACrE,uBAAuB,KAAM,8BAA+B,KAAK,YAAY,EACvF,IACA,uBAAuB,KAAM,oBAAqB,KAAK,kBAAkB,GAAS,KAClF,uBAAuB,KAAM,8BAA+B,IAAI,WAAW,iBAAiB,uBAAuB,KAAM,oBAAqB,KAAK,cAAe,IACtK,EAEJ,QAAQ,YAAc,YACtB,oBAAsB,IAAI,QAAW,8BAAgC,IAAI","file":"/npm/@gelatonetwork/relay-sdk@5.7.0/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@gelatonetwork/relay-sdk@5.7.0/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\nvar __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n    if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n    if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n    if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n    return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n};\nvar __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n    if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n    if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n    return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n};\nvar _GelatoRelay_config, _GelatoRelay_websocketHandler;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.GelatoRelay = exports.TaskState = exports.ERC2771Type = void 0;\nconsole.warn(\"[@gelatonetwork/relay-sdk] This package is deprecated. Please migrate to @gelatocloud/gasless. See https://www.npmjs.com/package/@gelatocloud/gasless\");\nconst library = __importStar(require(\"./lib\"));\nconst types_1 = require(\"./lib/erc2771/types\");\nObject.defineProperty(exports, \"ERC2771Type\", { enumerable: true, get: function () { return types_1.ERC2771Type; } });\nconst types_2 = require(\"./lib/status/types\");\nObject.defineProperty(exports, \"TaskState\", { enumerable: true, get: function () { return types_2.TaskState; } });\nconst constants_1 = require(\"./constants\");\nconst index_js_1 = require(\"./utils/index.js\");\nclass GelatoRelay {\n    constructor(config) {\n        _GelatoRelay_config.set(this, void 0);\n        _GelatoRelay_websocketHandler.set(this, void 0);\n        /**\n         * @param {Config} config Configuration\n         */\n        this.configure = (config) => {\n            __classPrivateFieldSet(this, _GelatoRelay_config, this._getConfiguration(config), \"f\");\n        };\n        this._getConfiguration = (config) => {\n            var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;\n            const url = (_a = config === null || config === void 0 ? void 0 : config.url) !== null && _a !== void 0 ? _a : constants_1.GELATO_RELAY_URL;\n            return {\n                url,\n                websocketUrl: url.replace(/^http/, \"ws\"),\n                contract: {\n                    relayERC2771: (_c = (_b = config === null || config === void 0 ? void 0 : config.contract) === null || _b === void 0 ? void 0 : _b.relayERC2771) !== null && _c !== void 0 ? _c : constants_1.GELATO_RELAY_ERC2771_ADDRESS,\n                    relay1BalanceERC2771: (_e = (_d = config === null || config === void 0 ? void 0 : config.contract) === null || _d === void 0 ? void 0 : _d.relay1BalanceERC2771) !== null && _e !== void 0 ? _e : constants_1.GELATO_RELAY_1BALANCE_ERC2771_ADDRESS,\n                    relayERC2771zkSync: (_g = (_f = config === null || config === void 0 ? void 0 : config.contract) === null || _f === void 0 ? void 0 : _f.relayERC2771zkSync) !== null && _g !== void 0 ? _g : constants_1.GELATO_RELAY_ERC2771_ZKSYNC_ADDRESS,\n                    relayERC2771Abstract: (_j = (_h = config === null || config === void 0 ? void 0 : config.contract) === null || _h === void 0 ? void 0 : _h.relayERC2771Abstract) !== null && _j !== void 0 ? _j : constants_1.GELATO_RELAY_ERC2771_ABSTRACT_ADDRESS,\n                    relay1BalanceERC2771zkSync: (_l = (_k = config === null || config === void 0 ? void 0 : config.contract) === null || _k === void 0 ? void 0 : _k.relay1BalanceERC2771zkSync) !== null && _l !== void 0 ? _l : constants_1.GELATO_RELAY_1BALANCE_ERC2771_ZKSYNC_ADDRESS,\n                    relay1BalanceERC2771Abstract: (_o = (_m = config === null || config === void 0 ? void 0 : config.contract) === null || _m === void 0 ? void 0 : _m.relay1BalanceERC2771Abstract) !== null && _o !== void 0 ? _o : constants_1.GELATO_RELAY_1BALANCE_ERC2771_ABSTRACT_ADDRESS,\n                    relayConcurrentERC2771: (_q = (_p = config === null || config === void 0 ? void 0 : config.contract) === null || _p === void 0 ? void 0 : _p.relayConcurrentERC2771) !== null && _q !== void 0 ? _q : constants_1.GELATO_RELAY_CONCURRENT_ERC2771_ADDRESS,\n                    relay1BalanceConcurrentERC2771: (_s = (_r = config === null || config === void 0 ? void 0 : config.contract) === null || _r === void 0 ? void 0 : _r.relay1BalanceConcurrentERC2771) !== null && _s !== void 0 ? _s : constants_1.GELATO_RELAY_1BALANCE_CONCURRENT_ERC2771_ADDRESS,\n                    relayConcurrentERC2771zkSync: (_u = (_t = config === null || config === void 0 ? void 0 : config.contract) === null || _t === void 0 ? void 0 : _t.relayConcurrentERC2771zkSync) !== null && _u !== void 0 ? _u : constants_1.GELATO_RELAY_CONCURRENT_ERC2771_ZKSYNC_ADDRESS,\n                    relayConcurrentERC2771Abstract: (_w = (_v = config === null || config === void 0 ? void 0 : config.contract) === null || _v === void 0 ? void 0 : _v.relayConcurrentERC2771Abstract) !== null && _w !== void 0 ? _w : constants_1.GELATO_RELAY_CONCURRENT_ERC2771_ABSTRACT_ADDRESS,\n                    relay1BalanceConcurrentERC2771zkSync: (_y = (_x = config === null || config === void 0 ? void 0 : config.contract) === null || _x === void 0 ? void 0 : _x.relay1BalanceConcurrentERC2771zkSync) !== null && _y !== void 0 ? _y : constants_1.GELATO_RELAY_1BALANCE_CONCURRENT_ERC2771_ZKSYNC_ADDRESS,\n                    relay1BalanceConcurrentERC2771Abstract: (_0 = (_z = config === null || config === void 0 ? void 0 : config.contract) === null || _z === void 0 ? void 0 : _z.relay1BalanceConcurrentERC2771Abstract) !== null && _0 !== void 0 ? _0 : constants_1.GELATO_RELAY_1BALANCE_CONCURRENT_ERC2771_ABSTRACT_ADDRESS,\n                },\n            };\n        };\n        /**\n         * @param {CallWithSyncFeeRequest} request - CallWithSyncFee request to be relayed by Gelato Executors\n         * @param {RelayRequestOptions} [options] - Optional Relay configuration\n         * @param {string} [sponsorApiKey] Optional Sponsor API key to be used for the call\n         * @returns {Promise<RelayResponse>} Response object with taskId parameter\n         *\n         */\n        this.callWithSyncFee = (request, options, sponsorApiKey) => __awaiter(this, void 0, void 0, function* () {\n            const response = yield library.relayWithSyncFee({ request, sponsorApiKey, options }, __classPrivateFieldGet(this, _GelatoRelay_config, \"f\"));\n            if (__classPrivateFieldGet(this, _GelatoRelay_websocketHandler, \"f\").hasHandlers()) {\n                yield __classPrivateFieldGet(this, _GelatoRelay_websocketHandler, \"f\").subscribe(response.taskId);\n            }\n            return response;\n        });\n        /**\n         * @param {CallWithSyncFeeERC2771Request | CallWithSyncFeeConcurrentERC2771Request} request - Call with sync fee: Sequential ERC2771 or Concurrent ERC2771 request to be relayed by Gelato Executors\n         * @param {SignerOrProvider} signerOrProvider - BrowserProvider [front-end] or Signer [back-end] to sign the payload\n         * @param {RelayRequestOptions} [options] - Optional Relay configuration\n         * @param {string} [sponsorApiKey] Optional Sponsor API key to be used for the call\n         * @returns {Promise<RelayResponse>} Response object with taskId parameter\n         *\n         */\n        this.callWithSyncFeeERC2771 = (request, signerOrProvider, options, sponsorApiKey) => __awaiter(this, void 0, void 0, function* () {\n            const response = yield library.relayWithCallWithSyncFeeERC2771({\n                request,\n                signerOrProvider,\n                sponsorApiKey,\n                options,\n            }, __classPrivateFieldGet(this, _GelatoRelay_config, \"f\"));\n            if (__classPrivateFieldGet(this, _GelatoRelay_websocketHandler, \"f\").hasHandlers()) {\n                yield __classPrivateFieldGet(this, _GelatoRelay_websocketHandler, \"f\").subscribe(response.taskId);\n            }\n            return response;\n        });\n        /**\n         * @param {SponsoredCallRequest} request SponsoredCallRequest to be relayed by the Gelato Executors.\n         * @param {string} sponsorApiKey Sponsor API key to be used for the call\n         * @param {RelayRequestOptions} [options] Optional Relay configuration\n         * @returns {Promise<RelayResponse>} Response object with taskId parameter\n         *\n         */\n        this.sponsoredCall = (request, sponsorApiKey, options) => __awaiter(this, void 0, void 0, function* () {\n            const response = yield library.relayWithSponsoredCall({ request, sponsorApiKey, options }, __classPrivateFieldGet(this, _GelatoRelay_config, \"f\"));\n            if (__classPrivateFieldGet(this, _GelatoRelay_websocketHandler, \"f\").hasHandlers()) {\n                yield __classPrivateFieldGet(this, _GelatoRelay_websocketHandler, \"f\").subscribe(response.taskId);\n            }\n            return response;\n        });\n        /**\n         * @param {CallWithERC2771Request | CallWithConcurrentERC2771Request} request - Sponsored: Sequential ERC2771 or Concurrent ERC2771 request to be relayed by Gelato Executors\n         * @param {SignerOrProvider} signerOrProvider - BrowserProvider [front-end] or Signer [back-end] to sign the payload\n         * @param {string} sponsorApiKey - Sponsor API key\n         * @param {RelayRequestOptions} [options] - Optional Relay configuration\n         * @returns {Promise<RelayResponse>} Response object with taskId parameter\n         *\n         */\n        this.sponsoredCallERC2771 = (request, signerOrProvider, sponsorApiKey, options) => __awaiter(this, void 0, void 0, function* () {\n            const response = yield library.relayWithSponsoredCallERC2771({\n                request,\n                signerOrProvider,\n                sponsorApiKey,\n                options,\n            }, __classPrivateFieldGet(this, _GelatoRelay_config, \"f\"));\n            if (__classPrivateFieldGet(this, _GelatoRelay_websocketHandler, \"f\").hasHandlers()) {\n                yield __classPrivateFieldGet(this, _GelatoRelay_websocketHandler, \"f\").subscribe(response.taskId);\n            }\n            return response;\n        });\n        /**\n         * @param {CallWithERC2771Request | CallWithConcurrentERC2771Request} request - Sequential ERC2771 or Concurrent ERC2771 request to be relayed by Gelato Executors\n         * @param {SignerOrProvider} signerOrProvider - BrowserProvider [front-end] or Signer [back-end] to sign the payload\n         * @param {ERC2771Type} type - ERC2771Type.CallWithSyncFee or ERC2771Type.SponsoredCall\n         * @returns {Promise<SignatureData>} Response object with struct and signature\n         *\n         */\n        this.getSignatureDataERC2771 = (request, signerOrProvider, type) => library.getSignatureDataERC2771({ request, signerOrProvider, type }, __classPrivateFieldGet(this, _GelatoRelay_config, \"f\"));\n        /**\n         * @param {CallWithERC2771Request | CallWithConcurrentERC2771Request} request - Sequential ERC2771 or Concurrent ERC2771 request to be relayed by Gelato Executors\n         * @param {SignerOrProvider} [signerOrProvider] - Optional BrowserProvider [front-end] or Signer [back-end] to sign the payload\n         * @param {ERC2771Type} type - ERC2771Type.CallWithSyncFee or ERC2771Type.SponsoredCall\n         * @returns {Promise<PayloadToSign>} Response object with struct and typed data\n         *\n         */\n        this.getDataToSignERC2771 = (request, type, signerOrProvider) => library.getDataToSignERC2771({ request, signerOrProvider, type }, __classPrivateFieldGet(this, _GelatoRelay_config, \"f\"));\n        /**\n         * @param {SignatureData[\"struct\"]} struct - Struct that can be obtained from getSignatureDataERC2771\n         * @param {SignatureData[\"signature\"]} signature - Signature that can be obtained from getSignatureDataERC2771\n         * @param {string} sponsorApiKey - Sponsor API key\n         * @param {RelayRequestOptions} [options] - Optional Relay configuration\n         * @returns {Promise<RelayResponse>} Response object with taskId parameter\n         *\n         */\n        this.sponsoredCallERC2771WithSignature = (struct, signature, sponsorApiKey, options) => __awaiter(this, void 0, void 0, function* () {\n            const response = yield library.sponsoredCallERC2771WithSignature({\n                struct,\n                signature,\n                sponsorApiKey,\n                options,\n            }, __classPrivateFieldGet(this, _GelatoRelay_config, \"f\"));\n            if (__classPrivateFieldGet(this, _GelatoRelay_websocketHandler, \"f\").hasHandlers()) {\n                yield __classPrivateFieldGet(this, _GelatoRelay_websocketHandler, \"f\").subscribe(response.taskId);\n            }\n            return response;\n        });\n        /**\n         * @param {SignatureData[\"struct\"]} struct - Struct that can be obtained from getSignatureDataERC2771\n         * @param {BaseCallWithSyncFeeParams} syncFeeParams - Call with Sync Fee parameters\n         * @param {SignatureData[\"signature\"]} signature - Signature that can be obtained from getSignatureDataERC2771\n         * @param {RelayRequestOptions} [options] - Optional Relay configuration\n         * @param {string} [sponsorApiKey] Optional Sponsor API key to be used for the call\n         * @returns {Promise<RelayResponse>} Response object with taskId parameter\n         *\n         */\n        this.callWithSyncFeeERC2771WithSignature = (struct, syncFeeParams, signature, options, sponsorApiKey) => __awaiter(this, void 0, void 0, function* () {\n            const response = yield library.callWithSyncFeeERC2771WithSignature({\n                struct,\n                syncFeeParams,\n                signature,\n                options,\n                sponsorApiKey,\n            }, __classPrivateFieldGet(this, _GelatoRelay_config, \"f\"));\n            if (__classPrivateFieldGet(this, _GelatoRelay_websocketHandler, \"f\").hasHandlers()) {\n                yield __classPrivateFieldGet(this, _GelatoRelay_websocketHandler, \"f\").subscribe(response.taskId);\n            }\n            return response;\n        });\n        /**\n         * @param {bigint} chainId - Chain Id\n         * @returns {Promise<boolean>} Boolean to demonstrate if Relay V2 is supported on the provided chain\n         */\n        this.isNetworkSupported = (chainId) => library.isNetworkSupported({ chainId }, __classPrivateFieldGet(this, _GelatoRelay_config, \"f\"));\n        /**\n         * @returns {Promise<string[]>} List of networks where Relay V2 is supported\n         */\n        this.getSupportedNetworks = () => library.getSupportedNetworks(__classPrivateFieldGet(this, _GelatoRelay_config, \"f\"));\n        /**\n         * @param {bigint} chainId - Chain Id\n         * @returns {Promise<boolean>} Boolean to demonstrate if the oracle is active on the provided chain\n         */\n        this.isOracleActive = (chainId) => library.isOracleActive({ chainId }, __classPrivateFieldGet(this, _GelatoRelay_config, \"f\"));\n        /**\n         * @returns {Promise<string[]>} List of chain ids where the Gelato Oracle is active\n         */\n        this.getGelatoOracles = () => library.getGelatoOracles(__classPrivateFieldGet(this, _GelatoRelay_config, \"f\"));\n        /**\n         * @param {bigint} chainId - Chain Id\n         * @returns {Promise<string[]>} List of all payment tokens on the provided chain\n         *\n         */\n        this.getPaymentTokens = (chainId) => library.getPaymentTokens({ chainId }, __classPrivateFieldGet(this, _GelatoRelay_config, \"f\"));\n        /**\n         * @param {bigint} chainId - Chain Id\n         * @param {string} paymentToken - Payment Token\n         * @param {bigint} gasLimit - Gas Limit\n         * @param {boolean} isHighPriority - Priority Level\n         * @param {bigint} [gasLimitL1=BigInt(0)] - Gas Limit for Layer 1\n         * @returns {Promise<bigint>} Estimated Fee\n         *\n         */\n        this.getEstimatedFee = (chainId, paymentToken, gasLimit, isHighPriority, gasLimitL1 = BigInt(0)) => library.getEstimatedFee({ chainId, paymentToken, gasLimit, isHighPriority, gasLimitL1 }, __classPrivateFieldGet(this, _GelatoRelay_config, \"f\"));\n        /**\n         * @param {string} taskId - Task Id\n         * @returns {Promise<TransactionStatusResponse | undefined>} Transaction status of the task id\n         *\n         */\n        this.getTaskStatus = (taskId) => library.getTaskStatus({ taskId }, __classPrivateFieldGet(this, _GelatoRelay_config, \"f\"));\n        /**\n         * @param {callback} handler - Callback function to be called on every task status update\n         *\n         */\n        this.onTaskStatusUpdate = (handler) => {\n            __classPrivateFieldGet(this, _GelatoRelay_websocketHandler, \"f\").onUpdate(handler);\n        };\n        /**\n         * @param {callback} handler - Callback function to be unregistered from task status updates\n         *\n         */\n        this.offTaskStatusUpdate = (handler) => {\n            __classPrivateFieldGet(this, _GelatoRelay_websocketHandler, \"f\").offUpdate(handler);\n        };\n        /**\n         * @param {callback} handler - Callback function to be called on error\n         *\n         */\n        this.onError = (handler) => {\n            __classPrivateFieldGet(this, _GelatoRelay_websocketHandler, \"f\").onError(handler);\n        };\n        /**\n         * @param {callback} handler - Callback function to be unregistered as an error handler\n         *\n         */\n        this.offError = (handler) => {\n            __classPrivateFieldGet(this, _GelatoRelay_websocketHandler, \"f\").offError(handler);\n        };\n        /**\n         * @param {string} taskId - Task Id\n         *\n         */\n        this.subscribeTaskStatusUpdate = (taskId) => __awaiter(this, void 0, void 0, function* () {\n            yield __classPrivateFieldGet(this, _GelatoRelay_websocketHandler, \"f\").subscribe(taskId);\n        });\n        /**\n         * @param {string} taskId - Task Id\n         *\n         */\n        this.unsubscribeTaskStatusUpdate = (taskId) => __awaiter(this, void 0, void 0, function* () {\n            yield __classPrivateFieldGet(this, _GelatoRelay_websocketHandler, \"f\").unsubscribe(taskId);\n        });\n        __classPrivateFieldSet(this, _GelatoRelay_config, this._getConfiguration(config), \"f\");\n        __classPrivateFieldSet(this, _GelatoRelay_websocketHandler, new index_js_1.WebsocketHandler(__classPrivateFieldGet(this, _GelatoRelay_config, \"f\").websocketUrl), \"f\");\n    }\n}\nexports.GelatoRelay = GelatoRelay;\n_GelatoRelay_config = new WeakMap(), _GelatoRelay_websocketHandler = new WeakMap();\n"]}