|  | 
| 1 | 1 | import { callEndpoint } from './endpoint' | 
| 2 | 2 | import { operations } from './types/api' | 
| 3 | 3 | import { SafeTransactionEstimation, TransactionDetails, TransactionListPage } from './types/transactions' | 
| 4 |  | -import { FiatCurrencies, OwnedSafes, SafeBalanceResponse, SafeCollectibleResponse, SafeInfo } from './types/common' | 
|  | 4 | +import { | 
|  | 5 | +  FiatCurrencies, | 
|  | 6 | +  OwnedSafes, | 
|  | 7 | +  SafeBalanceResponse, | 
|  | 8 | +  SafeCollectibleResponse, | 
|  | 9 | +  SafeIncomingTransfersResponse, | 
|  | 10 | +  SafeInfo, | 
|  | 11 | +  SafeModuleTransactionsResponse, | 
|  | 12 | +  SafeMultisigTransactionsResponse, | 
|  | 13 | +} from './types/common' | 
| 5 | 14 | import { ChainListResponse, ChainInfo } from './types/chains' | 
| 6 | 15 | import { SafeAppsResponse } from './types/safe-apps' | 
| 7 | 16 | import { MasterCopyReponse } from './types/master-copies' | 
| @@ -33,6 +42,66 @@ export function getSafeInfo(chainId: string, address: string): Promise<SafeInfo> | 
| 33 | 42 |   return callEndpoint(baseUrl, '/v1/chains/{chainId}/safes/{address}', { path: { chainId, address } }) | 
| 34 | 43 | } | 
| 35 | 44 | 
 | 
|  | 45 | +/** | 
|  | 46 | + * Get filterable list of incoming transactions | 
|  | 47 | + */ | 
|  | 48 | +export function getIncomingTransfers( | 
|  | 49 | +  chainId: string, | 
|  | 50 | +  address: string, | 
|  | 51 | +  query?: operations['incoming_transfers']['parameters']['query'], | 
|  | 52 | +  pageUrl?: string, | 
|  | 53 | +): Promise<SafeIncomingTransfersResponse> { | 
|  | 54 | +  return callEndpoint( | 
|  | 55 | +    baseUrl, | 
|  | 56 | +    '/v1/chains/{chainId}/safes/{address}/incoming-transfers/', | 
|  | 57 | +    { | 
|  | 58 | +      path: { chainId, address }, | 
|  | 59 | +      query, | 
|  | 60 | +    }, | 
|  | 61 | +    pageUrl, | 
|  | 62 | +  ) | 
|  | 63 | +} | 
|  | 64 | + | 
|  | 65 | +/** | 
|  | 66 | + * Get filterable list of module transactions | 
|  | 67 | + */ | 
|  | 68 | +export function getModuleTransactions( | 
|  | 69 | +  chainId: string, | 
|  | 70 | +  address: string, | 
|  | 71 | +  query?: operations['module_transactions']['parameters']['query'], | 
|  | 72 | +  pageUrl?: string, | 
|  | 73 | +): Promise<SafeModuleTransactionsResponse> { | 
|  | 74 | +  return callEndpoint( | 
|  | 75 | +    baseUrl, | 
|  | 76 | +    '/v1/chains/{chainId}/safes/{address}/module-transactions/', | 
|  | 77 | +    { | 
|  | 78 | +      path: { chainId, address }, | 
|  | 79 | +      query, | 
|  | 80 | +    }, | 
|  | 81 | +    pageUrl, | 
|  | 82 | +  ) | 
|  | 83 | +} | 
|  | 84 | + | 
|  | 85 | +/** | 
|  | 86 | + * Get filterable list of multisig transactions | 
|  | 87 | + */ | 
|  | 88 | +export function getMultisigTransactions( | 
|  | 89 | +  chainId: string, | 
|  | 90 | +  address: string, | 
|  | 91 | +  query?: operations['multisig_transactions']['parameters']['query'], | 
|  | 92 | +  pageUrl?: string, | 
|  | 93 | +): Promise<SafeMultisigTransactionsResponse> { | 
|  | 94 | +  return callEndpoint( | 
|  | 95 | +    baseUrl, | 
|  | 96 | +    '/v1/chains/{chainId}/safes/{address}/multisig-transactions/', | 
|  | 97 | +    { | 
|  | 98 | +      path: { chainId, address }, | 
|  | 99 | +      query, | 
|  | 100 | +    }, | 
|  | 101 | +    pageUrl, | 
|  | 102 | +  ) | 
|  | 103 | +} | 
|  | 104 | + | 
| 36 | 105 | /** | 
| 37 | 106 |  * Get the total balance and all assets stored in a Safe | 
| 38 | 107 |  */ | 
|  | 
0 commit comments