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
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":[],"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.extractAuthor = extractAuthor;\n function extractAuthor(digest, sessionValidators) {\n const [citem] = digest.logs.filter(e => e.isConsensus);\n const [pitem] = digest.logs.filter(e => e.isPreRuntime);\n const [sitem] = digest.logs.filter(e => e.isSeal);\n let accountId;\n try {\n // This is critical to be first for BABE (before Consensus)\n // If not first, we end up dropping the author at session-end\n if (pitem) {\n const [engine, data] = pitem.asPreRuntime;\n accountId = engine.extractAuthor(data, sessionValidators);\n }\n if (!accountId && citem) {\n const [engine, data] = citem.asConsensus;\n accountId = engine.extractAuthor(data, sessionValidators);\n }\n // SEAL, still used in e.g. Kulupu for pow\n if (!accountId && sitem) {\n const [engine, data] = sitem.asSeal;\n accountId = engine.extractAuthor(data, sessionValidators);\n }\n } catch {\n // ignore\n }\n return accountId;\n }\n});","lineCount":34,"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,"extractAuthor"],[7,23,3,21],[7,26,3,24,"extractAuthor"],[7,39,3,37],[8,2,4,0],[8,11,4,9,"extractAuthor"],[8,24,4,22,"extractAuthor"],[8,25,4,23,"digest"],[8,31,4,29],[8,33,4,31,"sessionValidators"],[8,50,4,48],[8,52,4,50],[9,4,5,4],[9,10,5,10],[9,11,5,11,"citem"],[9,16,5,16],[9,17,5,17],[9,20,5,20,"digest"],[9,26,5,26],[9,27,5,27,"logs"],[9,31,5,31],[9,32,5,32,"filter"],[9,38,5,38],[9,39,5,40,"e"],[9,40,5,41],[9,44,5,46,"e"],[9,45,5,47],[9,46,5,48,"isConsensus"],[9,57,5,59],[9,58,5,60],[10,4,6,4],[10,10,6,10],[10,11,6,11,"pitem"],[10,16,6,16],[10,17,6,17],[10,20,6,20,"digest"],[10,26,6,26],[10,27,6,27,"logs"],[10,31,6,31],[10,32,6,32,"filter"],[10,38,6,38],[10,39,6,40,"e"],[10,40,6,41],[10,44,6,46,"e"],[10,45,6,47],[10,46,6,48,"isPreRuntime"],[10,58,6,60],[10,59,6,61],[11,4,7,4],[11,10,7,10],[11,11,7,11,"sitem"],[11,16,7,16],[11,17,7,17],[11,20,7,20,"digest"],[11,26,7,26],[11,27,7,27,"logs"],[11,31,7,31],[11,32,7,32,"filter"],[11,38,7,38],[11,39,7,40,"e"],[11,40,7,41],[11,44,7,46,"e"],[11,45,7,47],[11,46,7,48,"isSeal"],[11,52,7,54],[11,53,7,55],[12,4,8,4],[12,8,8,8,"accountId"],[12,17,8,17],[13,4,9,4],[13,8,9,8],[14,6,10,8],[15,6,11,8],[16,6,12,8],[16,10,12,12,"pitem"],[16,15,12,17],[16,17,12,19],[17,8,13,12],[17,14,13,18],[17,15,13,19,"engine"],[17,21,13,25],[17,23,13,27,"data"],[17,27,13,31],[17,28,13,32],[17,31,13,35,"pitem"],[17,36,13,40],[17,37,13,41,"asPreRuntime"],[17,49,13,53],[18,8,14,12,"accountId"],[18,17,14,21],[18,20,14,24,"engine"],[18,26,14,30],[18,27,14,31,"extractAuthor"],[18,40,14,44],[18,41,14,45,"data"],[18,45,14,49],[18,47,14,51,"sessionValidators"],[18,64,14,68],[18,65,14,69],[19,6,15,8],[20,6,16,8],[20,10,16,12],[20,11,16,13,"accountId"],[20,20,16,22],[20,24,16,26,"citem"],[20,29,16,31],[20,31,16,33],[21,8,17,12],[21,14,17,18],[21,15,17,19,"engine"],[21,21,17,25],[21,23,17,27,"data"],[21,27,17,31],[21,28,17,32],[21,31,17,35,"citem"],[21,36,17,40],[21,37,17,41,"asConsensus"],[21,48,17,52],[22,8,18,12,"accountId"],[22,17,18,21],[22,20,18,24,"engine"],[22,26,18,30],[22,27,18,31,"extractAuthor"],[22,40,18,44],[22,41,18,45,"data"],[22,45,18,49],[22,47,18,51,"sessionValidators"],[22,64,18,68],[22,65,18,69],[23,6,19,8],[24,6,20,8],[25,6,21,8],[25,10,21,12],[25,11,21,13,"accountId"],[25,20,21,22],[25,24,21,26,"sitem"],[25,29,21,31],[25,31,21,33],[26,8,22,12],[26,14,22,18],[26,15,22,19,"engine"],[26,21,22,25],[26,23,22,27,"data"],[26,27,22,31],[26,28,22,32],[26,31,22,35,"sitem"],[26,36,22,40],[26,37,22,41,"asSeal"],[26,43,22,47],[27,8,23,12,"accountId"],[27,17,23,21],[27,20,23,24,"engine"],[27,26,23,30],[27,27,23,31,"extractAuthor"],[27,40,23,44],[27,41,23,45,"data"],[27,45,23,49],[27,47,23,51,"sessionValidators"],[27,64,23,68],[27,65,23,69],[28,6,24,8],[29,4,25,4],[29,5,25,5],[29,6,26,4],[29,12,26,10],[30,6,27,8],[31,4,27,8],[32,4,29,4],[32,11,29,11,"accountId"],[32,20,29,20],[33,2,30,0],[34,0,30,1],[34,3]],"functionMap":{"names":["<global>","extractAuthor","digest.logs.filter$argument_0"],"mappings":"AAA;ACG;uCCC,oBD;uCCC,qBD;uCCC,eD;CDuB"},"hasCjsExports":true},"type":"js/module"}]}
@@ -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.u8aEmpty = u8aEmpty;\n /**\n * @name u8aEmpty\n * @summary Tests for a `Uint8Array` for emptyness\n * @description\n * Checks to see if the input `Uint8Array` has zero length or contains all 0 values.\n */\n function u8aEmpty(value) {\n const len = value.length | 0;\n // on smaller sizes, the byte-by-byte compare is faster than allocating\n // another object for DataView (on very large arrays the DataView is faster)\n for (let i = 0; i < len; i++) {\n if (value[i] | 0) {\n return false;\n }\n }\n return true;\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,"u8aEmpty"],[7,18,3,16],[7,21,3,19,"u8aEmpty"],[7,29,3,27],[8,2,4,0],[9,0,5,0],[10,0,6,0],[11,0,7,0],[12,0,8,0],[13,0,9,0],[14,2,10,0],[14,11,10,9,"u8aEmpty"],[14,19,10,17,"u8aEmpty"],[14,20,10,18,"value"],[14,25,10,23],[14,27,10,25],[15,4,11,4],[15,10,11,10,"len"],[15,13,11,13],[15,16,11,16,"value"],[15,21,11,21],[15,22,11,22,"length"],[15,28,11,28],[15,31,11,31],[15,32,11,32],[16,4,12,4],[17,4,13,4],[18,4,14,4],[18,9,14,9],[18,13,14,13,"i"],[18,14,14,14],[18,17,14,17],[18,18,14,18],[18,20,14,20,"i"],[18,21,14,21],[18,24,14,24,"len"],[18,27,14,27],[18,29,14,29,"i"],[18,30,14,30],[18,32,14,32],[18,34,14,34],[19,6,15,8],[19,10,15,12,"value"],[19,15,15,17],[19,16,15,18,"i"],[19,17,15,19],[19,18,15,20],[19,21,15,23],[19,22,15,24],[19,24,15,26],[20,8,16,12],[20,15,16,19],[20,20,16,24],[21,6,17,8],[22,4,18,4],[23,4,19,4],[23,11,19,11],[23,15,19,15],[24,2,20,0],[25,0,20,1],[25,3]],"functionMap":{"names":["<global>","u8aEmpty"],"mappings":"AAA;ACS;CDU"},"hasCjsExports":true},"type":"js/module"}]}