mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 19:11:02 +00:00
1 line
3.6 KiB
Plaintext
1 line
3.6 KiB
Plaintext
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":123},"end":{"line":4,"column":30,"index":138}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":19,"index":159},"end":{"line":5,"column":46,"index":186}}],"key":"H94lp+EitftSFqDHaenrSs5zKB0=","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 const rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n const index_js_1 = 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, index_js_1.memo)(instanceId, accountIndex => api.query.indices ? api.query.indices.accounts(accountIndex).pipe((0, rxjs_1.map)(optResult => optResult.unwrapOr([])[0])) : (0, rxjs_1.of)(undefined));\n }\n});","lineCount":24,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"indexToId"],[7,19,3,17],[7,22,3,20,"indexToId"],[7,31,3,29],[8,2,4,0],[8,8,4,6,"rxjs_1"],[8,14,4,12],[8,17,4,15,"require"],[8,24,4,22],[8,25,4,22,"_dependencyMap"],[8,39,4,22],[8,50,4,29],[8,51,4,30],[9,2,5,0],[9,8,5,6,"index_js_1"],[9,18,5,16],[9,21,5,19,"require"],[9,28,5,26],[9,29,5,26,"_dependencyMap"],[9,43,5,26],[9,66,5,45],[9,67,5,46],[10,2,6,0],[11,0,7,0],[12,0,8,0],[13,0,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,0,13,0],[18,0,14,0],[19,0,15,0],[20,0,16,0],[21,2,17,0],[21,11,17,9,"indexToId"],[21,20,17,18,"indexToId"],[21,21,17,19,"instanceId"],[21,31,17,29],[21,33,17,31,"api"],[21,36,17,34],[21,38,17,36],[22,4,18,4],[22,11,18,11],[22,12,18,12],[22,13,18,13],[22,15,18,15,"index_js_1"],[22,25,18,25],[22,26,18,26,"memo"],[22,30,18,30],[22,32,18,32,"instanceId"],[22,42,18,42],[22,44,18,45,"accountIndex"],[22,56,18,57],[22,60,18,62,"api"],[22,63,18,65],[22,64,18,66,"query"],[22,69,18,71],[22,70,18,72,"indices"],[22,77,18,79],[22,80,19,10,"api"],[22,83,19,13],[22,84,19,14,"query"],[22,89,19,19],[22,90,19,20,"indices"],[22,97,19,27],[22,98,19,28,"accounts"],[22,106,19,36],[22,107,19,37,"accountIndex"],[22,119,19,49],[22,120,19,50],[22,121,19,51,"pipe"],[22,125,19,55],[22,126,19,56],[22,127,19,57],[22,128,19,58],[22,130,19,60,"rxjs_1"],[22,136,19,66],[22,137,19,67,"map"],[22,140,19,70],[22,142,19,73,"optResult"],[22,151,19,82],[22,155,19,87,"optResult"],[22,164,19,96],[22,165,19,97,"unwrapOr"],[22,173,19,105],[22,174,19,106],[22,176,19,108],[22,177,19,109],[22,178,19,110],[22,179,19,111],[22,180,19,112],[22,181,19,113],[22,182,19,114],[22,185,20,10],[22,186,20,11],[22,187,20,12],[22,189,20,14,"rxjs_1"],[22,195,20,20],[22,196,20,21,"of"],[22,198,20,23],[22,200,20,25,"undefined"],[22,209,20,34],[22,210,20,35],[22,211,20,36],[23,2,21,0],[24,0,21,1],[24,3]],"functionMap":{"names":["<global>","indexToId","<anonymous>"],"mappings":"AAA;ACgB;4CCC;mCDE;CDC"},"hasCjsExports":true},"type":"js/module"}]} |