Пример #1
0
 public TransactionExecutionAggregate ToDomain([CanBeNull] TransactionExecutionBlobEntity blobData)
 {
     return(TransactionExecutionAggregate.Restore(
                version: ETag,
                transactionId: TransactionId,
                address: Address,
                neoAssetId: NeoAssetId,
                gasAssetId: GasAssetId,
                neoBlockchainType: NeoBlockchainType,
                neoBlockchainAssetId: NeoBlockchainAssetId,
                gasBlockchainType: GasBlockchainType,
                gasBlockchainAssetId: GasBlockchainAssetId,
                unsignedTransactionContext: blobData?.UnsignedTransactionContext,
                claimedGas: ClaimedGas,
                allGas: AllGas,
                signedTransactionContext: blobData?.SignedTransactionContext,
                transactionHash: TransactionHash,
                broadcastingBlock: BroadcastingBlock,
                lockAcquiredAt: LockAcquiredAt,
                lockRejectedAt: LockRejectedAt,
                assetInfoRetrievedAt: AssetInfoRetrievedAt,
                transactionBuiltAt: TransactionBuiltAt,
                claimableGasNotAvailableReportedAt: ClaimableGasNotAvailableReportedAt,
                transactionSignedAt: TransactionSignedAt,
                transactionBroadcastedAt: TransactionBroadcastedAt,
                transactionExecutedAt: TransactionExecutedAt,
                transactionClearedAt: TransactionClearedAt,
                lockReleasedAt: LockReleasedAt));
 }
Пример #2
0
 public TransactionExecutionAggregate ToDomain([CanBeNull] TransactionExecutionBlobEntity blobData)
 {
     return(TransactionExecutionAggregate.Restore(
                ETag,
                State,
                Result,
                StartMoment,
                SourceAddressLockingMoment,
                BuildingMoment,
                SigningMoment,
                BroadcastingMoment,
                FinishMoment,
                SourceAddressReleaseMoment,
                ClearedMoment,
                BuildingFailureMoment,
                BroadcastinFailureMoment,
                WaitingForEndingStartMoment,
                WaitingForEndingFailureMoment,
                OperationId,
                TransactionId,
                TransactionNumber,
                BlockchainType,
                FromAddress,
                FromAddressContext,
                Outputs
                .Select(x => x.ToDomain())
                .ToArray(),
                AssetId,
                IncludeFee,
                blobData?.TransactionContext,
                BlockchainAssetId,
                blobData?.SignedTransaction,
                TransactionOutputs?
                .Select(o => o.ToDomain())
                .ToArray(),
                Block,
                Fee,
                Hash,
                Error));
 }