|
1 | 1 | import { IBoostedTransactions, Wallet as TWallet } from 'beignet'; |
2 | 2 |
|
3 | | -import { getActivityStore, getWalletStore } from '../store/helpers'; |
4 | | -import { IActivityItem, TOnchainActivityItem } from '../store/types/activity'; |
| 3 | +import { getWalletStore } from '../store/helpers'; |
| 4 | +import { TOnchainActivityItem } from '../store/types/activity'; |
5 | 5 | import { TWalletName } from '../store/types/wallet'; |
6 | 6 | import { EAvailableNetwork } from './networks'; |
7 | 7 | import { |
@@ -85,26 +85,6 @@ const getRootParentActivity = async ({ |
85 | 85 | return filteredItem; |
86 | 86 | }; |
87 | 87 |
|
88 | | -/** |
89 | | - * Returns an array of activity items for the provided array of parent txids. |
90 | | - * CURRENTLY UNUSED |
91 | | - * // TODO: Migrate to Beignet |
92 | | - * @param {string[]} [parents] |
93 | | - * @param {IActivityItem[]} [items] |
94 | | - */ |
95 | | -export const getParentsActivity = ({ |
96 | | - parents = [], |
97 | | - items = [], |
98 | | -}: { |
99 | | - parents?: string[]; |
100 | | - items?: IActivityItem[]; |
101 | | -}): IActivityItem[] => { |
102 | | - if (!items) { |
103 | | - items = getActivityStore().items; |
104 | | - } |
105 | | - return items.filter((i) => parents.includes(i.id)); |
106 | | -}; |
107 | | - |
108 | 88 | /** |
109 | 89 | * Loop through activity items and format them to be displayed as boosted if applicable. |
110 | 90 | * @param {TOnchainActivityItem[]} [items] |
@@ -172,6 +152,8 @@ export const formatBoostedActivityItems = async ({ |
172 | 152 | fee: rootParent.fee + item.fee, |
173 | 153 | address: rootParent.address, |
174 | 154 | isBoosted: true, |
| 155 | + isTransfer: rootParent.isTransfer, |
| 156 | + transferTxId: rootParent.transferTxId, |
175 | 157 | }); |
176 | 158 | } |
177 | 159 |
|
|
0 commit comments