File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
src/pages/Dashboard/widgets/BatchTransactions/helpers Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,18 @@ import {
44 TransactionsDisplayInfoType
55} from 'lib' ;
66
7- type TransactionsHandlerType = {
7+ type SendAndTrackTransactionsType = {
88 transactions : Transaction [ ] | Transaction [ ] [ ] ;
99 options ?: {
1010 disableToasts ?: boolean ;
1111 transactionsDisplayInfo ?: TransactionsDisplayInfoType ;
1212 } ;
1313} ;
1414
15- export const transactionsHandler = async ( {
15+ export const sendAndTrackTransactions = async ( {
1616 transactions,
1717 options
18- } : TransactionsHandlerType ) => {
18+ } : SendAndTrackTransactionsType ) => {
1919 const txManager = TransactionManager . getInstance ( ) ;
2020
2121 const sentTransactions = await txManager . send ( transactions ) ;
Original file line number Diff line number Diff line change 11import { getAccountProvider } from 'lib' ;
22import { TransactionProps } from 'types' ;
33import { getBatchTransactions } from './getBatchTransactions' ;
4- import { transactionsHandler } from './transactionsHandler ' ;
4+ import { sendAndTrackTransactions } from './sendAndTrackTransactions ' ;
55
66export const sendBatchTransactions = async ( {
77 address,
@@ -24,7 +24,7 @@ export const sendBatchTransactions = async ({
2424 [ transactions [ 3 ] , transactions [ 4 ] ]
2525 ] ;
2626
27- const sessionId = await transactionsHandler ( {
27+ const sessionId = await sendAndTrackTransactions ( {
2828 transactions : groupedTransactions
2929 } ) ;
3030
Original file line number Diff line number Diff line change 11import { getAccountProvider , TransactionsDisplayInfoType } from 'lib' ;
22import { TransactionProps } from 'types' ;
33import { getBatchTransactions } from './getBatchTransactions' ;
4- import { transactionsHandler } from './transactionsHandler ' ;
4+ import { sendAndTrackTransactions } from './sendAndTrackTransactions ' ;
55
66export const signAndAutoSendBatchTransactions = async ( {
77 address,
@@ -31,7 +31,7 @@ export const signAndAutoSendBatchTransactions = async ({
3131 [ signedTransactions [ 3 ] , signedTransactions [ 4 ] ]
3232 ] ;
3333
34- const sessionId = await transactionsHandler ( {
34+ const sessionId = await sendAndTrackTransactions ( {
3535 transactions : groupedTransactions ,
3636 options : {
3737 transactionsDisplayInfo
Original file line number Diff line number Diff line change 11import { getAccountProvider , TransactionsDisplayInfoType } from 'lib' ;
22import { TransactionProps } from 'types' ;
33import { getSwapAndLockTransactions } from './getSwapAndLockTransactions' ;
4- import { transactionsHandler } from './transactionsHandler ' ;
4+ import { sendAndTrackTransactions } from './sendAndTrackTransactions ' ;
55
66export const swapAndLockTokens = async ( {
77 address,
@@ -31,7 +31,7 @@ export const swapAndLockTokens = async ({
3131 [ transactions [ 3 ] ]
3232 ] ;
3333
34- const sessionId = await transactionsHandler ( {
34+ const sessionId = await sendAndTrackTransactions ( {
3535 transactions : groupedTransactions ,
3636 options : {
3737 transactionsDisplayInfo
You can’t perform that action at this time.
0 commit comments