@xyo-network/xl1-protocol-sdk 2.1.1 → 2.1.3

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.
@@ -3596,56 +3596,35 @@ var isBalancesStepSummaryWithStorageMeta = (value) => {
3596
3596
  };
3597
3597
  var asBalancesStepSummaryWithStorageMeta = AsObjectFactory5.create(isBalancesStepSummaryWithStorageMeta);
3598
3598
 
3599
- // src/summary/model/BlocksStepSummary.ts
3599
+ // src/summary/model/SchemasStepSummary.ts
3600
3600
  import { AsObjectFactory as AsObjectFactory6 } from "@xylabs/sdk-js";
3601
3601
  import {
3602
3602
  asSchema as asSchema6,
3603
3603
  isPayloadOfSchemaType as isPayloadOfSchemaType4,
3604
3604
  isStorageMeta as isStorageMeta3
3605
3605
  } from "@xyo-network/sdk-js";
3606
- var BlocksStepSummarySchema = asSchema6("network.xyo.step.summary.blocks", true);
3607
- var isBlocksStepSummary = isPayloadOfSchemaType4(BlocksStepSummarySchema);
3608
- var asBlocksStepSummary = AsObjectFactory6.create(isBlocksStepSummary);
3609
- var isBlocksStepSummaryWithStorageMeta = (value) => {
3610
- return isBlocksStepSummary(value) && isStorageMeta3(value);
3606
+ var SchemasStepSummarySchema = asSchema6("network.xyo.step.summary.schemas", true);
3607
+ var isSchemasStepSummary = isPayloadOfSchemaType4(SchemasStepSummarySchema);
3608
+ var asSchemasStepSummary = AsObjectFactory6.create(isSchemasStepSummary);
3609
+ var isSchemasStepSummaryWithStorageMeta = (value) => {
3610
+ return isSchemasStepSummary(value) && isStorageMeta3(value);
3611
3611
  };
3612
- var asBlocksStepSummaryWithStorageMeta = AsObjectFactory6.create(isBlocksStepSummaryWithStorageMeta);
3612
+ var asSchemasStepSummaryWithStorageMeta = AsObjectFactory6.create(isSchemasStepSummaryWithStorageMeta);
3613
3613
 
3614
- // src/summary/model/SchemasStepSummary.ts
3614
+ // src/summary/model/TransfersSummary.ts
3615
3615
  import { AsObjectFactory as AsObjectFactory7 } from "@xylabs/sdk-js";
3616
3616
  import {
3617
3617
  asSchema as asSchema7,
3618
3618
  isPayloadOfSchemaType as isPayloadOfSchemaType5,
3619
3619
  isStorageMeta as isStorageMeta4
3620
3620
  } from "@xyo-network/sdk-js";
3621
- var SchemasStepSummarySchema = asSchema7("network.xyo.step.summary.schemas", true);
3622
- var isSchemasStepSummary = isPayloadOfSchemaType5(SchemasStepSummarySchema);
3623
- var asSchemasStepSummary = AsObjectFactory7.create(isSchemasStepSummary);
3624
- var isSchemasStepSummaryWithStorageMeta = (value) => {
3625
- return isSchemasStepSummary(value) && isStorageMeta4(value);
3626
- };
3627
- var asSchemasStepSummaryWithStorageMeta = AsObjectFactory7.create(isSchemasStepSummaryWithStorageMeta);
3628
-
3629
- // src/summary/model/StepSummary.ts
3630
- import {
3631
- asSchema as asSchema8
3632
- } from "@xyo-network/sdk-js";
3633
- var StepSummarySchema = asSchema8("network.xyo.step.summary", true);
3634
-
3635
- // src/summary/model/TransfersSummary.ts
3636
- import { AsObjectFactory as AsObjectFactory8 } from "@xylabs/sdk-js";
3637
- import {
3638
- asSchema as asSchema9,
3639
- isPayloadOfSchemaType as isPayloadOfSchemaType6,
3640
- isStorageMeta as isStorageMeta5
3641
- } from "@xyo-network/sdk-js";
3642
- var TransfersStepSummarySchema = asSchema9("network.xyo.step.summary.transfer", true);
3643
- var isTransfersStepSummary = isPayloadOfSchemaType6(TransfersStepSummarySchema);
3644
- var asTransfersStepSummary = AsObjectFactory8.create(isTransfersStepSummary);
3621
+ var TransfersStepSummarySchema = asSchema7("network.xyo.step.summary.transfer", true);
3622
+ var isTransfersStepSummary = isPayloadOfSchemaType5(TransfersStepSummarySchema);
3623
+ var asTransfersStepSummary = AsObjectFactory7.create(isTransfersStepSummary);
3645
3624
  var isTransfersStepSummaryWithStorageMeta = (value) => {
3646
- return isTransfersStepSummary(value) && isStorageMeta5(value);
3625
+ return isTransfersStepSummary(value) && isStorageMeta4(value);
3647
3626
  };
3648
- var asTransfersStepSummaryWithStorageMeta = AsObjectFactory8.create(isTransfersStepSummaryWithStorageMeta);
3627
+ var asTransfersStepSummaryWithStorageMeta = AsObjectFactory7.create(isTransfersStepSummaryWithStorageMeta);
3649
3628
 
3650
3629
  // src/summary/primitives/balances/balancesMaxStep.ts
3651
3630
  var balancesMaxStep = 5;
@@ -3755,7 +3734,12 @@ var blocksMaxStep = 3;
3755
3734
  // src/summary/primitives/blocks/blocksStepSummaryFromRange.ts
3756
3735
  import { assertEx as assertEx28, spanRootAsync as spanRootAsync4 } from "@xylabs/sdk-js";
3757
3736
  import { isAnyPayload as isAnyPayload4 } from "@xyo-network/sdk-js";
3758
- import { asXL1BlockNumber as asXL1BlockNumber6, StepSizes as StepSizes9 } from "@xyo-network/xl1-protocol-lib";
3737
+ import {
3738
+ asBlocksStepSummary,
3739
+ asXL1BlockNumber as asXL1BlockNumber6,
3740
+ BlocksStepSummarySchema,
3741
+ StepSizes as StepSizes9
3742
+ } from "@xyo-network/xl1-protocol-lib";
3759
3743
  function blocksStepSummaryKey(frameHeadHash, frameSize) {
3760
3744
  return `${frameHeadHash}|${frameSize}`;
3761
3745
  }
@@ -6975,7 +6959,7 @@ var RuntimeStatusMonitor = class extends LoggerStatusReporter {
6975
6959
  import { asAddress as asAddress2, assertEx as assertEx51 } from "@xylabs/sdk-js";
6976
6960
  import {
6977
6961
  Account as Account4,
6978
- asSchema as asSchema11,
6962
+ asSchema as asSchema9,
6979
6963
  IdSchema as IdSchema2,
6980
6964
  MemoryArchivist,
6981
6965
  PayloadBuilder as PayloadBuilder29
@@ -7143,7 +7127,7 @@ import { asAddress, assertEx as assertEx50 } from "@xylabs/sdk-js";
7143
7127
  import {
7144
7128
  Account as Account3,
7145
7129
  asAnyPayload as asAnyPayload6,
7146
- asSchema as asSchema10,
7130
+ asSchema as asSchema8,
7147
7131
  IdSchema,
7148
7132
  PayloadBuilder as PayloadBuilder26
7149
7133
  } from "@xyo-network/sdk-js";
@@ -7259,7 +7243,7 @@ var buildRandomChain = async (blockProducer, count = 10, previousBlock, chainId,
7259
7243
  saltCounter += 1;
7260
7244
  const payloads = [new PayloadBuilder29({ schema: IdSchema2 }).fields({ salt: `${Date.now()}-${saltCounter}` }).build()];
7261
7245
  saltCounter += 1;
7262
- const additionalPrivatePayloads = remaining % 2 === 0 ? [new PayloadBuilder29({ schema: asSchema11("network.xyo.private", true) }).fields({ salt: `${Date.now()}-${saltCounter}` }).build()] : [];
7246
+ const additionalPrivatePayloads = remaining % 2 === 0 ? [new PayloadBuilder29({ schema: asSchema9("network.xyo.private", true) }).fields({ salt: `${Date.now()}-${saltCounter}` }).build()] : [];
7263
7247
  const txs = [];
7264
7248
  for (const receiverAddress of resolvedReceiverAddresses) {
7265
7249
  txs.push(await buildRandomTransaction(
@@ -7268,7 +7252,7 @@ var buildRandomChain = async (blockProducer, count = 10, previousBlock, chainId,
7268
7252
  transactionAccountToUse,
7269
7253
  asXL1BlockNumber17(Math.max(count - remaining - 1e3, 0), true),
7270
7254
  asXL1BlockNumber17(count - remaining + 1e3, true),
7271
- [asSchema11("network.xyo.private", true)],
7255
+ [asSchema9("network.xyo.private", true)],
7272
7256
  receiverAddress
7273
7257
  ));
7274
7258
  }
@@ -7394,7 +7378,6 @@ export {
7394
7378
  BalancesStepSummarySchema,
7395
7379
  BaseConfigContextZod,
7396
7380
  BaseConfigZod,
7397
- BlocksStepSummarySchema,
7398
7381
  BoundWitnessHydrator,
7399
7382
  BoundWitnessWithStorageMetaZod,
7400
7383
  CHANGE_ADDRESS,
@@ -7471,7 +7454,6 @@ export {
7471
7454
  SimpleXyoPermissions,
7472
7455
  SimpleXyoRunner,
7473
7456
  SimpleXyoSigner,
7474
- StepSummarySchema,
7475
7457
  TODO,
7476
7458
  TestGenesisBlockRewardAddress,
7477
7459
  TransactionBuilder,
@@ -7502,8 +7484,6 @@ export {
7502
7484
  asBalancesStepSummary,
7503
7485
  asBalancesStepSummaryWithStorageMeta,
7504
7486
  asBaseConfigContext,
7505
- asBlocksStepSummary,
7506
- asBlocksStepSummaryWithStorageMeta,
7507
7487
  asBoundWitnessWithStorageMeta,
7508
7488
  asChainIndexingServiceState,
7509
7489
  asChainIndexingServiceStateWithStorageMeta,
@@ -7593,8 +7573,6 @@ export {
7593
7573
  isBalancesStepSummary,
7594
7574
  isBalancesStepSummaryWithStorageMeta,
7595
7575
  isBaseConfigContext,
7596
- isBlocksStepSummary,
7597
- isBlocksStepSummaryWithStorageMeta,
7598
7576
  isChainIndexingServiceState,
7599
7577
  isChainIndexingServiceStateWithStorageMeta,
7600
7578
  isCreatableProviderContext,