mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 05:21:02 +00:00
1 line
15 KiB
Plaintext
1 line
15 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/types-codec","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}}],"key":"4J9mGJyxcRzjwnWeFPHBw1ClKiw=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":50},"end":{"line":2,"column":91,"index":141}}],"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 Object.defineProperty(exports, \"CID_AURA\", {\n enumerable: true,\n get: function () {\n return CID_AURA;\n }\n });\n Object.defineProperty(exports, \"CID_BABE\", {\n enumerable: true,\n get: function () {\n return CID_BABE;\n }\n });\n Object.defineProperty(exports, \"CID_GRPA\", {\n enumerable: true,\n get: function () {\n return CID_GRPA;\n }\n });\n Object.defineProperty(exports, \"CID_POW\", {\n enumerable: true,\n get: function () {\n return CID_POW;\n }\n });\n Object.defineProperty(exports, \"CID_NMBS\", {\n enumerable: true,\n get: function () {\n return CID_NMBS;\n }\n });\n Object.defineProperty(exports, \"GenericConsensusEngineId\", {\n enumerable: true,\n get: function () {\n return GenericConsensusEngineId;\n }\n });\n var _polkadotTypesCodec = require(_dependencyMap[0], \"@polkadot/types-codec\");\n var _polkadotUtil = require(_dependencyMap[1], \"@polkadot/util\");\n const CID_AURA = /*#__PURE__*/(0, _polkadotUtil.stringToU8a)('aura');\n const CID_BABE = /*#__PURE__*/(0, _polkadotUtil.stringToU8a)('BABE');\n const CID_GRPA = /*#__PURE__*/(0, _polkadotUtil.stringToU8a)('FRNK');\n const CID_POW = /*#__PURE__*/(0, _polkadotUtil.stringToU8a)('pow_');\n const CID_NMBS = /*#__PURE__*/(0, _polkadotUtil.stringToU8a)('nmbs');\n function getAuraAuthor(registry, bytes, sessionValidators) {\n return sessionValidators[registry.createTypeUnsafe('RawAuraPreDigest', [bytes.toU8a(true)]).slotNumber.mod(new _polkadotUtil.BN(sessionValidators.length)).toNumber()];\n }\n function getBabeAuthor(registry, bytes, sessionValidators) {\n const digest = registry.createTypeUnsafe('RawBabePreDigestCompat', [bytes.toU8a(true)]);\n return sessionValidators[digest.value.toNumber()];\n }\n function getBytesAsAuthor(registry, bytes) {\n return registry.createTypeUnsafe('AccountId', [bytes]);\n }\n /**\n * @name GenericConsensusEngineId\n * @description\n * A 4-byte identifier identifying the engine\n */\n class GenericConsensusEngineId extends _polkadotTypesCodec.U8aFixed {\n constructor(registry, value) {\n super(registry, (0, _polkadotUtil.isNumber)(value) ? (0, _polkadotUtil.bnToU8a)(value, {\n isLe: false\n }) : value, 32);\n }\n /**\n * @description `true` if the engine matches aura\n */\n get isAura() {\n return this.eq(CID_AURA);\n }\n /**\n * @description `true` is the engine matches babe\n */\n get isBabe() {\n return this.eq(CID_BABE);\n }\n /**\n * @description `true` is the engine matches grandpa\n */\n get isGrandpa() {\n return this.eq(CID_GRPA);\n }\n /**\n * @description `true` is the engine matches pow\n */\n get isPow() {\n return this.eq(CID_POW);\n }\n /**\n * @description `true` is the engine matches nimbus\n */\n get isNimbus() {\n return this.eq(CID_NMBS);\n }\n /**\n * @description From the input bytes, decode into an author\n */\n extractAuthor(bytes, sessionValidators) {\n if (sessionValidators?.length) {\n if (this.isAura) {\n return getAuraAuthor(this.registry, bytes, sessionValidators);\n } else if (this.isBabe) {\n return getBabeAuthor(this.registry, bytes, sessionValidators);\n }\n }\n // For pow & Nimbus, the bytes are the actual author\n if (this.isPow || this.isNimbus) {\n return getBytesAsAuthor(this.registry, bytes);\n }\n return undefined;\n }\n /**\n * @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information\n */\n toHuman() {\n return this.toString();\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n return 'ConsensusEngineId';\n }\n /**\n * @description Override the default toString to return a 4-byte string\n */\n toString() {\n return this.isAscii ? (0, _polkadotUtil.u8aToString)(this) : (0, _polkadotUtil.u8aToHex)(this);\n }\n }\n});","lineCount":137,"map":[[7,2,3,0,"Object"],[7,8,3,0],[7,9,3,0,"defineProperty"],[7,23,3,0],[7,24,3,0,"exports"],[7,31,3,0],[8,4,3,0,"enumerable"],[8,14,3,0],[9,4,3,0,"get"],[9,7,3,0],[9,18,3,0,"get"],[9,19,3,0],[10,6,3,0],[10,13,3,0,"CID_AURA"],[10,21,3,0],[11,4,3,0],[12,2,3,0],[13,2,4,0,"Object"],[13,8,4,0],[13,9,4,0,"defineProperty"],[13,23,4,0],[13,24,4,0,"exports"],[13,31,4,0],[14,4,4,0,"enumerable"],[14,14,4,0],[15,4,4,0,"get"],[15,7,4,0],[15,18,4,0,"get"],[15,19,4,0],[16,6,4,0],[16,13,4,0,"CID_BABE"],[16,21,4,0],[17,4,4,0],[18,2,4,0],[19,2,5,0,"Object"],[19,8,5,0],[19,9,5,0,"defineProperty"],[19,23,5,0],[19,24,5,0,"exports"],[19,31,5,0],[20,4,5,0,"enumerable"],[20,14,5,0],[21,4,5,0,"get"],[21,7,5,0],[21,18,5,0,"get"],[21,19,5,0],[22,6,5,0],[22,13,5,0,"CID_GRPA"],[22,21,5,0],[23,4,5,0],[24,2,5,0],[25,2,6,0,"Object"],[25,8,6,0],[25,9,6,0,"defineProperty"],[25,23,6,0],[25,24,6,0,"exports"],[25,31,6,0],[26,4,6,0,"enumerable"],[26,14,6,0],[27,4,6,0,"get"],[27,7,6,0],[27,18,6,0,"get"],[27,19,6,0],[28,6,6,0],[28,13,6,0,"CID_POW"],[28,20,6,0],[29,4,6,0],[30,2,6,0],[31,2,7,0,"Object"],[31,8,7,0],[31,9,7,0,"defineProperty"],[31,23,7,0],[31,24,7,0,"exports"],[31,31,7,0],[32,4,7,0,"enumerable"],[32,14,7,0],[33,4,7,0,"get"],[33,7,7,0],[33,18,7,0,"get"],[33,19,7,0],[34,6,7,0],[34,13,7,0,"CID_NMBS"],[34,21,7,0],[35,4,7,0],[36,2,7,0],[37,2,26,0,"Object"],[37,8,26,0],[37,9,26,0,"defineProperty"],[37,23,26,0],[37,24,26,0,"exports"],[37,31,26,0],[38,4,26,0,"enumerable"],[38,14,26,0],[39,4,26,0,"get"],[39,7,26,0],[39,18,26,0,"get"],[39,19,26,0],[40,6,26,0],[40,13,26,0,"GenericConsensusEngineId"],[40,37,26,0],[41,4,26,0],[42,2,26,0],[43,2,1,0],[43,6,1,0,"_polkadotTypesCodec"],[43,25,1,0],[43,28,1,0,"require"],[43,35,1,0],[43,36,1,0,"_dependencyMap"],[43,50,1,0],[44,2,2,0],[44,6,2,0,"_polkadotUtil"],[44,19,2,0],[44,22,2,0,"require"],[44,29,2,0],[44,30,2,0,"_dependencyMap"],[44,44,2,0],[45,2,3,7],[45,8,3,13,"CID_AURA"],[45,16,3,21],[45,19,3,24],[45,32,3,38],[45,36,3,38,"stringToU8a"],[45,49,3,49],[45,50,3,49,"stringToU8a"],[45,61,3,49],[45,63,3,50],[45,69,3,56],[45,70,3,57],[46,2,4,7],[46,8,4,13,"CID_BABE"],[46,16,4,21],[46,19,4,24],[46,32,4,38],[46,36,4,38,"stringToU8a"],[46,49,4,49],[46,50,4,49,"stringToU8a"],[46,61,4,49],[46,63,4,50],[46,69,4,56],[46,70,4,57],[47,2,5,7],[47,8,5,13,"CID_GRPA"],[47,16,5,21],[47,19,5,24],[47,32,5,38],[47,36,5,38,"stringToU8a"],[47,49,5,49],[47,50,5,49,"stringToU8a"],[47,61,5,49],[47,63,5,50],[47,69,5,56],[47,70,5,57],[48,2,6,7],[48,8,6,13,"CID_POW"],[48,15,6,20],[48,18,6,23],[48,31,6,37],[48,35,6,37,"stringToU8a"],[48,48,6,48],[48,49,6,48,"stringToU8a"],[48,60,6,48],[48,62,6,49],[48,68,6,55],[48,69,6,56],[49,2,7,7],[49,8,7,13,"CID_NMBS"],[49,16,7,21],[49,19,7,24],[49,32,7,38],[49,36,7,38,"stringToU8a"],[49,49,7,49],[49,50,7,49,"stringToU8a"],[49,61,7,49],[49,63,7,50],[49,69,7,56],[49,70,7,57],[50,2,8,0],[50,11,8,9,"getAuraAuthor"],[50,24,8,22,"getAuraAuthor"],[50,25,8,23,"registry"],[50,33,8,31],[50,35,8,33,"bytes"],[50,40,8,38],[50,42,8,40,"sessionValidators"],[50,59,8,57],[50,61,8,59],[51,4,9,4],[51,11,9,11,"sessionValidators"],[51,28,9,28],[51,29,9,29,"registry"],[51,37,9,37],[51,38,9,38,"createTypeUnsafe"],[51,54,9,54],[51,55,9,55],[51,73,9,73],[51,75,9,75],[51,76,9,76,"bytes"],[51,81,9,81],[51,82,9,82,"toU8a"],[51,87,9,87],[51,88,9,88],[51,92,9,92],[51,93,9,93],[51,94,9,94],[51,95,9,95],[51,96,10,9,"slotNumber"],[51,106,10,19],[51,107,11,9,"mod"],[51,110,11,12],[51,111,11,13],[51,115,11,17,"BN"],[51,128,11,19],[51,129,11,19,"BN"],[51,131,11,19],[51,132,11,20,"sessionValidators"],[51,149,11,37],[51,150,11,38,"length"],[51,156,11,44],[51,157,11,45],[51,158,11,46],[51,159,12,9,"toNumber"],[51,167,12,17],[51,168,12,18],[51,169,12,19],[51,170,12,20],[52,2,13,0],[53,2,14,0],[53,11,14,9,"getBabeAuthor"],[53,24,14,22,"getBabeAuthor"],[53,25,14,23,"registry"],[53,33,14,31],[53,35,14,33,"bytes"],[53,40,14,38],[53,42,14,40,"sessionValidators"],[53,59,14,57],[53,61,14,59],[54,4,15,4],[54,10,15,10,"digest"],[54,16,15,16],[54,19,15,19,"registry"],[54,27,15,27],[54,28,15,28,"createTypeUnsafe"],[54,44,15,44],[54,45,15,45],[54,69,15,69],[54,71,15,71],[54,72,15,72,"bytes"],[54,77,15,77],[54,78,15,78,"toU8a"],[54,83,15,83],[54,84,15,84],[54,88,15,88],[54,89,15,89],[54,90,15,90],[54,91,15,91],[55,4,16,4],[55,11,16,11,"sessionValidators"],[55,28,16,28],[55,29,16,29,"digest"],[55,35,16,35],[55,36,16,36,"value"],[55,41,16,41],[55,42,16,42,"toNumber"],[55,50,16,50],[55,51,16,51],[55,52,16,52],[55,53,16,53],[56,2,17,0],[57,2,18,0],[57,11,18,9,"getBytesAsAuthor"],[57,27,18,25,"getBytesAsAuthor"],[57,28,18,26,"registry"],[57,36,18,34],[57,38,18,36,"bytes"],[57,43,18,41],[57,45,18,43],[58,4,19,4],[58,11,19,11,"registry"],[58,19,19,19],[58,20,19,20,"createTypeUnsafe"],[58,36,19,36],[58,37,19,37],[58,48,19,48],[58,50,19,50],[58,51,19,51,"bytes"],[58,56,19,56],[58,57,19,57],[58,58,19,58],[59,2,20,0],[60,2,21,0],[61,0,22,0],[62,0,23,0],[63,0,24,0],[64,0,25,0],[65,2,26,7],[65,8,26,13,"GenericConsensusEngineId"],[65,32,26,37],[65,41,26,46,"U8aFixed"],[65,60,26,54],[65,61,26,54,"U8aFixed"],[65,69,26,54],[65,70,26,55],[66,4,27,4,"constructor"],[66,15,27,15,"constructor"],[66,16,27,16,"registry"],[66,24,27,24],[66,26,27,26,"value"],[66,31,27,31],[66,33,27,33],[67,6,28,8],[67,11,28,13],[67,12,28,14,"registry"],[67,20,28,22],[67,22,28,24],[67,26,28,24,"isNumber"],[67,39,28,32],[67,40,28,32,"isNumber"],[67,48,28,32],[67,50,28,33,"value"],[67,55,28,38],[67,56,28,39],[67,59,29,14],[67,63,29,14,"bnToU8a"],[67,76,29,21],[67,77,29,21,"bnToU8a"],[67,84,29,21],[67,86,29,22,"value"],[67,91,29,27],[67,93,29,29],[68,8,29,31,"isLe"],[68,12,29,35],[68,14,29,37],[69,6,29,43],[69,7,29,44],[69,8,29,45],[69,11,30,14,"value"],[69,16,30,19],[69,18,30,21],[69,20,30,23],[69,21,30,24],[70,4,31,4],[71,4,32,4],[72,0,33,0],[73,0,34,0],[74,4,35,4],[74,8,35,8,"isAura"],[74,14,35,14,"isAura"],[74,15,35,14],[74,17,35,17],[75,6,36,8],[75,13,36,15],[75,17,36,19],[75,18,36,20,"eq"],[75,20,36,22],[75,21,36,23,"CID_AURA"],[75,29,36,31],[75,30,36,32],[76,4,37,4],[77,4,38,4],[78,0,39,0],[79,0,40,0],[80,4,41,4],[80,8,41,8,"isBabe"],[80,14,41,14,"isBabe"],[80,15,41,14],[80,17,41,17],[81,6,42,8],[81,13,42,15],[81,17,42,19],[81,18,42,20,"eq"],[81,20,42,22],[81,21,42,23,"CID_BABE"],[81,29,42,31],[81,30,42,32],[82,4,43,4],[83,4,44,4],[84,0,45,0],[85,0,46,0],[86,4,47,4],[86,8,47,8,"isGrandpa"],[86,17,47,17,"isGrandpa"],[86,18,47,17],[86,20,47,20],[87,6,48,8],[87,13,48,15],[87,17,48,19],[87,18,48,20,"eq"],[87,20,48,22],[87,21,48,23,"CID_GRPA"],[87,29,48,31],[87,30,48,32],[88,4,49,4],[89,4,50,4],[90,0,51,0],[91,0,52,0],[92,4,53,4],[92,8,53,8,"isPow"],[92,13,53,13,"isPow"],[92,14,53,13],[92,16,53,16],[93,6,54,8],[93,13,54,15],[93,17,54,19],[93,18,54,20,"eq"],[93,20,54,22],[93,21,54,23,"CID_POW"],[93,28,54,30],[93,29,54,31],[94,4,55,4],[95,4,56,4],[96,0,57,0],[97,0,58,0],[98,4,59,4],[98,8,59,8,"isNimbus"],[98,16,59,16,"isNimbus"],[98,17,59,16],[98,19,59,19],[99,6,60,8],[99,13,60,15],[99,17,60,19],[99,18,60,20,"eq"],[99,20,60,22],[99,21,60,23,"CID_NMBS"],[99,29,60,31],[99,30,60,32],[100,4,61,4],[101,4,62,4],[102,0,63,0],[103,0,64,0],[104,4,65,4,"extractAuthor"],[104,17,65,17,"extractAuthor"],[104,18,65,18,"bytes"],[104,23,65,23],[104,25,65,25,"sessionValidators"],[104,42,65,42],[104,44,65,44],[105,6,66,8],[105,10,66,12,"sessionValidators"],[105,27,66,29],[105,29,66,31,"length"],[105,35,66,37],[105,37,66,39],[106,8,67,12],[106,12,67,16],[106,16,67,20],[106,17,67,21,"isAura"],[106,23,67,27],[106,25,67,29],[107,10,68,16],[107,17,68,23,"getAuraAuthor"],[107,30,68,36],[107,31,68,37],[107,35,68,41],[107,36,68,42,"registry"],[107,44,68,50],[107,46,68,52,"bytes"],[107,51,68,57],[107,53,68,59,"sessionValidators"],[107,70,68,76],[107,71,68,77],[108,8,69,12],[108,9,69,13],[108,15,70,17],[108,19,70,21],[108,23,70,25],[108,24,70,26,"isBabe"],[108,30,70,32],[108,32,70,34],[109,10,71,16],[109,17,71,23,"getBabeAuthor"],[109,30,71,36],[109,31,71,37],[109,35,71,41],[109,36,71,42,"registry"],[109,44,71,50],[109,46,71,52,"bytes"],[109,51,71,57],[109,53,71,59,"sessionValidators"],[109,70,71,76],[109,71,71,77],[110,8,72,12],[111,6,73,8],[112,6,74,8],[113,6,75,8],[113,10,75,12],[113,14,75,16],[113,15,75,17,"isPow"],[113,20,75,22],[113,24,75,26],[113,28,75,30],[113,29,75,31,"isNimbus"],[113,37,75,39],[113,39,75,41],[114,8,76,12],[114,15,76,19,"getBytesAsAuthor"],[114,31,76,35],[114,32,76,36],[114,36,76,40],[114,37,76,41,"registry"],[114,45,76,49],[114,47,76,51,"bytes"],[114,52,76,56],[114,53,76,57],[115,6,77,8],[116,6,78,8],[116,13,78,15,"undefined"],[116,22,78,24],[117,4,79,4],[118,4,80,4],[119,0,81,0],[120,0,82,0],[121,4,83,4,"toHuman"],[121,11,83,11,"toHuman"],[121,12,83,11],[121,14,83,14],[122,6,84,8],[122,13,84,15],[122,17,84,19],[122,18,84,20,"toString"],[122,26,84,28],[122,27,84,29],[122,28,84,30],[123,4,85,4],[124,4,86,4],[125,0,87,0],[126,0,88,0],[127,4,89,4,"toRawType"],[127,13,89,13,"toRawType"],[127,14,89,13],[127,16,89,16],[128,6,90,8],[128,13,90,15],[128,32,90,34],[129,4,91,4],[130,4,92,4],[131,0,93,0],[132,0,94,0],[133,4,95,4,"toString"],[133,12,95,12,"toString"],[133,13,95,12],[133,15,95,15],[134,6,96,8],[134,13,96,15],[134,17,96,19],[134,18,96,20,"isAscii"],[134,25,96,27],[134,28,97,14],[134,32,97,14,"u8aToString"],[134,45,97,25],[134,46,97,25,"u8aToString"],[134,57,97,25],[134,59,97,26],[134,63,97,30],[134,64,97,31],[134,67,98,14],[134,71,98,14,"u8aToHex"],[134,84,98,22],[134,85,98,22,"u8aToHex"],[134,93,98,22],[134,95,98,23],[134,99,98,27],[134,100,98,28],[135,4,99,4],[136,2,100,0],[137,0,100,1],[137,3]],"functionMap":{"names":["<global>","getAuraAuthor","getBabeAuthor","getBytesAsAuthor","GenericConsensusEngineId","GenericConsensusEngineId#constructor","GenericConsensusEngineId#get__isAura","GenericConsensusEngineId#get__isBabe","GenericConsensusEngineId#get__isGrandpa","GenericConsensusEngineId#get__isPow","GenericConsensusEngineId#get__isNimbus","GenericConsensusEngineId#extractAuthor","GenericConsensusEngineId#toHuman","GenericConsensusEngineId#toRawType","GenericConsensusEngineId#toString"],"mappings":"AAA;ACO;CDK;AEC;CFG;AGC;CHE;OIM;ICC;KDI;IEI;KFE;IGI;KHE;III;KJE;IKI;KLE;IMI;KNE;IOI;KPc;IQI;KRE;ISI;KTE;IUI;KVI;CJC"},"hasCjsExports":false},"type":"js/module"}]} |