mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 14:31:02 +00:00
1 line
3.7 KiB
Plaintext
1 line
3.7 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, addresses => !addresses?.length ? (0, rxjs_1.of)([]) : (0, rxjs_1.combineLatest)(addresses.map(accountId => api.derive.balances.account(accountId))));\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,"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,45,"addresses"],[22,53,18,54],[22,57,18,59],[22,58,18,60,"addresses"],[22,67,18,69],[22,69,18,71,"length"],[22,75,18,77],[22,78,19,10],[22,79,19,11],[22,80,19,12],[22,82,19,14,"rxjs_1"],[22,88,19,20],[22,89,19,21,"of"],[22,91,19,23],[22,93,19,25],[22,95,19,27],[22,96,19,28],[22,99,20,10],[22,100,20,11],[22,101,20,12],[22,103,20,14,"rxjs_1"],[22,109,20,20],[22,110,20,21,"combineLatest"],[22,123,20,34],[22,125,20,36,"addresses"],[22,134,20,45],[22,135,20,46,"map"],[22,138,20,49],[22,139,20,51,"accountId"],[22,148,20,60],[22,152,20,65,"api"],[22,155,20,68],[22,156,20,69,"derive"],[22,162,20,75],[22,163,20,76,"balances"],[22,171,20,84],[22,172,20,85,"account"],[22,179,20,92],[22,180,20,93,"accountId"],[22,189,20,102],[22,190,20,103],[22,191,20,104],[22,192,20,105],[22,193,20,106],[23,2,21,0],[24,0,21,1],[24,3]],"functionMap":{"names":["<global>","votingBalances","<anonymous>","addresses.map$argument_0"],"mappings":"AAA;ACgB;4CCC;kDCE,qDD,ED;CDC"},"hasCjsExports":true},"type":"js/module"}]} |