-
Notifications
You must be signed in to change notification settings - Fork 0
/
locklift.config.ts
100 lines (93 loc) · 2.32 KB
/
locklift.config.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import '@broxus/locklift-deploy';
import '@broxus/locklift-verifier';
import { lockliftChai, LockliftConfig } from 'locklift';
import { Deployments } from '@broxus/locklift-deploy';
import { BigNumber } from 'bignumber.js';
import * as dotenv from 'dotenv';
import * as chai from 'chai';
import { FactorySource } from './build/factorySource';
dotenv.config();
chai.use(lockliftChai);
BigNumber.config({ EXPONENTIAL_AT: 1e9 });
declare global {
const locklift: import('locklift').Locklift<FactorySource>;
}
declare module 'locklift' {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
export interface Locklift {
deployments: Deployments<FactorySource>;
}
}
const config: LockliftConfig = {
compiler: {
version: '0.62.0',
externalContractsArtifacts: {
'node_modules/@broxus/tip4/build': ['Index', 'IndexBasis'],
},
},
linker: { version: '0.15.48' },
verifier: {
verifierVersion: 'latest',
apiKey: process.env.EVERSCAN_API_KEY!,
secretKey: process.env.EVERSCAN_SECRET_KEY!,
},
networks: {
local: {
connection: {
id: 1,
group: 'local',
type: 'graphql',
data: {
endpoints: [process.env.LOCAL_NETWORK_ENDPOINT!],
latencyDetectionInterval: 1000,
local: true,
},
},
giver: {
address: process.env.LOCAL_GIVER_ADDRESS!,
key: process.env.LOCAL_GIVER_KEY!,
},
keys: {
phrase: process.env.LOCAL_PHRASE,
amount: 20,
},
},
locklift: {
connection: {
id: 2,
group: 'local',
type: 'proxy',
data: {} as never,
},
giver: {
address: process.env.LOCAL_GIVER_ADDRESS!,
key: process.env.LOCAL_GIVER_KEY!,
},
keys: {
phrase: process.env.LOCAL_PHRASE,
amount: 20,
},
},
mainnet: {
connection: {
id: 3,
group: 'main',
type: 'graphql',
data: {
endpoints: [process.env.MAINNET_NETWORK_ENDPOINT!],
},
},
giver: {
address: process.env.MAINNET_GIVER_ADDRESS!,
key: process.env.MAINNET_GIVER_KEY!,
},
keys: {
phrase: process.env.MAINNET_PHRASE,
amount: 20,
},
},
},
mocha: { timeout: 200000, bail: true },
};
export default config;