mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 04:11:02 +00:00
1 line
3.3 KiB
Plaintext
1 line
3.3 KiB
Plaintext
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":31,"index":31}}],"key":"PnOMrhZAPWoeW3ygrvUJ7ff768Y=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":32},"end":{"line":2,"column":40,"index":72}}],"key":"GRJlO1cmIj14nBxcasNpiq30og4=","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 exports.indexToId = indexToId;\n var _rxjs = require(_dependencyMap[0], \"rxjs\");\n var _utilIndexJs = require(_dependencyMap[1], \"../util/index.js\");\n /**\n * @name indexToId\n * @description Resolves an AccountIndex (short address) to the full AccountId.\n * @param {( AccountIndex | string )} accountIndex An accounts index in different formats.\n * @example\n * ```javascript\n * const ALICE = \"13AU\";\n * const id = await api.derive.accounts.indexToId(ALICE);\n * console.log(id);\n * ```\n */\n function indexToId(instanceId, api) {\n return (0, _utilIndexJs.memo)(instanceId, accountIndex => api.query.indices ? api.query.indices.accounts(accountIndex).pipe((0, _rxjs.map)(optResult => optResult.unwrapOr([])[0])) : (0, _rxjs.of)(undefined));\n }\n});","lineCount":24,"map":[[7,2,14,0,"exports"],[7,9,14,0],[7,10,14,0,"indexToId"],[7,19,14,0],[7,22,14,0,"indexToId"],[7,31,14,0],[8,2,1,0],[8,6,1,0,"_rxjs"],[8,11,1,0],[8,14,1,0,"require"],[8,21,1,0],[8,22,1,0,"_dependencyMap"],[8,36,1,0],[9,2,2,0],[9,6,2,0,"_utilIndexJs"],[9,18,2,0],[9,21,2,0,"require"],[9,28,2,0],[9,29,2,0,"_dependencyMap"],[9,43,2,0],[10,2,3,0],[11,0,4,0],[12,0,5,0],[13,0,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[17,0,10,0],[18,0,11,0],[19,0,12,0],[20,0,13,0],[21,2,14,7],[21,11,14,16,"indexToId"],[21,20,14,25,"indexToId"],[21,21,14,26,"instanceId"],[21,31,14,36],[21,33,14,38,"api"],[21,36,14,41],[21,38,14,43],[22,4,15,4],[22,11,15,11],[22,15,15,11,"memo"],[22,27,15,15],[22,28,15,15,"memo"],[22,32,15,15],[22,34,15,16,"instanceId"],[22,44,15,26],[22,46,15,29,"accountIndex"],[22,58,15,41],[22,62,15,46,"api"],[22,65,15,49],[22,66,15,50,"query"],[22,71,15,55],[22,72,15,56,"indices"],[22,79,15,63],[22,82,16,10,"api"],[22,85,16,13],[22,86,16,14,"query"],[22,91,16,19],[22,92,16,20,"indices"],[22,99,16,27],[22,100,16,28,"accounts"],[22,108,16,36],[22,109,16,37,"accountIndex"],[22,121,16,49],[22,122,16,50],[22,123,16,51,"pipe"],[22,127,16,55],[22,128,16,56],[22,132,16,56,"map"],[22,137,16,59],[22,138,16,59,"map"],[22,141,16,59],[22,143,16,61,"optResult"],[22,152,16,70],[22,156,16,75,"optResult"],[22,165,16,84],[22,166,16,85,"unwrapOr"],[22,174,16,93],[22,175,16,94],[22,177,16,96],[22,178,16,97],[22,179,16,98],[22,180,16,99],[22,181,16,100],[22,182,16,101],[22,183,16,102],[22,186,17,10],[22,190,17,10,"of"],[22,195,17,12],[22,196,17,12,"of"],[22,198,17,12],[22,200,17,13,"undefined"],[22,209,17,22],[22,210,17,23],[22,211,17,24],[23,2,18,0],[24,0,18,1],[24,3]],"functionMap":{"names":["<global>","indexToId","memo$argument_1","map$argument_0"],"mappings":"AAA;OCa;4BCC;4DCC,wCD;uBDC;CDC"},"hasCjsExports":false},"type":"js/module"}]} |