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