@nomicfoundation/edr 0.10.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 +7 -7
- package/package.json +12 -12
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 */
|
|
@@ -190,7 +190,7 @@ export interface HardforkActivation {
|
|
|
190
190
|
specId: SpecId
|
|
191
191
|
}
|
|
192
192
|
/**The type of ordering to use when selecting blocks to mine. */
|
|
193
|
-
export
|
|
193
|
+
export enum MineOrdering {
|
|
194
194
|
/**Insertion order */
|
|
195
195
|
Fifo = 'Fifo',
|
|
196
196
|
/**Effective miner fee */
|
|
@@ -284,7 +284,7 @@ export interface BuildInfoAndOutput {
|
|
|
284
284
|
output: Uint8Array
|
|
285
285
|
}
|
|
286
286
|
/** The possible reasons for successful termination of the EVM. */
|
|
287
|
-
export
|
|
287
|
+
export enum SuccessReason {
|
|
288
288
|
/** The opcode `STOP` was called */
|
|
289
289
|
Stop = 0,
|
|
290
290
|
/** The opcode `RETURN` was called */
|
|
@@ -327,7 +327,7 @@ export interface RevertResult {
|
|
|
327
327
|
* Indicates that the EVM has experienced an exceptional halt. This causes
|
|
328
328
|
* execution to immediately end with all gas being consumed.
|
|
329
329
|
*/
|
|
330
|
-
export
|
|
330
|
+
export enum ExceptionalHalt {
|
|
331
331
|
OutOfGas = 0,
|
|
332
332
|
OpcodeNotFound = 1,
|
|
333
333
|
InvalidFEOpcode = 2,
|
|
@@ -378,7 +378,7 @@ export interface SubscriptionEvent {
|
|
|
378
378
|
export declare function linkHexStringBytecode(code: string, address: string, position: number): string
|
|
379
379
|
export declare function printStackTrace(trace: SolidityStackTrace): void
|
|
380
380
|
/** Represents the exit code of the EVM. */
|
|
381
|
-
export
|
|
381
|
+
export enum ExitCode {
|
|
382
382
|
/** Execution was successful. */
|
|
383
383
|
SUCCESS = 0,
|
|
384
384
|
/** Execution was reverted. */
|
|
@@ -398,7 +398,7 @@ export const enum ExitCode {
|
|
|
398
398
|
/** Unknown halt reason. */
|
|
399
399
|
UNKNOWN_HALT_REASON = 8
|
|
400
400
|
}
|
|
401
|
-
export
|
|
401
|
+
export enum ContractFunctionType {
|
|
402
402
|
CONSTRUCTOR = 0,
|
|
403
403
|
FUNCTION = 1,
|
|
404
404
|
FALLBACK = 2,
|
|
@@ -407,7 +407,7 @@ export const enum ContractFunctionType {
|
|
|
407
407
|
MODIFIER = 5,
|
|
408
408
|
FREE_FUNCTION = 6
|
|
409
409
|
}
|
|
410
|
-
export
|
|
410
|
+
export enum StackTraceEntryType {
|
|
411
411
|
CALLSTACK_ENTRY = 0,
|
|
412
412
|
UNRECOGNIZED_CREATE_CALLSTACK_ENTRY = 1,
|
|
413
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",
|