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

1 line
5.5 KiB
Plaintext

{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":46,"index":46}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","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.toV15 = toV15;\n var _polkadotUtil = require(_dependencyMap[0], \"@polkadot/util\");\n /**\n * Convert the Metadata to v15\n * @internal\n **/\n function toV15(registry, v14, _) {\n // V15 is mostly equivalent to v14 however it does add\n //\n // 1. The top-level apis entry - it is assumed that in usage we would\n // just check for all-empty (like this would construct)\n // 2. A docs param on the pallet itself\n // 3. Additional extrinsic parameters\n //\n // A straight conversion with createTypeUndafe magic fills in details\n // We need the UncheckedExtrinsic to extract the types, at least for v14\n // which does have these details embedded (previous-gen won't populate)\n const unchecked = v14.lookup.paramTypes.SpRuntimeUncheckedExtrinsic;\n return registry.createTypeUnsafe('MetadataV15', [(0, _polkadotUtil.objectSpread)({}, v14, {\n extrinsic: registry.createTypeUnsafe('ExtrinsicMetadataV15', [(0, _polkadotUtil.objectSpread)({}, v14.extrinsic, {\n addressType: unchecked?.[0].type.unwrapOr(0),\n callType: unchecked?.[1].type.unwrapOr(0),\n extraType: unchecked?.[3].type.unwrapOr(0),\n signatureType: unchecked?.[2].type.unwrapOr(0)\n })]),\n outerEnums: registry.createTypeUnsafe('OuterEnums15', [{\n // FIXME We need to extract & add the errorType in here\n // (these doesn't seem to be an esay way to detect & extract it)\n callType: unchecked?.[1].type.unwrapOr(0),\n eventType: v14.lookup.paramTypes.FrameSystemEventRecord?.[0].type.unwrapOr(0)\n }])\n })]);\n }\n});","lineCount":40,"map":[[7,2,6,0,"exports"],[7,9,6,0],[7,10,6,0,"toV15"],[7,15,6,0],[7,18,6,0,"toV15"],[7,23,6,0],[8,2,1,0],[8,6,1,0,"_polkadotUtil"],[8,19,1,0],[8,22,1,0,"require"],[8,29,1,0],[8,30,1,0,"_dependencyMap"],[8,44,1,0],[9,2,2,0],[10,0,3,0],[11,0,4,0],[12,0,5,0],[13,2,6,7],[13,11,6,16,"toV15"],[13,16,6,21,"toV15"],[13,17,6,22,"registry"],[13,25,6,30],[13,27,6,32,"v14"],[13,30,6,35],[13,32,6,37,"_"],[13,33,6,38],[13,35,6,40],[14,4,7,4],[15,4,8,4],[16,4,9,4],[17,4,10,4],[18,4,11,4],[19,4,12,4],[20,4,13,4],[21,4,14,4],[22,4,15,4],[23,4,16,4],[24,4,17,4],[24,10,17,10,"unchecked"],[24,19,17,19],[24,22,17,22,"v14"],[24,25,17,25],[24,26,17,26,"lookup"],[24,32,17,32],[24,33,17,33,"paramTypes"],[24,43,17,43],[24,44,17,44,"SpRuntimeUncheckedExtrinsic"],[24,71,17,71],[25,4,18,4],[25,11,18,11,"registry"],[25,19,18,19],[25,20,18,20,"createTypeUnsafe"],[25,36,18,36],[25,37,18,37],[25,50,18,50],[25,52,18,52],[25,53,19,8],[25,57,19,8,"objectSpread"],[25,70,19,20],[25,71,19,20,"objectSpread"],[25,83,19,20],[25,85,19,21],[25,86,19,22],[25,87,19,23],[25,89,19,25,"v14"],[25,92,19,28],[25,94,19,30],[26,6,20,12,"extrinsic"],[26,15,20,21],[26,17,20,23,"registry"],[26,25,20,31],[26,26,20,32,"createTypeUnsafe"],[26,42,20,48],[26,43,20,49],[26,65,20,71],[26,67,20,73],[26,68,21,16],[26,72,21,16,"objectSpread"],[26,85,21,28],[26,86,21,28,"objectSpread"],[26,98,21,28],[26,100,21,29],[26,101,21,30],[26,102,21,31],[26,104,21,33,"v14"],[26,107,21,36],[26,108,21,37,"extrinsic"],[26,117,21,46],[26,119,21,48],[27,8,22,20,"addressType"],[27,19,22,31],[27,21,22,33,"unchecked"],[27,30,22,42],[27,33,22,45],[27,34,22,46],[27,35,22,47],[27,36,22,48,"type"],[27,40,22,52],[27,41,22,53,"unwrapOr"],[27,49,22,61],[27,50,22,62],[27,51,22,63],[27,52,22,64],[28,8,23,20,"callType"],[28,16,23,28],[28,18,23,30,"unchecked"],[28,27,23,39],[28,30,23,42],[28,31,23,43],[28,32,23,44],[28,33,23,45,"type"],[28,37,23,49],[28,38,23,50,"unwrapOr"],[28,46,23,58],[28,47,23,59],[28,48,23,60],[28,49,23,61],[29,8,24,20,"extraType"],[29,17,24,29],[29,19,24,31,"unchecked"],[29,28,24,40],[29,31,24,43],[29,32,24,44],[29,33,24,45],[29,34,24,46,"type"],[29,38,24,50],[29,39,24,51,"unwrapOr"],[29,47,24,59],[29,48,24,60],[29,49,24,61],[29,50,24,62],[30,8,25,20,"signatureType"],[30,21,25,33],[30,23,25,35,"unchecked"],[30,32,25,44],[30,35,25,47],[30,36,25,48],[30,37,25,49],[30,38,25,50,"type"],[30,42,25,54],[30,43,25,55,"unwrapOr"],[30,51,25,63],[30,52,25,64],[30,53,25,65],[31,6,26,16],[31,7,26,17],[31,8,26,18],[31,9,27,13],[31,10,27,14],[32,6,28,12,"outerEnums"],[32,16,28,22],[32,18,28,24,"registry"],[32,26,28,32],[32,27,28,33,"createTypeUnsafe"],[32,43,28,49],[32,44,28,50],[32,58,28,64],[32,60,28,66],[32,61,28,67],[33,8,29,20],[34,8,30,20],[35,8,31,20,"callType"],[35,16,31,28],[35,18,31,30,"unchecked"],[35,27,31,39],[35,30,31,42],[35,31,31,43],[35,32,31,44],[35,33,31,45,"type"],[35,37,31,49],[35,38,31,50,"unwrapOr"],[35,46,31,58],[35,47,31,59],[35,48,31,60],[35,49,31,61],[36,8,32,20,"eventType"],[36,17,32,29],[36,19,32,31,"v14"],[36,22,32,34],[36,23,32,35,"lookup"],[36,29,32,41],[36,30,32,42,"paramTypes"],[36,40,32,52],[36,41,32,53,"FrameSystemEventRecord"],[36,63,32,75],[36,66,32,78],[36,67,32,79],[36,68,32,80],[36,69,32,81,"type"],[36,73,32,85],[36,74,32,86,"unwrapOr"],[36,82,32,94],[36,83,32,95],[36,84,32,96],[37,6,33,16],[37,7,33,17],[37,8,33,18],[38,4,34,8],[38,5,34,9],[38,6,34,10],[38,7,35,5],[38,8,35,6],[39,2,36,0],[40,0,36,1],[40,3]],"functionMap":{"names":["<global>","toV15"],"mappings":"AAA;OCK;CD8B"},"hasCjsExports":false},"type":"js/module"}]}