Skip to content

Commit

Permalink
chore: Bump @napi-rs/cli to 2.18.4
Browse files Browse the repository at this point in the history
Closes #621
  • Loading branch information
Xanewok committed Sep 23, 2024
1 parent 2f00bf1 commit 461a557
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
20 changes: 10 additions & 10 deletions crates/edr_napi/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -636,12 +636,12 @@ export interface Withdrawal {
/** The value contained in withdrawal */
amount: bigint
}
export class EdrContext {
export declare class EdrContext {
/**Creates a new [`EdrContext`] instance. Should only be called once! */
constructor()
}
/** A JSON-RPC provider for Ethereum. */
export class Provider {
export declare class Provider {
/**Constructs a new provider with the provided configuration. */
static withConfig(context: EdrContext, config: ProviderConfig, loggerConfig: LoggerConfig, subscriberCallback: (event: SubscriptionEvent) => void): Promise<Provider>
/**Handles a JSON-RPC request and returns a JSON-RPC response. */
Expand All @@ -655,7 +655,7 @@ export class Provider {
*/
setVerboseTracing(verboseTracing: boolean): void
}
export class Response {
export declare class Response {
/** Returns the response data as a JSON string or a JSON object. */
get data(): string | any
get solidityTrace(): RawTrace | null
Expand All @@ -665,13 +665,13 @@ export class Response {
* Opaque handle to the `Bytecode` struct.
* Only used on the JS side by the `VmTraceDecoder` class.
*/
export class BytecodeWrapper { }
export class Exit {
export declare class BytecodeWrapper { }
export declare class Exit {
get kind(): ExitCode
isError(): boolean
getReason(): string
}
export class ReturnData {
export declare class ReturnData {
readonly value: Uint8Array
constructor(value: Uint8Array)
isEmpty(): boolean
Expand All @@ -680,26 +680,26 @@ export class ReturnData {
decodeError(): string
decodePanic(): bigint
}
export class SolidityTracer {
export declare class SolidityTracer {

constructor()
getStackTrace(trace: PrecompileMessageTrace | CallMessageTrace | CreateMessageTrace): SolidityStackTrace
}
export class VmTraceDecoder {
export declare class VmTraceDecoder {
constructor()
addBytecode(bytecode: BytecodeWrapper): void
tryToDecodeMessageTrace(messageTrace: PrecompileMessageTrace | CallMessageTrace | CreateMessageTrace): PrecompileMessageTrace | CallMessageTrace | CreateMessageTrace
getContractAndFunctionNamesForCall(code: Uint8Array, calldata: Uint8Array | undefined): ContractAndFunctionName
}
export type VMTracer = VmTracer
/** N-API bindings for the Rust port of `VMTracer` from Hardhat. */
export class VmTracer {
export declare class VmTracer {
constructor()
/** Observes a trace, collecting information about the execution of the EVM. */
observe(trace: RawTrace): void
getLastTopLevelMessageTrace(): PrecompileMessageTrace | CallMessageTrace | CreateMessageTrace | undefined
getLastError(): Error | undefined
}
export class RawTrace {
export declare class RawTrace {
trace(): Array<TracingMessage | TracingStep | TracingMessageResult>
}
2 changes: 1 addition & 1 deletion crates/edr_napi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@nomicfoundation/edr",
"version": "0.6.1",
"devDependencies": {
"@napi-rs/cli": "^2.18.3",
"@napi-rs/cli": "^2.18.4",
"@types/chai": "^4.2.0",
"@types/chai-as-promised": "^7.1.8",
"@types/mocha": ">=9.1.0",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 461a557

Please sign in to comment.