@typeberry/jam 0.1.2-7ebe1f6 → 0.1.2-8c85275

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\"",".././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
+ {"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 +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\"",".././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
+ {"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 +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\"",".././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":""}
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":""}
package/importer/index.js CHANGED
@@ -4245,7 +4245,6 @@ var GpVersion;
4245
4245
  GpVersion["V0_6_7"] = "0.6.7";
4246
4246
  GpVersion["V0_7_0"] = "0.7.0";
4247
4247
  GpVersion["V0_7_1"] = "0.7.1-preview";
4248
- GpVersion["V0_7_2"] = "0.7.2-preview";
4249
4248
  })(GpVersion || (GpVersion = {}));
4250
4249
  var TestSuite;
4251
4250
  (function (TestSuite) {
@@ -4253,7 +4252,7 @@ var TestSuite;
4253
4252
  TestSuite["JAMDUNA"] = "jamduna";
4254
4253
  })(TestSuite || (TestSuite = {}));
4255
4254
  const DEFAULT_SUITE = TestSuite.W3F_DAVXY;
4256
- const ALL_VERSIONS_IN_ORDER = [GpVersion.V0_6_7, GpVersion.V0_7_0, GpVersion.V0_7_1, GpVersion.V0_7_2];
4255
+ const ALL_VERSIONS_IN_ORDER = [GpVersion.V0_6_7, GpVersion.V0_7_0, GpVersion.V0_7_1];
4257
4256
  const env = typeof process === "undefined" ? {} : process.env;
4258
4257
  const DEFAULT_VERSION = GpVersion.V0_7_0;
4259
4258
  let CURRENT_VERSION = parseCurrentVersion(env.GP_VERSION) ?? DEFAULT_VERSION;
