-
Notifications
You must be signed in to change notification settings - Fork 1
/
type-extensions.ts
37 lines (35 loc) · 981 Bytes
/
type-extensions.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import "hardhat/types/runtime";
import "hardhat/types/config";
import { Contract, ContractFactory } from "ethers";
import { GasModelProvider, GasModelSigner } from "@lacchain/gas-model-provider";
import { GasModelSignerModified } from "./GasModelModified";
declare module "hardhat/types/config" {
interface HttpNetworkUserConfig {
nodeAddress: string;
expiration: number;
chainId?: number;
from?: string;
gas?: "auto" | number;
gasPrice?: "auto" | number;
gasMultiplier?: number;
url?: string;
timeout?: number;
httpHeaders?: {
[name: string]: string;
};
privateKeys?: string[];
}
}
declare module "hardhat/types/runtime" {
interface HardhatRuntimeEnvironment {
lacchain: {
baseRelayAddress: string;
provider: GasModelProvider;
deployContract: (
contract: ContractFactory,
...params: any
) => Promise<Contract>;
getSigners: () => GasModelSignerModified[];
};
}
}