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
@@ -0,0 +1 @@
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":129},"end":{"line":4,"column":40,"index":154}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"../secp256k1/hasher.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":20,"index":176},"end":{"line":5,"column":53,"index":209}}],"key":"EY5xrARWNNSreraAqkXSfezEPXU=","exportNames":["*"],"imports":1}},{"name":"./encode.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":20,"index":231},"end":{"line":6,"column":42,"index":253}}],"key":"6FztT/DfTVBhkTe+9OSAQ47EebM=","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.evmToAddress = evmToAddress;\n const util_1 = require(_dependencyMap[0], \"@polkadot/util\");\n const hasher_js_1 = require(_dependencyMap[1], \"../secp256k1/hasher.js\");\n const encode_js_1 = require(_dependencyMap[2], \"./encode.js\");\n /**\n * @name evmToAddress\n * @summary Converts an EVM address to its corresponding SS58 address.\n */\n function evmToAddress(evmAddress, ss58Format, hashType = 'blake2') {\n const message = (0, util_1.u8aConcat)('evm:', evmAddress);\n if (message.length !== 24) {\n throw new Error(`Converting ${evmAddress}: Invalid evm address length`);\n }\n return (0, encode_js_1.encodeAddress)((0, hasher_js_1.hasher)(hashType, message), ss58Format);\n }\n});","lineCount":22,"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,"evmToAddress"],[7,22,3,20],[7,25,3,23,"evmToAddress"],[7,37,3,35],[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,"hasher_js_1"],[9,19,5,17],[9,22,5,20,"require"],[9,29,5,27],[9,30,5,27,"_dependencyMap"],[9,44,5,27],[9,73,5,52],[9,74,5,53],[10,2,6,0],[10,8,6,6,"encode_js_1"],[10,19,6,17],[10,22,6,20,"require"],[10,29,6,27],[10,30,6,27,"_dependencyMap"],[10,44,6,27],[10,62,6,41],[10,63,6,42],[11,2,7,0],[12,0,8,0],[13,0,9,0],[14,0,10,0],[15,2,11,0],[15,11,11,9,"evmToAddress"],[15,23,11,21,"evmToAddress"],[15,24,11,22,"evmAddress"],[15,34,11,32],[15,36,11,34,"ss58Format"],[15,46,11,44],[15,48,11,46,"hashType"],[15,56,11,54],[15,59,11,57],[15,67,11,65],[15,69,11,67],[16,4,12,4],[16,10,12,10,"message"],[16,17,12,17],[16,20,12,20],[16,21,12,21],[16,22,12,22],[16,24,12,24,"util_1"],[16,30,12,30],[16,31,12,31,"u8aConcat"],[16,40,12,40],[16,42,12,42],[16,48,12,48],[16,50,12,50,"evmAddress"],[16,60,12,60],[16,61,12,61],[17,4,13,4],[17,8,13,8,"message"],[17,15,13,15],[17,16,13,16,"length"],[17,22,13,22],[17,27,13,27],[17,29,13,29],[17,31,13,31],[18,6,14,8],[18,12,14,14],[18,16,14,18,"Error"],[18,21,14,23],[18,22,14,24],[18,36,14,38,"evmAddress"],[18,46,14,48],[18,76,14,78],[18,77,14,79],[19,4,15,4],[20,4,16,4],[20,11,16,11],[20,12,16,12],[20,13,16,13],[20,15,16,15,"encode_js_1"],[20,26,16,26],[20,27,16,27,"encodeAddress"],[20,40,16,40],[20,42,16,42],[20,43,16,43],[20,44,16,44],[20,46,16,46,"hasher_js_1"],[20,57,16,57],[20,58,16,58,"hasher"],[20,64,16,64],[20,66,16,66,"hashType"],[20,74,16,74],[20,76,16,76,"message"],[20,83,16,83],[20,84,16,84],[20,86,16,86,"ss58Format"],[20,96,16,96],[20,97,16,97],[21,2,17,0],[22,0,17,1],[22,3]],"functionMap":{"names":["<global>","evmToAddress"],"mappings":"AAA;ACU;CDM"},"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
@@ -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.formatDate = formatDate;\n /** @internal */\n function zeroPad(value) {\n return value.toString().padStart(2, '0');\n }\n /**\n * @name formatDate\n * @description Formats a date in CCYY-MM-DD HH:MM:SS format\n */\n function formatDate(date) {\n const year = date.getFullYear().toString();\n const month = zeroPad(date.getMonth() + 1);\n const day = zeroPad(date.getDate());\n const hour = zeroPad(date.getHours());\n const minute = zeroPad(date.getMinutes());\n const second = zeroPad(date.getSeconds());\n return `${year}-${month}-${day} ${hour}:${minute}:${second}`;\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,"formatDate"],[7,20,3,18],[7,23,3,21,"formatDate"],[7,33,3,31],[8,2,4,0],[9,2,5,0],[9,11,5,9,"zeroPad"],[9,18,5,16,"zeroPad"],[9,19,5,17,"value"],[9,24,5,22],[9,26,5,24],[10,4,6,4],[10,11,6,11,"value"],[10,16,6,16],[10,17,6,17,"toString"],[10,25,6,25],[10,26,6,26],[10,27,6,27],[10,28,6,28,"padStart"],[10,36,6,36],[10,37,6,37],[10,38,6,38],[10,40,6,40],[10,43,6,43],[10,44,6,44],[11,2,7,0],[12,2,8,0],[13,0,9,0],[14,0,10,0],[15,0,11,0],[16,2,12,0],[16,11,12,9,"formatDate"],[16,21,12,19,"formatDate"],[16,22,12,20,"date"],[16,26,12,24],[16,28,12,26],[17,4,13,4],[17,10,13,10,"year"],[17,14,13,14],[17,17,13,17,"date"],[17,21,13,21],[17,22,13,22,"getFullYear"],[17,33,13,33],[17,34,13,34],[17,35,13,35],[17,36,13,36,"toString"],[17,44,13,44],[17,45,13,45],[17,46,13,46],[18,4,14,4],[18,10,14,10,"month"],[18,15,14,15],[18,18,14,18,"zeroPad"],[18,25,14,25],[18,26,14,27,"date"],[18,30,14,31],[18,31,14,32,"getMonth"],[18,39,14,40],[18,40,14,41],[18,41,14,42],[18,44,14,45],[18,45,14,47],[18,46,14,48],[19,4,15,4],[19,10,15,10,"day"],[19,13,15,13],[19,16,15,16,"zeroPad"],[19,23,15,23],[19,24,15,24,"date"],[19,28,15,28],[19,29,15,29,"getDate"],[19,36,15,36],[19,37,15,37],[19,38,15,38],[19,39,15,39],[20,4,16,4],[20,10,16,10,"hour"],[20,14,16,14],[20,17,16,17,"zeroPad"],[20,24,16,24],[20,25,16,25,"date"],[20,29,16,29],[20,30,16,30,"getHours"],[20,38,16,38],[20,39,16,39],[20,40,16,40],[20,41,16,41],[21,4,17,4],[21,10,17,10,"minute"],[21,16,17,16],[21,19,17,19,"zeroPad"],[21,26,17,26],[21,27,17,27,"date"],[21,31,17,31],[21,32,17,32,"getMinutes"],[21,42,17,42],[21,43,17,43],[21,44,17,44],[21,45,17,45],[22,4,18,4],[22,10,18,10,"second"],[22,16,18,16],[22,19,18,19,"zeroPad"],[22,26,18,26],[22,27,18,27,"date"],[22,31,18,31],[22,32,18,32,"getSeconds"],[22,42,18,42],[22,43,18,43],[22,44,18,44],[22,45,18,45],[23,4,19,4],[23,11,19,11],[23,14,19,14,"year"],[23,18,19,18],[23,22,19,22,"month"],[23,27,19,27],[23,31,19,31,"day"],[23,34,19,34],[23,38,19,38,"hour"],[23,42,19,42],[23,46,19,46,"minute"],[23,52,19,52],[23,56,19,56,"second"],[23,62,19,62],[23,64,19,64],[24,2,20,0],[25,0,20,1],[25,3]],"functionMap":{"names":["<global>","zeroPad","formatDate"],"mappings":"AAA;ACI;CDE;AEK;CFQ"},"hasCjsExports":true},"type":"js/module"}]}