mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 14:31:02 +00:00
1 line
7.4 KiB
Plaintext
1 line
7.4 KiB
Plaintext
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":125},"end":{"line":4,"column":30,"index":140}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":157},"end":{"line":5,"column":40,"index":182}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util-crypto","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":22,"index":206},"end":{"line":6,"column":54,"index":238}}],"key":"ZJJnwX+B+oj5JQmnkWFMF+4Lj2M=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":19,"index":259},"end":{"line":7,"column":46,"index":286}}],"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.idAndIndex = idAndIndex;\n var rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n var util_1 = require(_dependencyMap[1], \"@polkadot/util\");\n var util_crypto_1 = require(_dependencyMap[2], \"@polkadot/util-crypto\");\n var index_js_1 = require(_dependencyMap[3], \"../util/index.js\");\n /**\n * @name idAndIndex\n * @param {(Address | AccountId | AccountIndex | Uint8Array | string | null)} address An accounts address in various formats.\n * @description An array containing the [[AccountId]] and [[AccountIndex]] as optional values.\n * @example\n * ```javascript\n * api.derive.accounts.idAndIndex('F7Hs', ([id, ix]) => {\n * console.log(`AccountId #${id} with corresponding AccountIndex ${ix}`);\n * });\n * ```\n */\n function idAndIndex(instanceId, api) {\n return (0, index_js_1.memo)(instanceId, function (address) {\n try {\n // yes, this can fail, don't care too much, catch will catch it\n var decoded = (0, util_1.isU8a)(address) ? address : (0, util_crypto_1.decodeAddress)((address || '').toString());\n if (decoded.length > 8) {\n var accountId = api.registry.createType(decoded.length === 20 ? 'AccountId20' : 'AccountId', decoded);\n return api.derive.accounts.idToIndex(accountId).pipe((0, rxjs_1.map)(function (accountIndex) {\n return [accountId, accountIndex];\n }));\n }\n var accountIndex = api.registry.createType('AccountIndex', decoded);\n return api.derive.accounts.indexToId(accountIndex.toString()).pipe((0, rxjs_1.map)(function (accountId) {\n return [accountId, accountIndex];\n }));\n } catch (_unused) {\n return (0, rxjs_1.of)([undefined, undefined]);\n }\n });\n }\n});","lineCount":43,"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,"idAndIndex"],[7,20,3,18],[7,23,3,21,"idAndIndex"],[7,33,3,31],[8,2,4,0],[8,6,4,6,"rxjs_1"],[8,12,4,12],[8,15,4,15,"require"],[8,22,4,22],[8,23,4,22,"_dependencyMap"],[8,37,4,22],[8,48,4,29],[8,49,4,30],[9,2,5,0],[9,6,5,6,"util_1"],[9,12,5,12],[9,15,5,15,"require"],[9,22,5,22],[9,23,5,22,"_dependencyMap"],[9,37,5,22],[9,58,5,39],[9,59,5,40],[10,2,6,0],[10,6,6,6,"util_crypto_1"],[10,19,6,19],[10,22,6,22,"require"],[10,29,6,29],[10,30,6,29,"_dependencyMap"],[10,44,6,29],[10,72,6,53],[10,73,6,54],[11,2,7,0],[11,6,7,6,"index_js_1"],[11,16,7,16],[11,19,7,19,"require"],[11,26,7,26],[11,27,7,26,"_dependencyMap"],[11,41,7,26],[11,64,7,45],[11,65,7,46],[12,2,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,0,17,0],[22,0,18,0],[23,2,19,0],[23,11,19,9,"idAndIndex"],[23,21,19,19,"idAndIndex"],[23,22,19,20,"instanceId"],[23,32,19,30],[23,34,19,32,"api"],[23,37,19,35],[23,39,19,37],[24,4,20,4],[24,11,20,11],[24,12,20,12],[24,13,20,13],[24,15,20,15,"index_js_1"],[24,25,20,25],[24,26,20,26,"memo"],[24,30,20,30],[24,32,20,32,"instanceId"],[24,42,20,42],[24,44,20,44],[24,54,20,45,"address"],[24,61,20,52],[24,63,20,57],[25,6,21,8],[25,10,21,12],[26,8,22,12],[27,8,23,12],[27,12,23,18,"decoded"],[27,19,23,25],[27,22,23,28],[27,23,23,29],[27,24,23,30],[27,26,23,32,"util_1"],[27,32,23,38],[27,33,23,39,"isU8a"],[27,38,23,44],[27,40,23,46,"address"],[27,47,23,53],[27,48,23,54],[27,51,24,18,"address"],[27,58,24,25],[27,61,25,18],[27,62,25,19],[27,63,25,20],[27,65,25,22,"util_crypto_1"],[27,78,25,35],[27,79,25,36,"decodeAddress"],[27,92,25,49],[27,94,25,51],[27,95,25,52,"address"],[27,102,25,59],[27,106,25,63],[27,108,25,65],[27,110,25,67,"toString"],[27,118,25,75],[27,119,25,76],[27,120,25,77],[27,121,25,78],[28,8,26,12],[28,12,26,16,"decoded"],[28,19,26,23],[28,20,26,24,"length"],[28,26,26,30],[28,29,26,33],[28,30,26,34],[28,32,26,36],[29,10,27,16],[29,14,27,22,"accountId"],[29,23,27,31],[29,26,27,34,"api"],[29,29,27,37],[29,30,27,38,"registry"],[29,38,27,46],[29,39,27,47,"createType"],[29,49,27,57],[29,50,27,58,"decoded"],[29,57,27,65],[29,58,27,66,"length"],[29,64,27,72],[29,69,27,77],[29,71,27,79],[29,74,27,82],[29,87,27,95],[29,90,27,98],[29,101,27,109],[29,103,27,111,"decoded"],[29,110,27,118],[29,111,27,119],[30,10,28,16],[30,17,28,23,"api"],[30,20,28,26],[30,21,28,27,"derive"],[30,27,28,33],[30,28,28,34,"accounts"],[30,36,28,42],[30,37,28,43,"idToIndex"],[30,46,28,52],[30,47,28,53,"accountId"],[30,56,28,62],[30,57,28,63],[30,58,28,64,"pipe"],[30,62,28,68],[30,63,28,69],[30,64,28,70],[30,65,28,71],[30,67,28,73,"rxjs_1"],[30,73,28,79],[30,74,28,80,"map"],[30,77,28,83],[30,79,28,85],[30,89,28,86,"accountIndex"],[30,101,28,98],[31,12,28,98],[31,19,28,103],[31,20,28,104,"accountId"],[31,29,28,113],[31,31,28,115,"accountIndex"],[31,43,28,127],[31,44,28,128],[32,10,28,128],[32,12,28,129],[32,13,28,130],[33,8,29,12],[34,8,30,12],[34,12,30,18,"accountIndex"],[34,24,30,30],[34,27,30,33,"api"],[34,30,30,36],[34,31,30,37,"registry"],[34,39,30,45],[34,40,30,46,"createType"],[34,50,30,56],[34,51,30,57],[34,65,30,71],[34,67,30,73,"decoded"],[34,74,30,80],[34,75,30,81],[35,8,31,12],[35,15,31,19,"api"],[35,18,31,22],[35,19,31,23,"derive"],[35,25,31,29],[35,26,31,30,"accounts"],[35,34,31,38],[35,35,31,39,"indexToId"],[35,44,31,48],[35,45,31,49,"accountIndex"],[35,57,31,61],[35,58,31,62,"toString"],[35,66,31,70],[35,67,31,71],[35,68,31,72],[35,69,31,73],[35,70,31,74,"pipe"],[35,74,31,78],[35,75,31,79],[35,76,31,80],[35,77,31,81],[35,79,31,83,"rxjs_1"],[35,85,31,89],[35,86,31,90,"map"],[35,89,31,93],[35,91,31,95],[35,101,31,96,"accountId"],[35,110,31,105],[36,10,31,105],[36,17,31,110],[36,18,31,111,"accountId"],[36,27,31,120],[36,29,31,122,"accountIndex"],[36,41,31,134],[36,42,31,135],[37,8,31,135],[37,10,31,136],[37,11,31,137],[38,6,32,8],[38,7,32,9],[38,8,33,8],[38,15,33,8,"_unused"],[38,22,33,8],[38,24,33,14],[39,8,34,12],[39,15,34,19],[39,16,34,20],[39,17,34,21],[39,19,34,23,"rxjs_1"],[39,25,34,29],[39,26,34,30,"of"],[39,28,34,32],[39,30,34,34],[39,31,34,35,"undefined"],[39,40,34,44],[39,42,34,46,"undefined"],[39,51,34,55],[39,52,34,56],[39,53,34,57],[40,6,35,8],[41,4,36,4],[41,5,36,5],[41,6,36,6],[42,2,37,0],[43,0,37,1],[43,3]],"functionMap":{"names":["<global>","idAndIndex","<anonymous>"],"mappings":"AAA;ACkB;4CCC;KDgB;CDC"},"hasCjsExports":true},"type":"js/module"}]} |