@xyo-network/xl1-protocol-sdk 1.16.9 → 1.16.11
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/SignedBigInt.d.ts +1 -1
- package/dist/neutral/SignedBigInt.d.ts.map +1 -1
- package/dist/neutral/block/hydrate/allHashesPresent.d.ts +1 -1
- package/dist/neutral/block/hydrate/allHashesPresent.d.ts.map +1 -1
- package/dist/neutral/block/hydrate/hydrateBlock.d.ts +1 -1
- package/dist/neutral/block/hydrate/hydrateBlock.d.ts.map +1 -1
- package/dist/neutral/block/hydrate/tryHydrateBlock.d.ts +1 -1
- package/dist/neutral/block/hydrate/tryHydrateBlock.d.ts.map +1 -1
- package/dist/neutral/block/primitives/frames/calculateFramesFromRange.d.ts.map +1 -1
- package/dist/neutral/block/primitives/hashFromBlockNumber.d.ts +1 -1
- package/dist/neutral/block/primitives/hashFromBlockNumber.d.ts.map +1 -1
- package/dist/neutral/block/primitives/payloads/ChainWindow.d.ts +1 -1
- package/dist/neutral/block/primitives/payloads/ChainWindow.d.ts.map +1 -1
- package/dist/neutral/block/primitives/transfers/transfersSummary.d.ts +1 -1
- package/dist/neutral/block/primitives/transfers/transfersSummary.d.ts.map +1 -1
- package/dist/neutral/config/Config.d.ts +3 -15
- package/dist/neutral/config/Config.d.ts.map +1 -1
- package/dist/neutral/config/Producer.d.ts +1 -5
- package/dist/neutral/config/Producer.d.ts.map +1 -1
- package/dist/neutral/config/Validation.d.ts +2 -10
- package/dist/neutral/config/Validation.d.ts.map +1 -1
- package/dist/neutral/eip-712/Payloads/EIP712Data.d.ts +1 -1
- package/dist/neutral/eip-712/Payloads/EIP712Signature.d.ts +2 -2
- package/dist/neutral/eip-712/Payloads/EIP712Signature.d.ts.map +1 -1
- package/dist/neutral/eip-712/verify.d.ts.map +1 -1
- package/dist/neutral/index.mjs +320 -103
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/instances/Address.d.ts +1 -2
- package/dist/neutral/instances/Address.d.ts.map +1 -1
- package/dist/neutral/instances/Object.d.ts +1 -1
- package/dist/neutral/instances/Signature.d.ts +1 -1
- package/dist/neutral/instances/Signature.d.ts.map +1 -1
- package/dist/neutral/instances/modifiers/BlockWindowInstance.d.ts +1 -1
- package/dist/neutral/instances/modifiers/BlockWindowInstance.d.ts.map +1 -1
- package/dist/neutral/instances/modifiers/Validatable.d.ts +1 -1
- package/dist/neutral/instances/modifiers/Validatable.d.ts.map +1 -1
- package/dist/neutral/instances/transaction/TransactionFields.d.ts +1 -1
- package/dist/neutral/instances/transaction/TransactionFields.d.ts.map +1 -1
- package/dist/neutral/map/AsynchronousMap.d.ts +1 -1
- package/dist/neutral/map/AsynchronousMap.d.ts.map +1 -1
- package/dist/neutral/model/ChainContext/ChainContext.d.ts +1 -1
- package/dist/neutral/model/ChainContext/ChainStakeContext.d.ts +4 -5
- package/dist/neutral/model/ChainContext/ChainStakeContext.d.ts.map +1 -1
- package/dist/neutral/model/ChainContext/ChainStateContext.d.ts +1 -2
- package/dist/neutral/model/ChainContext/ChainStateContext.d.ts.map +1 -1
- package/dist/neutral/model/ChainFork/ChainForkStatic.d.ts +1 -1
- package/dist/neutral/model/ChainFork/ChainForkStatic.d.ts.map +1 -1
- package/dist/neutral/model/PayloadMap.d.ts +1 -1
- package/dist/neutral/model/PayloadMap.d.ts.map +1 -1
- package/dist/neutral/model/Position.d.ts +1 -1
- package/dist/neutral/model/Position.d.ts.map +1 -1
- package/dist/neutral/model/index.d.ts +0 -2
- package/dist/neutral/model/index.d.ts.map +1 -1
- package/dist/neutral/payloads/AddressPairPayload.d.ts +2 -2
- package/dist/neutral/payloads/AddressPairPayload.d.ts.map +1 -1
- package/dist/neutral/payloads/netBalancesForPayloads.d.ts +2 -4
- package/dist/neutral/payloads/netBalancesForPayloads.d.ts.map +1 -1
- package/dist/neutral/payloads/netTransfersForPayloads.d.ts +1 -1
- package/dist/neutral/payloads/netTransfersForPayloads.d.ts.map +1 -1
- package/dist/neutral/payloads/summary/BalancesStepSummary.d.ts +3 -3
- package/dist/neutral/payloads/summary/BalancesStepSummary.d.ts.map +1 -1
- package/dist/neutral/payloads/summary/StepSummary.d.ts +1 -2
- package/dist/neutral/payloads/summary/StepSummary.d.ts.map +1 -1
- package/dist/neutral/payloads/summary/TransfersSummary.d.ts +3 -3
- package/dist/neutral/payloads/summary/TransfersSummary.d.ts.map +1 -1
- package/dist/neutral/primitives/step/completedStepRewardAddress.d.ts +1 -1
- package/dist/neutral/primitives/step/completedStepRewardAddress.d.ts.map +1 -1
- package/dist/neutral/primitives/step/derivedReceiveAddress.d.ts +1 -1
- package/dist/neutral/primitives/step/derivedReceiveAddress.d.ts.map +1 -1
- package/dist/neutral/primitives/summary/balances/balancesSummary.d.ts +1 -1
- package/dist/neutral/primitives/summary/balances/balancesSummary.d.ts.map +1 -1
- package/dist/neutral/primitives/summary/transfers/transfersSummary.d.ts +1 -1
- package/dist/neutral/primitives/summary/transfers/transfersSummary.d.ts.map +1 -1
- package/dist/neutral/primitives/timeBudget.d.ts +1 -1
- package/dist/neutral/provider/DataLake.d.ts +1 -1
- package/dist/neutral/provider/DataLake.d.ts.map +1 -1
- package/dist/neutral/provider/TransactionSubmitter.d.ts +1 -2
- package/dist/neutral/provider/TransactionSubmitter.d.ts.map +1 -1
- package/dist/neutral/provider/XyoGateway.d.ts +1 -1
- package/dist/neutral/provider/XyoGateway.d.ts.map +1 -1
- package/dist/neutral/provider/XyoGatewayRunner.d.ts +1 -2
- package/dist/neutral/provider/XyoGatewayRunner.d.ts.map +1 -1
- package/dist/neutral/provider/XyoNetwork.d.ts +1 -1
- package/dist/neutral/provider/XyoNetwork.d.ts.map +1 -1
- package/dist/neutral/provider/XyoRunner.d.ts +1 -2
- package/dist/neutral/provider/XyoRunner.d.ts.map +1 -1
- package/dist/neutral/provider/XyoWallet.d.ts +1 -2
- package/dist/neutral/provider/XyoWallet.d.ts.map +1 -1
- package/dist/neutral/provider/permissions/InvokerPermission.d.ts +1 -1
- package/dist/neutral/provider/signer/XyoSigner.d.ts +1 -2
- package/dist/neutral/provider/signer/XyoSigner.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/NetworkStake/NetworkStakeViewer.d.ts +1 -1
- package/dist/neutral/provider/viewer/NetworkStake/NetworkStakeViewer.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/NetworkStake/Rewards/ByStakerViewer.d.ts +1 -1
- package/dist/neutral/provider/viewer/NetworkStake/Rewards/ByStakerViewer.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/NetworkStake/Rewards/Options.d.ts +1 -1
- package/dist/neutral/provider/viewer/NetworkStake/Rewards/Options.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/NetworkStake/Rewards/templates/MethodsTemplate.d.ts +1 -1
- package/dist/neutral/provider/viewer/NetworkStake/Rewards/templates/MethodsTemplate.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/StepViewer.d.ts +1 -2
- package/dist/neutral/provider/viewer/StepViewer.d.ts.map +1 -1
- package/dist/neutral/services/AccountTransfersService.d.ts +1 -2
- package/dist/neutral/services/AccountTransfersService.d.ts.map +1 -1
- package/dist/neutral/services/BlockRewardService.d.ts +1 -1
- package/dist/neutral/services/BlockRewardService.d.ts.map +1 -1
- package/dist/neutral/services/BlockRewardServiceV2.d.ts +1 -1
- package/dist/neutral/services/BlockRewardServiceV2.d.ts.map +1 -1
- package/dist/neutral/services/Chain/ChainHeadService.d.ts +1 -1
- package/dist/neutral/services/Chain/ChainHeadService.d.ts.map +1 -1
- package/dist/neutral/services/ChainIterator/ChainIteratorService.d.ts +1 -3
- package/dist/neutral/services/ChainIterator/ChainIteratorService.d.ts.map +1 -1
- package/dist/neutral/services/ChainIterator/ChainIteratorServiceEventData.d.ts +1 -1
- package/dist/neutral/services/Election.d.ts +1 -1
- package/dist/neutral/services/Election.d.ts.map +1 -1
- package/dist/neutral/services/Params.d.ts +1 -1
- package/dist/neutral/services/Params.d.ts.map +1 -1
- package/dist/neutral/services/PendingTransactionsService.d.ts +1 -1
- package/dist/neutral/services/PendingTransactionsService.d.ts.map +1 -1
- package/dist/neutral/services/StakeIntentService/ChainIndexingServiceStateSchema.d.ts +3 -4
- package/dist/neutral/services/StakeIntentService/ChainIndexingServiceStateSchema.d.ts.map +1 -1
- package/dist/neutral/services/StakeIntentService/StakeIntentService.d.ts +1 -1
- package/dist/neutral/services/StakeIntentService/StakeIntentService.d.ts.map +1 -1
- package/dist/neutral/simple/accountBalance/SimpleAccountBalanceViewer.d.ts +17 -0
- package/dist/neutral/simple/accountBalance/SimpleAccountBalanceViewer.d.ts.map +1 -0
- package/dist/neutral/simple/accountBalance/index.d.ts +2 -0
- package/dist/neutral/simple/accountBalance/index.d.ts.map +1 -0
- package/dist/neutral/simple/datalake/SimpleDataLakeRunner.d.ts +1 -1
- package/dist/neutral/simple/datalake/SimpleDataLakeRunner.d.ts.map +1 -1
- package/dist/neutral/simple/datalake/SimpleDataLakeViewer.d.ts +1 -1
- package/dist/neutral/simple/datalake/SimpleDataLakeViewer.d.ts.map +1 -1
- package/dist/neutral/simple/gateway/SimpleXyoGateway.d.ts +1 -1
- package/dist/neutral/simple/gateway/SimpleXyoGateway.d.ts.map +1 -1
- package/dist/neutral/simple/gateway/SimpleXyoGatewayRunner.d.ts +5 -5
- package/dist/neutral/simple/gateway/SimpleXyoGatewayRunner.d.ts.map +1 -1
- package/dist/neutral/simple/index.d.ts +2 -0
- package/dist/neutral/simple/index.d.ts.map +1 -1
- package/dist/neutral/simple/runner/SimpleXyoRunner.d.ts +1 -1
- package/dist/neutral/simple/runner/SimpleXyoRunner.d.ts.map +1 -1
- package/dist/neutral/simple/signer/SimpleXyoSigner.d.ts +1 -2
- package/dist/neutral/simple/signer/SimpleXyoSigner.d.ts.map +1 -1
- package/dist/neutral/simple/timesync/SimpleTimeSyncViewer.d.ts +14 -0
- package/dist/neutral/simple/timesync/SimpleTimeSyncViewer.d.ts.map +1 -0
- package/dist/neutral/simple/timesync/index.d.ts +2 -0
- package/dist/neutral/simple/timesync/index.d.ts.map +1 -0
- package/dist/neutral/transaction/buildTransaction.d.ts +1 -1
- package/dist/neutral/transaction/buildTransaction.d.ts.map +1 -1
- package/dist/neutral/transaction/buildUnsignedTransaction.d.ts +1 -1
- package/dist/neutral/transaction/buildUnsignedTransaction.d.ts.map +1 -1
- package/dist/neutral/transaction/confirmSubmittedTransaction.d.ts +1 -1
- package/dist/neutral/transaction/confirmSubmittedTransaction.d.ts.map +1 -1
- package/dist/neutral/transaction/hydrateTransaction.d.ts +1 -1
- package/dist/neutral/transaction/hydrateTransaction.d.ts.map +1 -1
- package/dist/neutral/transaction/primitives/transactionElevatedPayloads.d.ts +1 -1
- package/dist/neutral/transaction/primitives/transactionElevatedPayloads.d.ts.map +1 -1
- package/dist/neutral/transaction/script.d.ts +1 -1
- package/dist/neutral/transaction/script.d.ts.map +1 -1
- package/dist/neutral/validation/block/BlockValidationFunction.d.ts +1 -1
- package/dist/neutral/validation/block/BlockValidationFunction.d.ts.map +1 -1
- package/dist/neutral/validation/block/HydratedBlockStateValidationFunction.d.ts +1 -1
- package/dist/neutral/validation/block/HydratedBlockStateValidationFunction.d.ts.map +1 -1
- package/dist/neutral/validation/block/HydratedBlockValidationFunction.d.ts +1 -1
- package/dist/neutral/validation/block/HydratedBlockValidationFunction.d.ts.map +1 -1
- package/dist/neutral/validation/block/error.d.ts +1 -1
- package/dist/neutral/validation/block/error.d.ts.map +1 -1
- package/dist/neutral/viewers/AccountBalance.d.ts +5 -10
- package/dist/neutral/viewers/AccountBalance.d.ts.map +1 -1
- package/dist/neutral/viewers/Block.d.ts +6 -5
- package/dist/neutral/viewers/Block.d.ts.map +1 -1
- package/dist/neutral/viewers/Chain.d.ts +1 -1
- package/dist/neutral/viewers/Chain.d.ts.map +1 -1
- package/dist/neutral/viewers/ChainContract.d.ts +1 -1
- package/dist/neutral/viewers/ChainContract.d.ts.map +1 -1
- package/dist/neutral/viewers/Fork.d.ts +1 -1
- package/dist/neutral/viewers/Fork.d.ts.map +1 -1
- package/dist/neutral/viewers/NetworkStakeStepReward.d.ts +1 -2
- package/dist/neutral/viewers/NetworkStakeStepReward.d.ts.map +1 -1
- package/dist/neutral/viewers/Stake.d.ts +22 -3
- package/dist/neutral/viewers/Stake.d.ts.map +1 -1
- package/dist/neutral/{model → viewers}/StakeEvents.d.ts +2 -4
- package/dist/neutral/viewers/StakeEvents.d.ts.map +1 -0
- package/dist/neutral/viewers/StakeTotals.d.ts +1 -2
- package/dist/neutral/viewers/StakeTotals.d.ts.map +1 -1
- package/dist/neutral/viewers/StepStake.d.ts +1 -2
- package/dist/neutral/viewers/StepStake.d.ts.map +1 -1
- package/dist/neutral/viewers/TimeSync.d.ts +2 -3
- package/dist/neutral/viewers/TimeSync.d.ts.map +1 -1
- package/dist/neutral/viewers/Transaction.d.ts +1 -2
- package/dist/neutral/viewers/Transaction.d.ts.map +1 -1
- package/dist/neutral/viewers/TransferBalance.d.ts +1 -2
- package/dist/neutral/viewers/TransferBalance.d.ts.map +1 -1
- package/dist/neutral/viewers/index.d.ts +1 -0
- package/dist/neutral/viewers/index.d.ts.map +1 -1
- package/package.json +16 -27
- package/src/SignedBigInt.ts +2 -2
- package/src/block/hydrate/allHashesPresent.ts +1 -1
- package/src/block/hydrate/blockPayloadsFromHydratedBlock.ts +1 -1
- package/src/block/hydrate/hydrateBlock.ts +2 -2
- package/src/block/hydrate/transactionsFromHydratedBlock.ts +1 -1
- package/src/block/hydrate/tryHydrateBlock.ts +2 -2
- package/src/block/primitives/blockFromBlockNumber.ts +3 -3
- package/src/block/primitives/frames/calculateFramesFromRange.ts +3 -2
- package/src/block/primitives/hashFromBlockNumber.ts +1 -1
- package/src/block/primitives/payloads/ChainWindow.ts +1 -1
- package/src/block/primitives/transfers/transfersStepSummaryFromRange.ts +2 -2
- package/src/block/primitives/transfers/transfersSummary.ts +6 -4
- package/src/config/Log.ts +2 -2
- package/src/config/Producer.ts +1 -1
- package/src/config/Validation.ts +1 -1
- package/src/config/storage/driver/Mongo.ts +1 -1
- package/src/driver/memory/MemoryMap.ts +1 -1
- package/src/eip-712/Payloads/EIP712Data.ts +1 -1
- package/src/eip-712/Payloads/EIP712Signature.ts +1 -2
- package/src/eip-712/verify.ts +1 -2
- package/src/instances/Address.ts +1 -2
- package/src/instances/Object.ts +1 -1
- package/src/instances/Signature.ts +1 -1
- package/src/instances/modifiers/BlockWindowInstance.ts +1 -1
- package/src/instances/modifiers/Validatable.ts +1 -1
- package/src/instances/transaction/TransactionFields.ts +1 -1
- package/src/map/AsynchronousMap.ts +1 -1
- package/src/model/ChainContext/ChainContext.ts +2 -2
- package/src/model/ChainContext/ChainStakeContext.ts +6 -5
- package/src/model/ChainContext/ChainStateContext.ts +1 -2
- package/src/model/ChainFork/ChainForkStatic.ts +1 -1
- package/src/model/PayloadMap.ts +1 -1
- package/src/model/Position.ts +1 -1
- package/src/model/index.ts +0 -2
- package/src/payloads/AddressPairPayload.ts +2 -2
- package/src/payloads/netBalancesForPayloads.ts +1 -1
- package/src/payloads/netTransfersForPayloads.ts +1 -1
- package/src/payloads/summary/BalancesStepSummary.ts +2 -2
- package/src/payloads/summary/StepSummary.ts +1 -2
- package/src/payloads/summary/TransfersSummary.ts +2 -2
- package/src/primitives/readPayloadMapFromStore.ts +2 -2
- package/src/primitives/step/completedStepRewardAddress.ts +1 -1
- package/src/primitives/step/derivedReceiveAddress.ts +2 -2
- package/src/primitives/step/stepBlockRange.ts +1 -1
- package/src/primitives/step/stepTransferIndex.ts +2 -2
- package/src/primitives/summary/balances/balancesStepSummaryFromRange.ts +2 -2
- package/src/primitives/summary/balances/balancesSummary.ts +6 -4
- package/src/primitives/summary/transfers/transfersStepSummaryFromRange.ts +2 -2
- package/src/primitives/summary/transfers/transfersSummary.ts +6 -4
- package/src/primitives/timeBudget.ts +1 -1
- package/src/provider/DataLake.ts +1 -1
- package/src/provider/TransactionSubmitter.ts +3 -2
- package/src/provider/XyoGateway.ts +1 -1
- package/src/provider/XyoGatewayRunner.ts +2 -3
- package/src/provider/XyoNetwork.ts +1 -1
- package/src/provider/XyoRunner.ts +1 -2
- package/src/provider/XyoWallet.ts +1 -2
- package/src/provider/permissions/InvokerPermission.ts +1 -1
- package/src/provider/signer/XyoSigner.ts +1 -2
- package/src/provider/viewer/NetworkStake/NetworkStakeViewer.ts +1 -1
- package/src/provider/viewer/NetworkStake/Rewards/ByStakerViewer.ts +1 -1
- package/src/provider/viewer/NetworkStake/Rewards/Options.ts +1 -1
- package/src/provider/viewer/NetworkStake/Rewards/templates/MethodsTemplate.ts +1 -1
- package/src/provider/viewer/StepViewer.ts +1 -2
- package/src/services/AccountTransfersService.ts +3 -2
- package/src/services/BlockRewardService.ts +1 -1
- package/src/services/BlockRewardServiceV2.ts +1 -1
- package/src/services/Chain/ChainHeadService.ts +1 -1
- package/src/services/ChainIterator/ChainIteratorService.ts +3 -3
- package/src/services/ChainIterator/ChainIteratorServiceEventData.ts +1 -1
- package/src/services/Election.ts +1 -1
- package/src/services/Params.ts +1 -1
- package/src/services/PendingTransactionsService.ts +1 -1
- package/src/services/StakeIntentService/ChainIndexingServiceStateSchema.ts +2 -3
- package/src/services/StakeIntentService/StakeIntentService.ts +1 -1
- package/src/simple/accountBalance/SimpleAccountBalanceViewer.ts +124 -0
- package/src/simple/accountBalance/index.ts +1 -0
- package/src/simple/datalake/SimpleDataLakeRunner.ts +1 -1
- package/src/simple/datalake/SimpleDataLakeViewer.ts +1 -1
- package/src/simple/gateway/SimpleXyoGateway.ts +1 -1
- package/src/simple/gateway/SimpleXyoGatewayRunner.ts +19 -21
- package/src/simple/index.ts +2 -0
- package/src/simple/network/SimpleXyoNetwork.ts +1 -1
- package/src/simple/permissions/SimpleXyoPermissions.ts +1 -1
- package/src/simple/permissions/store/MemoryPermissions.ts +1 -1
- package/src/simple/runner/SimpleXyoRunner.ts +1 -1
- package/src/simple/signer/SimpleXyoSigner.ts +1 -2
- package/src/simple/timesync/SimpleTimeSyncViewer.ts +93 -0
- package/src/simple/timesync/index.ts +1 -0
- package/src/time/primitives/xl1BlockNumberToEthBlockNumber.ts +1 -1
- package/src/transaction/buildTransaction.ts +2 -3
- package/src/transaction/buildUnsignedTransaction.ts +2 -2
- package/src/transaction/confirmSubmittedTransaction.ts +2 -3
- package/src/transaction/hydrateTransaction.ts +2 -2
- package/src/transaction/primitives/spec/transactionBlockByteCount.spec.ts +1 -1
- package/src/transaction/primitives/transactionElevatedPayloads.ts +1 -1
- package/src/transaction/script.ts +2 -3
- package/src/transaction/signTransaction.ts +3 -3
- package/src/validation/block/BlockValidationFunction.ts +1 -1
- package/src/validation/block/HydratedBlockStateValidationFunction.ts +1 -1
- package/src/validation/block/HydratedBlockValidationFunction.ts +1 -1
- package/src/validation/block/error.spec.ts +1 -1
- package/src/validation/block/error.ts +1 -1
- package/src/viewers/AccountBalance.ts +7 -10
- package/src/viewers/Block.ts +6 -5
- package/src/viewers/Chain.ts +1 -1
- package/src/viewers/ChainContract.ts +1 -1
- package/src/viewers/Fork.ts +1 -1
- package/src/viewers/NetworkStakeStepReward.ts +1 -2
- package/src/viewers/Stake.ts +25 -4
- package/src/{model → viewers}/StakeEvents.ts +4 -4
- package/src/viewers/StakeTotals.ts +1 -2
- package/src/viewers/StepStake.ts +1 -2
- package/src/viewers/TimeSync.ts +2 -3
- package/src/viewers/Transaction.ts +1 -2
- package/src/viewers/TransferBalance.ts +1 -2
- package/src/viewers/index.ts +1 -0
- package/src/wallet/spec/paths.spec.ts +1 -1
- package/dist/neutral/model/ChainStake/ChainStakeRead.d.ts +0 -17
- package/dist/neutral/model/ChainStake/ChainStakeRead.d.ts.map +0 -1
- package/dist/neutral/model/ChainStake/ChainStakeStatic.d.ts +0 -7
- package/dist/neutral/model/ChainStake/ChainStakeStatic.d.ts.map +0 -1
- package/dist/neutral/model/ChainStake/ChainStakeWrite.d.ts +0 -6
- package/dist/neutral/model/ChainStake/ChainStakeWrite.d.ts.map +0 -1
- package/dist/neutral/model/ChainStake/index.d.ts +0 -4
- package/dist/neutral/model/ChainStake/index.d.ts.map +0 -1
- package/dist/neutral/model/StakeEvents.d.ts.map +0 -1
- package/src/model/ChainStake/ChainStakeRead.ts +0 -18
- package/src/model/ChainStake/ChainStakeStatic.ts +0 -7
- package/src/model/ChainStake/ChainStakeWrite.ts +0 -5
- package/src/model/ChainStake/index.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Block.d.ts","sourceRoot":"","sources":["../../../src/viewers/Block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Block.d.ts","sourceRoot":"","sources":["../../../src/viewers/Block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE9E,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,UAAU,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;IACzD,aAAa,CAAC,KAAK,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;IACtE,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,aAAa,EAAE,CAAC,CAAA;IAErE,YAAY,IAAI,UAAU,CAAC,aAAa,CAAC,CAAA;IACzC,gBAAgB,IAAI,UAAU,CAAC,IAAI,CAAC,CAAA;IACpC,kBAAkB,IAAI,UAAU,CAAC,cAAc,CAAC,CAAA;CACjD;AAED,MAAM,WAAW,WAAY,SAAQ,mBAAmB;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chain.d.ts","sourceRoot":"","sources":["../../../src/viewers/Chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Chain.d.ts","sourceRoot":"","sources":["../../../src/viewers/Chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAExD,MAAM,WAAW,kBAAkB;IACjC,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,CAAA;CAC/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainContract.d.ts","sourceRoot":"","sources":["../../../src/viewers/ChainContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ChainContract.d.ts","sourceRoot":"","sources":["../../../src/viewers/ChainContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,MAAM,WAAW,0BAA0B;IACzC,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACtC,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAC/B,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;IACjC,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACtC,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAClC,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CACvC;AAED,MAAM,WAAW,mBAAoB,SAAQ,0BAA0B;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fork.d.ts","sourceRoot":"","sources":["../../../src/viewers/Fork.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Fork.d.ts","sourceRoot":"","sources":["../../../src/viewers/Fork.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAExD,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEjD,MAAM,WAAW,iBAAiB;IAChC,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;IACpE,WAAW,IAAI,UAAU,CAAC,WAAW,CAAC,CAAA;CACvC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { Address } from '@xylabs/
|
|
2
|
-
import type { Promisable } from '@xylabs/promise';
|
|
1
|
+
import type { Address, Promisable } from '@xylabs/sdk-js';
|
|
3
2
|
import type { StepIdentity, StepIdentityString } from '@xyo-network/xl1-protocol';
|
|
4
3
|
export interface NetworkStakeStepAddressRewardViewerMethods {
|
|
5
4
|
networkStakeStepRewardAddressHistory(address: Address): Promisable<Record<Address, bigint>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkStakeStepReward.d.ts","sourceRoot":"","sources":["../../../src/viewers/NetworkStakeStepReward.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"NetworkStakeStepReward.d.ts","sourceRoot":"","sources":["../../../src/viewers/NetworkStakeStepReward.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAEjF,MAAM,WAAW,0CAA0C;IAEzD,oCAAoC,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAG3F,mCAAmC,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CA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AAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IAG/G,gCAAgC,CAAC,OAAO,EAAE,YAAY,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAG3E,iCAAiC,CAAC,OAAO,EAAE,YAAY,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAE5E,wCAAwC,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAG9E,kCAAkC,CAAC,QAAQ,EAAE,MAAM,EACjD,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,kBAAkB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAA;IAGpF,+BAA+B,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAG5E,mCAAmC,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CACpG"}
|
|
@@ -1,11 +1,30 @@
|
|
|
1
|
-
import type { Address } from '@xylabs/
|
|
2
|
-
import type { Promisable } from '@xylabs/promise';
|
|
1
|
+
import type { Address, Promisable } from '@xylabs/sdk-js';
|
|
3
2
|
import type { Position } from '../model/index.ts';
|
|
3
|
+
import type { StakeEventsViewer } from './StakeEvents.ts';
|
|
4
|
+
export interface StakeViewerProperties {
|
|
5
|
+
minWithdrawalBlocks: number;
|
|
6
|
+
rewardsContract: Address;
|
|
7
|
+
stakingTokenAddress: Address;
|
|
8
|
+
}
|
|
4
9
|
export interface StakeViewerMethods {
|
|
5
10
|
stakeById(id: number): Promisable<Position>;
|
|
6
11
|
stakeByStaker(staker: Address, slot: number): Promisable<Position>;
|
|
7
|
-
stakedByStaker(staker: Address): Promisable<Address[]>;
|
|
8
12
|
stakesByStaked(staked: Address): Promisable<Position[]>;
|
|
9
13
|
stakesByStaker(staker: Address): Promisable<Position[]>;
|
|
10
14
|
}
|
|
15
|
+
export interface StakeViewer extends StakeViewerMethods, StakeViewerProperties {
|
|
16
|
+
active(time?: number): Promisable<bigint>;
|
|
17
|
+
activeByAddressStaked(address: string, time?: number): Promisable<bigint>;
|
|
18
|
+
activeByStaker(address: string, time?: number): Promisable<bigint>;
|
|
19
|
+
pending(time?: number): Promisable<bigint>;
|
|
20
|
+
pendingByStaker(staker: string, time?: number): Promisable<bigint>;
|
|
21
|
+
withdrawn(time?: number): Promisable<bigint>;
|
|
22
|
+
withdrawnByStaker(staker: string, time?: number): Promisable<bigint>;
|
|
23
|
+
}
|
|
24
|
+
export interface StakeRunner extends StakeViewer {
|
|
25
|
+
events: StakeEventsViewer;
|
|
26
|
+
addStake(staked: string, amount: bigint): Promise<boolean>;
|
|
27
|
+
removeStake(slot: bigint): Promise<boolean>;
|
|
28
|
+
withdrawStake(slot: bigint): Promise<boolean>;
|
|
29
|
+
}
|
|
11
30
|
//# sourceMappingURL=Stake.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stake.d.ts","sourceRoot":"","sources":["../../../src/viewers/Stake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Stake.d.ts","sourceRoot":"","sources":["../../../src/viewers/Stake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAEzD,MAAM,WAAW,qBAAqB;IACpC,mBAAmB,EAAE,MAAM,CAAA;IAC3B,eAAe,EAAE,OAAO,CAAA;IACxB,mBAAmB,EAAE,OAAO,CAAA;CAC7B;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,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E,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAC3C,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CAC9C"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type { Address } from '@xylabs/
|
|
2
|
-
import type { JsonObject } from '@xylabs/object';
|
|
3
|
-
import type { Promisable } from '@xylabs/promise';
|
|
1
|
+
import type { Address, JsonObject, Promisable } from '@xylabs/sdk-js';
|
|
4
2
|
export declare const StakeEventNames: readonly ["StakeAdded", "StakeRemoved", "StakeWithdrawn"];
|
|
5
3
|
export type StakeEventName = typeof StakeEventNames[number];
|
|
6
4
|
export interface ExternalEvent<TName extends string = string, TArgs extends JsonObject = {}> {
|
|
@@ -25,7 +23,7 @@ export interface StakeEventFilter<TName extends StakeEventName = StakeEventName>
|
|
|
25
23
|
export interface StakeEvent<TName extends StakeEventName = StakeEventName> extends ExternalEvent<TName> {
|
|
26
24
|
args: StakeEventArgs;
|
|
27
25
|
}
|
|
28
|
-
export interface
|
|
26
|
+
export interface StakeEventsViewer {
|
|
29
27
|
positionCount(range: [number, number | 'latest']): Promisable<number>;
|
|
30
28
|
stakeEvents<TName extends StakeEventName>(range: [number, number | 'latest'], filter?: StakeEventFilter<TName>): Promisable<StakeEvent<TName>[]>;
|
|
31
29
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StakeEvents.d.ts","sourceRoot":"","sources":["../../../src/viewers/StakeEvents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EAAE,UAAU,EAAE,UAAU,EAChC,MAAM,gBAAgB,CAAA;AAEvB,eAAO,MAAM,eAAe,2DAA4D,CAAA;AACxF,MAAM,MAAM,cAAc,GAAG,OAAO,eAAe,CAAC,MAAM,CAAC,CAAA;AAE3D,MAAM,WAAW,aAAa,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,KAAK,SAAS,UAAU,GAAG,EA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from '@xylabs/promise';
|
|
1
|
+
import type { Address, Promisable } from '@xylabs/sdk-js';
|
|
3
2
|
export interface StakeTotalsViewerMethods {
|
|
4
3
|
active(): Promisable<bigint>;
|
|
5
4
|
activeByStaked(staked: Address): Promisable<bigint>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StakeTotals.d.ts","sourceRoot":"","sources":["../../../src/viewers/StakeTotals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"StakeTotals.d.ts","sourceRoot":"","sources":["../../../src/viewers/StakeTotals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEzD,MAAM,WAAW,wBAAwB;IACvC,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;IAC5B,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IACnD,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IACpD,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;IAC7B,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IACpD,SAAS,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;IAC/B,iBAAiB,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CACvD;AAED,MAAM,WAAW,iBAAkB,SAAQ,wBAAwB;CAAG"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { Address } from '@xylabs/
|
|
2
|
-
import type { Promisable } from '@xylabs/promise';
|
|
1
|
+
import type { Address, Promisable } from '@xylabs/sdk-js';
|
|
3
2
|
import type { StepIdentity } from '@xyo-network/xl1-protocol';
|
|
4
3
|
export interface StepStakeViewerMethods {
|
|
5
4
|
stepStake: (step: StepIdentity) => Promisable<Record<Address, bigint>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepStake.d.ts","sourceRoot":"","sources":["../../../src/viewers/StepStake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"StepStake.d.ts","sourceRoot":"","sources":["../../../src/viewers/StepStake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE7D,MAAM,WAAW,sBAAsB;IAErC,SAAS,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAGtE,mBAAmB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,KAAK,UAAU,CAAC,MAAM,CAAC,CAAA;CAClF;AAUD,MAAM,WAAW,eAAgB,SAAQ,sBAAsB;CAAG"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Promisable } from '@xylabs/promise';
|
|
1
|
+
import type { Promisable } from '@xylabs/sdk-js';
|
|
3
2
|
import type { TimeDomain, TimePayload } from '@xyo-network/xl1-protocol';
|
|
4
3
|
export interface TimeSyncViewerMethods {
|
|
5
4
|
/** Convert time between different domains */
|
|
@@ -7,7 +6,7 @@ export interface TimeSyncViewerMethods {
|
|
|
7
6
|
/** Get the current time for a given domain */
|
|
8
7
|
currentTime(domain: TimeDomain): Promisable<[string, number]>;
|
|
9
8
|
/** Get the current time for a given domain */
|
|
10
|
-
currentTimeAndHash(domain: TimeDomain): Promisable<[number,
|
|
9
|
+
currentTimeAndHash(domain: TimeDomain): Promisable<[number, string | null]>;
|
|
11
10
|
/** Create a TimePayload with the current time from all configured domains */
|
|
12
11
|
currentTimePayload(): Promisable<TimePayload>;
|
|
13
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeSync.d.ts","sourceRoot":"","sources":["../../../src/viewers/TimeSync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"TimeSync.d.ts","sourceRoot":"","sources":["../../../src/viewers/TimeSync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAExE,MAAM,WAAW,qBAAqB;IACpC,6CAA6C;IAC7C,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAE3F,8CAA8C;IAC9C,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IAE7D,8CAA8C;IAC9C,kBAAkB,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC,CAAA;IAE3E,6EAA6E;IAC7E,kBAAkB,IAAI,UAAU,CAAC,WAAW,CAAC,CAAA;CAC9C;AAED,MAAM,WAAW,cAAe,SAAQ,qBAAqB;CAAG"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { Hash } from '@xylabs/
|
|
2
|
-
import type { Promisable } from '@xylabs/promise';
|
|
1
|
+
import type { Hash, Promisable } from '@xylabs/sdk-js';
|
|
3
2
|
import type { SignedHydratedTransaction } from '@xyo-network/xl1-protocol';
|
|
4
3
|
export interface TransactionViewerMethods {
|
|
5
4
|
transactionByBlockHashAndIndex(blockHash: Hash, transactionIndex: number): Promisable<SignedHydratedTransaction | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../src/viewers/Transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../src/viewers/Transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAA;AAE1E,MAAM,WAAW,wBAAwB;IACvC,8BAA8B,CAAC,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,GAAG,UAAU,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAA;IACvH,gCAAgC,CAAC,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,UAAU,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAA;IAC7H,iBAAiB,CAAC,eAAe,EAAE,IAAI,GAAG,UAAU,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAA;CACvF"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { Address } from '@xylabs/
|
|
2
|
-
import type { Promisable } from '@xylabs/promise';
|
|
1
|
+
import type { Address, Promisable } from '@xylabs/sdk-js';
|
|
3
2
|
import type { Signed } from '@xyo-network/boundwitness-model';
|
|
4
3
|
import type { AttoXL1, BlockBoundWitness, TransactionBoundWitness, Transfer, XL1BlockRange } from '@xyo-network/xl1-protocol';
|
|
5
4
|
export type TransferBalanceHistoryItem = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransferBalance.d.ts","sourceRoot":"","sources":["../../../src/viewers/TransferBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"TransferBalance.d.ts","sourceRoot":"","sources":["../../../src/viewers/TransferBalance.ts"],"names":[],"mappings":"AAAA,OA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AAA;IACtD,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,aAAa,GAAG,UAAU,CAAC,0BAA0B,EAAE,CAAC,CAAA;IACzG,mBAAmB,CAAC,OAAO,EAAE,YAAY,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IAC/D,0BAA0B,CAAC,OAAO,EAAE,YAAY,GAAG,UAAU,CAAC,0BAA0B,EAAE,CAAC,CAAA;CAC5F"}
|
|
@@ -5,6 +5,7 @@ export * from './ChainContract.ts';
|
|
|
5
5
|
export * from './Fork.ts';
|
|
6
6
|
export * from './NetworkStakeStepReward.ts';
|
|
7
7
|
export * from './Stake.ts';
|
|
8
|
+
export * from './StakeEvents.ts';
|
|
8
9
|
export * from './StakeTotals.ts';
|
|
9
10
|
export * from './StepStake.ts';
|
|
10
11
|
export * from './TimeSync.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/viewers/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,WAAW,CAAA;AACzB,cAAc,6BAA6B,CAAA;AAC3C,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/viewers/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,WAAW,CAAA;AACzB,cAAc,6BAA6B,CAAA;AAC3C,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@xyo-network/xl1-protocol-sdk",
|
|
4
|
-
"version": "1.16.
|
|
4
|
+
"version": "1.16.11",
|
|
5
5
|
"description": "XYO Layer One SDK Protocol",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -36,29 +36,18 @@
|
|
|
36
36
|
"src"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@xylabs/
|
|
40
|
-
"@xylabs/
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"@xylabs/typeof": "~5.0.24",
|
|
52
|
-
"@xyo-network/account-model": "~5.1.21",
|
|
53
|
-
"@xyo-network/archivist-memory": "~5.1.21",
|
|
54
|
-
"@xyo-network/archivist-model": "~5.1.21",
|
|
55
|
-
"@xyo-network/boundwitness-builder": "~5.1.21",
|
|
56
|
-
"@xyo-network/boundwitness-model": "~5.1.21",
|
|
57
|
-
"@xyo-network/payload-builder": "~5.1.21",
|
|
58
|
-
"@xyo-network/payload-model": "~5.1.21",
|
|
59
|
-
"@xyo-network/wallet": "~5.1.21",
|
|
60
|
-
"@xyo-network/wallet-model": "~5.1.21",
|
|
61
|
-
"@xyo-network/xl1-protocol": "~1.13.6",
|
|
39
|
+
"@xylabs/sdk-js": "~5.0.33",
|
|
40
|
+
"@xylabs/telemetry": "~5.0.33",
|
|
41
|
+
"@xyo-network/account-model": "~5.1.22",
|
|
42
|
+
"@xyo-network/archivist-memory": "~5.1.22",
|
|
43
|
+
"@xyo-network/archivist-model": "~5.1.22",
|
|
44
|
+
"@xyo-network/boundwitness-builder": "~5.1.22",
|
|
45
|
+
"@xyo-network/boundwitness-model": "~5.1.22",
|
|
46
|
+
"@xyo-network/payload-builder": "~5.1.22",
|
|
47
|
+
"@xyo-network/payload-model": "~5.1.22",
|
|
48
|
+
"@xyo-network/wallet": "~5.1.22",
|
|
49
|
+
"@xyo-network/wallet-model": "~5.1.22",
|
|
50
|
+
"@xyo-network/xl1-protocol": "~1.13.11",
|
|
62
51
|
"async-mutex": "~0.5.0",
|
|
63
52
|
"ethers": "~6.15.0",
|
|
64
53
|
"lru-cache": "^11.2.2",
|
|
@@ -68,12 +57,12 @@
|
|
|
68
57
|
"@types/node": "~24.10.1",
|
|
69
58
|
"@xylabs/ts-scripts-yarn3": "~7.2.8",
|
|
70
59
|
"@xylabs/tsconfig": "~7.2.8",
|
|
71
|
-
"@xyo-network/account": "~5.1.
|
|
72
|
-
"@xyo-network/boundwitness-validator": "~5.1.
|
|
60
|
+
"@xyo-network/account": "~5.1.22",
|
|
61
|
+
"@xyo-network/boundwitness-validator": "~5.1.22",
|
|
73
62
|
"axios": "^1.13.2",
|
|
74
63
|
"eslint": "^9.39.1",
|
|
75
64
|
"typescript": "~5.9.3",
|
|
76
|
-
"vitest": "~4.0.
|
|
65
|
+
"vitest": "~4.0.9"
|
|
77
66
|
},
|
|
78
67
|
"peerDependencies": {
|
|
79
68
|
"axios": "^1.13.2"
|
package/src/SignedBigInt.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/
|
|
1
|
+
import { assertEx } from '@xylabs/sdk-js'
|
|
2
2
|
import type { Payload, WithStorageMeta } from '@xyo-network/payload-model'
|
|
3
3
|
import type { HydratedBlock } from '@xyo-network/xl1-protocol'
|
|
4
4
|
import { isTransactionBoundWitnessWithStorageMeta } from '@xyo-network/xl1-protocol'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import type { Hash } from '@xylabs/sdk-js'
|
|
2
|
+
import { assertEx } from '@xylabs/sdk-js'
|
|
3
3
|
import type { HydratedBlock } from '@xyo-network/xl1-protocol'
|
|
4
4
|
import { asBlockBoundWitnessWithStorageMeta, isTransactionBoundWitnessWithStorageMeta } from '@xyo-network/xl1-protocol'
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { filterAs } from '@xylabs/
|
|
1
|
+
import { filterAs } from '@xylabs/sdk-js'
|
|
2
2
|
import type { WithStorageMeta } from '@xyo-network/payload-model'
|
|
3
3
|
import type { HydratedBlock, TransactionBoundWitness } from '@xyo-network/xl1-protocol'
|
|
4
4
|
import { asTransactionBoundWitnessWithStorageMeta } from '@xyo-network/xl1-protocol'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import type { Hash } from '@xylabs/sdk-js'
|
|
2
|
+
import { assertEx } from '@xylabs/sdk-js'
|
|
3
3
|
import type { ReadArchivist } from '@xyo-network/archivist-model'
|
|
4
4
|
import type { HydratedBlock } from '@xyo-network/xl1-protocol'
|
|
5
5
|
import { isBlockBoundWitnessWithStorageMeta, isTransactionBoundWitnessWithStorageMeta } from '@xyo-network/xl1-protocol'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { asHash, type Hash } from '@xylabs/
|
|
2
|
-
import { toSafeJsonString } from '@xylabs/
|
|
1
|
+
import { asHash, type Hash } from '@xylabs/sdk-js'
|
|
2
|
+
import { toSafeJsonString } from '@xylabs/sdk-js'
|
|
3
3
|
import type { WithStorageMeta } from '@xyo-network/payload-model'
|
|
4
4
|
import type { BlockBoundWitness, XL1BlockNumber } from '@xyo-network/xl1-protocol'
|
|
5
5
|
import { asBlockBoundWitnessWithStorageMeta, StepSizes } from '@xyo-network/xl1-protocol'
|
|
@@ -13,7 +13,7 @@ export async function blockFromBlockNumber(context: ChainContextRead, blockNumbe
|
|
|
13
13
|
const result = await context.store.chainMap.get(headHash)
|
|
14
14
|
let currentBlock = asBlockBoundWitnessWithStorageMeta(result, () => `Head block not found for hash: ${headHash}`, { required: true })
|
|
15
15
|
if (currentBlock.block < blockNumber) {
|
|
16
|
-
throw new Error(`
|
|
16
|
+
throw new Error(`Block number ${blockNumber} is greater than head ${currentBlock.block}.`)
|
|
17
17
|
}
|
|
18
18
|
while (currentBlock.block > blockNumber) {
|
|
19
19
|
let jumpHash: Hash | null = currentBlock.previous
|
|
@@ -19,9 +19,10 @@ export function calculateFramesFromRange(range: XL1BlockRange, step: number): [
|
|
|
19
19
|
|
|
20
20
|
for (let i = start; i <= range[1]; i += size) {
|
|
21
21
|
if ((i + size - 1) <= range[1]) {
|
|
22
|
-
fitted.push([asXL1BlockNumber(i,
|
|
22
|
+
fitted.push([asXL1BlockNumber(i, { name: 'calculateFramesFromRange A' }),
|
|
23
|
+
asXL1BlockNumber(Math.min(i + size - 1, range[1]), { name: 'calculateFramesFromRange B' })])
|
|
23
24
|
} else {
|
|
24
|
-
remaining.push([asXL1BlockNumber(i,
|
|
25
|
+
remaining.push([asXL1BlockNumber(i, { name: 'calculateFramesFromRange C' }), range[1]])
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
return [fitted, remaining]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable max-statements */
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { type Address } from '@xylabs/sdk-js'
|
|
3
|
+
import { assertEx } from '@xylabs/sdk-js'
|
|
4
4
|
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
5
5
|
import type { WithStorageMeta } from '@xyo-network/payload-model'
|
|
6
6
|
import { isAnyPayload } from '@xyo-network/payload-model'
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { Address, Hash } from '@xylabs/
|
|
2
|
-
import { asAddress } from '@xylabs/
|
|
1
|
+
import type { Address, Hash } from '@xylabs/sdk-js'
|
|
2
|
+
import { asAddress, isDefined } from '@xylabs/sdk-js'
|
|
3
3
|
import { spanRootAsync } from '@xylabs/telemetry'
|
|
4
|
-
import { isDefined } from '@xylabs/typeof'
|
|
5
4
|
import {
|
|
6
5
|
asBlockBoundWitnessWithStorageMeta, asXL1BlockNumber, asXL1BlockRange,
|
|
7
6
|
} from '@xyo-network/xl1-protocol'
|
|
@@ -20,7 +19,10 @@ export async function transfersSummary(
|
|
|
20
19
|
const headResult = await transferContext.store.chainMap.get(headHash)
|
|
21
20
|
const headBoundWitness = asBlockBoundWitnessWithStorageMeta(headResult, () => `Head block not found for hash: ${transferContext.head}`, { required: true })
|
|
22
21
|
const rangeStart = asXL1BlockNumber(isDefined(transferContext.windowSize) ? Math.max(headBoundWitness.block - transferContext.windowSize + 1, 0) : 0)
|
|
23
|
-
const ranges = deepCalculateFramesFromRange(asXL1BlockRange(
|
|
22
|
+
const ranges = deepCalculateFramesFromRange(asXL1BlockRange(
|
|
23
|
+
[rangeStart, headBoundWitness.block],
|
|
24
|
+
{ name: 'transfersSummary' },
|
|
25
|
+
))
|
|
24
26
|
const summaries = await Promise.all(ranges.map(range => transfersStepSummaryFromRange(transferContext, range)))
|
|
25
27
|
const transfers: Partial<Record<Address, Partial<Record<Address, bigint>>>> = {}
|
|
26
28
|
for (let summary of summaries) {
|
package/src/config/Log.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { LogLevelKey } from '@xylabs/
|
|
2
|
-
import { LogLevel } from '@xylabs/
|
|
1
|
+
import type { LogLevelKey } from '@xylabs/sdk-js'
|
|
2
|
+
import { LogLevel } from '@xylabs/sdk-js'
|
|
3
3
|
import { globalRegistry } from 'zod'
|
|
4
4
|
import * as z from 'zod'
|
|
5
5
|
const LogLevels = Object.keys(LogLevel) as [LogLevelKey, ...LogLevelKey[]]
|
package/src/config/Producer.ts
CHANGED
package/src/config/Validation.ts
CHANGED
package/src/eip-712/verify.ts
CHANGED
package/src/instances/Address.ts
CHANGED
package/src/instances/Object.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Logger } from '@xylabs/
|
|
2
|
-
import { isDefined, isUndefined } from '@xylabs/
|
|
1
|
+
import type { Logger } from '@xylabs/sdk-js'
|
|
2
|
+
import { isDefined, isUndefined } from '@xylabs/sdk-js'
|
|
3
3
|
|
|
4
4
|
import { LruCacheMap, MemoryMap } from '../../driver/index.ts'
|
|
5
5
|
import type { MapType } from '../../map/index.ts'
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
StakeEventsViewer, StakeRunner, StakeViewer,
|
|
3
|
+
} from '../../viewers/index.ts'
|
|
1
4
|
import type { ChainIdentity } from '../ChainIdentity.ts'
|
|
2
|
-
import type { ChainStakeRead, ChainStakeWrite } from '../ChainStake/index.ts'
|
|
3
|
-
import type { StakeEventsRead } from '../StakeEvents.ts'
|
|
4
5
|
|
|
5
6
|
export interface ChainStakeContextWrite extends ChainIdentity {
|
|
6
|
-
stake:
|
|
7
|
+
stake: StakeRunner
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export interface ChainStakeContextRead extends ChainIdentity {
|
|
10
|
-
events:
|
|
11
|
-
stake:
|
|
11
|
+
events: StakeEventsViewer
|
|
12
|
+
stake: StakeViewer
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export type ChainStakeContext = ChainStakeContextRead & ChainStakeContextWrite
|