@typeberry/jam 0.1.2-953c012 → 0.1.2-b25cc82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap-generator.mjs","mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;;;;;;;;;ACJA;AACA;AACA;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;;;;ACAA;AACA;;;;AEDA;AACA;AACA;AACA","sources":["../external module \"tsx/esm/api\"",".././workers/block-generator/bootstrap-generator.mjs","../webpack/bootstrap","../webpack/runtime/async module","../webpack/runtime/define property getters","../webpack/runtime/hasOwnProperty shorthand","../webpack/runtime/compat","../webpack/before-startup","../webpack/startup","../webpack/after-startup"],"sourcesContent":["var x = (y) => {\n\tvar x = {}; __webpack_require__.d(x, y); return x\n} \nvar y = (x) => (() => (x))\nmodule.exports = x({ [\"tsImport\"]: () => (__WEBPACK_EXTERNAL_MODULE_tsx_esm_api_3a632928__.tsImport) });","import { tsImport } from \"tsx/esm/api\";\n\nawait tsImport(\"./index.ts\", import.meta.url);\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\tvar threw = true;\n\ttry {\n\t\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\t\tthrew = false;\n\t} finally {\n\t\tif(threw) delete __webpack_module_cache__[moduleId];\n\t}\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","var webpackQueues = typeof Symbol === \"function\" ? Symbol(\"webpack queues\") : \"__webpack_queues__\";\nvar webpackExports = typeof Symbol === \"function\" ? Symbol(\"webpack exports\") : \"__webpack_exports__\";\nvar webpackError = typeof Symbol === \"function\" ? Symbol(\"webpack error\") : \"__webpack_error__\";\nvar resolveQueue = (queue) => {\n\tif(queue && queue.d < 1) {\n\t\tqueue.d = 1;\n\t\tqueue.forEach((fn) => (fn.r--));\n\t\tqueue.forEach((fn) => (fn.r-- ? fn.r++ : fn()));\n\t}\n}\nvar wrapDeps = (deps) => (deps.map((dep) => {\n\tif(dep !== null && typeof dep === \"object\") {\n\t\tif(dep[webpackQueues]) return dep;\n\t\tif(dep.then) {\n\t\t\tvar queue = [];\n\t\t\tqueue.d = 0;\n\t\t\tdep.then((r) => {\n\t\t\t\tobj[webpackExports] = r;\n\t\t\t\tresolveQueue(queue);\n\t\t\t}, (e) => {\n\t\t\t\tobj[webpackError] = e;\n\t\t\t\tresolveQueue(queue);\n\t\t\t});\n\t\t\tvar obj = {};\n\t\t\tobj[webpackQueues] = (fn) => (fn(queue));\n\t\t\treturn obj;\n\t\t}\n\t}\n\tvar ret = {};\n\tret[webpackQueues] = x => {};\n\tret[webpackExports] = dep;\n\treturn ret;\n}));\n__webpack_require__.a = (module, body, hasAwait) => {\n\tvar queue;\n\thasAwait && ((queue = []).d = -1);\n\tvar depQueues = new Set();\n\tvar exports = module.exports;\n\tvar currentDeps;\n\tvar outerResolve;\n\tvar reject;\n\tvar promise = new Promise((resolve, rej) => {\n\t\treject = rej;\n\t\touterResolve = resolve;\n\t});\n\tpromise[webpackExports] = exports;\n\tpromise[webpackQueues] = (fn) => (queue && fn(queue), depQueues.forEach(fn), promise[\"catch\"](x => {}));\n\tmodule.exports = promise;\n\tbody((deps) => {\n\t\tcurrentDeps = wrapDeps(deps);\n\t\tvar fn;\n\t\tvar getResult = () => (currentDeps.map((d) => {\n\t\t\tif(d[webpackError]) throw d[webpackError];\n\t\t\treturn d[webpackExports];\n\t\t}))\n\t\tvar promise = new Promise((resolve) => {\n\t\t\tfn = () => (resolve(getResult));\n\t\t\tfn.r = 0;\n\t\t\tvar fnQueue = (q) => (q !== queue && !depQueues.has(q) && (depQueues.add(q), q && !q.d && (fn.r++, q.push(fn))));\n\t\t\tcurrentDeps.map((dep) => (dep[webpackQueues](fnQueue)));\n\t\t});\n\t\treturn fn.r ? promise : getResult();\n\t}, (err) => ((err ? reject(promise[webpackError] = err) : outerResolve(exports)), resolveQueue(queue)));\n\tqueue && queue.d < 0 && (queue.d = 0);\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","\nif (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\\/\\/\\/\\w:/) ? 1 : 0, -1) + \"/\";","","// startup\n// Load entry module and return exports\n// This entry module used 'module' so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(305);\n",""],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"bootstrap-generator.mjs","mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;;;;;;;;;ACJA;AACA;AACA;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;;;;ACAA;AACA;;;;AEDA;AACA;AACA;AACA","sources":["../external module \"tsx/esm/api\"",".././packages/workers/block-generator/bootstrap-generator.mjs","../webpack/bootstrap","../webpack/runtime/async module","../webpack/runtime/define property getters","../webpack/runtime/hasOwnProperty shorthand","../webpack/runtime/compat","../webpack/before-startup","../webpack/startup","../webpack/after-startup"],"sourcesContent":["var x = (y) => {\n\tvar x = {}; __webpack_require__.d(x, y); return x\n} \nvar y = (x) => (() => (x))\nmodule.exports = x({ [\"tsImport\"]: () => (__WEBPACK_EXTERNAL_MODULE_tsx_esm_api_3a632928__.tsImport) });","import { tsImport } from \"tsx/esm/api\";\n\nawait tsImport(\"./index.ts\", import.meta.url);\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\tvar threw = true;\n\ttry {\n\t\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\t\tthrew = false;\n\t} finally {\n\t\tif(threw) delete __webpack_module_cache__[moduleId];\n\t}\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","var webpackQueues = typeof Symbol === \"function\" ? Symbol(\"webpack queues\") : \"__webpack_queues__\";\nvar webpackExports = typeof Symbol === \"function\" ? Symbol(\"webpack exports\") : \"__webpack_exports__\";\nvar webpackError = typeof Symbol === \"function\" ? Symbol(\"webpack error\") : \"__webpack_error__\";\nvar resolveQueue = (queue) => {\n\tif(queue && queue.d < 1) {\n\t\tqueue.d = 1;\n\t\tqueue.forEach((fn) => (fn.r--));\n\t\tqueue.forEach((fn) => (fn.r-- ? fn.r++ : fn()));\n\t}\n}\nvar wrapDeps = (deps) => (deps.map((dep) => {\n\tif(dep !== null && typeof dep === \"object\") {\n\t\tif(dep[webpackQueues]) return dep;\n\t\tif(dep.then) {\n\t\t\tvar queue = [];\n\t\t\tqueue.d = 0;\n\t\t\tdep.then((r) => {\n\t\t\t\tobj[webpackExports] = r;\n\t\t\t\tresolveQueue(queue);\n\t\t\t}, (e) => {\n\t\t\t\tobj[webpackError] = e;\n\t\t\t\tresolveQueue(queue);\n\t\t\t});\n\t\t\tvar obj = {};\n\t\t\tobj[webpackQueues] = (fn) => (fn(queue));\n\t\t\treturn obj;\n\t\t}\n\t}\n\tvar ret = {};\n\tret[webpackQueues] = x => {};\n\tret[webpackExports] = dep;\n\treturn ret;\n}));\n__webpack_require__.a = (module, body, hasAwait) => {\n\tvar queue;\n\thasAwait && ((queue = []).d = -1);\n\tvar depQueues = new Set();\n\tvar exports = module.exports;\n\tvar currentDeps;\n\tvar outerResolve;\n\tvar reject;\n\tvar promise = new Promise((resolve, rej) => {\n\t\treject = rej;\n\t\touterResolve = resolve;\n\t});\n\tpromise[webpackExports] = exports;\n\tpromise[webpackQueues] = (fn) => (queue && fn(queue), depQueues.forEach(fn), promise[\"catch\"](x => {}));\n\tmodule.exports = promise;\n\tbody((deps) => {\n\t\tcurrentDeps = wrapDeps(deps);\n\t\tvar fn;\n\t\tvar getResult = () => (currentDeps.map((d) => {\n\t\t\tif(d[webpackError]) throw d[webpackError];\n\t\t\treturn d[webpackExports];\n\t\t}))\n\t\tvar promise = new Promise((resolve) => {\n\t\t\tfn = () => (resolve(getResult));\n\t\t\tfn.r = 0;\n\t\t\tvar fnQueue = (q) => (q !== queue && !depQueues.has(q) && (depQueues.add(q), q && !q.d && (fn.r++, q.push(fn))));\n\t\t\tcurrentDeps.map((dep) => (dep[webpackQueues](fnQueue)));\n\t\t});\n\t\treturn fn.r ? promise : getResult();\n\t}, (err) => ((err ? reject(promise[webpackError] = err) : outerResolve(exports)), resolveQueue(queue)));\n\tqueue && queue.d < 0 && (queue.d = 0);\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","\nif (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\\/\\/\\/\\w:/) ? 1 : 0, -1) + \"/\";","","// startup\n// Load entry module and return exports\n// This entry module used 'module' so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(305);\n",""],"names":[],"sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap-importer.mjs","mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;;;;;;;;;ACJA;AACA;AACA;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;;;;ACAA;AACA;;;;AEDA;AACA;AACA;AACA","sources":["../external module \"tsx/esm/api\"",".././workers/importer/bootstrap-importer.mjs","../webpack/bootstrap","../webpack/runtime/async module","../webpack/runtime/define property getters","../webpack/runtime/hasOwnProperty shorthand","../webpack/runtime/compat","../webpack/before-startup","../webpack/startup","../webpack/after-startup"],"sourcesContent":["var x = (y) => {\n\tvar x = {}; __webpack_require__.d(x, y); return x\n} \nvar y = (x) => (() => (x))\nmodule.exports = x({ [\"tsImport\"]: () => (__WEBPACK_EXTERNAL_MODULE_tsx_esm_api_3a632928__.tsImport) });","import { tsImport } from \"tsx/esm/api\";\n\nawait tsImport(\"./index.ts\", import.meta.url);\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\tvar threw = true;\n\ttry {\n\t\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\t\tthrew = false;\n\t} finally {\n\t\tif(threw) delete __webpack_module_cache__[moduleId];\n\t}\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","var webpackQueues = typeof Symbol === \"function\" ? Symbol(\"webpack queues\") : \"__webpack_queues__\";\nvar webpackExports = typeof Symbol === \"function\" ? Symbol(\"webpack exports\") : \"__webpack_exports__\";\nvar webpackError = typeof Symbol === \"function\" ? Symbol(\"webpack error\") : \"__webpack_error__\";\nvar resolveQueue = (queue) => {\n\tif(queue && queue.d < 1) {\n\t\tqueue.d = 1;\n\t\tqueue.forEach((fn) => (fn.r--));\n\t\tqueue.forEach((fn) => (fn.r-- ? fn.r++ : fn()));\n\t}\n}\nvar wrapDeps = (deps) => (deps.map((dep) => {\n\tif(dep !== null && typeof dep === \"object\") {\n\t\tif(dep[webpackQueues]) return dep;\n\t\tif(dep.then) {\n\t\t\tvar queue = [];\n\t\t\tqueue.d = 0;\n\t\t\tdep.then((r) => {\n\t\t\t\tobj[webpackExports] = r;\n\t\t\t\tresolveQueue(queue);\n\t\t\t}, (e) => {\n\t\t\t\tobj[webpackError] = e;\n\t\t\t\tresolveQueue(queue);\n\t\t\t});\n\t\t\tvar obj = {};\n\t\t\tobj[webpackQueues] = (fn) => (fn(queue));\n\t\t\treturn obj;\n\t\t}\n\t}\n\tvar ret = {};\n\tret[webpackQueues] = x => {};\n\tret[webpackExports] = dep;\n\treturn ret;\n}));\n__webpack_require__.a = (module, body, hasAwait) => {\n\tvar queue;\n\thasAwait && ((queue = []).d = -1);\n\tvar depQueues = new Set();\n\tvar exports = module.exports;\n\tvar currentDeps;\n\tvar outerResolve;\n\tvar reject;\n\tvar promise = new Promise((resolve, rej) => {\n\t\treject = rej;\n\t\touterResolve = resolve;\n\t});\n\tpromise[webpackExports] = exports;\n\tpromise[webpackQueues] = (fn) => (queue && fn(queue), depQueues.forEach(fn), promise[\"catch\"](x => {}));\n\tmodule.exports = promise;\n\tbody((deps) => {\n\t\tcurrentDeps = wrapDeps(deps);\n\t\tvar fn;\n\t\tvar getResult = () => (currentDeps.map((d) => {\n\t\t\tif(d[webpackError]) throw d[webpackError];\n\t\t\treturn d[webpackExports];\n\t\t}))\n\t\tvar promise = new Promise((resolve) => {\n\t\t\tfn = () => (resolve(getResult));\n\t\t\tfn.r = 0;\n\t\t\tvar fnQueue = (q) => (q !== queue && !depQueues.has(q) && (depQueues.add(q), q && !q.d && (fn.r++, q.push(fn))));\n\t\t\tcurrentDeps.map((dep) => (dep[webpackQueues](fnQueue)));\n\t\t});\n\t\treturn fn.r ? promise : getResult();\n\t}, (err) => ((err ? reject(promise[webpackError] = err) : outerResolve(exports)), resolveQueue(queue)));\n\tqueue && queue.d < 0 && (queue.d = 0);\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","\nif (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\\/\\/\\/\\w:/) ? 1 : 0, -1) + \"/\";","","// startup\n// Load entry module and return exports\n// This entry module used 'module' so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(261);\n",""],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"bootstrap-importer.mjs","mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;;;;;;;;;ACJA;AACA;AACA;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;;;;ACAA;AACA;;;;AEDA;AACA;AACA;AACA","sources":["../external module \"tsx/esm/api\"",".././packages/workers/importer/bootstrap-importer.mjs","../webpack/bootstrap","../webpack/runtime/async module","../webpack/runtime/define property getters","../webpack/runtime/hasOwnProperty shorthand","../webpack/runtime/compat","../webpack/before-startup","../webpack/startup","../webpack/after-startup"],"sourcesContent":["var x = (y) => {\n\tvar x = {}; __webpack_require__.d(x, y); return x\n} \nvar y = (x) => (() => (x))\nmodule.exports = x({ [\"tsImport\"]: () => (__WEBPACK_EXTERNAL_MODULE_tsx_esm_api_3a632928__.tsImport) });","import { tsImport } from \"tsx/esm/api\";\n\nawait tsImport(\"./index.ts\", import.meta.url);\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\tvar threw = true;\n\ttry {\n\t\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\t\tthrew = false;\n\t} finally {\n\t\tif(threw) delete __webpack_module_cache__[moduleId];\n\t}\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","var webpackQueues = typeof Symbol === \"function\" ? Symbol(\"webpack queues\") : \"__webpack_queues__\";\nvar webpackExports = typeof Symbol === \"function\" ? Symbol(\"webpack exports\") : \"__webpack_exports__\";\nvar webpackError = typeof Symbol === \"function\" ? Symbol(\"webpack error\") : \"__webpack_error__\";\nvar resolveQueue = (queue) => {\n\tif(queue && queue.d < 1) {\n\t\tqueue.d = 1;\n\t\tqueue.forEach((fn) => (fn.r--));\n\t\tqueue.forEach((fn) => (fn.r-- ? fn.r++ : fn()));\n\t}\n}\nvar wrapDeps = (deps) => (deps.map((dep) => {\n\tif(dep !== null && typeof dep === \"object\") {\n\t\tif(dep[webpackQueues]) return dep;\n\t\tif(dep.then) {\n\t\t\tvar queue = [];\n\t\t\tqueue.d = 0;\n\t\t\tdep.then((r) => {\n\t\t\t\tobj[webpackExports] = r;\n\t\t\t\tresolveQueue(queue);\n\t\t\t}, (e) => {\n\t\t\t\tobj[webpackError] = e;\n\t\t\t\tresolveQueue(queue);\n\t\t\t});\n\t\t\tvar obj = {};\n\t\t\tobj[webpackQueues] = (fn) => (fn(queue));\n\t\t\treturn obj;\n\t\t}\n\t}\n\tvar ret = {};\n\tret[webpackQueues] = x => {};\n\tret[webpackExports] = dep;\n\treturn ret;\n}));\n__webpack_require__.a = (module, body, hasAwait) => {\n\tvar queue;\n\thasAwait && ((queue = []).d = -1);\n\tvar depQueues = new Set();\n\tvar exports = module.exports;\n\tvar currentDeps;\n\tvar outerResolve;\n\tvar reject;\n\tvar promise = new Promise((resolve, rej) => {\n\t\treject = rej;\n\t\touterResolve = resolve;\n\t});\n\tpromise[webpackExports] = exports;\n\tpromise[webpackQueues] = (fn) => (queue && fn(queue), depQueues.forEach(fn), promise[\"catch\"](x => {}));\n\tmodule.exports = promise;\n\tbody((deps) => {\n\t\tcurrentDeps = wrapDeps(deps);\n\t\tvar fn;\n\t\tvar getResult = () => (currentDeps.map((d) => {\n\t\t\tif(d[webpackError]) throw d[webpackError];\n\t\t\treturn d[webpackExports];\n\t\t}))\n\t\tvar promise = new Promise((resolve) => {\n\t\t\tfn = () => (resolve(getResult));\n\t\t\tfn.r = 0;\n\t\t\tvar fnQueue = (q) => (q !== queue && !depQueues.has(q) && (depQueues.add(q), q && !q.d && (fn.r++, q.push(fn))));\n\t\t\tcurrentDeps.map((dep) => (dep[webpackQueues](fnQueue)));\n\t\t});\n\t\treturn fn.r ? promise : getResult();\n\t}, (err) => ((err ? reject(promise[webpackError] = err) : outerResolve(exports)), resolveQueue(queue)));\n\tqueue && queue.d < 0 && (queue.d = 0);\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","\nif (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\\/\\/\\/\\w:/) ? 1 : 0, -1) + \"/\";","","// startup\n// Load entry module and return exports\n// This entry module used 'module' so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(397);\n",""],"names":[],"sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap-network.mjs","mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;;;;;;;;;ACJA;AACA;AACA;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;;;;ACAA;AACA;;;;AEDA;AACA;AACA;AACA","sources":["../external module \"tsx/esm/api\"",".././workers/jam-network/bootstrap-network.mjs","../webpack/bootstrap","../webpack/runtime/async module","../webpack/runtime/define property getters","../webpack/runtime/hasOwnProperty shorthand","../webpack/runtime/compat","../webpack/before-startup","../webpack/startup","../webpack/after-startup"],"sourcesContent":["var x = (y) => {\n\tvar x = {}; __webpack_require__.d(x, y); return x\n} \nvar y = (x) => (() => (x))\nmodule.exports = x({ [\"tsImport\"]: () => (__WEBPACK_EXTERNAL_MODULE_tsx_esm_api_3a632928__.tsImport) });","import { tsImport } from \"tsx/esm/api\";\n\nawait tsImport(\"./index.ts\", import.meta.url);\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\tvar threw = true;\n\ttry {\n\t\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\t\tthrew = false;\n\t} finally {\n\t\tif(threw) delete __webpack_module_cache__[moduleId];\n\t}\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","var webpackQueues = typeof Symbol === \"function\" ? Symbol(\"webpack queues\") : \"__webpack_queues__\";\nvar webpackExports = typeof Symbol === \"function\" ? Symbol(\"webpack exports\") : \"__webpack_exports__\";\nvar webpackError = typeof Symbol === \"function\" ? Symbol(\"webpack error\") : \"__webpack_error__\";\nvar resolveQueue = (queue) => {\n\tif(queue && queue.d < 1) {\n\t\tqueue.d = 1;\n\t\tqueue.forEach((fn) => (fn.r--));\n\t\tqueue.forEach((fn) => (fn.r-- ? fn.r++ : fn()));\n\t}\n}\nvar wrapDeps = (deps) => (deps.map((dep) => {\n\tif(dep !== null && typeof dep === \"object\") {\n\t\tif(dep[webpackQueues]) return dep;\n\t\tif(dep.then) {\n\t\t\tvar queue = [];\n\t\t\tqueue.d = 0;\n\t\t\tdep.then((r) => {\n\t\t\t\tobj[webpackExports] = r;\n\t\t\t\tresolveQueue(queue);\n\t\t\t}, (e) => {\n\t\t\t\tobj[webpackError] = e;\n\t\t\t\tresolveQueue(queue);\n\t\t\t});\n\t\t\tvar obj = {};\n\t\t\tobj[webpackQueues] = (fn) => (fn(queue));\n\t\t\treturn obj;\n\t\t}\n\t}\n\tvar ret = {};\n\tret[webpackQueues] = x => {};\n\tret[webpackExports] = dep;\n\treturn ret;\n}));\n__webpack_require__.a = (module, body, hasAwait) => {\n\tvar queue;\n\thasAwait && ((queue = []).d = -1);\n\tvar depQueues = new Set();\n\tvar exports = module.exports;\n\tvar currentDeps;\n\tvar outerResolve;\n\tvar reject;\n\tvar promise = new Promise((resolve, rej) => {\n\t\treject = rej;\n\t\touterResolve = resolve;\n\t});\n\tpromise[webpackExports] = exports;\n\tpromise[webpackQueues] = (fn) => (queue && fn(queue), depQueues.forEach(fn), promise[\"catch\"](x => {}));\n\tmodule.exports = promise;\n\tbody((deps) => {\n\t\tcurrentDeps = wrapDeps(deps);\n\t\tvar fn;\n\t\tvar getResult = () => (currentDeps.map((d) => {\n\t\t\tif(d[webpackError]) throw d[webpackError];\n\t\t\treturn d[webpackExports];\n\t\t}))\n\t\tvar promise = new Promise((resolve) => {\n\t\t\tfn = () => (resolve(getResult));\n\t\t\tfn.r = 0;\n\t\t\tvar fnQueue = (q) => (q !== queue && !depQueues.has(q) && (depQueues.add(q), q && !q.d && (fn.r++, q.push(fn))));\n\t\t\tcurrentDeps.map((dep) => (dep[webpackQueues](fnQueue)));\n\t\t});\n\t\treturn fn.r ? promise : getResult();\n\t}, (err) => ((err ? reject(promise[webpackError] = err) : outerResolve(exports)), resolveQueue(queue)));\n\tqueue && queue.d < 0 && (queue.d = 0);\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","\nif (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\\/\\/\\/\\w:/) ? 1 : 0, -1) + \"/\";","","// startup\n// Load entry module and return exports\n// This entry module used 'module' so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(18);\n",""],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"bootstrap-network.mjs","mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;;;;;;;;;ACJA;AACA;AACA;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;;;;ACAA;AACA;;;;AEDA;AACA;AACA;AACA","sources":["../external module \"tsx/esm/api\"",".././packages/workers/jam-network/bootstrap-network.mjs","../webpack/bootstrap","../webpack/runtime/async module","../webpack/runtime/define property getters","../webpack/runtime/hasOwnProperty shorthand","../webpack/runtime/compat","../webpack/before-startup","../webpack/startup","../webpack/after-startup"],"sourcesContent":["var x = (y) => {\n\tvar x = {}; __webpack_require__.d(x, y); return x\n} \nvar y = (x) => (() => (x))\nmodule.exports = x({ [\"tsImport\"]: () => (__WEBPACK_EXTERNAL_MODULE_tsx_esm_api_3a632928__.tsImport) });","import { tsImport } from \"tsx/esm/api\";\n\nawait tsImport(\"./index.ts\", import.meta.url);\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\tvar threw = true;\n\ttry {\n\t\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\t\tthrew = false;\n\t} finally {\n\t\tif(threw) delete __webpack_module_cache__[moduleId];\n\t}\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","var webpackQueues = typeof Symbol === \"function\" ? Symbol(\"webpack queues\") : \"__webpack_queues__\";\nvar webpackExports = typeof Symbol === \"function\" ? Symbol(\"webpack exports\") : \"__webpack_exports__\";\nvar webpackError = typeof Symbol === \"function\" ? Symbol(\"webpack error\") : \"__webpack_error__\";\nvar resolveQueue = (queue) => {\n\tif(queue && queue.d < 1) {\n\t\tqueue.d = 1;\n\t\tqueue.forEach((fn) => (fn.r--));\n\t\tqueue.forEach((fn) => (fn.r-- ? fn.r++ : fn()));\n\t}\n}\nvar wrapDeps = (deps) => (deps.map((dep) => {\n\tif(dep !== null && typeof dep === \"object\") {\n\t\tif(dep[webpackQueues]) return dep;\n\t\tif(dep.then) {\n\t\t\tvar queue = [];\n\t\t\tqueue.d = 0;\n\t\t\tdep.then((r) => {\n\t\t\t\tobj[webpackExports] = r;\n\t\t\t\tresolveQueue(queue);\n\t\t\t}, (e) => {\n\t\t\t\tobj[webpackError] = e;\n\t\t\t\tresolveQueue(queue);\n\t\t\t});\n\t\t\tvar obj = {};\n\t\t\tobj[webpackQueues] = (fn) => (fn(queue));\n\t\t\treturn obj;\n\t\t}\n\t}\n\tvar ret = {};\n\tret[webpackQueues] = x => {};\n\tret[webpackExports] = dep;\n\treturn ret;\n}));\n__webpack_require__.a = (module, body, hasAwait) => {\n\tvar queue;\n\thasAwait && ((queue = []).d = -1);\n\tvar depQueues = new Set();\n\tvar exports = module.exports;\n\tvar currentDeps;\n\tvar outerResolve;\n\tvar reject;\n\tvar promise = new Promise((resolve, rej) => {\n\t\treject = rej;\n\t\touterResolve = resolve;\n\t});\n\tpromise[webpackExports] = exports;\n\tpromise[webpackQueues] = (fn) => (queue && fn(queue), depQueues.forEach(fn), promise[\"catch\"](x => {}));\n\tmodule.exports = promise;\n\tbody((deps) => {\n\t\tcurrentDeps = wrapDeps(deps);\n\t\tvar fn;\n\t\tvar getResult = () => (currentDeps.map((d) => {\n\t\t\tif(d[webpackError]) throw d[webpackError];\n\t\t\treturn d[webpackExports];\n\t\t}))\n\t\tvar promise = new Promise((resolve) => {\n\t\t\tfn = () => (resolve(getResult));\n\t\t\tfn.r = 0;\n\t\t\tvar fnQueue = (q) => (q !== queue && !depQueues.has(q) && (depQueues.add(q), q && !q.d && (fn.r++, q.push(fn))));\n\t\t\tcurrentDeps.map((dep) => (dep[webpackQueues](fnQueue)));\n\t\t});\n\t\treturn fn.r ? promise : getResult();\n\t}, (err) => ((err ? reject(promise[webpackError] = err) : outerResolve(exports)), resolveQueue(queue)));\n\tqueue && queue.d < 0 && (queue.d = 0);\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","\nif (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\\/\\/\\/\\w:/) ? 1 : 0, -1) + \"/\";","","// startup\n// Load entry module and return exports\n// This entry module used 'module' so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(42);\n",""],"names":[],"sourceRoot":""}
package/importer/index.js CHANGED
@@ -8396,6 +8396,45 @@ const assurancesExtrinsicCodec = codecWithContext((context) => {
8396
8396
  }, AssurancesExtrinsicBounds);
