@nomicfoundation/edr 0.9.0 → 0.11.0
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 +10 -8
- package/package.json +12 -12
- package/src/config.rs +4 -1
package/index.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ export interface CallOverrideResult {
|
|
|
70
70
|
shouldRevert: boolean
|
|
71
71
|
}
|
|
72
72
|
/** Identifier for the Ethereum spec. */
|
|
73
|
-
export
|
|
73
|
+
export enum SpecId {
|
|
74
74
|
/** Frontier */
|
|
75
75
|
Frontier = 0,
|
|
76
76
|
/** Frontier Thawing */
|
|
@@ -107,8 +107,10 @@ export const enum SpecId {
|
|
|
107
107
|
Shanghai = 16,
|
|
108
108
|
/** Cancun */
|
|
109
109
|
Cancun = 17,
|
|
110
|
+
/** Prague */
|
|
111
|
+
Prague = 18,
|
|
110
112
|
/** Latest */
|
|
111
|
-
Latest =
|
|
113
|
+
Latest = 19
|
|
112
114
|
}
|
|
113
115
|
export interface DebugTraceResult {
|
|
114
116
|
pass: boolean
|
|
@@ -188,7 +190,7 @@ export interface HardforkActivation {
|
|
|
188
190
|
specId: SpecId
|
|
189
191
|
}
|
|
190
192
|
/**The type of ordering to use when selecting blocks to mine. */
|
|
191
|
-
export
|
|
193
|
+
export enum MineOrdering {
|
|
192
194
|
/**Insertion order */
|
|
193
195
|
Fifo = 'Fifo',
|
|
194
196
|
/**Effective miner fee */
|
|
@@ -282,7 +284,7 @@ export interface BuildInfoAndOutput {
|
|
|
282
284
|
output: Uint8Array
|
|
283
285
|
}
|
|
284
286
|
/** The possible reasons for successful termination of the EVM. */
|
|
285
|
-
export
|
|
287
|
+
export enum SuccessReason {
|
|
286
288
|
/** The opcode `STOP` was called */
|
|
287
289
|
Stop = 0,
|
|
288
290
|
/** The opcode `RETURN` was called */
|
|
@@ -325,7 +327,7 @@ export interface RevertResult {
|
|
|
325
327
|
* Indicates that the EVM has experienced an exceptional halt. This causes
|
|
326
328
|
* execution to immediately end with all gas being consumed.
|
|
327
329
|
*/
|
|
328
|
-
export
|
|
330
|
+
export enum ExceptionalHalt {
|
|
329
331
|
OutOfGas = 0,
|
|
330
332
|
OpcodeNotFound = 1,
|
|
331
333
|
InvalidFEOpcode = 2,
|
|
@@ -376,7 +378,7 @@ export interface SubscriptionEvent {
|
|
|
376
378
|
export declare function linkHexStringBytecode(code: string, address: string, position: number): string
|
|
377
379
|
export declare function printStackTrace(trace: SolidityStackTrace): void
|
|
378
380
|
/** Represents the exit code of the EVM. */
|
|
379
|
-
export
|
|
381
|
+
export enum ExitCode {
|
|
380
382
|
/** Execution was successful. */
|
|
381
383
|
SUCCESS = 0,
|
|
382
384
|
/** Execution was reverted. */
|
|
@@ -396,7 +398,7 @@ export const enum ExitCode {
|
|
|
396
398
|
/** Unknown halt reason. */
|
|
397
399
|
UNKNOWN_HALT_REASON = 8
|
|
398
400
|
}
|
|
399
|
-
export
|
|
401
|
+
export enum ContractFunctionType {
|
|
400
402
|
CONSTRUCTOR = 0,
|
|
401
403
|
FUNCTION = 1,
|
|
402
404
|
FALLBACK = 2,
|
|
@@ -405,7 +407,7 @@ export const enum ContractFunctionType {
|
|
|
405
407
|
MODIFIER = 5,
|
|
406
408
|
FREE_FUNCTION = 6
|
|
407
409
|
}
|
|
408
|
-
export
|
|
410
|
+
export enum StackTraceEntryType {
|
|
409
411
|
CALLSTACK_ENTRY = 0,
|
|
410
412
|
UNRECOGNIZED_CREATE_CALLSTACK_ENTRY = 1,
|
|
411
413
|
UNRECOGNIZED_CONTRACT_CALLSTACK_ENTRY = 2,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomicfoundation/edr",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"@napi-rs/cli": "^2.18.4",
|
|
6
6
|
"@types/chai": "^4.2.0",
|
|
@@ -52,20 +52,20 @@
|
|
|
52
52
|
"repository": "NomicFoundation/edr.git",
|
|
53
53
|
"types": "index.d.ts",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@nomicfoundation/edr-darwin-arm64": "0.
|
|
56
|
-
"@nomicfoundation/edr-darwin-x64": "0.
|
|
57
|
-
"@nomicfoundation/edr-linux-arm64-gnu": "0.
|
|
58
|
-
"@nomicfoundation/edr-linux-arm64-musl": "0.
|
|
59
|
-
"@nomicfoundation/edr-linux-x64-gnu": "0.
|
|
60
|
-
"@nomicfoundation/edr-linux-x64-musl": "0.
|
|
61
|
-
"@nomicfoundation/edr-win32-x64-msvc": "0.
|
|
55
|
+
"@nomicfoundation/edr-darwin-arm64": "0.11.0",
|
|
56
|
+
"@nomicfoundation/edr-darwin-x64": "0.11.0",
|
|
57
|
+
"@nomicfoundation/edr-linux-arm64-gnu": "0.11.0",
|
|
58
|
+
"@nomicfoundation/edr-linux-arm64-musl": "0.11.0",
|
|
59
|
+
"@nomicfoundation/edr-linux-x64-gnu": "0.11.0",
|
|
60
|
+
"@nomicfoundation/edr-linux-x64-musl": "0.11.0",
|
|
61
|
+
"@nomicfoundation/edr-win32-x64-msvc": "0.11.0"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"artifacts": "napi artifacts",
|
|
65
|
-
"build": "napi build --platform --release",
|
|
66
|
-
"build:debug": "napi build --platform",
|
|
67
|
-
"build:scenarios": "napi build --platform --release --features scenarios",
|
|
68
|
-
"build:tracing": "napi build --platform --release --features tracing",
|
|
65
|
+
"build": "napi build --platform --release --no-const-enum",
|
|
66
|
+
"build:debug": "napi build --platform --no-const-enum",
|
|
67
|
+
"build:scenarios": "napi build --platform --release --no-const-enum --features scenarios",
|
|
68
|
+
"build:tracing": "napi build --platform --release --no-const-enum --features tracing",
|
|
69
69
|
"clean": "rm -rf @nomicfoundation/edr.node",
|
|
70
70
|
"eslint": "eslint 'test/**/*.ts'",
|
|
71
71
|
"lint": "pnpm run prettier && pnpm run eslint",
|
package/src/config.rs
CHANGED
|
@@ -39,8 +39,10 @@ pub enum SpecId {
|
|
|
39
39
|
Shanghai = 16,
|
|
40
40
|
/// Cancun
|
|
41
41
|
Cancun = 17,
|
|
42
|
+
/// Prague
|
|
43
|
+
Prague = 18,
|
|
42
44
|
/// Latest
|
|
43
|
-
Latest =
|
|
45
|
+
Latest = 19,
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
impl From<SpecId> for edr_evm::SpecId {
|
|
@@ -64,6 +66,7 @@ impl From<SpecId> for edr_evm::SpecId {
|
|
|
64
66
|
SpecId::Merge => edr_evm::SpecId::MERGE,
|
|
65
67
|
SpecId::Shanghai => edr_evm::SpecId::SHANGHAI,
|
|
66
68
|
SpecId::Cancun => edr_evm::SpecId::CANCUN,
|
|
69
|
+
SpecId::Prague => edr_evm::SpecId::PRAGUE,
|
|
67
70
|
SpecId::Latest => edr_evm::SpecId::LATEST,
|
|
68
71
|
}
|
|
69
72
|
}
|