@tenderly/sdk
Advanced tools
Comparing version 0.1.13 to 0.1.14
@@ -179,26 +179,7 @@ import axios, { AxiosResponse, AxiosError } from 'axios'; | ||
}>; | ||
settings: { | ||
optimizer?: { | ||
enabled: boolean; | ||
runs?: number; | ||
}; | ||
libraries?: Record<Path, Record<string, Web3Address>>; | ||
}; | ||
settings: unknown; | ||
}; | ||
type TenderlySolcConfig = { | ||
version: SolidityCompilerVersions; | ||
settings: { | ||
optimizer?: { | ||
enabled: boolean; | ||
runs?: number; | ||
}; | ||
libraries?: { | ||
[fileName: string]: { | ||
addresses: { | ||
[libName: string]: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
type TenderlySolcConfigLibraries = Record<string, { | ||
addresses: Record<string, string>; | ||
}>; | ||
type VerificationRequest = { | ||
@@ -380,5 +361,5 @@ contractToVerify: string; | ||
}>; | ||
_repackLibraries(solcConfig: SolcConfig): TenderlySolcConfig; | ||
_repackLibraries(solcConfig: SolcConfig): SolcConfig; | ||
_isFullyQualifiedContractName(contractName: string): boolean; | ||
_copySolcConfigToTenderlySolcConfig(solcConfig: SolcConfig): TenderlySolcConfig; | ||
_copySolcConfigToTenderlySolcConfig(solcConfig: SolcConfig): SolcConfig; | ||
} | ||
@@ -778,2 +759,2 @@ | ||
export { ApiError, BytecodeMismatchErrorResponse, CompilationErrorResponse, Contract, ContractRequest, ContractResponse, EncodeStateRequest, EncodedStateOverride, GeneralError, GetByParams, InvalidArgumentsError, Network, NotFoundError, Path, RawEvent, SimulateBundleResponse, SimulateSimpleResponse, SimulateSimpleResponse_TraceResponse, SimulationBundleDetails, SimulationBundleRequest, SimulationCallArguments, SimulationOutput, SimulationParameters, SimulationParametersOverrides, SimulationRequest, SimulationRequestOverrides, SolcConfig, SolidityCompilerVersions, StateOverride, Tenderly, TenderlyConfiguration, TenderlyContract, TenderlyError, TenderlySolcConfig, TenderlyWallet, TransactionParameters, UpdateContractRequest, UpdateWalletRequest, VerificationRequest, VerificationResponse, Wallet, WalletRequest, WalletResponse, Web3Address, WithRequired, handleError }; | ||
export { ApiError, BytecodeMismatchErrorResponse, CompilationErrorResponse, Contract, ContractRequest, ContractResponse, EncodeStateRequest, EncodedStateOverride, GeneralError, GetByParams, InvalidArgumentsError, Network, NotFoundError, Path, RawEvent, SimulateBundleResponse, SimulateSimpleResponse, SimulateSimpleResponse_TraceResponse, SimulationBundleDetails, SimulationBundleRequest, SimulationCallArguments, SimulationOutput, SimulationParameters, SimulationParametersOverrides, SimulationRequest, SimulationRequestOverrides, SolcConfig, SolidityCompilerVersions, StateOverride, Tenderly, TenderlyConfiguration, TenderlyContract, TenderlyError, TenderlySolcConfigLibraries, TenderlyWallet, TransactionParameters, UpdateContractRequest, UpdateWalletRequest, VerificationRequest, VerificationResponse, Wallet, WalletRequest, WalletResponse, Web3Address, WithRequired, handleError }; |
@@ -509,9 +509,9 @@ var __create = Object.create; | ||
_repackLibraries(solcConfig) { | ||
var _a; | ||
const tenderlySolcConfig = this._copySolcConfigToTenderlySolcConfig(solcConfig); | ||
if (!((_a = solcConfig == null ? void 0 : solcConfig.settings) == null ? void 0 : _a.libraries)) { | ||
const solcConfigSettings = solcConfig.settings; | ||
if (!solcConfigSettings.libraries) { | ||
return tenderlySolcConfig; | ||
} | ||
const libraries = {}; | ||
for (const [fileName, libVal] of Object.entries(solcConfig.settings.libraries)) { | ||
for (const [fileName, libVal] of Object.entries(solcConfigSettings.libraries)) { | ||
if (libraries[fileName] === void 0) { | ||
@@ -534,7 +534,7 @@ libraries[fileName] = { | ||
_copySolcConfigToTenderlySolcConfig(solcConfig) { | ||
const _a = solcConfig.settings, { libraries: _ } = _a, settings = __objRest(_a, ["libraries"]); | ||
return { | ||
sources: void 0, | ||
version: solcConfig.version, | ||
settings: { | ||
optimizer: solcConfig.settings.optimizer | ||
} | ||
settings | ||
}; | ||
@@ -1019,3 +1019,3 @@ } | ||
// lib/sdkVersion.ts | ||
var TENDERLY_SDK_VERSION = "0.1.13"; | ||
var TENDERLY_SDK_VERSION = "0.1.14"; | ||
@@ -1022,0 +1022,0 @@ // lib/core/ApiClient.ts |
{ | ||
"name": "@tenderly/sdk", | ||
"version": "0.1.13", | ||
"version": "0.1.14", | ||
"description": "Tenderly SDK", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
114797
3124