@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,1699 @@
|
|
|
1
|
+
// src/block/AllowedBlockPayload.ts
|
|
2
|
+
import { zodIsFactory as zodIsFactory3 } from "@xylabs/sdk-js";
|
|
3
|
+
import {
|
|
4
|
+
BoundWitnessSchema,
|
|
5
|
+
isHashMeta,
|
|
6
|
+
isSchemaPayload,
|
|
7
|
+
SchemaSchema
|
|
8
|
+
} from "@xyo-network/sdk-js";
|
|
9
|
+
import { z as z14 } from "zod";
|
|
10
|
+
|
|
11
|
+
// src/payload/elevatable/Bridge/BridgeDestinationObservation.ts
|
|
12
|
+
import { AsObjectFactory, HexZod as HexZod2 } from "@xylabs/sdk-js";
|
|
13
|
+
import { asSchema, isPayloadOfZodType } from "@xyo-network/sdk-js";
|
|
14
|
+
|
|
15
|
+
// src/payload/elevatable/Bridge/BridgeDetails.ts
|
|
16
|
+
import { HexZod } from "@xylabs/sdk-js";
|
|
17
|
+
import { z } from "zod";
|
|
18
|
+
var BridgeDetailsDestinationFieldsZod = z.object({
|
|
19
|
+
/**
|
|
20
|
+
* Destination network
|
|
21
|
+
*/
|
|
22
|
+
dest: HexZod.describe("The destination network identifier"),
|
|
23
|
+
/**
|
|
24
|
+
* Destination address (EOA or contract)
|
|
25
|
+
*/
|
|
26
|
+
destAddress: HexZod.describe("The destination address (EOA or contract)"),
|
|
27
|
+
/**
|
|
28
|
+
* Token amount to bridge to destination
|
|
29
|
+
*/
|
|
30
|
+
destAmount: HexZod.describe("The token amount to bridge to destination"),
|
|
31
|
+
/**
|
|
32
|
+
* Token being bridged to
|
|
33
|
+
*/
|
|
34
|
+
destToken: HexZod.describe("The token being bridged to")
|
|
35
|
+
});
|
|
36
|
+
var BridgeDetailsSourceFieldsZod = z.object({
|
|
37
|
+
/**
|
|
38
|
+
* Source network
|
|
39
|
+
*/
|
|
40
|
+
src: HexZod.describe("The source network identifier"),
|
|
41
|
+
/**
|
|
42
|
+
* Source address (EOA or contract)
|
|
43
|
+
*/
|
|
44
|
+
srcAddress: HexZod.describe("The source address (EOA or contract)"),
|
|
45
|
+
/**
|
|
46
|
+
* Token amount to bridge from source
|
|
47
|
+
*/
|
|
48
|
+
srcAmount: HexZod.describe("The token amount to bridge from source"),
|
|
49
|
+
/**
|
|
50
|
+
* Token being bridged from
|
|
51
|
+
*/
|
|
52
|
+
srcToken: HexZod.describe("The token being bridged from")
|
|
53
|
+
});
|
|
54
|
+
var BridgeDetailsFieldsZod = BridgeDetailsSourceFieldsZod.extend(
|
|
55
|
+
BridgeDetailsDestinationFieldsZod.shape
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
// src/payload/elevatable/Bridge/BridgeDestinationObservation.ts
|
|
59
|
+
var BridgeDestinationObservationSchema = asSchema("network.xyo.chain.bridge.observation.destination", true);
|
|
60
|
+
var BridgeDestinationObservationFieldsZod = BridgeDetailsFieldsZod.extend({
|
|
61
|
+
/**
|
|
62
|
+
* Destination chain confirmation
|
|
63
|
+
*/
|
|
64
|
+
destConfirmation: HexZod2.optional().describe("Destination chain confirmation")
|
|
65
|
+
});
|
|
66
|
+
var isBridgeDestinationObservation = isPayloadOfZodType(
|
|
67
|
+
BridgeDestinationObservationFieldsZod,
|
|
68
|
+
BridgeDestinationObservationSchema
|
|
69
|
+
);
|
|
70
|
+
var asBridgeDestinationObservation = AsObjectFactory.create(isBridgeDestinationObservation);
|
|
71
|
+
|
|
72
|
+
// src/payload/elevatable/Bridge/BridgeIntent.ts
|
|
73
|
+
import { AsObjectFactory as AsObjectFactory2 } from "@xylabs/sdk-js";
|
|
74
|
+
import { asSchema as asSchema2, isPayloadOfZodType as isPayloadOfZodType2 } from "@xyo-network/sdk-js";
|
|
75
|
+
import { z as z2 } from "zod";
|
|
76
|
+
var BridgeIntentSchema = asSchema2("network.xyo.chain.bridge.intent", true);
|
|
77
|
+
var BridgeIntentFieldsZod = BridgeDetailsFieldsZod.extend({
|
|
78
|
+
/**
|
|
79
|
+
* Unique identifier for replay protection
|
|
80
|
+
*/
|
|
81
|
+
nonce: z2.string().describe("Unique identifier for replay protection")
|
|
82
|
+
});
|
|
83
|
+
var isBridgeIntent = isPayloadOfZodType2(
|
|
84
|
+
BridgeIntentFieldsZod,
|
|
85
|
+
BridgeIntentSchema
|
|
86
|
+
);
|
|
87
|
+
var asBridgeIntent = AsObjectFactory2.create(isBridgeIntent);
|
|
88
|
+
|
|
89
|
+
// src/payload/elevatable/Bridge/BridgeSourceObservation.ts
|
|
90
|
+
import { AsObjectFactory as AsObjectFactory3, HexZod as HexZod3 } from "@xylabs/sdk-js";
|
|
91
|
+
import { asSchema as asSchema3, isPayloadOfZodType as isPayloadOfZodType3 } from "@xyo-network/sdk-js";
|
|
92
|
+
var BridgeSourceObservationSchema = asSchema3("network.xyo.chain.bridge.observation.source", true);
|
|
93
|
+
var BridgeSourceObservationFieldsZod = BridgeDetailsFieldsZod.extend({
|
|
94
|
+
/**
|
|
95
|
+
* Source chain confirmation
|
|
96
|
+
*/
|
|
97
|
+
srcConfirmation: HexZod3.optional().describe("Source chain confirmation")
|
|
98
|
+
});
|
|
99
|
+
var isBridgeSourceObservation = isPayloadOfZodType3(
|
|
100
|
+
BridgeSourceObservationFieldsZod,
|
|
101
|
+
BridgeSourceObservationSchema
|
|
102
|
+
);
|
|
103
|
+
var asBridgeSourceObservation = AsObjectFactory3.create(isBridgeSourceObservation);
|
|
104
|
+
|
|
105
|
+
// src/payload/elevatable/ChainStakeIntent.ts
|
|
106
|
+
import { AsObjectFactory as AsObjectFactory4 } from "@xylabs/sdk-js";
|
|
107
|
+
import {
|
|
108
|
+
asSchema as asSchema4,
|
|
109
|
+
isPayloadOfSchemaType,
|
|
110
|
+
isStorageMeta
|
|
111
|
+
} from "@xyo-network/sdk-js";
|
|
112
|
+
var ChainStakeIntentSchema = asSchema4("network.xyo.chain.stake.intent", true);
|
|
113
|
+
var isChainStakeIntent = (x) => {
|
|
114
|
+
return isPayloadOfSchemaType(ChainStakeIntentSchema)(x) && asNonNegativeInteger(x.nbf) !== void 0 && asNonNegativeInteger(x.exp) !== void 0;
|
|
115
|
+
};
|
|
116
|
+
var asChainStakeIntent = AsObjectFactory4.create(isChainStakeIntent);
|
|
117
|
+
var isChainStakeIntentWithStorageMeta = (x) => {
|
|
118
|
+
return isChainStakeIntent(x) && isStorageMeta(x);
|
|
119
|
+
};
|
|
120
|
+
var asNonNegativeInteger = (num) => {
|
|
121
|
+
return Number.isInteger(num) && num >= 0 ? num : void 0;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
// src/payload/elevatable/Executable.ts
|
|
125
|
+
import { isAnyPayload } from "@xyo-network/sdk-js";
|
|
126
|
+
var hasFrom = (value) => {
|
|
127
|
+
return value.from !== void 0;
|
|
128
|
+
};
|
|
129
|
+
var isExecutable = (value) => {
|
|
130
|
+
return isAnyPayload(value) && Array.isArray(value.script);
|
|
131
|
+
};
|
|
132
|
+
var asExecutable = (value) => {
|
|
133
|
+
return isExecutable(value) ? value : void 0;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
// src/payload/elevatable/Hash.ts
|
|
137
|
+
import { AsObjectFactory as AsObjectFactory5 } from "@xylabs/sdk-js";
|
|
138
|
+
import { asSchema as asSchema5, isPayloadOfSchemaType as isPayloadOfSchemaType2 } from "@xyo-network/sdk-js";
|
|
139
|
+
var HashSchema = asSchema5("network.xyo.hash", true);
|
|
140
|
+
var isHashPayload = isPayloadOfSchemaType2(HashSchema);
|
|
141
|
+
var asHashPayload = AsObjectFactory5.create(isHashPayload);
|
|
142
|
+
var asHashPayloadWithStorageMeta = AsObjectFactory5.create(isHashPayload);
|
|
143
|
+
|
|
144
|
+
// src/payload/elevatable/StepComplete.ts
|
|
145
|
+
import { AsObjectFactory as AsObjectFactory6 } from "@xylabs/sdk-js";
|
|
146
|
+
import { asSchema as asSchema6, isPayloadOfSchemaType as isPayloadOfSchemaType3 } from "@xyo-network/sdk-js";
|
|
147
|
+
var StepCompleteSchema = asSchema6("network.xyo.chain.step.complete", true);
|
|
148
|
+
var isStepComplete = isPayloadOfSchemaType3(StepCompleteSchema);
|
|
149
|
+
var asStepComplete = AsObjectFactory6.create(isStepComplete);
|
|
150
|
+
|
|
151
|
+
// src/payload/elevatable/Time.ts
|
|
152
|
+
import { AsObjectFactory as AsObjectFactory7, HashZod } from "@xylabs/sdk-js";
|
|
153
|
+
import {
|
|
154
|
+
asSchema as asSchema7,
|
|
155
|
+
isPayloadOfSchemaType as isPayloadOfSchemaType4,
|
|
156
|
+
PayloadZodOfSchema
|
|
157
|
+
} from "@xyo-network/sdk-js";
|
|
158
|
+
import { z as z3 } from "zod";
|
|
159
|
+
var TimeSchema = asSchema7("network.xyo.time", true);
|
|
160
|
+
var XL1TimeFieldsZod = z3.object({
|
|
161
|
+
// block number
|
|
162
|
+
xl1: z3.number().optional(),
|
|
163
|
+
// block hash
|
|
164
|
+
xl1Hash: HashZod.optional()
|
|
165
|
+
});
|
|
166
|
+
var EthereumTimeFieldsZod = z3.object({
|
|
167
|
+
// block number
|
|
168
|
+
ethereum: z3.number().optional(),
|
|
169
|
+
// block hash
|
|
170
|
+
ethereumHash: HashZod.optional()
|
|
171
|
+
});
|
|
172
|
+
var EpochTimeFieldsZod = z3.object({
|
|
173
|
+
// in milliseconds
|
|
174
|
+
epoch: z3.number()
|
|
175
|
+
});
|
|
176
|
+
var TimeFieldsZod = XL1TimeFieldsZod.extend(XL1TimeFieldsZod.shape).extend(EthereumTimeFieldsZod.shape).extend(EpochTimeFieldsZod.shape);
|
|
177
|
+
var TimePayloadZod = PayloadZodOfSchema(TimeSchema).extend(TimeFieldsZod.shape);
|
|
178
|
+
var isSafeEpoch = (value) => {
|
|
179
|
+
return typeof value === "number" && value < 2 * Date.now();
|
|
180
|
+
};
|
|
181
|
+
var isTimePayload = (value) => {
|
|
182
|
+
return isPayloadOfSchemaType4(TimeSchema)(value) && isSafeEpoch(value.epoch);
|
|
183
|
+
};
|
|
184
|
+
var asTimePayload = AsObjectFactory7.create(isTimePayload);
|
|
185
|
+
var asTimePayloadWithStorageMeta = AsObjectFactory7.create(isTimePayload);
|
|
186
|
+
|
|
187
|
+
// src/payload/StepIdentityPayload.ts
|
|
188
|
+
import { AsObjectFactory as AsObjectFactory8 } from "@xylabs/sdk-js";
|
|
189
|
+
import { asSchema as asSchema8, isPayloadOfZodType as isPayloadOfZodType4 } from "@xyo-network/sdk-js";
|
|
190
|
+
|
|
191
|
+
// src/Step/StepIdentity.ts
|
|
192
|
+
import { isUndefined } from "@xylabs/sdk-js";
|
|
193
|
+
import { z as z8 } from "zod";
|
|
194
|
+
|
|
195
|
+
// src/BlockNumber/BlockNumber.ts
|
|
196
|
+
import { zodAsFactory, zodToFactory } from "@xylabs/sdk-js";
|
|
197
|
+
import { z as z5 } from "zod";
|
|
198
|
+
|
|
199
|
+
// src/BlockNumber/Numberish.ts
|
|
200
|
+
import { z as z4 } from "zod";
|
|
201
|
+
var NumberishZod = z4.union([z4.number(), z4.string(), z4.bigint()]).transform((v) => typeof v === "bigint" ? Number(v) : typeof v === "string" ? Number(v) : v).pipe(z4.number());
|
|
202
|
+
|
|
203
|
+
// src/BlockNumber/BlockNumber.ts
|
|
204
|
+
var BlockNumberZod = z5.number().transform((v) => v);
|
|
205
|
+
var BlockNumberishZod = NumberishZod.transform((v) => v);
|
|
206
|
+
var asBlockNumber = zodAsFactory(BlockNumberZod, "asBlockNumber");
|
|
207
|
+
var toBlockNumber = zodToFactory(BlockNumberishZod, "toBlockNumber");
|
|
208
|
+
var BLOCK_NUMBER_ZERO = asBlockNumber(0);
|
|
209
|
+
|
|
210
|
+
// src/BlockNumber/EthBlockNumber.ts
|
|
211
|
+
import { zodAsFactory as zodAsFactory2, zodToFactory as zodToFactory2 } from "@xylabs/sdk-js";
|
|
212
|
+
import { z as z6 } from "zod";
|
|
213
|
+
var EthBlockNumberZod = z6.number().transform((v) => v);
|
|
214
|
+
var EthBlockNumberishZod = BlockNumberishZod.transform((v) => v);
|
|
215
|
+
var asEthBlockNumber = zodAsFactory2(EthBlockNumberZod, "asEthBlockNumber");
|
|
216
|
+
var toEthBlockNumber = zodToFactory2(EthBlockNumberishZod, "toEthBlockNumber");
|
|
217
|
+
var ETH_BLOCK_NUMBER_ZERO = asEthBlockNumber(0);
|
|
218
|
+
|
|
219
|
+
// src/BlockNumber/XL1BlockNumber.ts
|
|
220
|
+
import { zodAsFactory as zodAsFactory3, zodToFactory as zodToFactory3 } from "@xylabs/sdk-js";
|
|
221
|
+
import { z as z7 } from "zod";
|
|
222
|
+
var XL1BlockNumberZod = z7.number().transform((v) => v);
|
|
223
|
+
var XL1BlockNumberishZod = BlockNumberishZod.transform((v) => v);
|
|
224
|
+
var asXL1BlockNumber = zodAsFactory3(XL1BlockNumberZod, "asXL1BlockNumber");
|
|
225
|
+
var toXL1BlockNumber = zodToFactory3(XL1BlockNumberishZod, "toXL1BlockNumber");
|
|
226
|
+
var XL1_BLOCK_NUMBER_ZERO = asXL1BlockNumber(0);
|
|
227
|
+
|
|
228
|
+
// src/Step/StepIdentity.ts
|
|
229
|
+
var StepIdentityZod = z8.object({
|
|
230
|
+
block: XL1BlockNumberZod.describe("The block number at which the step occurs"),
|
|
231
|
+
step: z8.number().int().nonnegative().describe("The index of the step into the StepSize array")
|
|
232
|
+
});
|
|
233
|
+
function tryParseInt(value) {
|
|
234
|
+
if (value === "") return void 0;
|
|
235
|
+
const num = Number(value);
|
|
236
|
+
return Number.isInteger(num) ? num : void 0;
|
|
237
|
+
}
|
|
238
|
+
var asStepIdentity = (stepIdentityString) => {
|
|
239
|
+
try {
|
|
240
|
+
const [blockNumberString, stepString] = stepIdentityString.split("|");
|
|
241
|
+
if (isUndefined(blockNumberString) || isUndefined(stepString)) {
|
|
242
|
+
return void 0;
|
|
243
|
+
}
|
|
244
|
+
const step = tryParseInt(stepString);
|
|
245
|
+
const block = toXL1BlockNumber(blockNumberString);
|
|
246
|
+
if (isUndefined(block) || isUndefined(step)) {
|
|
247
|
+
return void 0;
|
|
248
|
+
}
|
|
249
|
+
return { block, step };
|
|
250
|
+
} catch {
|
|
251
|
+
return void 0;
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
// src/Step/StepSizes.ts
|
|
256
|
+
import { AsTypeFactory } from "@xylabs/sdk-js";
|
|
257
|
+
var StepSizes = [
|
|
258
|
+
asXL1BlockNumber(7, true),
|
|
259
|
+
asXL1BlockNumber(31, true),
|
|
260
|
+
asXL1BlockNumber(211, true),
|
|
261
|
+
asXL1BlockNumber(2311, true),
|
|
262
|
+
asXL1BlockNumber(30031, true),
|
|
263
|
+
asXL1BlockNumber(510511, true),
|
|
264
|
+
asXL1BlockNumber(9699691, true),
|
|
265
|
+
asXL1BlockNumber(223092871, true),
|
|
266
|
+
asXL1BlockNumber(6469693231, true)
|
|
267
|
+
];
|
|
268
|
+
function isValidStep(step) {
|
|
269
|
+
if (typeof step === "number" && Number.isInteger(step)) {
|
|
270
|
+
return step >= 0 && step < StepSizes.length;
|
|
271
|
+
}
|
|
272
|
+
return false;
|
|
273
|
+
}
|
|
274
|
+
var asValidStep = AsTypeFactory.create(isValidStep);
|
|
275
|
+
function stepSize(step) {
|
|
276
|
+
const validatedStep = asValidStep(step, () => `Invalid step (${step}), must be an integer between 0 and ${StepSizes.length - 1}`, { required: true });
|
|
277
|
+
return StepSizes[validatedStep];
|
|
278
|
+
}
|
|
279
|
+
var StepRewardFractions = [
|
|
280
|
+
[0n, 1n],
|
|
281
|
+
// 0%
|
|
282
|
+
[0n, 1n],
|
|
283
|
+
// 0%
|
|
284
|
+
[0n, 1n],
|
|
285
|
+
// 0%
|
|
286
|
+
[1n, 10000n],
|
|
287
|
+
// 0.01%
|
|
288
|
+
[2n, 1000n],
|
|
289
|
+
// 0.2%
|
|
290
|
+
[3n, 100n],
|
|
291
|
+
// 3%
|
|
292
|
+
[45n, 100n]
|
|
293
|
+
// 45%
|
|
294
|
+
];
|
|
295
|
+
|
|
296
|
+
// src/payload/StepIdentityPayload.ts
|
|
297
|
+
var StepIdentitySchema = asSchema8("network.xyo.chain.step.identity", true);
|
|
298
|
+
var isStepIdentityPayload = isPayloadOfZodType4(StepIdentityZod, StepIdentitySchema);
|
|
299
|
+
var asStepIdentityPayload = AsObjectFactory8.create(isStepIdentityPayload);
|
|
300
|
+
|
|
301
|
+
// src/transaction/TransactionBoundWitness.ts
|
|
302
|
+
import {
|
|
303
|
+
AddressZod,
|
|
304
|
+
zodAsFactory as zodAsFactory5,
|
|
305
|
+
zodIsFactory as zodIsFactory2,
|
|
306
|
+
zodToFactory as zodToFactory5
|
|
307
|
+
} from "@xylabs/sdk-js";
|
|
308
|
+
import {
|
|
309
|
+
BoundWitnessZod,
|
|
310
|
+
HashMetaZod,
|
|
311
|
+
SignedBoundWitnessZod,
|
|
312
|
+
StorageMetaZod,
|
|
313
|
+
UnsignedBoundWitnessZod,
|
|
314
|
+
WithHashMetaZod,
|
|
315
|
+
WithStorageMetaZod
|
|
316
|
+
} from "@xyo-network/sdk-js";
|
|
317
|
+
import { z as z12 } from "zod";
|
|
318
|
+
|
|
319
|
+
// src/chain/Chain.ts
|
|
320
|
+
import { AddressRegEx, toAddress } from "@xylabs/sdk-js";
|
|
321
|
+
import { z as z9 } from "zod";
|
|
322
|
+
var ChainZod = z9.string().toLowerCase().regex(AddressRegEx).transform((v) => toAddress(v));
|
|
323
|
+
|
|
324
|
+
// src/transaction/TransactionFees.ts
|
|
325
|
+
import {
|
|
326
|
+
BigIntToJsonZod,
|
|
327
|
+
HexZod as HexZod4,
|
|
328
|
+
JsonToBigIntZod,
|
|
329
|
+
zodAsFactory as zodAsFactory4,
|
|
330
|
+
zodIsFactory,
|
|
331
|
+
zodToFactory as zodToFactory4
|
|
332
|
+
} from "@xylabs/sdk-js";
|
|
333
|
+
import { z as z11 } from "zod";
|
|
334
|
+
|
|
335
|
+
// src/xl1/isXL1Factory.ts
|
|
336
|
+
import { z as z10 } from "zod";
|
|
337
|
+
|
|
338
|
+
// src/xl1/xl1MaxValue.ts
|
|
339
|
+
var xl1MaxValue = (places) => 10n ** (32n - places) - 1n;
|
|
340
|
+
|
|
341
|
+
// src/xl1/isXL1Factory.ts
|
|
342
|
+
var isXL1Factory = (places) => (val) => {
|
|
343
|
+
if (typeof val !== "bigint") return false;
|
|
344
|
+
return val >= 0n && val <= xl1MaxValue(places);
|
|
345
|
+
};
|
|
346
|
+
var XL1ZodFactory = (places, name) => {
|
|
347
|
+
const is = isXL1Factory(places);
|
|
348
|
+
const message = `Invalid value for ${name}, must be between 0 and ${xl1MaxValue(places)}`;
|
|
349
|
+
return z10.bigint().refine(
|
|
350
|
+
(x) => {
|
|
351
|
+
const result = is(x);
|
|
352
|
+
return result;
|
|
353
|
+
},
|
|
354
|
+
{ message }
|
|
355
|
+
);
|
|
356
|
+
};
|
|
357
|
+
var XL1TransformZodFactory = (places, name) => {
|
|
358
|
+
const is = isXL1Factory(places);
|
|
359
|
+
const message = `Invalid value for ${name}, must be between 0 and ${xl1MaxValue(places)}`;
|
|
360
|
+
return z10.union([z10.bigint(), z10.number(), z10.string(), z10.boolean()]).transform((val) => BigInt(val)).refine(
|
|
361
|
+
(x) => {
|
|
362
|
+
const result = is(x);
|
|
363
|
+
return result;
|
|
364
|
+
},
|
|
365
|
+
{ message }
|
|
366
|
+
);
|
|
367
|
+
};
|
|
368
|
+
var asXL1Factory = (places) => {
|
|
369
|
+
const zod = XL1ZodFactory(places, "local");
|
|
370
|
+
return (val) => {
|
|
371
|
+
const result = zod.safeParse(val);
|
|
372
|
+
if (result.success) {
|
|
373
|
+
return result.data;
|
|
374
|
+
}
|
|
375
|
+
throw result.error;
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
var toXL1Factory = (places) => {
|
|
379
|
+
const zod = XL1TransformZodFactory(places, "local");
|
|
380
|
+
return (val) => {
|
|
381
|
+
const result = zod.safeParse(val);
|
|
382
|
+
return result.success ? result.data : void 0;
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
// src/xl1/XL1Units.ts
|
|
387
|
+
var XL1Places = {
|
|
388
|
+
xl1: 18n,
|
|
389
|
+
milli: 15n,
|
|
390
|
+
micro: 12n,
|
|
391
|
+
nano: 9n,
|
|
392
|
+
pico: 6n,
|
|
393
|
+
femto: 3n,
|
|
394
|
+
atto: 0n
|
|
395
|
+
};
|
|
396
|
+
var AttoXL1ConvertFactor = {
|
|
397
|
+
xl1: 10n ** XL1Places.xl1,
|
|
398
|
+
milli: 10n ** XL1Places.milli,
|
|
399
|
+
micro: 10n ** XL1Places.micro,
|
|
400
|
+
nano: 10n ** XL1Places.nano,
|
|
401
|
+
pico: 10n ** XL1Places.pico,
|
|
402
|
+
femto: 10n ** XL1Places.femto,
|
|
403
|
+
atto: 10n ** XL1Places.atto
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
// src/xl1/AttoXL1.ts
|
|
407
|
+
var AttoXL1MaxValue = xl1MaxValue(XL1Places.atto);
|
|
408
|
+
var isAttoXL1 = isXL1Factory(XL1Places.atto);
|
|
409
|
+
var asAttoXL1 = asXL1Factory(XL1Places.atto);
|
|
410
|
+
var toAttoXL1 = toXL1Factory(XL1Places.atto);
|
|
411
|
+
var AttoXL1 = asAttoXL1;
|
|
412
|
+
|
|
413
|
+
// src/xl1/FemtoXL1.ts
|
|
414
|
+
var FemtoXL1MaxValue = xl1MaxValue(XL1Places.femto);
|
|
415
|
+
var isFemtoXL1 = isXL1Factory(XL1Places.femto);
|
|
416
|
+
var asFemtoXL1 = asXL1Factory(XL1Places.femto);
|
|
417
|
+
var toFemtoXL1 = toXL1Factory(XL1Places.femto);
|
|
418
|
+
var FemtoXL1 = asFemtoXL1;
|
|
419
|
+
|
|
420
|
+
// src/xl1/MicroXL1.ts
|
|
421
|
+
var MicroXL1MaxValue = xl1MaxValue(XL1Places.micro);
|
|
422
|
+
var isMicroXL1 = isXL1Factory(XL1Places.micro);
|
|
423
|
+
var asMicroXL1 = asXL1Factory(XL1Places.micro);
|
|
424
|
+
var toMicroXL1 = toXL1Factory(XL1Places.micro);
|
|
425
|
+
var MicroXL1 = asMicroXL1;
|
|
426
|
+
|
|
427
|
+
// src/xl1/MilliXL1.ts
|
|
428
|
+
var MilliXL1MaxValue = xl1MaxValue(XL1Places.milli);
|
|
429
|
+
var isMilliXL1 = isXL1Factory(XL1Places.milli);
|
|
430
|
+
var asMilliXL1 = asXL1Factory(XL1Places.milli);
|
|
431
|
+
var toMilliXL1 = toXL1Factory(XL1Places.milli);
|
|
432
|
+
var MilliXL1 = asMilliXL1;
|
|
433
|
+
|
|
434
|
+
// src/xl1/NanoXL1.ts
|
|
435
|
+
var NanoXL1MaxValue = xl1MaxValue(XL1Places.nano);
|
|
436
|
+
var isNanoXL1 = isXL1Factory(XL1Places.nano);
|
|
437
|
+
var asNanoXL1 = asXL1Factory(XL1Places.nano);
|
|
438
|
+
var toNanoXL1 = toXL1Factory(XL1Places.nano);
|
|
439
|
+
var NanoXL1 = asNanoXL1;
|
|
440
|
+
|
|
441
|
+
// src/xl1/PicoXL1.ts
|
|
442
|
+
var PicoXL1MaxValue = xl1MaxValue(XL1Places.pico);
|
|
443
|
+
var isPicoXL1 = isXL1Factory(XL1Places.pico);
|
|
444
|
+
var asPicoXL1 = asXL1Factory(XL1Places.pico);
|
|
445
|
+
var toPicoXL1 = toXL1Factory(XL1Places.pico);
|
|
446
|
+
var PicoXL1 = asPicoXL1;
|
|
447
|
+
|
|
448
|
+
// src/xl1/XL1.ts
|
|
449
|
+
var XL1MaxValue = xl1MaxValue(XL1Places.xl1);
|
|
450
|
+
var isXL1 = isXL1Factory(XL1Places.xl1);
|
|
451
|
+
var asXL1 = asXL1Factory(XL1Places.xl1);
|
|
452
|
+
var toXL1 = toXL1Factory(XL1Places.xl1);
|
|
453
|
+
var XL1 = asXL1;
|
|
454
|
+
|
|
455
|
+
// src/transaction/TransactionFees.ts
|
|
456
|
+
import { BigIntToJsonZod as BigIntToJsonZod2 } from "@xylabs/sdk-js";
|
|
457
|
+
var AttoZod = z11.bigint();
|
|
458
|
+
var JsonToAttoZod = JsonToBigIntZod.transform((v) => asAttoXL1(v));
|
|
459
|
+
var TransactionFeesHexZod = z11.object({
|
|
460
|
+
base: HexZod4,
|
|
461
|
+
gasLimit: HexZod4,
|
|
462
|
+
gasPrice: HexZod4,
|
|
463
|
+
priority: HexZod4
|
|
464
|
+
});
|
|
465
|
+
var isTransactionFeesHex = zodIsFactory(TransactionFeesHexZod);
|
|
466
|
+
var asTransactionFeesHex = zodAsFactory4(TransactionFeesHexZod, "asTransactionFeesHex");
|
|
467
|
+
var toTransactionFeesHex = zodToFactory4(TransactionFeesHexZod, "toTransactionFeesHex");
|
|
468
|
+
var TransactionFeesBigIntZod = z11.object({
|
|
469
|
+
base: AttoZod,
|
|
470
|
+
gasLimit: AttoZod,
|
|
471
|
+
gasPrice: AttoZod,
|
|
472
|
+
priority: AttoZod
|
|
473
|
+
});
|
|
474
|
+
var isTransactionFeesBigInt = zodIsFactory(TransactionFeesBigIntZod);
|
|
475
|
+
var asTransactionFeesBigInt = zodAsFactory4(TransactionFeesBigIntZod, "asTransactionFeesBigInt");
|
|
476
|
+
var toTransactionFeesBigInt = zodToFactory4(TransactionFeesBigIntZod, "toTransactionFeesBigInt");
|
|
477
|
+
var TransactionFeesJsonToBigIntZod = TransactionFeesHexZod.transform((val) => ({
|
|
478
|
+
base: JsonToBigIntZod.parse(val.base),
|
|
479
|
+
gasLimit: JsonToBigIntZod.parse(val.gasLimit),
|
|
480
|
+
gasPrice: JsonToBigIntZod.parse(val.gasPrice),
|
|
481
|
+
priority: JsonToBigIntZod.parse(val.priority)
|
|
482
|
+
}));
|
|
483
|
+
var TransactionFeesBigIntToJsonZod = TransactionFeesBigIntZod.transform((val) => ({
|
|
484
|
+
base: BigIntToJsonZod.parse(val.base),
|
|
485
|
+
gasLimit: BigIntToJsonZod.parse(val.gasLimit),
|
|
486
|
+
gasPrice: BigIntToJsonZod.parse(val.gasPrice),
|
|
487
|
+
priority: BigIntToJsonZod.parse(val.priority)
|
|
488
|
+
}));
|
|
489
|
+
|
|
490
|
+
// src/transaction/TransactionBoundWitness.ts
|
|
491
|
+
var BlockStartZod = z12.object({ nbf: XL1BlockNumberZod });
|
|
492
|
+
var BlockEndZod = z12.object({ exp: XL1BlockNumberZod });
|
|
493
|
+
var BlockDurationZod = z12.object({ nbf: XL1BlockNumberZod, exp: XL1BlockNumberZod });
|
|
494
|
+
var BlockScriptsZod = z12.object({ script: z12.array(z12.string()).optional() });
|
|
495
|
+
var TransactionFeesZod = z12.object({ fees: TransactionFeesHexZod });
|
|
496
|
+
var TransactionBoundWitnessIdentityFields = z12.object({ chain: ChainZod, from: AddressZod });
|
|
497
|
+
var TransactionBoundWitnessFieldsZod = z12.object().safeExtend(BlockDurationZod.shape).safeExtend(TransactionFeesZod.shape).safeExtend(TransactionBoundWitnessIdentityFields.shape).safeExtend(BlockScriptsZod.shape);
|
|
498
|
+
var TransactionBoundWitnessZod = BoundWitnessZod.safeExtend(TransactionBoundWitnessFieldsZod.shape);
|
|
499
|
+
var isTransactionBoundWitness = zodIsFactory2(TransactionBoundWitnessZod);
|
|
500
|
+
var asTransactionBoundWitness = zodAsFactory5(TransactionBoundWitnessZod, "asTransactionBoundWitness");
|
|
501
|
+
var toTransactionBoundWitness = zodToFactory5(TransactionBoundWitnessZod, "toTransactionBoundWitness");
|
|
502
|
+
var TransactionBoundWitnessWithHashMetaZod = TransactionBoundWitnessZod.safeExtend(HashMetaZod.shape);
|
|
503
|
+
var isTransactionBoundWitnessWithHashMeta = zodIsFactory2(TransactionBoundWitnessWithHashMetaZod);
|
|
504
|
+
var asTransactionBoundWitnessWithHashMeta = zodAsFactory5(TransactionBoundWitnessWithHashMetaZod, "asTransactionBoundWitnessWithHashMeta");
|
|
505
|
+
var toTransactionBoundWitnessWithHashMeta = zodToFactory5(TransactionBoundWitnessWithHashMetaZod, "toTransactionBoundWitnessWithHashMeta");
|
|
506
|
+
var TransactionBoundWitnessWithStorageMetaZod = TransactionBoundWitnessZod.safeExtend(StorageMetaZod.shape);
|
|
507
|
+
var isTransactionBoundWitnessWithStorageMeta = zodIsFactory2(TransactionBoundWitnessWithStorageMetaZod);
|
|
508
|
+
var asTransactionBoundWitnessWithStorageMeta = zodAsFactory5(TransactionBoundWitnessWithStorageMetaZod, "asTransactionBoundWitnessWithStorageMeta");
|
|
509
|
+
var toTransactionBoundWitnessWithStorageMeta = zodToFactory5(TransactionBoundWitnessWithStorageMetaZod, "toTransactionBoundWitnessWithStorageMeta");
|
|
510
|
+
var UnsignedTransactionBoundWitnessZod = UnsignedBoundWitnessZod.safeExtend(TransactionBoundWitnessFieldsZod.shape);
|
|
511
|
+
var isUnsignedTransactionBoundWitness = zodIsFactory2(UnsignedTransactionBoundWitnessZod);
|
|
512
|
+
var asUnsignedTransactionBoundWitness = zodAsFactory5(UnsignedTransactionBoundWitnessZod, "asUnsignedTransactionBoundWitness");
|
|
513
|
+
var toUnsignedTransactionBoundWitness = zodToFactory5(UnsignedTransactionBoundWitnessZod, "toUnsignedTransactionBoundWitness");
|
|
514
|
+
var UnsignedTransactionBoundWitnessWithHashMetaZod = UnsignedTransactionBoundWitnessZod.safeExtend(HashMetaZod.shape);
|
|
515
|
+
var isUnsignedTransactionBoundWitnessWithHashMeta = zodIsFactory2(UnsignedTransactionBoundWitnessWithHashMetaZod);
|
|
516
|
+
var asUnsignedTransactionBoundWitnessWithHashMeta = zodAsFactory5(
|
|
517
|
+
UnsignedTransactionBoundWitnessWithHashMetaZod,
|
|
518
|
+
"asUnsignedTransactionBoundWitnessWithHashMeta"
|
|
519
|
+
);
|
|
520
|
+
var toUnsignedTransactionBoundWitnessWithHashMeta = zodToFactory5(
|
|
521
|
+
UnsignedTransactionBoundWitnessWithHashMetaZod,
|
|
522
|
+
"toUnsignedTransactionBoundWitnessWithHashMeta"
|
|
523
|
+
);
|
|
524
|
+
var UnsignedTransactionBoundWitnessWithStorageMetaZod = UnsignedTransactionBoundWitnessZod.safeExtend(StorageMetaZod.shape);
|
|
525
|
+
var isUnsignedTransactionBoundWitnessWithStorageMeta = zodIsFactory2(UnsignedTransactionBoundWitnessWithStorageMetaZod);
|
|
526
|
+
var asUnsignedTransactionBoundWitnessWithStorageMeta = zodAsFactory5(
|
|
527
|
+
UnsignedTransactionBoundWitnessWithStorageMetaZod,
|
|
528
|
+
"asUnsignedTransactionBoundWitnessWithStorageMeta"
|
|
529
|
+
);
|
|
530
|
+
var toUnsignedTransactionBoundWitnessWithStorageMeta = zodToFactory5(
|
|
531
|
+
UnsignedTransactionBoundWitnessWithStorageMetaZod,
|
|
532
|
+
"toUnsignedTransactionBoundWitnessWithStorageMeta"
|
|
533
|
+
);
|
|
534
|
+
var SignedTransactionBoundWitnessZod = SignedBoundWitnessZod.safeExtend(TransactionBoundWitnessFieldsZod.shape);
|
|
535
|
+
var isSignedTransactionBoundWitness = zodIsFactory2(SignedTransactionBoundWitnessZod);
|
|
536
|
+
var asSignedTransactionBoundWitness = zodAsFactory5(SignedTransactionBoundWitnessZod, "asSignedTransactionBoundWitness");
|
|
537
|
+
var toSignedTransactionBoundWitness = zodToFactory5(SignedTransactionBoundWitnessZod, "toSignedTransactionBoundWitness");
|
|
538
|
+
var SignedTransactionBoundWitnessWithHashMetaZod = WithHashMetaZod(SignedTransactionBoundWitnessZod);
|
|
539
|
+
var isSignedTransactionBoundWitnessWithHashMeta = zodIsFactory2(SignedTransactionBoundWitnessWithHashMetaZod);
|
|
540
|
+
var asSignedTransactionBoundWitnessWithHashMeta = zodAsFactory5(
|
|
541
|
+
SignedTransactionBoundWitnessWithHashMetaZod,
|
|
542
|
+
"asSignedTransactionBoundWitnessWithHashMeta"
|
|
543
|
+
);
|
|
544
|
+
var toSignedTransactionBoundWitnessWithHashMeta = zodToFactory5(
|
|
545
|
+
SignedTransactionBoundWitnessWithHashMetaZod,
|
|
546
|
+
"toSignedTransactionBoundWitnessWithHashMeta"
|
|
547
|
+
);
|
|
548
|
+
var SignedTransactionBoundWitnessWithStorageMetaZod = WithStorageMetaZod(SignedTransactionBoundWitnessZod);
|
|
549
|
+
var isSignedTransactionBoundWitnessWithStorageMeta = zodIsFactory2(SignedTransactionBoundWitnessWithStorageMetaZod);
|
|
550
|
+
var asSignedTransactionBoundWitnessWithStorageMeta = zodAsFactory5(
|
|
551
|
+
SignedTransactionBoundWitnessWithStorageMetaZod,
|
|
552
|
+
"asSignedTransactionBoundWitnessWithStorageMeta"
|
|
553
|
+
);
|
|
554
|
+
var toSignedTransactionBoundWitnessWithStorageMeta = zodToFactory5(
|
|
555
|
+
SignedTransactionBoundWitnessWithStorageMetaZod,
|
|
556
|
+
"toSignedTransactionBoundWitnessWithStorageMeta"
|
|
557
|
+
);
|
|
558
|
+
|
|
559
|
+
// src/transaction/TransactionGasCosts.ts
|
|
560
|
+
var TransactionGasCosts = {
|
|
561
|
+
/**
|
|
562
|
+
* The cost of storing each character that is added to the chain
|
|
563
|
+
* This includes the transaction JSON and all the elevated payloads' JSON
|
|
564
|
+
*/
|
|
565
|
+
characterStorage: 10n,
|
|
566
|
+
/** The cost of static validating every payload that will be included in the chain */
|
|
567
|
+
payloadValidation: 1000n,
|
|
568
|
+
/** The cost of validating each signature that will be included in the chain */
|
|
569
|
+
signatureValidation: 1000n,
|
|
570
|
+
/** The cost of validating each hash that will be included in the chain */
|
|
571
|
+
hashValidation: 100n,
|
|
572
|
+
/** The cost of validating a balance state, triggered by a Transfer payload or gas collection */
|
|
573
|
+
balanceValidation: 100n
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
// src/TransferPayload.ts
|
|
577
|
+
import {
|
|
578
|
+
AddressZod as AddressZod2,
|
|
579
|
+
AsObjectFactory as AsObjectFactory9,
|
|
580
|
+
HexZod as HexZod5,
|
|
581
|
+
JsonObjectZod
|
|
582
|
+
} from "@xylabs/sdk-js";
|
|
583
|
+
import {
|
|
584
|
+
asSchema as asSchema9,
|
|
585
|
+
isPayloadOfSchemaType as isPayloadOfSchemaType5,
|
|
586
|
+
PayloadZodOfSchema as PayloadZodOfSchema2
|
|
587
|
+
} from "@xyo-network/sdk-js";
|
|
588
|
+
import { z as z13 } from "zod";
|
|
589
|
+
var TransferSchema = asSchema9("network.xyo.transfer", true);
|
|
590
|
+
var TransferFieldsZod = z13.object({
|
|
591
|
+
// Removed as only transaction have opCodes
|
|
592
|
+
// $opCodes: z.array(z.string()).optional(),
|
|
593
|
+
context: JsonObjectZod.optional(),
|
|
594
|
+
epoch: z13.number(),
|
|
595
|
+
from: AddressZod2,
|
|
596
|
+
transfers: z13.record(AddressZod2, HexZod5)
|
|
597
|
+
});
|
|
598
|
+
var TransferZod = PayloadZodOfSchema2(TransferSchema).extend(TransferFieldsZod.shape);
|
|
599
|
+
var isTransfer = isPayloadOfSchemaType5(TransferSchema);
|
|
600
|
+
var asTransfer = AsObjectFactory9.create(isTransfer);
|
|
601
|
+
|
|
602
|
+
// src/block/AllowedBlockPayload.ts
|
|
603
|
+
var AllowedBlockPayloadSchemas = [
|
|
604
|
+
BoundWitnessSchema,
|
|
605
|
+
BridgeDestinationObservationSchema,
|
|
606
|
+
BridgeIntentSchema,
|
|
607
|
+
BridgeSourceObservationSchema,
|
|
608
|
+
ChainStakeIntentSchema,
|
|
609
|
+
HashSchema,
|
|
610
|
+
SchemaSchema,
|
|
611
|
+
StepCompleteSchema,
|
|
612
|
+
TimeSchema,
|
|
613
|
+
TransferSchema
|
|
614
|
+
];
|
|
615
|
+
var AllowedBlockPayloadSchemaZod = z14.enum(AllowedBlockPayloadSchemas);
|
|
616
|
+
var isAllowedBlockPayloadSchema = zodIsFactory3(AllowedBlockPayloadSchemaZod);
|
|
617
|
+
var isAllowedBlockPayload = (value) => {
|
|
618
|
+
return isTransfer(value) || isBridgeDestinationObservation(value) || isBridgeIntent(value) || isBridgeSourceObservation(value) || isChainStakeIntent(value) || isHashPayload(value) || isSchemaPayload(value) || isTimePayload(value) || isTransactionBoundWitness(value);
|
|
619
|
+
};
|
|
620
|
+
var isAllowedBlockPayloadWithHashMeta = (value) => {
|
|
621
|
+
return isAllowedBlockPayload(value) && isHashMeta(value);
|
|
622
|
+
};
|
|
623
|
+
|
|
624
|
+
// src/block/BlockBoundWitness.ts
|
|
625
|
+
import {
|
|
626
|
+
HashZod as HashZod2,
|
|
627
|
+
zodAsFactory as zodAsFactory6,
|
|
628
|
+
zodIsFactory as zodIsFactory4,
|
|
629
|
+
zodToFactory as zodToFactory6
|
|
630
|
+
} from "@xylabs/sdk-js";
|
|
631
|
+
import {
|
|
632
|
+
BoundWitnessZod as BoundWitnessZod2,
|
|
633
|
+
WithHashMetaZod as WithHashMetaZod2,
|
|
634
|
+
WithStorageMetaZod as WithStorageMetaZod2
|
|
635
|
+
} from "@xyo-network/sdk-js";
|
|
636
|
+
import { z as z15 } from "zod";
|
|
637
|
+
var BlockBoundWitnessFieldsZod = z15.object({
|
|
638
|
+
block: XL1BlockNumberZod,
|
|
639
|
+
chain: ChainZod,
|
|
640
|
+
previous: HashZod2.nullable(),
|
|
641
|
+
protocol: z15.number().optional(),
|
|
642
|
+
step_hashes: z15.array(HashZod2).optional()
|
|
643
|
+
});
|
|
644
|
+
var BlockBoundWitnessMetaZod = z15.object({ $epoch: z15.number() });
|
|
645
|
+
var BlockBoundWitnessZod = z15.object({
|
|
646
|
+
...BoundWitnessZod2.shape,
|
|
647
|
+
...BlockBoundWitnessFieldsZod.shape,
|
|
648
|
+
...BlockBoundWitnessMetaZod.shape
|
|
649
|
+
});
|
|
650
|
+
var isBlockBoundWitness = zodIsFactory4(BlockBoundWitnessZod);
|
|
651
|
+
var asBlockBoundWitness = zodAsFactory6(BlockBoundWitnessZod, "asBlockBoundWitness");
|
|
652
|
+
var toBlockBoundWitness = zodToFactory6(BlockBoundWitnessZod, "toBlockBoundWitness");
|
|
653
|
+
var BlockBoundWitnessWithHashMetaZod = WithHashMetaZod2(BlockBoundWitnessZod);
|
|
654
|
+
var isBlockBoundWitnessWithHashMeta = zodIsFactory4(WithHashMetaZod2(BlockBoundWitnessZod));
|
|
655
|
+
var asBlockBoundWitnessWithHashMeta = zodAsFactory6(WithHashMetaZod2(BlockBoundWitnessZod), "asBlockBoundWitnessWithHashMeta");
|
|
656
|
+
var toBlockBoundWitnessWithHashMeta = zodToFactory6(WithHashMetaZod2(BlockBoundWitnessZod), "toBlockBoundWitnessWithHashMeta");
|
|
657
|
+
var BlockBoundWitnessWithStorageMetaZod = WithStorageMetaZod2(BlockBoundWitnessZod);
|
|
658
|
+
var isBlockBoundWitnessWithStorageMeta = zodIsFactory4(WithStorageMetaZod2(BlockBoundWitnessZod));
|
|
659
|
+
var asBlockBoundWitnessWithStorageMeta = zodAsFactory6(WithStorageMetaZod2(BlockBoundWitnessZod), "asBlockBoundWitnessWithStorageMeta");
|
|
660
|
+
var toBlockBoundWitnessWithStorageMeta = zodToFactory6(WithStorageMetaZod2(BlockBoundWitnessZod), "toBlockBoundWitnessWithStorageMeta");
|
|
661
|
+
|
|
662
|
+
// src/block/HydratedBlock.ts
|
|
663
|
+
import {
|
|
664
|
+
zodAsFactory as zodAsFactory10,
|
|
665
|
+
zodIsFactory as zodIsFactory8,
|
|
666
|
+
zodToFactory as zodToFactory10
|
|
667
|
+
} from "@xylabs/sdk-js";
|
|
668
|
+
import {
|
|
669
|
+
PayloadZod,
|
|
670
|
+
PayloadZodLoose,
|
|
671
|
+
WithHashMetaZod as WithHashMetaZod4,
|
|
672
|
+
WithStorageMetaZod as WithStorageMetaZod4
|
|
673
|
+
} from "@xyo-network/sdk-js";
|
|
674
|
+
import { z as z16 } from "zod";
|
|
675
|
+
|
|
676
|
+
// src/block/signed/SignedBlockBoundWitness.ts
|
|
677
|
+
import {
|
|
678
|
+
zodAsFactory as zodAsFactory7,
|
|
679
|
+
zodIsFactory as zodIsFactory5,
|
|
680
|
+
zodToFactory as zodToFactory7
|
|
681
|
+
} from "@xylabs/sdk-js";
|
|
682
|
+
import { SignedBoundWitnessZod as SignedBoundWitnessZod2 } from "@xyo-network/sdk-js";
|
|
683
|
+
var SignedBlockBoundWitnessZod = SignedBoundWitnessZod2.safeExtend(BlockBoundWitnessFieldsZod.shape).safeExtend(BlockBoundWitnessMetaZod.shape);
|
|
684
|
+
var isSignedBlockBoundWitness = zodIsFactory5(SignedBlockBoundWitnessZod);
|
|
685
|
+
var asSignedBlockBoundWitness = zodAsFactory7(SignedBlockBoundWitnessZod, "asSignedBlockBoundWitness");
|
|
686
|
+
var toSignedBlockBoundWitness = zodToFactory7(SignedBlockBoundWitnessZod, "toSignedBlockBoundWitness");
|
|
687
|
+
|
|
688
|
+
// src/block/signed/SignedBlockBoundWitnessWithHashMeta.ts
|
|
689
|
+
import {
|
|
690
|
+
zodAsFactory as zodAsFactory8,
|
|
691
|
+
zodIsFactory as zodIsFactory6,
|
|
692
|
+
zodToFactory as zodToFactory8
|
|
693
|
+
} from "@xylabs/sdk-js";
|
|
694
|
+
import { PayloadBuilder, WithHashMetaZod as WithHashMetaZod3 } from "@xyo-network/sdk-js";
|
|
695
|
+
var SignedBlockBoundWitnessWithHashMetaZod = WithHashMetaZod3(SignedBlockBoundWitnessZod);
|
|
696
|
+
var isSignedBlockBoundWitnessWithHashMeta = zodIsFactory6(SignedBlockBoundWitnessWithHashMetaZod);
|
|
697
|
+
var asSignedBlockBoundWitnessWithHashMeta = zodAsFactory8(SignedBlockBoundWitnessWithHashMetaZod, "asSignedBlockBoundWitnessWithHashMeta");
|
|
698
|
+
var SignedBlockBoundWitnessWithHashMetaishZod = SignedBlockBoundWitnessZod.transform(async (data) => {
|
|
699
|
+
if (isSignedBlockBoundWitnessWithHashMeta(data)) {
|
|
700
|
+
return data;
|
|
701
|
+
}
|
|
702
|
+
if (isSignedBlockBoundWitness(data)) {
|
|
703
|
+
return await PayloadBuilder.addHashMeta(data);
|
|
704
|
+
}
|
|
705
|
+
throw new Error("Invalid SignedBlockBoundWitnessWithHashMetaish format");
|
|
706
|
+
});
|
|
707
|
+
var toSignedBlockBoundWitnessWithHashMeta = zodToFactory8(SignedBlockBoundWitnessWithHashMetaZod, "toSignedBlockBoundWitnessWithHashMeta");
|
|
708
|
+
|
|
709
|
+
// src/block/signed/SignedBlockBoundWitnessWithStorageMeta.ts
|
|
710
|
+
import {
|
|
711
|
+
zodAsFactory as zodAsFactory9,
|
|
712
|
+
zodIsFactory as zodIsFactory7,
|
|
713
|
+
zodToFactory as zodToFactory9
|
|
714
|
+
} from "@xylabs/sdk-js";
|
|
715
|
+
import { PayloadBuilder as PayloadBuilder2, WithStorageMetaZod as WithStorageMetaZod3 } from "@xyo-network/sdk-js";
|
|
716
|
+
var SignedBlockBoundWitnessWithStorageMetaZod = WithStorageMetaZod3(SignedBlockBoundWitnessZod);
|
|
717
|
+
var isSignedBlockBoundWitnessWithStorageMeta = zodIsFactory7(SignedBlockBoundWitnessWithStorageMetaZod);
|
|
718
|
+
var asSignedBlockBoundWitnessWithStorageMeta = zodAsFactory9(
|
|
719
|
+
SignedBlockBoundWitnessWithStorageMetaZod,
|
|
720
|
+
"asSignedBlockBoundWitnessWithStorageMeta"
|
|
721
|
+
);
|
|
722
|
+
var SignedBlockBoundWitnessWithStorageMetaishZod = SignedBlockBoundWitnessZod.transform(async (data) => {
|
|
723
|
+
if (isSignedBlockBoundWitnessWithStorageMeta(data)) {
|
|
724
|
+
return data;
|
|
725
|
+
}
|
|
726
|
+
if (isSignedBlockBoundWitness(data)) {
|
|
727
|
+
return await PayloadBuilder2.addStorageMeta(data);
|
|
728
|
+
}
|
|
729
|
+
throw new Error("Invalid SignedBlockBoundWitnessWithStorageMetaish format");
|
|
730
|
+
});
|
|
731
|
+
var toSignedBlockBoundWitnessWithStorageMeta = zodToFactory9(
|
|
732
|
+
SignedBlockBoundWitnessWithStorageMetaishZod,
|
|
733
|
+
"toSignedBlockBoundWitnessWithStorageMeta"
|
|
734
|
+
);
|
|
735
|
+
|
|
736
|
+
// src/block/HydratedBlock.ts
|
|
737
|
+
var HydratedBlockZod = z16.tuple([
|
|
738
|
+
BlockBoundWitnessZod,
|
|
739
|
+
z16.array(PayloadZodLoose)
|
|
740
|
+
]);
|
|
741
|
+
var isHydratedBlock = zodIsFactory8(HydratedBlockZod);
|
|
742
|
+
var asHydratedBlock = zodAsFactory10(HydratedBlockZod, "asHydratedBlock");
|
|
743
|
+
var toHydratedBlock = zodToFactory10(HydratedBlockZod, "toHydratedBlock");
|
|
744
|
+
var HydratedBlockWithHashMetaZod = z16.tuple([
|
|
745
|
+
WithHashMetaZod4(BlockBoundWitnessZod),
|
|
746
|
+
z16.array(WithHashMetaZod4(PayloadZod).loose())
|
|
747
|
+
]);
|
|
748
|
+
var isHydratedBlockWithHashMeta = zodIsFactory8(HydratedBlockWithHashMetaZod);
|
|
749
|
+
var asHydratedBlockWithHashMeta = zodAsFactory10(HydratedBlockWithHashMetaZod, "asHydratedBlockWithHashMeta");
|
|
750
|
+
var toHydratedBlockWithHashMeta = zodToFactory10(HydratedBlockWithHashMetaZod, "toHydratedBlockWithHashMeta");
|
|
751
|
+
var HydratedBlockWithStorageMetaZod = z16.tuple([
|
|
752
|
+
WithStorageMetaZod4(BlockBoundWitnessZod),
|
|
753
|
+
z16.array(WithStorageMetaZod4(PayloadZod).loose())
|
|
754
|
+
]);
|
|
755
|
+
var isHydratedBlockWithStorageMeta = zodIsFactory8(HydratedBlockWithStorageMetaZod);
|
|
756
|
+
var asHydratedBlockWithStorageMeta = zodAsFactory10(HydratedBlockWithStorageMetaZod, "asHydratedBlockWithStorageMeta");
|
|
757
|
+
var toHydratedBlockWithStorageMeta = zodToFactory10(HydratedBlockWithStorageMetaZod, "toHydratedBlockWithStorageMeta");
|
|
758
|
+
var SignedHydratedBlockZod = z16.tuple([
|
|
759
|
+
SignedBlockBoundWitnessZod,
|
|
760
|
+
z16.array(PayloadZod.loose())
|
|
761
|
+
]);
|
|
762
|
+
var isSignedHydratedBlock = zodIsFactory8(SignedHydratedBlockZod);
|
|
763
|
+
var asSignedHydratedBlock = zodAsFactory10(SignedHydratedBlockZod, "asSignedHydratedBlock");
|
|
764
|
+
var toSignedHydratedBlock = zodToFactory10(SignedHydratedBlockZod, "toSignedHydratedBlock");
|
|
765
|
+
var SignedHydratedBlockToJsonZod = z16.tuple([
|
|
766
|
+
SignedBlockBoundWitnessZod,
|
|
767
|
+
z16.array(PayloadZod.loose())
|
|
768
|
+
]);
|
|
769
|
+
var isSignedHydratedBlockToJson = zodIsFactory8(SignedHydratedBlockToJsonZod);
|
|
770
|
+
var asSignedHydratedBlockToJson = zodAsFactory10(SignedHydratedBlockToJsonZod, "asSignedHydratedBlockToJson");
|
|
771
|
+
var toSignedHydratedBlockToJson = zodToFactory10(SignedHydratedBlockToJsonZod, "toSignedHydratedBlockToJson");
|
|
772
|
+
var SignedHydratedBlockWithHashMetaZod = z16.tuple([
|
|
773
|
+
WithHashMetaZod4(SignedBlockBoundWitnessZod),
|
|
774
|
+
z16.array(WithHashMetaZod4(PayloadZod).loose())
|
|
775
|
+
]);
|
|
776
|
+
var SignedHydratedBlockWithHashMetaishZod = z16.tuple([
|
|
777
|
+
z16.union([WithHashMetaZod4(SignedBlockBoundWitnessZod)]),
|
|
778
|
+
z16.array(WithHashMetaZod4(PayloadZod).loose())
|
|
779
|
+
]);
|
|
780
|
+
var isSignedHydratedBlockWithHashMeta = zodIsFactory8(SignedHydratedBlockWithHashMetaZod);
|
|
781
|
+
var asSignedHydratedBlockWithHashMeta = zodAsFactory10(SignedHydratedBlockWithHashMetaZod, "asSignedHydratedBlockWithHashMeta");
|
|
782
|
+
var toSignedHydratedBlockWithHashMeta = zodToFactory10(SignedHydratedBlockWithHashMetaZod, "toSignedHydratedBlockWithHashMeta");
|
|
783
|
+
var SignedHydratedBlockWithStorageMetaZod = z16.tuple([
|
|
784
|
+
WithStorageMetaZod4(SignedBlockBoundWitnessZod),
|
|
785
|
+
z16.array(WithStorageMetaZod4(PayloadZod).loose())
|
|
786
|
+
]);
|
|
787
|
+
var isSignedHydratedBlockWithStorageMeta = zodIsFactory8(SignedHydratedBlockWithStorageMetaZod);
|
|
788
|
+
var asSignedHydratedBlockWithStorageMeta = zodAsFactory10(SignedHydratedBlockWithStorageMetaZod, "asSignedHydratedBlockWithStorageMeta");
|
|
789
|
+
var toSignedHydratedBlockWithStorageMeta = zodToFactory10(SignedHydratedBlockWithStorageMetaZod, "toSignedHydratedBlockWithStorageMeta");
|
|
790
|
+
var SignedHydratedBlockWithStorageMetaishZod = z16.tuple([
|
|
791
|
+
z16.union([WithStorageMetaZod4(SignedBlockBoundWitnessZod)]),
|
|
792
|
+
z16.array(WithStorageMetaZod4(PayloadZod).loose())
|
|
793
|
+
]);
|
|
794
|
+
|
|
795
|
+
// src/block/unsigned/UnsignedBlockBoundWitness.ts
|
|
796
|
+
import {
|
|
797
|
+
zodAsFactory as zodAsFactory11,
|
|
798
|
+
zodIsFactory as zodIsFactory9,
|
|
799
|
+
zodToFactory as zodToFactory11
|
|
800
|
+
} from "@xylabs/sdk-js";
|
|
801
|
+
import { UnsignedBoundWitnessZod as UnsignedBoundWitnessZod2 } from "@xyo-network/sdk-js";
|
|
802
|
+
var UnsignedBlockBoundWitnessZod = UnsignedBoundWitnessZod2.safeExtend(BlockBoundWitnessFieldsZod.shape).safeExtend(BlockBoundWitnessMetaZod.shape);
|
|
803
|
+
var isUnsignedBlockBoundWitness = zodIsFactory9(UnsignedBlockBoundWitnessZod);
|
|
804
|
+
var asUnsignedBlockBoundWitness = zodAsFactory11(UnsignedBlockBoundWitnessZod, "asUnsignedBlockBoundWitness");
|
|
805
|
+
var toUnsignedBlockBoundWitness = zodToFactory11(UnsignedBlockBoundWitnessZod, "toUnsignedBlockBoundWitness");
|
|
806
|
+
|
|
807
|
+
// src/fields/BlockNumber.ts
|
|
808
|
+
import { AsObjectFactory as AsObjectFactory10 } from "@xylabs/sdk-js";
|
|
809
|
+
import {
|
|
810
|
+
asSchema as asSchema10,
|
|
811
|
+
isPayloadOfSchemaType as isPayloadOfSchemaType6,
|
|
812
|
+
isPayloadOfSchemaTypeWithSources
|
|
813
|
+
} from "@xyo-network/sdk-js";
|
|
814
|
+
var BlockNumberSchema = asSchema10("network.xyo.chain.block.number", true);
|
|
815
|
+
var isBlockNumberPayload = isPayloadOfSchemaType6(BlockNumberSchema);
|
|
816
|
+
var asBlockNumberPayload = AsObjectFactory10.create(isBlockNumberPayload);
|
|
817
|
+
var isBlockNumberPayloadWithSources = isPayloadOfSchemaTypeWithSources(BlockNumberSchema);
|
|
818
|
+
var asBlockNumberPayloadWithSources = AsObjectFactory10.create(isBlockNumberPayloadWithSources);
|
|
819
|
+
|
|
820
|
+
// src/model/AccountBalance.ts
|
|
821
|
+
import { zodIsFactory as zodIsFactory12 } from "@xylabs/sdk-js";
|
|
822
|
+
import { WithHashMetaZod as WithHashMetaZod5 } from "@xyo-network/sdk-js";
|
|
823
|
+
import { z as z22 } from "zod";
|
|
824
|
+
|
|
825
|
+
// src/model/ChainQualification.ts
|
|
826
|
+
import { HashZod as HashZod3, zodIsFactory as zodIsFactory11 } from "@xylabs/sdk-js";
|
|
827
|
+
import { z as z21 } from "zod";
|
|
828
|
+
|
|
829
|
+
// src/model/BlockRange/BlockRange.ts
|
|
830
|
+
import {
|
|
831
|
+
assertError,
|
|
832
|
+
isDefined,
|
|
833
|
+
zodAsFactory as zodAsFactory12,
|
|
834
|
+
zodToFactory as zodToFactory12
|
|
835
|
+
} from "@xylabs/sdk-js";
|
|
836
|
+
import { z as z17 } from "zod";
|
|
837
|
+
var BlockRangeZod = z17.tuple([BlockNumberZod, BlockNumberZod]);
|
|
838
|
+
var BlockRangeishZod = z17.tuple([BlockNumberishZod, BlockNumberishZod]);
|
|
839
|
+
var asBlockRange = zodAsFactory12(BlockRangeZod, "BlockRange");
|
|
840
|
+
var toBlockRange = zodToFactory12(BlockRangeishZod, "BlockRange");
|
|
841
|
+
var toBlockNumberKey = (range) => `${range[0]}|${range[1]}`;
|
|
842
|
+
function fromBlockNumberKey(key, assert) {
|
|
843
|
+
const [start, end] = key.split("|").map((v) => asBlockNumber(Number(v)));
|
|
844
|
+
const result = isDefined(start) && isDefined(end) ? [start, end] : void 0;
|
|
845
|
+
return assertError(result, assert, `Invalid BlockRangeKey: ${key}`);
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
// src/model/BlockRange/EthBlockRange.ts
|
|
849
|
+
import {
|
|
850
|
+
assertError as assertError2,
|
|
851
|
+
isDefined as isDefined2,
|
|
852
|
+
zodAsFactory as zodAsFactory13,
|
|
853
|
+
zodToFactory as zodToFactory13
|
|
854
|
+
} from "@xylabs/sdk-js";
|
|
855
|
+
import { z as z18 } from "zod";
|
|
856
|
+
var EthBlockRangeZod = z18.tuple([EthBlockNumberZod, EthBlockNumberZod]);
|
|
857
|
+
var EthBlockRangeishZod = z18.tuple([EthBlockNumberishZod, EthBlockNumberishZod]);
|
|
858
|
+
var asEthBlockRange = zodAsFactory13(EthBlockRangeZod, "EthBlockRange");
|
|
859
|
+
var toEthBlockRange = zodToFactory13(EthBlockRangeishZod, "EthBlockRange");
|
|
860
|
+
var toEthBlockNumberKey = (range) => `${range[0]}|${range[1]}`;
|
|
861
|
+
function fromEthBlockNumberKey(key, assert) {
|
|
862
|
+
const [start, end] = key.split("|").map((v) => asEthBlockNumber(Number(v)));
|
|
863
|
+
const result = isDefined2(start) && isDefined2(end) ? [start, end] : void 0;
|
|
864
|
+
return assertError2(result, assert, `Invalid EthBlockRangeKey: ${key}`);
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
// src/model/BlockRange/Range.ts
|
|
868
|
+
import {
|
|
869
|
+
zodAsFactory as zodAsFactory14,
|
|
870
|
+
zodIsFactory as zodIsFactory10,
|
|
871
|
+
zodToFactory as zodToFactory14
|
|
872
|
+
} from "@xylabs/sdk-js";
|
|
873
|
+
import { z as z19 } from "zod";
|
|
874
|
+
var RangeZod = z19.tuple([z19.number(), z19.number()]);
|
|
875
|
+
var isRange = zodIsFactory10(RangeZod);
|
|
876
|
+
var asRange = zodAsFactory14(RangeZod, "Range");
|
|
877
|
+
var toRange = zodToFactory14(RangeZod, "Range");
|
|
878
|
+
|
|
879
|
+
// src/model/BlockRange/XL1BlockRange.ts
|
|
880
|
+
import {
|
|
881
|
+
assertError as assertError3,
|
|
882
|
+
isDefined as isDefined3,
|
|
883
|
+
zodAsFactory as zodAsFactory15,
|
|
884
|
+
zodToFactory as zodToFactory15
|
|
885
|
+
} from "@xylabs/sdk-js";
|
|
886
|
+
import { z as z20 } from "zod";
|
|
887
|
+
var XL1BlockRangeZod = z20.tuple([XL1BlockNumberZod, XL1BlockNumberZod]);
|
|
888
|
+
var XL1BlockRangeishZod = z20.tuple([XL1BlockNumberishZod, XL1BlockNumberishZod]);
|
|
889
|
+
var asXL1BlockRange = zodAsFactory15(XL1BlockRangeZod, "XL1BlockRange");
|
|
890
|
+
var toXL1BlockRange = zodToFactory15(XL1BlockRangeishZod, "XL1BlockRange");
|
|
891
|
+
var toXL1BlockNumberKey = (range) => `${range[0]}|${range[1]}`;
|
|
892
|
+
function fromXL1BlockNumberKey(key, assert) {
|
|
893
|
+
const [start, end] = key.split("|").map((v) => asXL1BlockNumber(Number(v)));
|
|
894
|
+
const result = isDefined3(start) && isDefined3(end) ? [start, end] : void 0;
|
|
895
|
+
return assertError3(result, assert, `Invalid XL1BlockRangeKey: ${key}`);
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
// src/model/ChainQualification.ts
|
|
899
|
+
var ChainQualificationZod = z21.object({ head: HashZod3, range: XL1BlockRangeZod });
|
|
900
|
+
var isChainQualification = zodIsFactory11(ChainQualificationZod);
|
|
901
|
+
var ChainQualifiedRangeConfigZod = z21.object({ range: XL1BlockRangeZod });
|
|
902
|
+
var isChainQualifiedRangeConfig = zodIsFactory11(ChainQualifiedRangeConfigZod);
|
|
903
|
+
var ChainQualifiedHeadConfigZod = z21.object({ head: HashZod3 });
|
|
904
|
+
var isChainQualifiedHeadConfig = zodIsFactory11(ChainQualifiedHeadConfigZod);
|
|
905
|
+
var ChainQualifiedConfigZod = z21.union([ChainQualifiedRangeConfigZod, ChainQualifiedHeadConfigZod, z21.object({})]);
|
|
906
|
+
var isChainQualifiedConfig = zodIsFactory11(ChainQualifiedConfigZod);
|
|
907
|
+
var ExtendChainQualifiedConfigZod = ((zodType) => {
|
|
908
|
+
return z21.union([
|
|
909
|
+
ChainQualifiedRangeConfigZod.extend(zodType),
|
|
910
|
+
ChainQualifiedHeadConfigZod.extend(zodType),
|
|
911
|
+
zodType
|
|
912
|
+
]);
|
|
913
|
+
});
|
|
914
|
+
var ChainQualifiedZod = (zodType) => {
|
|
915
|
+
return z21.tuple([zodType, ChainQualificationZod]);
|
|
916
|
+
};
|
|
917
|
+
|
|
918
|
+
// src/model/AccountBalance.ts
|
|
919
|
+
var AccountBalanceHistoryItemZod = z22.tuple([
|
|
920
|
+
WithHashMetaZod5(BlockBoundWitnessZod),
|
|
921
|
+
WithHashMetaZod5(TransactionBoundWitnessZod).nullable(),
|
|
922
|
+
WithHashMetaZod5(TransferZod)
|
|
923
|
+
]);
|
|
924
|
+
var AccountBalanceQualificationZod = ChainQualificationZod;
|
|
925
|
+
var isAccountBalanceQualification = zodIsFactory12(AccountBalanceQualificationZod);
|
|
926
|
+
var AccountBalanceConfigZod = ChainQualifiedConfigZod;
|
|
927
|
+
var isAccountBalanceConfig = zodIsFactory12(AccountBalanceConfigZod);
|
|
928
|
+
var AccountBalanceViewerMoniker = "AccountBalanceViewer";
|
|
929
|
+
|
|
930
|
+
// src/model/addresses.ts
|
|
931
|
+
var XYO_ZERO_ADDRESS = "0000000000000000000000000000000000000000";
|
|
932
|
+
var XYO_BRIDGE_ADDRESS = "3012193230121932301219323012193230121932";
|
|
933
|
+
var XYO_NETWORK_STAKING_ADDRESS = "1969196919691969196919691969196919691969";
|
|
934
|
+
var XYO_STEP_REWARD_ADDRESS = "1216197612161976121619761216197612161976";
|
|
935
|
+
var XL1_ETH_MAIN_ERC20_CONTRACT_ADDRESS = "0xf72aE3E0DA743033AbD7A407557D684c1aE66aed";
|
|
936
|
+
var XL1_ETH_MAIN_SUB_GOVERNOR_ADDRESS = "0xbA296Bc5D0949C0484f08c56c30FB95CC4675A29";
|
|
937
|
+
var XL1_ETH_MAIN_REWARDS_ADDRESS = "0x1a546e091FB4EFb274DC584334a28b8754c4ece7";
|
|
938
|
+
var XL1_ETH_MAIN_STAKED_XYO_CHAIN_ADDRESS = "0x319e667cED10452A117472811130444dED357F26";
|
|
939
|
+
var XL1_ETH_MAIN_GOVERNANCE_ADDRESS = "0x7595710956d6B14b4f2F51a8dF41379eEeC9074E";
|
|
940
|
+
|
|
941
|
+
// src/model/ArrayBuffer.ts
|
|
942
|
+
import { z as z23 } from "zod";
|
|
943
|
+
function base64Encode(u8) {
|
|
944
|
+
if (typeof Buffer !== "undefined" && typeof Buffer.from === "function") {
|
|
945
|
+
return Buffer.from(u8).toString("base64");
|
|
946
|
+
}
|
|
947
|
+
let binary = "";
|
|
948
|
+
const chunk = 32768;
|
|
949
|
+
for (let i = 0; i < u8.length; i += chunk) {
|
|
950
|
+
binary += String.fromCharCode(...u8.subarray(i, i + chunk));
|
|
951
|
+
}
|
|
952
|
+
return btoa(binary);
|
|
953
|
+
}
|
|
954
|
+
function base64Decode(b64) {
|
|
955
|
+
if (typeof Buffer !== "undefined" && typeof Buffer.from === "function") {
|
|
956
|
+
return new Uint8Array(Buffer.from(b64, "base64"));
|
|
957
|
+
}
|
|
958
|
+
const binary = atob(b64);
|
|
959
|
+
const u8 = new Uint8Array(binary.length);
|
|
960
|
+
for (let i = 0; i < binary.length; i++) u8[i] = binary.charCodeAt(i);
|
|
961
|
+
return u8;
|
|
962
|
+
}
|
|
963
|
+
var ArrayBufferToJsonZod = z23.instanceof(ArrayBuffer).transform((x) => {
|
|
964
|
+
const u8 = new Uint8Array(x);
|
|
965
|
+
return base64Encode(u8);
|
|
966
|
+
});
|
|
967
|
+
var JsonToArrayBufferZod = z23.string().transform((x) => {
|
|
968
|
+
const u8 = base64Decode(x);
|
|
969
|
+
return u8.buffer;
|
|
970
|
+
});
|
|
971
|
+
|
|
972
|
+
// src/model/BlockRate.ts
|
|
973
|
+
import { zodAsFactory as zodAsFactory16, zodIsFactory as zodIsFactory13 } from "@xylabs/sdk-js";
|
|
974
|
+
import { z as z24 } from "zod";
|
|
975
|
+
var TimeDurationsZod = z24.object({
|
|
976
|
+
millis: z24.number().nonnegative(),
|
|
977
|
+
seconds: z24.number().nonnegative(),
|
|
978
|
+
minutes: z24.number().nonnegative(),
|
|
979
|
+
hours: z24.number().nonnegative(),
|
|
980
|
+
days: z24.number().nonnegative(),
|
|
981
|
+
weeks: z24.number().nonnegative()
|
|
982
|
+
});
|
|
983
|
+
var isTimeDurations = zodIsFactory13(TimeDurationsZod);
|
|
984
|
+
var asTimeDurations = zodAsFactory16(TimeDurationsZod, "asTimeDurations");
|
|
985
|
+
var toTimeDurations = zodAsFactory16(TimeDurationsZod, "toTimeDurations");
|
|
986
|
+
var BlockRateZod = z24.object({
|
|
987
|
+
range: XL1BlockRangeZod.describe("the block range the rate was calculated over"),
|
|
988
|
+
rate: z24.number().nonnegative().describe("rate of blocks per specified time unit"),
|
|
989
|
+
timeUnit: TimeDurationsZod.keyof().describe("the unit of time for the rate and timePerBlock"),
|
|
990
|
+
span: z24.int().nonnegative().describe("number of blocks the rate was calculated over"),
|
|
991
|
+
timeDifference: z24.number().nonnegative().describe("time difference from start and end block"),
|
|
992
|
+
timePerBlock: z24.number().nonnegative().describe("average time per block for the given range")
|
|
993
|
+
});
|
|
994
|
+
var isBlockRate = zodIsFactory13(BlockRateZod);
|
|
995
|
+
var asBlockRate = zodAsFactory16(BlockRateZod, "asBlockRate");
|
|
996
|
+
var toBlockRate = zodAsFactory16(BlockRateZod, "toBlockRate");
|
|
997
|
+
var CountZod = z24.int().nonnegative().describe("A non-negative integer count");
|
|
998
|
+
var StepIndexZod = z24.int().min(0).max(StepSizes.length).describe("A non-negative integer step index");
|
|
999
|
+
var timeUnitSchema = z24.number().positive();
|
|
1000
|
+
var TimeConfigZod = z24.object({
|
|
1001
|
+
minutes: timeUnitSchema.optional(),
|
|
1002
|
+
hours: timeUnitSchema.optional(),
|
|
1003
|
+
days: timeUnitSchema.optional(),
|
|
1004
|
+
weeks: timeUnitSchema.optional(),
|
|
1005
|
+
months: timeUnitSchema.optional(),
|
|
1006
|
+
years: timeUnitSchema.optional()
|
|
1007
|
+
}).describe("Time configuration with optional time units");
|
|
1008
|
+
var isTimeConfig = zodIsFactory13(TimeConfigZod);
|
|
1009
|
+
var asTimeConfig = zodAsFactory16(TimeConfigZod, "asTimeConfig");
|
|
1010
|
+
var toTimeConfig = zodAsFactory16(TimeConfigZod, "toTimeConfig");
|
|
1011
|
+
var SingleTimeConfigZod = z24.union([
|
|
1012
|
+
z24.object({ minutes: timeUnitSchema }),
|
|
1013
|
+
z24.object({ hours: timeUnitSchema }),
|
|
1014
|
+
z24.object({ days: timeUnitSchema }),
|
|
1015
|
+
z24.object({ weeks: timeUnitSchema }),
|
|
1016
|
+
z24.object({ months: timeUnitSchema }),
|
|
1017
|
+
z24.object({ years: timeUnitSchema })
|
|
1018
|
+
]).describe("Time configuration with exactly one time unit");
|
|
1019
|
+
var isSingleTimeConfig = zodIsFactory13(SingleTimeConfigZod);
|
|
1020
|
+
var asSingleTimeConfig = zodAsFactory16(SingleTimeConfigZod, "asSingleTimeConfig");
|
|
1021
|
+
var toSingleTimeConfig = zodAsFactory16(SingleTimeConfigZod, "toSingleTimeConfig");
|
|
1022
|
+
|
|
1023
|
+
// src/model/Context/BaseContext.zod.ts
|
|
1024
|
+
import { z as z25 } from "zod";
|
|
1025
|
+
var CachesZod = z25.record(
|
|
1026
|
+
z25.string(),
|
|
1027
|
+
z25.custom((val) => val && typeof val === "object" && ("get" in val || "set" in val))
|
|
1028
|
+
);
|
|
1029
|
+
var SingletonsZod = z25.record(z25.union([z25.string(), z25.symbol()]), z25.unknown());
|
|
1030
|
+
var LoggerZod = z25.custom((val) => val && typeof val === "object" && "info" in val && "error" in val);
|
|
1031
|
+
var MeterProviderZod = z25.custom((val) => val && typeof val === "object" && "getMeter" in val);
|
|
1032
|
+
var TracerProviderZod = z25.custom((val) => val && typeof val === "object" && "getTracer" in val);
|
|
1033
|
+
var TimeBudgetLimitZod = z25.number();
|
|
1034
|
+
var BaseContextZod = z25.object({
|
|
1035
|
+
caches: CachesZod.optional(),
|
|
1036
|
+
logger: LoggerZod.optional(),
|
|
1037
|
+
meterProvider: MeterProviderZod.optional(),
|
|
1038
|
+
singletons: SingletonsZod,
|
|
1039
|
+
timeBudgetLimit: TimeBudgetLimitZod.optional(),
|
|
1040
|
+
traceProvider: TracerProviderZod.optional()
|
|
1041
|
+
});
|
|
1042
|
+
|
|
1043
|
+
// src/model/Context/BlockContext.zod.ts
|
|
1044
|
+
import z26 from "zod";
|
|
1045
|
+
|
|
1046
|
+
// src/model/Context/CachingContext.zod.ts
|
|
1047
|
+
var CachingContextZod = BaseContextZod.extend({ caches: CachesZod });
|
|
1048
|
+
|
|
1049
|
+
// src/model/Context/BlockContext.zod.ts
|
|
1050
|
+
var BlockContextReadZod = CachingContextZod.extend(
|
|
1051
|
+
{ chainMap: z26.custom((val) => val && typeof val === "object" && "get" in val) }
|
|
1052
|
+
);
|
|
1053
|
+
var BlockContextWriteZod = CachingContextZod.extend(
|
|
1054
|
+
{ chainMap: z26.custom((val) => val && typeof val === "object" && ("get" in val && "insert" in val)) }
|
|
1055
|
+
);
|
|
1056
|
+
var BlockContextZod = BlockContextWriteZod;
|
|
1057
|
+
|
|
1058
|
+
// src/model/Context/HeadContext.zod.ts
|
|
1059
|
+
import { WithHashMetaZod as WithHashMetaZod6 } from "@xyo-network/sdk-js";
|
|
1060
|
+
import z27 from "zod";
|
|
1061
|
+
var HeadContextBaseZod = z27.object(
|
|
1062
|
+
{ head: WithHashMetaZod6(BlockBoundWitnessZod) }
|
|
1063
|
+
);
|
|
1064
|
+
var HeadContextZod = CachingContextZod.safeExtend(HeadContextBaseZod.shape);
|
|
1065
|
+
|
|
1066
|
+
// src/model/Context/ChainContext.zod.ts
|
|
1067
|
+
var ChainContextReadZod = BlockContextReadZod.safeExtend(HeadContextBaseZod.shape);
|
|
1068
|
+
var ChainContextWriteZod = BlockContextWriteZod.safeExtend(
|
|
1069
|
+
HeadContextBaseZod.shape
|
|
1070
|
+
);
|
|
1071
|
+
var ChainContextZod = BlockContextZod.safeExtend(
|
|
1072
|
+
HeadContextBaseZod.shape
|
|
1073
|
+
);
|
|
1074
|
+
|
|
1075
|
+
// src/model/defaultRewardRatio.ts
|
|
1076
|
+
var defaultRewardRatio = 0.05;
|
|
1077
|
+
|
|
1078
|
+
// src/model/minTransactionFees.ts
|
|
1079
|
+
var minTransactionFees = {
|
|
1080
|
+
base: AttoXL1(1000n * AttoXL1ConvertFactor.nano),
|
|
1081
|
+
gasPrice: AttoXL1(10n * AttoXL1ConvertFactor.nano),
|
|
1082
|
+
gasLimit: AttoXL1(1000000n * AttoXL1ConvertFactor.nano),
|
|
1083
|
+
priority: AttoXL1(0n * AttoXL1ConvertFactor.nano)
|
|
1084
|
+
};
|
|
1085
|
+
|
|
1086
|
+
// src/model/defaultTransactionFees.ts
|
|
1087
|
+
var defaultTransactionFees = {
|
|
1088
|
+
base: minTransactionFees.base,
|
|
1089
|
+
gasPrice: AttoXL1(10n * AttoXL1ConvertFactor.nano),
|
|
1090
|
+
gasLimit: AttoXL1(1000000n * AttoXL1ConvertFactor.nano),
|
|
1091
|
+
priority: minTransactionFees.priority
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
// src/model/HydratedTransaction.ts
|
|
1095
|
+
import {
|
|
1096
|
+
zodAsFactory as zodAsFactory17,
|
|
1097
|
+
zodIsFactory as zodIsFactory14,
|
|
1098
|
+
zodToFactory as zodToFactory16
|
|
1099
|
+
} from "@xylabs/sdk-js";
|
|
1100
|
+
import {
|
|
1101
|
+
PayloadZod as PayloadZod2,
|
|
1102
|
+
PayloadZodLoose as PayloadZodLoose2,
|
|
1103
|
+
WithHashMetaZod as WithHashMetaZod7,
|
|
1104
|
+
WithStorageMetaZod as WithStorageMetaZod5
|
|
1105
|
+
} from "@xyo-network/sdk-js";
|
|
1106
|
+
import { z as z28 } from "zod";
|
|
1107
|
+
var HydratedTransactionZod = z28.tuple([
|
|
1108
|
+
TransactionBoundWitnessZod,
|
|
1109
|
+
z28.array(PayloadZodLoose2)
|
|
1110
|
+
]);
|
|
1111
|
+
var isHydratedTransaction = zodIsFactory14(HydratedTransactionZod);
|
|
1112
|
+
var asHydratedTransaction = zodAsFactory17(HydratedTransactionZod, "asHydratedTransaction");
|
|
1113
|
+
var toHydratedTransaction = zodToFactory16(HydratedTransactionZod, "toHydratedTransaction");
|
|
1114
|
+
var HydratedTransactionWithHashMetaZod = z28.tuple([
|
|
1115
|
+
WithHashMetaZod7(TransactionBoundWitnessZod),
|
|
1116
|
+
z28.array(WithHashMetaZod7(PayloadZod2).loose())
|
|
1117
|
+
]);
|
|
1118
|
+
var isHydratedTransactionWithHashMeta = zodIsFactory14(HydratedTransactionWithHashMetaZod);
|
|
1119
|
+
var asHydratedTransactionWithHashMeta = zodAsFactory17(HydratedTransactionWithHashMetaZod, "asHydratedTransactionWithHashMeta");
|
|
1120
|
+
var toHydratedTransactionWithHashMeta = zodToFactory16(HydratedTransactionWithHashMetaZod, "toHydratedTransactionWithHashMeta");
|
|
1121
|
+
var HydratedTransactionWithStorageMetaZod = z28.tuple([
|
|
1122
|
+
WithStorageMetaZod5(TransactionBoundWitnessZod),
|
|
1123
|
+
z28.array(WithStorageMetaZod5(PayloadZod2).loose())
|
|
1124
|
+
]);
|
|
1125
|
+
var isHydratedTransactionWithStorageMeta = zodIsFactory14(HydratedTransactionWithStorageMetaZod);
|
|
1126
|
+
var asHydratedTransactionWithStorageMeta = zodAsFactory17(HydratedTransactionWithStorageMetaZod, "asHydratedTransactionWithStorageMeta");
|
|
1127
|
+
var toHydratedTransactionWithStorageMeta = zodToFactory16(HydratedTransactionWithStorageMetaZod, "toHydratedTransactionWithStorageMeta");
|
|
1128
|
+
var UnsignedHydratedTransactionZod = z28.tuple([
|
|
1129
|
+
UnsignedTransactionBoundWitnessZod,
|
|
1130
|
+
z28.array(PayloadZodLoose2)
|
|
1131
|
+
]);
|
|
1132
|
+
var isUnsignedHydratedTransaction = zodIsFactory14(UnsignedHydratedTransactionZod);
|
|
1133
|
+
var asUnsignedHydratedTransaction = zodAsFactory17(UnsignedHydratedTransactionZod, "asUnsignedHydratedTransaction");
|
|
1134
|
+
var toUnsignedHydratedTransaction = zodToFactory16(UnsignedHydratedTransactionZod, "toUnsignedHydratedTransaction");
|
|
1135
|
+
var UnsignedHydratedTransactionWithHashMetaZod = z28.tuple([
|
|
1136
|
+
WithHashMetaZod7(UnsignedTransactionBoundWitnessZod),
|
|
1137
|
+
z28.array(WithHashMetaZod7(PayloadZod2).loose())
|
|
1138
|
+
]);
|
|
1139
|
+
var isUnsignedHydratedTransactionWithHashMeta = zodIsFactory14(UnsignedHydratedTransactionWithHashMetaZod);
|
|
1140
|
+
var asUnsignedHydratedTransactionWithHashMeta = zodAsFactory17(UnsignedHydratedTransactionWithHashMetaZod, "asUnsignedHydratedTransactionWithHashMeta");
|
|
1141
|
+
var toUnsignedHydratedTransactionWithHashMeta = zodToFactory16(UnsignedHydratedTransactionWithHashMetaZod, "toUnsignedHydratedTransactionWithHashMeta");
|
|
1142
|
+
var UnsignedHydratedTransactionWithStorageMetaZod = z28.tuple([
|
|
1143
|
+
WithStorageMetaZod5(UnsignedTransactionBoundWitnessZod),
|
|
1144
|
+
z28.array(WithStorageMetaZod5(PayloadZod2).loose())
|
|
1145
|
+
]);
|
|
1146
|
+
var isUnsignedHydratedTransactionWithStorageMeta = zodIsFactory14(UnsignedHydratedTransactionWithStorageMetaZod);
|
|
1147
|
+
var asUnsignedHydratedTransactionWithStorageMeta = zodAsFactory17(
|
|
1148
|
+
UnsignedHydratedTransactionWithStorageMetaZod,
|
|
1149
|
+
"asUnsignedHydratedTransactionWithStorageMeta"
|
|
1150
|
+
);
|
|
1151
|
+
var toUnsignedHydratedTransactionWithStorageMeta = zodToFactory16(
|
|
1152
|
+
UnsignedHydratedTransactionWithStorageMetaZod,
|
|
1153
|
+
"toUnsignedHydratedTransactionWithStorageMeta"
|
|
1154
|
+
);
|
|
1155
|
+
var SignedHydratedTransactionZod = z28.tuple([
|
|
1156
|
+
SignedTransactionBoundWitnessZod,
|
|
1157
|
+
z28.array(PayloadZodLoose2)
|
|
1158
|
+
]);
|
|
1159
|
+
var isSignedHydratedTransaction = zodIsFactory14(SignedHydratedTransactionZod);
|
|
1160
|
+
var asSignedHydratedTransaction = zodAsFactory17(SignedHydratedTransactionZod, "asSignedHydratedTransaction");
|
|
1161
|
+
var toSignedHydratedTransaction = zodToFactory16(SignedHydratedTransactionZod, "toSignedHydratedTransaction");
|
|
1162
|
+
var SignedHydratedTransactionWithHashMetaZod = z28.tuple([
|
|
1163
|
+
WithHashMetaZod7(SignedTransactionBoundWitnessZod),
|
|
1164
|
+
z28.array(WithHashMetaZod7(PayloadZod2).loose())
|
|
1165
|
+
]);
|
|
1166
|
+
var isSignedHydratedTransactionWithHashMeta = zodIsFactory14(SignedHydratedTransactionWithHashMetaZod);
|
|
1167
|
+
var asSignedHydratedTransactionWithHashMeta = zodAsFactory17(SignedHydratedTransactionWithHashMetaZod, "asSignedHydratedTransactionWithHashMeta");
|
|
1168
|
+
var toSignedHydratedTransactionWithHashMeta = zodToFactory16(SignedHydratedTransactionWithHashMetaZod, "toSignedHydratedTransactionWithHashMeta");
|
|
1169
|
+
var SignedHydratedTransactionWithStorageMetaZod = z28.tuple([
|
|
1170
|
+
WithStorageMetaZod5(SignedTransactionBoundWitnessZod),
|
|
1171
|
+
z28.array(WithStorageMetaZod5(PayloadZod2).loose())
|
|
1172
|
+
]);
|
|
1173
|
+
var isSignedHydratedTransactionWithStorageMeta = zodIsFactory14(SignedHydratedTransactionWithStorageMetaZod);
|
|
1174
|
+
var asSignedHydratedTransactionWithStorageMeta = zodAsFactory17(
|
|
1175
|
+
SignedHydratedTransactionWithStorageMetaZod,
|
|
1176
|
+
"asSignedHydratedTransactionWithStorageMeta"
|
|
1177
|
+
);
|
|
1178
|
+
var toSignedHydratedTransactionWithStorageMeta = zodToFactory16(
|
|
1179
|
+
SignedHydratedTransactionWithStorageMetaZod,
|
|
1180
|
+
"toSignedHydratedTransactionWithStorageMeta"
|
|
1181
|
+
);
|
|
1182
|
+
|
|
1183
|
+
// src/model/OpCodes.ts
|
|
1184
|
+
var ELEVATE_OPCODE = "elevate";
|
|
1185
|
+
|
|
1186
|
+
// src/model/Permission.ts
|
|
1187
|
+
import { z as z29 } from "zod";
|
|
1188
|
+
var CaveatTypesZod = z29.enum(["chain", "expiration", "filteredResponse", "rateLimit", "restrictReturnedAccounts"]);
|
|
1189
|
+
var CaveatsZod = z29.object({
|
|
1190
|
+
type: CaveatTypesZod,
|
|
1191
|
+
value: z29.json()
|
|
1192
|
+
});
|
|
1193
|
+
var PermissionZod = z29.object({
|
|
1194
|
+
parentCapability: z29.string(),
|
|
1195
|
+
caveats: CaveatsZod.array().optional(),
|
|
1196
|
+
invoker: z29.string()
|
|
1197
|
+
});
|
|
1198
|
+
var InvokerPermissionZod = PermissionZod.safeExtend({ date: z29.number().optional() });
|
|
1199
|
+
var PermissionRequestZod = z29.record(z29.string(), z29.record(z29.string(), z29.any()));
|
|
1200
|
+
var RequestedPermissionZod = z29.object({
|
|
1201
|
+
parentCapability: z29.string(),
|
|
1202
|
+
date: z29.number().optional()
|
|
1203
|
+
});
|
|
1204
|
+
|
|
1205
|
+
// src/model/rewards.ts
|
|
1206
|
+
import { toFixedPoint } from "@xylabs/sdk-js";
|
|
1207
|
+
var XL1_REWARDS_PLACES = 18;
|
|
1208
|
+
var XL1_REWARDS_STARTING_REWARD = asAttoXL1(toFixedPoint(500n, XL1_REWARDS_PLACES));
|
|
1209
|
+
var XL1_REWARDS_BLOCKS_PER_STEP = 1e6;
|
|
1210
|
+
var XL1_REWARDS_STEP_FACTOR_NUMERATOR = 95n;
|
|
1211
|
+
var XL1_REWARDS_STEP_FACTOR_DENOMINATOR = 100n;
|
|
1212
|
+
var XL1_REWARDS_MIN_BLOCK_REWARD = asAttoXL1(toFixedPoint(10n, XL1_REWARDS_PLACES));
|
|
1213
|
+
var XL1_REWARDS_CREATOR_REWARD = asAttoXL1(toFixedPoint(20000000000n, XL1_REWARDS_PLACES));
|
|
1214
|
+
|
|
1215
|
+
// src/model/RewardsRangeOptions.ts
|
|
1216
|
+
import { AddressZod as AddressZod3 } from "@xylabs/sdk-js";
|
|
1217
|
+
import { z as z30 } from "zod";
|
|
1218
|
+
var RewardsRangeOptionsZod = z30.object({
|
|
1219
|
+
positions: z30.array(z30.number()).optional(),
|
|
1220
|
+
range: BlockRangeZod.optional(),
|
|
1221
|
+
steps: z30.array(StepIdentityZod).optional(),
|
|
1222
|
+
stakers: z30.array(AddressZod3).optional()
|
|
1223
|
+
});
|
|
1224
|
+
|
|
1225
|
+
// src/model/Sequence.ts
|
|
1226
|
+
import { HexRegExMinMax, toHex } from "@xylabs/sdk-js";
|
|
1227
|
+
import { SequenceConstants } from "@xyo-network/sdk-js";
|
|
1228
|
+
import { z as z31 } from "zod";
|
|
1229
|
+
var LocalSequenceRegex = new RegExp(HexRegExMinMax(SequenceConstants.localSequenceBytes, SequenceConstants.localSequenceBytes));
|
|
1230
|
+
var LocalSequenceToStringZod = z31.string().regex(LocalSequenceRegex);
|
|
1231
|
+
var LocalSequenceFromStringZod = z31.string().regex(LocalSequenceRegex).transform((v) => toHex(v));
|
|
1232
|
+
var QualifiedSequenceRegex = new RegExp(HexRegExMinMax(SequenceConstants.qualifiedSequenceBytes, SequenceConstants.qualifiedSequenceBytes));
|
|
1233
|
+
var QualifiedSequenceToStringZod = z31.string().regex(QualifiedSequenceRegex);
|
|
1234
|
+
var QualifiedSequenceFromStringZod = z31.string().regex(QualifiedSequenceRegex).transform((v) => toHex(v));
|
|
1235
|
+
var SequenceToStringZod = z31.union([LocalSequenceToStringZod, QualifiedSequenceToStringZod]);
|
|
1236
|
+
var SequenceFromStringZod = z31.union([LocalSequenceFromStringZod, QualifiedSequenceFromStringZod]);
|
|
1237
|
+
|
|
1238
|
+
// src/model/Stake.ts
|
|
1239
|
+
import { AddressZod as AddressZod4, HexZod as HexZod6 } from "@xylabs/sdk-js";
|
|
1240
|
+
import { z as z32 } from "zod";
|
|
1241
|
+
var StakeZod = z32.object({
|
|
1242
|
+
amount: AttoZod,
|
|
1243
|
+
// the block number when the stake was added
|
|
1244
|
+
addBlock: z32.number(),
|
|
1245
|
+
// the unique id for the stake item
|
|
1246
|
+
id: z32.number(),
|
|
1247
|
+
// the block number when the stake was removed (set to 0 if not removed)
|
|
1248
|
+
removeBlock: z32.number(),
|
|
1249
|
+
// the address that is being staked
|
|
1250
|
+
staked: AddressZod4,
|
|
1251
|
+
// the address that owns the stake
|
|
1252
|
+
staker: AddressZod4,
|
|
1253
|
+
// the block number when the stake was withdrawn (set to 0 if not withdrawn)
|
|
1254
|
+
withdrawBlock: z32.number()
|
|
1255
|
+
});
|
|
1256
|
+
var StakeToJsonZod = StakeZod.transform((val) => ({
|
|
1257
|
+
addBlock: val.addBlock,
|
|
1258
|
+
amount: BigIntToJsonZod2.parse(val.amount),
|
|
1259
|
+
id: val.id,
|
|
1260
|
+
removeBlock: val.removeBlock,
|
|
1261
|
+
staked: AddressZod4.parse(val.staked),
|
|
1262
|
+
staker: AddressZod4.parse(val.staker),
|
|
1263
|
+
withdrawBlock: val.withdrawBlock
|
|
1264
|
+
}));
|
|
1265
|
+
var JsonToStakeZod = StakeZod.extend({ amount: HexZod6 }).transform((val) => ({
|
|
1266
|
+
addBlock: val.addBlock,
|
|
1267
|
+
amount: JsonToAttoZod.parse(val.amount),
|
|
1268
|
+
id: val.id,
|
|
1269
|
+
removeBlock: val.removeBlock,
|
|
1270
|
+
staked: val.staked,
|
|
1271
|
+
staker: val.staker,
|
|
1272
|
+
withdrawBlock: val.withdrawBlock
|
|
1273
|
+
}));
|
|
1274
|
+
|
|
1275
|
+
// src/model/TimeDomain.ts
|
|
1276
|
+
import { z as z33 } from "zod";
|
|
1277
|
+
var TimeDomainZod = z33.union([
|
|
1278
|
+
z33.literal("xl1"),
|
|
1279
|
+
z33.literal("epoch"),
|
|
1280
|
+
z33.literal("ethereum")
|
|
1281
|
+
]);
|
|
1282
|
+
|
|
1283
|
+
// src/model/TransferPair.ts
|
|
1284
|
+
import { AddressZod as AddressZod5 } from "@xylabs/sdk-js";
|
|
1285
|
+
import { z as z34 } from "zod";
|
|
1286
|
+
var TransferPairZod = z34.tuple([
|
|
1287
|
+
AddressZod5,
|
|
1288
|
+
AddressZod5
|
|
1289
|
+
]);
|
|
1290
|
+
|
|
1291
|
+
// src/model/version.ts
|
|
1292
|
+
var XL1_PROTOCOL_VERSION_MAJOR = 1;
|
|
1293
|
+
var XL1_PROTOCOL_VERSION_MINOR = 2;
|
|
1294
|
+
var XL1_PROTOCOL_VERSION_PATCH = 0;
|
|
1295
|
+
var XL1_PROTOCOL_VERSION_STRING = `${XL1_PROTOCOL_VERSION_MAJOR}.${XL1_PROTOCOL_VERSION_MINOR}.${XL1_PROTOCOL_VERSION_PATCH}`;
|
|
1296
|
+
var XL1_PROTOCOL_VERSION = XL1_PROTOCOL_VERSION_MAJOR * 1e6 + XL1_PROTOCOL_VERSION_MINOR * 1e3 + XL1_PROTOCOL_VERSION_PATCH;
|
|
1297
|
+
|
|
1298
|
+
// src/provider/ProviderMoniker.ts
|
|
1299
|
+
import { assertEx, isString } from "@xylabs/sdk-js";
|
|
1300
|
+
var asProviderMoniker = (value) => {
|
|
1301
|
+
const moniker = isString(value) ? value : void 0;
|
|
1302
|
+
return assertEx(moniker);
|
|
1303
|
+
};
|
|
1304
|
+
var DefaultProviderMoniker = "Provider";
|
|
1305
|
+
export {
|
|
1306
|
+
AccountBalanceConfigZod,
|
|
1307
|
+
AccountBalanceHistoryItemZod,
|
|
1308
|
+
AccountBalanceQualificationZod,
|
|
1309
|
+
AccountBalanceViewerMoniker,
|
|
1310
|
+
AllowedBlockPayloadSchemaZod,
|
|
1311
|
+
AllowedBlockPayloadSchemas,
|
|
1312
|
+
ArrayBufferToJsonZod,
|
|
1313
|
+
BigIntToJsonZod2 as AttoToJsonZod,
|
|
1314
|
+
AttoXL1,
|
|
1315
|
+
AttoXL1ConvertFactor,
|
|
1316
|
+
AttoXL1MaxValue,
|
|
1317
|
+
AttoZod,
|
|
1318
|
+
BLOCK_NUMBER_ZERO,
|
|
1319
|
+
BaseContextZod,
|
|
1320
|
+
BlockBoundWitnessFieldsZod,
|
|
1321
|
+
BlockBoundWitnessMetaZod,
|
|
1322
|
+
BlockBoundWitnessWithHashMetaZod,
|
|
1323
|
+
BlockBoundWitnessWithStorageMetaZod,
|
|
1324
|
+
BlockBoundWitnessZod,
|
|
1325
|
+
BlockContextReadZod,
|
|
1326
|
+
BlockContextWriteZod,
|
|
1327
|
+
BlockContextZod,
|
|
1328
|
+
BlockDurationZod,
|
|
1329
|
+
BlockEndZod,
|
|
1330
|
+
BlockNumberSchema,
|
|
1331
|
+
BlockNumberZod,
|
|
1332
|
+
BlockNumberishZod,
|
|
1333
|
+
BlockRangeZod,
|
|
1334
|
+
BlockRangeishZod,
|
|
1335
|
+
BlockRateZod,
|
|
1336
|
+
BlockScriptsZod,
|
|
1337
|
+
BlockStartZod,
|
|
1338
|
+
BridgeDestinationObservationFieldsZod,
|
|
1339
|
+
BridgeDestinationObservationSchema,
|
|
1340
|
+
BridgeDetailsDestinationFieldsZod,
|
|
1341
|
+
BridgeDetailsFieldsZod,
|
|
1342
|
+
BridgeDetailsSourceFieldsZod,
|
|
1343
|
+
BridgeIntentFieldsZod,
|
|
1344
|
+
BridgeIntentSchema,
|
|
1345
|
+
BridgeSourceObservationFieldsZod,
|
|
1346
|
+
BridgeSourceObservationSchema,
|
|
1347
|
+
CachesZod,
|
|
1348
|
+
CachingContextZod,
|
|
1349
|
+
CaveatTypesZod,
|
|
1350
|
+
CaveatsZod,
|
|
1351
|
+
ChainContextReadZod,
|
|
1352
|
+
ChainContextWriteZod,
|
|
1353
|
+
ChainContextZod,
|
|
1354
|
+
ChainQualificationZod,
|
|
1355
|
+
ChainQualifiedConfigZod,
|
|
1356
|
+
ChainQualifiedHeadConfigZod,
|
|
1357
|
+
ChainQualifiedRangeConfigZod,
|
|
1358
|
+
ChainQualifiedZod,
|
|
1359
|
+
ChainStakeIntentSchema,
|
|
1360
|
+
ChainZod,
|
|
1361
|
+
CountZod,
|
|
1362
|
+
DefaultProviderMoniker,
|
|
1363
|
+
ELEVATE_OPCODE,
|
|
1364
|
+
ETH_BLOCK_NUMBER_ZERO,
|
|
1365
|
+
EpochTimeFieldsZod,
|
|
1366
|
+
EthBlockNumberZod,
|
|
1367
|
+
EthBlockNumberishZod,
|
|
1368
|
+
EthBlockRangeZod,
|
|
1369
|
+
EthBlockRangeishZod,
|
|
1370
|
+
EthereumTimeFieldsZod,
|
|
1371
|
+
ExtendChainQualifiedConfigZod,
|
|
1372
|
+
FemtoXL1,
|
|
1373
|
+
FemtoXL1MaxValue,
|
|
1374
|
+
HashSchema,
|
|
1375
|
+
HeadContextBaseZod,
|
|
1376
|
+
HeadContextZod,
|
|
1377
|
+
HydratedBlockWithHashMetaZod,
|
|
1378
|
+
HydratedBlockWithStorageMetaZod,
|
|
1379
|
+
HydratedBlockZod,
|
|
1380
|
+
HydratedTransactionWithHashMetaZod,
|
|
1381
|
+
HydratedTransactionWithStorageMetaZod,
|
|
1382
|
+
HydratedTransactionZod,
|
|
1383
|
+
InvokerPermissionZod,
|
|
1384
|
+
JsonToArrayBufferZod,
|
|
1385
|
+
JsonToAttoZod,
|
|
1386
|
+
JsonToStakeZod,
|
|
1387
|
+
LocalSequenceFromStringZod,
|
|
1388
|
+
LocalSequenceToStringZod,
|
|
1389
|
+
LoggerZod,
|
|
1390
|
+
MeterProviderZod,
|
|
1391
|
+
MicroXL1,
|
|
1392
|
+
MicroXL1MaxValue,
|
|
1393
|
+
MilliXL1,
|
|
1394
|
+
MilliXL1MaxValue,
|
|
1395
|
+
NanoXL1,
|
|
1396
|
+
NanoXL1MaxValue,
|
|
1397
|
+
NumberishZod,
|
|
1398
|
+
PermissionRequestZod,
|
|
1399
|
+
PermissionZod,
|
|
1400
|
+
PicoXL1,
|
|
1401
|
+
PicoXL1MaxValue,
|
|
1402
|
+
QualifiedSequenceFromStringZod,
|
|
1403
|
+
QualifiedSequenceToStringZod,
|
|
1404
|
+
RangeZod,
|
|
1405
|
+
RequestedPermissionZod,
|
|
1406
|
+
RewardsRangeOptionsZod,
|
|
1407
|
+
SequenceFromStringZod,
|
|
1408
|
+
SequenceToStringZod,
|
|
1409
|
+
SignedBlockBoundWitnessWithHashMetaZod,
|
|
1410
|
+
SignedBlockBoundWitnessWithHashMetaishZod,
|
|
1411
|
+
SignedBlockBoundWitnessWithStorageMetaZod,
|
|
1412
|
+
SignedBlockBoundWitnessWithStorageMetaishZod,
|
|
1413
|
+
SignedBlockBoundWitnessZod,
|
|
1414
|
+
SignedHydratedBlockToJsonZod,
|
|
1415
|
+
SignedHydratedBlockWithHashMetaZod,
|
|
1416
|
+
SignedHydratedBlockWithHashMetaishZod,
|
|
1417
|
+
SignedHydratedBlockWithStorageMetaZod,
|
|
1418
|
+
SignedHydratedBlockWithStorageMetaishZod,
|
|
1419
|
+
SignedHydratedBlockZod,
|
|
1420
|
+
SignedHydratedTransactionWithHashMetaZod,
|
|
1421
|
+
SignedHydratedTransactionWithStorageMetaZod,
|
|
1422
|
+
SignedHydratedTransactionZod,
|
|
1423
|
+
SignedTransactionBoundWitnessWithHashMetaZod,
|
|
1424
|
+
SignedTransactionBoundWitnessWithStorageMetaZod,
|
|
1425
|
+
SignedTransactionBoundWitnessZod,
|
|
1426
|
+
SingleTimeConfigZod,
|
|
1427
|
+
SingletonsZod,
|
|
1428
|
+
StakeToJsonZod,
|
|
1429
|
+
StakeZod,
|
|
1430
|
+
StepCompleteSchema,
|
|
1431
|
+
StepIdentitySchema,
|
|
1432
|
+
StepIdentityZod,
|
|
1433
|
+
StepIndexZod,
|
|
1434
|
+
StepRewardFractions,
|
|
1435
|
+
StepSizes,
|
|
1436
|
+
TimeBudgetLimitZod,
|
|
1437
|
+
TimeConfigZod,
|
|
1438
|
+
TimeDomainZod,
|
|
1439
|
+
TimeDurationsZod,
|
|
1440
|
+
TimeFieldsZod,
|
|
1441
|
+
TimePayloadZod,
|
|
1442
|
+
TimeSchema,
|
|
1443
|
+
TracerProviderZod,
|
|
1444
|
+
TransactionBoundWitnessFieldsZod,
|
|
1445
|
+
TransactionBoundWitnessIdentityFields,
|
|
1446
|
+
TransactionBoundWitnessWithHashMetaZod,
|
|
1447
|
+
TransactionBoundWitnessWithStorageMetaZod,
|
|
1448
|
+
TransactionBoundWitnessZod,
|
|
1449
|
+
TransactionFeesBigIntToJsonZod,
|
|
1450
|
+
TransactionFeesBigIntZod,
|
|
1451
|
+
TransactionFeesHexZod,
|
|
1452
|
+
TransactionFeesJsonToBigIntZod,
|
|
1453
|
+
TransactionFeesZod,
|
|
1454
|
+
TransactionGasCosts,
|
|
1455
|
+
TransferFieldsZod,
|
|
1456
|
+
TransferPairZod,
|
|
1457
|
+
TransferSchema,
|
|
1458
|
+
TransferZod,
|
|
1459
|
+
UnsignedBlockBoundWitnessZod,
|
|
1460
|
+
UnsignedHydratedTransactionWithHashMetaZod,
|
|
1461
|
+
UnsignedHydratedTransactionWithStorageMetaZod,
|
|
1462
|
+
UnsignedHydratedTransactionZod,
|
|
1463
|
+
UnsignedTransactionBoundWitnessWithHashMetaZod,
|
|
1464
|
+
UnsignedTransactionBoundWitnessWithStorageMetaZod,
|
|
1465
|
+
UnsignedTransactionBoundWitnessZod,
|
|
1466
|
+
XL1,
|
|
1467
|
+
XL1BlockNumberZod,
|
|
1468
|
+
XL1BlockNumberishZod,
|
|
1469
|
+
XL1BlockRangeZod,
|
|
1470
|
+
XL1BlockRangeishZod,
|
|
1471
|
+
XL1MaxValue,
|
|
1472
|
+
XL1Places,
|
|
1473
|
+
XL1TimeFieldsZod,
|
|
1474
|
+
XL1_BLOCK_NUMBER_ZERO,
|
|
1475
|
+
XL1_ETH_MAIN_ERC20_CONTRACT_ADDRESS,
|
|
1476
|
+
XL1_ETH_MAIN_GOVERNANCE_ADDRESS,
|
|
1477
|
+
XL1_ETH_MAIN_REWARDS_ADDRESS,
|
|
1478
|
+
XL1_ETH_MAIN_STAKED_XYO_CHAIN_ADDRESS,
|
|
1479
|
+
XL1_ETH_MAIN_SUB_GOVERNOR_ADDRESS,
|
|
1480
|
+
XL1_PROTOCOL_VERSION,
|
|
1481
|
+
XL1_PROTOCOL_VERSION_MAJOR,
|
|
1482
|
+
XL1_PROTOCOL_VERSION_MINOR,
|
|
1483
|
+
XL1_PROTOCOL_VERSION_PATCH,
|
|
1484
|
+
XL1_PROTOCOL_VERSION_STRING,
|
|
1485
|
+
XL1_REWARDS_BLOCKS_PER_STEP,
|
|
1486
|
+
XL1_REWARDS_CREATOR_REWARD,
|
|
1487
|
+
XL1_REWARDS_MIN_BLOCK_REWARD,
|
|
1488
|
+
XL1_REWARDS_PLACES,
|
|
1489
|
+
XL1_REWARDS_STARTING_REWARD,
|
|
1490
|
+
XL1_REWARDS_STEP_FACTOR_DENOMINATOR,
|
|
1491
|
+
XL1_REWARDS_STEP_FACTOR_NUMERATOR,
|
|
1492
|
+
XYO_BRIDGE_ADDRESS,
|
|
1493
|
+
XYO_NETWORK_STAKING_ADDRESS,
|
|
1494
|
+
XYO_STEP_REWARD_ADDRESS,
|
|
1495
|
+
XYO_ZERO_ADDRESS,
|
|
1496
|
+
asAttoXL1,
|
|
1497
|
+
asBlockBoundWitness,
|
|
1498
|
+
asBlockBoundWitnessWithHashMeta,
|
|
1499
|
+
asBlockBoundWitnessWithStorageMeta,
|
|
1500
|
+
asBlockNumber,
|
|
1501
|
+
asBlockNumberPayload,
|
|
1502
|
+
asBlockNumberPayloadWithSources,
|
|
1503
|
+
asBlockRange,
|
|
1504
|
+
asBlockRate,
|
|
1505
|
+
asBridgeDestinationObservation,
|
|
1506
|
+
asBridgeIntent,
|
|
1507
|
+
asBridgeSourceObservation,
|
|
1508
|
+
asChainStakeIntent,
|
|
1509
|
+
asEthBlockNumber,
|
|
1510
|
+
asEthBlockRange,
|
|
1511
|
+
asExecutable,
|
|
1512
|
+
asFemtoXL1,
|
|
1513
|
+
asHashPayload,
|
|
1514
|
+
asHashPayloadWithStorageMeta,
|
|
1515
|
+
asHydratedBlock,
|
|
1516
|
+
asHydratedBlockWithHashMeta,
|
|
1517
|
+
asHydratedBlockWithStorageMeta,
|
|
1518
|
+
asHydratedTransaction,
|
|
1519
|
+
asHydratedTransactionWithHashMeta,
|
|
1520
|
+
asHydratedTransactionWithStorageMeta,
|
|
1521
|
+
asMicroXL1,
|
|
1522
|
+
asMilliXL1,
|
|
1523
|
+
asNanoXL1,
|
|
1524
|
+
asPicoXL1,
|
|
1525
|
+
asProviderMoniker,
|
|
1526
|
+
asRange,
|
|
1527
|
+
asSignedBlockBoundWitness,
|
|
1528
|
+
asSignedBlockBoundWitnessWithHashMeta,
|
|
1529
|
+
asSignedBlockBoundWitnessWithStorageMeta,
|
|
1530
|
+
asSignedHydratedBlock,
|
|
1531
|
+
asSignedHydratedBlockToJson,
|
|
1532
|
+
asSignedHydratedBlockWithHashMeta,
|
|
1533
|
+
asSignedHydratedBlockWithStorageMeta,
|
|
1534
|
+
asSignedHydratedTransaction,
|
|
1535
|
+
asSignedHydratedTransactionWithHashMeta,
|
|
1536
|
+
asSignedHydratedTransactionWithStorageMeta,
|
|
1537
|
+
asSignedTransactionBoundWitness,
|
|
1538
|
+
asSignedTransactionBoundWitnessWithHashMeta,
|
|
1539
|
+
asSignedTransactionBoundWitnessWithStorageMeta,
|
|
1540
|
+
asSingleTimeConfig,
|
|
1541
|
+
asStepComplete,
|
|
1542
|
+
asStepIdentity,
|
|
1543
|
+
asStepIdentityPayload,
|
|
1544
|
+
asTimeConfig,
|
|
1545
|
+
asTimeDurations,
|
|
1546
|
+
asTimePayload,
|
|
1547
|
+
asTimePayloadWithStorageMeta,
|
|
1548
|
+
asTransactionBoundWitness,
|
|
1549
|
+
asTransactionBoundWitnessWithHashMeta,
|
|
1550
|
+
asTransactionBoundWitnessWithStorageMeta,
|
|
1551
|
+
asTransactionFeesBigInt,
|
|
1552
|
+
asTransactionFeesHex,
|
|
1553
|
+
asTransfer,
|
|
1554
|
+
asUnsignedBlockBoundWitness,
|
|
1555
|
+
asUnsignedHydratedTransaction,
|
|
1556
|
+
asUnsignedHydratedTransactionWithHashMeta,
|
|
1557
|
+
asUnsignedHydratedTransactionWithStorageMeta,
|
|
1558
|
+
asUnsignedTransactionBoundWitness,
|
|
1559
|
+
asUnsignedTransactionBoundWitnessWithHashMeta,
|
|
1560
|
+
asUnsignedTransactionBoundWitnessWithStorageMeta,
|
|
1561
|
+
asValidStep,
|
|
1562
|
+
asXL1,
|
|
1563
|
+
asXL1BlockNumber,
|
|
1564
|
+
asXL1BlockRange,
|
|
1565
|
+
defaultRewardRatio,
|
|
1566
|
+
defaultTransactionFees,
|
|
1567
|
+
fromBlockNumberKey,
|
|
1568
|
+
fromEthBlockNumberKey,
|
|
1569
|
+
fromXL1BlockNumberKey,
|
|
1570
|
+
hasFrom,
|
|
1571
|
+
isAccountBalanceConfig,
|
|
1572
|
+
isAccountBalanceQualification,
|
|
1573
|
+
isAllowedBlockPayload,
|
|
1574
|
+
isAllowedBlockPayloadSchema,
|
|
1575
|
+
isAllowedBlockPayloadWithHashMeta,
|
|
1576
|
+
isAttoXL1,
|
|
1577
|
+
isBlockBoundWitness,
|
|
1578
|
+
isBlockBoundWitnessWithHashMeta,
|
|
1579
|
+
isBlockBoundWitnessWithStorageMeta,
|
|
1580
|
+
isBlockNumberPayload,
|
|
1581
|
+
isBlockNumberPayloadWithSources,
|
|
1582
|
+
isBlockRate,
|
|
1583
|
+
isBridgeDestinationObservation,
|
|
1584
|
+
isBridgeIntent,
|
|
1585
|
+
isBridgeSourceObservation,
|
|
1586
|
+
isChainQualification,
|
|
1587
|
+
isChainQualifiedConfig,
|
|
1588
|
+
isChainQualifiedHeadConfig,
|
|
1589
|
+
isChainQualifiedRangeConfig,
|
|
1590
|
+
isChainStakeIntent,
|
|
1591
|
+
isChainStakeIntentWithStorageMeta,
|
|
1592
|
+
isExecutable,
|
|
1593
|
+
isFemtoXL1,
|
|
1594
|
+
isHashPayload,
|
|
1595
|
+
isHydratedBlock,
|
|
1596
|
+
isHydratedBlockWithHashMeta,
|
|
1597
|
+
isHydratedBlockWithStorageMeta,
|
|
1598
|
+
isHydratedTransaction,
|
|
1599
|
+
isHydratedTransactionWithHashMeta,
|
|
1600
|
+
isHydratedTransactionWithStorageMeta,
|
|
1601
|
+
isMicroXL1,
|
|
1602
|
+
isMilliXL1,
|
|
1603
|
+
isNanoXL1,
|
|
1604
|
+
isPicoXL1,
|
|
1605
|
+
isRange,
|
|
1606
|
+
isSafeEpoch,
|
|
1607
|
+
isSignedBlockBoundWitness,
|
|
1608
|
+
isSignedBlockBoundWitnessWithHashMeta,
|
|
1609
|
+
isSignedBlockBoundWitnessWithStorageMeta,
|
|
1610
|
+
isSignedHydratedBlock,
|
|
1611
|
+
isSignedHydratedBlockToJson,
|
|
1612
|
+
isSignedHydratedBlockWithHashMeta,
|
|
1613
|
+
isSignedHydratedBlockWithStorageMeta,
|
|
1614
|
+
isSignedHydratedTransaction,
|
|
1615
|
+
isSignedHydratedTransactionWithHashMeta,
|
|
1616
|
+
isSignedHydratedTransactionWithStorageMeta,
|
|
1617
|
+
isSignedTransactionBoundWitness,
|
|
1618
|
+
isSignedTransactionBoundWitnessWithHashMeta,
|
|
1619
|
+
isSignedTransactionBoundWitnessWithStorageMeta,
|
|
1620
|
+
isSingleTimeConfig,
|
|
1621
|
+
isStepComplete,
|
|
1622
|
+
isStepIdentityPayload,
|
|
1623
|
+
isTimeConfig,
|
|
1624
|
+
isTimeDurations,
|
|
1625
|
+
isTimePayload,
|
|
1626
|
+
isTransactionBoundWitness,
|
|
1627
|
+
isTransactionBoundWitnessWithHashMeta,
|
|
1628
|
+
isTransactionBoundWitnessWithStorageMeta,
|
|
1629
|
+
isTransactionFeesBigInt,
|
|
1630
|
+
isTransactionFeesHex,
|
|
1631
|
+
isTransfer,
|
|
1632
|
+
isUnsignedBlockBoundWitness,
|
|
1633
|
+
isUnsignedHydratedTransaction,
|
|
1634
|
+
isUnsignedHydratedTransactionWithHashMeta,
|
|
1635
|
+
isUnsignedHydratedTransactionWithStorageMeta,
|
|
1636
|
+
isUnsignedTransactionBoundWitness,
|
|
1637
|
+
isUnsignedTransactionBoundWitnessWithHashMeta,
|
|
1638
|
+
isUnsignedTransactionBoundWitnessWithStorageMeta,
|
|
1639
|
+
isValidStep,
|
|
1640
|
+
isXL1,
|
|
1641
|
+
minTransactionFees,
|
|
1642
|
+
stepSize,
|
|
1643
|
+
toAttoXL1,
|
|
1644
|
+
toBlockBoundWitness,
|
|
1645
|
+
toBlockBoundWitnessWithHashMeta,
|
|
1646
|
+
toBlockBoundWitnessWithStorageMeta,
|
|
1647
|
+
toBlockNumber,
|
|
1648
|
+
toBlockNumberKey,
|
|
1649
|
+
toBlockRange,
|
|
1650
|
+
toBlockRate,
|
|
1651
|
+
toEthBlockNumber,
|
|
1652
|
+
toEthBlockNumberKey,
|
|
1653
|
+
toEthBlockRange,
|
|
1654
|
+
toFemtoXL1,
|
|
1655
|
+
toHydratedBlock,
|
|
1656
|
+
toHydratedBlockWithHashMeta,
|
|
1657
|
+
toHydratedBlockWithStorageMeta,
|
|
1658
|
+
toHydratedTransaction,
|
|
1659
|
+
toHydratedTransactionWithHashMeta,
|
|
1660
|
+
toHydratedTransactionWithStorageMeta,
|
|
1661
|
+
toMicroXL1,
|
|
1662
|
+
toMilliXL1,
|
|
1663
|
+
toNanoXL1,
|
|
1664
|
+
toPicoXL1,
|
|
1665
|
+
toRange,
|
|
1666
|
+
toSignedBlockBoundWitness,
|
|
1667
|
+
toSignedBlockBoundWitnessWithHashMeta,
|
|
1668
|
+
toSignedBlockBoundWitnessWithStorageMeta,
|
|
1669
|
+
toSignedHydratedBlock,
|
|
1670
|
+
toSignedHydratedBlockToJson,
|
|
1671
|
+
toSignedHydratedBlockWithHashMeta,
|
|
1672
|
+
toSignedHydratedBlockWithStorageMeta,
|
|
1673
|
+
toSignedHydratedTransaction,
|
|
1674
|
+
toSignedHydratedTransactionWithHashMeta,
|
|
1675
|
+
toSignedHydratedTransactionWithStorageMeta,
|
|
1676
|
+
toSignedTransactionBoundWitness,
|
|
1677
|
+
toSignedTransactionBoundWitnessWithHashMeta,
|
|
1678
|
+
toSignedTransactionBoundWitnessWithStorageMeta,
|
|
1679
|
+
toSingleTimeConfig,
|
|
1680
|
+
toTimeConfig,
|
|
1681
|
+
toTimeDurations,
|
|
1682
|
+
toTransactionBoundWitness,
|
|
1683
|
+
toTransactionBoundWitnessWithHashMeta,
|
|
1684
|
+
toTransactionBoundWitnessWithStorageMeta,
|
|
1685
|
+
toTransactionFeesBigInt,
|
|
1686
|
+
toTransactionFeesHex,
|
|
1687
|
+
toUnsignedBlockBoundWitness,
|
|
1688
|
+
toUnsignedHydratedTransaction,
|
|
1689
|
+
toUnsignedHydratedTransactionWithHashMeta,
|
|
1690
|
+
toUnsignedHydratedTransactionWithStorageMeta,
|
|
1691
|
+
toUnsignedTransactionBoundWitness,
|
|
1692
|
+
toUnsignedTransactionBoundWitnessWithHashMeta,
|
|
1693
|
+
toUnsignedTransactionBoundWitnessWithStorageMeta,
|
|
1694
|
+
toXL1,
|
|
1695
|
+
toXL1BlockNumber,
|
|
1696
|
+
toXL1BlockNumberKey,
|
|
1697
|
+
toXL1BlockRange
|
|
1698
|
+
};
|
|
1699
|
+
//# sourceMappingURL=index.mjs.map
|