8397
8397
  });
8398
8398
 
8399
+ ;// CONCATENATED MODULE: ./packages/jam/block/common.ts
8400
+
8401
+
8402
+
8403
+
8404
+ /** Attempt to convert a number into `TimeSlot`. */
8405
+ const common_tryAsTimeSlot = (v) => opaque_asOpaqueType(numbers_tryAsU32(v));
8406
+ /** Attempt to convert a number into `ValidatorIndex`. */
8407
+ const tryAsValidatorIndex = (v) => opaque_asOpaqueType(numbers_tryAsU16(v));
8408
+ /** Attempt to convert a number into `ServiceId`. */
8409
+ const tryAsServiceId = (v) => opaque_asOpaqueType(numbers_tryAsU32(v));
8410
+ const common_tryAsServiceGas = (v) => opaque_asOpaqueType(numbers_tryAsU64(v));
8411
+ /** Attempt to convert a number into `CoreIndex`. */
8412
+ const common_tryAsCoreIndex = (v) => opaque_asOpaqueType(numbers_tryAsU16(v));
8413
+ /** Attempt to convert a number into `Epoch`. */
8414
+ const tryAsEpoch = (v) => asOpaqueType(tryAsU32(v));
8415
+ function tryAsPerValidator(array, spec) {
8416
+ debug_check `
8417
+ ${array.length === spec.validatorsCount}
8418
+ Invalid per-validator array length. Expected ${spec.validatorsCount}, got: ${array.length}
8419
+ `;
8420
+ return sized_array_asKnownSize(array);
8421
+ }
8422
+ const codecPerValidator = (val) => codecWithContext((context) => {
8423
+ return codecKnownSizeArray(val, {
8424
+ fixedLength: context.validatorsCount,
8425
+ });
8426
+ });
8427
+ function tryAsPerEpochBlock(array, spec) {
8428
+ debug_check `
8429
+ ${array.length === spec.epochLength}
8430
+ Invalid per-epoch-block array length. Expected ${spec.epochLength}, got: ${array.length}
8431
+ `;
8432
+ return sized_array_asKnownSize(array);
8433
+ }
8434
+ const codecPerEpochBlock = (val) => codecWithContext((context) => {
8435
+ return codecKnownSizeArray(val, { fixedLength: context.epochLength });
8436
+ });
8437
+
8399
8438
  ;// CONCATENATED MODULE: ./packages/jam/block/disputes.ts
