mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 13:31:00 +00:00
auto-commit for 3a02b3dd-cebb-4882-bfc5-dbb637e71a6d
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":137},"end":{"line":4,"column":40,"index":162}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"@polkadot/wasm-crypto","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":22,"index":186},"end":{"line":5,"column":54,"index":218}}],"key":"iIJx+ejRpeeDyPIizByl2fy6gpQ=","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.sr25519VrfVerify = sr25519VrfVerify;\n const util_1 = require(_dependencyMap[0], \"@polkadot/util\");\n const wasm_crypto_1 = require(_dependencyMap[1], \"@polkadot/wasm-crypto\");\n const EMPTY_U8A = new Uint8Array();\n /**\n * @name sr25519VrfVerify\n * @description Verify with sr25519 vrf verification\n */\n function sr25519VrfVerify(message, signOutput, publicKey, context = EMPTY_U8A, extra = EMPTY_U8A) {\n const publicKeyU8a = (0, util_1.u8aToU8a)(publicKey);\n const proofU8a = (0, util_1.u8aToU8a)(signOutput);\n if (publicKeyU8a.length !== 32) {\n throw new Error('Invalid publicKey, expected 32-bytes');\n } else if (proofU8a.length !== 96) {\n throw new Error('Invalid vrfSign output, expected 96 bytes');\n }\n return (0, wasm_crypto_1.vrfVerify)(publicKeyU8a, (0, util_1.u8aToU8a)(context), (0, util_1.u8aToU8a)(message), (0, util_1.u8aToU8a)(extra), proofU8a);\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,"sr25519VrfVerify"],[7,26,3,24],[7,29,3,27,"sr25519VrfVerify"],[7,45,3,43],[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,"wasm_crypto_1"],[9,21,5,19],[9,24,5,22,"require"],[9,31,5,29],[9,32,5,29,"_dependencyMap"],[9,46,5,29],[9,74,5,53],[9,75,5,54],[10,2,6,0],[10,8,6,6,"EMPTY_U8A"],[10,17,6,15],[10,20,6,18],[10,24,6,22,"Uint8Array"],[10,34,6,32],[10,35,6,33],[10,36,6,34],[11,2,7,0],[12,0,8,0],[13,0,9,0],[14,0,10,0],[15,2,11,0],[15,11,11,9,"sr25519VrfVerify"],[15,27,11,25,"sr25519VrfVerify"],[15,28,11,26,"message"],[15,35,11,33],[15,37,11,35,"signOutput"],[15,47,11,45],[15,49,11,47,"publicKey"],[15,58,11,56],[15,60,11,58,"context"],[15,67,11,65],[15,70,11,68,"EMPTY_U8A"],[15,79,11,77],[15,81,11,79,"extra"],[15,86,11,84],[15,89,11,87,"EMPTY_U8A"],[15,98,11,96],[15,100,11,98],[16,4,12,4],[16,10,12,10,"publicKeyU8a"],[16,22,12,22],[16,25,12,25],[16,26,12,26],[16,27,12,27],[16,29,12,29,"util_1"],[16,35,12,35],[16,36,12,36,"u8aToU8a"],[16,44,12,44],[16,46,12,46,"publicKey"],[16,55,12,55],[16,56,12,56],[17,4,13,4],[17,10,13,10,"proofU8a"],[17,18,13,18],[17,21,13,21],[17,22,13,22],[17,23,13,23],[17,25,13,25,"util_1"],[17,31,13,31],[17,32,13,32,"u8aToU8a"],[17,40,13,40],[17,42,13,42,"signOutput"],[17,52,13,52],[17,53,13,53],[18,4,14,4],[18,8,14,8,"publicKeyU8a"],[18,20,14,20],[18,21,14,21,"length"],[18,27,14,27],[18,32,14,32],[18,34,14,34],[18,36,14,36],[19,6,15,8],[19,12,15,14],[19,16,15,18,"Error"],[19,21,15,23],[19,22,15,24],[19,60,15,62],[19,61,15,63],[20,4,16,4],[20,5,16,5],[20,11,17,9],[20,15,17,13,"proofU8a"],[20,23,17,21],[20,24,17,22,"length"],[20,30,17,28],[20,35,17,33],[20,37,17,35],[20,39,17,37],[21,6,18,8],[21,12,18,14],[21,16,18,18,"Error"],[21,21,18,23],[21,22,18,24],[21,65,18,67],[21,66,18,68],[22,4,19,4],[23,4,20,4],[23,11,20,11],[23,12,20,12],[23,13,20,13],[23,15,20,15,"wasm_crypto_1"],[23,28,20,28],[23,29,20,29,"vrfVerify"],[23,38,20,38],[23,40,20,40,"publicKeyU8a"],[23,52,20,52],[23,54,20,54],[23,55,20,55],[23,56,20,56],[23,58,20,58,"util_1"],[23,64,20,64],[23,65,20,65,"u8aToU8a"],[23,73,20,73],[23,75,20,75,"context"],[23,82,20,82],[23,83,20,83],[23,85,20,85],[23,86,20,86],[23,87,20,87],[23,89,20,89,"util_1"],[23,95,20,95],[23,96,20,96,"u8aToU8a"],[23,104,20,104],[23,106,20,106,"message"],[23,113,20,113],[23,114,20,114],[23,116,20,116],[23,117,20,117],[23,118,20,118],[23,120,20,120,"util_1"],[23,126,20,126],[23,127,20,127,"u8aToU8a"],[23,135,20,135],[23,137,20,137,"extra"],[23,142,20,142],[23,143,20,143],[23,145,20,145,"proofU8a"],[23,153,20,153],[23,154,20,154],[24,2,21,0],[25,0,21,1],[25,3]],"functionMap":{"names":["<global>","sr25519VrfVerify"],"mappings":"AAA;ACU;CDU"},"hasCjsExports":true},"type":"js/module"}]}
|
||||
+1
File diff suppressed because one or more lines are too long
+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.getSeparator = getSeparator;\n /**\n * Get the decimal and thousand separator of a locale\n * @param locale\n * @returns {decimal: string, thousand: string}\n */\n function getSeparator(locale) {\n return {\n decimal: 0.1.toLocaleString(locale, {\n useGrouping: false\n }).charAt(1),\n thousand: 1000 .toLocaleString(locale, {\n useGrouping: true\n }).replace(/\\d/g, '').charAt(0)\n };\n }\n});","lineCount":23,"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,"getSeparator"],[7,22,3,20],[7,25,3,23,"getSeparator"],[7,37,3,35],[8,2,4,0],[9,0,5,0],[10,0,6,0],[11,0,7,0],[12,0,8,0],[13,2,9,0],[13,11,9,9,"getSeparator"],[13,23,9,21,"getSeparator"],[13,24,9,22,"locale"],[13,30,9,28],[13,32,9,30],[14,4,10,4],[14,11,10,11],[15,6,11,8,"decimal"],[15,13,11,15],[15,15,11,18],[15,18,11,21],[15,19,11,23,"toLocaleString"],[15,33,11,37],[15,34,11,38,"locale"],[15,40,11,44],[15,42,11,46],[16,8,11,48,"useGrouping"],[16,19,11,59],[16,21,11,61],[17,6,11,67],[17,7,11,68],[17,8,11,69],[17,9,11,70,"charAt"],[17,15,11,76],[17,16,11,77],[17,17,11,78],[17,18,11,79],[18,6,12,8,"thousand"],[18,14,12,16],[18,16,12,19],[18,20,12,23],[18,22,12,25,"toLocaleString"],[18,36,12,39],[18,37,12,40,"locale"],[18,43,12,46],[18,45,12,48],[19,8,12,50,"useGrouping"],[19,19,12,61],[19,21,12,63],[20,6,12,68],[20,7,12,69],[20,8,12,70],[20,9,12,71,"replace"],[20,16,12,78],[20,17,12,79],[20,22,12,84],[20,24,12,86],[20,26,12,88],[20,27,12,89],[20,28,12,90,"charAt"],[20,34,12,96],[20,35,12,97],[20,36,12,98],[21,4,13,4],[21,5,13,5],[22,2,14,0],[23,0,14,1],[23,3]],"functionMap":{"names":["<global>","getSeparator"],"mappings":"AAA;ACQ;CDK"},"hasCjsExports":true},"type":"js/module"}]}
|
||||
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":131},"end":{"line":4,"column":30,"index":146}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":19,"index":167},"end":{"line":5,"column":46,"index":194}}],"key":"H94lp+EitftSFqDHaenrSs5zKB0=","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.currentPoints = currentPoints;\n const rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n const index_js_1 = require(_dependencyMap[1], \"../util/index.js\");\n /**\n * @name currentPoints\n * @description Retrieve the staking overview, including elected and points earned.\n * @example\n * ```javascript\n * const currentPoints = await api.derive.staking.currentPoints();\n * console.log(currentPoints.toHuman());\n * ```\n */\n function currentPoints(instanceId, api) {\n return (0, index_js_1.memo)(instanceId, () => api.derive.session.indexes().pipe((0, rxjs_1.switchMap)(({\n activeEra\n }) => api.query.staking.erasRewardPoints(activeEra))));\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,"currentPoints"],[7,23,3,21],[7,26,3,24,"currentPoints"],[7,39,3,37],[8,2,4,0],[8,8,4,6,"rxjs_1"],[8,14,4,12],[8,17,4,15,"require"],[8,24,4,22],[8,25,4,22,"_dependencyMap"],[8,39,4,22],[8,50,4,29],[8,51,4,30],[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,66,5,45],[9,67,5,46],[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,2,15,0],[19,11,15,9,"currentPoints"],[19,24,15,22,"currentPoints"],[19,25,15,23,"instanceId"],[19,35,15,33],[19,37,15,35,"api"],[19,40,15,38],[19,42,15,40],[20,4,16,4],[20,11,16,11],[20,12,16,12],[20,13,16,13],[20,15,16,15,"index_js_1"],[20,25,16,25],[20,26,16,26,"memo"],[20,30,16,30],[20,32,16,32,"instanceId"],[20,42,16,42],[20,44,16,44],[20,50,16,50,"api"],[20,53,16,53],[20,54,16,54,"derive"],[20,60,16,60],[20,61,16,61,"session"],[20,68,16,68],[20,69,16,69,"indexes"],[20,76,16,76],[20,77,16,77],[20,78,16,78],[20,79,16,79,"pipe"],[20,83,16,83],[20,84,16,84],[20,85,16,85],[20,86,16,86],[20,88,16,88,"rxjs_1"],[20,94,16,94],[20,95,16,95,"switchMap"],[20,104,16,104],[20,106,16,106],[20,107,16,107],[21,6,16,109,"activeEra"],[22,4,16,119],[22,5,16,120],[22,10,16,125,"api"],[22,13,16,128],[22,14,16,129,"query"],[22,19,16,134],[22,20,16,135,"staking"],[22,27,16,142],[22,28,16,143,"erasRewardPoints"],[22,44,16,159],[22,45,16,160,"activeEra"],[22,54,16,169],[22,55,16,170],[22,56,16,171],[22,57,16,172],[22,58,16,173],[23,2,17,0],[24,0,17,1],[24,3]],"functionMap":{"names":["<global>","currentPoints","<anonymous>"],"mappings":"AAA;ACc;4CCC,gID;CDC"},"hasCjsExports":true},"type":"js/module"}]}
|
||||
Reference in New Issue
Block a user