mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 03:01:04 +00:00
auto-commit for 155cdee4-7b20-4acf-ad4d-053760ff258d
This commit is contained in:
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
{"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"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"dependencies":[],"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 Object.defineProperty(exports, \"packageInfo\", {\n enumerable: true,\n get: function () {\n return packageInfo;\n }\n });\n const packageInfo = {\n name: '@polkadot/rpc-augment',\n path: import.meta && import.meta.url ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',\n type: 'esm',\n version: '16.4.9'\n };\n});","lineCount":19,"map":[[7,2,1,0,"Object"],[7,8,1,0],[7,9,1,0,"defineProperty"],[7,23,1,0],[7,24,1,0,"exports"],[7,31,1,0],[8,4,1,0,"enumerable"],[8,14,1,0],[9,4,1,0,"get"],[9,7,1,0],[9,18,1,0,"get"],[9,19,1,0],[10,6,1,0],[10,13,1,0,"packageInfo"],[10,24,1,0],[11,4,1,0],[12,2,1,0],[13,2,1,7],[13,8,1,13,"packageInfo"],[13,19,1,24],[13,22,1,27],[14,4,1,29,"name"],[14,8,1,33],[14,10,1,35],[14,33,1,58],[15,4,1,60,"path"],[15,8,1,64],[15,10,1,67,"import"],[15,16,1,73],[15,17,1,74,"meta"],[15,21,1,78],[15,25,1,82,"import"],[15,31,1,88],[15,32,1,89,"meta"],[15,36,1,93],[15,37,1,94,"url"],[15,40,1,97],[15,43,1,101],[15,47,1,105,"URL"],[15,50,1,108],[15,51,1,109,"import"],[15,57,1,115],[15,58,1,116,"meta"],[15,62,1,120],[15,63,1,121,"url"],[15,66,1,124],[15,67,1,125],[15,68,1,126,"pathname"],[15,76,1,134],[15,77,1,135,"substring"],[15,86,1,144],[15,87,1,145],[15,88,1,146],[15,90,1,148],[15,94,1,152,"URL"],[15,97,1,155],[15,98,1,156,"import"],[15,104,1,162],[15,105,1,163,"meta"],[15,109,1,167],[15,110,1,168,"url"],[15,113,1,171],[15,114,1,172],[15,115,1,173,"pathname"],[15,123,1,181],[15,124,1,182,"lastIndexOf"],[15,135,1,193],[15,136,1,194],[15,139,1,197],[15,140,1,198],[15,143,1,201],[15,144,1,202],[15,145,1,203],[15,148,1,206],[15,154,1,212],[16,4,1,214,"type"],[16,8,1,218],[16,10,1,220],[16,15,1,225],[17,4,1,227,"version"],[17,11,1,234],[17,13,1,236],[18,2,1,245],[18,3,1,246],[19,0,1,247],[19,3]],"functionMap":{"names":["<global>"],"mappings":"AAA"},"hasCjsExports":false},"type":"js/module"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"dependencies":[],"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 Object.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function () {\n return _default;\n }\n });\n /**\n * Copyright (c) Nicolas Gallagher.\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n var Platform = {\n OS: 'web',\n select: obj => 'web' in obj ? obj.web : obj.default,\n get isTesting() {\n if (process.env.NODE_ENV === 'test') {\n return true;\n }\n return false;\n }\n };\n var _default = Platform;\n});","lineCount":34,"map":[[7,2,21,0,"Object"],[7,8,21,0],[7,9,21,0,"defineProperty"],[7,23,21,0],[7,24,21,0,"exports"],[7,31,21,0],[8,4,21,0,"enumerable"],[8,14,21,0],[9,4,21,0,"get"],[9,7,21,0],[9,18,21,0,"get"],[9,19,21,0],[10,6,21,0],[10,13,21,0,"_default"],[10,21,21,0],[11,4,21,0],[12,2,21,0],[13,2,1,0],[14,0,2,0],[15,0,3,0],[16,0,4,0],[17,0,5,0],[18,0,6,0],[19,0,7,0],[20,0,8,0],[21,0,9,0],[23,2,11,0],[23,6,11,4,"Platform"],[23,14,11,12],[23,17,11,15],[24,4,12,2,"OS"],[24,6,12,4],[24,8,12,6],[24,13,12,11],[25,4,13,2,"select"],[25,10,13,8],[25,12,13,10,"obj"],[25,15,13,13],[25,19,13,17],[25,24,13,22],[25,28,13,26,"obj"],[25,31,13,29],[25,34,13,32,"obj"],[25,37,13,35],[25,38,13,36,"web"],[25,41,13,39],[25,44,13,42,"obj"],[25,47,13,45],[25,48,13,46,"default"],[25,55,13,53],[26,4,14,2],[26,8,14,6,"isTesting"],[26,17,14,15,"isTesting"],[26,18,14,15],[26,20,14,18],[27,6,15,4],[27,10,15,8,"process"],[27,17,15,15],[27,18,15,16,"env"],[27,21,15,19],[27,22,15,20,"NODE_ENV"],[27,30,15,28],[27,35,15,33],[27,41,15,39],[27,43,15,41],[28,8,16,6],[28,15,16,13],[28,19,16,17],[29,6,17,4],[30,6,18,4],[30,13,18,11],[30,18,18,16],[31,4,19,2],[32,2,20,0],[32,3,20,1],[33,2,21,0],[33,6,21,0,"_default"],[33,14,21,0],[33,17,21,15,"Platform"],[33,25,21,23],[34,0,21,24],[34,3]],"functionMap":{"names":["<global>","Platform.select","Platform.get__isTesting"],"mappings":"AAA;UCY,2CD;EEC;GFK"},"hasCjsExports":false},"type":"js/module"}]}
|
||||
+1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user