{"version":3,"sources":["../../../src/index.ts","../../../src/sdk.ts","../../../../src/communication/index.ts","../../../../src/communication/messageFormatter.ts","../../../src/utils.ts","../../../../src/communication/utils.ts","../../../../src/txs/index.ts","../../../../src/eth/index.ts","../../../../src/eth/constants.ts","../../../src/types.ts","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/asyncToGenerator.js","../../../../src/communication/methods.ts"],"names":["window","id","success","error","version","asyncGeneratorStep","gen","resolve","reject","_next","_throw","key","arg","info","value","done","Promise","then","module","exports","fn","self","this","args","arguments","apply","err","undefined"],"mappings":"6lBAAA,iBAEA,UAAe,UACf,aACA,aACA,YACA,aACA,cAAS,iG,yMCPT,cAEA,aACA,UACA,UAOM,E,WAKF,SAAF,IAA2B,IAAf,EAAe,uDAAF,GACnB,GADqB,UACH,qBAAX,OACT,MAAM,IAAI,MAAM,mDAFO,MAK4B,EAA7C,0BALiB,MAKI,KALJ,IAK4B,EAAlB,aALV,SAOzB,KAAK,aAAe,IAAI,UAAsB,EAAoB,GAClE,KAAK,IAAM,IAAI,MAAI,KAAK,cACpB,KAAC,IAAM,IAAI,MAAI,KAAK,cACpB,KAAC,Y,8DAGC,oGACyB,KAAK,aAD9B,gBACE,EADF,EACE,aAER,KAAK,IAAI,gBAAgB,GAHnB,gD,yGAMA,kGACiB,KAAK,aAAa,KAAuC,UAAQ,gBAAY,GAD9F,WACA,EADA,QAGQ,QAHR,sBAIE,IAAI,MAAM,EAAS,OAJrB,gCAOC,EAAS,MAPV,gD,0GAUR,kGACyB,KAAK,aAAa,KAAyC,UAAQ,iBAAa,GADzG,WACQ,EADR,QAGgB,QAHhB,sBAIU,IAAI,MAAM,EAAS,OAJ7B,gCAOS,EAAS,MAPlB,gD,6DAWF,UAAe,G,qaCvDf,IAAI,EAAJ,QAoEA,UA1DE,aAAqE,WAAzD,EAAyD,uDAAvB,KAAM,EAAiB,kEAJpD,oBAAkC,KAC3C,eAAY,IAAI,IAChB,gBAAY,EASZ,oBAAiB,YAA6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yB,8B,gJCT7B,QAqFA,SAAY,GACV,mBACA,qCACA,uBAHF,CAAY,0BAAS,KAOrB,SAAY,GACV,sBACA,+BACA,wCAHF,CAAY,sCAAe,KAM3B,SAAY,GACV,gBACA,4CACA,mDACA,6BACA,yDACA,yBACA,qCACA,wCACA,+BACA,iCACA,2DACA,6BACA,qCAbF,CAAY,kDAAqB,M,kBClGjC,SAASC,EAAmBC,EAAKC,EAASC,EAAQC,EAAOC,EAAQC,EAAKC,GACpE,IACE,IAAIC,EAAOP,EAAIK,GAAKC,GAChBE,EAAQD,EAAKC,MACjB,MAAOX,GAEP,YADAK,EAAOL,GAILU,EAAKE,KACPR,EAAQO,GAERE,QAAQT,QAAQO,GAAOG,KAAKR,EAAOC,GAwBvCQ,EAAOC,QApBP,SAA2BC,GACzB,OAAO,WACL,IAAIC,EAAOC,KACPC,EAAOC,UACX,OAAO,IAAIR,SAAQ,SAAUT,EAASC,GACpC,IAAIF,EAAMc,EAAGK,MAAMJ,EAAME,GAEzB,SAASd,EAAMK,GACbT,EAAmBC,EAAKC,EAASC,EAAQC,EAAOC,EAAQ,OAAQI,GAGlE,SAASJ,EAAOgB,GACdrB,EAAmBC,EAAKC,EAASC,EAAQC,EAAOC,EAAQ,QAASgB,GAGnEjB,OAAMkB,S,mGC/BC,UAAU,CACrB,WAAY,aACZ,iBAAkB,mBAClB,QAAS,UACP,YAAW","file":"static/js/14.221f06fa.chunk.js","sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getSDKVersion = void 0;\nconst sdk_1 = __importDefault(require(\"./sdk\"));\nexports.default = sdk_1.default;\n__exportStar(require(\"./sdk\"), exports);\n__exportStar(require(\"./types\"), exports);\n__exportStar(require(\"./communication/methods\"), exports);\n__exportStar(require(\"./communication/messageFormatter\"), exports);\nvar utils_1 = require(\"./utils\");\nObject.defineProperty(exports, \"getSDKVersion\", { enumerable: true, get: function () { return utils_1.getSDKVersion; } });\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst communication_1 = require(\"./communication\");\nconst communication_2 = __importDefault(require(\"./communication\"));\nconst txs_1 = require(\"./txs\");\nconst eth_1 = require(\"./eth\");\nclass SafeAppsSDK {\n constructor(opts = {}) {\n if (typeof window === 'undefined') {\n throw new Error('Error initializing the sdk: window is undefined');\n }\n const { whitelistedDomains = null, debug = false } = opts;\n this.communicator = new communication_2.default(whitelistedDomains, debug);\n this.eth = new eth_1.Eth(this.communicator);\n this.txs = new txs_1.TXs(this.communicator);\n this.bootstrap();\n }\n async bootstrap() {\n const { txServiceUrl } = await this.getEnvInfo();\n this.txs.setTxServiceUrl(txServiceUrl);\n }\n async getEnvInfo() {\n const response = await this.communicator.send(communication_1.METHODS.getEnvInfo, undefined);\n if (!response.success) {\n throw new Error(response.error);\n }\n return response.data;\n }\n async getSafeInfo() {\n const response = await this.communicator.send(communication_1.METHODS.getSafeInfo, undefined);\n if (!response.success) {\n throw new Error(response.error);\n }\n return response.data;\n }\n}\nexports.default = SafeAppsSDK;\n//# sourceMappingURL=sdk.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst messageFormatter_1 = require(\"./messageFormatter\");\nclass PostMessageCommunicator {\n constructor(allowedOrigins = null, debugMode = false) {\n this.allowedOrigins = null;\n this.callbacks = new Map();\n this.debugMode = false;\n this.isValidMessage = ({ origin, data, source }) => {\n const emptyOrMalformed = !data;\n const sentFromParentEl = source === window.parent;\n const majorVersionNumber = typeof data.version !== 'undefined' && parseInt(data.version.split('.')[0]);\n const allowedSDKVersion = majorVersionNumber >= 1;\n let validOrigin = true;\n if (Array.isArray(this.allowedOrigins)) {\n validOrigin = this.allowedOrigins.find((regExp) => regExp.test(origin)) !== undefined;\n }\n return !emptyOrMalformed && sentFromParentEl && allowedSDKVersion && validOrigin;\n };\n this.logIncomingMessage = (msg) => {\n console.info(`Safe Apps SDK v1: A message was received from origin ${msg.origin}. `, msg.data);\n };\n this.onParentMessage = (msg) => {\n if (this.isValidMessage(msg)) {\n this.debugMode && this.logIncomingMessage(msg);\n this.handleIncomingMessage(msg.data);\n }\n };\n this.handleIncomingMessage = (payload) => {\n const { id } = payload;\n const cb = this.callbacks.get(id);\n if (cb) {\n cb(payload);\n this.callbacks.delete(id);\n }\n };\n this.send = (method, params) => {\n const request = messageFormatter_1.MessageFormatter.makeRequest(method, params);\n if (typeof window === 'undefined') {\n throw new Error(\"Window doesn't exist\");\n }\n window.parent.postMessage(request, '*');\n return new Promise((resolve) => {\n this.callbacks.set(request.id, (response) => {\n resolve(response);\n });\n });\n };\n this.allowedOrigins = allowedOrigins;\n this.debugMode = debugMode;\n window.addEventListener('message', this.onParentMessage);\n }\n}\nexports.default = PostMessageCommunicator;\n__exportStar(require(\"./methods\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.MessageFormatter = void 0;\nconst utils_1 = require(\"./utils\");\nconst utils_2 = require(\"../utils\");\nclass MessageFormatter {\n}\nexports.MessageFormatter = MessageFormatter;\nMessageFormatter.makeRequest = (method, params) => {\n const id = utils_1.generateRequestId();\n return {\n id,\n method,\n params,\n env: {\n sdkVersion: utils_2.getSDKVersion(),\n },\n };\n};\nMessageFormatter.makeResponse = (id, data, version) => ({\n id,\n success: true,\n version,\n data,\n});\nMessageFormatter.makeErrorResponse = (id, error, version) => ({\n id,\n success: false,\n error,\n version,\n});\n//# sourceMappingURL=messageFormatter.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getSDKVersion = void 0;\nconst package_json_1 = __importDefault(require(\"../package.json\"));\n// console.log({ pkg });\n// Slice is needed for versions like '1.0.0-beta.0'\nconst getSDKVersion = () => package_json_1.default.version.slice(0, 5);\nexports.getSDKVersion = getSDKVersion;\n//# sourceMappingURL=utils.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.generateRequestId = void 0;\n// i.e. 0-255 -> '00'-'ff'\nconst dec2hex = (dec) => dec.toString(16).padStart(2, '0');\nconst generateId = (len) => {\n const arr = new Uint8Array((len || 40) / 2);\n window.crypto.getRandomValues(arr);\n return Array.from(arr, dec2hex).join('');\n};\nconst generateRequestId = () => {\n if (typeof window !== 'undefined') {\n return generateId(10);\n }\n return new Date().getTime().toString(36);\n};\nexports.generateRequestId = generateRequestId;\n//# sourceMappingURL=utils.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TXs = void 0;\nconst methods_1 = require(\"../communication/methods\");\nclass TXs {\n constructor(communicator) {\n this.txServiceUrl = null;\n this.communicator = communicator;\n }\n async getBySafeTxHash(safeTxHash) {\n if (!this.txServiceUrl) {\n throw new Error(\"ENV information hasn't been synced yet or there was an error during the process\");\n }\n const controller = new AbortController();\n const options = {\n method: 'GET',\n signal: controller.signal,\n };\n setTimeout(() => controller.abort(), 10000);\n try {\n const res = await fetch(`${this.txServiceUrl}/transactions/${safeTxHash}`, options);\n if (res.status !== 200) {\n throw new Error(\"Failed to get the transaction. Either safeTxHash is incorrect or transaction hasn't been indexed by the service yet\");\n }\n const json = await res.json();\n return json;\n }\n catch (err) {\n throw err;\n }\n }\n async send({ txs, params }) {\n if (!txs || !txs.length) {\n throw new Error('No transactions were passed');\n }\n const messagePayload = {\n txs,\n params,\n };\n const response = await this.communicator.send(methods_1.METHODS.sendTransactions, messagePayload);\n if (!response.success) {\n throw new Error(response.error);\n }\n return response.data;\n }\n setTxServiceUrl(url) {\n this.txServiceUrl = url;\n }\n}\nexports.TXs = TXs;\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Eth = void 0;\nconst constants_1 = require(\"../eth/constants\");\nconst methods_1 = require(\"../communication/methods\");\nconst inputFormatters = {\n defaultBlockParam: (arg = 'latest') => arg,\n returnFullTxObjectParam: (arg = false) => arg,\n blockNumberToHex: (arg) => Number.isInteger(arg) ? `0x${arg.toString(16)}` : arg,\n};\nclass Eth {\n constructor(communicator) {\n this.communicator = communicator;\n this.call = this.buildRequest({\n call: constants_1.RPC_CALLS.eth_call,\n formatters: [null, inputFormatters.defaultBlockParam],\n });\n this.getBalance = this.buildRequest({\n call: constants_1.RPC_CALLS.eth_getBalance,\n formatters: [null, inputFormatters.defaultBlockParam],\n });\n this.getCode = this.buildRequest({\n call: constants_1.RPC_CALLS.eth_getCode,\n formatters: [null, inputFormatters.defaultBlockParam],\n });\n this.getStorageAt = this.buildRequest({\n call: constants_1.RPC_CALLS.eth_getStorageAt,\n formatters: [null, inputFormatters.blockNumberToHex, inputFormatters.defaultBlockParam],\n });\n this.getPastLogs = this.buildRequest({\n call: constants_1.RPC_CALLS.eth_getLogs,\n });\n this.getBlockByHash = this.buildRequest({\n call: constants_1.RPC_CALLS.eth_getBlockByHash,\n formatters: [null, inputFormatters.returnFullTxObjectParam],\n });\n this.getBlockByNumber = this.buildRequest({\n call: constants_1.RPC_CALLS.eth_getBlockByNumber,\n formatters: [inputFormatters.blockNumberToHex, inputFormatters.returnFullTxObjectParam],\n });\n this.getTransactionByHash = this.buildRequest({\n call: constants_1.RPC_CALLS.eth_getTransactionByHash,\n });\n this.getTransactionReceipt = this.buildRequest({\n call: constants_1.RPC_CALLS.eth_getTransactionReceipt,\n });\n }\n buildRequest({ call, formatters }) {\n return async (params) => {\n if (formatters && Array.isArray(params)) {\n formatters.forEach((formatter, i) => {\n if (formatter) {\n params[i] = formatter(params[i]);\n }\n });\n }\n const payload = {\n call,\n params,\n };\n const response = await this.communicator.send(methods_1.METHODS.rpcCall, payload);\n if (!response.success) {\n throw new Error(response.error);\n }\n return response.data;\n };\n }\n}\nexports.Eth = Eth;\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.RPC_CALLS = void 0;\nexports.RPC_CALLS = {\n eth_call: 'eth_call',\n eth_getLogs: 'eth_getLogs',\n eth_getBalance: 'eth_getBalance',\n eth_getCode: 'eth_getCode',\n eth_getBlockByHash: 'eth_getBlockByHash',\n eth_getBlockByNumber: 'eth_getBlockByNumber',\n eth_getStorageAt: 'eth_getStorageAt',\n eth_getTransactionByHash: 'eth_getTransactionByHash',\n eth_getTransactionReceipt: 'eth_getTransactionReceipt',\n};\n//# sourceMappingURL=constants.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SettingsChangeMethods = exports.TransferMethods = exports.Operation = void 0;\nconst methods_1 = require(\"./communication/methods\");\n// copy-pasting all the types below from safe-react makes me think we might want to export them to a package\nvar Operation;\n(function (Operation) {\n Operation[Operation[\"CALL\"] = 0] = \"CALL\";\n Operation[Operation[\"DELEGATE_CALL\"] = 1] = \"DELEGATE_CALL\";\n Operation[Operation[\"CREATE\"] = 2] = \"CREATE\";\n})(Operation = exports.Operation || (exports.Operation = {}));\n// types comes from: https://github.com/gnosis/safe-client-gateway/blob/752e76b6d1d475791dbd7917b174bb41d2d9d8be/src/utils.rs\nvar TransferMethods;\n(function (TransferMethods) {\n TransferMethods[\"TRANSFER\"] = \"transfer\";\n TransferMethods[\"TRANSFER_FROM\"] = \"transferFrom\";\n TransferMethods[\"SAFE_TRANSFER_FROM\"] = \"safeTransferFrom\";\n})(TransferMethods = exports.TransferMethods || (exports.TransferMethods = {}));\nvar SettingsChangeMethods;\n(function (SettingsChangeMethods) {\n SettingsChangeMethods[\"SETUP\"] = \"setup\";\n SettingsChangeMethods[\"SET_FALLBACK_HANDLER\"] = \"setFallbackHandler\";\n SettingsChangeMethods[\"ADD_OWNER_WITH_THRESHOLD\"] = \"addOwnerWithThreshold\";\n SettingsChangeMethods[\"REMOVE_OWNER\"] = \"removeOwner\";\n SettingsChangeMethods[\"REMOVE_OWNER_WITH_THRESHOLD\"] = \"removeOwnerWithThreshold\";\n SettingsChangeMethods[\"SWAP_OWNER\"] = \"swapOwner\";\n SettingsChangeMethods[\"CHANGE_THRESHOLD\"] = \"changeThreshold\";\n SettingsChangeMethods[\"CHANGE_MASTER_COPY\"] = \"changeMasterCopy\";\n SettingsChangeMethods[\"ENABLE_MODULE\"] = \"enableModule\";\n SettingsChangeMethods[\"DISABLE_MODULE\"] = \"disableModule\";\n SettingsChangeMethods[\"EXEC_TRANSACTION_FROM_MODULE\"] = \"execTransactionFromModule\";\n SettingsChangeMethods[\"APPROVE_HASH\"] = \"approveHash\";\n SettingsChangeMethods[\"EXEC_TRANSACTION\"] = \"execTransaction\";\n})(SettingsChangeMethods = exports.SettingsChangeMethods || (exports.SettingsChangeMethods = {}));\n//# sourceMappingURL=types.js.map","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator;","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.METHODS = void 0;\nexports.METHODS = {\n getEnvInfo: 'getEnvInfo',\n sendTransactions: 'sendTransactions',\n rpcCall: 'rpcCall',\n getSafeInfo: 'getSafeInfo',\n};\n//# sourceMappingURL=methods.js.map"],"sourceRoot":""}