@lodestar/state-transition 1.12.0-dev.9dae25f817 → 1.12.0-dev.a11427edba

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,7 +1,7 @@
1
1
  import { CoordType } from "@chainsafe/bls/types";
2
2
  import bls from "@chainsafe/bls";
3
3
  /**
4
- * toHexString() creates hex strings via string concatenation, which are very memory inneficient.
4
+ * toHexString() creates hex strings via string concatenation, which are very memory inefficient.
5
5
  * Memory benchmarks show that Buffer.toString("hex") produces strings with 10x less memory.
6
6
  *
7
7
  * Does not prefix to save memory, thus the prefix is removed from an already string representation.
package/lib/index.d.ts CHANGED
@@ -2,18 +2,18 @@ export * from "./stateTransition.js";
2
2
  export * from "./constants/index.js";
3
3
  export * from "./util/index.js";
4
4
  export * from "./signatureSets/index.js";
5
- export { BeaconStateTransitionMetrics } from "./metrics.js";
6
- export { CachedBeaconStatePhase0, CachedBeaconStateAltair, CachedBeaconStateBellatrix, CachedBeaconStateCapella, CachedBeaconStateDeneb, CachedBeaconStateAllForks, CachedBeaconStateExecutions, BeaconStatePhase0, BeaconStateAltair, BeaconStateBellatrix, BeaconStateCapella, BeaconStateDeneb, BeaconStateAllForks, BeaconStateExecutions, } from "./types.js";
7
- export { createCachedBeaconState, BeaconStateCache, isCachedBeaconState, isStateBalancesNodesPopulated, isStateValidatorsNodesPopulated, } from "./cache/stateCache.js";
8
- export { EpochCache, EpochCacheImmutableData, createEmptyEpochCacheImmutableData, EpochCacheError, EpochCacheErrorCode, } from "./cache/epochCache.js";
9
- export { EpochTransitionCache, beforeProcessEpoch } from "./cache/epochTransitionCache.js";
10
- export { PubkeyIndexMap, Index2PubkeyCache } from "./cache/pubkeyCache.js";
11
- export { EffectiveBalanceIncrements, getEffectiveBalanceIncrementsZeroed, getEffectiveBalanceIncrementsWithLen, } from "./cache/effectiveBalanceIncrements.js";
5
+ export type { BeaconStateTransitionMetrics } from "./metrics.js";
6
+ export type { CachedBeaconStatePhase0, CachedBeaconStateAltair, CachedBeaconStateBellatrix, CachedBeaconStateCapella, CachedBeaconStateDeneb, CachedBeaconStateAllForks, CachedBeaconStateExecutions, BeaconStatePhase0, BeaconStateAltair, BeaconStateBellatrix, BeaconStateCapella, BeaconStateDeneb, BeaconStateAllForks, BeaconStateExecutions, } from "./types.js";
7
+ export { createCachedBeaconState, type BeaconStateCache, isCachedBeaconState, isStateBalancesNodesPopulated, isStateValidatorsNodesPopulated, } from "./cache/stateCache.js";
8
+ export { EpochCache, type EpochCacheImmutableData, createEmptyEpochCacheImmutableData, EpochCacheError, EpochCacheErrorCode, } from "./cache/epochCache.js";
9
+ export { type EpochTransitionCache, beforeProcessEpoch } from "./cache/epochTransitionCache.js";
10
+ export { PubkeyIndexMap, type Index2PubkeyCache } from "./cache/pubkeyCache.js";
11
+ export { type EffectiveBalanceIncrements, getEffectiveBalanceIncrementsZeroed, getEffectiveBalanceIncrementsWithLen, } from "./cache/effectiveBalanceIncrements.js";
12
12
  export { isValidVoluntaryExit } from "./block/processVoluntaryExit.js";
13
13
  export { isValidBlsToExecutionChange } from "./block/processBlsToExecutionChange.js";
14
14
  export { assertValidProposerSlashing } from "./block/processProposerSlashing.js";
15
15
  export { assertValidAttesterSlashing } from "./block/processAttesterSlashing.js";
16
- export { ExecutionPayloadStatus, DataAvailableStatus, BlockExternalData } from "./block/externalData.js";
16
+ export { ExecutionPayloadStatus, DataAvailableStatus, type BlockExternalData } from "./block/externalData.js";
17
17
  export { becomesNewEth1Data } from "./block/processEth1Data.js";
18
18
  export { getExpectedWithdrawals } from "./block/processWithdrawals.js";
19
19
  export { executionPayloadToPayloadHeader } from "./block/processExecutionPayload.js";
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BA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ACf,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAA4B,kBAAkB,EAAC,MAAM,iCAAiC,CAAC;AAE9F,sBAAsB;AACtB,OAAO,EAAC,cAAc,EAAyB,MAAM,wBAAwB,CAAC;AAE9E,OAAO,EAEL,mCAAmC,EACnC,oCAAoC,GACrC,MAAM,uCAAuC,CAAC;AAE/C,yBAAyB;AACzB,OAAO,EAAC,oBAAoB,EAAC,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAC,2BAA2B,EAAC,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAC,2BAA2B,EAAC,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAC,2BAA2B,EAAC,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAC,sBAAsB,EAAE,mBAAmB,EAAyB,MAAM,yBAAyB,CAAC;AAE5G,qCAAqC;AACrC,OAAO,EAAC,kBAAkB,EAAC,MAAM,4BAA4B,CAAC;AAC9D,6BAA6B;AAC7B,OAAO,EAAC,sBAAsB,EAAC,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAC,+BAA+B,EAAC,MAAM,oCAAoC,CAAC"}
package/lib/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { EpochCache } from "./cache/epochCache.js";
2
- export { EpochTransitionCache } from "./cache/epochTransitionCache.js";
3
- export { CachedBeaconStateAllForks, CachedBeaconStateExecutions, CachedBeaconStatePhase0, CachedBeaconStateAltair, CachedBeaconStateBellatrix, CachedBeaconStateCapella, CachedBeaconStateDeneb, } from "./cache/stateCache.js";
4
- export { BeaconStateAllForks, BeaconStateExecutions, BeaconStatePhase0, BeaconStateAltair, BeaconStateBellatrix, BeaconStateCapella, BeaconStateDeneb, } from "./cache/types.js";
2
+ export type { EpochTransitionCache } from "./cache/epochTransitionCache.js";
3
+ export type { CachedBeaconStateAllForks, CachedBeaconStateExecutions, CachedBeaconStatePhase0, CachedBeaconStateAltair, CachedBeaconStateBellatrix, CachedBeaconStateCapella, CachedBeaconStateDeneb, } from "./cache/stateCache.js";
4
+ export type { BeaconStateAllForks, BeaconStateExecutions, BeaconStatePhase0, BeaconStateAltair, BeaconStateBellatrix, BeaconStateCapella, BeaconStateDeneb, } from "./cache/types.js";
5
5
  //# sourceMappingURL=types.d.ts.map
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "bugs": {
12
12
  "url": "https://github.com/ChainSafe/lodestar/issues"
13
13
  },
14
- "version": "1.12.0-dev.9dae25f817",
14
+ "version": "1.12.0-dev.a11427edba",
15
15
  "type": "module",
16
16
  "exports": {
17
17
  ".": {
@@ -62,10 +62,10 @@
62
62
  "@chainsafe/persistent-merkle-tree": "^0.5.0",
63
63
  "@chainsafe/persistent-ts": "^0.19.1",
64
64
  "@chainsafe/ssz": "^0.13.0",
65
- "@lodestar/config": "1.12.0-dev.9dae25f817",
66
- "@lodestar/params": "1.12.0-dev.9dae25f817",
67
- "@lodestar/types": "1.12.0-dev.9dae25f817",
68
- "@lodestar/utils": "1.12.0-dev.9dae25f817",
65
+ "@lodestar/config": "1.12.0-dev.a11427edba",
66
+ "@lodestar/params": "1.12.0-dev.a11427edba",
67
+ "@lodestar/types": "1.12.0-dev.a11427edba",
68
+ "@lodestar/utils": "1.12.0-dev.a11427edba",
69
69
  "bigint-buffer": "^1.1.5",
70
70
  "buffer-xor": "^2.0.2"
71
71
  },
@@ -81,5 +81,5 @@
81
81
  "beacon",
82
82
  "blockchain"
83
83
  ],
84
- "gitHead": "eb735a50a7b9ddfaec2a221657ebcd065a7eb5a1"
84
+ "gitHead": "cd2724f72764676ab1ee93a2184e58ad00023049"
85
85
  }