-
Notifications
You must be signed in to change notification settings - Fork 2
/
constants.ts
48 lines (40 loc) · 1.08 KB
/
constants.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
38
39
40
41
42
43
44
45
46
47
48
import { BigNumber } from "ethers";
export const DEFAULT_BATCH_SIZE = 50;
export const DUMMY_SET_CODE_BYTES = "0x70657065"; // pepe
export const MAX_PERMYRIAD_FEE = BigNumber.from("10000"); // 100%
export const PERMYRIAD = 10_000; // 100%
export enum FeeType {
FLAT = 0,
PERMYRIAD = 1,
}
export enum PaymentNoFeeType {
MAX = 0,
SPOT = 1,
}
export enum PaymentType {
FLAT = 0,
PERMYRIAD = 1,
}
export enum TaskName {
IMPORT_FILE = "import_file",
SET_STUFF = "set_stuff",
WITHDRAW = "withdraw",
}
export enum TaskExecutionMode {
DRYRUN = "dryrun", // Executed on an instance of Hardhat Network (from the scratch)
FORKING = "forking", // Executed on an instance of Hardhat Network that forks another network
PROD = "prod", // Executed on a network
}
export enum ChainlinkNodeId {
ETH_KOVAN = "eth_kovan",
ETH_GOERLI = "eth_goerli",
ETH_RINKEBY = "eth_rinkeby",
OPT_GOERLI = "opt_goerli",
}
export enum ExternalAdapterId {
// My Adapters
MY_ADAPTER_EXAMPLE = "my_adapter_example",
// Market.link adapters
COINGECKO = "coingecko",
THERUNDOWN = "therundown",
}