Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/56/cdf547001db900750c27e501e7ccbccdca8968cedbfb40977b6889e7836ca86f37315c
T
2025-11-08 10:27:44 +00:00

1 line
10 KiB
Plaintext

{"dependencies":[{"name":"@polkadot/types-codec","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":22,"index":140},"end":{"line":4,"column":54,"index":172}}],"key":"fW1yxuTjZe66ggmM4ihNuGjKSV0=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":189},"end":{"line":5,"column":40,"index":214}}],"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.GenericChainProperties = void 0;\n const types_codec_1 = require(_dependencyMap[0], \"@polkadot/types-codec\");\n const util_1 = 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, util_1.isFunction)(value.unwrapOrDefault)) {\n return value;\n }\n return registry.createTypeUnsafe(type, [asArray ? (0, util_1.isNull)(value) || (0, util_1.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, util_1.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 types_codec_1.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 exports.GenericChainProperties = GenericChainProperties;\n});","lineCount":63,"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,"GenericChainProperties"],[7,32,3,30],[7,35,3,33],[7,40,3,38],[7,41,3,39],[8,2,4,0],[8,8,4,6,"types_codec_1"],[8,21,4,19],[8,24,4,22,"require"],[8,31,4,29],[8,32,4,29,"_dependencyMap"],[8,46,4,29],[8,74,4,53],[8,75,4,54],[9,2,5,0],[9,8,5,6,"util_1"],[9,14,5,12],[9,17,5,15,"require"],[9,24,5,22],[9,25,5,22,"_dependencyMap"],[9,39,5,22],[9,60,5,39],[9,61,5,40],[10,2,6,0],[10,11,6,9,"createValue"],[10,22,6,20,"createValue"],[10,23,6,21,"registry"],[10,31,6,29],[10,33,6,31,"type"],[10,37,6,35],[10,39,6,37,"value"],[10,44,6,42],[10,46,6,44,"asArray"],[10,53,6,51],[10,56,6,54],[10,60,6,58],[10,62,6,60],[11,4,7,4],[12,4,8,4],[12,8,8,8,"value"],[12,13,8,13],[12,17,8,17],[12,18,8,18],[12,19,8,19],[12,21,8,21,"util_1"],[12,27,8,27],[12,28,8,28,"isFunction"],[12,38,8,38],[12,40,8,40,"value"],[12,45,8,45],[12,46,8,46,"unwrapOrDefault"],[12,61,8,61],[12,62,8,62],[12,64,8,64],[13,6,9,8],[13,13,9,15,"value"],[13,18,9,20],[14,4,10,4],[15,4,11,4],[15,11,11,11,"registry"],[15,19,11,19],[15,20,11,20,"createTypeUnsafe"],[15,36,11,36],[15,37,11,37,"type"],[15,41,11,41],[15,43,11,43],[15,44,12,8,"asArray"],[15,51,12,15],[15,54,13,14],[15,55,13,15],[15,56,13,16],[15,58,13,18,"util_1"],[15,64,13,24],[15,65,13,25,"isNull"],[15,71,13,31],[15,73,13,33,"value"],[15,78,13,38],[15,79,13,39],[15,83,13,43],[15,84,13,44],[15,85,13,45],[15,87,13,47,"util_1"],[15,93,13,53],[15,94,13,54,"isUndefined"],[15,105,13,65],[15,107,13,67,"value"],[15,112,13,72],[15,113,13,73],[15,116,14,18],[15,120,14,22],[15,123,15,18,"Array"],[15,128,15,23],[15,129,15,24,"isArray"],[15,136,15,31],[15,137,15,32,"value"],[15,142,15,37],[15,143,15,38],[15,146,16,22,"value"],[15,151,16,27],[15,154,17,22],[15,155,17,23,"value"],[15,160,17,28],[15,161,17,29],[15,164,18,14,"value"],[15,169,18,19],[15,170,19,5],[15,171,19,6],[16,2,20,0],[17,2,21,0],[17,11,21,9,"decodeValue"],[17,22,21,20,"decodeValue"],[17,23,21,21,"registry"],[17,31,21,29],[17,33,21,31,"key"],[17,36,21,34],[17,38,21,36,"value"],[17,43,21,41],[17,45,21,43],[18,4,22,4],[18,11,22,11,"key"],[18,14,22,14],[18,19,22,19],[18,31,22,31],[18,34,23,10,"createValue"],[18,45,23,21],[18,46,23,22,"registry"],[18,54,23,30],[18,56,23,32],[18,69,23,45],[18,71,23,47,"value"],[18,76,23,52],[18,78,23,54],[18,83,23,59],[18,84,23,60],[18,87,24,10,"key"],[18,90,24,13],[18,95,24,18],[18,110,24,33],[18,113,25,14,"createValue"],[18,124,25,25],[18,125,25,26,"registry"],[18,133,25,34],[18,135,25,36],[18,153,25,54],[18,155,25,56,"value"],[18,160,25,61],[18,161,25,62],[18,164,26,14,"key"],[18,167,26,17],[18,172,26,22],[18,185,26,35],[18,188,27,18,"createValue"],[18,199,27,29],[18,200,27,30,"registry"],[18,208,27,38],[18,210,27,40],[18,229,27,59],[18,231,27,61,"value"],[18,236,27,66],[18,237,27,67],[18,240,28,18,"key"],[18,243,28,21],[18,248,28,26],[18,260,28,38],[18,263,29,22,"createValue"],[18,274,29,33],[18,275,29,34,"registry"],[18,283,29,42],[18,285,29,44],[18,291,29,50],[18,293,29,52,"value"],[18,298,29,57],[18,300,29,59],[18,305,29,64],[18,306,29,65],[18,309,30,22,"value"],[18,314,30,27],[19,2,31,0],[20,2,32,0],[20,11,32,9,"decode"],[20,17,32,15,"decode"],[20,18,32,16,"registry"],[20,26,32,24],[20,28,32,26,"value"],[20,33,32,31],[20,35,32,33],[21,4,33,4],[21,11,33,11],[22,4,34,4],[23,4,35,4,"value"],[23,9,35,9],[23,13,35,13],[23,14,35,14],[23,15,35,15],[23,17,35,17,"util_1"],[23,23,35,23],[23,24,35,24,"isFunction"],[23,34,35,34],[23,36,35,36,"value"],[23,41,35,41],[23,42,35,42,"entries"],[23,49,35,49],[23,50,35,50],[23,53,36,10],[23,54,36,11],[23,57,36,14,"value"],[23,62,36,19],[23,63,36,20,"entries"],[23,70,36,27],[23,71,36,28],[23,72,36,29],[23,73,36,30],[23,76,37,10,"Object"],[23,82,37,16],[23,83,37,17,"entries"],[23,90,37,24],[23,91,37,25,"value"],[23,96,37,30],[23,100,37,34],[23,101,37,35],[23,102,37,36],[23,103,37,37],[23,105,37,39,"reduce"],[23,111,37,45],[23,112,37,46],[23,113,37,47,"all"],[23,116,37,50],[23,118,37,52],[23,119,37,53,"key"],[23,122,37,56],[23,124,37,58,"value"],[23,129,37,63],[23,130,37,64],[23,135,37,69],[24,6,38,8,"all"],[24,9,38,11],[24,10,38,12,"key"],[24,13,38,15],[24,14,38,16],[24,17,38,19,"decodeValue"],[24,28,38,30],[24,29,38,31,"registry"],[24,37,38,39],[24,39,38,41,"key"],[24,42,38,44],[24,44,38,46,"value"],[24,49,38,51],[24,50,38,52],[25,6,39,8],[25,13,39,15,"all"],[25,16,39,18],[26,4,40,4],[26,5,40,5],[26,7,40,7],[27,6,41,8,"isEthereum"],[27,16,41,18],[27,18,41,20,"registry"],[27,26,41,28],[27,27,41,29,"createTypeUnsafe"],[27,43,41,45],[27,44,41,46],[27,50,41,52],[27,52,41,54],[27,54,41,56],[27,55,41,57],[28,6,42,8,"ss58Format"],[28,16,42,18],[28,18,42,20,"registry"],[28,26,42,28],[28,27,42,29,"createTypeUnsafe"],[28,43,42,45],[28,44,42,46],[28,57,42,59],[28,59,42,61],[28,61,42,63],[28,62,42,64],[29,6,43,8,"tokenDecimals"],[29,19,43,21],[29,21,43,23,"registry"],[29,29,43,31],[29,30,43,32,"createTypeUnsafe"],[29,46,43,48],[29,47,43,49],[29,65,43,67],[29,67,43,69],[29,69,43,71],[29,70,43,72],[30,6,44,8,"tokenSymbol"],[30,17,44,19],[30,19,44,21,"registry"],[30,27,44,29],[30,28,44,30,"createTypeUnsafe"],[30,44,44,46],[30,45,44,47],[30,64,44,66],[30,66,44,68],[30,68,44,70],[31,4,45,4],[31,5,45,5],[31,6,45,6],[32,2,46,0],[33,2,47,0],[33,8,47,6,"GenericChainProperties"],[33,30,47,28],[33,39,47,37,"types_codec_1"],[33,52,47,50],[33,53,47,51,"Json"],[33,57,47,55],[33,58,47,56],[34,4,48,4,"constructor"],[34,15,48,15,"constructor"],[34,16,48,16,"registry"],[34,24,48,24],[34,26,48,26,"value"],[34,31,48,31],[34,33,48,33],[35,6,49,8],[35,11,49,13],[35,12,49,14,"registry"],[35,20,49,22],[35,22,49,24,"decode"],[35,28,49,30],[35,29,49,31,"registry"],[35,37,49,39],[35,39,49,41,"value"],[35,44,49,46],[35,45,49,47],[35,46,49,48],[36,4,50,4],[37,4,51,4],[38,0,52,0],[39,0,53,0],[40,4,54,4],[40,8,54,8,"isEthereum"],[40,18,54,18,"isEthereum"],[40,19,54,18],[40,21,54,21],[41,6,55,8],[41,13,55,15],[41,17,55,19],[41,18,55,20,"getT"],[41,22,55,24],[41,23,55,25],[41,35,55,37],[41,36,55,38],[42,4,56,4],[43,4,57,4],[44,0,58,0],[45,0,59,0],[46,4,60,4],[46,8,60,8,"ss58Format"],[46,18,60,18,"ss58Format"],[46,19,60,18],[46,21,60,21],[47,6,61,8],[47,13,61,15],[47,17,61,19],[47,18,61,20,"getT"],[47,22,61,24],[47,23,61,25],[47,35,61,37],[47,36,61,38],[48,4,62,4],[49,4,63,4],[50,0,64,0],[51,0,65,0],[52,4,66,4],[52,8,66,8,"tokenDecimals"],[52,21,66,21,"tokenDecimals"],[52,22,66,21],[52,24,66,24],[53,6,67,8],[53,13,67,15],[53,17,67,19],[53,18,67,20,"getT"],[53,22,67,24],[53,23,67,25],[53,38,67,40],[53,39,67,41],[54,4,68,4],[55,4,69,4],[56,0,70,0],[57,0,71,0],[58,4,72,4],[58,8,72,8,"tokenSymbol"],[58,19,72,19,"tokenSymbol"],[58,20,72,19],[58,22,72,22],[59,6,73,8],[59,13,73,15],[59,17,73,19],[59,18,73,20,"getT"],[59,22,73,24],[59,23,73,25],[59,36,73,38],[59,37,73,39],[60,4,74,4],[61,2,75,0],[62,2,76,0,"exports"],[62,9,76,7],[62,10,76,8,"GenericChainProperties"],[62,32,76,30],[62,35,76,33,"GenericChainProperties"],[62,57,76,55],[63,0,76,56],[63,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;ACK;CDc;AEC;CFU;AGC;8CCK;KDG;CHM;AKC;ICC;KDE;IEI;KFE;IGI;KHE;III;KJE;IKI;KLE;CLC"},"hasCjsExports":true},"type":"js/module"}]}