mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 11:11:01 +00:00
1 line
10 KiB
Plaintext
1 line
10 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/types-codec","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":45,"index":45}}],"key":"4J9mGJyxcRzjwnWeFPHBw1ClKiw=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":46},"end":{"line":2,"column":65,"index":111}}],"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, \"GenericChainProperties\", {\n enumerable: true,\n get: function () {\n return GenericChainProperties;\n }\n });\n var _polkadotTypesCodec = require(_dependencyMap[0], \"@polkadot/types-codec\");\n var _polkadotUtil = require(_dependencyMap[1], \"@polkadot/util\");\n function createValue(registry, type, value, asArray = true) {\n // We detect codec here as well - when found, generally this is constructed from itself\n if (value && (0, _polkadotUtil.isFunction)(value.unwrapOrDefault)) {\n return value;\n }\n return registry.createTypeUnsafe(type, [asArray ? (0, _polkadotUtil.isNull)(value) || (0, _polkadotUtil.isUndefined)(value) ? null : Array.isArray(value) ? value : [value] : value]);\n }\n function decodeValue(registry, key, value) {\n return key === 'ss58Format' ? createValue(registry, 'Option<u32>', value, false) : key === 'tokenDecimals' ? createValue(registry, 'Option<Vec<u32>>', value) : key === 'tokenSymbol' ? createValue(registry, 'Option<Vec<Text>>', value) : key === 'isEthereum' ? createValue(registry, 'Bool', value, false) : value;\n }\n function decode(registry, value) {\n return (\n // allow decoding from a map as well (ourselves)\n value && (0, _polkadotUtil.isFunction)(value.entries) ? [...value.entries()] : Object.entries(value || {})).reduce((all, [key, value]) => {\n all[key] = decodeValue(registry, key, value);\n return all;\n }, {\n isEthereum: registry.createTypeUnsafe('Bool', []),\n ss58Format: registry.createTypeUnsafe('Option<u32>', []),\n tokenDecimals: registry.createTypeUnsafe('Option<Vec<u32>>', []),\n tokenSymbol: registry.createTypeUnsafe('Option<Vec<Text>>', [])\n });\n }\n class GenericChainProperties extends _polkadotTypesCodec.Json {\n constructor(registry, value) {\n super(registry, decode(registry, value));\n }\n /**\n * @description The chain uses Ethereum addresses\n */\n get isEthereum() {\n return this.getT('isEthereum');\n }\n /**\n * @description The chain ss58Format\n */\n get ss58Format() {\n return this.getT('ss58Format');\n }\n /**\n * @description The decimals for each of the tokens\n */\n get tokenDecimals() {\n return this.getT('tokenDecimals');\n }\n /**\n * @description The symbols for the tokens\n */\n get tokenSymbol() {\n return this.getT('tokenSymbol');\n }\n }\n});","lineCount":67,"map":[[7,2,44,0,"Object"],[7,8,44,0],[7,9,44,0,"defineProperty"],[7,23,44,0],[7,24,44,0,"exports"],[7,31,44,0],[8,4,44,0,"enumerable"],[8,14,44,0],[9,4,44,0,"get"],[9,7,44,0],[9,18,44,0,"get"],[9,19,44,0],[10,6,44,0],[10,13,44,0,"GenericChainProperties"],[10,35,44,0],[11,4,44,0],[12,2,44,0],[13,2,1,0],[13,6,1,0,"_polkadotTypesCodec"],[13,25,1,0],[13,28,1,0,"require"],[13,35,1,0],[13,36,1,0,"_dependencyMap"],[13,50,1,0],[14,2,2,0],[14,6,2,0,"_polkadotUtil"],[14,19,2,0],[14,22,2,0,"require"],[14,29,2,0],[14,30,2,0,"_dependencyMap"],[14,44,2,0],[15,2,3,0],[15,11,3,9,"createValue"],[15,22,3,20,"createValue"],[15,23,3,21,"registry"],[15,31,3,29],[15,33,3,31,"type"],[15,37,3,35],[15,39,3,37,"value"],[15,44,3,42],[15,46,3,44,"asArray"],[15,53,3,51],[15,56,3,54],[15,60,3,58],[15,62,3,60],[16,4,4,4],[17,4,5,4],[17,8,5,8,"value"],[17,13,5,13],[17,17,5,17],[17,21,5,17,"isFunction"],[17,34,5,27],[17,35,5,27,"isFunction"],[17,45,5,27],[17,47,5,28,"value"],[17,52,5,33],[17,53,5,34,"unwrapOrDefault"],[17,68,5,49],[17,69,5,50],[17,71,5,52],[18,6,6,8],[18,13,6,15,"value"],[18,18,6,20],[19,4,7,4],[20,4,8,4],[20,11,8,11,"registry"],[20,19,8,19],[20,20,8,20,"createTypeUnsafe"],[20,36,8,36],[20,37,8,37,"type"],[20,41,8,41],[20,43,8,43],[20,44,9,8,"asArray"],[20,51,9,15],[20,54,10,14],[20,58,10,14,"isNull"],[20,71,10,20],[20,72,10,20,"isNull"],[20,78,10,20],[20,80,10,21,"value"],[20,85,10,26],[20,86,10,27],[20,90,10,31],[20,94,10,31,"isUndefined"],[20,107,10,42],[20,108,10,42,"isUndefined"],[20,119,10,42],[20,121,10,43,"value"],[20,126,10,48],[20,127,10,49],[20,130,11,18],[20,134,11,22],[20,137,12,18,"Array"],[20,142,12,23],[20,143,12,24,"isArray"],[20,150,12,31],[20,151,12,32,"value"],[20,156,12,37],[20,157,12,38],[20,160,13,22,"value"],[20,165,13,27],[20,168,14,22],[20,169,14,23,"value"],[20,174,14,28],[20,175,14,29],[20,178,15,14,"value"],[20,183,15,19],[20,184,16,5],[20,185,16,6],[21,2,17,0],[22,2,18,0],[22,11,18,9,"decodeValue"],[22,22,18,20,"decodeValue"],[22,23,18,21,"registry"],[22,31,18,29],[22,33,18,31,"key"],[22,36,18,34],[22,38,18,36,"value"],[22,43,18,41],[22,45,18,43],[23,4,19,4],[23,11,19,11,"key"],[23,14,19,14],[23,19,19,19],[23,31,19,31],[23,34,20,10,"createValue"],[23,45,20,21],[23,46,20,22,"registry"],[23,54,20,30],[23,56,20,32],[23,69,20,45],[23,71,20,47,"value"],[23,76,20,52],[23,78,20,54],[23,83,20,59],[23,84,20,60],[23,87,21,10,"key"],[23,90,21,13],[23,95,21,18],[23,110,21,33],[23,113,22,14,"createValue"],[23,124,22,25],[23,125,22,26,"registry"],[23,133,22,34],[23,135,22,36],[23,153,22,54],[23,155,22,56,"value"],[23,160,22,61],[23,161,22,62],[23,164,23,14,"key"],[23,167,23,17],[23,172,23,22],[23,185,23,35],[23,188,24,18,"createValue"],[23,199,24,29],[23,200,24,30,"registry"],[23,208,24,38],[23,210,24,40],[23,229,24,59],[23,231,24,61,"value"],[23,236,24,66],[23,237,24,67],[23,240,25,18,"key"],[23,243,25,21],[23,248,25,26],[23,260,25,38],[23,263,26,22,"createValue"],[23,274,26,33],[23,275,26,34,"registry"],[23,283,26,42],[23,285,26,44],[23,291,26,50],[23,293,26,52,"value"],[23,298,26,57],[23,300,26,59],[23,305,26,64],[23,306,26,65],[23,309,27,22,"value"],[23,314,27,27],[24,2,28,0],[25,2,29,0],[25,11,29,9,"decode"],[25,17,29,15,"decode"],[25,18,29,16,"registry"],[25,26,29,24],[25,28,29,26,"value"],[25,33,29,31],[25,35,29,33],[26,4,30,4],[26,11,30,11],[27,4,31,4],[28,4,32,4,"value"],[28,9,32,9],[28,13,32,13],[28,17,32,13,"isFunction"],[28,30,32,23],[28,31,32,23,"isFunction"],[28,41,32,23],[28,43,32,24,"value"],[28,48,32,29],[28,49,32,30,"entries"],[28,56,32,37],[28,57,32,38],[28,60,33,10],[28,61,33,11],[28,64,33,14,"value"],[28,69,33,19],[28,70,33,20,"entries"],[28,77,33,27],[28,78,33,28],[28,79,33,29],[28,80,33,30],[28,83,34,10,"Object"],[28,89,34,16],[28,90,34,17,"entries"],[28,97,34,24],[28,98,34,25,"value"],[28,103,34,30],[28,107,34,34],[28,108,34,35],[28,109,34,36],[28,110,34,37],[28,112,34,39,"reduce"],[28,118,34,45],[28,119,34,46],[28,120,34,47,"all"],[28,123,34,50],[28,125,34,52],[28,126,34,53,"key"],[28,129,34,56],[28,131,34,58,"value"],[28,136,34,63],[28,137,34,64],[28,142,34,69],[29,6,35,8,"all"],[29,9,35,11],[29,10,35,12,"key"],[29,13,35,15],[29,14,35,16],[29,17,35,19,"decodeValue"],[29,28,35,30],[29,29,35,31,"registry"],[29,37,35,39],[29,39,35,41,"key"],[29,42,35,44],[29,44,35,46,"value"],[29,49,35,51],[29,50,35,52],[30,6,36,8],[30,13,36,15,"all"],[30,16,36,18],[31,4,37,4],[31,5,37,5],[31,7,37,7],[32,6,38,8,"isEthereum"],[32,16,38,18],[32,18,38,20,"registry"],[32,26,38,28],[32,27,38,29,"createTypeUnsafe"],[32,43,38,45],[32,44,38,46],[32,50,38,52],[32,52,38,54],[32,54,38,56],[32,55,38,57],[33,6,39,8,"ss58Format"],[33,16,39,18],[33,18,39,20,"registry"],[33,26,39,28],[33,27,39,29,"createTypeUnsafe"],[33,43,39,45],[33,44,39,46],[33,57,39,59],[33,59,39,61],[33,61,39,63],[33,62,39,64],[34,6,40,8,"tokenDecimals"],[34,19,40,21],[34,21,40,23,"registry"],[34,29,40,31],[34,30,40,32,"createTypeUnsafe"],[34,46,40,48],[34,47,40,49],[34,65,40,67],[34,67,40,69],[34,69,40,71],[34,70,40,72],[35,6,41,8,"tokenSymbol"],[35,17,41,19],[35,19,41,21,"registry"],[35,27,41,29],[35,28,41,30,"createTypeUnsafe"],[35,44,41,46],[35,45,41,47],[35,64,41,66],[35,66,41,68],[35,68,41,70],[36,4,42,4],[36,5,42,5],[36,6,42,6],[37,2,43,0],[38,2,44,7],[38,8,44,13,"GenericChainProperties"],[38,30,44,35],[38,39,44,44,"Json"],[38,58,44,48],[38,59,44,48,"Json"],[38,63,44,48],[38,64,44,49],[39,4,45,4,"constructor"],[39,15,45,15,"constructor"],[39,16,45,16,"registry"],[39,24,45,24],[39,26,45,26,"value"],[39,31,45,31],[39,33,45,33],[40,6,46,8],[40,11,46,13],[40,12,46,14,"registry"],[40,20,46,22],[40,22,46,24,"decode"],[40,28,46,30],[40,29,46,31,"registry"],[40,37,46,39],[40,39,46,41,"value"],[40,44,46,46],[40,45,46,47],[40,46,46,48],[41,4,47,4],[42,4,48,4],[43,0,49,0],[44,0,50,0],[45,4,51,4],[45,8,51,8,"isEthereum"],[45,18,51,18,"isEthereum"],[45,19,51,18],[45,21,51,21],[46,6,52,8],[46,13,52,15],[46,17,52,19],[46,18,52,20,"getT"],[46,22,52,24],[46,23,52,25],[46,35,52,37],[46,36,52,38],[47,4,53,4],[48,4,54,4],[49,0,55,0],[50,0,56,0],[51,4,57,4],[51,8,57,8,"ss58Format"],[51,18,57,18,"ss58Format"],[51,19,57,18],[51,21,57,21],[52,6,58,8],[52,13,58,15],[52,17,58,19],[52,18,58,20,"getT"],[52,22,58,24],[52,23,58,25],[52,35,58,37],[52,36,58,38],[53,4,59,4],[54,4,60,4],[55,0,61,0],[56,0,62,0],[57,4,63,4],[57,8,63,8,"tokenDecimals"],[57,21,63,21,"tokenDecimals"],[57,22,63,21],[57,24,63,24],[58,6,64,8],[58,13,64,15],[58,17,64,19],[58,18,64,20,"getT"],[58,22,64,24],[58,23,64,25],[58,38,64,40],[58,39,64,41],[59,4,65,4],[60,4,66,4],[61,0,67,0],[62,0,68,0],[63,4,69,4],[63,8,69,8,"tokenSymbol"],[63,19,69,19,"tokenSymbol"],[63,20,69,19],[63,22,69,22],[64,6,70,8],[64,13,70,15],[64,17,70,19],[64,18,70,20,"getT"],[64,22,70,24],[64,23,70,25],[64,36,70,38],[64,37,70,39],[65,4,71,4],[66,2,72,0],[67,0,72,1],[67,3]],"functionMap":{"names":["<global>","createValue","decodeValue","decode","reduce$argument_0","GenericChainProperties","GenericChainProperties#constructor","GenericChainProperties#get__isEthereum","GenericChainProperties#get__ss58Format","GenericChainProperties#get__tokenDecimals","GenericChainProperties#get__tokenSymbol"],"mappings":"AAA;ACE;CDc;AEC;CFU;AGC;8CCK;KDG;CHM;OKC;ICC;KDE;IEI;KFE;IGI;KHE;III;KJE;IKI;KLE;CLC"},"hasCjsExports":false},"type":"js/module"}]} |