|  | 
| 1 | 1 | import { callEndpoint } from './endpoint' | 
| 2 | 2 | import { operations } from './types/api' | 
| 3 |  | -import { | 
| 4 |  | -  SafeTransactionEstimation, | 
| 5 |  | -  SafeTransactionEstimationV2, | 
| 6 |  | -  TransactionDetails, | 
| 7 |  | -  TransactionListPage, | 
| 8 |  | -} from './types/transactions' | 
|  | 3 | +import { SafeTransactionEstimation, TransactionDetails, TransactionListPage } from './types/transactions' | 
| 9 | 4 | import { FiatCurrencies, OwnedSafes, SafeBalanceResponse, SafeCollectibleResponse, SafeInfo } from './types/common' | 
| 10 | 5 | import { ChainListResponse, ChainInfo } from './types/chains' | 
| 11 | 6 | import { SafeAppsResponse } from './types/safe-apps' | 
| @@ -120,29 +115,14 @@ export function getTransactionDetails( | 
| 120 | 115 | } | 
| 121 | 116 | 
 | 
| 122 | 117 | /** | 
| 123 |  | - * Request a gas estimate for a created transaction | 
|  | 118 | + * Request a gas estimate & recommmended tx nonce for a created transaction | 
| 124 | 119 |  */ | 
| 125 | 120 | export function postSafeGasEstimation( | 
| 126 | 121 |   baseUrl: string, | 
| 127 | 122 |   chainId: string, | 
| 128 | 123 |   address: string, | 
| 129 | 124 |   body: operations['post_safe_gas_estimation']['parameters']['body'], | 
| 130 | 125 | ): Promise<SafeTransactionEstimation> { | 
| 131 |  | -  return callEndpoint(baseUrl, '/v1/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations', { | 
| 132 |  | -    path: { chainId, safe_address: address }, | 
| 133 |  | -    body, | 
| 134 |  | -  }) | 
| 135 |  | -} | 
| 136 |  | - | 
| 137 |  | -/** | 
| 138 |  | - * Request a gas estimate & recommmended tx nonce for a created transaction | 
| 139 |  | - */ | 
| 140 |  | -export function postSafeGasEstimationV2( | 
| 141 |  | -  baseUrl: string, | 
| 142 |  | -  chainId: string, | 
| 143 |  | -  address: string, | 
| 144 |  | -  body: operations['post_safe_gas_estimation_v2']['parameters']['body'], | 
| 145 |  | -): Promise<SafeTransactionEstimationV2> { | 
| 146 | 126 |   return callEndpoint(baseUrl, '/v2/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations', { | 
| 147 | 127 |     path: { chainId, safe_address: address }, | 
| 148 | 128 |     body, | 
|  | 
0 commit comments