mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 16:51:02 +00:00
1 line
7.0 KiB
Plaintext
1 line
7.0 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":76,"index":76}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"./Getters.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":77},"end":{"line":2,"column":39,"index":116}}],"key":"M4Z9Nb5XXBiIDtq7qlwUX/8wyi0=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n Object.defineProperty(exports, \"ApiBase\", {\n enumerable: true,\n get: function () {\n return ApiBase;\n }\n });\n var _polkadotUtil = require(_dependencyMap[0], \"@polkadot/util\");\n var _GettersJs = require(_dependencyMap[1], \"./Getters.js\");\n class ApiBase extends _GettersJs.Getters {\n /**\n * @description Create an instance of the class\n *\n * @param options Options object to create API instance or a Provider instance\n *\n * @example\n * <BR>\n *\n * ```javascript\n * import Api from '@polkadot/api/promise';\n *\n * const api = new Api().isReady();\n *\n * api.rpc.subscribeNewHeads((header) => {\n * console.log(`new block #${header.number.toNumber()}`);\n * });\n * ```\n */\n constructor(options = {}, type, decorateMethod) {\n super(options, type, decorateMethod);\n }\n /**\n * @description Connect from the underlying provider, halting all network traffic\n */\n connect() {\n return this._rpcCore.connect();\n }\n /**\n * @description Disconnect from the underlying provider, halting all network traffic\n */\n disconnect() {\n this._unsubscribe();\n return this._rpcCore.disconnect();\n }\n /**\n * @description Set an external signer which will be used to sign extrinsic when account passed in is not KeyringPair\n */\n setSigner(signer) {\n this._rx.signer = signer;\n }\n /**\n * @description Signs a raw signer payload, string or Uint8Array\n */\n async sign(address, data, {\n signer\n } = {}) {\n if ((0, _polkadotUtil.isString)(address)) {\n const _signer = signer || this._rx.signer;\n if (!_signer?.signRaw) {\n throw new Error('No signer exists with a signRaw interface. You possibly need to pass through an explicit keypair for the origin so it can be used for signing.');\n }\n return (await _signer.signRaw((0, _polkadotUtil.objectSpread)({\n type: 'bytes'\n }, data, {\n address\n }))).signature;\n }\n return (0, _polkadotUtil.u8aToHex)(address.sign((0, _polkadotUtil.u8aToU8a)(data.data)));\n }\n }\n});","lineCount":76,"map":[[7,2,3,0,"Object"],[7,8,3,0],[7,9,3,0,"defineProperty"],[7,23,3,0],[7,24,3,0,"exports"],[7,31,3,0],[8,4,3,0,"enumerable"],[8,14,3,0],[9,4,3,0,"get"],[9,7,3,0],[9,18,3,0,"get"],[9,19,3,0],[10,6,3,0],[10,13,3,0,"ApiBase"],[10,20,3,0],[11,4,3,0],[12,2,3,0],[13,2,1,0],[13,6,1,0,"_polkadotUtil"],[13,19,1,0],[13,22,1,0,"require"],[13,29,1,0],[13,30,1,0,"_dependencyMap"],[13,44,1,0],[14,2,2,0],[14,6,2,0,"_GettersJs"],[14,16,2,0],[14,19,2,0,"require"],[14,26,2,0],[14,27,2,0,"_dependencyMap"],[14,41,2,0],[15,2,3,7],[15,8,3,13,"ApiBase"],[15,15,3,20],[15,24,3,29,"Getters"],[15,34,3,36],[15,35,3,36,"Getters"],[15,42,3,36],[15,43,3,37],[16,4,4,4],[17,0,5,0],[18,0,6,0],[19,0,7,0],[20,0,8,0],[21,0,9,0],[22,0,10,0],[23,0,11,0],[24,0,12,0],[25,0,13,0],[26,0,14,0],[27,0,15,0],[28,0,16,0],[29,0,17,0],[30,0,18,0],[31,0,19,0],[32,0,20,0],[33,0,21,0],[34,4,22,4,"constructor"],[34,15,22,15,"constructor"],[34,16,22,16,"options"],[34,23,22,23],[34,26,22,26],[34,27,22,27],[34,28,22,28],[34,30,22,30,"type"],[34,34,22,34],[34,36,22,36,"decorateMethod"],[34,50,22,50],[34,52,22,52],[35,6,23,8],[35,11,23,13],[35,12,23,14,"options"],[35,19,23,21],[35,21,23,23,"type"],[35,25,23,27],[35,27,23,29,"decorateMethod"],[35,41,23,43],[35,42,23,44],[36,4,24,4],[37,4,25,4],[38,0,26,0],[39,0,27,0],[40,4,28,4,"connect"],[40,11,28,11,"connect"],[40,12,28,11],[40,14,28,14],[41,6,29,8],[41,13,29,15],[41,17,29,19],[41,18,29,20,"_rpcCore"],[41,26,29,28],[41,27,29,29,"connect"],[41,34,29,36],[41,35,29,37],[41,36,29,38],[42,4,30,4],[43,4,31,4],[44,0,32,0],[45,0,33,0],[46,4,34,4,"disconnect"],[46,14,34,14,"disconnect"],[46,15,34,14],[46,17,34,17],[47,6,35,8],[47,10,35,12],[47,11,35,13,"_unsubscribe"],[47,23,35,25],[47,24,35,26],[47,25,35,27],[48,6,36,8],[48,13,36,15],[48,17,36,19],[48,18,36,20,"_rpcCore"],[48,26,36,28],[48,27,36,29,"disconnect"],[48,37,36,39],[48,38,36,40],[48,39,36,41],[49,4,37,4],[50,4,38,4],[51,0,39,0],[52,0,40,0],[53,4,41,4,"setSigner"],[53,13,41,13,"setSigner"],[53,14,41,14,"signer"],[53,20,41,20],[53,22,41,22],[54,6,42,8],[54,10,42,12],[54,11,42,13,"_rx"],[54,14,42,16],[54,15,42,17,"signer"],[54,21,42,23],[54,24,42,26,"signer"],[54,30,42,32],[55,4,43,4],[56,4,44,4],[57,0,45,0],[58,0,46,0],[59,4,47,4],[59,10,47,10,"sign"],[59,14,47,14,"sign"],[59,15,47,15,"address"],[59,22,47,22],[59,24,47,24,"data"],[59,28,47,28],[59,30,47,30],[60,6,47,32,"signer"],[61,4,47,39],[61,5,47,40],[61,8,47,43],[61,9,47,44],[61,10,47,45],[61,12,47,47],[62,6,48,8],[62,10,48,12],[62,14,48,12,"isString"],[62,27,48,20],[62,28,48,20,"isString"],[62,36,48,20],[62,38,48,21,"address"],[62,45,48,28],[62,46,48,29],[62,48,48,31],[63,8,49,12],[63,14,49,18,"_signer"],[63,21,49,25],[63,24,49,28,"signer"],[63,30,49,34],[63,34,49,38],[63,38,49,42],[63,39,49,43,"_rx"],[63,42,49,46],[63,43,49,47,"signer"],[63,49,49,53],[64,8,50,12],[64,12,50,16],[64,13,50,17,"_signer"],[64,20,50,24],[64,22,50,26,"signRaw"],[64,29,50,33],[64,31,50,35],[65,10,51,16],[65,16,51,22],[65,20,51,26,"Error"],[65,25,51,31],[65,26,51,32],[65,170,51,176],[65,171,51,177],[66,8,52,12],[67,8,53,12],[67,15,53,19],[67,16,53,20],[67,22,53,26,"_signer"],[67,29,53,33],[67,30,53,34,"signRaw"],[67,37,53,41],[67,38,53,42],[67,42,53,42,"objectSpread"],[67,55,53,54],[67,56,53,54,"objectSpread"],[67,68,53,54],[67,70,53,55],[68,10,53,57,"type"],[68,14,53,61],[68,16,53,63],[69,8,53,71],[69,9,53,72],[69,11,53,74,"data"],[69,15,53,78],[69,17,53,80],[70,10,53,82,"address"],[71,8,53,90],[71,9,53,91],[71,10,53,92],[71,11,53,93],[71,13,53,95,"signature"],[71,22,53,104],[72,6,54,8],[73,6,55,8],[73,13,55,15],[73,17,55,15,"u8aToHex"],[73,30,55,23],[73,31,55,23,"u8aToHex"],[73,39,55,23],[73,41,55,24,"address"],[73,48,55,31],[73,49,55,32,"sign"],[73,53,55,36],[73,54,55,37],[73,58,55,37,"u8aToU8a"],[73,71,55,45],[73,72,55,45,"u8aToU8a"],[73,80,55,45],[73,82,55,46,"data"],[73,86,55,50],[73,87,55,51,"data"],[73,91,55,55],[73,92,55,56],[73,93,55,57],[73,94,55,58],[74,4,56,4],[75,2,57,0],[76,0,57,1],[76,3]],"functionMap":{"names":["<global>","ApiBase","ApiBase#constructor","ApiBase#connect","ApiBase#disconnect","ApiBase#setSigner","ApiBase#sign"],"mappings":"AAA;OCE;ICmB;KDE;IEI;KFE;IGI;KHG;III;KJE;IKI;KLS;CDC"},"hasCjsExports":false},"type":"js/module"}]} |