hardhat
Version:
Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
41 lines • 1.3 kB
TypeScript
import type { Envelope, Event } from "@sentry/core";
export type AnonymizeEnvelopeResult = {
success: true;
envelope: Envelope;
} | {
success: false;
error: string;
};
export type AnonymizeEventResult = {
success: true;
event: Event;
} | {
success: false;
error: string;
};
export declare class Anonymizer {
#private;
constructor(configPath?: string);
/**
* Anonymizes the events in the envelope in place, modifying the envelope.
*/
anonymizeEventsFromEnvelope(envelope: Envelope): Promise<AnonymizeEnvelopeResult>;
/**
* Given a sentry serialized exception
* (https://develop.sentry.dev/sdk/event-payloads/exception/), return an
* anonymized version of the event.
*/
anonymizeEvent(event: Event): Promise<AnonymizeEventResult>;
/**
* Return the anonymized filename and a boolean indicating if the content of
* the file should be anonymized
*/
anonymizeFilename(filename: string): Promise<{
anonymizedFilename: string;
anonymizeContent: boolean;
}>;
anonymizeErrorMessage(errorMessage: string): string;
filterOutEventsWithExceptionsNotRaisedByHardhat(envelope: Envelope): Envelope;
raisedByHardhat(event: Event): boolean;
}
//# sourceMappingURL=anonymizer.d.ts.map