@typeberry/convert 0.5.10-cf84e93 → 0.5.10-ec38e0b

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.
Files changed (3) hide show
  1. package/index.js +14 -14
  2. package/index.js.map +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -9807,37 +9807,37 @@ const work_package_MAX_NUMBER_OF_WORK_ITEMS = 16;
9807
9807
  /**
9808
9808
  * A piece of work done within a core.
9809
9809
  *
9810
- * `P = (j ∈ Y, h ∈ NS, u ∈ H, p ∈ Y, x ∈ X, w ∈ ⟦I⟧1∶I)
9810
+ * `P = (j ∈ Y, h ∈ NS, u ∈ H, f ∈ Y, x ∈ X, w ∈ ⟦I⟧1∶I)
9811
9811
  *
9812
9812
  * https://graypaper.fluffylabs.dev/#/579bd12/197000197200
9813
9813
  */
9814
9814
  class work_package_WorkPackage extends WithDebug {
9815
- authorization;
9815
+ authToken;
9816
9816
  authCodeHost;
9817
9817
  authCodeHash;
9818
- parametrization;
9818
+ authConfiguration;
9819
9819
  context;
9820
9820
  items;
9821
9821
  static Codec = codec_codec.Class(work_package_WorkPackage, {
9822
9822
  authCodeHost: codec_codec.u32.asOpaque(),
9823
9823
  authCodeHash: codec_codec.bytes(hash_HASH_SIZE).asOpaque(),
9824
9824
  context: RefineContext.Codec,
9825
- authorization: codec_codec.blob,
9826
- parametrization: codec_codec.blob,
9825
+ authToken: codec_codec.blob,
9826
+ authConfiguration: codec_codec.blob,
9827
9827
  items: codec_codec.sequenceVarLen(work_item_WorkItem.Codec).convert((x) => x, (items) => FixedSizeArray.new(items, tryAsWorkItemsCount(items.length))),
9828
9828
  });
9829
- static create({ authorization, authCodeHost, authCodeHash, parametrization, context, items, }) {
9830
- return new work_package_WorkPackage(authorization, authCodeHost, authCodeHash, parametrization, context, items);
9829
+ static create({ authToken, authCodeHost, authCodeHash, authConfiguration, context, items, }) {
9830
+ return new work_package_WorkPackage(authToken, authCodeHost, authCodeHash, authConfiguration, context, items);
9831
9831
  }
9832
9832
  constructor(
9833
9833
  /** `j`: simple blob acting as an authorization token */
9834
- authorization,
9834
+ authToken,
9835
9835
  /** `h`: index of the service that hosts the authorization code */
9836
9836
  authCodeHost,
9837
9837
  /** `u`: authorization code hash */
9838
9838
  authCodeHash,
9839
- /** `p`: authorization parametrization blob */
9840
- parametrization,
9839
+ /** `f`: authorization configuration blob */
9840
+ authConfiguration,
9841
9841
  /** `x`: context in which the refine function should run */
9842
9842
  context,
9843
9843
  /**
@@ -9848,10 +9848,10 @@ class work_package_WorkPackage extends WithDebug {
9848
9848
  */
9849
9849
  items) {
9850
9850
  super();
9851
- this.authorization = authorization;
9851
+ this.authToken = authToken;
9852
9852
  this.authCodeHost = authCodeHost;
9853
9853
  this.authCodeHash = authCodeHash;
9854
- this.parametrization = parametrization;
9854
+ this.authConfiguration = authConfiguration;
9855
9855
  this.context = context;
9856
9856
  this.items = items;
9857
9857
  }
@@ -16200,10 +16200,10 @@ const workPackageFromJson = json.object({
16200
16200
  context: refineContextFromJson,
16201
16201
  items: json.array(workItemFromJson),
16202
16202
  }, ({ authorization, auth_code_host, auth_code_hash, authorizer_config, context, items }) => work_package_WorkPackage.create({
16203
- authorization,
16203
+ authToken: authorization,
16204
16204
  authCodeHost: auth_code_host,
16205
16205
  authCodeHash: auth_code_hash,
16206
- parametrization: authorizer_config,
16206
+ authConfiguration: authorizer_config,
16207
16207
  context,
16208
16208
  items: FixedSizeArray.new(items, tryAsWorkItemsCount(items.length)),
16209
16209
  }));