mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 12:21:01 +00:00
1 line
6.4 KiB
Plaintext
1 line
6.4 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 var util_1 = require(_dependencyMap[0], \"@polkadot/util\");\n /**\n * Convert the Metadata to v15\n * @internal\n **/\n function toV15(registry, v14, _) {\n var _v14$lookup$paramType;\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 var 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 == null ? void 0 : unchecked[0].type.unwrapOr(0),\n callType: unchecked == null ? void 0 : unchecked[1].type.unwrapOr(0),\n extraType: unchecked == null ? void 0 : unchecked[3].type.unwrapOr(0),\n signatureType: unchecked == null ? void 0 : 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 == null ? void 0 : unchecked[1].type.unwrapOr(0),\n eventType: (_v14$lookup$paramType = v14.lookup.paramTypes.FrameSystemEventRecord) == null ? void 0 : _v14$lookup$paramType[0].type.unwrapOr(0)\n }])\n })]);\n }\n});","lineCount":41,"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,6,4,6,"util_1"],[8,12,4,12],[8,15,4,15,"require"],[8,22,4,22],[8,23,4,22,"_dependencyMap"],[8,37,4,22],[8,58,4,39],[8,59,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,9,33],[14,8,9,33,"_v14$lookup$paramType"],[14,29,9,33],[15,4,10,4],[16,4,11,4],[17,4,12,4],[18,4,13,4],[19,4,14,4],[20,4,15,4],[21,4,16,4],[22,4,17,4],[23,4,18,4],[24,4,19,4],[25,4,20,4],[25,8,20,10,"unchecked"],[25,17,20,19],[25,20,20,22,"v14"],[25,23,20,25],[25,24,20,26,"lookup"],[25,30,20,32],[25,31,20,33,"paramTypes"],[25,41,20,43],[25,42,20,44,"SpRuntimeUncheckedExtrinsic"],[25,69,20,71],[26,4,21,4],[26,11,21,11,"registry"],[26,19,21,19],[26,20,21,20,"createTypeUnsafe"],[26,36,21,36],[26,37,21,37],[26,50,21,50],[26,52,21,52],[26,53,22,8],[26,54,22,9],[26,55,22,10],[26,57,22,12,"util_1"],[26,63,22,18],[26,64,22,19,"objectSpread"],[26,76,22,31],[26,78,22,33],[26,79,22,34],[26,80,22,35],[26,82,22,37,"v14"],[26,85,22,40],[26,87,22,42],[27,6,23,12,"extrinsic"],[27,15,23,21],[27,17,23,23,"registry"],[27,25,23,31],[27,26,23,32,"createTypeUnsafe"],[27,42,23,48],[27,43,23,49],[27,65,23,71],[27,67,23,73],[27,68,24,16],[27,69,24,17],[27,70,24,18],[27,72,24,20,"util_1"],[27,78,24,26],[27,79,24,27,"objectSpread"],[27,91,24,39],[27,93,24,41],[27,94,24,42],[27,95,24,43],[27,97,24,45,"v14"],[27,100,24,48],[27,101,24,49,"extrinsic"],[27,110,24,58],[27,112,24,60],[28,8,25,20,"addressType"],[28,19,25,31],[28,21,25,33,"unchecked"],[28,30,25,42],[28,50,25,33,"unchecked"],[28,59,25,42],[28,60,25,45],[28,61,25,46],[28,62,25,47],[28,63,25,48,"type"],[28,67,25,52],[28,68,25,53,"unwrapOr"],[28,76,25,61],[28,77,25,62],[28,78,25,63],[28,79,25,64],[29,8,26,20,"callType"],[29,16,26,28],[29,18,26,30,"unchecked"],[29,27,26,39],[29,47,26,30,"unchecked"],[29,56,26,39],[29,57,26,42],[29,58,26,43],[29,59,26,44],[29,60,26,45,"type"],[29,64,26,49],[29,65,26,50,"unwrapOr"],[29,73,26,58],[29,74,26,59],[29,75,26,60],[29,76,26,61],[30,8,27,20,"extraType"],[30,17,27,29],[30,19,27,31,"unchecked"],[30,28,27,40],[30,48,27,31,"unchecked"],[30,57,27,40],[30,58,27,43],[30,59,27,44],[30,60,27,45],[30,61,27,46,"type"],[30,65,27,50],[30,66,27,51,"unwrapOr"],[30,74,27,59],[30,75,27,60],[30,76,27,61],[30,77,27,62],[31,8,28,20,"signatureType"],[31,21,28,33],[31,23,28,35,"unchecked"],[31,32,28,44],[31,52,28,35,"unchecked"],[31,61,28,44],[31,62,28,47],[31,63,28,48],[31,64,28,49],[31,65,28,50,"type"],[31,69,28,54],[31,70,28,55,"unwrapOr"],[31,78,28,63],[31,79,28,64],[31,80,28,65],[32,6,29,16],[32,7,29,17],[32,8,29,18],[32,9,30,13],[32,10,30,14],[33,6,31,12,"outerEnums"],[33,16,31,22],[33,18,31,24,"registry"],[33,26,31,32],[33,27,31,33,"createTypeUnsafe"],[33,43,31,49],[33,44,31,50],[33,58,31,64],[33,60,31,66],[33,61,31,67],[34,8,32,20],[35,8,33,20],[36,8,34,20,"callType"],[36,16,34,28],[36,18,34,30,"unchecked"],[36,27,34,39],[36,47,34,30,"unchecked"],[36,56,34,39],[36,57,34,42],[36,58,34,43],[36,59,34,44],[36,60,34,45,"type"],[36,64,34,49],[36,65,34,50,"unwrapOr"],[36,73,34,58],[36,74,34,59],[36,75,34,60],[36,76,34,61],[37,8,35,20,"eventType"],[37,17,35,29],[37,20,35,29,"_v14$lookup$paramType"],[37,41,35,29],[37,44,35,31,"v14"],[37,47,35,34],[37,48,35,35,"lookup"],[37,54,35,41],[37,55,35,42,"paramTypes"],[37,65,35,52],[37,66,35,53,"FrameSystemEventRecord"],[37,88,35,75],[37,109,35,31,"_v14$lookup$paramType"],[37,130,35,31],[37,131,35,78],[37,132,35,79],[37,133,35,80],[37,134,35,81,"type"],[37,138,35,85],[37,139,35,86,"unwrapOr"],[37,147,35,94],[37,148,35,95],[37,149,35,96],[38,6,36,16],[38,7,36,17],[38,8,36,18],[39,4,37,8],[39,5,37,9],[39,6,37,10],[39,7,38,5],[39,8,38,6],[40,2,39,0],[41,0,39,1],[41,3]],"functionMap":{"names":["<global>","toV15"],"mappings":"AAA;ACQ;CD8B"},"hasCjsExports":true},"type":"js/module"}]} |