aave-protocol-v2/modules/tenderly/tenderly.d.ts
2020-11-12 14:12:26 +01:00

33 lines
858 B
TypeScript

import 'hardhat/types/config';
import 'hardhat/types/runtime';
import {TenderlyConfig} from './types';
declare module 'hardhat/types/runtime' {
export interface HardhatRuntimeEnvironment {
tenderly: {
verify: (...contracts) => Promise<void>;
push: (...contracts) => Promise<void>;
persistArtifacts: (...contracts) => Promise<void>;
};
tenderlyRPC: {
verify: (...contracts) => Promise<void>;
resetFork: () => string | undefined;
getHead: () => string | undefined;
setHead: (head: string | undefined) => void;
getFork: () => string | undefined;
setFork: (fork: string | undefined) => void;
};
}
}
declare module 'hardhat/types/config' {
export interface HardhatUserConfig {
tenderly?: TenderlyConfig;
}
export interface HardhatConfig {
tenderly: TenderlyConfig;
}
}