mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 19:11:02 +00:00
1 line
6.9 KiB
Plaintext
1 line
6.9 KiB
Plaintext
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":57,"index":57}}],"key":"PnOMrhZAPWoeW3ygrvUJ7ff768Y=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":58},"end":{"line":2,"column":45,"index":103}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":104},"end":{"line":3,"column":40,"index":144}}],"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.info = info;\n var _rxjs = require(_dependencyMap[0], \"rxjs\");\n var _polkadotUtil = require(_dependencyMap[1], \"@polkadot/util\");\n var _utilIndexJs = 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.of)(undefined)).pipe((0, _rxjs.map)(nameOf => nameOf?.isSome ? (0, _polkadotUtil.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, _utilIndexJs.memo)(instanceId, address => api.derive.accounts.idAndIndex(address).pipe((0, _rxjs.switchMap)(([accountId, accountIndex]) => (0, _rxjs.combineLatest)([(0, _rxjs.of)({\n accountId,\n accountIndex\n }), api.derive.accounts.identity(accountId), retrieveNick(api, accountId)])), (0, _rxjs.map)(([{\n accountId,\n accountIndex\n }, identity, nickname]) => ({\n accountId,\n accountIndex,\n identity,\n nickname\n }))));\n }\n});","lineCount":42,"map":[[7,2,25,0,"exports"],[7,9,25,0],[7,10,25,0,"info"],[7,14,25,0],[7,17,25,0,"info"],[7,21,25,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,"_polkadotUtil"],[9,19,2,0],[9,22,2,0,"require"],[9,29,2,0],[9,30,2,0,"_dependencyMap"],[9,44,2,0],[10,2,3,0],[10,6,3,0,"_utilIndexJs"],[10,18,3,0],[10,21,3,0,"require"],[10,28,3,0],[10,29,3,0,"_dependencyMap"],[10,43,3,0],[11,2,4,0],[11,11,4,9,"retrieveNick"],[11,23,4,21,"retrieveNick"],[11,24,4,22,"api"],[11,27,4,25],[11,29,4,27,"accountId"],[11,38,4,36],[11,40,4,38],[12,4,5,4],[12,11,5,11],[12,12,5,12,"accountId"],[12,21,5,21],[12,25,5,25,"api"],[12,28,5,28],[12,29,5,29,"query"],[12,34,5,34],[12,35,5,35],[12,42,5,42],[12,43,5,43],[12,46,5,46],[12,54,5,54],[12,55,5,55],[12,58,6,10,"api"],[12,61,6,13],[12,62,6,14,"query"],[12,67,6,19],[12,68,6,20],[12,75,6,27],[12,76,6,28],[12,77,6,29],[12,85,6,37],[12,86,6,38],[12,87,6,39,"accountId"],[12,96,6,48],[12,97,6,49],[12,100,7,10],[12,104,7,10,"of"],[12,109,7,12],[12,110,7,12,"of"],[12,112,7,12],[12,114,7,13,"undefined"],[12,123,7,22],[12,124,7,23],[12,126,7,25,"pipe"],[12,130,7,29],[12,131,7,30],[12,135,7,30,"map"],[12,140,7,33],[12,141,7,33,"map"],[12,144,7,33],[12,146,7,35,"nameOf"],[12,152,7,41],[12,156,7,46,"nameOf"],[12,162,7,52],[12,164,7,54,"isSome"],[12,170,7,60],[12,173,8,10],[12,177,8,10,"u8aToString"],[12,190,8,21],[12,191,8,21,"u8aToString"],[12,202,8,21],[12,204,8,22,"nameOf"],[12,210,8,28],[12,211,8,29,"unwrap"],[12,217,8,35],[12,218,8,36],[12,219,8,37],[12,220,8,38],[12,221,8,39],[12,222,8,40],[12,223,8,41],[12,224,8,42,"substring"],[12,233,8,51],[12,234,8,52],[12,235,8,53],[12,237,8,55,"api"],[12,240,8,58],[12,241,8,59,"consts"],[12,247,8,65],[12,248,8,66],[12,255,8,73],[12,256,8,74],[12,257,8,75],[12,268,8,86],[12,269,8,87],[12,270,8,88,"toNumber"],[12,278,8,96],[12,279,8,97],[12,280,8,98],[12,281,8,99],[12,284,9,10,"undefined"],[12,293,9,19],[12,294,9,20],[12,295,9,21],[13,2,10,0],[14,2,11,0],[15,0,12,0],[16,0,13,0],[17,0,14,0],[18,0,15,0],[19,0,16,0],[20,0,17,0],[21,0,18,0],[22,0,19,0],[23,0,20,0],[24,0,21,0],[25,0,22,0],[26,0,23,0],[27,0,24,0],[28,2,25,7],[28,11,25,16,"info"],[28,15,25,20,"info"],[28,16,25,21,"instanceId"],[28,26,25,31],[28,28,25,33,"api"],[28,31,25,36],[28,33,25,38],[29,4,26,4],[29,11,26,11],[29,15,26,11,"memo"],[29,27,26,15],[29,28,26,15,"memo"],[29,32,26,15],[29,34,26,16,"instanceId"],[29,44,26,26],[29,46,26,29,"address"],[29,53,26,36],[29,57,26,41,"api"],[29,60,26,44],[29,61,26,45,"derive"],[29,67,26,51],[29,68,26,52,"accounts"],[29,76,26,60],[29,77,26,61,"idAndIndex"],[29,87,26,71],[29,88,26,72,"address"],[29,95,26,79],[29,96,26,80],[29,97,26,81,"pipe"],[29,101,26,85],[29,102,26,86],[29,106,26,86,"switchMap"],[29,111,26,95],[29,112,26,95,"switchMap"],[29,121,26,95],[29,123,26,96],[29,124,26,97],[29,125,26,98,"accountId"],[29,134,26,107],[29,136,26,109,"accountIndex"],[29,148,26,121],[29,149,26,122],[29,154,26,127],[29,158,26,127,"combineLatest"],[29,163,26,140],[29,164,26,140,"combineLatest"],[29,177,26,140],[29,179,26,141],[29,180,27,8],[29,184,27,8,"of"],[29,189,27,10],[29,190,27,10,"of"],[29,192,27,10],[29,194,27,11],[30,6,27,13,"accountId"],[30,15,27,22],[31,6,27,24,"accountIndex"],[32,4,27,37],[32,5,27,38],[32,6,27,39],[32,8,28,8,"api"],[32,11,28,11],[32,12,28,12,"derive"],[32,18,28,18],[32,19,28,19,"accounts"],[32,27,28,27],[32,28,28,28,"identity"],[32,36,28,36],[32,37,28,37,"accountId"],[32,46,28,46],[32,47,28,47],[32,49,29,8,"retrieveNick"],[32,61,29,20],[32,62,29,21,"api"],[32,65,29,24],[32,67,29,26,"accountId"],[32,76,29,35],[32,77,29,36],[32,78,30,5],[32,79,30,6],[32,80,30,7],[32,82,30,9],[32,86,30,9,"map"],[32,91,30,12],[32,92,30,12,"map"],[32,95,30,12],[32,97,30,13],[32,98,30,14],[32,99,30,15],[33,6,30,17,"accountId"],[33,15,30,26],[34,6,30,28,"accountIndex"],[35,4,30,41],[35,5,30,42],[35,7,30,44,"identity"],[35,15,30,52],[35,17,30,54,"nickname"],[35,25,30,62],[35,26,30,63],[35,32,30,69],[36,6,31,8,"accountId"],[36,15,31,17],[37,6,31,19,"accountIndex"],[37,18,31,31],[38,6,31,33,"identity"],[38,14,31,41],[39,6,31,43,"nickname"],[40,4,32,4],[40,5,32,5],[40,6,32,6],[40,7,32,7],[40,8,32,8],[40,9,32,9],[41,2,33,0],[42,0,33,1],[42,3]],"functionMap":{"names":["<global>","retrieveNick","map$argument_0","info","memo$argument_1","switchMap$argument_0"],"mappings":"AAA;ACG;kCCG;mBDE;CDC;OGe;4BCC,oEC;MDI,OF;MEE,ED;CHC"},"hasCjsExports":false},"type":"js/module"}]} |