mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 10:01:02 +00:00
1 line
7.4 KiB
Plaintext
1 line
7.4 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":131},"end":{"line":4,"column":40,"index":156}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"../base58/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":19,"index":177},"end":{"line":5,"column":48,"index":206}}],"key":"imkmv9NUxjLUGHzCBJMTMZYgb2g=","exportNames":["*"],"imports":1}},{"name":"./decode.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":20,"index":228},"end":{"line":6,"column":42,"index":250}}],"key":"NjDZuONZNxCfNbNOGpYxcMs1w6o=","exportNames":["*"],"imports":1}},{"name":"./defaults.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":22,"index":274},"end":{"line":7,"column":46,"index":298}}],"key":"8zlNL/bdiu3zO8WGWvKdyGqOG5I=","exportNames":["*"],"imports":1}},{"name":"./sshash.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":8,"column":20,"index":320},"end":{"line":8,"column":42,"index":342}}],"key":"yKOX9JE+W9LG2F3uOwO9nYueYk8=","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.encodeAddress = encodeAddress;\n const util_1 = require(_dependencyMap[0], \"@polkadot/util\");\n const index_js_1 = require(_dependencyMap[1], \"../base58/index.js\");\n const decode_js_1 = require(_dependencyMap[2], \"./decode.js\");\n const defaults_js_1 = require(_dependencyMap[3], \"./defaults.js\");\n const sshash_js_1 = require(_dependencyMap[4], \"./sshash.js\");\n function encodeAddress(key, ss58Format = defaults_js_1.defaults.prefix) {\n // decode it, this means we can re-encode an address\n const u8a = (0, decode_js_1.decodeAddress)(key);\n if (ss58Format < 0 || ss58Format > 16383 && !ss58Exceptions.includes(ss58Format) || [46, 47].includes(ss58Format)) {\n throw new Error('Out of range ss58Format specified');\n } else if (!defaults_js_1.defaults.allowedDecodedLengths.includes(u8a.length)) {\n throw new Error(`Expected a valid key to convert, with length ${defaults_js_1.defaults.allowedDecodedLengths.join(', ')}`);\n }\n const input = (0, util_1.u8aConcat)(ss58Format < 64 ? [ss58Format] : [(ss58Format & 0b0000_0000_1111_1100) >> 2 | 0b0100_0000, ss58Format >> 8 | (ss58Format & 0b0000_0000_0000_0011) << 6], u8a);\n return (0, index_js_1.base58Encode)((0, util_1.u8aConcat)(input, (0, sshash_js_1.sshash)(input).subarray(0, [32, 33].includes(u8a.length) ? 2 : 1)));\n }\n const ss58Exceptions = [29972];\n});","lineCount":25,"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,"encodeAddress"],[7,23,3,21],[7,26,3,24,"encodeAddress"],[7,39,3,37],[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],[9,8,5,6,"index_js_1"],[9,18,5,16],[9,21,5,19,"require"],[9,28,5,26],[9,29,5,26,"_dependencyMap"],[9,43,5,26],[9,68,5,47],[9,69,5,48],[10,2,6,0],[10,8,6,6,"decode_js_1"],[10,19,6,17],[10,22,6,20,"require"],[10,29,6,27],[10,30,6,27,"_dependencyMap"],[10,44,6,27],[10,62,6,41],[10,63,6,42],[11,2,7,0],[11,8,7,6,"defaults_js_1"],[11,21,7,19],[11,24,7,22,"require"],[11,31,7,29],[11,32,7,29,"_dependencyMap"],[11,46,7,29],[11,66,7,45],[11,67,7,46],[12,2,8,0],[12,8,8,6,"sshash_js_1"],[12,19,8,17],[12,22,8,20,"require"],[12,29,8,27],[12,30,8,27,"_dependencyMap"],[12,44,8,27],[12,62,8,41],[12,63,8,42],[13,2,9,0],[13,11,9,9,"encodeAddress"],[13,24,9,22,"encodeAddress"],[13,25,9,23,"key"],[13,28,9,26],[13,30,9,28,"ss58Format"],[13,40,9,38],[13,43,9,41,"defaults_js_1"],[13,56,9,54],[13,57,9,55,"defaults"],[13,65,9,63],[13,66,9,64,"prefix"],[13,72,9,70],[13,74,9,72],[14,4,10,4],[15,4,11,4],[15,10,11,10,"u8a"],[15,13,11,13],[15,16,11,16],[15,17,11,17],[15,18,11,18],[15,20,11,20,"decode_js_1"],[15,31,11,31],[15,32,11,32,"decodeAddress"],[15,45,11,45],[15,47,11,47,"key"],[15,50,11,50],[15,51,11,51],[16,4,12,4],[16,8,12,9,"ss58Format"],[16,18,12,19],[16,21,12,22],[16,22,12,23],[16,26,12,29,"ss58Format"],[16,36,12,39],[16,39,12,42],[16,44,12,47],[16,48,12,51],[16,49,12,52,"ss58Exceptions"],[16,63,12,66],[16,64,12,67,"includes"],[16,72,12,75],[16,73,12,76,"ss58Format"],[16,83,12,86],[16,84,12,88],[16,88,12,92],[16,89,12,93],[16,91,12,95],[16,93,12,97],[16,95,12,99],[16,96,12,100],[16,97,12,101,"includes"],[16,105,12,109],[16,106,12,110,"ss58Format"],[16,116,12,120],[16,117,12,121],[16,119,12,123],[17,6,13,8],[17,12,13,14],[17,16,13,18,"Error"],[17,21,13,23],[17,22,13,24],[17,57,13,59],[17,58,13,60],[18,4,14,4],[18,5,14,5],[18,11,15,9],[18,15,15,13],[18,16,15,14,"defaults_js_1"],[18,29,15,27],[18,30,15,28,"defaults"],[18,38,15,36],[18,39,15,37,"allowedDecodedLengths"],[18,60,15,58],[18,61,15,59,"includes"],[18,69,15,67],[18,70,15,68,"u8a"],[18,73,15,71],[18,74,15,72,"length"],[18,80,15,78],[18,81,15,79],[18,83,15,81],[19,6,16,8],[19,12,16,14],[19,16,16,18,"Error"],[19,21,16,23],[19,22,16,24],[19,70,16,72,"defaults_js_1"],[19,83,16,85],[19,84,16,86,"defaults"],[19,92,16,94],[19,93,16,95,"allowedDecodedLengths"],[19,114,16,116],[19,115,16,117,"join"],[19,119,16,121],[19,120,16,122],[19,124,16,126],[19,125,16,127],[19,127,16,129],[19,128,16,130],[20,4,17,4],[21,4,18,4],[21,10,18,10,"input"],[21,15,18,15],[21,18,18,18],[21,19,18,19],[21,20,18,20],[21,22,18,22,"util_1"],[21,28,18,28],[21,29,18,29,"u8aConcat"],[21,38,18,38],[21,40,18,40,"ss58Format"],[21,50,18,50],[21,53,18,53],[21,55,18,55],[21,58,19,10],[21,59,19,11,"ss58Format"],[21,69,19,21],[21,70,19,22],[21,73,20,10],[21,74,21,13],[21,75,21,14,"ss58Format"],[21,85,21,24],[21,88,21,27],[21,109,21,48],[21,114,21,53],[21,115,21,54],[21,118,21,58],[21,129,21,69],[21,131,22,13,"ss58Format"],[21,141,22,23],[21,145,22,27],[21,146,22,28],[21,149,22,33],[21,150,22,34,"ss58Format"],[21,160,22,44],[21,163,22,47],[21,184,22,68],[21,189,22,73],[21,190,22,75],[21,191,23,9],[21,193,23,11,"u8a"],[21,196,23,14],[21,197,23,15],[22,4,24,4],[22,11,24,11],[22,12,24,12],[22,13,24,13],[22,15,24,15,"index_js_1"],[22,25,24,25],[22,26,24,26,"base58Encode"],[22,38,24,38],[22,40,24,40],[22,41,24,41],[22,42,24,42],[22,44,24,44,"util_1"],[22,50,24,50],[22,51,24,51,"u8aConcat"],[22,60,24,60],[22,62,24,62,"input"],[22,67,24,67],[22,69,24,69],[22,70,24,70],[22,71,24,71],[22,73,24,73,"sshash_js_1"],[22,84,24,84],[22,85,24,85,"sshash"],[22,91,24,91],[22,93,24,93,"input"],[22,98,24,98],[22,99,24,99],[22,100,24,100,"subarray"],[22,108,24,108],[22,109,24,109],[22,110,24,110],[22,112,24,112],[22,113,24,113],[22,115,24,115],[22,117,24,117],[22,119,24,119],[22,120,24,120],[22,121,24,121,"includes"],[22,129,24,129],[22,130,24,130,"u8a"],[22,133,24,133],[22,134,24,134,"length"],[22,140,24,140],[22,141,24,141],[22,144,24,144],[22,145,24,145],[22,148,24,148],[22,149,24,149],[22,150,24,150],[22,151,24,151],[22,152,24,152],[23,2,25,0],[24,2,26,0],[24,8,26,6,"ss58Exceptions"],[24,22,26,20],[24,25,26,23],[24,26,26,24],[24,31,26,29],[24,32,26,30],[25,0,26,31],[25,3]],"functionMap":{"names":["<global>","encodeAddress"],"mappings":"AAA;ACQ;CDgB"},"hasCjsExports":true},"type":"js/module"}]} |