mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 11:11:01 +00:00
1 line
5.8 KiB
Plaintext
1 line
5.8 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":115},"end":{"line":4,"column":40,"index":140}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","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 const util_1 = 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, util_1.objectSpread)({}, v14, {\n extrinsic: registry.createTypeUnsafe('ExtrinsicMetadataV15', [(0, util_1.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":[[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,"toV15"],[7,15,3,13],[7,18,3,16,"toV15"],[7,23,3,21],[8,2,4,0],[8,8,4,6,"util_1"],[8,14,4,12],[8,17,4,15,"require"],[8,24,4,22],[8,25,4,22,"_dependencyMap"],[8,39,4,22],[8,60,4,39],[8,61,4,40],[9,2,5,0],[10,0,6,0],[11,0,7,0],[12,0,8,0],[13,2,9,0],[13,11,9,9,"toV15"],[13,16,9,14,"toV15"],[13,17,9,15,"registry"],[13,25,9,23],[13,27,9,25,"v14"],[13,30,9,28],[13,32,9,30,"_"],[13,33,9,31],[13,35,9,33],[14,4,10,4],[15,4,11,4],[16,4,12,4],[17,4,13,4],[18,4,14,4],[19,4,15,4],[20,4,16,4],[21,4,17,4],[22,4,18,4],[23,4,19,4],[24,4,20,4],[24,10,20,10,"unchecked"],[24,19,20,19],[24,22,20,22,"v14"],[24,25,20,25],[24,26,20,26,"lookup"],[24,32,20,32],[24,33,20,33,"paramTypes"],[24,43,20,43],[24,44,20,44,"SpRuntimeUncheckedExtrinsic"],[24,71,20,71],[25,4,21,4],[25,11,21,11,"registry"],[25,19,21,19],[25,20,21,20,"createTypeUnsafe"],[25,36,21,36],[25,37,21,37],[25,50,21,50],[25,52,21,52],[25,53,22,8],[25,54,22,9],[25,55,22,10],[25,57,22,12,"util_1"],[25,63,22,18],[25,64,22,19,"objectSpread"],[25,76,22,31],[25,78,22,33],[25,79,22,34],[25,80,22,35],[25,82,22,37,"v14"],[25,85,22,40],[25,87,22,42],[26,6,23,12,"extrinsic"],[26,15,23,21],[26,17,23,23,"registry"],[26,25,23,31],[26,26,23,32,"createTypeUnsafe"],[26,42,23,48],[26,43,23,49],[26,65,23,71],[26,67,23,73],[26,68,24,16],[26,69,24,17],[26,70,24,18],[26,72,24,20,"util_1"],[26,78,24,26],[26,79,24,27,"objectSpread"],[26,91,24,39],[26,93,24,41],[26,94,24,42],[26,95,24,43],[26,97,24,45,"v14"],[26,100,24,48],[26,101,24,49,"extrinsic"],[26,110,24,58],[26,112,24,60],[27,8,25,20,"addressType"],[27,19,25,31],[27,21,25,33,"unchecked"],[27,30,25,42],[27,33,25,45],[27,34,25,46],[27,35,25,47],[27,36,25,48,"type"],[27,40,25,52],[27,41,25,53,"unwrapOr"],[27,49,25,61],[27,50,25,62],[27,51,25,63],[27,52,25,64],[28,8,26,20,"callType"],[28,16,26,28],[28,18,26,30,"unchecked"],[28,27,26,39],[28,30,26,42],[28,31,26,43],[28,32,26,44],[28,33,26,45,"type"],[28,37,26,49],[28,38,26,50,"unwrapOr"],[28,46,26,58],[28,47,26,59],[28,48,26,60],[28,49,26,61],[29,8,27,20,"extraType"],[29,17,27,29],[29,19,27,31,"unchecked"],[29,28,27,40],[29,31,27,43],[29,32,27,44],[29,33,27,45],[29,34,27,46,"type"],[29,38,27,50],[29,39,27,51,"unwrapOr"],[29,47,27,59],[29,48,27,60],[29,49,27,61],[29,50,27,62],[30,8,28,20,"signatureType"],[30,21,28,33],[30,23,28,35,"unchecked"],[30,32,28,44],[30,35,28,47],[30,36,28,48],[30,37,28,49],[30,38,28,50,"type"],[30,42,28,54],[30,43,28,55,"unwrapOr"],[30,51,28,63],[30,52,28,64],[30,53,28,65],[31,6,29,16],[31,7,29,17],[31,8,29,18],[31,9,30,13],[31,10,30,14],[32,6,31,12,"outerEnums"],[32,16,31,22],[32,18,31,24,"registry"],[32,26,31,32],[32,27,31,33,"createTypeUnsafe"],[32,43,31,49],[32,44,31,50],[32,58,31,64],[32,60,31,66],[32,61,31,67],[33,8,32,20],[34,8,33,20],[35,8,34,20,"callType"],[35,16,34,28],[35,18,34,30,"unchecked"],[35,27,34,39],[35,30,34,42],[35,31,34,43],[35,32,34,44],[35,33,34,45,"type"],[35,37,34,49],[35,38,34,50,"unwrapOr"],[35,46,34,58],[35,47,34,59],[35,48,34,60],[35,49,34,61],[36,8,35,20,"eventType"],[36,17,35,29],[36,19,35,31,"v14"],[36,22,35,34],[36,23,35,35,"lookup"],[36,29,35,41],[36,30,35,42,"paramTypes"],[36,40,35,52],[36,41,35,53,"FrameSystemEventRecord"],[36,63,35,75],[36,66,35,78],[36,67,35,79],[36,68,35,80],[36,69,35,81,"type"],[36,73,35,85],[36,74,35,86,"unwrapOr"],[36,82,35,94],[36,83,35,95],[36,84,35,96],[37,6,36,16],[37,7,36,17],[37,8,36,18],[38,4,37,8],[38,5,37,9],[38,6,37,10],[38,7,38,5],[38,8,38,6],[39,2,39,0],[40,0,39,1],[40,3]],"functionMap":{"names":["<global>","toV15"],"mappings":"AAA;ACQ;CD8B"},"hasCjsExports":true},"type":"js/module"}]} |