public static OffchainTransactionDetailsViewModel Create(IMixedTransaction tx,
                                                          IReadOnlyDictionary <string, IAssetDefinition> assetsDictionary,
                                                          long offchainTransactionsCount)
 {
     return(new OffchainTransactionDetailsViewModel
     {
         Transaction = OffChainTransactionViewModel.Create(tx.OffchainTransactionData, assetsDictionary),
         OffchainMixedTransactionsPagedList = OffchainMixedTransactionsPagedList.Create(
             offchainTransactionsCount,
             PageSize,
             (url, page) => url.Action("OffchainMixedTransactionsPage", "OffchainGroup", new { group = tx.GroupId, page = page, pageSize = PageSize })
             )
     });
 }
 public static FilledMixedTransaction Create(IMixedTransaction mixedTransaction,
                                             ITransaction onchainTransaction)
 {
     return(new FilledMixedTransaction
     {
         AssetId = mixedTransaction.AssetId,
         ClientAddress1 = mixedTransaction.ClientAddress1,
         ClientAddress2 = mixedTransaction.ClientAddress2,
         OnchainTransactionData = mixedTransaction.OnchainTransactionData,
         FilledOnchainTransactionData = onchainTransaction,
         HubAddress = mixedTransaction.HubAddress,
         IsColored = mixedTransaction.IsColored,
         IsOffchain = mixedTransaction.IsOffchain,
         OffchainTransactionData = mixedTransaction.OffchainTransactionData,
         GroupId = mixedTransaction.GroupId
     });
 }