auto-commit for 9f0f8e53-0005-474a-b8c0-62af81dd2fd1

This commit is contained in:
emergent-agent-e1
2025-10-24 02:50:33 +00:00
parent cac3637e68
commit a80510af07
1119 changed files with 1119 additions and 0 deletions
@@ -0,0 +1 @@
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":121},"end":{"line":4,"column":30,"index":136}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":153},"end":{"line":5,"column":40,"index":178}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":19,"index":199},"end":{"line":6,"column":46,"index":226}}],"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.overview = overview;\n const rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n const util_1 = require(_dependencyMap[1], \"@polkadot/util\");\n const index_js_1 = require(_dependencyMap[2], \"../util/index.js\");\n /**\n * @name overview\n * @description Retrieve the staking overview, including elected validators and points earned.\n * @example\n * ```javascript\n * const {\n * activeEra,\n * activeEraStart,\n * currentEra,\n * currentIndex,\n * nextElected,\n * validatorCount,\n * validators,\n * } = await api.derive.staking.overview();\n * ```\n */\n function overview(instanceId, api) {\n return (0, index_js_1.memo)(instanceId, () => (0, rxjs_1.combineLatest)([api.derive.session.indexes(), api.derive.staking.validators()]).pipe((0, rxjs_1.map)(([indexes, {\n nextElected,\n validators\n }]) => (0, util_1.objectSpread)({}, indexes, {\n nextElected,\n validators\n }))));\n }\n});","lineCount":36,"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,"overview"],[7,18,3,16],[7,21,3,19,"overview"],[7,29,3,27],[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,"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,8,6,6,"index_js_1"],[10,18,6,16],[10,21,6,19,"require"],[10,28,6,26],[10,29,6,26,"_dependencyMap"],[10,43,6,26],[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,0,13,0],[18,0,14,0],[19,0,15,0],[20,0,16,0],[21,0,17,0],[22,0,18,0],[23,0,19,0],[24,0,20,0],[25,0,21,0],[26,0,22,0],[27,2,23,0],[27,11,23,9,"overview"],[27,19,23,17,"overview"],[27,20,23,18,"instanceId"],[27,30,23,28],[27,32,23,30,"api"],[27,35,23,33],[27,37,23,35],[28,4,24,4],[28,11,24,11],[28,12,24,12],[28,13,24,13],[28,15,24,15,"index_js_1"],[28,25,24,25],[28,26,24,26,"memo"],[28,30,24,30],[28,32,24,32,"instanceId"],[28,42,24,42],[28,44,24,44],[28,50,24,50],[28,51,24,51],[28,52,24,52],[28,54,24,54,"rxjs_1"],[28,60,24,60],[28,61,24,61,"combineLatest"],[28,74,24,74],[28,76,24,76],[28,77,25,8,"api"],[28,80,25,11],[28,81,25,12,"derive"],[28,87,25,18],[28,88,25,19,"session"],[28,95,25,26],[28,96,25,27,"indexes"],[28,103,25,34],[28,104,25,35],[28,105,25,36],[28,107,26,8,"api"],[28,110,26,11],[28,111,26,12,"derive"],[28,117,26,18],[28,118,26,19,"staking"],[28,125,26,26],[28,126,26,27,"validators"],[28,136,26,37],[28,137,26,38],[28,138,26,39],[28,139,27,5],[28,140,27,6],[28,141,27,7,"pipe"],[28,145,27,11],[28,146,27,12],[28,147,27,13],[28,148,27,14],[28,150,27,16,"rxjs_1"],[28,156,27,22],[28,157,27,23,"map"],[28,160,27,26],[28,162,27,28],[28,163,27,29],[28,164,27,30,"indexes"],[28,171,27,37],[28,173,27,39],[29,6,27,41,"nextElected"],[29,17,27,52],[30,6,27,54,"validators"],[31,4,27,65],[31,5,27,66],[31,6,27,67],[31,11,27,72],[31,12,27,73],[31,13,27,74],[31,15,27,76,"util_1"],[31,21,27,82],[31,22,27,83,"objectSpread"],[31,34,27,95],[31,36,27,97],[31,37,27,98],[31,38,27,99],[31,40,27,101,"indexes"],[31,47,27,108],[31,49,27,110],[32,6,28,8,"nextElected"],[32,17,28,19],[33,6,29,8,"validators"],[34,4,30,4],[34,5,30,5],[34,6,30,6],[34,7,30,7],[34,8,30,8],[34,9,30,9],[35,2,31,0],[36,0,31,1],[36,3]],"functionMap":{"names":["<global>","overview","<anonymous>"],"mappings":"AAA;ACsB;4CCC;QDM;CDC"},"hasCjsExports":true},"type":"js/module"}]}
@@ -0,0 +1 @@
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":133},"end":{"line":4,"column":30,"index":148}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":165},"end":{"line":5,"column":40,"index":190}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":19,"index":211},"end":{"line":6,"column":46,"index":238}}],"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.sqrtElectorate = sqrtElectorate;\n const rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n const util_1 = require(_dependencyMap[1], \"@polkadot/util\");\n const index_js_1 = require(_dependencyMap[2], \"../util/index.js\");\n /**\n * @name sqrtElectorate\n * @description Computes the square root of the total token issuance in the network.\n * @example\n * ```javascript\n * let sqrtElectorate = await api.derive.democracy.sqrtElectorate();\n * console.log(\"Square root of token issuance:\", sqrtElectorate);\n * ```\n */\n function sqrtElectorate(instanceId, api) {\n return (0, index_js_1.memo)(instanceId, () => api.query.balances.totalIssuance().pipe((0, rxjs_1.map)(util_1.bnSqrt)));\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,"sqrtElectorate"],[7,24,3,22],[7,27,3,25,"sqrtElectorate"],[7,41,3,39],[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,"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,8,6,6,"index_js_1"],[10,18,6,16],[10,21,6,19,"require"],[10,28,6,26],[10,29,6,26,"_dependencyMap"],[10,43,6,26],[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,0,13,0],[18,0,14,0],[19,0,15,0],[20,2,16,0],[20,11,16,9,"sqrtElectorate"],[20,25,16,23,"sqrtElectorate"],[20,26,16,24,"instanceId"],[20,36,16,34],[20,38,16,36,"api"],[20,41,16,39],[20,43,16,41],[21,4,17,4],[21,11,17,11],[21,12,17,12],[21,13,17,13],[21,15,17,15,"index_js_1"],[21,25,17,25],[21,26,17,26,"memo"],[21,30,17,30],[21,32,17,32,"instanceId"],[21,42,17,42],[21,44,17,44],[21,50,17,50,"api"],[21,53,17,53],[21,54,17,54,"query"],[21,59,17,59],[21,60,17,60,"balances"],[21,68,17,68],[21,69,17,69,"totalIssuance"],[21,82,17,82],[21,83,17,83],[21,84,17,84],[21,85,17,85,"pipe"],[21,89,17,89],[21,90,17,90],[21,91,17,91],[21,92,17,92],[21,94,17,94,"rxjs_1"],[21,100,17,100],[21,101,17,101,"map"],[21,104,17,104],[21,106,17,106,"util_1"],[21,112,17,112],[21,113,17,113,"bnSqrt"],[21,119,17,119],[21,120,17,120],[21,121,17,121],[21,122,17,122],[22,2,18,0],[23,0,18,1],[23,3]],"functionMap":{"names":["<global>","sqrtElectorate","<anonymous>"],"mappings":"AAA;ACe;4CCC,6ED;CDC"},"hasCjsExports":true},"type":"js/module"}]}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"dependencies":[{"name":"./toU8a.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":17,"index":123},"end":{"line":4,"column":38,"index":144}}],"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.floatToU8a = void 0;\n var toU8a_js_1 = require(_dependencyMap[0], \"./toU8a.js\");\n Object.defineProperty(exports, \"floatToU8a\", {\n enumerable: true,\n get: function () {\n return toU8a_js_1.floatToU8a;\n }\n });\n});","lineCount":15,"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,"floatToU8a"],[7,20,3,18],[7,23,3,21],[7,28,3,26],[7,29,3,27],[8,2,4,0],[8,6,4,4,"toU8a_js_1"],[8,16,4,14],[8,19,4,17,"require"],[8,26,4,24],[8,27,4,24,"_dependencyMap"],[8,41,4,24],[8,58,4,37],[8,59,4,38],[9,2,5,0,"Object"],[9,8,5,6],[9,9,5,7,"defineProperty"],[9,23,5,21],[9,24,5,22,"exports"],[9,31,5,29],[9,33,5,31],[9,45,5,43],[9,47,5,45],[10,4,5,47,"enumerable"],[10,14,5,57],[10,16,5,59],[10,20,5,63],[11,4,5,65,"get"],[11,7,5,68],[11,9,5,70],[11,18,5,70,"get"],[11,19,5,70],[11,21,5,82],[12,6,5,84],[12,13,5,91,"toU8a_js_1"],[12,23,5,101],[12,24,5,102,"floatToU8a"],[12,34,5,112],[13,4,5,114],[14,2,5,116],[14,3,5,117],[14,4,5,118],[15,0,5,119],[15,3]],"functionMap":{"names":["<global>","Object.defineProperty$argument_2.get"],"mappings":"AAA;sECI,6CD"},"hasCjsExports":true},"type":"js/module"}]}
File diff suppressed because one or more lines are too long