-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathindex.js
125 lines (124 loc) · 6.88 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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
// Token
const IToken = require("./artifacts/contracts/token/IToken.sol/IToken.json");
const Token = require("./artifacts/contracts/token/Token.sol/Token.json");
const TokenStorage = require("./artifacts/contracts/token/TokenStorage.sol/TokenStorage.json");
// Roles
const AgentRole = require("./artifacts/contracts/roles/AgentRole.sol/AgentRole.json");
const AgentRoleUpgradeable = require("./artifacts/contracts/roles/AgentRoleUpgradeable.sol/AgentRoleUpgradeable.json");
const Roles = require("./artifacts/contracts/roles/Roles.sol/Roles.json");
// Roles/permissioning/agent
const AgentManager = require("./artifacts/contracts/roles/permissioning/agent/AgentManager.sol/AgentManager.json");
const AgentRoles = require("./artifacts/contracts/roles/permissioning/agent/AgentRoles.sol/AgentRoles.json");
const AgentRolesUpgradeable = require("./artifacts/contracts/roles/permissioning/agent/AgentRolesUpgradeable.sol/AgentRolesUpgradeable.json");
// Roles/owner
const OwnerManager = require("./artifacts/contracts/roles/permissioning/owner/OwnerManager.sol/OwnerManager.json");
const OwnerRoles = require("./artifacts/contracts/roles/permissioning/owner/OwnerRoles.sol/OwnerRoles.json");
const OwnerRolesUpgradeable = require("./artifacts/contracts/roles/permissioning/owner/OwnerRolesUpgradeable.sol/OwnerRolesUpgradeable.json");
// registry
const IClaimTopicsRegistry = require("./artifacts/contracts/registry/interface/IClaimTopicsRegistry.sol/IClaimTopicsRegistry.json");
const ClaimTopicsRegistry = require("./artifacts/contracts/registry/implementation/ClaimTopicsRegistry.sol/ClaimTopicsRegistry.json");
const IIdentityRegistry = require("./artifacts/contracts/registry/interface/IIdentityRegistry.sol/IIdentityRegistry.json");
const IdentityRegistry = require("./artifacts/contracts/registry/implementation/IdentityRegistry.sol/IdentityRegistry.json");
const IIdentityRegistryStorage = require("./artifacts/contracts/registry/interface/IIdentityRegistryStorage.sol/IIdentityRegistryStorage.json");
const IdentityRegistryStorage = require("./artifacts/contracts/registry/implementation/IdentityRegistryStorage.sol/IdentityRegistryStorage.json");
const ITrustedIssuersRegistry = require("./artifacts/contracts/registry/interface/ITrustedIssuersRegistry.sol/ITrustedIssuersRegistry.json");
const TrustedIssuersRegistry = require("./artifacts/contracts/registry/implementation/TrustedIssuersRegistry.sol/TrustedIssuersRegistry.json");
// registry/Storage
const CTRStorage = require("./artifacts/contracts/registry/storage/CTRStorage.sol/CTRStorage.json");
const IRSStorage = require("./artifacts/contracts/registry/storage/IRSStorage.sol/IRSStorage.json");
const IRStorage = require("./artifacts/contracts/registry/storage/IRStorage.sol/IRStorage.json");
const TIRStorage = require("./artifacts/contracts/registry/storage/TIRStorage.sol/TIRStorage.json");
// proxy
const IProxy = require("./artifacts/contracts/proxy/interface/IProxy.sol/IProxy.json");
const AbstractProxy = require("./artifacts/contracts/proxy/AbstractProxy.sol/AbstractProxy.json");
const ClaimTopicsRegistryProxy = require("./artifacts/contracts/proxy/ClaimTopicsRegistryProxy.sol/ClaimTopicsRegistryProxy.json");
const IdentityRegistryProxy = require("./artifacts/contracts/proxy/IdentityRegistryProxy.sol/IdentityRegistryProxy.json");
const IdentityRegistryStorageProxy = require("./artifacts/contracts/proxy/IdentityRegistryStorageProxy.sol/IdentityRegistryStorageProxy.json");
const ModularComplianceProxy = require("./artifacts/contracts/proxy/ModularComplianceProxy.sol/ModularComplianceProxy.json");
const TokenProxy = require("./artifacts/contracts/proxy/TokenProxy.sol/TokenProxy.json");
const TrustedIssuersRegistryProxy = require("./artifacts/contracts/proxy/TrustedIssuersRegistryProxy.sol/TrustedIssuersRegistryProxy.json");
// proxy/authority
const IAFactory = require("./artifacts/contracts/proxy/authority/IAFactory.sol/IAFactory.json");
const IIAFactory = require("./artifacts/contracts/proxy/authority/IIAFactory.sol/IIAFactory.json");
const ITREXImplementationAuthority = require("./artifacts/contracts/proxy/authority/ITREXImplementationAuthority.sol/ITREXImplementationAuthority.json");
const TREXImplementationAuthority = require("./artifacts/contracts/proxy/authority/TREXImplementationAuthority.sol/TREXImplementationAuthority.json");
// factory
const ITREXFactory = require("./artifacts/contracts/factory/ITREXFactory.sol/ITREXFactory.json");
const TREXFactory = require("./artifacts/contracts/factory/TREXFactory.sol/TREXFactory.json");
// DVD
const DVDTransferManager = require("./artifacts/contracts/DVD/DVDTransferManager.sol/DVDTransferManager.json");
// compliance
const IModularCompliance = require("./artifacts/contracts/compliance/modular/IModularCompliance.sol/IModularCompliance.json");
const MCStorage = require("./artifacts/contracts/compliance/modular/MCStorage.sol/MCStorage.json");
const ModularCompliance = require("./artifacts/contracts/compliance/modular/ModularCompliance.sol/ModularCompliance.json");
// compliance/modular/modules
const IModule = require("./artifacts/contracts/compliance/modular/modules/IModule.sol/IModule.json");
const AbstractModule = require("./artifacts/contracts/compliance/modular/modules/AbstractModule.sol/AbstractModule.json");
const ConditionalTransferModule = require("./artifacts/contracts/compliance/modular/modules/ConditionalTransferModule.sol/ConditionalTransferModule.json");
const CountryAllowModule = require("./artifacts/contracts/compliance/modular/modules/CountryAllowModule.sol/CountryAllowModule.json");
const CountryRestrictModule = require("./artifacts/contracts/compliance/modular/modules/CountryRestrictModule.sol/CountryRestrictModule.json");
module.exports = {
contracts: {
// Token
Token,
TokenStorage,
// Roles
AgentRole,
AgentRoleUpgradeable,
Roles,
// Roles/permissioning/agent
AgentManager,
AgentRoles,
AgentRolesUpgradeable,
// Roles/permissioning/owner
OwnerManager,
OwnerRoles,
OwnerRolesUpgradeable,
// registry
ClaimTopicsRegistry,
IdentityRegistry,
IdentityRegistryStorage,
TrustedIssuersRegistry,
// registry/Storage
CTRStorage,
IRSStorage,
IRStorage,
TIRStorage,
// proxy
AbstractProxy,
ClaimTopicsRegistryProxy,
IdentityRegistryProxy,
IdentityRegistryStorageProxy,
ModularComplianceProxy,
TokenProxy,
TrustedIssuersRegistryProxy,
// proxy/authority
TREXImplementationAuthority,
// factory
TREXFactory,
// DVD
DVDTransferManager,
// compliance
MCStorage,
ModularCompliance,
// compliance/modular/modules
AbstractModule,
ConditionalTransferModule,
CountryAllowModule,
CountryRestrictModule,
},
interfaces: {
IToken,
IClaimTopicsRegistry,
IIdentityRegistry,
IIdentityRegistryStorage,
ITrustedIssuersRegistry,
IProxy,
IAFactory,
IIAFactory,
ITREXImplementationAuthority,
ITREXFactory,
IModularCompliance,
IModule,
},
};