Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/c9/638803e34d6bc2037e934075cd93fa6cead4949c49430969b1d3ff1e6d7b813bc51fd0
T
2025-11-08 10:07:13 +00:00

1 line
3.9 KiB
Plaintext

{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":133},"end":{"line":4,"column":30,"index":148}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":19,"index":169},"end":{"line":5,"column":46,"index":196}}],"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.votingBalances = votingBalances;\n var rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n var index_js_1 = require(_dependencyMap[1], \"../util/index.js\");\n /**\n * @name votingBalances\n * @description Retrieves the balance information for multiple accounts, typically used in governance-related contexts to check voting power.\n * @param {(AccountId | AccountIndex | Address | string)[]} addresses An array of account identifiers.\n * @example\n * ```javascript\n * const addresses = [\"5D4b...Zf1\", \"5HGj...yrV\"];\n * const balances = await api.derive.balances.votingBalances(addresses);\n * console.log(\"Voting Balances:\", balances);\n * ```\n */\n function votingBalances(instanceId, api) {\n return (0, index_js_1.memo)(instanceId, function (addresses) {\n return !(addresses != null && addresses.length) ? (0, rxjs_1.of)([]) : (0, rxjs_1.combineLatest)(addresses.map(function (accountId) {\n return api.derive.balances.account(accountId);\n }));\n });\n }\n});","lineCount":28,"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,"votingBalances"],[7,24,3,22],[7,27,3,25,"votingBalances"],[7,41,3,39],[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,"index_js_1"],[9,16,5,16],[9,19,5,19,"require"],[9,26,5,26],[9,27,5,26,"_dependencyMap"],[9,41,5,26],[9,64,5,45],[9,65,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,"votingBalances"],[21,25,17,23,"votingBalances"],[21,26,17,24,"instanceId"],[21,36,17,34],[21,38,17,36,"api"],[21,41,17,39],[21,43,17,41],[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,44],[22,54,18,45,"addresses"],[22,63,18,54],[23,6,18,54],[23,13,18,59],[23,15,18,60,"addresses"],[23,24,18,69],[23,36,18,60,"addresses"],[23,45,18,69],[23,46,18,71,"length"],[23,52,18,77],[23,56,19,10],[23,57,19,11],[23,58,19,12],[23,60,19,14,"rxjs_1"],[23,66,19,20],[23,67,19,21,"of"],[23,69,19,23],[23,71,19,25],[23,73,19,27],[23,74,19,28],[23,77,20,10],[23,78,20,11],[23,79,20,12],[23,81,20,14,"rxjs_1"],[23,87,20,20],[23,88,20,21,"combineLatest"],[23,101,20,34],[23,103,20,36,"addresses"],[23,112,20,45],[23,113,20,46,"map"],[23,116,20,49],[23,117,20,50],[23,127,20,51,"accountId"],[23,136,20,60],[24,8,20,60],[24,15,20,65,"api"],[24,18,20,68],[24,19,20,69,"derive"],[24,25,20,75],[24,26,20,76,"balances"],[24,34,20,84],[24,35,20,85,"account"],[24,42,20,92],[24,43,20,93,"accountId"],[24,52,20,102],[24,53,20,103],[25,6,20,103],[25,8,20,104],[25,9,20,105],[26,4,20,105],[26,6,20,106],[27,2,21,0],[28,0,21,1],[28,3]],"functionMap":{"names":["<global>","votingBalances","<anonymous>","addresses.map$argument_0"],"mappings":"AAA;ACgB;4CCC;kDCE,qDD,ED;CDC"},"hasCjsExports":true},"type":"js/module"}]}