@nomicfoundation/edr 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +19 -0
- package/index.js +2 -1
- package/package.json +9 -9
package/index.d.ts
CHANGED
|
@@ -246,6 +246,16 @@ export interface HardforkActivationByTimestamp {
|
|
|
246
246
|
/** The timestamp at which the hardfork is activated */
|
|
247
247
|
timestamp: bigint
|
|
248
248
|
}
|
|
249
|
+
/** Controls the gas estimation strategy used by `eth_estimateGas`. */
|
|
250
|
+
export enum GasEstimationMode {
|
|
251
|
+
/** Estimates the minimum gas required for the top-level call to succeed. */
|
|
252
|
+
TopLevelSuccess = 0,
|
|
253
|
+
/**
|
|
254
|
+
* Estimates the minimum gas required for the top-level call to succeed
|
|
255
|
+
* without any internal sub-call running out of gas.
|
|
256
|
+
*/
|
|
257
|
+
NoInternalOutOfGas = 1
|
|
258
|
+
}
|
|
249
259
|
/**The type of ordering to use when selecting blocks to mine. */
|
|
250
260
|
export enum MineOrdering {
|
|
251
261
|
/**Insertion order */
|
|
@@ -331,6 +341,11 @@ export interface ProviderConfig {
|
|
|
331
341
|
* requests that do not specify a `gas` value.
|
|
332
342
|
*/
|
|
333
343
|
defaultTransactionGasLimit: bigint
|
|
344
|
+
/**
|
|
345
|
+
* The gas estimation mode to use for `eth_estimateGas`. Defaults to
|
|
346
|
+
* `GasEstimationMode::TopLevelSuccess` if not set.
|
|
347
|
+
*/
|
|
348
|
+
gasEstimationMode?: GasEstimationMode
|
|
334
349
|
/** The genesis state of the blockchain */
|
|
335
350
|
genesisState: Array<AccountOverride>
|
|
336
351
|
/** The hardfork of the blockchain */
|
|
@@ -544,6 +559,8 @@ export interface SuccessResult {
|
|
|
544
559
|
export interface RevertResult {
|
|
545
560
|
/** The amount of gas used */
|
|
546
561
|
gasUsed: bigint
|
|
562
|
+
/** The logs */
|
|
563
|
+
logs: Array<ExecutionLog>
|
|
547
564
|
/** The transaction output */
|
|
548
565
|
output: Uint8Array
|
|
549
566
|
}
|
|
@@ -579,6 +596,8 @@ export interface HaltResult {
|
|
|
579
596
|
* gas limit
|
|
580
597
|
*/
|
|
581
598
|
gasUsed: bigint
|
|
599
|
+
/** The logs */
|
|
600
|
+
logs: Array<ExecutionLog>
|
|
582
601
|
}
|
|
583
602
|
/** The result of executing a transaction. */
|
|
584
603
|
export interface ExecutionResult {
|
package/index.js
CHANGED
|
@@ -310,7 +310,7 @@ if (!nativeBinding) {
|
|
|
310
310
|
throw new Error(`Failed to load native binding`)
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
const { GENERIC_CHAIN_TYPE, genericChainProviderFactory, L1_CHAIN_TYPE, l1GenesisState, l1ProviderFactory, SpecId, l1HardforkFromString, l1HardforkToString, l1HardforkLatest, FRONTIER, FRONTIER_THAWING, HOMESTEAD, DAO_FORK, TANGERINE, SPURIOUS_DRAGON, BYZANTIUM, CONSTANTINOPLE, PETERSBURG, ISTANBUL, MUIR_GLACIER, BERLIN, LONDON, ARROW_GLACIER, GRAY_GLACIER, MERGE, SHANGHAI, CANCUN, PRAGUE, OSAKA, OpHardfork, opHardforkFromString, opHardforkToString, opLatestHardfork, OP_CHAIN_TYPE, opGenesisState, opProviderFactory, BEDROCK, REGOLITH, CANYON, ECOTONE, FJORD, GRANITE, HOLOCENE, ISTHMUS, MineOrdering, EdrContext, ContractDecoder, GasReportExecutionStatus, COVERAGE_LIBRARY_FILE_NAME, addStatementCoverageInstrumentation, latestSupportedSolidityVersion, Precompile, precompileP256Verify, ProviderFactory, Response, Provider, SuccessReason, ExceptionalHalt, CheatcodeErrorCode, CachedChains, CachedEndpoints, FsAccessPermission, CollectStackTraces, IncludeTraces, SolidityTestRunnerFactory, l1SolidityTestRunnerFactory, opSolidityTestRunnerFactory, SuiteResult, TestResult, TestStatus, CallKind, LogKind, linkHexStringBytecode, printStackTrace, Exit, ExitCode, BytecodeWrapper, ContractFunctionType, ReturnData, StackTraceEntryType, stackTraceEntryTypeToString, FALLBACK_FUNCTION_NAME, RECEIVE_FUNCTION_NAME, CONSTRUCTOR_FUNCTION_NAME, UNRECOGNIZED_FUNCTION_NAME, UNKNOWN_FUNCTION_NAME, PRECOMPILE_FUNCTION_NAME, UNRECOGNIZED_CONTRACT_NAME, RawTrace } = nativeBinding
|
|
313
|
+
const { GENERIC_CHAIN_TYPE, genericChainProviderFactory, L1_CHAIN_TYPE, l1GenesisState, l1ProviderFactory, SpecId, l1HardforkFromString, l1HardforkToString, l1HardforkLatest, FRONTIER, FRONTIER_THAWING, HOMESTEAD, DAO_FORK, TANGERINE, SPURIOUS_DRAGON, BYZANTIUM, CONSTANTINOPLE, PETERSBURG, ISTANBUL, MUIR_GLACIER, BERLIN, LONDON, ARROW_GLACIER, GRAY_GLACIER, MERGE, SHANGHAI, CANCUN, PRAGUE, OSAKA, OpHardfork, opHardforkFromString, opHardforkToString, opLatestHardfork, OP_CHAIN_TYPE, opGenesisState, opProviderFactory, BEDROCK, REGOLITH, CANYON, ECOTONE, FJORD, GRANITE, HOLOCENE, ISTHMUS, GasEstimationMode, MineOrdering, EdrContext, ContractDecoder, GasReportExecutionStatus, COVERAGE_LIBRARY_FILE_NAME, addStatementCoverageInstrumentation, latestSupportedSolidityVersion, Precompile, precompileP256Verify, ProviderFactory, Response, Provider, SuccessReason, ExceptionalHalt, CheatcodeErrorCode, CachedChains, CachedEndpoints, FsAccessPermission, CollectStackTraces, IncludeTraces, SolidityTestRunnerFactory, l1SolidityTestRunnerFactory, opSolidityTestRunnerFactory, SuiteResult, TestResult, TestStatus, CallKind, LogKind, linkHexStringBytecode, printStackTrace, Exit, ExitCode, BytecodeWrapper, ContractFunctionType, ReturnData, StackTraceEntryType, stackTraceEntryTypeToString, FALLBACK_FUNCTION_NAME, RECEIVE_FUNCTION_NAME, CONSTRUCTOR_FUNCTION_NAME, UNRECOGNIZED_FUNCTION_NAME, UNKNOWN_FUNCTION_NAME, PRECOMPILE_FUNCTION_NAME, UNRECOGNIZED_CONTRACT_NAME, RawTrace } = nativeBinding
|
|
314
314
|
|
|
315
315
|
module.exports.GENERIC_CHAIN_TYPE = GENERIC_CHAIN_TYPE
|
|
316
316
|
module.exports.genericChainProviderFactory = genericChainProviderFactory
|
|
@@ -356,6 +356,7 @@ module.exports.FJORD = FJORD
|
|
|
356
356
|
module.exports.GRANITE = GRANITE
|
|
357
357
|
module.exports.HOLOCENE = HOLOCENE
|
|
358
358
|
module.exports.ISTHMUS = ISTHMUS
|
|
359
|
+
module.exports.GasEstimationMode = GasEstimationMode
|
|
359
360
|
module.exports.MineOrdering = MineOrdering
|
|
360
361
|
module.exports.EdrContext = EdrContext
|
|
361
362
|
module.exports.ContractDecoder = ContractDecoder
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomicfoundation/edr",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"@napi-rs/cli": "^2.18.4",
|
|
6
6
|
"@nomicfoundation/ethereumjs-util": "^9.0.4",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"eslint-config-prettier": "9.1.2",
|
|
19
19
|
"eslint-plugin-import": "2.32.0",
|
|
20
20
|
"eslint-plugin-mocha": "10.5.0",
|
|
21
|
-
"eslint-plugin-prettier": "5.5.
|
|
21
|
+
"eslint-plugin-prettier": "5.5.6",
|
|
22
22
|
"ethers": "^6.1.0",
|
|
23
23
|
"json-stream-stringify": "^3.1.4",
|
|
24
24
|
"mocha": "^10.0.0",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
"repository": "NomicFoundation/edr.git",
|
|
60
60
|
"types": "index.d.ts",
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@nomicfoundation/edr-darwin-arm64": "0.12.
|
|
63
|
-
"@nomicfoundation/edr-darwin-x64": "0.12.
|
|
64
|
-
"@nomicfoundation/edr-linux-arm64-gnu": "0.12.
|
|
65
|
-
"@nomicfoundation/edr-linux-arm64-musl": "0.12.
|
|
66
|
-
"@nomicfoundation/edr-linux-x64-gnu": "0.12.
|
|
67
|
-
"@nomicfoundation/edr-linux-x64-musl": "0.12.
|
|
68
|
-
"@nomicfoundation/edr-win32-x64-msvc": "0.12.
|
|
62
|
+
"@nomicfoundation/edr-darwin-arm64": "0.12.1",
|
|
63
|
+
"@nomicfoundation/edr-darwin-x64": "0.12.1",
|
|
64
|
+
"@nomicfoundation/edr-linux-arm64-gnu": "0.12.1",
|
|
65
|
+
"@nomicfoundation/edr-linux-arm64-musl": "0.12.1",
|
|
66
|
+
"@nomicfoundation/edr-linux-x64-gnu": "0.12.1",
|
|
67
|
+
"@nomicfoundation/edr-linux-x64-musl": "0.12.1",
|
|
68
|
+
"@nomicfoundation/edr-win32-x64-msvc": "0.12.1"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"artifacts": "napi artifacts",
|