Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/62/56c53a1d3b8f3cdeb246c9eecfeec8e3830c162c304a9cf9d89c68727b6f1520c5be0c
T
2025-10-24 02:50:33 +00:00

1 line
5.7 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 const rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n const util_1 = require(_dependencyMap[1], \"@polkadot/util\");\n const util_crypto_1 = require(_dependencyMap[2], \"@polkadot/util-crypto\");\n const 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, paraId => api.query['crowdloan']['funds'](paraId).pipe((0, rxjs_1.map)(optInfo => optInfo.isSome ? createChildKey(optInfo.unwrap()) : null)));\n }\n});","lineCount":29,"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,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,"util_1"],[9,14,5,12],[9,17,5,15,"require"],[9,24,5,22],[9,25,5,22,"_dependencyMap"],[9,39,5,22],[9,60,5,39],[9,61,5,40],[10,2,6,0],[10,8,6,6,"util_crypto_1"],[10,21,6,19],[10,24,6,22,"require"],[10,31,6,29],[10,32,6,29,"_dependencyMap"],[10,46,6,29],[10,74,6,53],[10,75,6,54],[11,2,7,0],[11,8,7,6,"index_js_1"],[11,18,7,16],[11,21,7,19,"require"],[11,28,7,26],[11,29,7,26,"_dependencyMap"],[11,43,7,26],[11,66,7,45],[11,67,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,45,"paraId"],[27,50,23,51],[27,54,23,56,"api"],[27,57,23,59],[27,58,23,60,"query"],[27,63,23,65],[27,64,23,66],[27,75,23,77],[27,76,23,78],[27,77,23,79],[27,84,23,86],[27,85,23,87],[27,86,23,88,"paraId"],[27,92,23,94],[27,93,23,95],[27,94,23,96,"pipe"],[27,98,23,100],[27,99,23,101],[27,100,23,102],[27,101,23,103],[27,103,23,105,"rxjs_1"],[27,109,23,111],[27,110,23,112,"map"],[27,113,23,115],[27,115,23,118,"optInfo"],[27,122,23,125],[27,126,23,130,"optInfo"],[27,133,23,137],[27,134,23,138,"isSome"],[27,140,23,144],[27,143,24,10,"createChildKey"],[27,157,24,24],[27,158,24,25,"optInfo"],[27,165,24,32],[27,166,24,33,"unwrap"],[27,172,24,39],[27,173,24,40],[27,174,24,41],[27,175,24,42],[27,178,25,10],[27,182,25,14],[27,183,25,15],[27,184,25,16],[27,185,25,17],[28,2,26,0],[29,0,26,1],[29,3]],"functionMap":{"names":["<global>","createChildKey","childKey","<anonymous>"],"mappings":"AAA;ACO;CDE;AEY;4CCC;gBDE;CFC"},"hasCjsExports":true},"type":"js/module"}]}