Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/62/dac5e2ea06b615805bdbde65225c4ed46d6277134869c1f429dc636d2e8bb728022fbf
T
2025-10-24 02:46:57 +00:00

1 line
3.7 KiB
Plaintext

{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":27,"index":27}}],"key":"PnOMrhZAPWoeW3ygrvUJ7ff768Y=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":28},"end":{"line":2,"column":40,"index":68}}],"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.votesOf = votesOf;\n var _rxjs = require(_dependencyMap[0], \"rxjs\");\n var _utilIndexJs = require(_dependencyMap[1], \"../util/index.js\");\n /**\n * @name votesOf\n * @description Retrieves the council votes associated with a given account.\n * @returns The stake and the list of candidates the account has voted for.\n * @param {string | Uint8Array | AccountId} accountId The accountId to retrieve votes for.\n * @example\n * ```javascript\n * const accountId = \"5Gw3s7qQ9Z...\"; // Replace with a valid account ID\n * const votes = await api.derive.council.votesOf(accountId);\n * console.log(\"Account votes:\", votes);\n * ```\n */\n function votesOf(instanceId, api) {\n return (0, _utilIndexJs.memo)(instanceId, accountId => api.derive.council.votes().pipe((0, _rxjs.map)(votes => (votes.find(([from]) => from.eq(accountId)) || [null, {\n stake: api.registry.createType('Balance'),\n votes: []\n }])[1])));\n }\n});","lineCount":28,"map":[[7,2,15,0,"exports"],[7,9,15,0],[7,10,15,0,"votesOf"],[7,17,15,0],[7,20,15,0,"votesOf"],[7,27,15,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,"_utilIndexJs"],[9,18,2,0],[9,21,2,0,"require"],[9,28,2,0],[9,29,2,0,"_dependencyMap"],[9,43,2,0],[10,2,3,0],[11,0,4,0],[12,0,5,0],[13,0,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[17,0,10,0],[18,0,11,0],[19,0,12,0],[20,0,13,0],[21,0,14,0],[22,2,15,7],[22,11,15,16,"votesOf"],[22,18,15,23,"votesOf"],[22,19,15,24,"instanceId"],[22,29,15,34],[22,31,15,36,"api"],[22,34,15,39],[22,36,15,41],[23,4,16,4],[23,11,16,11],[23,15,16,11,"memo"],[23,27,16,15],[23,28,16,15,"memo"],[23,32,16,15],[23,34,16,16,"instanceId"],[23,44,16,26],[23,46,16,29,"accountId"],[23,55,16,38],[23,59,16,43,"api"],[23,62,16,46],[23,63,16,47,"derive"],[23,69,16,53],[23,70,16,54,"council"],[23,77,16,61],[23,78,16,62,"votes"],[23,83,16,67],[23,84,16,68],[23,85,16,69],[23,86,16,70,"pipe"],[23,90,16,74],[23,91,16,75],[23,95,16,75,"map"],[23,100,16,78],[23,101,16,78,"map"],[23,104,16,78],[23,106,16,80,"votes"],[23,111,16,85],[23,115,16,90],[23,116,16,91,"votes"],[23,121,16,96],[23,122,16,97,"find"],[23,126,16,101],[23,127,16,102],[23,128,16,103],[23,129,16,104,"from"],[23,133,16,108],[23,134,16,109],[23,139,16,114,"from"],[23,143,16,118],[23,144,16,119,"eq"],[23,146,16,121],[23,147,16,122,"accountId"],[23,156,16,131],[23,157,16,132],[23,158,16,133],[23,162,17,8],[23,163,17,9],[23,167,17,13],[23,169,17,15],[24,6,17,17,"stake"],[24,11,17,22],[24,13,17,24,"api"],[24,16,17,27],[24,17,17,28,"registry"],[24,25,17,36],[24,26,17,37,"createType"],[24,36,17,47],[24,37,17,48],[24,46,17,57],[24,47,17,58],[25,6,17,60,"votes"],[25,11,17,65],[25,13,17,67],[26,4,17,70],[26,5,17,71],[26,6,17,72],[26,8,17,74],[26,9,17,75],[26,10,17,76],[26,11,17,77],[26,12,17,78],[26,13,17,79],[27,2,18,0],[28,0,18,1],[28,3]],"functionMap":{"names":["<global>","votesOf","memo$argument_1","map$argument_0","votes.find$argument_0"],"mappings":"AAA;OCc;4BCC,mDC,uBC,8BD;4EDC,ED;CDC"},"hasCjsExports":false},"type":"js/module"}]}