@safe-global/safe-gateway-typescript-sdk
Advanced tools
Comparing version 3.21.0-alpha.3 to 3.21.0
@@ -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 {}; |
{ | ||
"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
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
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
124092
63
3015
1