public OperationExecutionAggregate ToDomain() { return(OperationExecutionAggregate.Restore( ETag, State, Result, StartMoment, ActiveTransactionIdGenerationMoment, ActiveTransactionStartMoment, TransactionExecutionRepeatRequestMoment, ActiveTransactionClearingMoment, TransactionFinishMoment, FinishMoment, OperationId, FromAddress, Outputs .Select(x => x.ToDomain()) .ToArray(), AssetId, IncludeFee, BlockchainType, BlockchainAssetId, EndpointsConfiguration, ActiveTransactionId, ActiveTransactionNumber, TransactionOutputs? .Select(o => o.ToDomain()) .ToArray(), TransactionBlock, TransactionFee, TransactionHash, Error, RebuildConfirmationResult)); }
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)); }