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.21.0-alpha.3 to 3.21.0

dist/types/contracts.d.ts

2

dist/index.d.ts

@@ -13,2 +13,3 @@ import type { operations } from './types/api';

import type { RelayCountResponse, RelayTransactionResponse } from './types/relay';
import type { Contract } from './types/contracts';
export * from './types/safe-info';

@@ -243,1 +244,2 @@ export * from './types/safe-apps';

export declare function getSafeOverviews(safes: `${number}:${EthereumAddress}`[], query: Omit<operations['SafesController_getSafeOverview']['parameters']['query'], 'safes'>): Promise<SafeOverview[]>;
export declare function getContract(chainId: string, contractAddress: string): Promise<Contract>;

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

Object.defineProperty(exports, "__esModule", { value: true });
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.getConfirmationView = 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.getContract = 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.getConfirmationView = 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");

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

exports.getSafeOverviews = getSafeOverviews;
function getContract(chainId, contractAddress) {
return (0, endpoint_1.getEndpoint)(baseUrl, '/v1/chains/{chainId}/contracts/{contractAddress}', {
path: {
chainId: chainId,
contractAddress: contractAddress,
},
});
}
exports.getContract = getContract;
/* eslint-enable @typescript-eslint/explicit-module-boundary-types */
//# sourceMappingURL=index.js.map

@@ -14,2 +14,3 @@ import type { AllOwnedSafes, FiatCurrencies, OwnedSafes, SafeBalanceResponse, SafeCollectibleResponse, SafeCollectiblesPage } from './common';

import type { RegisterRecoveryModuleRequestBody } from './recovery';
import type { Contract } from './contracts';
export type Primitive = string | number | boolean | null;

@@ -408,2 +409,11 @@ interface Params {

};
'/v1/chains/{chainId}/contracts/{contractAddress}': {
get: operations['get_contract'];
parameters: {
path: {
chainId: string;
contractAddress: string;
};
};
};
}

@@ -1119,3 +1129,16 @@ export interface operations {

};
get_contract: {
parameters: {
path: {
chainId: string;
contractAddress: string;
};
};
responses: {
200: {
schema: Contract;
};
};
};
}
export {};

2

package.json
{
"name": "@safe-global/safe-gateway-typescript-sdk",
"version": "3.21.0-alpha.3",
"version": "3.21.0",
"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