@xyo-network/xl1-protocol-model 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/BlockNumber/BlockNumber.d.ts +35 -0
- package/dist/neutral/BlockNumber/BlockNumber.d.ts.map +1 -0
- package/dist/neutral/BlockNumber/EthBlockNumber.d.ts +46 -0
- package/dist/neutral/BlockNumber/EthBlockNumber.d.ts.map +1 -0
- package/dist/neutral/BlockNumber/Numberish.d.ts +6 -0
- package/dist/neutral/BlockNumber/Numberish.d.ts.map +1 -0
- package/dist/neutral/BlockNumber/XL1BlockNumber.d.ts +46 -0
- package/dist/neutral/BlockNumber/XL1BlockNumber.d.ts.map +1 -0
- package/dist/neutral/BlockNumber/index.d.ts +5 -0
- package/dist/neutral/BlockNumber/index.d.ts.map +1 -0
- package/dist/neutral/Initializable.d.ts +9 -0
- package/dist/neutral/Initializable.d.ts.map +1 -0
- package/dist/neutral/RecordKeyType.d.ts +4 -0
- package/dist/neutral/RecordKeyType.d.ts.map +1 -0
- package/dist/neutral/Step/StepHash.d.ts +11 -0
- package/dist/neutral/Step/StepHash.d.ts.map +1 -0
- package/dist/neutral/Step/StepIdentity.d.ts +19 -0
- package/dist/neutral/Step/StepIdentity.d.ts.map +1 -0
- package/dist/neutral/Step/StepSizes.d.ts +12 -0
- package/dist/neutral/Step/StepSizes.d.ts.map +1 -0
- package/dist/neutral/Step/index.d.ts +4 -0
- package/dist/neutral/Step/index.d.ts.map +1 -0
- package/dist/neutral/TransferPayload.d.ts +79 -0
- package/dist/neutral/TransferPayload.d.ts.map +1 -0
- package/dist/neutral/amount/ShiftedBigIntConfig.d.ts +9 -0
- package/dist/neutral/amount/ShiftedBigIntConfig.d.ts.map +1 -0
- package/dist/neutral/amount/XL1AmountInstance.d.ts +16 -0
- package/dist/neutral/amount/XL1AmountInstance.d.ts.map +1 -0
- package/dist/neutral/amount/index.d.ts +3 -0
- package/dist/neutral/amount/index.d.ts.map +1 -0
- package/dist/neutral/block/AllowedBlockPayload.d.ts +40 -0
- package/dist/neutral/block/AllowedBlockPayload.d.ts.map +1 -0
- package/dist/neutral/block/BlockBoundWitness.d.ts +544 -0
- package/dist/neutral/block/BlockBoundWitness.d.ts.map +1 -0
- package/dist/neutral/block/HydratedBlock.d.ts +1466 -0
- package/dist/neutral/block/HydratedBlock.d.ts.map +1 -0
- package/dist/neutral/block/index.d.ts +6 -0
- package/dist/neutral/block/index.d.ts.map +1 -0
- package/dist/neutral/block/signed/SignedBlockBoundWitness.d.ts +168 -0
- package/dist/neutral/block/signed/SignedBlockBoundWitness.d.ts.map +1 -0
- package/dist/neutral/block/signed/SignedBlockBoundWitnessWithHashMeta.d.ts +286 -0
- package/dist/neutral/block/signed/SignedBlockBoundWitnessWithHashMeta.d.ts.map +1 -0
- package/dist/neutral/block/signed/SignedBlockBoundWitnessWithStorageMeta.d.ts +343 -0
- package/dist/neutral/block/signed/SignedBlockBoundWitnessWithStorageMeta.d.ts.map +1 -0
- package/dist/neutral/block/signed/index.d.ts +4 -0
- package/dist/neutral/block/signed/index.d.ts.map +1 -0
- package/dist/neutral/block/unsigned/UnsignedBlockBoundWitness.d.ts +168 -0
- package/dist/neutral/block/unsigned/UnsignedBlockBoundWitness.d.ts.map +1 -0
- package/dist/neutral/block/unsigned/index.d.ts +2 -0
- package/dist/neutral/block/unsigned/index.d.ts.map +1 -0
- package/dist/neutral/chain/Chain.d.ts +4 -0
- package/dist/neutral/chain/Chain.d.ts.map +1 -0
- package/dist/neutral/chain/ChainAnalyzer.d.ts +10 -0
- package/dist/neutral/chain/ChainAnalyzer.d.ts.map +1 -0
- package/dist/neutral/chain/ChainId.d.ts +4 -0
- package/dist/neutral/chain/ChainId.d.ts.map +1 -0
- package/dist/neutral/chain/index.d.ts +4 -0
- package/dist/neutral/chain/index.d.ts.map +1 -0
- package/dist/neutral/fields/Addressable.d.ts +6 -0
- package/dist/neutral/fields/Addressable.d.ts.map +1 -0
- package/dist/neutral/fields/BlockDuration.d.ts +25 -0
- package/dist/neutral/fields/BlockDuration.d.ts.map +1 -0
- package/dist/neutral/fields/BlockNumber.d.ts +32 -0
- package/dist/neutral/fields/BlockNumber.d.ts.map +1 -0
- package/dist/neutral/fields/ChainReference.d.ts +11 -0
- package/dist/neutral/fields/ChainReference.d.ts.map +1 -0
- package/dist/neutral/fields/index.d.ts +5 -0
- package/dist/neutral/fields/index.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +15 -0
- package/dist/neutral/index.d.ts.map +1 -0
- package/dist/neutral/index.mjs +1699 -0
- package/dist/neutral/index.mjs.map +1 -0
- package/dist/neutral/map/AsyncMap.d.ts +42 -0
- package/dist/neutral/map/AsyncMap.d.ts.map +1 -0
- package/dist/neutral/map/MapType.d.ts +17 -0
- package/dist/neutral/map/MapType.d.ts.map +1 -0
- package/dist/neutral/map/SyncMap.d.ts +41 -0
- package/dist/neutral/map/SyncMap.d.ts.map +1 -0
- package/dist/neutral/map/index.d.ts +4 -0
- package/dist/neutral/map/index.d.ts.map +1 -0
- package/dist/neutral/model/AccountBalance.d.ts +133 -0
- package/dist/neutral/model/AccountBalance.d.ts.map +1 -0
- package/dist/neutral/model/ArrayBuffer.d.ts +6 -0
- package/dist/neutral/model/ArrayBuffer.d.ts.map +1 -0
- package/dist/neutral/model/BlockRange/BlockRange.d.ts +32 -0
- package/dist/neutral/model/BlockRange/BlockRange.d.ts.map +1 -0
- package/dist/neutral/model/BlockRange/EthBlockRange.d.ts +32 -0
- package/dist/neutral/model/BlockRange/EthBlockRange.d.ts.map +1 -0
- package/dist/neutral/model/BlockRange/Numberish.d.ts +4 -0
- package/dist/neutral/model/BlockRange/Numberish.d.ts.map +1 -0
- package/dist/neutral/model/BlockRange/Range.d.ts +18 -0
- package/dist/neutral/model/BlockRange/Range.d.ts.map +1 -0
- package/dist/neutral/model/BlockRange/XL1BlockRange.d.ts +32 -0
- package/dist/neutral/model/BlockRange/XL1BlockRange.d.ts.map +1 -0
- package/dist/neutral/model/BlockRange/index.d.ts +5 -0
- package/dist/neutral/model/BlockRange/index.d.ts.map +1 -0
- package/dist/neutral/model/BlockRate.d.ts +290 -0
- package/dist/neutral/model/BlockRate.d.ts.map +1 -0
- package/dist/neutral/model/ChainQualification.d.ts +57 -0
- package/dist/neutral/model/ChainQualification.d.ts.map +1 -0
- package/dist/neutral/model/Context/BaseContext.d.ts +5 -0
- package/dist/neutral/model/Context/BaseContext.d.ts.map +1 -0
- package/dist/neutral/model/Context/BaseContext.zod.d.ts +26 -0
- package/dist/neutral/model/Context/BaseContext.zod.d.ts.map +1 -0
- package/dist/neutral/model/Context/BlockContext.d.ts +9 -0
- package/dist/neutral/model/Context/BlockContext.d.ts.map +1 -0
- package/dist/neutral/model/Context/BlockContext.zod.d.ts +33 -0
- package/dist/neutral/model/Context/BlockContext.zod.d.ts.map +1 -0
- package/dist/neutral/model/Context/CachingContext.d.ts +5 -0
- package/dist/neutral/model/Context/CachingContext.d.ts.map +1 -0
- package/dist/neutral/model/Context/CachingContext.zod.d.ts +10 -0
- package/dist/neutral/model/Context/CachingContext.zod.d.ts.map +1 -0
- package/dist/neutral/model/Context/ChainContext.d.ts +9 -0
- package/dist/neutral/model/Context/ChainContext.d.ts.map +1 -0
- package/dist/neutral/model/Context/ChainContext.zod.d.ts +115 -0
- package/dist/neutral/model/Context/ChainContext.zod.d.ts.map +1 -0
- package/dist/neutral/model/Context/HeadContext.d.ts +5 -0
- package/dist/neutral/model/Context/HeadContext.d.ts.map +1 -0
- package/dist/neutral/model/Context/HeadContext.zod.d.ts +70 -0
- package/dist/neutral/model/Context/HeadContext.zod.d.ts.map +1 -0
- package/dist/neutral/model/Context/index.d.ts +11 -0
- package/dist/neutral/model/Context/index.d.ts.map +1 -0
- package/dist/neutral/model/GatewayName.d.ts +6 -0
- package/dist/neutral/model/GatewayName.d.ts.map +1 -0
- package/dist/neutral/model/HydratedTransaction.d.ts +2300 -0
- package/dist/neutral/model/HydratedTransaction.d.ts.map +1 -0
- package/dist/neutral/model/OpCodes.d.ts +3 -0
- package/dist/neutral/model/OpCodes.d.ts.map +1 -0
- package/dist/neutral/model/PayloadMap.d.ts +10 -0
- package/dist/neutral/model/PayloadMap.d.ts.map +1 -0
- package/dist/neutral/model/Permission.d.ts +59 -0
- package/dist/neutral/model/Permission.d.ts.map +1 -0
- package/dist/neutral/model/Position.d.ts +13 -0
- package/dist/neutral/model/Position.d.ts.map +1 -0
- package/dist/neutral/model/PositionId.d.ts +6 -0
- package/dist/neutral/model/PositionId.d.ts.map +1 -0
- package/dist/neutral/model/RangeMultipliers.d.ts +10 -0
- package/dist/neutral/model/RangeMultipliers.d.ts.map +1 -0
- package/dist/neutral/model/RewardShare.d.ts +3 -0
- package/dist/neutral/model/RewardShare.d.ts.map +1 -0
- package/dist/neutral/model/RewardsRangeOptions.d.ts +16 -0
- package/dist/neutral/model/RewardsRangeOptions.d.ts.map +1 -0
- package/dist/neutral/model/Sequence.d.ts +15 -0
- package/dist/neutral/model/Sequence.d.ts.map +1 -0
- package/dist/neutral/model/Stake.d.ts +121 -0
- package/dist/neutral/model/Stake.d.ts.map +1 -0
- package/dist/neutral/model/StakeShare.d.ts +3 -0
- package/dist/neutral/model/StakeShare.d.ts.map +1 -0
- package/dist/neutral/model/TimeDomain.d.ts +4 -0
- package/dist/neutral/model/TimeDomain.d.ts.map +1 -0
- package/dist/neutral/model/TransferPair.d.ts +12 -0
- package/dist/neutral/model/TransferPair.d.ts.map +1 -0
- package/dist/neutral/model/addresses.d.ts +28 -0
- package/dist/neutral/model/addresses.d.ts.map +1 -0
- package/dist/neutral/model/defaultRewardRatio.d.ts +3 -0
- package/dist/neutral/model/defaultRewardRatio.d.ts.map +1 -0
- package/dist/neutral/model/defaultTransactionFees.d.ts +4 -0
- package/dist/neutral/model/defaultTransactionFees.d.ts.map +1 -0
- package/dist/neutral/model/index.d.ts +28 -0
- package/dist/neutral/model/index.d.ts.map +1 -0
- package/dist/neutral/model/minTransactionFees.d.ts +4 -0
- package/dist/neutral/model/minTransactionFees.d.ts.map +1 -0
- package/dist/neutral/model/rewards.d.ts +15 -0
- package/dist/neutral/model/rewards.d.ts.map +1 -0
- package/dist/neutral/model/version.d.ts +11 -0
- package/dist/neutral/model/version.d.ts.map +1 -0
- package/dist/neutral/payload/StepIdentityPayload.d.ts +20 -0
- package/dist/neutral/payload/StepIdentityPayload.d.ts.map +1 -0
- package/dist/neutral/payload/elevatable/Bridge/BridgeCompletion.d.ts +23 -0
- package/dist/neutral/payload/elevatable/Bridge/BridgeCompletion.d.ts.map +1 -0
- package/dist/neutral/payload/elevatable/Bridge/BridgeDestinationObservation.d.ts +33 -0
- package/dist/neutral/payload/elevatable/Bridge/BridgeDestinationObservation.d.ts.map +1 -0
- package/dist/neutral/payload/elevatable/Bridge/BridgeDetails.d.ts +45 -0
- package/dist/neutral/payload/elevatable/Bridge/BridgeDetails.d.ts.map +1 -0
- package/dist/neutral/payload/elevatable/Bridge/BridgeIntent.d.ts +31 -0
- package/dist/neutral/payload/elevatable/Bridge/BridgeIntent.d.ts.map +1 -0
- package/dist/neutral/payload/elevatable/Bridge/BridgeSourceObservation.d.ts +33 -0
- package/dist/neutral/payload/elevatable/Bridge/BridgeSourceObservation.d.ts.map +1 -0
- package/dist/neutral/payload/elevatable/Bridge/index.d.ts +6 -0
- package/dist/neutral/payload/elevatable/Bridge/index.d.ts.map +1 -0
- package/dist/neutral/payload/elevatable/ChainStakeIntent.d.ts +24 -0
- package/dist/neutral/payload/elevatable/ChainStakeIntent.d.ts.map +1 -0
- package/dist/neutral/payload/elevatable/Executable.d.ts +20 -0
- package/dist/neutral/payload/elevatable/Executable.d.ts.map +1 -0
- package/dist/neutral/payload/elevatable/Hash.d.ts +21 -0
- package/dist/neutral/payload/elevatable/Hash.d.ts.map +1 -0
- package/dist/neutral/payload/elevatable/StepComplete.d.ts +22 -0
- package/dist/neutral/payload/elevatable/StepComplete.d.ts.map +1 -0
- package/dist/neutral/payload/elevatable/Time.d.ts +71 -0
- package/dist/neutral/payload/elevatable/Time.d.ts.map +1 -0
- package/dist/neutral/payload/elevatable/index.d.ts +7 -0
- package/dist/neutral/payload/elevatable/index.d.ts.map +1 -0
- package/dist/neutral/payload/index.d.ts +3 -0
- package/dist/neutral/payload/index.d.ts.map +1 -0
- package/dist/neutral/provider/Provider.d.ts +6 -0
- package/dist/neutral/provider/Provider.d.ts.map +1 -0
- package/dist/neutral/provider/ProviderMoniker.d.ts +9 -0
- package/dist/neutral/provider/ProviderMoniker.d.ts.map +1 -0
- package/dist/neutral/provider/index.d.ts +3 -0
- package/dist/neutral/provider/index.d.ts.map +1 -0
- package/dist/neutral/transaction/TransactionBoundWitness.d.ts +2127 -0
- package/dist/neutral/transaction/TransactionBoundWitness.d.ts.map +1 -0
- package/dist/neutral/transaction/TransactionFees.d.ts +138 -0
- package/dist/neutral/transaction/TransactionFees.d.ts.map +1 -0
- package/dist/neutral/transaction/TransactionGasCosts.d.ts +38 -0
- package/dist/neutral/transaction/TransactionGasCosts.d.ts.map +1 -0
- package/dist/neutral/transaction/index.d.ts +4 -0
- package/dist/neutral/transaction/index.d.ts.map +1 -0
- package/dist/neutral/xl1/AttoXL1.d.ts +15 -0
- package/dist/neutral/xl1/AttoXL1.d.ts.map +1 -0
- package/dist/neutral/xl1/FemtoXL1.d.ts +15 -0
- package/dist/neutral/xl1/FemtoXL1.d.ts.map +1 -0
- package/dist/neutral/xl1/MicroXL1.d.ts +15 -0
- package/dist/neutral/xl1/MicroXL1.d.ts.map +1 -0
- package/dist/neutral/xl1/MilliXL1.d.ts +15 -0
- package/dist/neutral/xl1/MilliXL1.d.ts.map +1 -0
- package/dist/neutral/xl1/NanoXL1.d.ts +15 -0
- package/dist/neutral/xl1/NanoXL1.d.ts.map +1 -0
- package/dist/neutral/xl1/PicoXL1.d.ts +15 -0
- package/dist/neutral/xl1/PicoXL1.d.ts.map +1 -0
- package/dist/neutral/xl1/XL1.d.ts +15 -0
- package/dist/neutral/xl1/XL1.d.ts.map +1 -0
- package/dist/neutral/xl1/XL1Units.d.ts +10 -0
- package/dist/neutral/xl1/XL1Units.d.ts.map +1 -0
- package/dist/neutral/xl1/index.d.ts +9 -0
- package/dist/neutral/xl1/index.d.ts.map +1 -0
- package/dist/neutral/xl1/isXL1Factory.d.ts +12 -0
- package/dist/neutral/xl1/isXL1Factory.d.ts.map +1 -0
- package/dist/neutral/xl1/xl1MaxValue.d.ts +3 -0
- package/dist/neutral/xl1/xl1MaxValue.d.ts.map +1 -0
- package/package.json +65 -0
- package/src/BlockNumber/BlockNumber.ts +24 -0
- package/src/BlockNumber/EthBlockNumber.ts +25 -0
- package/src/BlockNumber/Numberish.ts +9 -0
- package/src/BlockNumber/XL1BlockNumber.ts +25 -0
- package/src/BlockNumber/index.ts +4 -0
- package/src/RecordKeyType.ts +5 -0
- package/src/Step/StepHash.ts +10 -0
- package/src/Step/StepIdentity.ts +46 -0
- package/src/Step/StepSizes.ts +47 -0
- package/src/Step/index.ts +3 -0
- package/src/TransferPayload.ts +35 -0
- package/src/amount/ShiftedBigIntConfig.ts +8 -0
- package/src/amount/XL1AmountInstance.ts +19 -0
- package/src/amount/index.ts +2 -0
- package/src/block/AllowedBlockPayload.ts +73 -0
- package/src/block/BlockBoundWitness.ts +72 -0
- package/src/block/HydratedBlock.ts +135 -0
- package/src/block/index.ts +5 -0
- package/src/block/signed/SignedBlockBoundWitness.ts +22 -0
- package/src/block/signed/SignedBlockBoundWitnessWithHashMeta.ts +35 -0
- package/src/block/signed/SignedBlockBoundWitnessWithStorageMeta.ts +41 -0
- package/src/block/signed/index.ts +3 -0
- package/src/block/unsigned/UnsignedBlockBoundWitness.ts +22 -0
- package/src/block/unsigned/index.ts +1 -0
- package/src/chain/Chain.ts +7 -0
- package/src/chain/ChainAnalyzer.ts +11 -0
- package/src/chain/ChainId.ts +4 -0
- package/src/chain/index.ts +3 -0
- package/src/fields/Addressable.ts +7 -0
- package/src/fields/BlockDuration.ts +25 -0
- package/src/fields/BlockNumber.ts +40 -0
- package/src/fields/ChainReference.ts +11 -0
- package/src/fields/index.ts +4 -0
- package/src/index.ts +14 -0
- package/src/map/AsyncMap.ts +38 -0
- package/src/map/MapType.ts +27 -0
- package/src/map/SyncMap.ts +38 -0
- package/src/map/index.ts +3 -0
- package/src/model/AccountBalance.ts +58 -0
- package/src/model/ArrayBuffer.ts +44 -0
- package/src/model/BlockRange/BlockRange.ts +43 -0
- package/src/model/BlockRange/EthBlockRange.ts +43 -0
- package/src/model/BlockRange/Numberish.ts +6 -0
- package/src/model/BlockRange/Range.ts +17 -0
- package/src/model/BlockRange/XL1BlockRange.ts +43 -0
- package/src/model/BlockRange/index.ts +4 -0
- package/src/model/BlockRate.ts +108 -0
- package/src/model/ChainQualification.ts +48 -0
- package/src/model/Context/BaseContext.ts +6 -0
- package/src/model/Context/BaseContext.zod.ts +36 -0
- package/src/model/Context/BlockContext.ts +12 -0
- package/src/model/Context/BlockContext.zod.ts +20 -0
- package/src/model/Context/CachingContext.ts +6 -0
- package/src/model/Context/CachingContext.zod.ts +4 -0
- package/src/model/Context/ChainContext.ts +12 -0
- package/src/model/Context/ChainContext.zod.ts +17 -0
- package/src/model/Context/HeadContext.ts +6 -0
- package/src/model/Context/HeadContext.zod.ts +13 -0
- package/src/model/Context/index.ts +10 -0
- package/src/model/GatewayName.ts +4 -0
- package/src/model/HydratedTransaction.ts +169 -0
- package/src/model/OpCodes.ts +2 -0
- package/src/model/PayloadMap.ts +13 -0
- package/src/model/Permission.ts +29 -0
- package/src/model/Position.ts +21 -0
- package/src/model/PositionId.ts +4 -0
- package/src/model/RangeMultipliers.ts +13 -0
- package/src/model/RewardShare.ts +2 -0
- package/src/model/RewardsRangeOptions.ts +13 -0
- package/src/model/Sequence.ts +21 -0
- package/src/model/Stake.ts +47 -0
- package/src/model/StakeShare.ts +2 -0
- package/src/model/TimeDomain.ts +8 -0
- package/src/model/TransferPair.ts +7 -0
- package/src/model/addresses.ts +36 -0
- package/src/model/defaultRewardRatio.ts +3 -0
- package/src/model/defaultTransactionFees.ts +11 -0
- package/src/model/index.ts +27 -0
- package/src/model/minTransactionFees.ts +10 -0
- package/src/model/rewards.ts +18 -0
- package/src/model/spec/fixtures/index.ts +2 -0
- package/src/model/spec/fixtures/signedHydratedTransaction.ts +58 -0
- package/src/model/spec/fixtures/unsignedHydratedTransaction.ts +62 -0
- package/src/model/version.ts +10 -0
- package/src/payload/StepIdentityPayload.ts +25 -0
- package/src/payload/elevatable/Bridge/BridgeCompletion.ts +28 -0
- package/src/payload/elevatable/Bridge/BridgeDestinationObservation.ts +38 -0
- package/src/payload/elevatable/Bridge/BridgeDetails.ts +69 -0
- package/src/payload/elevatable/Bridge/BridgeIntent.ts +36 -0
- package/src/payload/elevatable/Bridge/BridgeSourceObservation.ts +37 -0
- package/src/payload/elevatable/Bridge/index.ts +5 -0
- package/src/payload/elevatable/ChainStakeIntent.ts +45 -0
- package/src/payload/elevatable/Executable.ts +35 -0
- package/src/payload/elevatable/Hash.ts +25 -0
- package/src/payload/elevatable/StepComplete.ts +31 -0
- package/src/payload/elevatable/Time.ts +61 -0
- package/src/payload/elevatable/index.ts +6 -0
- package/src/payload/index.ts +2 -0
- package/src/provider/Provider.ts +6 -0
- package/src/provider/ProviderMoniker.ts +15 -0
- package/src/provider/index.ts +2 -0
- package/src/transaction/TransactionBoundWitness.ts +187 -0
- package/src/transaction/TransactionFees.ts +73 -0
- package/src/transaction/TransactionGasCosts.ts +42 -0
- package/src/transaction/index.ts +3 -0
- package/src/xl1/AttoXL1.ts +19 -0
- package/src/xl1/FemtoXL1.ts +20 -0
- package/src/xl1/MicroXL1.ts +20 -0
- package/src/xl1/MilliXL1.ts +20 -0
- package/src/xl1/NanoXL1.ts +20 -0
- package/src/xl1/PicoXL1.ts +20 -0
- package/src/xl1/XL1.ts +20 -0
- package/src/xl1/XL1Units.ts +26 -0
- package/src/xl1/index.ts +8 -0
- package/src/xl1/isXL1Factory.ts +56 -0
- package/src/xl1/xl1MaxValue.ts +2 -0
|
@@ -0,0 +1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,8FAA8F;AAC9F,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA6D,CAAA;AACrH,0FAA0F;AAC1F,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGvD,CAAA;AACD,4DAA4D;AAC5D,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGvD,CAAA;AAED,gEAAgE;AAChE,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAuD,CAAA;AAEnH,yDAAyD;AACzD,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+CAA+C,CAAC,CAAA;AAE1H,iGAAiG;AACjG,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAgE,CAAA;AAC3H,6FAA6F;AAC7F,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG1D,CAAA;AACD,+DAA+D;AAC/D,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG1D,CAAA"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** AttoZod constant. */
|
|
3
|
+
export declare const AttoZod: z.ZodBigInt;
|
|
4
|
+
/** JsonToAttoZod constant. */
|
|
5
|
+
export declare const JsonToAttoZod: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHex, string>>, z.ZodTransform<bigint, import("@xylabs/sdk-js").BrandedHex>>, z.ZodTransform<import("../xl1/AttoXL1.ts").AttoXL1, bigint>>;
|
|
6
|
+
/** AttoToJsonZod constant. */
|
|
7
|
+
/** TransactionFeesHexZod constant. */
|
|
8
|
+
export declare const TransactionFeesHexZod: z.ZodObject<{
|
|
9
|
+
base: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHex, string>>;
|
|
10
|
+
gasLimit: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHex, string>>;
|
|
11
|
+
gasPrice: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHex, string>>;
|
|
12
|
+
priority: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHex, string>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
/** TransactionFeesHex type. */
|
|
15
|
+
export type TransactionFeesHex = z.infer<typeof TransactionFeesHexZod>;
|
|
16
|
+
/** Type guard that checks if a value is a valid TransactionFeesHex. */
|
|
17
|
+
export declare const isTransactionFeesHex: <T>(value: T) => value is T & {
|
|
18
|
+
base: import("@xylabs/sdk-js").BrandedHex;
|
|
19
|
+
gasLimit: import("@xylabs/sdk-js").BrandedHex;
|
|
20
|
+
gasPrice: import("@xylabs/sdk-js").BrandedHex;
|
|
21
|
+
priority: import("@xylabs/sdk-js").BrandedHex;
|
|
22
|
+
};
|
|
23
|
+
/** Converts a value to TransactionFeesHex, throwing if invalid. */
|
|
24
|
+
export declare const asTransactionFeesHex: {
|
|
25
|
+
<T>(value: T): (T & {
|
|
26
|
+
base: import("@xylabs/sdk-js").BrandedHex;
|
|
27
|
+
gasLimit: import("@xylabs/sdk-js").BrandedHex;
|
|
28
|
+
gasPrice: import("@xylabs/sdk-js").BrandedHex;
|
|
29
|
+
priority: import("@xylabs/sdk-js").BrandedHex;
|
|
30
|
+
}) | undefined;
|
|
31
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
32
|
+
base: import("@xylabs/sdk-js").BrandedHex;
|
|
33
|
+
gasLimit: import("@xylabs/sdk-js").BrandedHex;
|
|
34
|
+
gasPrice: import("@xylabs/sdk-js").BrandedHex;
|
|
35
|
+
priority: import("@xylabs/sdk-js").BrandedHex;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
/** toTransactionFeesHex constant. */
|
|
39
|
+
export declare const toTransactionFeesHex: {
|
|
40
|
+
<T>(value: T): (T & {
|
|
41
|
+
base: import("@xylabs/sdk-js").BrandedHex;
|
|
42
|
+
gasLimit: import("@xylabs/sdk-js").BrandedHex;
|
|
43
|
+
gasPrice: import("@xylabs/sdk-js").BrandedHex;
|
|
44
|
+
priority: import("@xylabs/sdk-js").BrandedHex;
|
|
45
|
+
}) | undefined;
|
|
46
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
47
|
+
base: import("@xylabs/sdk-js").BrandedHex;
|
|
48
|
+
gasLimit: import("@xylabs/sdk-js").BrandedHex;
|
|
49
|
+
gasPrice: import("@xylabs/sdk-js").BrandedHex;
|
|
50
|
+
priority: import("@xylabs/sdk-js").BrandedHex;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
/** TransactionFeesBigIntZod constant. */
|
|
54
|
+
export declare const TransactionFeesBigIntZod: z.ZodObject<{
|
|
55
|
+
base: z.ZodBigInt;
|
|
56
|
+
gasLimit: z.ZodBigInt;
|
|
57
|
+
gasPrice: z.ZodBigInt;
|
|
58
|
+
priority: z.ZodBigInt;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
/** TransactionFeesBigInt type. */
|
|
61
|
+
export type TransactionFeesBigInt = z.infer<typeof TransactionFeesBigIntZod>;
|
|
62
|
+
/** Type guard that checks if a value is a valid TransactionFeesBigInt. */
|
|
63
|
+
export declare const isTransactionFeesBigInt: <T>(value: T) => value is T & {
|
|
64
|
+
base: bigint;
|
|
65
|
+
gasLimit: bigint;
|
|
66
|
+
gasPrice: bigint;
|
|
67
|
+
priority: bigint;
|
|
68
|
+
};
|
|
69
|
+
/** Converts a value to TransactionFeesBigInt, throwing if invalid. */
|
|
70
|
+
export declare const asTransactionFeesBigInt: {
|
|
71
|
+
<T>(value: T): (T & {
|
|
72
|
+
base: bigint;
|
|
73
|
+
gasLimit: bigint;
|
|
74
|
+
gasPrice: bigint;
|
|
75
|
+
priority: bigint;
|
|
76
|
+
}) | undefined;
|
|
77
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
78
|
+
base: bigint;
|
|
79
|
+
gasLimit: bigint;
|
|
80
|
+
gasPrice: bigint;
|
|
81
|
+
priority: bigint;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
/** toTransactionFeesBigInt constant. */
|
|
85
|
+
export declare const toTransactionFeesBigInt: {
|
|
86
|
+
<T>(value: T): (T & {
|
|
87
|
+
base: bigint;
|
|
88
|
+
gasLimit: bigint;
|
|
89
|
+
gasPrice: bigint;
|
|
90
|
+
priority: bigint;
|
|
91
|
+
}) | undefined;
|
|
92
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
93
|
+
base: bigint;
|
|
94
|
+
gasLimit: bigint;
|
|
95
|
+
gasPrice: bigint;
|
|
96
|
+
priority: bigint;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
/** TransactionFeesJsonToBigIntZod constant. */
|
|
100
|
+
export declare const TransactionFeesJsonToBigIntZod: z.ZodPipe<z.ZodObject<{
|
|
101
|
+
base: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHex, string>>;
|
|
102
|
+
gasLimit: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHex, string>>;
|
|
103
|
+
gasPrice: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHex, string>>;
|
|
104
|
+
priority: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHex, string>>;
|
|
105
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
106
|
+
base: bigint;
|
|
107
|
+
gasLimit: bigint;
|
|
108
|
+
gasPrice: bigint;
|
|
109
|
+
priority: bigint;
|
|
110
|
+
}, {
|
|
111
|
+
base: import("@xylabs/sdk-js").BrandedHex;
|
|
112
|
+
gasLimit: import("@xylabs/sdk-js").BrandedHex;
|
|
113
|
+
gasPrice: import("@xylabs/sdk-js").BrandedHex;
|
|
114
|
+
priority: import("@xylabs/sdk-js").BrandedHex;
|
|
115
|
+
}>>;
|
|
116
|
+
/** TransactionFeesBigIntToJsonZod constant. */
|
|
117
|
+
export declare const TransactionFeesBigIntToJsonZod: z.ZodPipe<z.ZodObject<{
|
|
118
|
+
base: z.ZodBigInt;
|
|
119
|
+
gasLimit: z.ZodBigInt;
|
|
120
|
+
gasPrice: z.ZodBigInt;
|
|
121
|
+
priority: z.ZodBigInt;
|
|
122
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
123
|
+
base: import("@xylabs/sdk-js").BrandedHex;
|
|
124
|
+
gasLimit: import("@xylabs/sdk-js").BrandedHex;
|
|
125
|
+
gasPrice: import("@xylabs/sdk-js").BrandedHex;
|
|
126
|
+
priority: import("@xylabs/sdk-js").BrandedHex;
|
|
127
|
+
}, {
|
|
128
|
+
base: bigint;
|
|
129
|
+
gasLimit: bigint;
|
|
130
|
+
gasPrice: bigint;
|
|
131
|
+
priority: bigint;
|
|
132
|
+
}>>;
|
|
133
|
+
/** TransactionFeesJsonToBigIntZodType type. */
|
|
134
|
+
export type TransactionFeesJsonToBigIntZodType = z.infer<typeof TransactionFeesJsonToBigIntZod>;
|
|
135
|
+
/** TransactionFeesBigIntToJsonZodType type. */
|
|
136
|
+
export type TransactionFeesBigIntToJsonZodType = z.infer<typeof TransactionFeesBigIntToJsonZod>;
|
|
137
|
+
export { BigIntToJsonZod as AttoToJsonZod } from '@xylabs/sdk-js';
|
|
138
|
+
//# sourceMappingURL=TransactionFees.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionFees.d.ts","sourceRoot":"","sources":["../../../src/transaction/TransactionFees.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,wBAAwB;AACxB,eAAO,MAAM,OAAO,aAAa,CAAA;AACjC,8BAA8B;AAC9B,eAAO,MAAM,aAAa,qOAA+C,CAAA;AAEzE,8BAA8B;AAE9B,sCAAsC;AACtC,eAAO,MAAM,qBAAqB;;;;;iBAKhC,CAAA;AAEF,+BAA+B;AAC/B,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEtE,uEAAuE;AACvE,eAAO,MAAM,oBAAoB;;;;;CAAsC,CAAA;AACvE,mEAAmE;AACnE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;CAA8D,CAAA;AAC/F,qCAAqC;AACrC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;CAA8D,CAAA;AAE/F,yCAAyC;AACzC,eAAO,MAAM,wBAAwB;;;;;iBAKnC,CAAA;AAEF,kCAAkC;AAClC,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE5E,0EAA0E;AAC1E,eAAO,MAAM,uBAAuB;;;;;CAAyC,CAAA;AAC7E,sEAAsE;AACtE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;CAAoE,CAAA;AACxG,wCAAwC;AACxC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;CAAoE,CAAA;AAExG,+CAA+C;AAC/C,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;GAKxC,CAAA;AAEH,+CAA+C;AAC/C,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;GAKxC,CAAA;AAEH,+CAA+C;AAC/C,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAC/F,+CAA+C;AAC/C,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAE/F,OAAO,EAAE,eAAe,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/** TransactionGasCosts constant. */
|
|
2
|
+
export declare const TransactionGasCosts: {
|
|
3
|
+
/**
|
|
4
|
+
* The cost of storing each character that is added to the chain
|
|
5
|
+
* This includes the transaction JSON and all the elevated payloads' JSON
|
|
6
|
+
*/
|
|
7
|
+
readonly characterStorage: 10n;
|
|
8
|
+
/** The cost of static validating every payload that will be included in the chain */
|
|
9
|
+
readonly payloadValidation: 1000n;
|
|
10
|
+
/** The cost of validating each signature that will be included in the chain */
|
|
11
|
+
readonly signatureValidation: 1000n;
|
|
12
|
+
/** The cost of validating each hash that will be included in the chain */
|
|
13
|
+
readonly hashValidation: 100n;
|
|
14
|
+
/** The cost of validating a balance state, triggered by a Transfer payload or gas collection */
|
|
15
|
+
readonly balanceValidation: 100n;
|
|
16
|
+
};
|
|
17
|
+
/** Gas Calculation
|
|
18
|
+
*
|
|
19
|
+
* 1 Million microXL1 (mXL1) = 1 XL1
|
|
20
|
+
*
|
|
21
|
+
* Gas amount is calculated as follows:
|
|
22
|
+
*
|
|
23
|
+
* 1. Each byte in the transaction cost 10 gas
|
|
24
|
+
* 2. Each payload validation in the transaction costs 1000 gas
|
|
25
|
+
* 3. Each signature verification in the transaction costs 1000 gas
|
|
26
|
+
* 4. Each hash validation in the transaction costs 100 gas
|
|
27
|
+
* 5. Each balance validation in the transaction costs 100 gas
|
|
28
|
+
* 6. Processing/Compute/Storage Cost?
|
|
29
|
+
* 7. operation Costs?
|
|
30
|
+
*
|
|
31
|
+
* The total gas cost is calculated by multiplying the gas amount by the gas price.
|
|
32
|
+
*
|
|
33
|
+
* minGasPrice is initially set to 100 mXL1
|
|
34
|
+
* minBase is initially set to 1000 mXL1
|
|
35
|
+
* minPriority is always 0 mXL1, but can be set to increase the priority of the transaction
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
//# sourceMappingURL=TransactionGasCosts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionGasCosts.d.ts","sourceRoot":"","sources":["../../../src/transaction/TransactionGasCosts.ts"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,eAAO,MAAM,mBAAmB;IAC9B;;;MAGE;;IAGF,qFAAqF;;IAGrF,+EAA+E;;IAG/E,0EAA0E;;IAG1E,gGAAgG;;CAExF,CAAA;AAEV;;;;;;;;;;;;;;;;;;;;GAoBG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/transaction/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Maximum value for the AttoXL1 branded type. */
|
|
2
|
+
export declare const AttoXL1MaxValue: bigint;
|
|
3
|
+
/** AttoXL1 type. */
|
|
4
|
+
export type AttoXL1 = bigint & {
|
|
5
|
+
readonly _tag: 'AttoXL1';
|
|
6
|
+
};
|
|
7
|
+
/** Type guard that checks if a value is a valid AttoXL1. */
|
|
8
|
+
export declare const isAttoXL1: (val: unknown) => val is AttoXL1;
|
|
9
|
+
/** Converts a value to AttoXL1, throwing if invalid. */
|
|
10
|
+
export declare const asAttoXL1: (val: unknown) => AttoXL1;
|
|
11
|
+
/** Converts a bigint value to AttoXL1 without validation. */
|
|
12
|
+
export declare const toAttoXL1: (val: unknown) => AttoXL1 | undefined;
|
|
13
|
+
/** Shorthand alias for asAttoXL1. */
|
|
14
|
+
export declare const AttoXL1: (val: unknown) => AttoXL1;
|
|
15
|
+
//# sourceMappingURL=AttoXL1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttoXL1.d.ts","sourceRoot":"","sources":["../../../src/xl1/AttoXL1.ts"],"names":[],"mappings":"AAMA,kDAAkD;AAClD,eAAO,MAAM,eAAe,QAA8B,CAAA;AAC1D,oBAAoB;AACpB,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,CAAA;AAC3D,4DAA4D;AAC5D,eAAO,MAAM,SAAS,kCAAwC,CAAA;AAC9D,wDAAwD;AACxD,eAAO,MAAM,SAAS,2BAAwC,CAAA;AAC9D,6DAA6D;AAC7D,eAAO,MAAM,SAAS,uCAAwC,CAAA;AAE9D,qCAAqC;AACrC,eAAO,MAAM,OAAO,2BAAY,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Maximum value for the FemtoXL1 branded type. */
|
|
2
|
+
export declare const FemtoXL1MaxValue: bigint;
|
|
3
|
+
/** FemtoXL1 type. */
|
|
4
|
+
export type FemtoXL1 = bigint & {
|
|
5
|
+
readonly _tag: 'FemtoXL1';
|
|
6
|
+
};
|
|
7
|
+
/** Type guard that checks if a value is a valid FemtoXL1. */
|
|
8
|
+
export declare const isFemtoXL1: (val: unknown) => val is FemtoXL1;
|
|
9
|
+
/** Converts a value to FemtoXL1, throwing if invalid. */
|
|
10
|
+
export declare const asFemtoXL1: (val: unknown) => FemtoXL1;
|
|
11
|
+
/** Converts a bigint value to FemtoXL1 without validation. */
|
|
12
|
+
export declare const toFemtoXL1: (val: unknown) => FemtoXL1 | undefined;
|
|
13
|
+
/** Shorthand alias for asFemtoXL1. */
|
|
14
|
+
export declare const FemtoXL1: (val: unknown) => FemtoXL1;
|
|
15
|
+
//# sourceMappingURL=FemtoXL1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FemtoXL1.d.ts","sourceRoot":"","sources":["../../../src/xl1/FemtoXL1.ts"],"names":[],"mappings":"AAMA,mDAAmD;AACnD,eAAO,MAAM,gBAAgB,QAA+B,CAAA;AAC5D,qBAAqB;AACrB,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CAAA;AAC7D,6DAA6D;AAC7D,eAAO,MAAM,UAAU,mCAA0C,CAAA;AACjE,yDAAyD;AACzD,eAAO,MAAM,UAAU,4BAA0C,CAAA;AAEjE,8DAA8D;AAC9D,eAAO,MAAM,UAAU,wCAA0C,CAAA;AAEjE,sCAAsC;AACtC,eAAO,MAAM,QAAQ,4BAAa,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Maximum value for the MicroXL1 branded type. */
|
|
2
|
+
export declare const MicroXL1MaxValue: bigint;
|
|
3
|
+
/** MicroXL1 type. */
|
|
4
|
+
export type MicroXL1 = bigint & {
|
|
5
|
+
readonly _tag: 'MicroXL1';
|
|
6
|
+
};
|
|
7
|
+
/** Type guard that checks if a value is a valid MicroXL1. */
|
|
8
|
+
export declare const isMicroXL1: (val: unknown) => val is MicroXL1;
|
|
9
|
+
/** Converts a value to MicroXL1, throwing if invalid. */
|
|
10
|
+
export declare const asMicroXL1: (val: unknown) => MicroXL1;
|
|
11
|
+
/** Converts a bigint value to MicroXL1 without validation. */
|
|
12
|
+
export declare const toMicroXL1: (val: unknown) => MicroXL1 | undefined;
|
|
13
|
+
/** Shorthand alias for asMicroXL1. */
|
|
14
|
+
export declare const MicroXL1: (val: unknown) => MicroXL1;
|
|
15
|
+
//# sourceMappingURL=MicroXL1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MicroXL1.d.ts","sourceRoot":"","sources":["../../../src/xl1/MicroXL1.ts"],"names":[],"mappings":"AAMA,mDAAmD;AACnD,eAAO,MAAM,gBAAgB,QAA+B,CAAA;AAC5D,qBAAqB;AACrB,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CAAA;AAC7D,6DAA6D;AAC7D,eAAO,MAAM,UAAU,mCAA0C,CAAA;AACjE,yDAAyD;AACzD,eAAO,MAAM,UAAU,4BAA0C,CAAA;AAEjE,8DAA8D;AAC9D,eAAO,MAAM,UAAU,wCAA0C,CAAA;AAEjE,sCAAsC;AACtC,eAAO,MAAM,QAAQ,4BAAa,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Maximum value for the MilliXL1 branded type. */
|
|
2
|
+
export declare const MilliXL1MaxValue: bigint;
|
|
3
|
+
/** MilliXL1 type. */
|
|
4
|
+
export type MilliXL1 = bigint & {
|
|
5
|
+
readonly _tag: 'MilliXL1';
|
|
6
|
+
};
|
|
7
|
+
/** Type guard that checks if a value is a valid MilliXL1. */
|
|
8
|
+
export declare const isMilliXL1: (val: unknown) => val is MilliXL1;
|
|
9
|
+
/** Converts a value to MilliXL1, throwing if invalid. */
|
|
10
|
+
export declare const asMilliXL1: (val: unknown) => MilliXL1;
|
|
11
|
+
/** Converts a bigint value to MilliXL1 without validation. */
|
|
12
|
+
export declare const toMilliXL1: (val: unknown) => MilliXL1 | undefined;
|
|
13
|
+
/** Shorthand alias for asMilliXL1. */
|
|
14
|
+
export declare const MilliXL1: (val: unknown) => MilliXL1;
|
|
15
|
+
//# sourceMappingURL=MilliXL1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MilliXL1.d.ts","sourceRoot":"","sources":["../../../src/xl1/MilliXL1.ts"],"names":[],"mappings":"AAMA,mDAAmD;AACnD,eAAO,MAAM,gBAAgB,QAA+B,CAAA;AAC5D,qBAAqB;AACrB,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CAAA;AAC7D,6DAA6D;AAC7D,eAAO,MAAM,UAAU,mCAA0C,CAAA;AACjE,yDAAyD;AACzD,eAAO,MAAM,UAAU,4BAA0C,CAAA;AAEjE,8DAA8D;AAC9D,eAAO,MAAM,UAAU,wCAA0C,CAAA;AAEjE,sCAAsC;AACtC,eAAO,MAAM,QAAQ,4BAAa,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Maximum value for the NanoXL1 branded type. */
|
|
2
|
+
export declare const NanoXL1MaxValue: bigint;
|
|
3
|
+
/** NanoXL1 type. */
|
|
4
|
+
export type NanoXL1 = bigint & {
|
|
5
|
+
readonly _tag: 'NanoXL1';
|
|
6
|
+
};
|
|
7
|
+
/** Type guard that checks if a value is a valid NanoXL1. */
|
|
8
|
+
export declare const isNanoXL1: (val: unknown) => val is NanoXL1;
|
|
9
|
+
/** Converts a value to NanoXL1, throwing if invalid. */
|
|
10
|
+
export declare const asNanoXL1: (val: unknown) => NanoXL1;
|
|
11
|
+
/** Converts a bigint value to NanoXL1 without validation. */
|
|
12
|
+
export declare const toNanoXL1: (val: unknown) => NanoXL1 | undefined;
|
|
13
|
+
/** Shorthand alias for asNanoXL1. */
|
|
14
|
+
export declare const NanoXL1: (val: unknown) => NanoXL1;
|
|
15
|
+
//# sourceMappingURL=NanoXL1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NanoXL1.d.ts","sourceRoot":"","sources":["../../../src/xl1/NanoXL1.ts"],"names":[],"mappings":"AAMA,kDAAkD;AAClD,eAAO,MAAM,eAAe,QAA8B,CAAA;AAC1D,oBAAoB;AACpB,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,CAAA;AAC3D,4DAA4D;AAC5D,eAAO,MAAM,SAAS,kCAAwC,CAAA;AAC9D,wDAAwD;AACxD,eAAO,MAAM,SAAS,2BAAwC,CAAA;AAE9D,6DAA6D;AAC7D,eAAO,MAAM,SAAS,uCAAwC,CAAA;AAE9D,qCAAqC;AACrC,eAAO,MAAM,OAAO,2BAAY,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** PicoXL1MaxValue constant. */
|
|
2
|
+
export declare const PicoXL1MaxValue: bigint;
|
|
3
|
+
/** PicoXL1 type. */
|
|
4
|
+
export type PicoXL1 = bigint & {
|
|
5
|
+
readonly _tag: 'PicoXL1';
|
|
6
|
+
};
|
|
7
|
+
/** Type guard that checks if a value is a valid PicoXL1. */
|
|
8
|
+
export declare const isPicoXL1: (val: unknown) => val is PicoXL1;
|
|
9
|
+
/** Converts a value to PicoXL1, throwing if invalid. */
|
|
10
|
+
export declare const asPicoXL1: (val: unknown) => PicoXL1;
|
|
11
|
+
/** toPicoXL1 constant. */
|
|
12
|
+
export declare const toPicoXL1: (val: unknown) => PicoXL1 | undefined;
|
|
13
|
+
/** PicoXL1 constant. */
|
|
14
|
+
export declare const PicoXL1: (val: unknown) => PicoXL1;
|
|
15
|
+
//# sourceMappingURL=PicoXL1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PicoXL1.d.ts","sourceRoot":"","sources":["../../../src/xl1/PicoXL1.ts"],"names":[],"mappings":"AAMA,gCAAgC;AAChC,eAAO,MAAM,eAAe,QAA8B,CAAA;AAC1D,oBAAoB;AACpB,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,CAAA;AAC3D,4DAA4D;AAC5D,eAAO,MAAM,SAAS,kCAAwC,CAAA;AAC9D,wDAAwD;AACxD,eAAO,MAAM,SAAS,2BAAwC,CAAA;AAE9D,0BAA0B;AAC1B,eAAO,MAAM,SAAS,uCAAwC,CAAA;AAE9D,wBAAwB;AACxB,eAAO,MAAM,OAAO,2BAAY,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** XL1MaxValue constant. */
|
|
2
|
+
export declare const XL1MaxValue: bigint;
|
|
3
|
+
/** XL1 type. */
|
|
4
|
+
export type XL1 = bigint & {
|
|
5
|
+
readonly _tag: 'XL1';
|
|
6
|
+
};
|
|
7
|
+
/** Type guard that checks if a value is a valid XL1. */
|
|
8
|
+
export declare const isXL1: (val: unknown) => val is XL1;
|
|
9
|
+
/** Converts a value to XL1, throwing if invalid. */
|
|
10
|
+
export declare const asXL1: (val: unknown) => XL1;
|
|
11
|
+
/** toXL1 constant. */
|
|
12
|
+
export declare const toXL1: (val: unknown) => XL1 | undefined;
|
|
13
|
+
/** XL1 constant. */
|
|
14
|
+
export declare const XL1: (val: unknown) => XL1;
|
|
15
|
+
//# sourceMappingURL=XL1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XL1.d.ts","sourceRoot":"","sources":["../../../src/xl1/XL1.ts"],"names":[],"mappings":"AAMA,4BAA4B;AAC5B,eAAO,MAAM,WAAW,QAA6B,CAAA;AACrD,gBAAgB;AAChB,MAAM,MAAM,GAAG,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAA;CAAE,CAAA;AACnD,wDAAwD;AACxD,eAAO,MAAM,KAAK,8BAAmC,CAAA;AACrD,oDAAoD;AACpD,eAAO,MAAM,KAAK,uBAAmC,CAAA;AAErD,sBAAsB;AACtB,eAAO,MAAM,KAAK,mCAAmC,CAAA;AAErD,oBAAoB;AACpB,eAAO,MAAM,GAAG,uBAAQ,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type XL1Units = 'xl1' | 'milli' | 'micro' | 'nano' | 'pico' | 'femto' | 'atto';
|
|
2
|
+
/** Decimal place definitions for each XL1 currency unit (atto=18, femto=15, etc.). */
|
|
3
|
+
export declare const XL1Places: Record<XL1Units, bigint>;
|
|
4
|
+
/**
|
|
5
|
+
* Convert factor by which a respective unit is multiplied to convert it to AttoXL1 or
|
|
6
|
+
* by which AttoXL1 is divided to convert it to respective unit is multiplied.
|
|
7
|
+
*/
|
|
8
|
+
export declare const AttoXL1ConvertFactor: Record<XL1Units, bigint>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=XL1Units.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XL1Units.d.ts","sourceRoot":"","sources":["../../../src/xl1/XL1Units.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAA;AAE9E,sFAAsF;AACtF,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAQrC,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAQhD,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './AttoXL1.ts';
|
|
2
|
+
export * from './FemtoXL1.ts';
|
|
3
|
+
export * from './MicroXL1.ts';
|
|
4
|
+
export * from './MilliXL1.ts';
|
|
5
|
+
export * from './NanoXL1.ts';
|
|
6
|
+
export * from './PicoXL1.ts';
|
|
7
|
+
export * from './XL1.ts';
|
|
8
|
+
export * from './XL1Units.ts';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/xl1/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Type guard that checks if a value is a valid XL1Factory. */
|
|
3
|
+
export declare const isXL1Factory: <T extends bigint>(places: bigint) => (val: unknown) => val is T;
|
|
4
|
+
/** Creates a Zod schema factory for XL1 branded bigint types. */
|
|
5
|
+
export declare const XL1ZodFactory: <T extends bigint>(places: bigint, name: string) => z.ZodBigInt & z.ZodType<T, bigint, z.core.$ZodTypeInternals<T, bigint>>;
|
|
6
|
+
/** Creates a Zod transform factory that converts values between XL1 unit types. */
|
|
7
|
+
export declare const XL1TransformZodFactory: <T extends bigint>(places: bigint, name: string) => z.ZodPipe<z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber, z.ZodString, z.ZodBoolean]>, z.ZodTransform<Awaited<T>, string | number | bigint | boolean>>;
|
|
8
|
+
/** Converts a value to XL1Factory, throwing if invalid. */
|
|
9
|
+
export declare const asXL1Factory: <T extends bigint>(places: bigint) => (val: unknown) => T;
|
|
10
|
+
/** Creates a factory function that converts bigint values to a specific XL1 branded type. */
|
|
11
|
+
export declare const toXL1Factory: <T extends bigint>(places: bigint) => (val: unknown) => T | undefined;
|
|
12
|
+
//# sourceMappingURL=isXL1Factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isXL1Factory.d.ts","sourceRoot":"","sources":["../../../src/xl1/isXL1Factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,+DAA+D;AAC/D,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,MAAM,EAAE,QAAQ,MAAM,MAAM,KAAK,OAAO,KAAG,GAAG,IAAI,CAGxF,CAAA;AAED,iEAAiE;AACjE,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,MAAM,EAAE,QAAQ,MAAM,EAAE,MAAM,MAAM,4EAU3E,CAAA;AAED,mFAAmF;AACnF,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,MAAM,EAAE,QAAQ,MAAM,EAAE,MAAM,MAAM,0JAUpF,CAAA;AAED,2DAA2D;AAC3D,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,MAAM,EAAE,QAAQ,MAAM,MAEnD,KAAK,OAAO,KAAG,CAOxB,CAAA;AAED,6FAA6F;AAC7F,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,MAAM,EAAE,QAAQ,MAAM,MAEnD,KAAK,OAAO,KAAG,CAAC,GAAG,SAI5B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xl1MaxValue.d.ts","sourceRoot":"","sources":["../../../src/xl1/xl1MaxValue.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,WAA+B,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xyo-network/xl1-protocol-model",
|
|
3
|
+
"version": "1.26.1",
|
|
4
|
+
"description": "XYO Layer One Protocol Model Types",
|
|
5
|
+
"homepage": "https://xylabs.com",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "git+https://github.com/xylabs/xyo-chain/issues",
|
|
8
|
+
"email": "support@xylabs.com"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/xylabs/xyo-chain.git"
|
|
13
|
+
},
|
|
14
|
+
"license": "LGPL-3.0-only",
|
|
15
|
+
"author": {
|
|
16
|
+
"name": "XY Labs Development Team",
|
|
17
|
+
"email": "support@xylabs.com",
|
|
18
|
+
"url": "https://xylabs.com"
|
|
19
|
+
},
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"type": "module",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/neutral/index.d.ts",
|
|
25
|
+
"source": "./src/index.ts",
|
|
26
|
+
"default": "./dist/neutral/index.mjs"
|
|
27
|
+
},
|
|
28
|
+
"./package.json": "./package.json"
|
|
29
|
+
},
|
|
30
|
+
"module": "./dist/neutral/index.mjs",
|
|
31
|
+
"source": "./src/index.ts",
|
|
32
|
+
"types": "./dist/neutral/index.d.ts",
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"src",
|
|
36
|
+
"!**/*.bench.*",
|
|
37
|
+
"!**/*.spec.*",
|
|
38
|
+
"!**/*.test.*"
|
|
39
|
+
],
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@opentelemetry/api": "^1.9.0",
|
|
42
|
+
"@types/node": "^25.5.0",
|
|
43
|
+
"@xylabs/sdk-js": "^5.0.86",
|
|
44
|
+
"@xylabs/ts-scripts-yarn3": "~7.4.25",
|
|
45
|
+
"@xylabs/tsconfig": "~7.4.25",
|
|
46
|
+
"@xyo-network/sdk-js": "^5.3.16",
|
|
47
|
+
"typescript": "~5.9.3",
|
|
48
|
+
"vitest": "~4.1.1",
|
|
49
|
+
"zod": "~4.3.6"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@opentelemetry/api": "^1",
|
|
53
|
+
"@xylabs/sdk-js": "^5",
|
|
54
|
+
"@xyo-network/sdk-js": "^5",
|
|
55
|
+
"zod": "^4"
|
|
56
|
+
},
|
|
57
|
+
"packageManager": "yarn@4.10.3",
|
|
58
|
+
"engines": {
|
|
59
|
+
"node": ">=22.3 <23"
|
|
60
|
+
},
|
|
61
|
+
"engineStrict": true,
|
|
62
|
+
"publishConfig": {
|
|
63
|
+
"access": "public"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Brand } from '@xylabs/sdk-js'
|
|
2
|
+
import { zodAsFactory, zodToFactory } from '@xylabs/sdk-js'
|
|
3
|
+
import { z } from 'zod'
|
|
4
|
+
|
|
5
|
+
import { NumberishZod } from './Numberish.ts'
|
|
6
|
+
|
|
7
|
+
/** Branded number type representing a generic block number */
|
|
8
|
+
export type BlockNumber = Brand<number, { readonly __blockNumber: true }>
|
|
9
|
+
|
|
10
|
+
/** Zod schema that validates and brands a number as a BlockNumber */
|
|
11
|
+
export const BlockNumberZod = z.number().transform(v => v as BlockNumber)
|
|
12
|
+
/** Zod schema that coerces a Numberish value into a BlockNumber */
|
|
13
|
+
export const BlockNumberishZod = NumberishZod.transform(v => v as BlockNumber)
|
|
14
|
+
|
|
15
|
+
/** Input type for BlockNumberishZod, accepting number, string, or bigint */
|
|
16
|
+
export type BlockNumberish = z.input<typeof BlockNumberishZod>
|
|
17
|
+
|
|
18
|
+
/** Casts a number to BlockNumber, returning undefined if validation fails */
|
|
19
|
+
export const asBlockNumber = zodAsFactory<BlockNumber>(BlockNumberZod, 'asBlockNumber')
|
|
20
|
+
/** Coerces a Numberish value to BlockNumber, returning undefined if conversion fails */
|
|
21
|
+
export const toBlockNumber = zodToFactory<BlockNumber>(BlockNumberishZod, 'toBlockNumber')
|
|
22
|
+
|
|
23
|
+
/** The zero block number constant */
|
|
24
|
+
export const BLOCK_NUMBER_ZERO = asBlockNumber(0)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type Brand } from '@xylabs/sdk-js'
|
|
2
|
+
import { zodAsFactory, zodToFactory } from '@xylabs/sdk-js'
|
|
3
|
+
import { z } from 'zod'
|
|
4
|
+
|
|
5
|
+
import type { BlockNumber } from './BlockNumber.ts'
|
|
6
|
+
import { BlockNumberishZod } from './BlockNumber.ts'
|
|
7
|
+
|
|
8
|
+
/** Branded type representing a block number on the Ethereum chain */
|
|
9
|
+
export type EthBlockNumber = Brand<BlockNumber, { readonly __ethBlockNumber: true }>
|
|
10
|
+
|
|
11
|
+
/** Zod schema that validates and brands a number as an EthBlockNumber */
|
|
12
|
+
export const EthBlockNumberZod = z.number().transform(v => v as EthBlockNumber)
|
|
13
|
+
/** Zod schema that coerces a Numberish value into an EthBlockNumber */
|
|
14
|
+
export const EthBlockNumberishZod = BlockNumberishZod.transform(v => v as EthBlockNumber)
|
|
15
|
+
|
|
16
|
+
/** Input type for EthBlockNumberishZod, accepting number, string, or bigint */
|
|
17
|
+
export type EthBlockNumberish = z.input<typeof EthBlockNumberishZod>
|
|
18
|
+
|
|
19
|
+
/** Casts a number to EthBlockNumber, returning undefined if validation fails */
|
|
20
|
+
export const asEthBlockNumber = zodAsFactory<EthBlockNumber>(EthBlockNumberZod, 'asEthBlockNumber')
|
|
21
|
+
/** Coerces a Numberish value to EthBlockNumber, returning undefined if conversion fails */
|
|
22
|
+
export const toEthBlockNumber = zodToFactory<EthBlockNumber>(EthBlockNumberishZod, 'toEthBlockNumber')
|
|
23
|
+
|
|
24
|
+
/** The zero block number constant for the Ethereum chain */
|
|
25
|
+
export const ETH_BLOCK_NUMBER_ZERO = asEthBlockNumber(0)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
/** Zod schema that accepts number, string, or bigint and coerces to number */
|
|
4
|
+
export const NumberishZod = z.union([z.number(), z.string(), z.bigint()])
|
|
5
|
+
.transform(v => (typeof v === 'bigint' ? Number(v) : typeof v === 'string' ? Number(v) : v))
|
|
6
|
+
.pipe(z.number())
|
|
7
|
+
|
|
8
|
+
/** A value that can be coerced to a number: number, string, or bigint */
|
|
9
|
+
export type Numberish = z.input<typeof NumberishZod>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type Brand } from '@xylabs/sdk-js'
|
|
2
|
+
import { zodAsFactory, zodToFactory } from '@xylabs/sdk-js'
|
|
3
|
+
import { z } from 'zod'
|
|
4
|
+
|
|
5
|
+
import type { BlockNumber } from './BlockNumber.ts'
|
|
6
|
+
import { BlockNumberishZod } from './BlockNumber.ts'
|
|
7
|
+
|
|
8
|
+
/** Branded type representing a block number on the XL1 chain */
|
|
9
|
+
export type XL1BlockNumber = Brand<BlockNumber, { readonly __xl1BlockNumber: true }>
|
|
10
|
+
|
|
11
|
+
/** Zod schema that validates and brands a number as an XL1BlockNumber */
|
|
12
|
+
export const XL1BlockNumberZod = z.number().transform(v => v as XL1BlockNumber)
|
|
13
|
+
/** Zod schema that coerces a Numberish value into an XL1BlockNumber */
|
|
14
|
+
export const XL1BlockNumberishZod = BlockNumberishZod.transform(v => v as XL1BlockNumber)
|
|
15
|
+
|
|
16
|
+
/** Input type for XL1BlockNumberishZod, accepting number, string, or bigint */
|
|
17
|
+
export type XL1BlockNumberish = z.input<typeof XL1BlockNumberishZod>
|
|
18
|
+
|
|
19
|
+
/** Casts a number to XL1BlockNumber, returning undefined if validation fails */
|
|
20
|
+
export const asXL1BlockNumber = zodAsFactory<XL1BlockNumber>(XL1BlockNumberZod, 'asXL1BlockNumber')
|
|
21
|
+
/** Coerces a Numberish value to XL1BlockNumber, returning undefined if conversion fails */
|
|
22
|
+
export const toXL1BlockNumber = zodToFactory<XL1BlockNumber>(XL1BlockNumberishZod, 'toXL1BlockNumber')
|
|
23
|
+
|
|
24
|
+
/** The zero block number constant for the XL1 chain */
|
|
25
|
+
export const XL1_BLOCK_NUMBER_ZERO = asXL1BlockNumber(0)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Brand, Hash } from '@xylabs/sdk-js'
|
|
2
|
+
|
|
3
|
+
/** A block hash paired with its step index */
|
|
4
|
+
export interface StepHash {
|
|
5
|
+
block: Hash
|
|
6
|
+
step: number
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/** Branded string representing a hash and step index separated by a pipe character */
|
|
10
|
+
export type StepHashString = Brand<string, { readonly __stepHashString: true }>
|