@xyo-network/xl1-protocol 1.25.32 → 1.26.1
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/dist/neutral/index.d.ts +4 -24
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +5 -2047
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +17 -14
- package/src/index.ts +4 -24
- package/LICENSE +0 -165
- package/README.md +0 -81
- package/dist/neutral/BlockNumber/BlockNumber.d.ts +0 -35
- package/dist/neutral/BlockNumber/BlockNumber.d.ts.map +0 -1
- package/dist/neutral/BlockNumber/EthBlockNumber.d.ts +0 -46
- package/dist/neutral/BlockNumber/EthBlockNumber.d.ts.map +0 -1
- package/dist/neutral/BlockNumber/Numberish.d.ts +0 -6
- package/dist/neutral/BlockNumber/Numberish.d.ts.map +0 -1
- package/dist/neutral/BlockNumber/XL1BlockNumber.d.ts +0 -46
- package/dist/neutral/BlockNumber/XL1BlockNumber.d.ts.map +0 -1
- package/dist/neutral/BlockNumber/index.d.ts +0 -5
- package/dist/neutral/BlockNumber/index.d.ts.map +0 -1
- package/dist/neutral/Initializable.d.ts +0 -9
- package/dist/neutral/Initializable.d.ts.map +0 -1
- package/dist/neutral/OpenTelemetryProviders.d.ts +0 -7
- package/dist/neutral/OpenTelemetryProviders.d.ts.map +0 -1
- package/dist/neutral/RecordKeyType.d.ts +0 -4
- package/dist/neutral/RecordKeyType.d.ts.map +0 -1
- package/dist/neutral/Step/StepHash.d.ts +0 -11
- package/dist/neutral/Step/StepHash.d.ts.map +0 -1
- package/dist/neutral/Step/StepIdentity.d.ts +0 -19
- package/dist/neutral/Step/StepIdentity.d.ts.map +0 -1
- package/dist/neutral/Step/StepSizes.d.ts +0 -12
- package/dist/neutral/Step/StepSizes.d.ts.map +0 -1
- package/dist/neutral/Step/index.d.ts +0 -4
- package/dist/neutral/Step/index.d.ts.map +0 -1
- package/dist/neutral/TransferPayload.d.ts +0 -79
- package/dist/neutral/TransferPayload.d.ts.map +0 -1
- package/dist/neutral/amount/ShiftedBigIntConfig.d.ts +0 -9
- package/dist/neutral/amount/ShiftedBigIntConfig.d.ts.map +0 -1
- package/dist/neutral/amount/XL1AmountInstance.d.ts +0 -16
- package/dist/neutral/amount/XL1AmountInstance.d.ts.map +0 -1
- package/dist/neutral/amount/index.d.ts +0 -3
- package/dist/neutral/amount/index.d.ts.map +0 -1
- package/dist/neutral/block/AllowedBlockPayload.d.ts +0 -40
- package/dist/neutral/block/AllowedBlockPayload.d.ts.map +0 -1
- package/dist/neutral/block/BlockBoundWitness.d.ts +0 -544
- package/dist/neutral/block/BlockBoundWitness.d.ts.map +0 -1
- package/dist/neutral/block/HydratedBlock.d.ts +0 -1466
- package/dist/neutral/block/HydratedBlock.d.ts.map +0 -1
- package/dist/neutral/block/index.d.ts +0 -6
- package/dist/neutral/block/index.d.ts.map +0 -1
- package/dist/neutral/block/signed/SignedBlockBoundWitness.d.ts +0 -168
- package/dist/neutral/block/signed/SignedBlockBoundWitness.d.ts.map +0 -1
- package/dist/neutral/block/signed/SignedBlockBoundWitnessWithHashMeta.d.ts +0 -286
- package/dist/neutral/block/signed/SignedBlockBoundWitnessWithHashMeta.d.ts.map +0 -1
- package/dist/neutral/block/signed/SignedBlockBoundWitnessWithStorageMeta.d.ts +0 -343
- package/dist/neutral/block/signed/SignedBlockBoundWitnessWithStorageMeta.d.ts.map +0 -1
- package/dist/neutral/block/signed/index.d.ts +0 -4
- package/dist/neutral/block/signed/index.d.ts.map +0 -1
- package/dist/neutral/block/unsigned/UnsignedBlockBoundWitness.d.ts +0 -168
- package/dist/neutral/block/unsigned/UnsignedBlockBoundWitness.d.ts.map +0 -1
- package/dist/neutral/block/unsigned/index.d.ts +0 -2
- package/dist/neutral/block/unsigned/index.d.ts.map +0 -1
- package/dist/neutral/chain/Chain.d.ts +0 -4
- package/dist/neutral/chain/Chain.d.ts.map +0 -1
- package/dist/neutral/chain/ChainAnalyzer.d.ts +0 -10
- package/dist/neutral/chain/ChainAnalyzer.d.ts.map +0 -1
- package/dist/neutral/chain/ChainId.d.ts +0 -4
- package/dist/neutral/chain/ChainId.d.ts.map +0 -1
- package/dist/neutral/chain/index.d.ts +0 -4
- package/dist/neutral/chain/index.d.ts.map +0 -1
- package/dist/neutral/fields/Addressable.d.ts +0 -6
- package/dist/neutral/fields/Addressable.d.ts.map +0 -1
- package/dist/neutral/fields/BlockDuration.d.ts +0 -25
- package/dist/neutral/fields/BlockDuration.d.ts.map +0 -1
- package/dist/neutral/fields/BlockNumber.d.ts +0 -32
- package/dist/neutral/fields/BlockNumber.d.ts.map +0 -1
- package/dist/neutral/fields/ChainReference.d.ts +0 -11
- package/dist/neutral/fields/ChainReference.d.ts.map +0 -1
- package/dist/neutral/fields/index.d.ts +0 -5
- package/dist/neutral/fields/index.d.ts.map +0 -1
- package/dist/neutral/map/AsyncMap.d.ts +0 -42
- package/dist/neutral/map/AsyncMap.d.ts.map +0 -1
- package/dist/neutral/map/MapType.d.ts +0 -17
- package/dist/neutral/map/MapType.d.ts.map +0 -1
- package/dist/neutral/map/SyncMap.d.ts +0 -41
- package/dist/neutral/map/SyncMap.d.ts.map +0 -1
- package/dist/neutral/map/index.d.ts +0 -4
- package/dist/neutral/map/index.d.ts.map +0 -1
- package/dist/neutral/model/AccountBalance.d.ts +0 -133
- package/dist/neutral/model/AccountBalance.d.ts.map +0 -1
- package/dist/neutral/model/ArrayBuffer.d.ts +0 -6
- package/dist/neutral/model/ArrayBuffer.d.ts.map +0 -1
- package/dist/neutral/model/BlockRange/BlockRange.d.ts +0 -32
- package/dist/neutral/model/BlockRange/BlockRange.d.ts.map +0 -1
- package/dist/neutral/model/BlockRange/EthBlockRange.d.ts +0 -32
- package/dist/neutral/model/BlockRange/EthBlockRange.d.ts.map +0 -1
- package/dist/neutral/model/BlockRange/Numberish.d.ts +0 -4
- package/dist/neutral/model/BlockRange/Numberish.d.ts.map +0 -1
- package/dist/neutral/model/BlockRange/Range.d.ts +0 -18
- package/dist/neutral/model/BlockRange/Range.d.ts.map +0 -1
- package/dist/neutral/model/BlockRange/XL1BlockRange.d.ts +0 -32
- package/dist/neutral/model/BlockRange/XL1BlockRange.d.ts.map +0 -1
- package/dist/neutral/model/BlockRange/index.d.ts +0 -5
- package/dist/neutral/model/BlockRange/index.d.ts.map +0 -1
- package/dist/neutral/model/BlockRate.d.ts +0 -290
- package/dist/neutral/model/BlockRate.d.ts.map +0 -1
- package/dist/neutral/model/ChainQualification.d.ts +0 -57
- package/dist/neutral/model/ChainQualification.d.ts.map +0 -1
- package/dist/neutral/model/Context/BaseContext.d.ts +0 -5
- package/dist/neutral/model/Context/BaseContext.d.ts.map +0 -1
- package/dist/neutral/model/Context/BaseContext.zod.d.ts +0 -26
- package/dist/neutral/model/Context/BaseContext.zod.d.ts.map +0 -1
- package/dist/neutral/model/Context/BlockContext.d.ts +0 -9
- package/dist/neutral/model/Context/BlockContext.d.ts.map +0 -1
- package/dist/neutral/model/Context/BlockContext.zod.d.ts +0 -33
- package/dist/neutral/model/Context/BlockContext.zod.d.ts.map +0 -1
- package/dist/neutral/model/Context/CachingContext.d.ts +0 -5
- package/dist/neutral/model/Context/CachingContext.d.ts.map +0 -1
- package/dist/neutral/model/Context/CachingContext.zod.d.ts +0 -10
- package/dist/neutral/model/Context/CachingContext.zod.d.ts.map +0 -1
- package/dist/neutral/model/Context/ChainContext.d.ts +0 -9
- package/dist/neutral/model/Context/ChainContext.d.ts.map +0 -1
- package/dist/neutral/model/Context/ChainContext.zod.d.ts +0 -115
- package/dist/neutral/model/Context/ChainContext.zod.d.ts.map +0 -1
- package/dist/neutral/model/Context/HeadContext.d.ts +0 -5
- package/dist/neutral/model/Context/HeadContext.d.ts.map +0 -1
- package/dist/neutral/model/Context/HeadContext.zod.d.ts +0 -70
- package/dist/neutral/model/Context/HeadContext.zod.d.ts.map +0 -1
- package/dist/neutral/model/Context/index.d.ts +0 -11
- package/dist/neutral/model/Context/index.d.ts.map +0 -1
- package/dist/neutral/model/GatewayName.d.ts +0 -6
- package/dist/neutral/model/GatewayName.d.ts.map +0 -1
- package/dist/neutral/model/HydratedTransaction.d.ts +0 -2300
- package/dist/neutral/model/HydratedTransaction.d.ts.map +0 -1
- package/dist/neutral/model/OpCodes.d.ts +0 -3
- package/dist/neutral/model/OpCodes.d.ts.map +0 -1
- package/dist/neutral/model/PayloadMap.d.ts +0 -10
- package/dist/neutral/model/PayloadMap.d.ts.map +0 -1
- package/dist/neutral/model/Permission.d.ts +0 -59
- package/dist/neutral/model/Permission.d.ts.map +0 -1
- package/dist/neutral/model/Position.d.ts +0 -13
- package/dist/neutral/model/Position.d.ts.map +0 -1
- package/dist/neutral/model/PositionId.d.ts +0 -6
- package/dist/neutral/model/PositionId.d.ts.map +0 -1
- package/dist/neutral/model/RangeMultipliers.d.ts +0 -10
- package/dist/neutral/model/RangeMultipliers.d.ts.map +0 -1
- package/dist/neutral/model/RewardShare.d.ts +0 -3
- package/dist/neutral/model/RewardShare.d.ts.map +0 -1
- package/dist/neutral/model/RewardsRangeOptions.d.ts +0 -16
- package/dist/neutral/model/RewardsRangeOptions.d.ts.map +0 -1
- package/dist/neutral/model/Sequence.d.ts +0 -15
- package/dist/neutral/model/Sequence.d.ts.map +0 -1
- package/dist/neutral/model/Stake.d.ts +0 -121
- package/dist/neutral/model/Stake.d.ts.map +0 -1
- package/dist/neutral/model/StakeShare.d.ts +0 -3
- package/dist/neutral/model/StakeShare.d.ts.map +0 -1
- package/dist/neutral/model/TimeDomain.d.ts +0 -4
- package/dist/neutral/model/TimeDomain.d.ts.map +0 -1
- package/dist/neutral/model/TransferPair.d.ts +0 -12
- package/dist/neutral/model/TransferPair.d.ts.map +0 -1
- package/dist/neutral/model/addresses.d.ts +0 -28
- package/dist/neutral/model/addresses.d.ts.map +0 -1
- package/dist/neutral/model/defaultRewardRatio.d.ts +0 -3
- package/dist/neutral/model/defaultRewardRatio.d.ts.map +0 -1
- package/dist/neutral/model/defaultTransactionFees.d.ts +0 -4
- package/dist/neutral/model/defaultTransactionFees.d.ts.map +0 -1
- package/dist/neutral/model/index.d.ts +0 -28
- package/dist/neutral/model/index.d.ts.map +0 -1
- package/dist/neutral/model/minTransactionFees.d.ts +0 -4
- package/dist/neutral/model/minTransactionFees.d.ts.map +0 -1
- package/dist/neutral/model/rewards.d.ts +0 -15
- package/dist/neutral/model/rewards.d.ts.map +0 -1
- package/dist/neutral/model/version.d.ts +0 -11
- package/dist/neutral/model/version.d.ts.map +0 -1
- package/dist/neutral/network/NetworkId.d.ts +0 -12
- package/dist/neutral/network/NetworkId.d.ts.map +0 -1
- package/dist/neutral/network/Status.d.ts +0 -26
- package/dist/neutral/network/Status.d.ts.map +0 -1
- package/dist/neutral/network/index.d.ts +0 -3
- package/dist/neutral/network/index.d.ts.map +0 -1
- package/dist/neutral/payload/StepIdentityPayload.d.ts +0 -20
- package/dist/neutral/payload/StepIdentityPayload.d.ts.map +0 -1
- package/dist/neutral/payload/elevatable/Bridge/BridgeCompletion.d.ts +0 -23
- package/dist/neutral/payload/elevatable/Bridge/BridgeCompletion.d.ts.map +0 -1
- package/dist/neutral/payload/elevatable/Bridge/BridgeDestinationObservation.d.ts +0 -33
- package/dist/neutral/payload/elevatable/Bridge/BridgeDestinationObservation.d.ts.map +0 -1
- package/dist/neutral/payload/elevatable/Bridge/BridgeDetails.d.ts +0 -45
- package/dist/neutral/payload/elevatable/Bridge/BridgeDetails.d.ts.map +0 -1
- package/dist/neutral/payload/elevatable/Bridge/BridgeIntent.d.ts +0 -31
- package/dist/neutral/payload/elevatable/Bridge/BridgeIntent.d.ts.map +0 -1
- package/dist/neutral/payload/elevatable/Bridge/BridgeSourceObservation.d.ts +0 -33
- package/dist/neutral/payload/elevatable/Bridge/BridgeSourceObservation.d.ts.map +0 -1
- package/dist/neutral/payload/elevatable/Bridge/index.d.ts +0 -6
- package/dist/neutral/payload/elevatable/Bridge/index.d.ts.map +0 -1
- package/dist/neutral/payload/elevatable/ChainStakeIntent.d.ts +0 -24
- package/dist/neutral/payload/elevatable/ChainStakeIntent.d.ts.map +0 -1
- package/dist/neutral/payload/elevatable/Executable.d.ts +0 -20
- package/dist/neutral/payload/elevatable/Executable.d.ts.map +0 -1
- package/dist/neutral/payload/elevatable/Hash.d.ts +0 -21
- package/dist/neutral/payload/elevatable/Hash.d.ts.map +0 -1
- package/dist/neutral/payload/elevatable/StepComplete.d.ts +0 -22
- package/dist/neutral/payload/elevatable/StepComplete.d.ts.map +0 -1
- package/dist/neutral/payload/elevatable/Time.d.ts +0 -71
- package/dist/neutral/payload/elevatable/Time.d.ts.map +0 -1
- package/dist/neutral/payload/elevatable/index.d.ts +0 -7
- package/dist/neutral/payload/elevatable/index.d.ts.map +0 -1
- package/dist/neutral/payload/index.d.ts +0 -3
- package/dist/neutral/payload/index.d.ts.map +0 -1
- package/dist/neutral/permissions/InvokerPermission.d.ts +0 -53
- package/dist/neutral/permissions/InvokerPermission.d.ts.map +0 -1
- package/dist/neutral/permissions/XyoPermissions.d.ts +0 -33
- package/dist/neutral/permissions/XyoPermissions.d.ts.map +0 -1
- package/dist/neutral/permissions/index.d.ts +0 -3
- package/dist/neutral/permissions/index.d.ts.map +0 -1
- package/dist/neutral/provider/Provider.d.ts +0 -6
- package/dist/neutral/provider/Provider.d.ts.map +0 -1
- package/dist/neutral/provider/ProviderMoniker.d.ts +0 -9
- package/dist/neutral/provider/ProviderMoniker.d.ts.map +0 -1
- package/dist/neutral/provider/index.d.ts +0 -3
- package/dist/neutral/provider/index.d.ts.map +0 -1
- package/dist/neutral/providers/DataLake/Provider.d.ts +0 -10
- package/dist/neutral/providers/DataLake/Provider.d.ts.map +0 -1
- package/dist/neutral/providers/DataLake/Runner.d.ts +0 -15
- package/dist/neutral/providers/DataLake/Runner.d.ts.map +0 -1
- package/dist/neutral/providers/DataLake/Viewer.d.ts +0 -14
- package/dist/neutral/providers/DataLake/Viewer.d.ts.map +0 -1
- package/dist/neutral/providers/DataLake/index.d.ts +0 -4
- package/dist/neutral/providers/DataLake/index.d.ts.map +0 -1
- package/dist/neutral/providers/TransactionHelper.d.ts +0 -9
- package/dist/neutral/providers/TransactionHelper.d.ts.map +0 -1
- package/dist/neutral/providers/XyoClient.d.ts +0 -23
- package/dist/neutral/providers/XyoClient.d.ts.map +0 -1
- package/dist/neutral/providers/XyoConnection.d.ts +0 -18
- package/dist/neutral/providers/XyoConnection.d.ts.map +0 -1
- package/dist/neutral/providers/XyoGateway.d.ts +0 -20
- package/dist/neutral/providers/XyoGateway.d.ts.map +0 -1
- package/dist/neutral/providers/XyoGatewayRunner.d.ts +0 -55
- package/dist/neutral/providers/XyoGatewayRunner.d.ts.map +0 -1
- package/dist/neutral/providers/XyoNetwork.d.ts +0 -7
- package/dist/neutral/providers/XyoNetwork.d.ts.map +0 -1
- package/dist/neutral/providers/XyoRunner.d.ts +0 -17
- package/dist/neutral/providers/XyoRunner.d.ts.map +0 -1
- package/dist/neutral/providers/index.d.ts +0 -9
- package/dist/neutral/providers/index.d.ts.map +0 -1
- package/dist/neutral/providers/signer/XyoSigner.d.ts +0 -25
- package/dist/neutral/providers/signer/XyoSigner.d.ts.map +0 -1
- package/dist/neutral/providers/signer/index.d.ts +0 -2
- package/dist/neutral/providers/signer/index.d.ts.map +0 -1
- package/dist/neutral/repository/Repository.d.ts +0 -27
- package/dist/neutral/repository/Repository.d.ts.map +0 -1
- package/dist/neutral/repository/TransactionReadRepository.d.ts +0 -7
- package/dist/neutral/repository/TransactionReadRepository.d.ts.map +0 -1
- package/dist/neutral/repository/TransactionRepository.d.ts +0 -13
- package/dist/neutral/repository/TransactionRepository.d.ts.map +0 -1
- package/dist/neutral/repository/TransactionRepositoryIterator.d.ts +0 -7
- package/dist/neutral/repository/TransactionRepositoryIterator.d.ts.map +0 -1
- package/dist/neutral/repository/TransactionWriteRepository.d.ts +0 -6
- package/dist/neutral/repository/TransactionWriteRepository.d.ts.map +0 -1
- package/dist/neutral/repository/index.d.ts +0 -6
- package/dist/neutral/repository/index.d.ts.map +0 -1
- package/dist/neutral/runners/Block.d.ts +0 -17
- package/dist/neutral/runners/Block.d.ts.map +0 -1
- package/dist/neutral/runners/Finalization.d.ts +0 -16
- package/dist/neutral/runners/Finalization.d.ts.map +0 -1
- package/dist/neutral/runners/Mempool.d.ts +0 -27
- package/dist/neutral/runners/Mempool.d.ts.map +0 -1
- package/dist/neutral/runners/index.d.ts +0 -4
- package/dist/neutral/runners/index.d.ts.map +0 -1
- package/dist/neutral/transaction/TransactionBoundWitness.d.ts +0 -2127
- package/dist/neutral/transaction/TransactionBoundWitness.d.ts.map +0 -1
- package/dist/neutral/transaction/TransactionFees.d.ts +0 -138
- package/dist/neutral/transaction/TransactionFees.d.ts.map +0 -1
- package/dist/neutral/transaction/TransactionGasCosts.d.ts +0 -38
- package/dist/neutral/transaction/TransactionGasCosts.d.ts.map +0 -1
- package/dist/neutral/transaction/index.d.ts +0 -4
- package/dist/neutral/transaction/index.d.ts.map +0 -1
- package/dist/neutral/validation/block/BlockValidationFunction.d.ts +0 -8
- package/dist/neutral/validation/block/BlockValidationFunction.d.ts.map +0 -1
- package/dist/neutral/validation/block/HydratedBlockStateValidationFunction.d.ts +0 -22
- package/dist/neutral/validation/block/HydratedBlockStateValidationFunction.d.ts.map +0 -1
- package/dist/neutral/validation/block/HydratedBlockValidationFunction.d.ts +0 -17
- package/dist/neutral/validation/block/HydratedBlockValidationFunction.d.ts.map +0 -1
- package/dist/neutral/validation/block/error.d.ts +0 -22
- package/dist/neutral/validation/block/error.d.ts.map +0 -1
- package/dist/neutral/validation/block/index.d.ts +0 -5
- package/dist/neutral/validation/block/index.d.ts.map +0 -1
- package/dist/neutral/validation/boundwitness/BoundWitnessValidationFunction.d.ts +0 -6
- package/dist/neutral/validation/boundwitness/BoundWitnessValidationFunction.d.ts.map +0 -1
- package/dist/neutral/validation/boundwitness/HydratedBoundWitnessValidationFunction.d.ts +0 -8
- package/dist/neutral/validation/boundwitness/HydratedBoundWitnessValidationFunction.d.ts.map +0 -1
- package/dist/neutral/validation/boundwitness/error.d.ts +0 -13
- package/dist/neutral/validation/boundwitness/error.d.ts.map +0 -1
- package/dist/neutral/validation/boundwitness/index.d.ts +0 -4
- package/dist/neutral/validation/boundwitness/index.d.ts.map +0 -1
- package/dist/neutral/validation/error.d.ts +0 -11
- package/dist/neutral/validation/error.d.ts.map +0 -1
- package/dist/neutral/validation/index.d.ts +0 -6
- package/dist/neutral/validation/index.d.ts.map +0 -1
- package/dist/neutral/validation/payload/InBlockPayloadValidationFunction.d.ts +0 -11
- package/dist/neutral/validation/payload/InBlockPayloadValidationFunction.d.ts.map +0 -1
- package/dist/neutral/validation/payload/error.d.ts +0 -12
- package/dist/neutral/validation/payload/error.d.ts.map +0 -1
- package/dist/neutral/validation/payload/index.d.ts +0 -3
- package/dist/neutral/validation/payload/index.d.ts.map +0 -1
- package/dist/neutral/validation/transaction/HydratedTransactionStateValidationFunction.d.ts +0 -19
- package/dist/neutral/validation/transaction/HydratedTransactionStateValidationFunction.d.ts.map +0 -1
- package/dist/neutral/validation/transaction/HydratedTransactionValidationFunction.d.ts +0 -18
- package/dist/neutral/validation/transaction/HydratedTransactionValidationFunction.d.ts.map +0 -1
- package/dist/neutral/validation/transaction/error.d.ts +0 -8
- package/dist/neutral/validation/transaction/error.d.ts.map +0 -1
- package/dist/neutral/validation/transaction/index.d.ts +0 -4
- package/dist/neutral/validation/transaction/index.d.ts.map +0 -1
- package/dist/neutral/viewers/Block.d.ts +0 -33
- package/dist/neutral/viewers/Block.d.ts.map +0 -1
- package/dist/neutral/viewers/BlockInvalidation.d.ts +0 -69
- package/dist/neutral/viewers/BlockInvalidation.d.ts.map +0 -1
- package/dist/neutral/viewers/BlockReward.d.ts +0 -16
- package/dist/neutral/viewers/BlockReward.d.ts.map +0 -1
- package/dist/neutral/viewers/BlockValidation.d.ts +0 -69
- package/dist/neutral/viewers/BlockValidation.d.ts.map +0 -1
- package/dist/neutral/viewers/ChainContract.d.ts +0 -24
- package/dist/neutral/viewers/ChainContract.d.ts.map +0 -1
- package/dist/neutral/viewers/ChainStakeViewer.d.ts +0 -11
- package/dist/neutral/viewers/ChainStakeViewer.d.ts.map +0 -1
- package/dist/neutral/viewers/Finalization.d.ts +0 -21
- package/dist/neutral/viewers/Finalization.d.ts.map +0 -1
- package/dist/neutral/viewers/Fork.d.ts +0 -9
- package/dist/neutral/viewers/Fork.d.ts.map +0 -1
- package/dist/neutral/viewers/Mempool.d.ts +0 -33
- package/dist/neutral/viewers/Mempool.d.ts.map +0 -1
- package/dist/neutral/viewers/NetworkStake/NetworkStakeViewer.d.ts +0 -17
- package/dist/neutral/viewers/NetworkStake/NetworkStakeViewer.d.ts.map +0 -1
- package/dist/neutral/viewers/NetworkStake/Rewards/ByPositionViewer.d.ts +0 -14
- package/dist/neutral/viewers/NetworkStake/Rewards/ByPositionViewer.d.ts.map +0 -1
- package/dist/neutral/viewers/NetworkStake/Rewards/ByStakerViewer.d.ts +0 -15
- package/dist/neutral/viewers/NetworkStake/Rewards/ByStakerViewer.d.ts.map +0 -1
- package/dist/neutral/viewers/NetworkStake/Rewards/ByStepViewer.d.ts +0 -15
- package/dist/neutral/viewers/NetworkStake/Rewards/ByStepViewer.d.ts.map +0 -1
- package/dist/neutral/viewers/NetworkStake/Rewards/Options.d.ts +0 -20
- package/dist/neutral/viewers/NetworkStake/Rewards/Options.d.ts.map +0 -1
- package/dist/neutral/viewers/NetworkStake/Rewards/TotalViewer.d.ts +0 -15
- package/dist/neutral/viewers/NetworkStake/Rewards/TotalViewer.d.ts.map +0 -1
- package/dist/neutral/viewers/NetworkStake/Rewards/Viewer.d.ts +0 -20
- package/dist/neutral/viewers/NetworkStake/Rewards/Viewer.d.ts.map +0 -1
- package/dist/neutral/viewers/NetworkStake/Rewards/index.d.ts +0 -8
- package/dist/neutral/viewers/NetworkStake/Rewards/index.d.ts.map +0 -1
- package/dist/neutral/viewers/NetworkStake/Rewards/templates/ByIndexMethodsTemplate.d.ts +0 -7
- package/dist/neutral/viewers/NetworkStake/Rewards/templates/ByIndexMethodsTemplate.d.ts.map +0 -1
- package/dist/neutral/viewers/NetworkStake/Rewards/templates/MethodsTemplate.d.ts +0 -10
- package/dist/neutral/viewers/NetworkStake/Rewards/templates/MethodsTemplate.d.ts.map +0 -1
- package/dist/neutral/viewers/NetworkStake/Rewards/templates/index.d.ts +0 -3
- package/dist/neutral/viewers/NetworkStake/Rewards/templates/index.d.ts.map +0 -1
- package/dist/neutral/viewers/NetworkStake/index.d.ts +0 -3
- package/dist/neutral/viewers/NetworkStake/index.d.ts.map +0 -1
- package/dist/neutral/viewers/NetworkStakeStepReward.d.ts +0 -42
- package/dist/neutral/viewers/NetworkStakeStepReward.d.ts.map +0 -1
- package/dist/neutral/viewers/Stake.d.ts +0 -39
- package/dist/neutral/viewers/Stake.d.ts.map +0 -1
- package/dist/neutral/viewers/StakeEvents.d.ts +0 -44
- package/dist/neutral/viewers/StakeEvents.d.ts.map +0 -1
- package/dist/neutral/viewers/StakeIntent.d.ts +0 -17
- package/dist/neutral/viewers/StakeIntent.d.ts.map +0 -1
- package/dist/neutral/viewers/StakeTotals.d.ts +0 -20
- package/dist/neutral/viewers/StakeTotals.d.ts.map +0 -1
- package/dist/neutral/viewers/StepStake.d.ts +0 -15
- package/dist/neutral/viewers/StepStake.d.ts.map +0 -1
- package/dist/neutral/viewers/StepViewer.d.ts +0 -39
- package/dist/neutral/viewers/StepViewer.d.ts.map +0 -1
- package/dist/neutral/viewers/TimeSync.d.ts +0 -22
- package/dist/neutral/viewers/TimeSync.d.ts.map +0 -1
- package/dist/neutral/viewers/Transaction.d.ts +0 -23
- package/dist/neutral/viewers/Transaction.d.ts.map +0 -1
- package/dist/neutral/viewers/TransactionInvalidation.d.ts +0 -67
- package/dist/neutral/viewers/TransactionInvalidation.d.ts.map +0 -1
- package/dist/neutral/viewers/TransactionValidation.d.ts +0 -68
- package/dist/neutral/viewers/TransactionValidation.d.ts.map +0 -1
- package/dist/neutral/viewers/TransferBalance.d.ts +0 -35
- package/dist/neutral/viewers/TransferBalance.d.ts.map +0 -1
- package/dist/neutral/viewers/WindowedBlock.d.ts +0 -19
- package/dist/neutral/viewers/WindowedBlock.d.ts.map +0 -1
- package/dist/neutral/viewers/XyoViewer.d.ts +0 -57
- package/dist/neutral/viewers/XyoViewer.d.ts.map +0 -1
- package/dist/neutral/viewers/index.d.ts +0 -24
- package/dist/neutral/viewers/index.d.ts.map +0 -1
- package/dist/neutral/xl1/AttoXL1.d.ts +0 -15
- package/dist/neutral/xl1/AttoXL1.d.ts.map +0 -1
- package/dist/neutral/xl1/FemtoXL1.d.ts +0 -15
- package/dist/neutral/xl1/FemtoXL1.d.ts.map +0 -1
- package/dist/neutral/xl1/MicroXL1.d.ts +0 -15
- package/dist/neutral/xl1/MicroXL1.d.ts.map +0 -1
- package/dist/neutral/xl1/MilliXL1.d.ts +0 -15
- package/dist/neutral/xl1/MilliXL1.d.ts.map +0 -1
- package/dist/neutral/xl1/NanoXL1.d.ts +0 -15
- package/dist/neutral/xl1/NanoXL1.d.ts.map +0 -1
- package/dist/neutral/xl1/PicoXL1.d.ts +0 -15
- package/dist/neutral/xl1/PicoXL1.d.ts.map +0 -1
- package/dist/neutral/xl1/XL1.d.ts +0 -15
- package/dist/neutral/xl1/XL1.d.ts.map +0 -1
- package/dist/neutral/xl1/XL1Units.d.ts +0 -10
- package/dist/neutral/xl1/XL1Units.d.ts.map +0 -1
- package/dist/neutral/xl1/index.d.ts +0 -9
- package/dist/neutral/xl1/index.d.ts.map +0 -1
- package/dist/neutral/xl1/isXL1Factory.d.ts +0 -12
- package/dist/neutral/xl1/isXL1Factory.d.ts.map +0 -1
- package/dist/neutral/xl1/xl1MaxValue.d.ts +0 -3
- package/dist/neutral/xl1/xl1MaxValue.d.ts.map +0 -1
- package/src/BlockNumber/BlockNumber.ts +0 -24
- package/src/BlockNumber/EthBlockNumber.ts +0 -25
- package/src/BlockNumber/Numberish.ts +0 -9
- package/src/BlockNumber/XL1BlockNumber.ts +0 -25
- package/src/BlockNumber/index.ts +0 -4
- package/src/Initializable.ts +0 -13
- package/src/OpenTelemetryProviders.ts +0 -7
- package/src/RecordKeyType.ts +0 -5
- package/src/Step/StepHash.ts +0 -10
- package/src/Step/StepIdentity.ts +0 -46
- package/src/Step/StepSizes.ts +0 -47
- package/src/Step/index.ts +0 -3
- package/src/TransferPayload.ts +0 -35
- package/src/amount/ShiftedBigIntConfig.ts +0 -8
- package/src/amount/XL1AmountInstance.ts +0 -19
- package/src/amount/index.ts +0 -2
- package/src/block/AllowedBlockPayload.ts +0 -73
- package/src/block/BlockBoundWitness.ts +0 -72
- package/src/block/HydratedBlock.ts +0 -135
- package/src/block/index.ts +0 -5
- package/src/block/signed/SignedBlockBoundWitness.ts +0 -22
- package/src/block/signed/SignedBlockBoundWitnessWithHashMeta.ts +0 -35
- package/src/block/signed/SignedBlockBoundWitnessWithStorageMeta.ts +0 -41
- package/src/block/signed/index.ts +0 -3
- package/src/block/unsigned/UnsignedBlockBoundWitness.ts +0 -22
- package/src/block/unsigned/index.ts +0 -1
- package/src/chain/Chain.ts +0 -7
- package/src/chain/ChainAnalyzer.ts +0 -11
- package/src/chain/ChainId.ts +0 -4
- package/src/chain/index.ts +0 -3
- package/src/fields/Addressable.ts +0 -7
- package/src/fields/BlockDuration.ts +0 -25
- package/src/fields/BlockNumber.ts +0 -40
- package/src/fields/ChainReference.ts +0 -11
- package/src/fields/index.ts +0 -4
- package/src/map/AsyncMap.ts +0 -38
- package/src/map/MapType.ts +0 -27
- package/src/map/SyncMap.ts +0 -38
- package/src/map/index.ts +0 -3
- package/src/model/AccountBalance.ts +0 -58
- package/src/model/ArrayBuffer.ts +0 -44
- package/src/model/BlockRange/BlockRange.ts +0 -43
- package/src/model/BlockRange/EthBlockRange.ts +0 -43
- package/src/model/BlockRange/Numberish.ts +0 -6
- package/src/model/BlockRange/Range.ts +0 -17
- package/src/model/BlockRange/XL1BlockRange.ts +0 -43
- package/src/model/BlockRange/index.ts +0 -4
- package/src/model/BlockRate.ts +0 -108
- package/src/model/ChainQualification.ts +0 -48
- package/src/model/Context/BaseContext.ts +0 -6
- package/src/model/Context/BaseContext.zod.ts +0 -36
- package/src/model/Context/BlockContext.ts +0 -12
- package/src/model/Context/BlockContext.zod.ts +0 -20
- package/src/model/Context/CachingContext.ts +0 -6
- package/src/model/Context/CachingContext.zod.ts +0 -4
- package/src/model/Context/ChainContext.ts +0 -12
- package/src/model/Context/ChainContext.zod.ts +0 -17
- package/src/model/Context/HeadContext.ts +0 -6
- package/src/model/Context/HeadContext.zod.ts +0 -13
- package/src/model/Context/index.ts +0 -10
- package/src/model/GatewayName.ts +0 -4
- package/src/model/HydratedTransaction.ts +0 -169
- package/src/model/OpCodes.ts +0 -2
- package/src/model/PayloadMap.ts +0 -13
- package/src/model/Permission.ts +0 -29
- package/src/model/Position.ts +0 -21
- package/src/model/PositionId.ts +0 -4
- package/src/model/RangeMultipliers.ts +0 -13
- package/src/model/RewardShare.ts +0 -2
- package/src/model/RewardsRangeOptions.ts +0 -13
- package/src/model/Sequence.ts +0 -21
- package/src/model/Stake.ts +0 -47
- package/src/model/StakeShare.ts +0 -2
- package/src/model/TimeDomain.ts +0 -8
- package/src/model/TransferPair.ts +0 -7
- package/src/model/addresses.ts +0 -36
- package/src/model/defaultRewardRatio.ts +0 -3
- package/src/model/defaultTransactionFees.ts +0 -11
- package/src/model/index.ts +0 -27
- package/src/model/minTransactionFees.ts +0 -10
- package/src/model/rewards.ts +0 -18
- package/src/model/spec/fixtures/index.ts +0 -2
- package/src/model/spec/fixtures/signedHydratedTransaction.ts +0 -58
- package/src/model/spec/fixtures/unsignedHydratedTransaction.ts +0 -62
- package/src/model/version.ts +0 -10
- package/src/network/NetworkId.ts +0 -6
- package/src/network/Status.ts +0 -30
- package/src/network/index.ts +0 -2
- package/src/payload/StepIdentityPayload.ts +0 -25
- package/src/payload/elevatable/Bridge/BridgeCompletion.ts +0 -28
- package/src/payload/elevatable/Bridge/BridgeDestinationObservation.ts +0 -38
- package/src/payload/elevatable/Bridge/BridgeDetails.ts +0 -69
- package/src/payload/elevatable/Bridge/BridgeIntent.ts +0 -36
- package/src/payload/elevatable/Bridge/BridgeSourceObservation.ts +0 -37
- package/src/payload/elevatable/Bridge/index.ts +0 -5
- package/src/payload/elevatable/ChainStakeIntent.ts +0 -45
- package/src/payload/elevatable/Executable.ts +0 -35
- package/src/payload/elevatable/Hash.ts +0 -25
- package/src/payload/elevatable/StepComplete.ts +0 -31
- package/src/payload/elevatable/Time.ts +0 -61
- package/src/payload/elevatable/index.ts +0 -6
- package/src/payload/index.ts +0 -2
- package/src/permissions/InvokerPermission.ts +0 -58
- package/src/permissions/XyoPermissions.ts +0 -41
- package/src/permissions/index.ts +0 -2
- package/src/provider/Provider.ts +0 -6
- package/src/provider/ProviderMoniker.ts +0 -15
- package/src/provider/index.ts +0 -2
- package/src/providers/DataLake/Provider.ts +0 -12
- package/src/providers/DataLake/Runner.ts +0 -16
- package/src/providers/DataLake/Viewer.ts +0 -16
- package/src/providers/DataLake/index.ts +0 -3
- package/src/providers/TransactionHelper.ts +0 -16
- package/src/providers/XyoClient.ts +0 -26
- package/src/providers/XyoConnection.ts +0 -19
- package/src/providers/XyoGateway.ts +0 -23
- package/src/providers/XyoGatewayRunner.ts +0 -76
- package/src/providers/XyoNetwork.ts +0 -8
- package/src/providers/XyoRunner.ts +0 -20
- package/src/providers/index.ts +0 -8
- package/src/providers/signer/XyoSigner.ts +0 -39
- package/src/providers/signer/index.ts +0 -1
- package/src/repository/Repository.ts +0 -32
- package/src/repository/TransactionReadRepository.ts +0 -6
- package/src/repository/TransactionRepository.ts +0 -12
- package/src/repository/TransactionRepositoryIterator.ts +0 -6
- package/src/repository/TransactionWriteRepository.ts +0 -5
- package/src/repository/index.ts +0 -5
- package/src/runners/Block.ts +0 -22
- package/src/runners/Finalization.ts +0 -19
- package/src/runners/Mempool.ts +0 -32
- package/src/runners/index.ts +0 -3
- package/src/transaction/TransactionBoundWitness.ts +0 -187
- package/src/transaction/TransactionFees.ts +0 -73
- package/src/transaction/TransactionGasCosts.ts +0 -42
- package/src/transaction/index.ts +0 -3
- package/src/validation/block/BlockValidationFunction.ts +0 -13
- package/src/validation/block/HydratedBlockStateValidationFunction.ts +0 -31
- package/src/validation/block/HydratedBlockValidationFunction.ts +0 -22
- package/src/validation/block/error.ts +0 -50
- package/src/validation/block/index.ts +0 -4
- package/src/validation/boundwitness/BoundWitnessValidationFunction.ts +0 -9
- package/src/validation/boundwitness/HydratedBoundWitnessValidationFunction.ts +0 -15
- package/src/validation/boundwitness/error.ts +0 -29
- package/src/validation/boundwitness/index.ts +0 -3
- package/src/validation/error.ts +0 -25
- package/src/validation/index.ts +0 -5
- package/src/validation/payload/InBlockPayloadValidationFunction.ts +0 -17
- package/src/validation/payload/error.ts +0 -24
- package/src/validation/payload/index.ts +0 -2
- package/src/validation/transaction/HydratedTransactionStateValidationFunction.ts +0 -27
- package/src/validation/transaction/HydratedTransactionValidationFunction.ts +0 -23
- package/src/validation/transaction/error.ts +0 -15
- package/src/validation/transaction/index.ts +0 -3
- package/src/viewers/Block.ts +0 -44
- package/src/viewers/BlockInvalidation.ts +0 -80
- package/src/viewers/BlockReward.ts +0 -19
- package/src/viewers/BlockValidation.ts +0 -80
- package/src/viewers/ChainContract.ts +0 -29
- package/src/viewers/ChainStakeViewer.ts +0 -14
- package/src/viewers/Finalization.ts +0 -24
- package/src/viewers/Fork.ts +0 -11
- package/src/viewers/Mempool.ts +0 -41
- package/src/viewers/NetworkStake/NetworkStakeViewer.ts +0 -20
- package/src/viewers/NetworkStake/Rewards/ByPositionViewer.ts +0 -18
- package/src/viewers/NetworkStake/Rewards/ByStakerViewer.ts +0 -20
- package/src/viewers/NetworkStake/Rewards/ByStepViewer.ts +0 -18
- package/src/viewers/NetworkStake/Rewards/Options.ts +0 -24
- package/src/viewers/NetworkStake/Rewards/TotalViewer.ts +0 -17
- package/src/viewers/NetworkStake/Rewards/Viewer.ts +0 -21
- package/src/viewers/NetworkStake/Rewards/index.ts +0 -7
- package/src/viewers/NetworkStake/Rewards/templates/ByIndexMethodsTemplate.ts +0 -7
- package/src/viewers/NetworkStake/Rewards/templates/MethodsTemplate.ts +0 -10
- package/src/viewers/NetworkStake/Rewards/templates/index.ts +0 -2
- package/src/viewers/NetworkStake/index.ts +0 -4
- package/src/viewers/NetworkStakeStepReward.ts +0 -83
- package/src/viewers/Stake.ts +0 -45
- package/src/viewers/StakeEvents.ts +0 -55
- package/src/viewers/StakeIntent.ts +0 -22
- package/src/viewers/StakeTotals.ts +0 -22
- package/src/viewers/StepStake.ts +0 -28
- package/src/viewers/StepViewer.ts +0 -57
- package/src/viewers/TimeSync.ts +0 -27
- package/src/viewers/Transaction.ts +0 -27
- package/src/viewers/TransactionInvalidation.ts +0 -70
- package/src/viewers/TransactionValidation.ts +0 -71
- package/src/viewers/TransferBalance.ts +0 -39
- package/src/viewers/WindowedBlock.ts +0 -22
- package/src/viewers/XyoViewer.ts +0 -74
- package/src/viewers/index.ts +0 -23
- package/src/xl1/AttoXL1.ts +0 -19
- package/src/xl1/FemtoXL1.ts +0 -20
- package/src/xl1/MicroXL1.ts +0 -20
- package/src/xl1/MilliXL1.ts +0 -20
- package/src/xl1/NanoXL1.ts +0 -20
- package/src/xl1/PicoXL1.ts +0 -20
- package/src/xl1/XL1.ts +0 -20
- package/src/xl1/XL1Units.ts +0 -26
- package/src/xl1/index.ts +0 -8
- package/src/xl1/isXL1Factory.ts +0 -56
- package/src/xl1/xl1MaxValue.ts +0 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/xl1-protocol",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "XYO Layer One Protocol",
|
|
3
|
+
"version": "1.26.1",
|
|
4
|
+
"description": "XYO Layer One Protocol - All Protocol Packages",
|
|
5
5
|
"homepage": "https://xylabs.com",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "git+https://github.com/xylabs/xyo-chain/issues",
|
|
@@ -37,34 +37,37 @@
|
|
|
37
37
|
"!**/*.spec.*",
|
|
38
38
|
"!**/*.test.*"
|
|
39
39
|
],
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@xyo-network/xl1-network-model": "~1.26.1",
|
|
42
|
+
"@xyo-network/xl1-protocol-lib": "~1.26.1",
|
|
43
|
+
"@xyo-network/xl1-protocol-model": "~1.26.1",
|
|
44
|
+
"@xyo-network/xl1-schema": "~1.26.1",
|
|
45
|
+
"@xyo-network/xl1-validation": "~1.26.1"
|
|
46
|
+
},
|
|
40
47
|
"devDependencies": {
|
|
41
48
|
"@opentelemetry/api": "^1.9.0",
|
|
42
|
-
"@types/node": "^25.5.0",
|
|
43
49
|
"@xylabs/sdk-js": "^5.0.86",
|
|
44
50
|
"@xylabs/ts-scripts-yarn3": "~7.4.25",
|
|
45
51
|
"@xylabs/tsconfig": "~7.4.25",
|
|
46
52
|
"@xyo-network/sdk-js": "^5.3.16",
|
|
47
|
-
"
|
|
48
|
-
"
|
|
53
|
+
"@xyo-network/xl1-protocol-sdk": "~1.26.1",
|
|
54
|
+
"ajv": "~8.18.0",
|
|
55
|
+
"axios": "^1.13.6",
|
|
56
|
+
"dotenv": "~17.3.1",
|
|
57
|
+
"ethers": "^6.16.0",
|
|
49
58
|
"typescript": "~5.9.3",
|
|
50
59
|
"vitest": "~4.1.1",
|
|
51
60
|
"zod": "~4.3.6"
|
|
52
61
|
},
|
|
53
62
|
"peerDependencies": {
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"@xyo-network/sdk-js": "^5",
|
|
57
|
-
"zod": "^4"
|
|
63
|
+
"axios": "^1",
|
|
64
|
+
"ethers": "^6"
|
|
58
65
|
},
|
|
59
|
-
"packageManager": "yarn@4.
|
|
66
|
+
"packageManager": "yarn@4.12.0",
|
|
60
67
|
"engines": {
|
|
61
68
|
"node": ">=22.3 <23"
|
|
62
69
|
},
|
|
63
70
|
"engineStrict": true,
|
|
64
|
-
"volta": {
|
|
65
|
-
"node": "22.3.0",
|
|
66
|
-
"yarn": "4.9.2"
|
|
67
|
-
},
|
|
68
71
|
"publishConfig": {
|
|
69
72
|
"access": "public"
|
|
70
73
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from './fields/index.ts'
|
|
6
|
-
export * from './Initializable.ts'
|
|
7
|
-
export * from './map/index.ts'
|
|
8
|
-
export * from './model/index.ts'
|
|
9
|
-
export * from './model/index.ts'
|
|
10
|
-
export * from './network/index.ts'
|
|
11
|
-
export * from './OpenTelemetryProviders.ts'
|
|
12
|
-
export * from './payload/index.ts'
|
|
13
|
-
export * from './permissions/index.ts'
|
|
14
|
-
export * from './provider/index.ts'
|
|
15
|
-
export * from './providers/index.ts'
|
|
16
|
-
export * from './RecordKeyType.ts'
|
|
17
|
-
export * from './repository/index.ts'
|
|
18
|
-
export * from './runners/index.ts'
|
|
19
|
-
export * from './Step/index.ts'
|
|
20
|
-
export * from './transaction/index.ts'
|
|
21
|
-
export * from './TransferPayload.ts'
|
|
22
|
-
export * from './validation/index.ts'
|
|
23
|
-
export * from './viewers/index.ts'
|
|
24
|
-
export * from './xl1/index.ts'
|
|
1
|
+
export * from '@xyo-network/xl1-network-model'
|
|
2
|
+
export * from '@xyo-network/xl1-protocol-lib'
|
|
3
|
+
export * from '@xyo-network/xl1-schema'
|
|
4
|
+
export * from '@xyo-network/xl1-validation'
|
package/LICENSE
DELETED
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
-
Version 3, 29 June 2007
|
|
3
|
-
|
|
4
|
-
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
|
-
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
-
of this license document, but changing it is not allowed.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
This version of the GNU Lesser General Public License incorporates
|
|
10
|
-
the terms and conditions of version 3 of the GNU General Public
|
|
11
|
-
License, supplemented by the additional permissions listed below.
|
|
12
|
-
|
|
13
|
-
0. Additional Definitions.
|
|
14
|
-
|
|
15
|
-
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
16
|
-
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
17
|
-
General Public License.
|
|
18
|
-
|
|
19
|
-
"The Library" refers to a covered work governed by this License,
|
|
20
|
-
other than an Application or a Combined Work as defined below.
|
|
21
|
-
|
|
22
|
-
An "Application" is any work that makes use of an interface provided
|
|
23
|
-
by the Library, but which is not otherwise based on the Library.
|
|
24
|
-
Defining a subclass of a class defined by the Library is deemed a mode
|
|
25
|
-
of using an interface provided by the Library.
|
|
26
|
-
|
|
27
|
-
A "Combined Work" is a work produced by combining or linking an
|
|
28
|
-
Application with the Library. The particular version of the Library
|
|
29
|
-
with which the Combined Work was made is also called the "Linked
|
|
30
|
-
Version".
|
|
31
|
-
|
|
32
|
-
The "Minimal Corresponding Source" for a Combined Work means the
|
|
33
|
-
Corresponding Source for the Combined Work, excluding any source code
|
|
34
|
-
for portions of the Combined Work that, considered in isolation, are
|
|
35
|
-
based on the Application, and not on the Linked Version.
|
|
36
|
-
|
|
37
|
-
The "Corresponding Application Code" for a Combined Work means the
|
|
38
|
-
object code and/or source code for the Application, including any data
|
|
39
|
-
and utility programs needed for reproducing the Combined Work from the
|
|
40
|
-
Application, but excluding the System Libraries of the Combined Work.
|
|
41
|
-
|
|
42
|
-
1. Exception to Section 3 of the GNU GPL.
|
|
43
|
-
|
|
44
|
-
You may convey a covered work under sections 3 and 4 of this License
|
|
45
|
-
without being bound by section 3 of the GNU GPL.
|
|
46
|
-
|
|
47
|
-
2. Conveying Modified Versions.
|
|
48
|
-
|
|
49
|
-
If you modify a copy of the Library, and, in your modifications, a
|
|
50
|
-
facility refers to a function or data to be supplied by an Application
|
|
51
|
-
that uses the facility (other than as an argument passed when the
|
|
52
|
-
facility is invoked), then you may convey a copy of the modified
|
|
53
|
-
version:
|
|
54
|
-
|
|
55
|
-
a) under this License, provided that you make a good faith effort to
|
|
56
|
-
ensure that, in the event an Application does not supply the
|
|
57
|
-
function or data, the facility still operates, and performs
|
|
58
|
-
whatever part of its purpose remains meaningful, or
|
|
59
|
-
|
|
60
|
-
b) under the GNU GPL, with none of the additional permissions of
|
|
61
|
-
this License applicable to that copy.
|
|
62
|
-
|
|
63
|
-
3. Object Code Incorporating Material from Library Header Files.
|
|
64
|
-
|
|
65
|
-
The object code form of an Application may incorporate material from
|
|
66
|
-
a header file that is part of the Library. You may convey such object
|
|
67
|
-
code under terms of your choice, provided that, if the incorporated
|
|
68
|
-
material is not limited to numerical parameters, data structure
|
|
69
|
-
layouts and accessors, or small macros, inline functions and templates
|
|
70
|
-
(ten or fewer lines in length), you do both of the following:
|
|
71
|
-
|
|
72
|
-
a) Give prominent notice with each copy of the object code that the
|
|
73
|
-
Library is used in it and that the Library and its use are
|
|
74
|
-
covered by this License.
|
|
75
|
-
|
|
76
|
-
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
77
|
-
document.
|
|
78
|
-
|
|
79
|
-
4. Combined Works.
|
|
80
|
-
|
|
81
|
-
You may convey a Combined Work under terms of your choice that,
|
|
82
|
-
taken together, effectively do not restrict modification of the
|
|
83
|
-
portions of the Library contained in the Combined Work and reverse
|
|
84
|
-
engineering for debugging such modifications, if you also do each of
|
|
85
|
-
the following:
|
|
86
|
-
|
|
87
|
-
a) Give prominent notice with each copy of the Combined Work that
|
|
88
|
-
the Library is used in it and that the Library and its use are
|
|
89
|
-
covered by this License.
|
|
90
|
-
|
|
91
|
-
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
92
|
-
document.
|
|
93
|
-
|
|
94
|
-
c) For a Combined Work that displays copyright notices during
|
|
95
|
-
execution, include the copyright notice for the Library among
|
|
96
|
-
these notices, as well as a reference directing the user to the
|
|
97
|
-
copies of the GNU GPL and this license document.
|
|
98
|
-
|
|
99
|
-
d) Do one of the following:
|
|
100
|
-
|
|
101
|
-
0) Convey the Minimal Corresponding Source under the terms of this
|
|
102
|
-
License, and the Corresponding Application Code in a form
|
|
103
|
-
suitable for, and under terms that permit, the user to
|
|
104
|
-
recombine or relink the Application with a modified version of
|
|
105
|
-
the Linked Version to produce a modified Combined Work, in the
|
|
106
|
-
manner specified by section 6 of the GNU GPL for conveying
|
|
107
|
-
Corresponding Source.
|
|
108
|
-
|
|
109
|
-
1) Use a suitable shared library mechanism for linking with the
|
|
110
|
-
Library. A suitable mechanism is one that (a) uses at run time
|
|
111
|
-
a copy of the Library already present on the user's computer
|
|
112
|
-
system, and (b) will operate properly with a modified version
|
|
113
|
-
of the Library that is interface-compatible with the Linked
|
|
114
|
-
Version.
|
|
115
|
-
|
|
116
|
-
e) Provide Installation Information, but only if you would otherwise
|
|
117
|
-
be required to provide such information under section 6 of the
|
|
118
|
-
GNU GPL, and only to the extent that such information is
|
|
119
|
-
necessary to install and execute a modified version of the
|
|
120
|
-
Combined Work produced by recombining or relinking the
|
|
121
|
-
Application with a modified version of the Linked Version. (If
|
|
122
|
-
you use option 4d0, the Installation Information must accompany
|
|
123
|
-
the Minimal Corresponding Source and Corresponding Application
|
|
124
|
-
Code. If you use option 4d1, you must provide the Installation
|
|
125
|
-
Information in the manner specified by section 6 of the GNU GPL
|
|
126
|
-
for conveying Corresponding Source.)
|
|
127
|
-
|
|
128
|
-
5. Combined Libraries.
|
|
129
|
-
|
|
130
|
-
You may place library facilities that are a work based on the
|
|
131
|
-
Library side by side in a single library together with other library
|
|
132
|
-
facilities that are not Applications and are not covered by this
|
|
133
|
-
License, and convey such a combined library under terms of your
|
|
134
|
-
choice, if you do both of the following:
|
|
135
|
-
|
|
136
|
-
a) Accompany the combined library with a copy of the same work based
|
|
137
|
-
on the Library, uncombined with any other library facilities,
|
|
138
|
-
conveyed under the terms of this License.
|
|
139
|
-
|
|
140
|
-
b) Give prominent notice with the combined library that part of it
|
|
141
|
-
is a work based on the Library, and explaining where to find the
|
|
142
|
-
accompanying uncombined form of the same work.
|
|
143
|
-
|
|
144
|
-
6. Revised Versions of the GNU Lesser General Public License.
|
|
145
|
-
|
|
146
|
-
The Free Software Foundation may publish revised and/or new versions
|
|
147
|
-
of the GNU Lesser General Public License from time to time. Such new
|
|
148
|
-
versions will be similar in spirit to the present version, but may
|
|
149
|
-
differ in detail to address new problems or concerns.
|
|
150
|
-
|
|
151
|
-
Each version is given a distinguishing version number. If the
|
|
152
|
-
Library as you received it specifies that a certain numbered version
|
|
153
|
-
of the GNU Lesser General Public License "or any later version"
|
|
154
|
-
applies to it, you have the option of following the terms and
|
|
155
|
-
conditions either of that published version or of any later version
|
|
156
|
-
published by the Free Software Foundation. If the Library as you
|
|
157
|
-
received it does not specify a version number of the GNU Lesser
|
|
158
|
-
General Public License, you may choose any version of the GNU Lesser
|
|
159
|
-
General Public License ever published by the Free Software Foundation.
|
|
160
|
-
|
|
161
|
-
If the Library as you received it specifies that a proxy can decide
|
|
162
|
-
whether future versions of the GNU Lesser General Public License shall
|
|
163
|
-
apply, that proxy's public statement of acceptance of any version is
|
|
164
|
-
permanent authorization for you to choose that version for the
|
|
165
|
-
Library.
|
package/README.md
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
[![logo][]](https://xyo-network)
|
|
2
|
-
|
|
3
|
-
# @xyo-network/xl1-protocol
|
|
4
|
-
|
|
5
|
-
[![main-build][]][main-build-link]
|
|
6
|
-
[![npm-badge][]][npm-link]
|
|
7
|
-
[![npm-downloads-badge][]][npm-link]
|
|
8
|
-
[![jsdelivr-badge][]][jsdelivr-link]
|
|
9
|
-
[![npm-license-badge][]](LICENSE)
|
|
10
|
-
[![socket-badge][]][socket-link]
|
|
11
|
-
|
|
12
|
-
## Table of Contents
|
|
13
|
-
|
|
14
|
-
- [Description](#description)
|
|
15
|
-
- [Install](#install)
|
|
16
|
-
- [Scripts](#scripts)
|
|
17
|
-
- [Maintainers](#maintainers)
|
|
18
|
-
- [License](#license)
|
|
19
|
-
- [Credits](#credits)
|
|
20
|
-
|
|
21
|
-
## Description
|
|
22
|
-
|
|
23
|
-
Official Definition of the XL1 Protocol - Types and Constants
|
|
24
|
-
|
|
25
|
-
## Install
|
|
26
|
-
|
|
27
|
-
Using npm:
|
|
28
|
-
|
|
29
|
-
```sh
|
|
30
|
-
npm i --save @xyo-network/xl1-protocol
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
Using yarn:
|
|
34
|
-
|
|
35
|
-
```sh
|
|
36
|
-
yarn add @xyo-network/xl1-protocol
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
## Build Scripts
|
|
40
|
-
|
|
41
|
-
Using npm:
|
|
42
|
-
|
|
43
|
-
```sh
|
|
44
|
-
npm xy --help
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
Using yarn:
|
|
48
|
-
|
|
49
|
-
```sh
|
|
50
|
-
yarn xy --help
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## Maintainers
|
|
54
|
-
|
|
55
|
-
- [Arie Trouw](https://github.com/arietrouw) ([arietrouw.com](https://arietrouw.com))
|
|
56
|
-
- [Matt Jones](https://github.com/jonesmac)
|
|
57
|
-
- [Joel Carter](https://github.com/JoelBCarter)
|
|
58
|
-
- [Jordan Trouw](https://github.com/jordantrouw)
|
|
59
|
-
|
|
60
|
-
## License
|
|
61
|
-
|
|
62
|
-
See the [LICENSE](LICENSE) file for license details
|
|
63
|
-
|
|
64
|
-
## Credits
|
|
65
|
-
|
|
66
|
-
[Made with 🔥 and ❄️ by XY Labs](https://xylabs.com)
|
|
67
|
-
|
|
68
|
-
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
69
|
-
[main-build]: https://github.com/XYOracleNetwork/xl1-protocol/actions/workflows/build.yml/badge.svg
|
|
70
|
-
[main-build-link]: https://github.com/XYOracleNetwork/xl1-protocol/actions/workflows/build.yml
|
|
71
|
-
[npm-badge]: https://img.shields.io/npm/v/@xyo-network/xl1-protocol.svg
|
|
72
|
-
[npm-link]: https://www.npmjs.com/package/@xyo-network/xl1-protocol
|
|
73
|
-
|
|
74
|
-
[npm-downloads-badge]: https://img.shields.io/npm/dw/@xyo-network/xl1-protocol
|
|
75
|
-
[npm-license-badge]: https://img.shields.io/npm/l/@xyo-network/xl1-protocol
|
|
76
|
-
|
|
77
|
-
[jsdelivr-badge]: https://data.jsdelivr.com/v1/package/npm/@xyo-network/xl1-protocol/badge
|
|
78
|
-
[jsdelivr-link]: https://www.jsdelivr.com/package/npm/@xyo-network/xl1-protocol
|
|
79
|
-
|
|
80
|
-
[socket-badge]: https://socket.dev/api/badge/npm/package/@xyo-network/xl1-protocol
|
|
81
|
-
[socket-link]: https://socket.dev/npm/package/@xyo-network/xl1-protocol
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { type Brand } from '@xylabs/sdk-js';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
/** Branded number type representing a generic block number */
|
|
4
|
-
export type BlockNumber = Brand<number, {
|
|
5
|
-
readonly __blockNumber: true;
|
|
6
|
-
}>;
|
|
7
|
-
/** Zod schema that validates and brands a number as a BlockNumber */
|
|
8
|
-
export declare const BlockNumberZod: z.ZodPipe<z.ZodNumber, z.ZodTransform<BlockNumber, number>>;
|
|
9
|
-
/** Zod schema that coerces a Numberish value into a BlockNumber */
|
|
10
|
-
export declare const BlockNumberishZod: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>, z.ZodNumber>, z.ZodTransform<BlockNumber, number>>;
|
|
11
|
-
/** Input type for BlockNumberishZod, accepting number, string, or bigint */
|
|
12
|
-
export type BlockNumberish = z.input<typeof BlockNumberishZod>;
|
|
13
|
-
/** Casts a number to BlockNumber, returning undefined if validation fails */
|
|
14
|
-
export declare const asBlockNumber: {
|
|
15
|
-
<T>(value: T): (T & number & {
|
|
16
|
-
readonly __blockNumber: true;
|
|
17
|
-
}) | undefined;
|
|
18
|
-
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & number & {
|
|
19
|
-
readonly __blockNumber: true;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
/** Coerces a Numberish value to BlockNumber, returning undefined if conversion fails */
|
|
23
|
-
export declare const toBlockNumber: {
|
|
24
|
-
<T>(value: T): (T & number & {
|
|
25
|
-
readonly __blockNumber: true;
|
|
26
|
-
}) | undefined;
|
|
27
|
-
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & number & {
|
|
28
|
-
readonly __blockNumber: true;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
/** The zero block number constant */
|
|
32
|
-
export declare const BLOCK_NUMBER_ZERO: (0 & {
|
|
33
|
-
readonly __blockNumber: true;
|
|
34
|
-
}) | undefined;
|
|
35
|
-
//# sourceMappingURL=BlockNumber.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockNumber.d.ts","sourceRoot":"","sources":["../../../src/BlockNumber/BlockNumber.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,8DAA8D;AAC9D,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,EAAE;IAAE,QAAQ,CAAC,aAAa,EAAE,IAAI,CAAA;CAAE,CAAC,CAAA;AAEzE,qEAAqE;AACrE,eAAO,MAAM,cAAc,6DAA8C,CAAA;AACzE,mEAAmE;AACnE,eAAO,MAAM,iBAAiB,mMAAgD,CAAA;AAE9E,4EAA4E;AAC5E,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE9D,6EAA6E;AAC7E,eAAO,MAAM,aAAa;;gCAXwC,IAAI;;;gCAAJ,IAAI;;CAWiB,CAAA;AACvF,wFAAwF;AACxF,eAAO,MAAM,aAAa;;gCAbwC,IAAI;;;gCAAJ,IAAI;;CAaoB,CAAA;AAE1F,qCAAqC;AACrC,eAAO,MAAM,iBAAiB;4BAhBoC,IAAI;cAgBrB,CAAA"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { type Brand } from '@xylabs/sdk-js';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import type { BlockNumber } from './BlockNumber.ts';
|
|
4
|
-
/** Branded type representing a block number on the Ethereum chain */
|
|
5
|
-
export type EthBlockNumber = Brand<BlockNumber, {
|
|
6
|
-
readonly __ethBlockNumber: true;
|
|
7
|
-
}>;
|
|
8
|
-
/** Zod schema that validates and brands a number as an EthBlockNumber */
|
|
9
|
-
export declare const EthBlockNumberZod: z.ZodPipe<z.ZodNumber, z.ZodTransform<EthBlockNumber, number>>;
|
|
10
|
-
/** Zod schema that coerces a Numberish value into an EthBlockNumber */
|
|
11
|
-
export declare const EthBlockNumberishZod: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>, z.ZodNumber>, z.ZodTransform<BlockNumber, number>>, z.ZodTransform<EthBlockNumber, BlockNumber>>;
|
|
12
|
-
/** Input type for EthBlockNumberishZod, accepting number, string, or bigint */
|
|
13
|
-
export type EthBlockNumberish = z.input<typeof EthBlockNumberishZod>;
|
|
14
|
-
/** Casts a number to EthBlockNumber, returning undefined if validation fails */
|
|
15
|
-
export declare const asEthBlockNumber: {
|
|
16
|
-
<T>(value: T): (T & number & {
|
|
17
|
-
readonly __blockNumber: true;
|
|
18
|
-
} & {
|
|
19
|
-
readonly __ethBlockNumber: true;
|
|
20
|
-
}) | undefined;
|
|
21
|
-
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & number & {
|
|
22
|
-
readonly __blockNumber: true;
|
|
23
|
-
} & {
|
|
24
|
-
readonly __ethBlockNumber: true;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
/** Coerces a Numberish value to EthBlockNumber, returning undefined if conversion fails */
|
|
28
|
-
export declare const toEthBlockNumber: {
|
|
29
|
-
<T>(value: T): (T & number & {
|
|
30
|
-
readonly __blockNumber: true;
|
|
31
|
-
} & {
|
|
32
|
-
readonly __ethBlockNumber: true;
|
|
33
|
-
}) | undefined;
|
|
34
|
-
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & number & {
|
|
35
|
-
readonly __blockNumber: true;
|
|
36
|
-
} & {
|
|
37
|
-
readonly __ethBlockNumber: true;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
/** The zero block number constant for the Ethereum chain */
|
|
41
|
-
export declare const ETH_BLOCK_NUMBER_ZERO: (0 & {
|
|
42
|
-
readonly __blockNumber: true;
|
|
43
|
-
} & {
|
|
44
|
-
readonly __ethBlockNumber: true;
|
|
45
|
-
}) | undefined;
|
|
46
|
-
//# sourceMappingURL=EthBlockNumber.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EthBlockNumber.d.ts","sourceRoot":"","sources":["../../../src/BlockNumber/EthBlockNumber.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAGnD,qEAAqE;AACrE,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,EAAE;IAAE,QAAQ,CAAC,gBAAgB,EAAE,IAAI,CAAA;CAAE,CAAC,CAAA;AAEpF,yEAAyE;AACzE,eAAO,MAAM,iBAAiB,gEAAiD,CAAA;AAC/E,uEAAuE;AACvE,eAAO,MAAM,oBAAoB,2PAAwD,CAAA;AAEzF,+EAA+E;AAC/E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEpE,gFAAgF;AAChF,eAAO,MAAM,gBAAgB;;;;mCAXgD,IAAI;;;;;mCAAJ,IAAI;;CAWkB,CAAA;AACnG,2FAA2F;AAC3F,eAAO,MAAM,gBAAgB;;;;mCAbgD,IAAI;;;;;mCAAJ,IAAI;;CAaqB,CAAA;AAEtG,4DAA4D;AAC5D,eAAO,MAAM,qBAAqB;;;+BAhB2C,IAAI;cAgBzB,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/** Zod schema that accepts number, string, or bigint and coerces to number */
|
|
3
|
-
export declare const NumberishZod: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>, z.ZodNumber>;
|
|
4
|
-
/** A value that can be coerced to a number: number, string, or bigint */
|
|
5
|
-
export type Numberish = z.input<typeof NumberishZod>;
|
|
6
|
-
//# sourceMappingURL=Numberish.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Numberish.d.ts","sourceRoot":"","sources":["../../../src/BlockNumber/Numberish.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,8EAA8E;AAC9E,eAAO,MAAM,YAAY,mJAEN,CAAA;AAEnB,yEAAyE;AACzE,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { type Brand } from '@xylabs/sdk-js';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import type { BlockNumber } from './BlockNumber.ts';
|
|
4
|
-
/** Branded type representing a block number on the XL1 chain */
|
|
5
|
-
export type XL1BlockNumber = Brand<BlockNumber, {
|
|
6
|
-
readonly __xl1BlockNumber: true;
|
|
7
|
-
}>;
|
|
8
|
-
/** Zod schema that validates and brands a number as an XL1BlockNumber */
|
|
9
|
-
export declare const XL1BlockNumberZod: z.ZodPipe<z.ZodNumber, z.ZodTransform<XL1BlockNumber, number>>;
|
|
10
|
-
/** Zod schema that coerces a Numberish value into an XL1BlockNumber */
|
|
11
|
-
export declare const XL1BlockNumberishZod: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>, z.ZodNumber>, z.ZodTransform<BlockNumber, number>>, z.ZodTransform<XL1BlockNumber, BlockNumber>>;
|
|
12
|
-
/** Input type for XL1BlockNumberishZod, accepting number, string, or bigint */
|
|
13
|
-
export type XL1BlockNumberish = z.input<typeof XL1BlockNumberishZod>;
|
|
14
|
-
/** Casts a number to XL1BlockNumber, returning undefined if validation fails */
|
|
15
|
-
export declare const asXL1BlockNumber: {
|
|
16
|
-
<T>(value: T): (T & number & {
|
|
17
|
-
readonly __blockNumber: true;
|
|
18
|
-
} & {
|
|
19
|
-
readonly __xl1BlockNumber: true;
|
|
20
|
-
}) | undefined;
|
|
21
|
-
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & number & {
|
|
22
|
-
readonly __blockNumber: true;
|
|
23
|
-
} & {
|
|
24
|
-
readonly __xl1BlockNumber: true;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
/** Coerces a Numberish value to XL1BlockNumber, returning undefined if conversion fails */
|
|
28
|
-
export declare const toXL1BlockNumber: {
|
|
29
|
-
<T>(value: T): (T & number & {
|
|
30
|
-
readonly __blockNumber: true;
|
|
31
|
-
} & {
|
|
32
|
-
readonly __xl1BlockNumber: true;
|
|
33
|
-
}) | undefined;
|
|
34
|
-
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & number & {
|
|
35
|
-
readonly __blockNumber: true;
|
|
36
|
-
} & {
|
|
37
|
-
readonly __xl1BlockNumber: true;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
/** The zero block number constant for the XL1 chain */
|
|
41
|
-
export declare const XL1_BLOCK_NUMBER_ZERO: (0 & {
|
|
42
|
-
readonly __blockNumber: true;
|
|
43
|
-
} & {
|
|
44
|
-
readonly __xl1BlockNumber: true;
|
|
45
|
-
}) | undefined;
|
|
46
|
-
//# sourceMappingURL=XL1BlockNumber.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"XL1BlockNumber.d.ts","sourceRoot":"","sources":["../../../src/BlockNumber/XL1BlockNumber.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAGnD,gEAAgE;AAChE,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,EAAE;IAAE,QAAQ,CAAC,gBAAgB,EAAE,IAAI,CAAA;CAAE,CAAC,CAAA;AAEpF,yEAAyE;AACzE,eAAO,MAAM,iBAAiB,gEAAiD,CAAA;AAC/E,uEAAuE;AACvE,eAAO,MAAM,oBAAoB,2PAAwD,CAAA;AAEzF,+EAA+E;AAC/E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEpE,gFAAgF;AAChF,eAAO,MAAM,gBAAgB;;;;mCAXgD,IAAI;;;;;mCAAJ,IAAI;;CAWkB,CAAA;AACnG,2FAA2F;AAC3F,eAAO,MAAM,gBAAgB;;;;mCAbgD,IAAI;;;;;mCAAJ,IAAI;;CAaqB,CAAA;AAEtG,uDAAuD;AACvD,eAAO,MAAM,qBAAqB;;;+BAhB2C,IAAI;cAgBzB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/BlockNumber/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { EmptyObject, Logger, Promisable } from '@xylabs/sdk-js';
|
|
2
|
-
/** @deprecated */
|
|
3
|
-
export type InitializableParams<T extends EmptyObject = {}> = T & {
|
|
4
|
-
logger?: Logger;
|
|
5
|
-
};
|
|
6
|
-
/** @deprecated */
|
|
7
|
-
/** Initializable type. */
|
|
8
|
-
export type Initializable<T extends EmptyObject, R> = (params: InitializableParams<T>) => Promisable<R>;
|
|
9
|
-
//# sourceMappingURL=Initializable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Initializable.d.ts","sourceRoot":"","sources":["../../src/Initializable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EAAE,MAAM,EAAE,UAAU,EAChC,MAAM,gBAAgB,CAAA;AAEvB,kBAAkB;AAClB,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,WAAW,GAAG,EAAE,IAAI,CAAC,GAAG;IAChE,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,kBAAkB;AAElB,0BAA0B;AAC1B,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,WAAW,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { MeterProvider, TracerProvider } from '@opentelemetry/api';
|
|
2
|
-
/** Configuration for OpenTelemetry metric and trace providers */
|
|
3
|
-
export interface OpenTelemetryProviders {
|
|
4
|
-
meterProvider?: MeterProvider;
|
|
5
|
-
traceProvider?: TracerProvider;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=OpenTelemetryProviders.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OpenTelemetryProviders.d.ts","sourceRoot":"","sources":["../../src/OpenTelemetryProviders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAEvE,iEAAiE;AACjE,MAAM,WAAW,sBAAsB;IACrC,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,aAAa,CAAC,EAAE,cAAc,CAAA;CAC/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RecordKeyType.d.ts","sourceRoot":"","sources":["../../src/RecordKeyType.ts"],"names":[],"mappings":"AACA,2FAA2F;AAE3F,0BAA0B;AAC1B,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,SAAS,MAAM,GAAG,GAAG,CAAC,GAAG,KAAK,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Brand, Hash } from '@xylabs/sdk-js';
|
|
2
|
-
/** A block hash paired with its step index */
|
|
3
|
-
export interface StepHash {
|
|
4
|
-
block: Hash;
|
|
5
|
-
step: number;
|
|
6
|
-
}
|
|
7
|
-
/** Branded string representing a hash and step index separated by a pipe character */
|
|
8
|
-
export type StepHashString = Brand<string, {
|
|
9
|
-
readonly __stepHashString: true;
|
|
10
|
-
}>;
|
|
11
|
-
//# sourceMappingURL=StepHash.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepHash.d.ts","sourceRoot":"","sources":["../../../src/Step/StepHash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAEjD,8CAA8C;AAC9C,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,IAAI,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb;AAED,sFAAsF;AACtF,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,MAAM,EAAE;IAAE,QAAQ,CAAC,gBAAgB,EAAE,IAAI,CAAA;CAAE,CAAC,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type Brand } from '@xylabs/sdk-js';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
/** Zod schema for a step identity combining a block number and step index */
|
|
4
|
-
export declare const StepIdentityZod: z.ZodObject<{
|
|
5
|
-
block: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../BlockNumber/XL1BlockNumber.ts").XL1BlockNumber, number>>;
|
|
6
|
-
step: z.ZodNumber;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
/** Identifies a specific step by its block number and step index */
|
|
9
|
-
export type StepIdentity = z.infer<typeof StepIdentityZod>;
|
|
10
|
-
/** @deprecated use StepIdentity instead */
|
|
11
|
-
export interface StepContext extends StepIdentity {
|
|
12
|
-
}
|
|
13
|
-
/** Branded string representing a block number and step index separated by a pipe character */
|
|
14
|
-
export type StepIdentityString = Brand<string, {
|
|
15
|
-
readonly __stepIdentityString: true;
|
|
16
|
-
}>;
|
|
17
|
-
/** Parses a pipe-separated string into a StepIdentity, returning undefined if invalid */
|
|
18
|
-
export declare const asStepIdentity: (stepIdentityString: string) => StepIdentity | undefined;
|
|
19
|
-
//# sourceMappingURL=StepIdentity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepIdentity.d.ts","sourceRoot":"","sources":["../../../src/Step/StepIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAe,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,6EAA6E;AAC7E,eAAO,MAAM,eAAe;;;iBAG1B,CAAA;AACF,oEAAoE;AACpE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAE1D,2CAA2C;AAC3C,MAAM,WAAW,WAAY,SAAQ,YAAY;CAAG;AAEpD,8FAA8F;AAC9F,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,EAAE;IAAE,QAAQ,CAAC,oBAAoB,EAAE,IAAI,CAAA;CAAE,CAAC,CAAA;AAWvF,yFAAyF;AACzF,eAAO,MAAM,cAAc,GAAI,oBAAoB,MAAM,KAAG,YAAY,GAAG,SAgB1E,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type XL1BlockNumber } from '../BlockNumber/index.ts';
|
|
2
|
-
/** Array of step sizes based on primorial(n+2) + 1, defining the block intervals for each step level */
|
|
3
|
-
export declare const StepSizes: XL1BlockNumber[];
|
|
4
|
-
/** Type guard that checks if a value is a valid step index within the StepSizes array */
|
|
5
|
-
export declare function isValidStep(step: unknown): step is number;
|
|
6
|
-
/** Casts a value to a valid step index, returning undefined if invalid */
|
|
7
|
-
export declare const asValidStep: import("@xylabs/sdk-js").AsTypeFunction<number>;
|
|
8
|
-
/** Returns the block interval size for a given step index */
|
|
9
|
-
export declare function stepSize(step: number): number;
|
|
10
|
-
/** Fraction of block rewards allocated at each step level, expressed as [numerator, denominator] pairs */
|
|
11
|
-
export declare const StepRewardFractions: readonly [readonly [0n, 1n], readonly [0n, 1n], readonly [0n, 1n], readonly [1n, 10000n], readonly [2n, 1000n], readonly [3n, 100n], readonly [45n, 100n]];
|
|
12
|
-
//# sourceMappingURL=StepSizes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepSizes.d.ts","sourceRoot":"","sources":["../../../src/Step/StepSizes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAK/E,wGAAwG;AACxG,eAAO,MAAM,SAAS,EAAE,cAAc,EAUrC,CAAA;AAED,yFAAyF;AACzF,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,MAAM,CAKzD;AAED,0EAA0E;AAC1E,eAAO,MAAM,WAAW,iDAA4C,CAAA;AAEpE,6DAA6D;AAC7D,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAG7C;AAED,0GAA0G;AAC1G,eAAO,MAAM,mBAAmB,4JAQtB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Step/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA"}
|