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.20.0-alpha.0 to 3.20.0-alpha.1

8

dist/index.d.ts
import type { operations } from './types/api';
import type { SafeTransactionEstimation, TransactionDetails, TransactionListPage, SafeIncomingTransfersResponse, SafeModuleTransactionsResponse, SafeMultisigTransactionsResponse, NoncesResponse } from './types/transactions';
import type { AllOwnedSafes, FiatCurrencies, OwnedSafes, SafeBalanceResponse, SafeCollectibleResponse, SafeCollectiblesPage } from './types/common';
import type { SafeInfo } from './types/safe-info';
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';

@@ -234,1 +234,5 @@ import type { SafeAppsResponse } from './types/safe-apps';

export declare function unsubscribeAll(query: operations['unsubscribe_all']['parameters']['query']): Promise<void>;
/**
* Get Safe overviews per address
*/
export declare function getSafeOverviews(safes: `${number}:${EthereumAddress}`[], query: Omit<operations['SafesController_getSafeOverview']['parameters']['query'], 'safes'>): Promise<SafeOverview[]>;

@@ -17,3 +17,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.unsubscribeAll = exports.unsubscribeSingle = exports.registerRecoveryModule = exports.deleteRegisteredEmail = exports.getRegisteredEmail = exports.verifyEmail = exports.resendEmailVerificationCode = exports.changeEmail = exports.registerEmail = 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.deleteTransaction = 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.getRelayCount = exports.relayTransaction = exports.setBaseUrl = void 0;
exports.getSafeOverviews = exports.unsubscribeAll = exports.unsubscribeSingle = exports.registerRecoveryModule = exports.deleteRegisteredEmail = exports.getRegisteredEmail = exports.verifyEmail = exports.resendEmailVerificationCode = exports.changeEmail = exports.registerEmail = 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.deleteTransaction = 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.getRelayCount = exports.relayTransaction = exports.setBaseUrl = void 0;
const endpoint_1 = require("./endpoint");

@@ -451,3 +451,12 @@ const config_1 = require("./config");

exports.unsubscribeAll = unsubscribeAll;
/**
* Get Safe overviews per address
*/
function getSafeOverviews(safes, query) {
return (0, endpoint_1.getEndpoint)(baseUrl, '/v1/safes', {
query: Object.assign(Object.assign({}, query), { safes: safes.join(',') }),
});
}
exports.getSafeOverviews = getSafeOverviews;
/* eslint-enable @typescript-eslint/explicit-module-boundary-types */
//# sourceMappingURL=index.js.map
import type { AllOwnedSafes, FiatCurrencies, OwnedSafes, SafeBalanceResponse, SafeCollectibleResponse, SafeCollectiblesPage } from './common';
import type { MultisigTransactionRequest, TransactionDetails, SafeTransactionEstimation, SafeTransactionEstimationRequest, TransactionListPage, SafeIncomingTransfersResponse, SafeModuleTransactionsResponse, SafeMultisigTransactionsResponse, NoncesResponse } from './transactions';
import type { SafeInfo } from './safe-info';
import type { SafeInfo, SafeOverview } from './safe-info';
import type { ChainListResponse, ChainInfo } from './chains';

@@ -384,6 +384,2 @@ import type { SafeAppsResponse } from './safe-apps';

path: null;
query: {
category: string;
token: string;
};
};

@@ -395,7 +391,10 @@ };

path: null;
query: {
token: string;
};
};
};
'/v1/safes': {
get: operations['SafesController_getSafeOverview'];
parameters: {
path: null;
};
};
}

@@ -1080,3 +1079,19 @@ export interface operations {

};
SafesController_getSafeOverview: {
parameters: {
query: {
currency: string;
safes: string;
trusted: boolean;
exclude_spam: boolean;
walletAddress: string;
};
};
responses: {
200: {
schema: SafeOverview[];
};
};
};
}
export {};

@@ -56,1 +56,2 @@ export type AddressEx = {

export type SafeCollectiblesPage = Page<SafeCollectibleResponse>;
export type EthereumAddress = `0x${string}`;

@@ -24,1 +24,10 @@ import type { AddressEx } from './common';

};
export type SafeOverview = {
address: AddressEx;
chainId: string;
threshold: number;
owners: AddressEx[];
fiatTotal: string;
queued: number;
awaitingConfirmation: number;
};
{
"name": "@safe-global/safe-gateway-typescript-sdk",
"version": "3.20.0-alpha.0",
"version": "3.20.0-alpha.1",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

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