auto-commit for 155cdee4-7b20-4acf-ad4d-053760ff258d

This commit is contained in:
emergent-agent-e1
2025-10-24 02:48:32 +00:00
parent 02778c9714
commit 8d0ee162c0
1845 changed files with 1845 additions and 0 deletions
@@ -0,0 +1 @@
{"dependencies":[{"name":"../abstract/Int.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}}],"key":"yV3Vh8PGUBHwW3OSefoTkwjUA/c=","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 Object.defineProperty(exports, \"Int\", {\n enumerable: true,\n get: function () {\n return Int;\n }\n });\n var _abstractIntJs = require(_dependencyMap[0], \"../abstract/Int.js\");\n /**\n * @name Int\n * @description\n * A generic signed integer codec. For Substrate all numbers are Little Endian encoded,\n * this handles the encoding and decoding of those numbers. Upon construction\n * the bitLength is provided and any additional use keeps the number to this\n * length. This extends `BN`, so all methods available on a normal `BN` object\n * is available here.\n * @noInheritDoc\n */\n class Int extends _abstractIntJs.AbstractInt {\n constructor(registry, value = 0, bitLength) {\n super(registry, value, bitLength, true);\n }\n static with(bitLength, typeName) {\n return class extends Int {\n constructor(registry, value) {\n super(registry, value, bitLength);\n }\n toRawType() {\n return typeName || super.toRawType();\n }\n };\n }\n }\n});","lineCount":39,"map":[[7,2,12,0,"Object"],[7,8,12,0],[7,9,12,0,"defineProperty"],[7,23,12,0],[7,24,12,0,"exports"],[7,31,12,0],[8,4,12,0,"enumerable"],[8,14,12,0],[9,4,12,0,"get"],[9,7,12,0],[9,18,12,0,"get"],[9,19,12,0],[10,6,12,0],[10,13,12,0,"Int"],[10,16,12,0],[11,4,12,0],[12,2,12,0],[13,2,1,0],[13,6,1,0,"_abstractIntJs"],[13,20,1,0],[13,23,1,0,"require"],[13,30,1,0],[13,31,1,0,"_dependencyMap"],[13,45,1,0],[14,2,2,0],[15,0,3,0],[16,0,4,0],[17,0,5,0],[18,0,6,0],[19,0,7,0],[20,0,8,0],[21,0,9,0],[22,0,10,0],[23,0,11,0],[24,2,12,7],[24,8,12,13,"Int"],[24,11,12,16],[24,20,12,25,"AbstractInt"],[24,34,12,36],[24,35,12,36,"AbstractInt"],[24,46,12,36],[24,47,12,37],[25,4,13,4,"constructor"],[25,15,13,15,"constructor"],[25,16,13,16,"registry"],[25,24,13,24],[25,26,13,26,"value"],[25,31,13,31],[25,34,13,34],[25,35,13,35],[25,37,13,37,"bitLength"],[25,46,13,46],[25,48,13,48],[26,6,14,8],[26,11,14,13],[26,12,14,14,"registry"],[26,20,14,22],[26,22,14,24,"value"],[26,27,14,29],[26,29,14,31,"bitLength"],[26,38,14,40],[26,40,14,42],[26,44,14,46],[26,45,14,47],[27,4,15,4],[28,4,16,4],[28,11,16,11,"with"],[28,15,16,15,"with"],[28,16,16,16,"bitLength"],[28,25,16,25],[28,27,16,27,"typeName"],[28,35,16,35],[28,37,16,37],[29,6,17,8],[29,13,17,15],[29,27,17,29,"Int"],[29,30,17,32],[29,31,17,33],[30,8,18,12,"constructor"],[30,19,18,23,"constructor"],[30,20,18,24,"registry"],[30,28,18,32],[30,30,18,34,"value"],[30,35,18,39],[30,37,18,41],[31,10,19,16],[31,15,19,21],[31,16,19,22,"registry"],[31,24,19,30],[31,26,19,32,"value"],[31,31,19,37],[31,33,19,39,"bitLength"],[31,42,19,48],[31,43,19,49],[32,8,20,12],[33,8,21,12,"toRawType"],[33,17,21,21,"toRawType"],[33,18,21,21],[33,20,21,24],[34,10,22,16],[34,17,22,23,"typeName"],[34,25,22,31],[34,29,22,35],[34,34,22,40],[34,35,22,41,"toRawType"],[34,44,22,50],[34,45,22,51],[34,46,22,52],[35,8,23,12],[36,6,24,8],[36,7,24,9],[37,4,25,4],[38,2,26,0],[39,0,26,1],[39,3]],"functionMap":{"names":["<global>","Int","constructor","_with","<anonymous>","toRawType"],"mappings":"AAA;OCW;ICC;KDE;IEC;eCC;YFC;aEE;YCC;aDE;SDC;KFC;CDC"},"hasCjsExports":false},"type":"js/module"}]}
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.arrRemove = arrRemove;\n function arrRemove(arr, item) {\n if (arr) {\n var index = arr.indexOf(item);\n 0 <= index && arr.splice(index, 1);\n }\n }\n});","lineCount":14,"map":[[7,2,1,0,"exports"],[7,9,1,0],[7,10,1,0,"arrRemove"],[7,19,1,0],[7,22,1,0,"arrRemove"],[7,31,1,0],[8,2,1,7],[8,11,1,16,"arrRemove"],[8,20,1,25,"arrRemove"],[8,21,1,26,"arr"],[8,24,1,29],[8,26,1,31,"item"],[8,30,1,35],[8,32,1,37],[9,4,2,4],[9,8,2,8,"arr"],[9,11,2,11],[9,13,2,13],[10,6,3,8],[10,10,3,12,"index"],[10,15,3,17],[10,18,3,20,"arr"],[10,21,3,23],[10,22,3,24,"indexOf"],[10,29,3,31],[10,30,3,32,"item"],[10,34,3,36],[10,35,3,37],[11,6,4,8],[11,7,4,9],[11,11,4,13,"index"],[11,16,4,18],[11,20,4,22,"arr"],[11,23,4,25],[11,24,4,26,"splice"],[11,30,4,32],[11,31,4,33,"index"],[11,36,4,38],[11,38,4,40],[11,39,4,41],[11,40,4,42],[12,4,5,4],[13,2,6,0],[14,0,6,1],[14,3]],"functionMap":{"names":["<global>","arrRemove"],"mappings":"AAA,OC;CDK"},"hasCjsExports":false},"type":"js/module"}]}
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.promisify = promisify;\n /**\n * @name promisify\n * @summary Wraps an async callback into a `Promise`\n * @description\n * Wraps the supplied async function `fn` that has a standard JS callback `(error: Error, result: any)` into a `Promise`, passing the supplied parameters. When `error` is set, the Promise is rejected, else the Promise resolves with the `result` value.\n * @example\n * <BR>\n *\n * ```javascript\n * const { promisify } from '@polkadot/util';\n *\n * await promisify(null, ((a, cb) => cb(null, a), true); // resolves with `true`\n * await promisify(null, (cb) => cb(new Error('error!'))); // rejects with `error!`\n * ```\n */\n function promisify(self, fn, ...params) {\n return new Promise((resolve, reject) => {\n fn.apply(self, params.concat((error, result) => {\n if (error) {\n reject(error);\n } else {\n resolve(result);\n }\n }));\n });\n }\n});","lineCount":34,"map":[[7,2,16,0,"exports"],[7,9,16,0],[7,10,16,0,"promisify"],[7,19,16,0],[7,22,16,0,"promisify"],[7,31,16,0],[8,2,1,0],[9,0,2,0],[10,0,3,0],[11,0,4,0],[12,0,5,0],[13,0,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[17,0,10,0],[18,0,11,0],[19,0,12,0],[20,0,13,0],[21,0,14,0],[22,0,15,0],[23,2,16,7],[23,11,16,16,"promisify"],[23,20,16,25,"promisify"],[23,21,16,26,"self"],[23,25,16,30],[23,27,16,32,"fn"],[23,29,16,34],[23,31,16,36],[23,34,16,39,"params"],[23,40,16,45],[23,42,16,47],[24,4,17,4],[24,11,17,11],[24,15,17,15,"Promise"],[24,22,17,22],[24,23,17,23],[24,24,17,24,"resolve"],[24,31,17,31],[24,33,17,33,"reject"],[24,39,17,39],[24,44,17,44],[25,6,18,8,"fn"],[25,8,18,10],[25,9,18,11,"apply"],[25,14,18,16],[25,15,18,17,"self"],[25,19,18,21],[25,21,18,23,"params"],[25,27,18,29],[25,28,18,30,"concat"],[25,34,18,36],[25,35,18,37],[25,36,18,38,"error"],[25,41,18,43],[25,43,18,45,"result"],[25,49,18,51],[25,54,18,56],[26,8,19,12],[26,12,19,16,"error"],[26,17,19,21],[26,19,19,23],[27,10,20,16,"reject"],[27,16,20,22],[27,17,20,23,"error"],[27,22,20,28],[27,23,20,29],[28,8,21,12],[28,9,21,13],[28,15,22,17],[29,10,23,16,"resolve"],[29,17,23,23],[29,18,23,24,"result"],[29,24,23,30],[29,25,23,31],[30,8,24,12],[31,6,25,8],[31,7,25,9],[31,8,25,10],[31,9,25,11],[32,4,26,4],[32,5,26,5],[32,6,26,6],[33,2,27,0],[34,0,27,1],[34,3]],"functionMap":{"names":["<global>","promisify","Promise$argument_0","params.concat$argument_0"],"mappings":"AAA;OCe;uBCC;qCCC;SDO;KDC;CDC"},"hasCjsExports":false},"type":"js/module"}]}
@@ -0,0 +1 @@
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":31,"index":31}}],"key":"PnOMrhZAPWoeW3ygrvUJ7ff768Y=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":32},"end":{"line":2,"column":40,"index":72}}],"key":"GRJlO1cmIj14nBxcasNpiq30og4=","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.referendumIds = referendumIds;\n var _rxjs = require(_dependencyMap[0], \"rxjs\");\n var _utilIndexJs = require(_dependencyMap[1], \"../util/index.js\");\n /**\n * @name referendumIds\n * @description Retrieves an array of active referendum IDs.\n * @example\n * ```javascript\n * const referendums = await api.derive.democracy.referendumIds();\n * ```\n */\n function referendumIds(instanceId, api) {\n return (0, _utilIndexJs.memo)(instanceId, () => api.query.democracy?.lowestUnbaked ? api.queryMulti([api.query.democracy.lowestUnbaked, api.query.democracy.referendumCount]).pipe((0, _rxjs.map)(([first, total]) => total.gt(first)\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n ? [...Array(total.sub(first).toNumber())].map((_, i) => first.addn(i)) : [])) : (0, _rxjs.of)([]));\n }\n});","lineCount":23,"map":[[7,2,11,0,"exports"],[7,9,11,0],[7,10,11,0,"referendumIds"],[7,23,11,0],[7,26,11,0,"referendumIds"],[7,39,11,0],[8,2,1,0],[8,6,1,0,"_rxjs"],[8,11,1,0],[8,14,1,0,"require"],[8,21,1,0],[8,22,1,0,"_dependencyMap"],[8,36,1,0],[9,2,2,0],[9,6,2,0,"_utilIndexJs"],[9,18,2,0],[9,21,2,0,"require"],[9,28,2,0],[9,29,2,0,"_dependencyMap"],[9,43,2,0],[10,2,3,0],[11,0,4,0],[12,0,5,0],[13,0,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[17,0,10,0],[18,2,11,7],[18,11,11,16,"referendumIds"],[18,24,11,29,"referendumIds"],[18,25,11,30,"instanceId"],[18,35,11,40],[18,37,11,42,"api"],[18,40,11,45],[18,42,11,47],[19,4,12,4],[19,11,12,11],[19,15,12,11,"memo"],[19,27,12,15],[19,28,12,15,"memo"],[19,32,12,15],[19,34,12,16,"instanceId"],[19,44,12,26],[19,46,12,28],[19,52,12,34,"api"],[19,55,12,37],[19,56,12,38,"query"],[19,61,12,43],[19,62,12,44,"democracy"],[19,71,12,53],[19,73,12,55,"lowestUnbaked"],[19,86,12,68],[19,89,13,10,"api"],[19,92,13,13],[19,93,13,14,"queryMulti"],[19,103,13,24],[19,104,13,25],[19,105,14,12,"api"],[19,108,14,15],[19,109,14,16,"query"],[19,114,14,21],[19,115,14,22,"democracy"],[19,124,14,31],[19,125,14,32,"lowestUnbaked"],[19,138,14,45],[19,140,15,12,"api"],[19,143,15,15],[19,144,15,16,"query"],[19,149,15,21],[19,150,15,22,"democracy"],[19,159,15,31],[19,160,15,32,"referendumCount"],[19,175,15,47],[19,176,16,9],[19,177,16,10],[19,178,16,11,"pipe"],[19,182,16,15],[19,183,16,16],[19,187,16,16,"map"],[19,192,16,19],[19,193,16,19,"map"],[19,196,16,19],[19,198,16,20],[19,199,16,21],[19,200,16,22,"first"],[19,205,16,27],[19,207,16,29,"total"],[19,212,16,34],[19,213,16,35],[19,218,16,40,"total"],[19,223,16,45],[19,224,16,46,"gt"],[19,226,16,48],[19,227,16,49,"first"],[19,232,16,54],[20,4,17,12],[21,4,17,12],[21,6,18,14],[21,7,18,15],[21,10,18,18,"Array"],[21,15,18,23],[21,16,18,24,"total"],[21,21,18,29],[21,22,18,30,"sub"],[21,25,18,33],[21,26,18,34,"first"],[21,31,18,39],[21,32,18,40],[21,33,18,41,"toNumber"],[21,41,18,49],[21,42,18,50],[21,43,18,51],[21,44,18,52],[21,45,18,53],[21,46,18,54,"map"],[21,49,18,57],[21,50,18,58],[21,51,18,59,"_"],[21,52,18,60],[21,54,18,62,"i"],[21,55,18,63],[21,60,18,68,"first"],[21,65,18,73],[21,66,18,74,"addn"],[21,70,18,78],[21,71,18,79,"i"],[21,72,18,80],[21,73,18,81],[21,74,18,82],[21,77,19,14],[21,79,19,16],[21,80,19,17],[21,81,19,18],[21,84,20,10],[21,88,20,10,"of"],[21,93,20,12],[21,94,20,12,"of"],[21,96,20,12],[21,98,20,13],[21,100,20,15],[21,101,20,16],[21,102,20,17],[22,2,21,0],[23,0,21,1],[23,3]],"functionMap":{"names":["<global>","referendumIds","memo$argument_1","map$argument_0"],"mappings":"AAA;OCU;4BCC;oBCI;gBDG;gBDC;CDC"},"hasCjsExports":false},"type":"js/module"}]}
File diff suppressed because one or more lines are too long