Socket
Socket
Sign inDemoInstall

@safe-global/safe-gateway-typescript-sdk

Package Overview
Dependencies
Maintainers
2
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@safe-global/safe-gateway-typescript-sdk - npm Package Compare versions

Comparing version 3.14.0 to 3.14.1-alpha.0

6

dist/index.d.ts
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",

8

dist/types/safe-info.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc