Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/7b/f0061ff21279240049c0d795784e8fe3830c162c304a9cf9d89c68727b6f1520c5be0c
T
2025-11-08 10:07:13 +00:00

1 line
5.8 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{"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":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":153},"end":{"line":5,"column":40,"index":178}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util-crypto","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":22,"index":202},"end":{"line":6,"column":54,"index":234}}],"key":"ZJJnwX+B+oj5JQmnkWFMF+4Lj2M=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":19,"index":255},"end":{"line":7,"column":46,"index":282}}],"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.childKey = childKey;\n var rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n var util_1 = require(_dependencyMap[1], \"@polkadot/util\");\n var util_crypto_1 = require(_dependencyMap[2], \"@polkadot/util-crypto\");\n var index_js_1 = require(_dependencyMap[3], \"../util/index.js\");\n function createChildKey(info) {\n return (0, util_1.u8aToHex)((0, util_1.u8aConcat)(':child_storage:default:', (0, util_crypto_1.blake2AsU8a)((0, util_1.u8aConcat)('crowdloan', (info.fundIndex || info.trieIndex).toU8a()))));\n }\n /**\n * @name childKey\n * @description Retrieves the child storage key for a given parachains crowdloan contributions.\n * This key is used to access contribution data stored in a separate child trie of the blockchains state.\n * @param {string | number | BN} paraId The parachain ID for which contributions are being queried.\n * @example\n * ```javascript\n * const childKey = await api.derive.crowdloan.childKey(3369);\n * console.log(\"Child Key:\", childKey);\n * ```\n */\n function childKey(instanceId, api) {\n return (0, index_js_1.memo)(instanceId, function (paraId) {\n return api.query['crowdloan']['funds'](paraId).pipe((0, rxjs_1.map)(function (optInfo) {\n return optInfo.isSome ? createChildKey(optInfo.unwrap()) : null;\n }));\n });\n }\n});","lineCount":33,"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,"childKey"],[7,18,3,16],[7,21,3,19,"childKey"],[7,29,3,27],[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,"util_1"],[9,12,5,12],[9,15,5,15,"require"],[9,22,5,22],[9,23,5,22,"_dependencyMap"],[9,37,5,22],[9,58,5,39],[9,59,5,40],[10,2,6,0],[10,6,6,6,"util_crypto_1"],[10,19,6,19],[10,22,6,22,"require"],[10,29,6,29],[10,30,6,29,"_dependencyMap"],[10,44,6,29],[10,72,6,53],[10,73,6,54],[11,2,7,0],[11,6,7,6,"index_js_1"],[11,16,7,16],[11,19,7,19,"require"],[11,26,7,26],[11,27,7,26,"_dependencyMap"],[11,41,7,26],[11,64,7,45],[11,65,7,46],[12,2,8,0],[12,11,8,9,"createChildKey"],[12,25,8,23,"createChildKey"],[12,26,8,24,"info"],[12,30,8,28],[12,32,8,30],[13,4,9,4],[13,11,9,11],[13,12,9,12],[13,13,9,13],[13,15,9,15,"util_1"],[13,21,9,21],[13,22,9,22,"u8aToHex"],[13,30,9,30],[13,32,9,32],[13,33,9,33],[13,34,9,34],[13,36,9,36,"util_1"],[13,42,9,42],[13,43,9,43,"u8aConcat"],[13,52,9,52],[13,54,9,54],[13,79,9,79],[13,81,9,81],[13,82,9,82],[13,83,9,83],[13,85,9,85,"util_crypto_1"],[13,98,9,98],[13,99,9,99,"blake2AsU8a"],[13,110,9,110],[13,112,9,112],[13,113,9,113],[13,114,9,114],[13,116,9,116,"util_1"],[13,122,9,122],[13,123,9,123,"u8aConcat"],[13,132,9,132],[13,134,9,134],[13,145,9,145],[13,147,9,147],[13,148,9,148,"info"],[13,152,9,152],[13,153,9,153,"fundIndex"],[13,162,9,162],[13,166,9,166,"info"],[13,170,9,170],[13,171,9,171,"trieIndex"],[13,180,9,180],[13,182,9,182,"toU8a"],[13,187,9,187],[13,188,9,188],[13,189,9,189],[13,190,9,190],[13,191,9,191],[13,192,9,192],[13,193,9,193],[14,2,10,0],[15,2,11,0],[16,0,12,0],[17,0,13,0],[18,0,14,0],[19,0,15,0],[20,0,16,0],[21,0,17,0],[22,0,18,0],[23,0,19,0],[24,0,20,0],[25,0,21,0],[26,2,22,0],[26,11,22,9,"childKey"],[26,19,22,17,"childKey"],[26,20,22,18,"instanceId"],[26,30,22,28],[26,32,22,30,"api"],[26,35,22,33],[26,37,22,35],[27,4,23,4],[27,11,23,11],[27,12,23,12],[27,13,23,13],[27,15,23,15,"index_js_1"],[27,25,23,25],[27,26,23,26,"memo"],[27,30,23,30],[27,32,23,32,"instanceId"],[27,42,23,42],[27,44,23,44],[27,54,23,45,"paraId"],[27,60,23,51],[28,6,23,51],[28,13,23,56,"api"],[28,16,23,59],[28,17,23,60,"query"],[28,22,23,65],[28,23,23,66],[28,34,23,77],[28,35,23,78],[28,36,23,79],[28,43,23,86],[28,44,23,87],[28,45,23,88,"paraId"],[28,51,23,94],[28,52,23,95],[28,53,23,96,"pipe"],[28,57,23,100],[28,58,23,101],[28,59,23,102],[28,60,23,103],[28,62,23,105,"rxjs_1"],[28,68,23,111],[28,69,23,112,"map"],[28,72,23,115],[28,74,23,117],[28,84,23,118,"optInfo"],[28,91,23,125],[29,8,23,125],[29,15,23,130,"optInfo"],[29,22,23,137],[29,23,23,138,"isSome"],[29,29,23,144],[29,32,24,10,"createChildKey"],[29,46,24,24],[29,47,24,25,"optInfo"],[29,54,24,32],[29,55,24,33,"unwrap"],[29,61,24,39],[29,62,24,40],[29,63,24,41],[29,64,24,42],[29,67,25,10],[29,71,25,14],[30,6,25,14],[30,8,25,15],[30,9,25,16],[31,4,25,16],[31,6,25,17],[32,2,26,0],[33,0,26,1],[33,3]],"functionMap":{"names":["<global>","createChildKey","childKey","<anonymous>"],"mappings":"AAA;ACO;CDE;AEY;4CCC;gBDE;CFC"},"hasCjsExports":true},"type":"js/module"}]}