8400
8439
 
8401
8440
 
@@ -8585,45 +8624,6 @@ class DisputesExtrinsic extends WithDebug {
8585
8624
  }
8586
8625
  }
8587
8626
 
8588
- ;// CONCATENATED MODULE: ./packages/jam/block/common.ts
8589
-
8590
-
8591
-
8592
-
8593
- /** Attempt to convert a number into `TimeSlot`. */
8594
- const tryAsTimeSlot = (v) => opaque_asOpaqueType(numbers_tryAsU32(v));
8595
- /** Attempt to convert a number into `ValidatorIndex`. */
8596
- const tryAsValidatorIndex = (v) => opaque_asOpaqueType(numbers_tryAsU16(v));
8597
- /** Attempt to convert a number into `ServiceId`. */
8598
- const tryAsServiceId = (v) => opaque_asOpaqueType(numbers_tryAsU32(v));
8599
- const common_tryAsServiceGas = (v) => opaque_asOpaqueType(numbers_tryAsU64(v));
8600
- /** Attempt to convert a number into `CoreIndex`. */
8601
- const common_tryAsCoreIndex = (v) => opaque_asOpaqueType(numbers_tryAsU16(v));
8602
- /** Attempt to convert a number into `Epoch`. */
8603
- const tryAsEpoch = (v) => asOpaqueType(tryAsU32(v));
8604
- function tryAsPerValidator(array, spec) {
8605
- debug_check `
8606
- ${array.length === spec.validatorsCount}
8607
- Invalid per-validator array length. Expected ${spec.validatorsCount}, got: ${array.length}
8608
- `;
8609
- return sized_array_asKnownSize(array);
8610
- }
8611
- const codecPerValidator = (val) => codecWithContext((context) => {
8612
- return codecKnownSizeArray(val, {
8613
- fixedLength: context.validatorsCount,
8614
- });
8615
- });
8616
- function tryAsPerEpochBlock(array, spec) {
8617
- debug_check `
8618
- ${array.length === spec.epochLength}
8619
- Invalid per-epoch-block array length. Expected ${spec.epochLength}, got: ${array.length}
8620
- `;
8621
- return sized_array_asKnownSize(array);
8622
- }
8623
- const codecPerEpochBlock = (val) => codecWithContext((context) => {
8624
- return codecKnownSizeArray(val, { fixedLength: context.epochLength });
8625
- });
8626
-
8627
8627
  ;// CONCATENATED MODULE: ./packages/jam/block/refine-context.ts
