@@ -50,42 +50,6 @@ export const getBoostedTransactionParents = ({
5050 } ) ;
5151} ;
5252
53- /**
54- * Determines if a given txId has any boosted parents.
55- * // TODO: Migrate to Beignet
56- * @param {string } txId
57- * @param {IBoostedTransactions } [boostedTransactions]
58- * @param {TWalletName } [selectedWallet]
59- * @param {EAvailableNetwork } [selectedNetwork]
60- * @returns {boolean }
61- */
62- export const hasBoostedParents = ( {
63- wallet,
64- txId,
65- boostedTransactions,
66- selectedWallet = getSelectedWallet ( ) ,
67- selectedNetwork = getSelectedNetwork ( ) ,
68- } : {
69- wallet : TWallet ;
70- txId : string ;
71- boostedTransactions ?: IBoostedTransactions ;
72- selectedWallet ?: TWalletName ;
73- selectedNetwork ?: EAvailableNetwork ;
74- } ) : boolean => {
75- if ( ! boostedTransactions ) {
76- boostedTransactions = getBoostedTransactions ( {
77- selectedWallet,
78- selectedNetwork,
79- } ) ;
80- }
81- const boostedParents = getBoostedTransactionParents ( {
82- wallet,
83- txId,
84- boostedTransactions,
85- } ) ;
86- return boostedParents . length > 0 ;
87- } ;
88-
8953/**
9054 * Returns the initially boosted transaction's activity item for a given txId.
9155 * @param {string } txId
@@ -99,21 +63,15 @@ const getRootParentActivity = async ({
9963 txId,
10064 items,
10165 boostedTransactions,
102- selectedWallet = getSelectedWallet ( ) ,
103- selectedNetwork = getSelectedNetwork ( ) ,
10466} : {
10567 txId : string ;
10668 items : TOnchainActivityItem [ ] ;
10769 boostedTransactions ?: IBoostedTransactions ;
108- selectedWallet ?: TWalletName ;
109- selectedNetwork ?: EAvailableNetwork ;
11070} ) : Promise < TOnchainActivityItem | undefined > => {
11171 const wallet = await getOnChainWalletAsync ( ) ;
72+
11273 if ( ! boostedTransactions ) {
113- boostedTransactions = getBoostedTransactions ( {
114- selectedWallet,
115- selectedNetwork,
116- } ) ;
74+ boostedTransactions = getBoostedTransactions ( ) ;
11775 }
11876 const boostedParents = getBoostedTransactionParents ( {
11977 wallet,
@@ -158,13 +116,9 @@ export const getParentsActivity = ({
158116export const formatBoostedActivityItems = async ( {
159117 items,
160118 boostedTransactions,
161- selectedWallet,
162- selectedNetwork,
163119} : {
164120 items : TOnchainActivityItem [ ] ;
165121 boostedTransactions : IBoostedTransactions ;
166- selectedWallet : TWalletName ;
167- selectedNetwork : EAvailableNetwork ;
168122} ) : Promise < TOnchainActivityItem [ ] > => {
169123 const wallet = await getOnChainWalletAsync ( ) ;
170124 const formattedItems : TOnchainActivityItem [ ] = [ ] ;
@@ -193,8 +147,6 @@ export const formatBoostedActivityItems = async ({
193147 txId,
194148 items,
195149 boostedTransactions,
196- selectedWallet,
197- selectedNetwork,
198150 } ) ;
199151
200152 // If no root parent (RBF), just add the item marked as boosted
0 commit comments