@@ -4262,26 +4261,20 @@ function parseCurrentVersion(env) {
4262
4261
  if (env === undefined) {
4263
4262
  return undefined;
4264
4263
  }
4265
- switch (env) {
4266
- case GpVersion.V0_6_7:
4267
- case GpVersion.V0_7_0:
4268
- case GpVersion.V0_7_1:
4269
- case GpVersion.V0_7_2:
4270
- return env;
4271
- default:
4272
- throw new Error(`Configured environment variable GP_VERSION is unknown: '${env}'. Use one of: ${ALL_VERSIONS_IN_ORDER}`);
4264
+ const version = env;
4265
+ if (!Object.values(GpVersion).includes(version)) {
4266
+ throw new Error(`Configured environment variable GP_VERSION is unknown: '${env}'. Use one of: ${ALL_VERSIONS_IN_ORDER}`);
4273
4267
  }
4268
+ return version;
4274
4269
  }
4275
4270
  function parseCurrentSuite(env) {
4276
4271
  if (env === undefined)
4277
4272
  return undefined;
4278
- switch (env) {
4279
- case TestSuite.W3F_DAVXY:
4280
- case TestSuite.JAMDUNA:
4281
- return env;
4282
- default:
4283
- throw new Error(`Configured environment variable TEST_SUITE is unknown: '${env}'. Use one of: ${Object.values(TestSuite)}`);
4273
+ const val = env;
4274
+ if (!Object.values(TestSuite).includes(val)) {
4275
+ throw new Error(`Configured environment variable TEST_SUITE is unknown: '${env}'. Use one of: ${Object.values(TestSuite)}`);
4284
4276
  }
4277
+ return val;
4285
4278
  }
4286
4279
  class Compatibility {
4287
4280
  static override(version) {
@@ -8396,45 +8389,6 @@ const assurancesExtrinsicCodec = codecWithContext((context) => {
8396
8389
  }, AssurancesExtrinsicBounds);
8397
8390
  });
8398
8391
 
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
-
8438
8392
  ;// CONCATENATED MODULE: ./packages/jam/block/disputes.ts
8439
8393
 
8440
8394
 
@@ -8624,6 +8578,45 @@ class DisputesExtrinsic extends WithDebug {
8624
8578
  }
8625
8579
  }
8626
8580
 
8581
+ ;// CONCATENATED MODULE: ./packages/jam/block/common.ts
8582
+
8583
+
8584
+
8585
+
8586
+ /** Attempt to convert a number into `TimeSlot`. */
8587
+ const tryAsTimeSlot = (v) => opaque_asOpaqueType(numbers_tryAsU32(v));
8588
+ /** Attempt to convert a number into `ValidatorIndex`. */
8589
+ const tryAsValidatorIndex = (v) => opaque_asOpaqueType(numbers_tryAsU16(v));
8590
+ /** Attempt to convert a number into `ServiceId`. */
8591
+ const tryAsServiceId = (v) => opaque_asOpaqueType(numbers_tryAsU32(v));
8592
+ const common_tryAsServiceGas = (v) => opaque_asOpaqueType(numbers_tryAsU64(v));
8593
+ /** Attempt to convert a number into `CoreIndex`. */
8594
+ const common_tryAsCoreIndex = (v) => opaque_asOpaqueType(numbers_tryAsU16(v));
8595
+ /** Attempt to convert a number into `Epoch`. */
8596
+ const tryAsEpoch = (v) => asOpaqueType(tryAsU32(v));
8597
+ function tryAsPerValidator(array, spec) {
8598
+ debug_check `
8599
+ ${array.length === spec.validatorsCount}
8600
+ Invalid per-validator array length. Expected ${spec.validatorsCount}, got: ${array.length}
8601
+ `;
8602
+ return sized_array_asKnownSize(array);
8603
+ }
8604
+ const codecPerValidator = (val) => codecWithContext((context) => {
8605
+ return codecKnownSizeArray(val, {
8606
+ fixedLength: context.validatorsCount,
8607
+ });
8608
+ });
8609
+ function tryAsPerEpochBlock(array, spec) {
8610
+ debug_check `
8611
+ ${array.length === spec.epochLength}
8612
+ Invalid per-epoch-block array length. Expected ${spec.epochLength}, got: ${array.length}
8613
+ `;
8614
+ return sized_array_asKnownSize(array);
8615
+ }
8616
+ const codecPerEpochBlock = (val) => codecWithContext((context) => {
8617
+ return codecKnownSizeArray(val, { fixedLength: context.epochLength });
8618
+ });
8619
+
8627
8620
  ;// CONCATENATED MODULE: ./packages/jam/block/refine-context.ts
8628
8621
 
8629
8622
 
@@ -9522,8 +9515,8 @@ const legacyDescriptor = {
9522
9515
  *
9523
9516
  * https://graypaper.fluffylabs.dev/#/579bd12/0c66000c7200
9524
9517
  */
9525
- class header_Header extends WithDebug {
9526
- static Codec = descriptors_codec.Class(header_Header, Compatibility.isLessThan(GpVersion.V0_7_0)
9518
+ class Header extends WithDebug {
9519
+ static Codec = descriptors_codec.Class(Header, Compatibility.isLessThan(GpVersion.V0_7_0)
9527
9520
  ? legacyDescriptor
9528
9521
  : {
9529
9522
  parentHeaderHash: descriptors_codec.bytes(hash_HASH_SIZE).asOpaque(),
@@ -9538,7 +9531,7 @@ class header_Header extends WithDebug {
9538
9531
  seal: descriptors_codec.bytes(BANDERSNATCH_VRF_SIGNATURE_BYTES).asOpaque(),
9539
9532
  });
9540
9533
  static create(h) {
9541
- return Object.assign(header_Header.empty(), h);
9534
+ return Object.assign(Header.empty(), h);
9542
9535
  }
9543
9536
  /**
9544
9537
  * `H_p`: Hash of the parent header.
@@ -9551,7 +9544,7 @@ class header_Header extends WithDebug {
9551
9544
  /** `H_x`: The hash of block extrinsic. */
9552
9545
  extrinsicHash = bytes_Bytes.zero(hash_HASH_SIZE).asOpaque();
9553
9546
  /** `H_t`: JAM time-slot index. */
9554
- timeSlotIndex = common_tryAsTimeSlot(0);
9547
+ timeSlotIndex = tryAsTimeSlot(0);
9555
9548
  /**
9556
9549
  * `H_e`: Key and entropy relevant to the following epoch in case the ticket
9557
9550
  * contest does not complete adequately.
@@ -9579,7 +9572,7 @@ class header_Header extends WithDebug {
9579
9572
  }
9580
9573
  /** Create an empty header with some dummy values. */
9581
9574
  static empty() {
9582
- return new header_Header();
9575
+ return new Header();
9583
9576
  }
9584
9577
  }
9585
9578
  /**
@@ -9592,7 +9585,7 @@ class header_Header extends WithDebug {
9592
9585
  class HeaderViewWithHash extends WithHash {
9593
9586
  static Codec = descriptors_codec.Class(HeaderViewWithHash, {
9594
9587
  hash: descriptors_codec.bytes(hash_HASH_SIZE).asOpaque(),
9595
- data: header_Header.Codec.View,
9588
+ data: Header.Codec.View,
9596
9589
  });
9597
9590
  static create({ hash, data }) {
9598
9591
  return new WithHash(hash, data);
@@ -9640,8 +9633,6 @@ const preimagesExtrinsicCodec = descriptors_codec.sequenceVarLen(Preimage.Codec)
9640
9633
 
9641
9634
 
9642
9635
 
9643
-
9644
-
9645
9636
  /**
9646
9637
  * Extrinsic part of the block - the input data being external to the system.
9647
9638
  *
@@ -9709,7 +9700,7 @@ class Block extends WithDebug {
9709
9700
  header;
9710
9701
  extrinsic;
9711
9702
  static Codec = descriptors_codec.Class(Block, {
9712
- header: header_Header.Codec,
9703
+ header: Header.Codec,
9713
9704
  extrinsic: Extrinsic.Codec,
9714
9705
  });
9715
9706
  static create({ header, extrinsic }) {
@@ -9725,24 +9716,6 @@ class Block extends WithDebug {
9725
9716
  this.extrinsic = extrinsic;
9726
9717
  }
9727
9718
  }
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
- }
9746
9719
 
9747
9720
  ;// CONCATENATED MODULE: ./packages/jam/block/index.ts
9748
9721
 
@@ -9824,7 +9797,7 @@ class LmdbBlocks {
9824
9797
  if (data === undefined) {
9825
9798
  return null;
9826
9799
  }
9827
- return decoder_Decoder.decodeObject(header_Header.Codec.View, data, this.chainSpec);
9800
+ return decoder_Decoder.decodeObject(Header.Codec.View, data, this.chainSpec);
9828
9801
  }
9829
9802
  getExtrinsic(hash) {
9830
9803
  const data = this.extrinsics.get(hash.raw);
@@ -10666,8 +10639,8 @@ class ServiceAccountInfo extends WithDebug {
10666
10639
  storageUtilisationBytes: descriptors_codec.u64,
10667
10640
  gratisStorage: descriptors_codec.u64,
10668
10641
  storageUtilisationCount: descriptors_codec.u32,
10669
- created: descriptors_codec.u32.convert((x) => x, common_tryAsTimeSlot),
10670
- lastAccumulation: descriptors_codec.u32.convert((x) => x, common_tryAsTimeSlot),
10642
+ created: descriptors_codec.u32.convert((x) => x, tryAsTimeSlot),
10643
+ lastAccumulation: descriptors_codec.u32.convert((x) => x, tryAsTimeSlot),
10671
10644
  parentService: descriptors_codec.u32.convert((x) => x, tryAsServiceId),
10672
10645
  });
10673
10646
  static create(a) {
@@ -11605,7 +11578,7 @@ class InMemoryState extends WithDebug {
11605
11578
  wonkySet: SortedSet.fromSortedArray(hashComparator, []),
11606
11579
  punishSet: SortedSet.fromSortedArray(hashComparator, []),
11607
11580
  }),
11608
- timeslot: common_tryAsTimeSlot(0),
11581
+ timeslot: tryAsTimeSlot(0),
11609
11582
  entropy: sized_array_FixedSizeArray.fill(() => bytes_Bytes.zero(hash_HASH_SIZE).asOpaque(), ENTROPY_ENTRIES),
11610
11583
  authPools: tryAsPerCore(Array.from({ length: spec.coresCount }, () => sized_array_asKnownSize([])), spec),
11611
11584
  authQueues: tryAsPerCore(Array.from({ length: spec.coresCount }, () => sized_array_FixedSizeArray.fill(() => bytes_Bytes.zero(hash_HASH_SIZE).asOpaque(), AUTHORIZATION_QUEUE_SIZE)), spec),
@@ -12036,7 +12009,7 @@ class SerializedService {
12036
12009
  if (rawSlots === undefined) {
12037
12010
  return null;
12038
12011
  }
12039
- return tryAsLookupHistorySlots(rawSlots.map(common_tryAsTimeSlot));
12012
+ return tryAsLookupHistorySlots(rawSlots.map(tryAsTimeSlot));
12040
12013
  }
12041
12014
  }
12042
12015
 
@@ -13433,8 +13406,8 @@ function print(level, levelAndName, strings, data) {
13433
13406
  return;
13434
13407
  }
13435
13408
  const lvlText = Level[level].padEnd(5);
13436
- const val = strings.map((v, idx) => `${v}${idx < data.length ? data[idx] : ""}`);
13437
- const msg = `${lvlText} [${levelAndName[1]}] ${val.join("")}`;
13409
+ const val = strings.map((v, idx) => `${v}${data[idx]}`);
13410
+ const msg = `${lvlText} [${levelAndName[1]}] ${val}`;
13438
13411
  if (level === Level.WARN) {
13439
13412
  console.warn(msg);
13440
13413
  }
@@ -15959,17 +15932,6 @@ class PageRange {
15959
15932
  }
15960
15933
  return new PageRange(start, length);
15961
15934
  }
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
- }
15973
15935
  /** Checks if a range is empty (`length === 0`) */
15974
15936
  isEmpty() {
15975
15937
  return this.length === 0;
@@ -16349,11 +16311,10 @@ class MemoryBuilder {
16349
16311
  startHeapIndex (${startHeapIndex}) has to be less than or equal to endHeapIndex (${endHeapIndex})
16350
16312
  `;
16351
16313
  this.ensureNotFinalized();
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)) {
16314
+ const range = MemoryRange.fromStartAndLength(startHeapIndex, endHeapIndex - startHeapIndex);
16315
+ const pages = PageRange.fromMemoryRange(range);
16316
+ for (const pageNumber of pages) {
16317
+ if (this.initialMemory.has(pageNumber)) {
16357
16318
  throw new IncorrectSbrkIndex();
16358
16319
  }
16359
16320
  }
@@ -20968,7 +20929,7 @@ class AccumulateExternalities {
20968
20929
  storageUtilisationCount: items,
20969
20930
  gratisStorage,
20970
20931
  created: this.currentTimeslot,
20971
- lastAccumulation: common_tryAsTimeSlot(0),
20932
+ lastAccumulation: tryAsTimeSlot(0),
20972
20933
  parentService: this.currentServiceId,
20973
20934
  }),
20974
20935
  lookupHistory: new LookupHistoryItem(codeHash.asOpaque(), clampedLength, tryAsLookupHistorySlots([])),
@@ -22808,8 +22769,8 @@ var FetchKind;
22808
22769
 
22809
22770
 
22810
22771
  const info_IN_OUT_REG = 7;
22811
- const OFFSET_REG = Compatibility.isSuite(TestSuite.W3F_DAVXY) || Compatibility.isGreaterOrEqual(GpVersion.V0_7_2) ? 9 : 11;
22812
- const LEN_REG = Compatibility.isSuite(TestSuite.W3F_DAVXY) || Compatibility.isGreaterOrEqual(GpVersion.V0_7_2) ? 10 : 12;
22772
+ const OFFSET_REG = Compatibility.isSuite(TestSuite.W3F_DAVXY) ? 9 : 11;
22773
+ const LEN_REG = Compatibility.isSuite(TestSuite.W3F_DAVXY) ? 10 : 12;
22813
22774
  /**
22814
22775
  * Return info about some account.
22815
22776
  *
@@ -22826,7 +22787,7 @@ const LEN_REG = Compatibility.isSuite(TestSuite.W3F_DAVXY) || Compatibility.isGr
22826
22787
  * a = last accumulation timeslot
22827
22788
  * p = parent service
22828
22789
  *
22829
- * https://graypaper.fluffylabs.dev/#/ab2cdbd/333b00333b00?v=0.7.2
22790
+ * https://graypaper.fluffylabs.dev/#/38c4e62/338302338302?v=0.7.0
22830
22791
  */
22831
22792
  class Info {
22832
22793
  currentServiceId;
@@ -22856,8 +22817,6 @@ class Info {
22856
22817
  const offset = minU64(regs.get(OFFSET_REG), valueLength);
22857
22818
  // l
22858
22819
  const length = minU64(regs.get(LEN_REG), numbers_tryAsU64(valueLength - offset));
22859
- // NOTE: casting to `Number` is safe in both places, since we are always bounded
22860
- // by the actual `encodedInfo.length`, which is equal `96`.
22861
22820
  const chunk = encodedInfo.raw.subarray(Number(offset), Number(offset + length));
22862
22821
  const writeResult = memory.storeFrom(outputStart, chunk);
22863
22822
  if (writeResult.isError) {
@@ -22877,7 +22836,7 @@ class Info {
22877
22836
  *
22878
22837
  * Used exclusively by `info` host call.
22879
22838
  *
22880
- * https://graypaper.fluffylabs.dev/#/ab2cdbd/33920033b500?v=0.7.2
22839
+ * https://graypaper.fluffylabs.dev/#/7e6ff6a/337602337602?v=0.6.7
22881
22840
  */
22882
22841
  const codecServiceAccountInfoWithThresholdBalance = descriptors_codec.object({
22883
22842
  codeHash: descriptors_codec.bytes(hash_HASH_SIZE),
@@ -22888,8 +22847,8 @@ const codecServiceAccountInfoWithThresholdBalance = descriptors_codec.object({
22888
22847
  storageUtilisationBytes: descriptors_codec.u64,
22889
22848
  storageUtilisationCount: descriptors_codec.u32,
22890
22849
  gratisStorage: descriptors_codec.u64,
22891
- created: descriptors_codec.u32.convert((x) => x, common_tryAsTimeSlot),
22892
- lastAccumulation: descriptors_codec.u32.convert((x) => x, common_tryAsTimeSlot),
22850
+ created: descriptors_codec.u32.convert((x) => x, tryAsTimeSlot),
22851
+ lastAccumulation: descriptors_codec.u32.convert((x) => x, tryAsTimeSlot),
22893
22852
  parentService: descriptors_codec.u32.convert((x) => x, tryAsServiceId),
22894
22853
  }, "ServiceAccountInfoWithThresholdBalance");
22895
22854
 
@@ -24045,7 +24004,7 @@ function rotationIndex(slot, rotationPeriod) {
24045
24004
  }
24046
24005
  /** https://graypaper.fluffylabs.dev/#/5f542d7/14c00114c001 */
24047
24006
  function permute(entropy, slot, spec) {
24048
- const shift = rotationIndex(common_tryAsTimeSlot(slot % spec.epochLength), spec.rotationPeriod);
24007
+ const shift = rotationIndex(tryAsTimeSlot(slot % spec.epochLength), spec.rotationPeriod);
24049
24008
  const initialAssignment = Array(spec.validatorsCount)
24050
24009
  .fill(0)
24051
24010
  .map((_v, i) => {
@@ -24656,7 +24615,7 @@ class Reports {
24656
24615
  if (headerRotation > guaranteeRotation) {
24657
24616
  // we can safely subtract here, because if `guaranteeRotation` is less
24658
24617
  // than header rotation it must be greater than the `rotationPeriod`.
24659
- timeSlot = common_tryAsTimeSlot(headerTimeSlot - rotationPeriod);
24618
+ timeSlot = tryAsTimeSlot(headerTimeSlot - rotationPeriod);
24660
24619
  // if the epoch changed, we need to take previous entropy and previous validator data.
24661
24620
  if (isPreviousRotationPreviousEpoch(timeSlot, headerTimeSlot, epochLength)) {
24662
24621
  entropy = newEntropy[3];
@@ -25239,7 +25198,7 @@ function checkOffendersMatch(offendersMark, headerOffendersMark) {
25239
25198
  return result_Result.ok(result_OK);
25240
25199
  }
25241
25200
 
25242
- ;// CONCATENATED MODULE: ./packages/workers/importer/importer.ts
25201
+ ;// CONCATENATED MODULE: ./workers/importer/importer.ts
25243
25202
 
25244
25203
 
25245
25204
 
@@ -25378,11 +25337,11 @@ function extractTimeSlot(block) {
25378
25337
  return block.header.view().timeSlotIndex.materialize();
25379
25338
  }
25380
25339
  catch {
25381
- return common_tryAsTimeSlot(2 ** 32 - 1);
25340
+ return tryAsTimeSlot(2 ** 32 - 1);
25382
25341
  }
25383
25342
  }
25384
25343
 
25385
- ;// CONCATENATED MODULE: ./packages/workers/generic/finished.ts
25344
+ ;// CONCATENATED MODULE: ./workers/generic/finished.ts
25386
25345
 
25387
25346
  class finished_Finished extends State {
25388
25347
  constructor() {
@@ -25398,7 +25357,7 @@ class finished_Finished extends State {
25398
25357
  }
25399
25358
  }
25400
25359
 
25401
- ;// CONCATENATED MODULE: ./packages/workers/generic/main-init.ts
25360
+ ;// CONCATENATED MODULE: ./workers/generic/main-init.ts
25402
25361
 
25403
25362
 
25404
25363
  function main_init_stateMachineMain(name, readyName, ready) {
@@ -25421,7 +25380,7 @@ class MainInit extends State {
25421
25380
  }
25422
25381
  }
25423
25382
 
25424
- ;// CONCATENATED MODULE: ./packages/workers/generic/worker-init.ts
25383
+ ;// CONCATENATED MODULE: ./workers/generic/worker-init.ts
25425
25384
 
25426
25385
  class WorkerInit extends State {
25427
25386
  workerReadyName;
@@ -25443,7 +25402,7 @@ class WorkerInit extends State {
25443
25402
  }
25444
25403
  }
25445
25404
 
25446
- ;// CONCATENATED MODULE: ./packages/workers/generic/worker-spawn.ts
25405
+ ;// CONCATENATED MODULE: ./workers/generic/worker-spawn.ts
25447
25406
 
25448
25407
 
25449
25408
 
@@ -25455,13 +25414,13 @@ async function spawnWorkerGeneric(bootstrapPath, logger, mainReadyName, mainRead
25455
25414
  return channel;
25456
25415
  }
25457
25416
 
25458
- ;// CONCATENATED MODULE: ./packages/workers/generic/index.ts
25417
+ ;// CONCATENATED MODULE: ./workers/generic/index.ts
25459
25418
 
25460
25419
 
25461
25420
 
25462
25421
 
25463
25422
 
25464
- ;// CONCATENATED MODULE: ./packages/workers/importer/state-machine.ts
25423
+ ;// CONCATENATED MODULE: ./workers/importer/state-machine.ts
25465
25424
 
25466
25425
 
25467
25426
 
@@ -25699,7 +25658,7 @@ class ImporterReady extends State {
25699
25658
  }
25700
25659
  }
25701
25660
 
25702
- ;// CONCATENATED MODULE: ./packages/workers/importer/index.ts
25661
+ ;// CONCATENATED MODULE: ./workers/importer/index.ts
25703
25662
 
25704
25663
 
25705
25664