-
Notifications
You must be signed in to change notification settings - Fork 39
/
index.js
63 lines (61 loc) · 2.13 KB
/
index.js
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
const generateClass = require('@giveth/eth-contract-class').default;
const LPFactoryArtifact = require('./dist/contracts/LPFactory.json');
const LiquidPledgingArtifact = require('./dist/contracts/LiquidPledging.json');
const LPVaultArtifact = require('./dist/contracts/LPVault.json');
const KernelArtifact = require('./dist/contracts/Kernel.json');
const DAOFactoryArtifact = require('./dist/contracts/DAOFactory.json');
const ACLArtifact = require('./dist/contracts/ACL.json');
const AppProxyUpgradeableArtifact = require('./dist/contracts/AppProxyUpgradeable.json');
const StandardTokenTestAtifact = require('./dist/contracts/StandardToken.json');
const LiquidPledgingMockArtifact = require('./dist/contracts/LiquidPledgingMock.json');
const RecoveryVaultArtifact = require('./dist/contracts/RecoveryVault.json');
const assertFail = require('./test/helpers/assertFail');
const { embarkConfig, deploy: deployLP } = require('./test/helpers/deployLP');
module.exports = {
LiquidPledging: generateClass(
LiquidPledgingArtifact.abiDefinition,
LiquidPledgingArtifact.code,
),
LPFactory: generateClass(
LPFactoryArtifact.abiDefinition,
LPFactoryArtifact.code,
),
LiquidPledgingState: require('./js/liquidPledgingState.js'),
LPVault: generateClass(
LPVaultArtifact.abiDefinition,
LPVaultArtifact.code,
),
DAOFactory: generateClass(
DAOFactoryArtifact.abiDefinition,
DAOFactoryArtifact.code,
),
Kernel: generateClass(
KernelArtifact.abiDefinition,
KernelArtifact.code,
),
ACL: generateClass(
ACLArtifact.abiDefinition,
ACLArtifact.code,
),
AppProxyUpgradeable: generateClass(
AppProxyUpgradeableArtifact.abiDefinition,
AppProxyUpgradeableArtifact.code,
),
test: {
RecoveryVault: generateClass(
RecoveryVaultArtifact.abiDefinition,
RecoveryVaultArtifact.code,
),
StandardTokenTest: generateClass(
StandardTokenTestAtifact.abiDefinition,
StandardTokenTestAtifact.code,
),
LiquidPledgingMock: generateClass(
LiquidPledgingMockArtifact.abiDefinition,
LiquidPledgingMockArtifact.code,
),
assertFail,
embarkConfig,
deployLP,
},
};