-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathglobal.ts
83 lines (66 loc) · 3.16 KB
/
global.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import { ethers } from 'ethers';
import ganache from 'ganache-core';
import { EraSwapToken } from '../build/typechain/ETH/EraSwapToken';
import { PlasmaManager } from '../build/typechain/ETH/PlasmaManager';
import { FundsManagerEth } from '../build/typechain/ETH/FundsManagerEth';
import { ReversePlasma } from '../build/typechain/ESN/ReversePlasma';
import { FundsManagerEsn } from '../build/typechain/ESN/FundsManagerEsn';
import { PrepaidEs } from '../build/typechain/ESN/PrepaidEs';
import { NrtManager } from '../build/typechain/ESN/NrtManager';
import { TimeAllyManager } from '../build/typechain/ESN/TimeAllyManager';
import { TimeAllyStaking } from '../build/typechain/ESN/TimeAllyStaking';
import { TimeAllyClub } from '../build/typechain/ESN/TimeAllyClub';
import { TimeAllyPromotionalBucket } from '../build/typechain/ESN/TimeAllyPromotionalBucket';
import { ValidatorSet } from '../build/typechain/ESN/ValidatorSet';
import { BlockReward } from '../build/typechain/ESN/BlockReward';
import { ValidatorManager } from '../build/typechain/ESN/ValidatorManager';
import { RandomnessManager } from '../build/typechain/ESN/RandomnessManager';
import { DayswappersWithMigration } from '../build/typechain/ESN/DayswappersWithMigration';
import { KycDapp } from '../build/typechain/ESN/KycDapp';
import { BetDeEx } from '../build/typechain/ESN/BetDeEx';
import { Bet } from '../build/typechain/ESN/Bet';
import { SurveyDapp } from '../build/typechain/ESN/SurveyDapp';
import { CharityDapp } from '../build/typechain/ESN/CharityDapp';
import { RentingDappManager } from '../build/typechain/ESN/RentingDappManager';
import { ProxyAdmin } from '../build/typechain/@openzeppelin';
import './types/eth-proof';
// @dev suffix "ETH" or "ESN" refers to the value context of which blockchain it refers to.
declare global {
namespace NodeJS {
interface Global {
serverETH: ganache.Server;
serverESN: ganache.Server;
providerETH: ethers.providers.JsonRpcProvider;
accountsETH: string[];
providerESN: ethers.providers.JsonRpcProvider;
accountsESN: string[];
validatorWallets: ethers.Wallet[];
esInstanceETH: EraSwapToken;
plasmaManagerInstanceETH: PlasmaManager;
fundsManagerInstanceETH: FundsManagerEth;
reversePlasmaInstanceESN: ReversePlasma;
fundsManagerInstanceESN: FundsManagerEsn;
proxyAdminInstanceESN: ProxyAdmin;
nrtInstanceESN: NrtManager;
timeallyInstanceESN: TimeAllyManager;
timeallyStakingTargetInstanceESN: TimeAllyStaking;
timeallyClubInstanceESN: TimeAllyClub;
timeallyPromotionalBucketESN: TimeAllyPromotionalBucket;
prepaidEsInstanceESN: PrepaidEs;
validatorSetESN: ValidatorSet;
blockRewardESN: BlockReward;
validatorManagerESN: ValidatorManager;
randomnessMangerESN: RandomnessManager;
dayswappersInstanceESN: DayswappersWithMigration;
kycDappInstanceESN: KycDapp;
betdeexInstanceESN: BetDeEx;
betImplementaionInstanceESN: Bet;
SurveyDappInstanceESN: SurveyDapp;
CharityDappInstanceESN: CharityDapp;
rentingDappManagerInstanceESN: RentingDappManager;
}
interface ProcessEnv {
DEBUG: boolean;
}
}
}