@safe-global/safe-gateway-typescript-sdk
Advanced tools
Comparing version 3.14.0 to 3.14.1-alpha.0
import type { operations } from './types/api'; | ||
import type { SafeTransactionEstimation, TransactionDetails, TransactionListPage, SafeIncomingTransfersResponse, SafeModuleTransactionsResponse, SafeMultisigTransactionsResponse, NoncesResponse } from './types/transactions'; | ||
import type { FiatCurrencies, OwnedSafes, SafeBalanceResponse, SafeCollectibleResponse, SafeCollectiblesPage } from './types/common'; | ||
import type { AllOwnedSafes, FiatCurrencies, OwnedSafes, SafeBalanceResponse, SafeCollectibleResponse, SafeCollectiblesPage } from './types/common'; | ||
import type { SafeInfo } from './types/safe-info'; | ||
@@ -53,2 +53,6 @@ import type { ChainListResponse, ChainInfo } from './types/chains'; | ||
/** | ||
* Get the addresses of all Safes belonging to an owner on all chains | ||
*/ | ||
export declare function getAllOwnedSafes(address: string): Promise<AllOwnedSafes>; | ||
/** | ||
* Get NFTs stored in a Safe | ||
@@ -55,0 +59,0 @@ */ |
@@ -17,3 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.unregisterDevice = exports.unregisterSafe = exports.registerDevice = exports.getDelegates = exports.confirmSafeMessage = exports.proposeSafeMessage = exports.getSafeMessage = exports.getSafeMessages = exports.getDecodedData = exports.getMasterCopies = exports.getSafeApps = exports.getChainConfig = exports.getChainsConfig = exports.proposeTransaction = exports.getNonces = exports.postSafeGasEstimation = exports.getTransactionDetails = exports.getTransactionQueue = exports.getTransactionHistory = exports.getCollectiblesPage = exports.getCollectibles = exports.getOwnedSafes = exports.getFiatCurrencies = exports.getBalances = exports.getMultisigTransactions = exports.getModuleTransactions = exports.getIncomingTransfers = exports.getSafeInfo = exports.setBaseUrl = void 0; | ||
exports.unregisterDevice = exports.unregisterSafe = exports.registerDevice = exports.getDelegates = exports.confirmSafeMessage = exports.proposeSafeMessage = exports.getSafeMessage = exports.getSafeMessages = exports.getDecodedData = exports.getMasterCopies = exports.getSafeApps = exports.getChainConfig = exports.getChainsConfig = exports.proposeTransaction = exports.getNonces = exports.postSafeGasEstimation = exports.getTransactionDetails = exports.getTransactionQueue = exports.getTransactionHistory = exports.getCollectiblesPage = exports.getCollectibles = exports.getAllOwnedSafes = exports.getOwnedSafes = exports.getFiatCurrencies = exports.getBalances = exports.getMultisigTransactions = exports.getModuleTransactions = exports.getIncomingTransfers = exports.getSafeInfo = exports.setBaseUrl = void 0; | ||
const endpoint_1 = require("./endpoint"); | ||
@@ -102,2 +102,9 @@ const config_1 = require("./config"); | ||
/** | ||
* Get the addresses of all Safes belonging to an owner on all chains | ||
*/ | ||
function getAllOwnedSafes(address) { | ||
return (0, endpoint_1.getEndpoint)(baseUrl, '/v1/owners/{address}/safes', { path: { address } }); | ||
} | ||
exports.getAllOwnedSafes = getAllOwnedSafes; | ||
/** | ||
* Get NFTs stored in a Safe | ||
@@ -104,0 +111,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
import type { FiatCurrencies, OwnedSafes, SafeBalanceResponse, SafeCollectibleResponse, SafeCollectiblesPage } from './common'; | ||
import type { AllOwnedSafes, FiatCurrencies, OwnedSafes, SafeBalanceResponse, SafeCollectibleResponse, SafeCollectiblesPage } from './common'; | ||
import type { MultisigTransactionRequest, TransactionDetails, SafeTransactionEstimation, SafeTransactionEstimationRequest, TransactionListPage, SafeIncomingTransfersResponse, SafeModuleTransactionsResponse, SafeMultisigTransactionsResponse, NoncesResponse } from './transactions'; | ||
@@ -188,2 +188,10 @@ import type { SafeInfo } from './safe-info'; | ||
}; | ||
'/v1/owners/{address}/safes': { | ||
get: operations['get_all_owned_safes']; | ||
parameters: { | ||
path: { | ||
address: string; | ||
}; | ||
}; | ||
}; | ||
'/v1/chains': { | ||
@@ -573,2 +581,14 @@ get: operations['chains_list']; | ||
}; | ||
get_all_owned_safes: { | ||
parameters: { | ||
path: { | ||
address: string; | ||
}; | ||
}; | ||
responses: { | ||
200: { | ||
schema: AllOwnedSafes; | ||
}; | ||
}; | ||
}; | ||
chains_list: { | ||
@@ -575,0 +595,0 @@ parameters: { |
@@ -10,2 +10,3 @@ export type AddressEx = { | ||
}; | ||
export type AllOwnedSafes = Record<string, string[]>; | ||
export declare enum TokenType { | ||
@@ -12,0 +13,0 @@ ERC20 = "ERC20", |
@@ -19,6 +19,6 @@ import type { AddressEx } from './common'; | ||
version: string | null; | ||
collectiblesTag: string; | ||
txQueuedTag: string; | ||
txHistoryTag: string; | ||
messagesTag: string; | ||
collectiblesTag: string | null; | ||
txQueuedTag: string | null; | ||
txHistoryTag: string | null; | ||
messagesTag: string | null; | ||
}; |
{ | ||
"name": "@safe-global/safe-gateway-typescript-sdk", | ||
"version": "3.14.0", | ||
"version": "3.14.1-alpha.0", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92738
2238
2