8628
8628
 
8629
8629
 
@@ -9522,8 +9522,8 @@ const legacyDescriptor = {
9522
9522
  *
9523
9523
  * https://graypaper.fluffylabs.dev/#/579bd12/0c66000c7200
9524
9524
  */
9525
- class Header extends WithDebug {
9526
- static Codec = descriptors_codec.Class(Header, Compatibility.isLessThan(GpVersion.V0_7_0)
9525
+ class header_Header extends WithDebug {
9526
+ static Codec = descriptors_codec.Class(header_Header, Compatibility.isLessThan(GpVersion.V0_7_0)
9527
9527
  ? legacyDescriptor
9528
9528
  : {
9529
9529
  parentHeaderHash: descriptors_codec.bytes(hash_HASH_SIZE).asOpaque(),
@@ -9538,7 +9538,7 @@ class Header extends WithDebug {
9538
9538
  seal: descriptors_codec.bytes(BANDERSNATCH_VRF_SIGNATURE_BYTES).asOpaque(),
9539
9539
  });
9540
9540
  static create(h) {
9541
- return Object.assign(Header.empty(), h);
9541
+ return Object.assign(header_Header.empty(), h);
9542
9542
  }
9543
9543
  /**
9544
9544
  * `H_p`: Hash of the parent header.
@@ -9551,7 +9551,7 @@ class Header extends WithDebug {
9551
9551
  /** `H_x`: The hash of block extrinsic. */
9552
9552
  extrinsicHash = bytes_Bytes.zero(hash_HASH_SIZE).asOpaque();
9553
9553
  /** `H_t`: JAM time-slot index. */
9554
- timeSlotIndex = tryAsTimeSlot(0);
9554
+ timeSlotIndex = common_tryAsTimeSlot(0);
9555
9555
  /**
9556
9556
  * `H_e`: Key and entropy relevant to the following epoch in case the ticket
9557
9557
  * contest does not complete adequately.
@@ -9579,7 +9579,7 @@ class Header extends WithDebug {
9579
9579
  }
9580
9580
  /** Create an empty header with some dummy values. */
9581
9581
  static empty() {
9582
- return new Header();
9582
+ return new header_Header();
9583
9583
  }
9584
9584
  }
9585
9585
  /**
@@ -9592,7 +9592,7 @@ class Header extends WithDebug {
9592
9592
  class HeaderViewWithHash extends WithHash {
9593
9593
  static Codec = descriptors_codec.Class(HeaderViewWithHash, {
9594
9594
  hash: descriptors_codec.bytes(hash_HASH_SIZE).asOpaque(),
9595
- data: Header.Codec.View,
9595
+ data: header_Header.Codec.View,
9596
9596
  });
9597
9597
  static create({ hash, data }) {
9598
9598
  return new WithHash(hash, data);
@@ -9640,6 +9640,8 @@ const preimagesExtrinsicCodec = descriptors_codec.sequenceVarLen(Preimage.Codec)
9640
9640
 
9641
9641
 
9642
9642
 
9643
+
9644
+
9643
9645
  /**
9644
9646
  * Extrinsic part of the block - the input data being external to the system.
9645
9647
  *
@@ -9707,7 +9709,7 @@ class Block extends WithDebug {
9707
9709
  header;
9708
9710
  extrinsic;
9709
9711
  static Codec = descriptors_codec.Class(Block, {
9710
- header: Header.Codec,
9712
+ header: header_Header.Codec,
9711
9713
  extrinsic: Extrinsic.Codec,
9712
9714
  });
9713
9715
  static create({ header, extrinsic }) {
@@ -9723,6 +9725,24 @@ class Block extends WithDebug {
9723
9725
  this.extrinsic = extrinsic;
9724
9726
  }
9725
9727
  }
9728
+ function emptyBlock(slot = tryAsTimeSlot(0)) {
9729
+ const header = Header.empty();
9730
+ header.timeSlotIndex = slot;
9731
+ return Block.create({
9732
+ header,
9733
+ extrinsic: Extrinsic.create({
9734
+ tickets: asKnownSize([]),
9735
+ preimages: [],
9736
+ assurances: asKnownSize([]),
9737
+ guarantees: asKnownSize([]),
9738
+ disputes: {
9739
+ verdicts: [],
9740
+ culprits: [],
9741
+ faults: [],
9742
+ },
9743
+ }),
9744
+ });
9745
+ }
9726
9746
 
9727
9747
  ;// CONCATENATED MODULE: ./packages/jam/block/index.ts
9728
9748
 
@@ -9804,7 +9824,7 @@ class LmdbBlocks {
9804
9824
  if (data === undefined) {
9805
9825
  return null;
9806
9826
  }
9807
- return decoder_Decoder.decodeObject(Header.Codec.View, data, this.chainSpec);
9827
+ return decoder_Decoder.decodeObject(header_Header.Codec.View, data, this.chainSpec);
9808
9828
  }
9809
9829
  getExtrinsic(hash) {
9810
9830
  const data = this.extrinsics.get(hash.raw);
@@ -10646,8 +10666,8 @@ class ServiceAccountInfo extends WithDebug {
10646
10666
  storageUtilisationBytes: descriptors_codec.u64,
10647
10667
  gratisStorage: descriptors_codec.u64,
10648
10668
  storageUtilisationCount: descriptors_codec.u32,
10649
- created: descriptors_codec.u32.convert((x) => x, tryAsTimeSlot),
10650
- lastAccumulation: descriptors_codec.u32.convert((x) => x, tryAsTimeSlot),
10669
+ created: descriptors_codec.u32.convert((x) => x, common_tryAsTimeSlot),
10670
+ lastAccumulation: descriptors_codec.u32.convert((x) => x, common_tryAsTimeSlot),
10651
10671
  parentService: descriptors_codec.u32.convert((x) => x, tryAsServiceId),
10652
10672
  });
10653
10673
  static create(a) {
@@ -11585,7 +11605,7 @@ class InMemoryState extends WithDebug {
11585
11605
  wonkySet: SortedSet.fromSortedArray(hashComparator, []),
11586
11606
  punishSet: SortedSet.fromSortedArray(hashComparator, []),
11587
11607
  }),
11588
- timeslot: tryAsTimeSlot(0),
11608
+ timeslot: common_tryAsTimeSlot(0),
11589
11609
  entropy: sized_array_FixedSizeArray.fill(() => bytes_Bytes.zero(hash_HASH_SIZE).asOpaque(), ENTROPY_ENTRIES),
11590
11610
  authPools: tryAsPerCore(Array.from({ length: spec.coresCount }, () => sized_array_asKnownSize([])), spec),
11591
11611
  authQueues: tryAsPerCore(Array.from({ length: spec.coresCount }, () => sized_array_FixedSizeArray.fill(() => bytes_Bytes.zero(hash_HASH_SIZE).asOpaque(), AUTHORIZATION_QUEUE_SIZE)), spec),
@@ -12016,7 +12036,7 @@ class SerializedService {
12016
12036
  if (rawSlots === undefined) {
12017
12037
  return null;
12018
12038
  }
12019
- return tryAsLookupHistorySlots(rawSlots.map(tryAsTimeSlot));
12039
+ return tryAsLookupHistorySlots(rawSlots.map(common_tryAsTimeSlot));
12020
12040
  }
12021
12041
  }
12022
12042
 
@@ -15939,6 +15959,17 @@ class PageRange {
15939
15959
  }
15940
15960
  return new PageRange(start, length);
15941
15961
  }
15962
+ /** Returns true if the page range is wrapped (`start` >= `end`) and is not empty */
15963
+ isWrapped() {
15964
+ return this.start >= this.end && !this.isEmpty();
15965
+ }
15966
+ /** Checks if given page number is within the range */
15967
+ isInRange(page) {
15968
+ if (this.isWrapped()) {
15969
+ return page >= this.start || page < this.end;
15970
+ }
15971
+ return page >= this.start && page < this.end;
15972
+ }
15942
15973
  /** Checks if a range is empty (`length === 0`) */
15943
15974
  isEmpty() {
15944
15975
  return this.length === 0;
@@ -16318,10 +16349,11 @@ class MemoryBuilder {
16318
16349
  startHeapIndex (${startHeapIndex}) has to be less than or equal to endHeapIndex (${endHeapIndex})
16319
16350
  `;
16320
16351
  this.ensureNotFinalized();
16321
- const range = MemoryRange.fromStartAndLength(startHeapIndex, endHeapIndex - startHeapIndex);
16322
- const pages = PageRange.fromMemoryRange(range);
16323
- for (const pageNumber of pages) {
16324
- if (this.initialMemory.has(pageNumber)) {
16352
+ const heapRange = MemoryRange.fromStartAndLength(startHeapIndex, endHeapIndex - startHeapIndex);
16353
+ const heapPagesRange = PageRange.fromMemoryRange(heapRange);
16354
+ const initializedPageNumbers = Array.from(this.initialMemory.keys());
16355
+ for (const pageNumber of initializedPageNumbers) {
16356
+ if (heapPagesRange.isInRange(pageNumber)) {
16325
16357
  throw new IncorrectSbrkIndex();
16326
16358
  }
16327
16359
  }
@@ -20936,7 +20968,7 @@ class AccumulateExternalities {
20936
20968
  storageUtilisationCount: items,
20937
20969
  gratisStorage,
20938
20970
  created: this.currentTimeslot,
20939
- lastAccumulation: tryAsTimeSlot(0),
20971
+ lastAccumulation: common_tryAsTimeSlot(0),
20940
20972
  parentService: this.currentServiceId,
20941
20973
  }),
20942
20974
  lookupHistory: new LookupHistoryItem(codeHash.asOpaque(), clampedLength, tryAsLookupHistorySlots([])),
@@ -22856,8 +22888,8 @@ const codecServiceAccountInfoWithThresholdBalance = descriptors_codec.object({
22856
22888
  storageUtilisationBytes: descriptors_codec.u64,
22857
22889
  storageUtilisationCount: descriptors_codec.u32,
22858
22890
  gratisStorage: descriptors_codec.u64,
22859
- created: descriptors_codec.u32.convert((x) => x, tryAsTimeSlot),
22860
- lastAccumulation: descriptors_codec.u32.convert((x) => x, tryAsTimeSlot),
22891
+ created: descriptors_codec.u32.convert((x) => x, common_tryAsTimeSlot),
22892
+ lastAccumulation: descriptors_codec.u32.convert((x) => x, common_tryAsTimeSlot),
22861
22893
  parentService: descriptors_codec.u32.convert((x) => x, tryAsServiceId),
22862
22894
  }, "ServiceAccountInfoWithThresholdBalance");
22863
22895
 
@@ -24013,7 +24045,7 @@ function rotationIndex(slot, rotationPeriod) {
24013
24045
  }
24014
24046
  /** https://graypaper.fluffylabs.dev/#/5f542d7/14c00114c001 */
24015
24047
  function permute(entropy, slot, spec) {
24016
- const shift = rotationIndex(tryAsTimeSlot(slot % spec.epochLength), spec.rotationPeriod);
24048
+ const shift = rotationIndex(common_tryAsTimeSlot(slot % spec.epochLength), spec.rotationPeriod);
24017
24049
  const initialAssignment = Array(spec.validatorsCount)
24018
24050
  .fill(0)
24019
24051
  .map((_v, i) => {
@@ -24624,7 +24656,7 @@ class Reports {
24624
24656
  if (headerRotation > guaranteeRotation) {
24625
24657
  // we can safely subtract here, because if `guaranteeRotation` is less
24626
24658
  // than header rotation it must be greater than the `rotationPeriod`.
24627
- timeSlot = tryAsTimeSlot(headerTimeSlot - rotationPeriod);
24659
+ timeSlot = common_tryAsTimeSlot(headerTimeSlot - rotationPeriod);
24628
24660
  // if the epoch changed, we need to take previous entropy and previous validator data.
24629
24661
  if (isPreviousRotationPreviousEpoch(timeSlot, headerTimeSlot, epochLength)) {
24630
24662
  entropy = newEntropy[3];
@@ -25207,7 +25239,7 @@ function checkOffendersMatch(offendersMark, headerOffendersMark) {
25207
25239
  return result_Result.ok(result_OK);
25208
25240
  }
25209
25241
 
25210
- ;// CONCATENATED MODULE: ./workers/importer/importer.ts
25242
+ ;// CONCATENATED MODULE: ./packages/workers/importer/importer.ts
25211
25243
 
25212
25244
 
25213
25245
 
@@ -25346,11 +25378,11 @@ function extractTimeSlot(block) {
25346
25378
  return block.header.view().timeSlotIndex.materialize();
25347
25379
  }
25348
25380
  catch {
25349
- return tryAsTimeSlot(2 ** 32 - 1);
25381
+ return common_tryAsTimeSlot(2 ** 32 - 1);
25350
25382
  }
25351
25383
  }
25352
25384
 
25353
- ;// CONCATENATED MODULE: ./workers/generic/finished.ts
25385
+ ;// CONCATENATED MODULE: ./packages/workers/generic/finished.ts
25354
25386
 
25355
25387
  class finished_Finished extends State {
25356
25388
  constructor() {
@@ -25366,7 +25398,7 @@ class finished_Finished extends State {
25366
25398
  }
25367
25399
  }
25368
25400
 
25369
- ;// CONCATENATED MODULE: ./workers/generic/main-init.ts
25401
+ ;// CONCATENATED MODULE: ./packages/workers/generic/main-init.ts
25370
25402
 
25371
25403
 
25372
25404
  function main_init_stateMachineMain(name, readyName, ready) {
@@ -25389,7 +25421,7 @@ class MainInit extends State {
25389
25421
  }
25390
25422
  }
25391
25423
 
25392
- ;// CONCATENATED MODULE: ./workers/generic/worker-init.ts
25424
+ ;// CONCATENATED MODULE: ./packages/workers/generic/worker-init.ts
25393
25425
 
25394
25426
  class WorkerInit extends State {
25395
25427
  workerReadyName;
@@ -25411,7 +25443,7 @@ class WorkerInit extends State {
25411
25443
  }
25412
25444
  }
25413
25445
 
25414
- ;// CONCATENATED MODULE: ./workers/generic/worker-spawn.ts
25446
+ ;// CONCATENATED MODULE: ./packages/workers/generic/worker-spawn.ts
25415
25447
 
25416
25448
 
25417
25449
 
@@ -25423,13 +25455,13 @@ async function spawnWorkerGeneric(bootstrapPath, logger, mainReadyName, mainRead
25423
25455
  return channel;
25424
25456
  }
25425
25457
 
25426
- ;// CONCATENATED MODULE: ./workers/generic/index.ts
25458
+ ;// CONCATENATED MODULE: ./packages/workers/generic/index.ts
25427
25459
 
25428
25460
 
25429
25461
 
25430
25462
 
25431
25463
 
25432
- ;// CONCATENATED MODULE: ./workers/importer/state-machine.ts
25464
+ ;// CONCATENATED MODULE: ./packages/workers/importer/state-machine.ts
25433
25465
 
25434
25466
 
25435
25467
 
@@ -25667,7 +25699,7 @@ class ImporterReady extends State {
25667
25699
  }
25668
25700
  }
25669
25701
 
25670
- ;// CONCATENATED MODULE: ./workers/importer/index.ts
25702
+ ;// CONCATENATED MODULE: ./packages/workers/importer/index.ts
25671
25703
 
25672
25704
 
25673
25705