mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 07:41:01 +00:00
1 line
10 KiB
Plaintext
1 line
10 KiB
Plaintext
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":121},"end":{"line":4,"column":30,"index":136}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":19,"index":157},"end":{"line":5,"column":46,"index":184}}],"key":"H94lp+EitftSFqDHaenrSs5zKB0=","exportNames":["*"],"imports":1}},{"name":"./helpers/filterBountyProposals.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":35,"index":221},"end":{"line":6,"column":80,"index":266}}],"key":"QUrJXGYoXQFWpuLz820pceNhN2E=","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.bounties = bounties;\n const rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n const index_js_1 = require(_dependencyMap[1], \"../util/index.js\");\n const filterBountyProposals_js_1 = require(_dependencyMap[2], \"./helpers/filterBountyProposals.js\");\n function parseResult([maybeBounties, maybeDescriptions, ids, bountyProposals]) {\n const bounties = [];\n maybeBounties.forEach((bounty, index) => {\n if (bounty.isSome) {\n bounties.push({\n bounty: bounty.unwrap(),\n description: maybeDescriptions[index].unwrapOrDefault().toUtf8(),\n index: ids[index],\n proposals: bountyProposals.filter(bountyProposal => bountyProposal.proposal && ids[index].eq(bountyProposal.proposal.args[0]))\n });\n }\n });\n return bounties;\n }\n /**\n * @name bounties\n * @descrive Retrieves all active bounties, their descriptions, and associated proposals.\n * @example\n * ```javascript\n * const bounties = await api.derive.bounties();\n * console.log(\"Active bounties:\", bounties);\n * ```\n */\n function bounties(instanceId, api) {\n const bountyBase = api.query.bounties || api.query.treasury;\n return (0, index_js_1.memo)(instanceId, () => bountyBase.bounties ? (0, rxjs_1.combineLatest)([bountyBase.bountyCount(), api.query.council ? api.query.council.proposalCount() : (0, rxjs_1.of)(0)]).pipe((0, rxjs_1.switchMap)(() => (0, rxjs_1.combineLatest)([bountyBase.bounties.keys(), api.derive.council ? api.derive.council.proposals() : (0, rxjs_1.of)([])])), (0, rxjs_1.switchMap)(([keys, proposals]) => {\n const ids = keys.map(({\n args: [id]\n }) => id);\n return (0, rxjs_1.combineLatest)([bountyBase.bounties.multi(ids), bountyBase.bountyDescriptions.multi(ids), (0, rxjs_1.of)(ids), (0, rxjs_1.of)((0, filterBountyProposals_js_1.filterBountiesProposals)(api, proposals))]);\n }), (0, rxjs_1.map)(parseResult)) : (0, rxjs_1.of)(parseResult([[], [], [], []])));\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,"bounties"],[7,18,3,16],[7,21,3,19,"bounties"],[7,29,3,27],[8,2,4,0],[8,8,4,6,"rxjs_1"],[8,14,4,12],[8,17,4,15,"require"],[8,24,4,22],[8,25,4,22,"_dependencyMap"],[8,39,4,22],[8,50,4,29],[8,51,4,30],[9,2,5,0],[9,8,5,6,"index_js_1"],[9,18,5,16],[9,21,5,19,"require"],[9,28,5,26],[9,29,5,26,"_dependencyMap"],[9,43,5,26],[9,66,5,45],[9,67,5,46],[10,2,6,0],[10,8,6,6,"filterBountyProposals_js_1"],[10,34,6,32],[10,37,6,35,"require"],[10,44,6,42],[10,45,6,42,"_dependencyMap"],[10,59,6,42],[10,100,6,79],[10,101,6,80],[11,2,7,0],[11,11,7,9,"parseResult"],[11,22,7,20,"parseResult"],[11,23,7,21],[11,24,7,22,"maybeBounties"],[11,37,7,35],[11,39,7,37,"maybeDescriptions"],[11,56,7,54],[11,58,7,56,"ids"],[11,61,7,59],[11,63,7,61,"bountyProposals"],[11,78,7,76],[11,79,7,77],[11,81,7,79],[12,4,8,4],[12,10,8,10,"bounties"],[12,18,8,18],[12,21,8,21],[12,23,8,23],[13,4,9,4,"maybeBounties"],[13,17,9,17],[13,18,9,18,"forEach"],[13,25,9,25],[13,26,9,26],[13,27,9,27,"bounty"],[13,33,9,33],[13,35,9,35,"index"],[13,40,9,40],[13,45,9,45],[14,6,10,8],[14,10,10,12,"bounty"],[14,16,10,18],[14,17,10,19,"isSome"],[14,23,10,25],[14,25,10,27],[15,8,11,12,"bounties"],[15,16,11,20],[15,17,11,21,"push"],[15,21,11,25],[15,22,11,26],[16,10,12,16,"bounty"],[16,16,12,22],[16,18,12,24,"bounty"],[16,24,12,30],[16,25,12,31,"unwrap"],[16,31,12,37],[16,32,12,38],[16,33,12,39],[17,10,13,16,"description"],[17,21,13,27],[17,23,13,29,"maybeDescriptions"],[17,40,13,46],[17,41,13,47,"index"],[17,46,13,52],[17,47,13,53],[17,48,13,54,"unwrapOrDefault"],[17,63,13,69],[17,64,13,70],[17,65,13,71],[17,66,13,72,"toUtf8"],[17,72,13,78],[17,73,13,79],[17,74,13,80],[18,10,14,16,"index"],[18,15,14,21],[18,17,14,23,"ids"],[18,20,14,26],[18,21,14,27,"index"],[18,26,14,32],[18,27,14,33],[19,10,15,16,"proposals"],[19,19,15,25],[19,21,15,27,"bountyProposals"],[19,36,15,42],[19,37,15,43,"filter"],[19,43,15,49],[19,44,15,51,"bountyProposal"],[19,58,15,65],[19,62,15,70,"bountyProposal"],[19,76,15,84],[19,77,15,85,"proposal"],[19,85,15,93],[19,89,15,97,"ids"],[19,92,15,100],[19,93,15,101,"index"],[19,98,15,106],[19,99,15,107],[19,100,15,108,"eq"],[19,102,15,110],[19,103,15,111,"bountyProposal"],[19,117,15,125],[19,118,15,126,"proposal"],[19,126,15,134],[19,127,15,135,"args"],[19,131,15,139],[19,132,15,140],[19,133,15,141],[19,134,15,142],[19,135,15,143],[20,8,16,12],[20,9,16,13],[20,10,16,14],[21,6,17,8],[22,4,18,4],[22,5,18,5],[22,6,18,6],[23,4,19,4],[23,11,19,11,"bounties"],[23,19,19,19],[24,2,20,0],[25,2,21,0],[26,0,22,0],[27,0,23,0],[28,0,24,0],[29,0,25,0],[30,0,26,0],[31,0,27,0],[32,0,28,0],[33,0,29,0],[34,2,30,0],[34,11,30,9,"bounties"],[34,19,30,17,"bounties"],[34,20,30,18,"instanceId"],[34,30,30,28],[34,32,30,30,"api"],[34,35,30,33],[34,37,30,35],[35,4,31,4],[35,10,31,10,"bountyBase"],[35,20,31,20],[35,23,31,23,"api"],[35,26,31,26],[35,27,31,27,"query"],[35,32,31,32],[35,33,31,33,"bounties"],[35,41,31,41],[35,45,31,45,"api"],[35,48,31,48],[35,49,31,49,"query"],[35,54,31,54],[35,55,31,55,"treasury"],[35,63,31,63],[36,4,32,4],[36,11,32,11],[36,12,32,12],[36,13,32,13],[36,15,32,15,"index_js_1"],[36,25,32,25],[36,26,32,26,"memo"],[36,30,32,30],[36,32,32,32,"instanceId"],[36,42,32,42],[36,44,32,44],[36,50,32,50,"bountyBase"],[36,60,32,60],[36,61,32,61,"bounties"],[36,69,32,69],[36,72,33,10],[36,73,33,11],[36,74,33,12],[36,76,33,14,"rxjs_1"],[36,82,33,20],[36,83,33,21,"combineLatest"],[36,96,33,34],[36,98,33,36],[36,99,34,12,"bountyBase"],[36,109,34,22],[36,110,34,23,"bountyCount"],[36,121,34,34],[36,122,34,35],[36,123,34,36],[36,125,35,12,"api"],[36,128,35,15],[36,129,35,16,"query"],[36,134,35,21],[36,135,35,22,"council"],[36,142,35,29],[36,145,36,18,"api"],[36,148,36,21],[36,149,36,22,"query"],[36,154,36,27],[36,155,36,28,"council"],[36,162,36,35],[36,163,36,36,"proposalCount"],[36,176,36,49],[36,177,36,50],[36,178,36,51],[36,181,37,18],[36,182,37,19],[36,183,37,20],[36,185,37,22,"rxjs_1"],[36,191,37,28],[36,192,37,29,"of"],[36,194,37,31],[36,196,37,33],[36,197,37,34],[36,198,37,35],[36,199,38,9],[36,200,38,10],[36,201,38,11,"pipe"],[36,205,38,15],[36,206,38,16],[36,207,38,17],[36,208,38,18],[36,210,38,20,"rxjs_1"],[36,216,38,26],[36,217,38,27,"switchMap"],[36,226,38,36],[36,228,38,38],[36,234,38,44],[36,235,38,45],[36,236,38,46],[36,238,38,48,"rxjs_1"],[36,244,38,54],[36,245,38,55,"combineLatest"],[36,258,38,68],[36,260,38,70],[36,261,39,12,"bountyBase"],[36,271,39,22],[36,272,39,23,"bounties"],[36,280,39,31],[36,281,39,32,"keys"],[36,285,39,36],[36,286,39,37],[36,287,39,38],[36,289,40,12,"api"],[36,292,40,15],[36,293,40,16,"derive"],[36,299,40,22],[36,300,40,23,"council"],[36,307,40,30],[36,310,41,18,"api"],[36,313,41,21],[36,314,41,22,"derive"],[36,320,41,28],[36,321,41,29,"council"],[36,328,41,36],[36,329,41,37,"proposals"],[36,338,41,46],[36,339,41,47],[36,340,41,48],[36,343,42,18],[36,344,42,19],[36,345,42,20],[36,347,42,22,"rxjs_1"],[36,353,42,28],[36,354,42,29,"of"],[36,356,42,31],[36,358,42,33],[36,360,42,35],[36,361,42,36],[36,362,43,9],[36,363,43,10],[36,364,43,11],[36,366,43,13],[36,367,43,14],[36,368,43,15],[36,370,43,17,"rxjs_1"],[36,376,43,23],[36,377,43,24,"switchMap"],[36,386,43,33],[36,388,43,35],[36,389,43,36],[36,390,43,37,"keys"],[36,394,43,41],[36,396,43,43,"proposals"],[36,405,43,52],[36,406,43,53],[36,411,43,58],[37,6,44,12],[37,12,44,18,"ids"],[37,15,44,21],[37,18,44,24,"keys"],[37,22,44,28],[37,23,44,29,"map"],[37,26,44,32],[37,27,44,33],[37,28,44,34],[38,8,44,36,"args"],[38,12,44,40],[38,14,44,42],[38,15,44,43,"id"],[38,17,44,45],[39,6,44,47],[39,7,44,48],[39,12,44,53,"id"],[39,14,44,55],[39,15,44,56],[40,6,45,12],[40,13,45,19],[40,14,45,20],[40,15,45,21],[40,17,45,23,"rxjs_1"],[40,23,45,29],[40,24,45,30,"combineLatest"],[40,37,45,43],[40,39,45,45],[40,40,46,16,"bountyBase"],[40,50,46,26],[40,51,46,27,"bounties"],[40,59,46,35],[40,60,46,36,"multi"],[40,65,46,41],[40,66,46,42,"ids"],[40,69,46,45],[40,70,46,46],[40,72,47,16,"bountyBase"],[40,82,47,26],[40,83,47,27,"bountyDescriptions"],[40,101,47,45],[40,102,47,46,"multi"],[40,107,47,51],[40,108,47,52,"ids"],[40,111,47,55],[40,112,47,56],[40,114,48,16],[40,115,48,17],[40,116,48,18],[40,118,48,20,"rxjs_1"],[40,124,48,26],[40,125,48,27,"of"],[40,127,48,29],[40,129,48,31,"ids"],[40,132,48,34],[40,133,48,35],[40,135,49,16],[40,136,49,17],[40,137,49,18],[40,139,49,20,"rxjs_1"],[40,145,49,26],[40,146,49,27,"of"],[40,148,49,29],[40,150,49,31],[40,151,49,32],[40,152,49,33],[40,154,49,35,"filterBountyProposals_js_1"],[40,180,49,61],[40,181,49,62,"filterBountiesProposals"],[40,204,49,85],[40,206,49,87,"api"],[40,209,49,90],[40,211,49,92,"proposals"],[40,220,49,101],[40,221,49,102],[40,222,49,103],[40,223,50,13],[40,224,50,14],[41,4,51,8],[41,5,51,9],[41,6,51,10],[41,8,51,12],[41,9,51,13],[41,10,51,14],[41,12,51,16,"rxjs_1"],[41,18,51,22],[41,19,51,23,"map"],[41,22,51,26],[41,24,51,28,"parseResult"],[41,35,51,39],[41,36,51,40],[41,37,51,41],[41,40,52,10],[41,41,52,11],[41,42,52,12],[41,44,52,14,"rxjs_1"],[41,50,52,20],[41,51,52,21,"of"],[41,53,52,23],[41,55,52,25,"parseResult"],[41,66,52,36],[41,67,52,37],[41,68,52,38],[41,70,52,40],[41,72,52,42],[41,74,52,44],[41,76,52,46],[41,78,52,48],[41,80,52,50],[41,82,52,52],[41,83,52,53],[41,84,52,54],[41,85,52,55],[41,86,52,56],[42,2,53,0],[43,0,53,1],[43,3]],"functionMap":{"names":["<global>","parseResult","maybeBounties.forEach$argument_0","bountyProposals.filter$argument_0","bounties","<anonymous>","keys.map$argument_0"],"mappings":"AAA;ACM;0BCE;kDCM,6FD;KDG;CDE;AIU;4CCE;iCCY,sBD;uDDQ;CJC"},"hasCjsExports":true},"type":"js/module"}]} |