Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/10/9f1135faecae73a54ba61147cd068783ca4cfdebebc3250397056e961a86d0f8407e86
T
2025-11-08 10:27:44 +00:00

1 line
7.5 KiB
Plaintext

{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":113},"end":{"line":4,"column":30,"index":128}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":145},"end":{"line":5,"column":40,"index":170}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":19,"index":191},"end":{"line":6,"column":46,"index":218}}],"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.info = info;\n const rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n const util_1 = require(_dependencyMap[1], \"@polkadot/util\");\n const index_js_1 = require(_dependencyMap[2], \"../util/index.js\");\n function retrieveNick(api, accountId) {\n return (accountId && api.query['nicks']?.['nameOf'] ? api.query['nicks']['nameOf'](accountId) : (0, rxjs_1.of)(undefined)).pipe((0, rxjs_1.map)(nameOf => nameOf?.isSome ? (0, util_1.u8aToString)(nameOf.unwrap()[0]).substring(0, api.consts['nicks']['maxLength'].toNumber()) : undefined));\n }\n /**\n * @name info\n * @description Returns aux. info with regards to an account, current that includes the accountId, accountIndex, identity and nickname\n * @param {(AccountIndex | AccountId | Address | Uint8Array | string | null)} address An accounts in different formats.\n * @example\n * ```javascript\n * const ALICE = \"13AU\";\n * const info = await api.derive.accounts.info(ALICE);\n * console.log(\n * \"Account Info: \",\n * Object.keys(info).map((key) => `${key}: ${info[key]}`)\n * );\n * ```\n */\n function info(instanceId, api) {\n return (0, index_js_1.memo)(instanceId, address => api.derive.accounts.idAndIndex(address).pipe((0, rxjs_1.switchMap)(([accountId, accountIndex]) => (0, rxjs_1.combineLatest)([(0, rxjs_1.of)({\n accountId,\n accountIndex\n }), api.derive.accounts.identity(accountId), retrieveNick(api, accountId)])), (0, rxjs_1.map)(([{\n accountId,\n accountIndex\n }, identity, nickname]) => ({\n accountId,\n accountIndex,\n identity,\n nickname\n }))));\n }\n});","lineCount":42,"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,"info"],[7,14,3,12],[7,17,3,15,"info"],[7,21,3,19],[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,"util_1"],[9,14,5,12],[9,17,5,15,"require"],[9,24,5,22],[9,25,5,22,"_dependencyMap"],[9,39,5,22],[9,60,5,39],[9,61,5,40],[10,2,6,0],[10,8,6,6,"index_js_1"],[10,18,6,16],[10,21,6,19,"require"],[10,28,6,26],[10,29,6,26,"_dependencyMap"],[10,43,6,26],[10,66,6,45],[10,67,6,46],[11,2,7,0],[11,11,7,9,"retrieveNick"],[11,23,7,21,"retrieveNick"],[11,24,7,22,"api"],[11,27,7,25],[11,29,7,27,"accountId"],[11,38,7,36],[11,40,7,38],[12,4,8,4],[12,11,8,11],[12,12,8,12,"accountId"],[12,21,8,21],[12,25,8,25,"api"],[12,28,8,28],[12,29,8,29,"query"],[12,34,8,34],[12,35,8,35],[12,42,8,42],[12,43,8,43],[12,46,8,46],[12,54,8,54],[12,55,8,55],[12,58,9,10,"api"],[12,61,9,13],[12,62,9,14,"query"],[12,67,9,19],[12,68,9,20],[12,75,9,27],[12,76,9,28],[12,77,9,29],[12,85,9,37],[12,86,9,38],[12,87,9,39,"accountId"],[12,96,9,48],[12,97,9,49],[12,100,10,10],[12,101,10,11],[12,102,10,12],[12,104,10,14,"rxjs_1"],[12,110,10,20],[12,111,10,21,"of"],[12,113,10,23],[12,115,10,25,"undefined"],[12,124,10,34],[12,125,10,35],[12,127,10,37,"pipe"],[12,131,10,41],[12,132,10,42],[12,133,10,43],[12,134,10,44],[12,136,10,46,"rxjs_1"],[12,142,10,52],[12,143,10,53,"map"],[12,146,10,56],[12,148,10,59,"nameOf"],[12,154,10,65],[12,158,10,70,"nameOf"],[12,164,10,76],[12,166,10,78,"isSome"],[12,172,10,84],[12,175,11,10],[12,176,11,11],[12,177,11,12],[12,179,11,14,"util_1"],[12,185,11,20],[12,186,11,21,"u8aToString"],[12,197,11,32],[12,199,11,34,"nameOf"],[12,205,11,40],[12,206,11,41,"unwrap"],[12,212,11,47],[12,213,11,48],[12,214,11,49],[12,215,11,50],[12,216,11,51],[12,217,11,52],[12,218,11,53],[12,219,11,54,"substring"],[12,228,11,63],[12,229,11,64],[12,230,11,65],[12,232,11,67,"api"],[12,235,11,70],[12,236,11,71,"consts"],[12,242,11,77],[12,243,11,78],[12,250,11,85],[12,251,11,86],[12,252,11,87],[12,263,11,98],[12,264,11,99],[12,265,11,100,"toNumber"],[12,273,11,108],[12,274,11,109],[12,275,11,110],[12,276,11,111],[12,279,12,10,"undefined"],[12,288,12,19],[12,289,12,20],[12,290,12,21],[13,2,13,0],[14,2,14,0],[15,0,15,0],[16,0,16,0],[17,0,17,0],[18,0,18,0],[19,0,19,0],[20,0,20,0],[21,0,21,0],[22,0,22,0],[23,0,23,0],[24,0,24,0],[25,0,25,0],[26,0,26,0],[27,0,27,0],[28,2,28,0],[28,11,28,9,"info"],[28,15,28,13,"info"],[28,16,28,14,"instanceId"],[28,26,28,24],[28,28,28,26,"api"],[28,31,28,29],[28,33,28,31],[29,4,29,4],[29,11,29,11],[29,12,29,12],[29,13,29,13],[29,15,29,15,"index_js_1"],[29,25,29,25],[29,26,29,26,"memo"],[29,30,29,30],[29,32,29,32,"instanceId"],[29,42,29,42],[29,44,29,45,"address"],[29,51,29,52],[29,55,29,57,"api"],[29,58,29,60],[29,59,29,61,"derive"],[29,65,29,67],[29,66,29,68,"accounts"],[29,74,29,76],[29,75,29,77,"idAndIndex"],[29,85,29,87],[29,86,29,88,"address"],[29,93,29,95],[29,94,29,96],[29,95,29,97,"pipe"],[29,99,29,101],[29,100,29,102],[29,101,29,103],[29,102,29,104],[29,104,29,106,"rxjs_1"],[29,110,29,112],[29,111,29,113,"switchMap"],[29,120,29,122],[29,122,29,124],[29,123,29,125],[29,124,29,126,"accountId"],[29,133,29,135],[29,135,29,137,"accountIndex"],[29,147,29,149],[29,148,29,150],[29,153,29,155],[29,154,29,156],[29,155,29,157],[29,157,29,159,"rxjs_1"],[29,163,29,165],[29,164,29,166,"combineLatest"],[29,177,29,179],[29,179,29,181],[29,180,30,8],[29,181,30,9],[29,182,30,10],[29,184,30,12,"rxjs_1"],[29,190,30,18],[29,191,30,19,"of"],[29,193,30,21],[29,195,30,23],[30,6,30,25,"accountId"],[30,15,30,34],[31,6,30,36,"accountIndex"],[32,4,30,49],[32,5,30,50],[32,6,30,51],[32,8,31,8,"api"],[32,11,31,11],[32,12,31,12,"derive"],[32,18,31,18],[32,19,31,19,"accounts"],[32,27,31,27],[32,28,31,28,"identity"],[32,36,31,36],[32,37,31,37,"accountId"],[32,46,31,46],[32,47,31,47],[32,49,32,8,"retrieveNick"],[32,61,32,20],[32,62,32,21,"api"],[32,65,32,24],[32,67,32,26,"accountId"],[32,76,32,35],[32,77,32,36],[32,78,33,5],[32,79,33,6],[32,80,33,7],[32,82,33,9],[32,83,33,10],[32,84,33,11],[32,86,33,13,"rxjs_1"],[32,92,33,19],[32,93,33,20,"map"],[32,96,33,23],[32,98,33,25],[32,99,33,26],[32,100,33,27],[33,6,33,29,"accountId"],[33,15,33,38],[34,6,33,40,"accountIndex"],[35,4,33,53],[35,5,33,54],[35,7,33,56,"identity"],[35,15,33,64],[35,17,33,66,"nickname"],[35,25,33,74],[35,26,33,75],[35,32,33,81],[36,6,34,8,"accountId"],[36,15,34,17],[37,6,34,19,"accountIndex"],[37,18,34,31],[38,6,34,33,"identity"],[38,14,34,41],[39,6,34,43,"nickname"],[40,4,35,4],[40,5,35,5],[40,6,35,6],[40,7,35,7],[40,8,35,8],[40,9,35,9],[41,2,36,0],[42,0,36,1],[42,3]],"functionMap":{"names":["<global>","retrieveNick","<anonymous>","info"],"mappings":"AAA;ACM;0DCG;mBDE;CDC;AGe;4CDC;QCM;CHC"},"hasCjsExports":true},"type":"js/module"}]}