mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 06:31:03 +00:00
auto-commit for f8470fe1-4ce5-4123-a3e6-0b710ab3390a
This commit is contained in:
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
{"dependencies":[{"name":"../u8a/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":19,"index":141},"end":{"line":4,"column":45,"index":167}}],"key":"dEG4NOO3lS4XIYROdhTL9E2mvmQ=","exportNames":["*"],"imports":1}},{"name":"./toU8a.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":19,"index":188},"end":{"line":5,"column":40,"index":209}}],"key":"Tcj3fJY+iCFcEHg4eIK/gqKeizo=","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.compactAddLength = compactAddLength;\n const index_js_1 = require(_dependencyMap[0], \"../u8a/index.js\");\n const toU8a_js_1 = require(_dependencyMap[1], \"./toU8a.js\");\n /**\n * @name compactAddLength\n * @description Adds a length prefix to the input value\n * @example\n * <BR>\n *\n * ```javascript\n * import { compactAddLength } from '@polkadot/util';\n *\n * console.log(compactAddLength(new Uint8Array([0xde, 0xad, 0xbe, 0xef]))); // Uint8Array([4 << 2, 0xde, 0xad, 0xbe, 0xef])\n * ```\n */\n function compactAddLength(input) {\n return (0, index_js_1.u8aConcatStrict)([(0, toU8a_js_1.compactToU8a)(input.length), input]);\n }\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,"compactAddLength"],[7,26,3,24],[7,29,3,27,"compactAddLength"],[7,45,3,43],[8,2,4,0],[8,8,4,6,"index_js_1"],[8,18,4,16],[8,21,4,19,"require"],[8,28,4,26],[8,29,4,26,"_dependencyMap"],[8,43,4,26],[8,65,4,44],[8,66,4,45],[9,2,5,0],[9,8,5,6,"toU8a_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,60,5,39],[9,61,5,40],[10,2,6,0],[11,0,7,0],[12,0,8,0],[13,0,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,0,13,0],[18,0,14,0],[19,0,15,0],[20,0,16,0],[21,0,17,0],[22,2,18,0],[22,11,18,9,"compactAddLength"],[22,27,18,25,"compactAddLength"],[22,28,18,26,"input"],[22,33,18,31],[22,35,18,33],[23,4,19,4],[23,11,19,11],[23,12,19,12],[23,13,19,13],[23,15,19,15,"index_js_1"],[23,25,19,25],[23,26,19,26,"u8aConcatStrict"],[23,41,19,41],[23,43,19,43],[23,44,20,8],[23,45,20,9],[23,46,20,10],[23,48,20,12,"toU8a_js_1"],[23,58,20,22],[23,59,20,23,"compactToU8a"],[23,71,20,35],[23,73,20,37,"input"],[23,78,20,42],[23,79,20,43,"length"],[23,85,20,49],[23,86,20,50],[23,88,21,8,"input"],[23,93,21,13],[23,94,22,5],[23,95,22,6],[24,2,23,0],[25,0,23,1],[25,3]],"functionMap":{"names":["<global>","compactAddLength"],"mappings":"AAA;ACiB;CDK"},"hasCjsExports":true},"type":"js/module"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"dependencies":[{"name":"./asU8a.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":17,"index":215},"end":{"line":7,"column":38,"index":236}}],"key":"m9u0ov2kvrZQMODvvWHnxWsp28o=","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.xxhashAsU8a = exports.xxhashAsHex = void 0;\n /**\n * @summary Create xxhash64 values with specified bitlengths\n */\n var asU8a_js_1 = require(_dependencyMap[0], \"./asU8a.js\");\n Object.defineProperty(exports, \"xxhashAsHex\", {\n enumerable: true,\n get: function () {\n return asU8a_js_1.xxhashAsHex;\n }\n });\n Object.defineProperty(exports, \"xxhashAsU8a\", {\n enumerable: true,\n get: function () {\n return asU8a_js_1.xxhashAsU8a;\n }\n });\n});","lineCount":24,"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,"xxhashAsU8a"],[7,21,3,19],[7,24,3,22,"exports"],[7,31,3,29],[7,32,3,30,"xxhashAsHex"],[7,43,3,41],[7,46,3,44],[7,51,3,49],[7,52,3,50],[8,2,4,0],[9,0,5,0],[10,0,6,0],[11,2,7,0],[11,6,7,4,"asU8a_js_1"],[11,16,7,14],[11,19,7,17,"require"],[11,26,7,24],[11,27,7,24,"_dependencyMap"],[11,41,7,24],[11,58,7,37],[11,59,7,38],[12,2,8,0,"Object"],[12,8,8,6],[12,9,8,7,"defineProperty"],[12,23,8,21],[12,24,8,22,"exports"],[12,31,8,29],[12,33,8,31],[12,46,8,44],[12,48,8,46],[13,4,8,48,"enumerable"],[13,14,8,58],[13,16,8,60],[13,20,8,64],[14,4,8,66,"get"],[14,7,8,69],[14,9,8,71],[14,18,8,71,"get"],[14,19,8,71],[14,21,8,83],[15,6,8,85],[15,13,8,92,"asU8a_js_1"],[15,23,8,102],[15,24,8,103,"xxhashAsHex"],[15,35,8,114],[16,4,8,116],[17,2,8,118],[17,3,8,119],[17,4,8,120],[18,2,9,0,"Object"],[18,8,9,6],[18,9,9,7,"defineProperty"],[18,23,9,21],[18,24,9,22,"exports"],[18,31,9,29],[18,33,9,31],[18,46,9,44],[18,48,9,46],[19,4,9,48,"enumerable"],[19,14,9,58],[19,16,9,60],[19,20,9,64],[20,4,9,66,"get"],[20,7,9,69],[20,9,9,71],[20,18,9,71,"get"],[20,19,9,71],[20,21,9,83],[21,6,9,85],[21,13,9,92,"asU8a_js_1"],[21,23,9,102],[21,24,9,103,"xxhashAsU8a"],[21,35,9,114],[22,4,9,116],[23,2,9,118],[23,3,9,119],[23,4,9,120],[24,0,9,121],[24,3]],"functionMap":{"names":["<global>","Object.defineProperty$argument_2.get"],"mappings":"AAA;uECO,8CD;uECC,8CD"},"hasCjsExports":true},"type":"js/module"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"dependencies":[],"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.crypto = void 0;\n exports.crypto = typeof globalThis === 'object' && 'crypto' in globalThis ? globalThis.crypto : undefined;\n});","lineCount":9,"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,"crypto"],[7,16,3,14],[7,19,3,17],[7,24,3,22],[7,25,3,23],[8,2,4,0,"exports"],[8,9,4,7],[8,10,4,8,"crypto"],[8,16,4,14],[8,19,4,17],[8,26,4,24,"globalThis"],[8,36,4,34],[8,41,4,39],[8,49,4,47],[8,53,4,51],[8,61,4,59],[8,65,4,63,"globalThis"],[8,75,4,73],[8,78,4,76,"globalThis"],[8,88,4,86],[8,89,4,87,"crypto"],[8,95,4,93],[8,98,4,96,"undefined"],[8,107,4,105],[9,0,4,106],[9,3]],"functionMap":{"names":["<global>"],"mappings":"AAA"},"hasCjsExports":true},"type":"js/module"}]}
|
||||
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
{"dependencies":[{"name":"./CodedError","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}}],"key":"ejEJzFfKvz0N9hBbejjoG+76cK8=","exportNames":["*"],"imports":1}},{"name":"../Platform","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":43},"end":{"line":2,"column":35,"index":78}}],"key":"SkcN7Zi2IL0pUxWZCaWeI65icek=","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 function _interopDefault(e) {\n return e && e.__esModule ? e : {\n default: e\n };\n }\n Object.defineProperty(exports, \"UnavailabilityError\", {\n enumerable: true,\n get: function () {\n return UnavailabilityError;\n }\n });\n var _CodedError = require(_dependencyMap[0], \"./CodedError\");\n var _Platform = require(_dependencyMap[1], \"../Platform\");\n var Platform = _interopDefault(_Platform);\n /**\n * A class for errors to be thrown when a property is accessed which is\n * unavailable, unsupported, or not currently implemented on the running\n * platform.\n */\n class UnavailabilityError extends _CodedError.CodedError {\n constructor(moduleName, propertyName) {\n super('ERR_UNAVAILABLE', `The method or property ${moduleName}.${propertyName} is not available on ${Platform.default.OS}, are you sure you've linked all the native dependencies properly?`);\n }\n }\n});","lineCount":31,"map":[[12,2,9,0,"Object"],[12,8,9,0],[12,9,9,0,"defineProperty"],[12,23,9,0],[12,24,9,0,"exports"],[12,31,9,0],[13,4,9,0,"enumerable"],[13,14,9,0],[14,4,9,0,"get"],[14,7,9,0],[14,18,9,0,"get"],[14,19,9,0],[15,6,9,0],[15,13,9,0,"UnavailabilityError"],[15,32,9,0],[16,4,9,0],[17,2,9,0],[18,2,1,0],[18,6,1,0,"_CodedError"],[18,17,1,0],[18,20,1,0,"require"],[18,27,1,0],[18,28,1,0,"_dependencyMap"],[18,42,1,0],[19,2,2,0],[19,6,2,0,"_Platform"],[19,15,2,0],[19,18,2,0,"require"],[19,25,2,0],[19,26,2,0,"_dependencyMap"],[19,40,2,0],[20,2,2,0],[20,6,2,0,"Platform"],[20,14,2,0],[20,17,2,0,"_interopDefault"],[20,32,2,0],[20,33,2,0,"_Platform"],[20,42,2,0],[21,2,4,0],[22,0,5,0],[23,0,6,0],[24,0,7,0],[25,0,8,0],[26,2,9,7],[26,8,9,13,"UnavailabilityError"],[26,27,9,32],[26,36,9,41,"CodedError"],[26,47,9,51],[26,48,9,51,"CodedError"],[26,58,9,51],[26,59,9,52],[27,4,10,2,"constructor"],[27,15,10,13,"constructor"],[27,16,10,14,"moduleName"],[27,26,10,32],[27,28,10,34,"propertyName"],[27,40,10,54],[27,42,10,56],[28,6,11,4],[28,11,11,9],[28,12,12,6],[28,29,12,23],[28,31,13,6],[28,57,13,32,"moduleName"],[28,67,13,42],[28,71,13,46,"propertyName"],[28,83,13,58],[28,107,13,82,"Platform"],[28,115,13,90],[28,116,13,90,"default"],[28,123,13,90],[28,124,13,91,"OS"],[28,126,13,93],[28,194,14,4],[28,195,14,5],[29,4,15,2],[30,2,16,0],[31,0,16,1],[31,3]],"functionMap":{"names":["<global>","UnavailabilityError","constructor"],"mappings":"AAA;OCQ;ECC;GDK;CDC"},"hasCjsExports":false},"type":"js/module"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"dependencies":[{"name":"react-native-web/dist/exports/processColor","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"8DdbuUtV90Z/t9ffltCQA3iNnjQ=","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 function _interopDefault(e) {\n return e && e.__esModule ? e : {\n default: e\n };\n }\n exports.normalizeColor = normalizeColor;\n var _reactNativeWebDistExportsProcessColor = require(_dependencyMap[0], \"react-native-web/dist/exports/processColor\");\n var processColor = _interopDefault(_reactNativeWebDistExportsProcessColor);\n /**\n * Copyright (c) Expo.\n * Copyright (c) Nicolas Gallagher.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n const isWebColor = color => color === 'currentcolor' || color === 'currentColor' || color === 'inherit' || color.indexOf('var(') === 0;\n function normalizeColor(color, opacity = 1) {\n if (color == null) return;\n if (typeof color === 'string' && isWebColor(color)) {\n return color;\n }\n const colorInt = (0, processColor.default)(color);\n if (typeof colorInt === 'number') {\n const r = colorInt >> 16 & 255;\n const g = colorInt >> 8 & 255;\n const b = colorInt & 255;\n const a = (colorInt >> 24 & 255) / 255;\n const alpha = (a * opacity).toFixed(2);\n return `rgba(${r},${g},${b},${alpha})`;\n }\n }\n});","lineCount":39,"map":[[12,2,13,0,"exports"],[12,9,13,0],[12,10,13,0,"normalizeColor"],[12,24,13,0],[12,27,13,0,"normalizeColor"],[12,41,13,0],[13,2,28,1],[13,6,28,1,"_reactNativeWebDistExportsProcessColor"],[13,44,28,1],[13,47,28,1,"require"],[13,54,28,1],[13,55,28,1,"_dependencyMap"],[13,69,28,1],[14,2,28,1],[14,6,28,1,"processColor"],[14,18,28,1],[14,21,28,1,"_interopDefault"],[14,36,28,1],[14,37,28,1,"_reactNativeWebDistExportsProcessColor"],[14,75,28,1],[15,2,1,0],[16,0,2,0],[17,0,3,0],[18,0,4,0],[19,0,5,0],[20,0,6,0],[21,0,7,0],[23,2,9,0],[23,8,9,6,"isWebColor"],[23,18,9,16],[23,21,9,20,"color"],[23,26,9,25],[23,30,9,30,"color"],[23,35,9,35],[23,40,9,40],[23,54,9,54],[23,58,10,4,"color"],[23,63,10,9],[23,68,10,14],[23,82,10,28],[23,86,11,4,"color"],[23,91,11,9],[23,96,11,14],[23,105,11,23],[23,109,12,4,"color"],[23,114,12,9],[23,115,12,10,"indexOf"],[23,122,12,17],[23,123,12,18],[23,129,12,24],[23,130,12,25],[23,135,12,30],[23,136,12,31],[24,2,13,7],[24,11,13,16,"normalizeColor"],[24,25,13,30,"normalizeColor"],[24,26,13,31,"color"],[24,31,13,36],[24,33,13,38,"opacity"],[24,40,13,45],[24,43,13,48],[24,44,13,49],[24,46,13,51],[25,4,14,4],[25,8,14,8,"color"],[25,13,14,13],[25,17,14,17],[25,21,14,21],[25,23,15,8],[26,4,16,4],[26,8,16,8],[26,15,16,15,"color"],[26,20,16,20],[26,25,16,25],[26,33,16,33],[26,37,16,37,"isWebColor"],[26,47,16,47],[26,48,16,48,"color"],[26,53,16,53],[26,54,16,54],[26,56,16,56],[27,6,17,8],[27,13,17,15,"color"],[27,18,17,20],[28,4,18,4],[29,4,19,4],[29,10,19,10,"colorInt"],[29,18,19,18],[29,21,19,21],[29,25,19,21,"processColor"],[29,37,19,33],[29,38,19,33,"default"],[29,45,19,33],[29,47,19,34,"color"],[29,52,19,39],[29,53,19,40],[30,4,20,4],[30,8,20,8],[30,15,20,15,"colorInt"],[30,23,20,23],[30,28,20,28],[30,36,20,36],[30,38,20,38],[31,6,21,8],[31,12,21,14,"r"],[31,13,21,15],[31,16,21,19,"colorInt"],[31,24,21,27],[31,28,21,31],[31,30,21,33],[31,33,21,37],[31,36,21,40],[32,6,22,8],[32,12,22,14,"g"],[32,13,22,15],[32,16,22,19,"colorInt"],[32,24,22,27],[32,28,22,31],[32,29,22,32],[32,32,22,36],[32,35,22,39],[33,6,23,8],[33,12,23,14,"b"],[33,13,23,15],[33,16,23,18,"colorInt"],[33,24,23,26],[33,27,23,29],[33,30,23,32],[34,6,24,8],[34,12,24,14,"a"],[34,13,24,15],[34,16,24,18],[34,17,24,20,"colorInt"],[34,25,24,28],[34,29,24,32],[34,31,24,34],[34,34,24,38],[34,37,24,41],[34,41,24,45],[34,44,24,48],[35,6,25,8],[35,12,25,14,"alpha"],[35,17,25,19],[35,20,25,22],[35,21,25,23,"a"],[35,22,25,24],[35,25,25,27,"opacity"],[35,32,25,34],[35,34,25,36,"toFixed"],[35,41,25,43],[35,42,25,44],[35,43,25,45],[35,44,25,46],[36,6,26,8],[36,13,26,15],[36,21,26,23,"r"],[36,22,26,24],[36,26,26,28,"g"],[36,27,26,29],[36,31,26,33,"b"],[36,32,26,34],[36,36,26,38,"alpha"],[36,41,26,43],[36,44,26,46],[37,4,27,4],[38,2,28,0],[39,0,28,1],[39,3]],"functionMap":{"names":["<global>","isWebColor","normalizeColor"],"mappings":"AAA;mBCQ;+BDG;OEC;CFe"},"hasCjsExports":false},"type":"js/module"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"dependencies":[{"name":"../base/UInt.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":18,"index":117},"end":{"line":4,"column":44,"index":143}}],"key":"rdla5PpsmahLG4iwTj9Hi/INa+U=","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.u16 = void 0;\n const UInt_js_1 = require(_dependencyMap[0], \"../base/UInt.js\");\n /**\n * @name u16\n * @description\n * A 16-bit unsigned integer\n */\n class u16 extends UInt_js_1.UInt.with(16) {\n // NOTE without this, we cannot properly determine extensions\n __UIntType = 'u16';\n }\n exports.u16 = u16;\n});","lineCount":19,"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,"u16"],[7,13,3,11],[7,16,3,14],[7,21,3,19],[7,22,3,20],[8,2,4,0],[8,8,4,6,"UInt_js_1"],[8,17,4,15],[8,20,4,18,"require"],[8,27,4,25],[8,28,4,25,"_dependencyMap"],[8,42,4,25],[8,64,4,43],[8,65,4,44],[9,2,5,0],[10,0,6,0],[11,0,7,0],[12,0,8,0],[13,0,9,0],[14,2,10,0],[14,8,10,6,"u16"],[14,11,10,9],[14,20,10,18,"UInt_js_1"],[14,29,10,27],[14,30,10,28,"UInt"],[14,34,10,32],[14,35,10,33,"with"],[14,39,10,37],[14,40,10,38],[14,42,10,40],[14,43,10,41],[14,44,10,42],[15,4,11,4],[16,4,12,4,"__UIntType"],[16,14,12,14],[16,17,12,17],[16,22,12,22],[17,2,13,0],[18,2,14,0,"exports"],[18,9,14,7],[18,10,14,8,"u16"],[18,13,14,11],[18,16,14,14,"u16"],[18,19,14,17],[19,0,14,18],[19,3]],"functionMap":{"names":["<global>","u16"],"mappings":"AAA;ACS;CDG"},"hasCjsExports":true},"type":"js/module"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"dependencies":[{"name":"../base58/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":19,"index":133},"end":{"line":4,"column":48,"index":162}}],"key":"imkmv9NUxjLUGHzCBJMTMZYgb2g=","exportNames":["*"],"imports":1}},{"name":"./checksum.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":22,"index":186},"end":{"line":5,"column":46,"index":210}}],"key":"ECG1Fw1wjHMGRMdutRA60e9o9/U=","exportNames":["*"],"imports":1}},{"name":"./defaults.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":22,"index":234},"end":{"line":6,"column":46,"index":258}}],"key":"8zlNL/bdiu3zO8WGWvKdyGqOG5I=","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.checkAddress = checkAddress;\n const index_js_1 = require(_dependencyMap[0], \"../base58/index.js\");\n const checksum_js_1 = require(_dependencyMap[1], \"./checksum.js\");\n const defaults_js_1 = require(_dependencyMap[2], \"./defaults.js\");\n /**\n * @name checkAddress\n * @summary Validates an ss58 address.\n * @description\n * From the provided input, validate that the address is a valid input.\n */\n function checkAddress(address, prefix) {\n let decoded;\n try {\n decoded = (0, index_js_1.base58Decode)(address);\n } catch (error) {\n return [false, error.message];\n }\n const [isValid,,, ss58Decoded] = (0, checksum_js_1.checkAddressChecksum)(decoded);\n if (ss58Decoded !== prefix) {\n return [false, `Prefix mismatch, expected ${prefix}, found ${ss58Decoded}`];\n } else if (!defaults_js_1.defaults.allowedEncodedLengths.includes(decoded.length)) {\n return [false, 'Invalid decoded address length'];\n }\n return [isValid, isValid ? null : 'Invalid decoded address checksum'];\n }\n});","lineCount":32,"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,"checkAddress"],[7,22,3,20],[7,25,3,23,"checkAddress"],[7,37,3,35],[8,2,4,0],[8,8,4,6,"index_js_1"],[8,18,4,16],[8,21,4,19,"require"],[8,28,4,26],[8,29,4,26,"_dependencyMap"],[8,43,4,26],[8,68,4,47],[8,69,4,48],[9,2,5,0],[9,8,5,6,"checksum_js_1"],[9,21,5,19],[9,24,5,22,"require"],[9,31,5,29],[9,32,5,29,"_dependencyMap"],[9,46,5,29],[9,66,5,45],[9,67,5,46],[10,2,6,0],[10,8,6,6,"defaults_js_1"],[10,21,6,19],[10,24,6,22,"require"],[10,31,6,29],[10,32,6,29,"_dependencyMap"],[10,46,6,29],[10,66,6,45],[10,67,6,46],[11,2,7,0],[12,0,8,0],[13,0,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,2,13,0],[17,11,13,9,"checkAddress"],[17,23,13,21,"checkAddress"],[17,24,13,22,"address"],[17,31,13,29],[17,33,13,31,"prefix"],[17,39,13,37],[17,41,13,39],[18,4,14,4],[18,8,14,8,"decoded"],[18,15,14,15],[19,4,15,4],[19,8,15,8],[20,6,16,8,"decoded"],[20,13,16,15],[20,16,16,18],[20,17,16,19],[20,18,16,20],[20,20,16,22,"index_js_1"],[20,30,16,32],[20,31,16,33,"base58Decode"],[20,43,16,45],[20,45,16,47,"address"],[20,52,16,54],[20,53,16,55],[21,4,17,4],[21,5,17,5],[21,6,18,4],[21,13,18,11,"error"],[21,18,18,16],[21,20,18,18],[22,6,19,8],[22,13,19,15],[22,14,19,16],[22,19,19,21],[22,21,19,23,"error"],[22,26,19,28],[22,27,19,29,"message"],[22,34,19,36],[22,35,19,37],[23,4,20,4],[24,4,21,4],[24,10,21,10],[24,11,21,11,"isValid"],[24,18,21,18],[24,22,21,24,"ss58Decoded"],[24,33,21,35],[24,34,21,36],[24,37,21,39],[24,38,21,40],[24,39,21,41],[24,41,21,43,"checksum_js_1"],[24,54,21,56],[24,55,21,57,"checkAddressChecksum"],[24,75,21,77],[24,77,21,79,"decoded"],[24,84,21,86],[24,85,21,87],[25,4,22,4],[25,8,22,8,"ss58Decoded"],[25,19,22,19],[25,24,22,24,"prefix"],[25,30,22,30],[25,32,22,32],[26,6,23,8],[26,13,23,15],[26,14,23,16],[26,19,23,21],[26,21,23,23],[26,50,23,52,"prefix"],[26,56,23,58],[26,67,23,69,"ss58Decoded"],[26,78,23,80],[26,80,23,82],[26,81,23,83],[27,4,24,4],[27,5,24,5],[27,11,25,9],[27,15,25,13],[27,16,25,14,"defaults_js_1"],[27,29,25,27],[27,30,25,28,"defaults"],[27,38,25,36],[27,39,25,37,"allowedEncodedLengths"],[27,60,25,58],[27,61,25,59,"includes"],[27,69,25,67],[27,70,25,68,"decoded"],[27,77,25,75],[27,78,25,76,"length"],[27,84,25,82],[27,85,25,83],[27,87,25,85],[28,6,26,8],[28,13,26,15],[28,14,26,16],[28,19,26,21],[28,21,26,23],[28,53,26,55],[28,54,26,56],[29,4,27,4],[30,4,28,4],[30,11,28,11],[30,12,28,12,"isValid"],[30,19,28,19],[30,21,28,21,"isValid"],[30,28,28,28],[30,31,28,31],[30,35,28,35],[30,38,28,38],[30,72,28,72],[30,73,28,73],[31,2,29,0],[32,0,29,1],[32,3]],"functionMap":{"names":["<global>","checkAddress"],"mappings":"AAA;ACY;CDgB"},"hasCjsExports":true},"type":"js/module"}]}
|
||||
Reference in New Issue
Block a user