@typeberry/jam 0.4.0-d185014 → 0.4.0-da92f56
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.
- package/README.md +5 -0
- package/bootstrap-generator.mjs +8 -4
- package/bootstrap-generator.mjs.map +1 -1
- package/bootstrap-importer.mjs +8 -7
- package/bootstrap-importer.mjs.map +1 -1
- package/bootstrap-network.mjs +8 -7
- package/bootstrap-network.mjs.map +1 -1
- package/index.js +8 -7
- package/index.js.map +1 -1
- package/package.json +1 -1
package/bootstrap-importer.mjs
CHANGED
|
@@ -3550,7 +3550,11 @@ var TestSuite;
|
|
|
3550
3550
|
})(TestSuite || (TestSuite = {}));
|
|
3551
3551
|
const ALL_VERSIONS_IN_ORDER = [compatibility_GpVersion.V0_6_7, compatibility_GpVersion.V0_7_0, compatibility_GpVersion.V0_7_1, compatibility_GpVersion.V0_7_2];
|
|
3552
3552
|
const DEFAULT_SUITE = TestSuite.W3F_DAVXY;
|
|
3553
|
-
|
|
3553
|
+
/**
|
|
3554
|
+
* Current version is set to track the jam-conformance testing.
|
|
3555
|
+
* Since we are currently at 0.7.1 not 0.7.2, we set our default version accordingly.
|
|
3556
|
+
*/
|
|
3557
|
+
const DEFAULT_VERSION = compatibility_GpVersion.V0_7_1;
|
|
3554
3558
|
const env = typeof process === "undefined" ? {} : process.env;
|
|
3555
3559
|
let CURRENT_VERSION = parseCurrentVersion(env.GP_VERSION) ?? DEFAULT_VERSION;
|
|
3556
3560
|
let CURRENT_SUITE = parseCurrentSuite(env.TEST_SUITE) ?? DEFAULT_SUITE;
|
|
@@ -3609,8 +3613,8 @@ class compatibility_Compatibility {
|
|
|
3609
3613
|
/**
|
|
3610
3614
|
* Allows selecting different values for different Gray Paper versions from one record.
|
|
3611
3615
|
*
|
|
3612
|
-
*
|
|
3613
|
-
*
|
|
3616
|
+
* fallback The default value to return if no value is found for the current.
|
|
3617
|
+
* versions A record mapping versions to values, checking if the version is greater or equal to the current version.
|
|
3614
3618
|
* @returns The value for the current version, or the default value.
|
|
3615
3619
|
*/
|
|
3616
3620
|
static selectIfGreaterOrEqual({ fallback, versions, }) {
|
|
@@ -3773,7 +3777,7 @@ const workspacePathFix = dev_env.NODE_ENV === "development"
|
|
|
3773
3777
|
|
|
3774
3778
|
;// CONCATENATED MODULE: ./packages/core/utils/opaque.ts
|
|
3775
3779
|
/**
|
|
3776
|
-
*
|
|
3780
|
+
* `Opaque<Type, Token>` constructs a unique type which is a subset of Type with a
|
|
3777
3781
|
* specified unique token Token. It means that base type cannot be assigned to unique type by accident.
|
|
3778
3782
|
* Good examples of opaque types include:
|
|
3779
3783
|
* - JWTs or other tokens - these are special kinds of string used for authorization purposes.
|
|
@@ -13210,7 +13214,6 @@ class LeafNode {
|
|
|
13210
13214
|
/**
|
|
13211
13215
|
* Get the byte length of embedded value.
|
|
13212
13216
|
*
|
|
13213
|
-
* @remark
|
|
13214
13217
|
* Note in case this node only contains hash this is going to be 0.
|
|
13215
13218
|
*/
|
|
13216
13219
|
getValueLength() {
|
|
@@ -13221,7 +13224,6 @@ class LeafNode {
|
|
|
13221
13224
|
/**
|
|
13222
13225
|
* Returns the embedded value.
|
|
13223
13226
|
*
|
|
13224
|
-
* @remark
|
|
13225
13227
|
* Note that this is going to be empty for a regular leaf node (i.e. containing a hash).
|
|
13226
13228
|
*/
|
|
13227
13229
|
getValue() {
|
|
@@ -13231,7 +13233,6 @@ class LeafNode {
|
|
|
13231
13233
|
/**
|
|
13232
13234
|
* Returns contained value hash.
|
|
13233
13235
|
*
|
|
13234
|
-
* @remark
|
|
13235
13236
|
* Note that for embedded value this is going to be full 0-padded 32 bytes.
|
|
13236
13237
|
*/
|
|
13237
13238
|
getValueHash() {
|