import type { operations } from './types/api'; import type { SafeTransactionEstimation, TransactionDetails, TransactionListPage, SafeIncomingTransfersResponse, SafeModuleTransactionsResponse, SafeMultisigTransactionsResponse, NoncesResponse, TransactionPreview } from './types/transactions'; import type { EthereumAddress, AllOwnedSafes, FiatCurrencies, OwnedSafes, SafeBalanceResponse, SafeCollectibleResponse, SafeCollectiblesPage } from './types/common'; import type { SafeInfo, SafeOverview } from './types/safe-info'; import type { ChainListResponse, ChainInfo } from './types/chains'; import type { SafeAppsResponse } from './types/safe-apps'; import type { MasterCopyReponse } from './types/master-copies'; import type { AnyConfirmationView, DecodedDataResponse } from './types/decoded-data'; import type { SafeMessage, SafeMessageListPage } from './types/safe-messages'; import type { DelegateResponse, DelegatesRequest } from './types/delegates'; import type { GetEmailResponse } from './types/emails'; import type { RelayCountResponse, RelayTransactionResponse } from './types/relay'; import type { Contract } from './types/contracts'; import type { AuthNonce } from './types/auth'; export * from './types/safe-info'; export * from './types/safe-apps'; export * from './types/transactions'; export * from './types/chains'; export * from './types/common'; export * from './types/master-copies'; export * from './types/decoded-data'; export * from './types/safe-messages'; export * from './types/notifications'; export * from './types/relay'; /** * Set the base CGW URL */ export declare const setBaseUrl: (url: string) => void; /** * Relay a transaction from a Safe */ export declare function relayTransaction(chainId: string, body: operations['relay_transaction']['parameters']['body']): Promise; /** * Get the relay limit and number of remaining relays remaining */ export declare function getRelayCount(chainId: string, address: string): Promise; /** * Get basic information about a Safe. E.g. owners, modules, version etc */ export declare function getSafeInfo(chainId: string, address: string): Promise; /** * Get filterable list of incoming transactions */ export declare function getIncomingTransfers(chainId: string, address: string, query?: operations['incoming_transfers']['parameters']['query'], pageUrl?: string): Promise; /** * Get filterable list of module transactions */ export declare function getModuleTransactions(chainId: string, address: string, query?: operations['module_transactions']['parameters']['query'], pageUrl?: string): Promise; /** * Get filterable list of multisig transactions */ export declare function getMultisigTransactions(chainId: string, address: string, query?: operations['multisig_transactions']['parameters']['query'], pageUrl?: string): Promise; /** * Get the total balance and all assets stored in a Safe */ export declare function getBalances(chainId: string, address: string, currency?: string, query?: operations['safes_balances_list']['parameters']['query']): Promise; /** * Get a list of supported fiat currencies (e.g. USD, EUR etc) */ export declare function getFiatCurrencies(): Promise; /** * Get the addresses of all Safes belonging to an owner */ export declare function getOwnedSafes(chainId: string, address: string): Promise; /** * Get the addresses of all Safes belonging to an owner on all chains */ export declare function getAllOwnedSafes(address: string): Promise; /** * Get NFTs stored in a Safe */ export declare function getCollectibles(chainId: string, address: string, query?: operations['safes_collectibles_list']['parameters']['query']): Promise; /** * Get NFTs stored in a Safe */ export declare function getCollectiblesPage(chainId: string, address: string, query?: operations['safes_collectibles_list_paginated']['parameters']['query'], pageUrl?: string): Promise; /** * Get a list of past Safe transactions */ export declare function getTransactionHistory(chainId: string, address: string, query?: operations['history_transactions']['parameters']['query'], pageUrl?: string): Promise; /** * Get the list of pending transactions */ export declare function getTransactionQueue(chainId: string, address: string, query?: operations['queued_transactions']['parameters']['query'], pageUrl?: string): Promise; /** * Get the details of an individual transaction by its id */ export declare function getTransactionDetails(chainId: string, transactionId: string): Promise; /** * Delete a transaction by its safeTxHash */ export declare function deleteTransaction(chainId: string, safeTxHash: string, signature: operations['delete_transaction']['parameters']['body']['signature']): Promise; /** * Request a gas estimate & recommmended tx nonce for a created transaction */ export declare function postSafeGasEstimation(chainId: string, address: string, body: operations['post_safe_gas_estimation']['parameters']['body']): Promise; export declare function getNonces(chainId: string, address: string): Promise; /** * Propose a new transaction for other owners to sign/execute */ export declare function proposeTransaction(chainId: string, address: string, body: operations['propose_transaction']['parameters']['body']): Promise; /** * Returns decoded data */ export declare function getConfirmationView(chainId: string, safeAddress: string, operation: operations['data_decoder']['parameters']['body']['operation'], data: operations['data_decoder']['parameters']['body']['data'], to?: operations['data_decoder']['parameters']['body']['to'], value?: operations['data_decoder']['parameters']['body']['value']): Promise; /** * Get a tx preview */ export declare function getTxPreview(chainId: string, safeAddress: string, operation: operations['data_decoder']['parameters']['body']['operation'], data: operations['data_decoder']['parameters']['body']['data'], to?: operations['data_decoder']['parameters']['body']['to'], value?: operations['data_decoder']['parameters']['body']['value']): Promise; /** * Returns all defined chain configs */ export declare function getChainsConfig(query?: operations['chains_list']['parameters']['query']): Promise; /** * Returns a chain config */ export declare function getChainConfig(chainId: string): Promise; /** * Returns Safe Apps List */ export declare function getSafeApps(chainId: string, query?: operations['safe_apps_read']['parameters']['query']): Promise; /** * Returns list of Master Copies */ export declare function getMasterCopies(chainId: string): Promise; /** * Returns decoded data */ export declare function getDecodedData(chainId: string, operation: operations['data_decoder']['parameters']['body']['operation'], encodedData: operations['data_decoder']['parameters']['body']['data'], to?: operations['data_decoder']['parameters']['body']['to']): Promise; /** * Returns list of `SafeMessage`s */ export declare function getSafeMessages(chainId: string, address: string, pageUrl?: string): Promise; /** * Returns a `SafeMessage` */ export declare function getSafeMessage(chainId: string, messageHash: string): Promise>; /** * Propose a new `SafeMessage` for other owners to sign */ export declare function proposeSafeMessage(chainId: string, address: string, body: operations['propose_safe_message']['parameters']['body']): Promise; /** * Add a confirmation to a `SafeMessage` */ export declare function confirmSafeMessage(chainId: string, messageHash: string, body: operations['confirm_safe_message']['parameters']['body']): Promise; /** * Returns a list of delegates */ export declare function getDelegates(chainId: string, query?: DelegatesRequest): Promise; /** * Registers a device/Safe for notifications */ export declare function registerDevice(body: operations['register_device']['parameters']['body']): Promise; /** * Unregisters a Safe from notifications */ export declare function unregisterSafe(chainId: string, address: string, uuid: string): Promise; /** * Unregisters a device from notifications */ export declare function unregisterDevice(chainId: string, uuid: string): Promise; /** * Registers a email address for a safe signer. * * The signer wallet has to sign a message of format: `email-register-{chainId}-{safeAddress}-{emailAddress}-{signer}-{timestamp}` * The signature is valid for 5 minutes. * * @param chainId * @param safeAddress * @param body Signer address and email address * @param headers Signature and Signature timestamp * @returns 200 if signature matches the data */ export declare function registerEmail(chainId: string, safeAddress: string, body: operations['register_email']['parameters']['body'], headers: operations['register_email']['parameters']['headers']): Promise; /** * Changes an already registered email address for a safe signer. The new email address still needs to be verified. * * The signer wallet has to sign a message of format: `email-edit-{chainId}-{safeAddress}-{emailAddress}-{signer}-{timestamp}` * The signature is valid for 5 minutes. * * @param chainId * @param safeAddress * @param signerAddress * @param body New email address * @param headers Signature and Signature timestamp * @returns 202 if signature matches the data */ export declare function changeEmail(chainId: string, safeAddress: string, signerAddress: string, body: operations['change_email']['parameters']['body'], headers: operations['change_email']['parameters']['headers']): Promise; /** * Resends an email verification code. */ export declare function resendEmailVerificationCode(chainId: string, safeAddress: string, signerAddress: string): Promise; /** * Verifies a pending email address registration. * * @param chainId * @param safeAddress * @param signerAddress address who signed the email registration * @param body Verification code */ export declare function verifyEmail(chainId: string, safeAddress: string, signerAddress: string, body: operations['verify_email']['parameters']['body']): Promise; /** * Gets the registered email address of the signer * * The signer wallet will have to sign a message of format: `email-retrieval-{chainId}-{safe}-{signer}-{timestamp}` * The signature is valid for 5 minutes. * * @param chainId * @param safeAddress * @param signerAddress address of the owner of the Safe * * @returns email address and verified flag */ export declare function getRegisteredEmail(chainId: string, safeAddress: string, signerAddress: string, headers: operations['get_email']['parameters']['headers']): Promise; /** * Delete a registered email address for the signer * * The signer wallet will have to sign a message of format: `email-delete-{chainId}-{safe}-{signer}-{timestamp}` * The signature is valid for 5 minutes. * * @param chainId * @param safeAddress * @param signerAddress * @param headers */ export declare function deleteRegisteredEmail(chainId: string, safeAddress: string, signerAddress: string, headers: operations['delete_email']['parameters']['headers']): Promise; /** * Register a recovery module for receiving alerts * @param chainId * @param safeAddress * @param body - { moduleAddress: string } */ export declare function registerRecoveryModule(chainId: string, safeAddress: string, body: operations['register_recovery_module']['parameters']['body']): Promise; /** * Delete email subscription for a single category * @param query */ export declare function unsubscribeSingle(query: operations['unsubscribe_single']['parameters']['query']): Promise; /** * Delete email subscription for all categories * @param query */ export declare function unsubscribeAll(query: operations['unsubscribe_all']['parameters']['query']): Promise; /** * Get Safe overviews per address */ export declare function getSafeOverviews(safes: `${number}:${EthereumAddress}`[], query: Omit): Promise; export declare function getContract(chainId: string, contractAddress: string): Promise; export declare function getAuthNonce(): Promise; export declare function verifyAuth(body: operations['verify_auth']['parameters']['body']): Promise; export declare function createAccount(body: operations['create_account']['parameters']['body']): Promise; export declare function getAccount(address: string): Promise; export declare function deleteAccount(address: string): Promise; export declare function getAccountDataTypes(): Promise; export declare function getAccountDataSettings(address: string): Promise; export declare function putAccountDataSettings(address: string, body: operations['put_account_data_settings']['parameters']['body']): Promise; export declare function getIndexingStatus(chainId: string): Promise;