Repository navigation
Expand file tree
/
Copy pathDeploy.s.sol
More file actions
453 lines (387 loc) · 21.7 KB
/
Copy pathDeploy.s.sol
File metadata and controls
453 lines (387 loc) · 21.7 KB
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity ^0.8.17;
import {Script, console} from "forge-std/Script.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import {DAO} from "@aragon/osx/core/dao/DAO.sol";
import {IDAO} from "@aragon/osx/common/dao/IDAO.sol";
import {DAORegistry} from "@aragon/osx/framework/dao/DAORegistry.sol";
import {PluginRepo} from "@aragon/osx/framework/plugin/repo/PluginRepo.sol";
import {PluginRepoRegistry} from "@aragon/osx/framework/plugin/repo/PluginRepoRegistry.sol";
import {PlaceholderSetup} from "@aragon/osx/framework/plugin/repo/placeholder/PlaceholderSetup.sol";
import {ENSSubdomainRegistrar} from "@aragon/osx/framework/utils/ens/ENSSubdomainRegistrar.sol";
import {Executor as GlobalExecutor} from "@aragon/osx/common/executors/Executor.sol";
import {AdminSetup} from "@aragon/admin-plugin/AdminSetup.sol";
import {MultisigSetup} from "@aragon/multisig-plugin/MultisigSetup.sol";
import {TokenVoting} from "@aragon/token-voting-plugin/TokenVoting.sol";
import {TokenVotingSetup} from "@aragon/token-voting-plugin/TokenVotingSetup.sol";
import {GovernanceERC20} from "@aragon/token-voting-plugin/erc20/GovernanceERC20.sol";
import {GovernanceWrappedERC20} from "@aragon/token-voting-plugin/erc20/GovernanceWrappedERC20.sol";
import {IERC20Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import {StagedProposalProcessor as SPP} from "@aragon/staged-proposal-processor-plugin/StagedProposalProcessor.sol";
import {StagedProposalProcessorSetup} from "@aragon/staged-proposal-processor-plugin/StagedProposalProcessorSetup.sol";
import {LockToVotePluginSetup} from "@aragon/lock-to-vote-plugin/setup/LockToVotePluginSetup.sol";
import {LockToVotePlugin} from "@aragon/lock-to-vote-plugin/LockToVotePlugin.sol";
import {MajorityVotingBase} from "@aragon/lock-to-vote-plugin/base/MajorityVotingBase.sol";
import {LockManagerERC20} from "@aragon/lock-to-vote-plugin/LockManagerERC20.sol";
import {MinVotingPowerCondition} from "@aragon/lock-to-vote-plugin/conditions/MinVotingPowerCondition.sol";
import {ILockToGovernBase} from "@aragon/lock-to-vote-plugin/interfaces/ILockToGovernBase.sol";
import {IPlugin} from "@aragon/osx/common/plugin/IPlugin.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {ERC1967Proxy} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";
import {CrossChainController} from "@aragon/crosschain-plugin/CrossChainController.sol";
import {CrossChainControllerSetup} from "@aragon/crosschain-plugin/CrossChainControllerSetup.sol";
import {Executor as CrossChainExecutor} from "@aragon/crosschain-plugin/Executor.sol";
import {ConditionFactory} from "@aragon/condition-library/factory/ConditionFactory.sol";
import {ExecuteSelectorCondition} from "@aragon/condition-library/ExecuteSelectorCondition.sol";
import {SelectorCondition} from "@aragon/condition-library/SelectorCondition.sol";
import {SafeOwnerCondition, IOwnerManager} from "@aragon/condition-library/SafeOwnerCondition.sol";
import {ProtocolFactory} from "../src/ProtocolFactory.sol";
import {AddressBook} from "./AddressBook.sol";
import {DAOHelper} from "../src/helpers/DAOHelper.sol";
import {PluginRepoHelper} from "../src/helpers/PluginRepoHelper.sol";
import {PSPHelper} from "../src/helpers/PSPHelper.sol";
import {ENSHelper} from "../src/helpers/ENSHelper.sol";
/// @notice This local script triggers a full deploy of OSx, along with the core Aragon plugins and the Management DAO
/// @dev No privileged actions are performed within this file. All of them take place within the ProtocolFactory contract, on-chain.
/// @dev Given that deploying the factory with all contracts embedded would hit the gas limit, the deployment has two stages:
/// @dev 1) Deploy the raw contracts and store their addresses locally (this file)
/// @dev 2) Deploy the factory with the addresses above and tell it to orchestrate the protocol deployment
contract DeployScript is Script, AddressBook {
// Constants
string constant VERSION = "1.4";
string constant DEFAULT_DAO_ENS_DOMAIN = "dao";
string constant DEFAULT_MANAGEMENT_DAO_SUBDOMAIN = "management";
string constant DEFAULT_PLUGIN_ENS_SUBDOMAIN = "plugin";
string constant DEFAULT_MANAGEMENT_DAO_MEMBERS_FILE_NAME = "multisig-members.json";
// Plugin versions (release, build) to publish. Earlier builds get a placeholder.
uint8 constant ADMIN_RELEASE = 1;
uint8 constant ADMIN_BUILD = 2;
uint8 constant MULTISIG_RELEASE = 1;
uint8 constant MULTISIG_BUILD = 3;
uint8 constant TOKEN_VOTING_RELEASE = 1;
uint8 constant TOKEN_VOTING_BUILD = 4;
uint8 constant SPP_RELEASE = 1;
uint8 constant SPP_BUILD = 3;
uint8 constant LTV_RELEASE = 1;
uint8 constant LTV_BUILD = 1;
uint8 constant CROSSCHAIN_RELEASE = 1;
uint8 constant CROSSCHAIN_BUILD = 1;
string DEFAULT_ADMIN_RELEASE_METADATA = "ipfs://QmYBiJKv2y6kGjwd11D9fRnHT3aXRD6HXG91QQLZzieRK6";
string DEFAULT_ADMIN_BUILD_METADATA = "ipfs://QmfWLgS9tQSSd7bKZ7RT1yURFrRwZgkwpzVJVRH1deTTYe";
string DEFAULT_MULTISIG_RELEASE_METADATA = "ipfs://QmRfQ7ghLZFy5DHQ63eDK3iPfXUP6igoupFYsy9whhYyJq";
string DEFAULT_MULTISIG_BUILD_METADATA = "ipfs://QmRVs5yJzJ7rFPGRvVnzvimj63N7pWPzd169rud698AwsZ";
string DEFAULT_TOKEN_VOTING_RELEASE_METADATA = "ipfs://QmWjZArvePnMPgbfKAMW3TidbqHEy68UV6SvRBhiaygGta";
string DEFAULT_TOKEN_VOTING_BUILD_METADATA = "ipfs://QmdLJo4VqwN8jPFf2svZpG5i5kVZX61s8w519qxUXM7X7g";
string DEFAULT_SPP_RELEASE_METADATA = "ipfs://bafkreif23p6yw325rkwwlhgkudiasvq64lonqmfnt7ls5ksfam5hedcb4m";
string DEFAULT_SPP_BUILD_METADATA = "ipfs://QmPJErCM2FV8YpJGNjNy4U5yDgHwTNczwEfMZ9SHhBTa64";
string DEFAULT_LTV_RELEASE_METADATA = "ipfs://Qmb2zmXKTFucochyetSTaT9wFXGUFENp25XBB7CDprXmyQ";
string DEFAULT_LTV_BUILD_METADATA = "ipfs://QmV17NAoAX9oo1D6QUV9iw8CjugdQEJcacr9TUMtJYCJ3w";
string DEFAULT_CROSSCHAIN_RELEASE_METADATA = "ipfs://QmSfiCe5sCkrbA7gw6xriqCVx8iR1C2eAqL1iWYp9HbDAV";
string DEFAULT_CROSSCHAIN_BUILD_METADATA = "ipfs://QmZuSnnzNFA9Zw2Vzb1KgaxCqox5uzYBR3UUhbef3FoUzy";
string DEFAULT_MANAGEMENT_DAO_METADATA = "ipfs://bafkreibemfrxeuwfaono6k37vbi66fctcwtioiyctrl4fvqtqmiodt2mle";
DAO daoBase;
DAORegistry daoRegistryBase;
PluginRepoRegistry pluginRepoRegistryBase;
PlaceholderSetup placeholderSetup;
ENSSubdomainRegistrar ensSubdomainRegistrarBase;
GlobalExecutor globalExecutor;
AdminSetup adminSetup;
MultisigSetup multisigSetup;
TokenVotingSetup tokenVotingSetup;
StagedProposalProcessorSetup stagedProposalProcessorSetup;
LockToVotePluginSetup lockToVotePluginSetup;
CrossChainControllerSetup crossChainControllerSetup;
ConditionFactory conditionFactory;
ProtocolFactory factory;
DAOHelper daoHelper;
PluginRepoHelper pluginRepoHelper;
PSPHelper pspHelper;
ENSHelper ensHelper;
modifier broadcast() {
uint256 privKey = vm.envUint("DEPLOYER_KEY");
vm.startBroadcast(privKey);
console.log("OSx version", VERSION);
console.log("- Deployment wallet:", vm.addr(privKey));
console.log("- Chain ID:", block.chainid);
console.log();
_;
vm.stopBroadcast();
}
function run() public broadcast {
// Deploy the raw implementation contracts
deployOSxImplementations();
deployHelperFactories();
deployAdminSetup();
deployMultisigSetup();
deployTokenVotingSetup();
deployStagedProposalProcessorSetup();
deployLockToVoteSetup();
deployCrossChainSetup();
deployConditionFactory();
// Deploy the factory with immutable parameters and trigger the protocol deployment
factory = new ProtocolFactory(buildFactoryParams());
vm.label(address(factory), "ProtocolFactory");
// Deploy in phases to stay within EIP-7825 gas limits
while (!factory.deployPhase()) {}
// Done
printDeployment();
if (!vm.envOr("SIMULATION", false)) {
string memory path = _writeAddressBook(factory, address(conditionFactory), vm.envString("NETWORK_NAME"));
console.log("Address book (artifacts-hub format) written to", path);
}
}
// Internal helpers
function deployOSxImplementations() internal {
/// @dev Deploy implementations with empty values. They will be used to create proxies and to verify the source code.
daoBase = new DAO();
vm.label(address(daoBase), "DAO Base");
daoRegistryBase = new DAORegistry();
vm.label(address(daoRegistryBase), "DAORegistry Base");
pluginRepoRegistryBase = new PluginRepoRegistry();
vm.label(address(pluginRepoRegistryBase), "PluginRepoRegistry Base");
placeholderSetup = new PlaceholderSetup();
vm.label(address(placeholderSetup), "PlaceholderSetup");
ensSubdomainRegistrarBase = new ENSSubdomainRegistrar();
vm.label(address(ensSubdomainRegistrarBase), "ENSSubdomainRegistrar Base");
globalExecutor = new GlobalExecutor();
vm.label(address(globalExecutor), "GlobalExecutor");
/// @dev The DAOFactory, PluginRepoFactory and PluginSetupProcessor are static.
/// @dev These contracts will be deployed by the DAOHelper, the PluginRepoHelper and the PSPHelper.
}
function deployHelperFactories() internal {
daoHelper = new DAOHelper();
vm.label(address(daoHelper), "DAOHelper");
pluginRepoHelper = new PluginRepoHelper();
vm.label(address(pluginRepoHelper), "PluginRepoHelper");
pspHelper = new PSPHelper();
vm.label(address(pspHelper), "PSPHelper");
ensHelper = new ENSHelper();
vm.label(address(ensHelper), "ENSHelper");
}
function deployAdminSetup() internal {
adminSetup = new AdminSetup();
vm.label(address(adminSetup), "AdminSetup");
}
function deployMultisigSetup() internal {
multisigSetup = new MultisigSetup();
vm.label(address(multisigSetup), "MultisigSetup");
}
function deployTokenVotingSetup() internal {
tokenVotingSetup = new TokenVotingSetup(
new TokenVoting(),
new GovernanceERC20(
IDAO(address(0)), "", "", GovernanceERC20.MintSettings(new address[](0), new uint256[](0), true)
),
new GovernanceWrappedERC20(IERC20Upgradeable(address(0)), "", "")
);
vm.label(address(tokenVotingSetup), "TokenVotingSetup");
}
function deployStagedProposalProcessorSetup() internal {
stagedProposalProcessorSetup = new StagedProposalProcessorSetup(new SPP());
vm.label(address(stagedProposalProcessorSetup), "StagedProposalProcessorSetup");
}
function deployLockToVoteSetup() internal {
lockToVotePluginSetup = new LockToVotePluginSetup();
vm.label(address(lockToVotePluginSetup), "LockToVotePluginSetup");
// Deploy dummy instances to force source verification on block explorers
LockManagerERC20 dummyLockManager = new LockManagerERC20(IERC20(address(0)));
MajorityVotingBase.VotingSettings memory votingSettings = MajorityVotingBase.VotingSettings({
votingMode: MajorityVotingBase.VotingMode.Standard,
supportThresholdRatio: 500_000,
minParticipationRatio: 500_000,
minApprovalRatio: 500_000,
proposalDuration: 10 days,
minProposerVotingPower: 0
});
IPlugin.TargetConfig memory targetConfig =
IPlugin.TargetConfig({target: address(1234), operation: IPlugin.Operation.Call});
LockToVotePlugin dummyPlugin = LockToVotePlugin(
address(
new ERC1967Proxy(
lockToVotePluginSetup.implementation(),
abi.encodeCall(
LockToVotePlugin.initialize,
(IDAO(address(1234)), dummyLockManager, votingSettings, targetConfig, bytes(""))
)
)
)
);
new MinVotingPowerCondition(ILockToGovernBase(dummyPlugin));
}
function deployCrossChainSetup() internal {
crossChainControllerSetup = new CrossChainControllerSetup(address(new CrossChainController()));
vm.label(address(crossChainControllerSetup), "CrossChainControllerSetup");
// Deploy a dummy instance to force source verification on block explorers
/// @dev The setup only creates Executors during prepareInstallation
new CrossChainExecutor();
}
function deployConditionFactory() internal {
conditionFactory = new ConditionFactory();
vm.label(address(conditionFactory), "ConditionFactory");
// Deploy dummy instances to force source verification on block explorers
conditionFactory.deployExecuteSelectorCondition(
IDAO(address(0)), new ExecuteSelectorCondition.SelectorTarget[](0)
);
conditionFactory.deploySelectorCondition(IDAO(address(0)), new bytes4[](0));
address safeAddress = vm.envOr("SAFE_ADDRESS", address(0));
if (safeAddress == address(0)) {
safeAddress = address(new IsOwnerMock());
}
conditionFactory.deploySafeOwnerCondition(safeAddress);
}
function readManagementDaoMembers() public view returns (address[] memory result) {
// JSON list of members
string memory membersFileName =
vm.envOr("MANAGEMENT_DAO_MEMBERS_FILE_NAME", DEFAULT_MANAGEMENT_DAO_MEMBERS_FILE_NAME);
string memory path = string.concat(vm.projectRoot(), "/", membersFileName);
string memory strJson = vm.readFile(path);
bool exists = vm.keyExistsJson(strJson, "$.members");
if (!exists) {
revert("The file pointed by MANAGEMENT_DAO_MEMBERS_FILE_NAME does not contain any members");
}
result = vm.parseJsonAddressArray(strJson, "$.members");
if (result.length == 0) {
revert("The file pointed by MANAGEMENT_DAO_MEMBERS_FILE_NAME needs to contain at least one member");
}
}
function buildFactoryParams() internal view returns (ProtocolFactory.DeploymentParameters memory params) {
params = ProtocolFactory.DeploymentParameters({
osxImplementations: ProtocolFactory.OSxImplementations({
daoBase: address(daoBase),
daoRegistryBase: address(daoRegistryBase),
pluginRepoRegistryBase: address(pluginRepoRegistryBase),
placeholderSetup: address(placeholderSetup),
ensSubdomainRegistrarBase: address(ensSubdomainRegistrarBase),
globalExecutor: address(globalExecutor)
}),
helperFactories: ProtocolFactory.HelperFactories({
daoHelper: daoHelper, pluginRepoHelper: pluginRepoHelper, pspHelper: pspHelper, ensHelper: ensHelper
}),
ensParameters: ProtocolFactory.EnsParameters({
daoRootDomain: vm.envOr("DAO_ENS_DOMAIN", DEFAULT_DAO_ENS_DOMAIN),
managementDaoSubdomain: vm.envOr("MANAGEMENT_DAO_SUBDOMAIN", DEFAULT_MANAGEMENT_DAO_SUBDOMAIN),
pluginSubdomain: vm.envOr("PLUGIN_ENS_SUBDOMAIN", DEFAULT_PLUGIN_ENS_SUBDOMAIN)
}),
corePlugins: ProtocolFactory.CorePlugins({
adminPlugin: ProtocolFactory.CorePlugin({
pluginSetup: adminSetup,
release: ADMIN_RELEASE,
build: ADMIN_BUILD,
releaseMetadataUri: vm.envOr("ADMIN_PLUGIN_RELEASE_METADATA_URI", DEFAULT_ADMIN_RELEASE_METADATA),
buildMetadataUri: vm.envOr("ADMIN_PLUGIN_BUILD_METADATA_URI", DEFAULT_ADMIN_BUILD_METADATA),
subdomain: vm.envOr("ADMIN_PLUGIN_SUBDOMAIN", string("admin"))
}),
multisigPlugin: ProtocolFactory.CorePlugin({
pluginSetup: multisigSetup,
release: MULTISIG_RELEASE,
build: MULTISIG_BUILD,
releaseMetadataUri: vm.envOr(
"MULTISIG_PLUGIN_RELEASE_METADATA_URI", DEFAULT_MULTISIG_RELEASE_METADATA
),
buildMetadataUri: vm.envOr("MULTISIG_PLUGIN_BUILD_METADATA_URI", DEFAULT_MULTISIG_BUILD_METADATA),
subdomain: vm.envOr("MULTISIG_PLUGIN_SUBDOMAIN", string("multisig"))
}),
tokenVotingPlugin: ProtocolFactory.CorePlugin({
pluginSetup: tokenVotingSetup,
release: TOKEN_VOTING_RELEASE,
build: TOKEN_VOTING_BUILD,
releaseMetadataUri: vm.envOr(
"TOKEN_VOTING_PLUGIN_RELEASE_METADATA_URI", DEFAULT_TOKEN_VOTING_RELEASE_METADATA
),
buildMetadataUri: vm.envOr(
"TOKEN_VOTING_PLUGIN_BUILD_METADATA_URI", DEFAULT_TOKEN_VOTING_BUILD_METADATA
),
subdomain: vm.envOr("TOKEN_VOTING_PLUGIN_SUBDOMAIN", string("token-voting"))
}),
stagedProposalProcessorPlugin: ProtocolFactory.CorePlugin({
pluginSetup: stagedProposalProcessorSetup,
release: SPP_RELEASE,
build: SPP_BUILD,
releaseMetadataUri: vm.envOr(
"STAGED_PROPOSAL_PROCESSOR_PLUGIN_RELEASE_METADATA_URI", DEFAULT_SPP_RELEASE_METADATA
),
buildMetadataUri: vm.envOr(
"STAGED_PROPOSAL_PROCESSOR_PLUGIN_BUILD_METADATA_URI", DEFAULT_SPP_BUILD_METADATA
),
subdomain: vm.envOr("STAGED_PROPOSAL_PROCESSOR_PLUGIN_SUBDOMAIN", string("spp"))
}),
lockToVotePlugin: ProtocolFactory.CorePlugin({
pluginSetup: lockToVotePluginSetup,
release: LTV_RELEASE,
build: LTV_BUILD,
releaseMetadataUri: vm.envOr(
"LOCK_TO_VOTE_PLUGIN_RELEASE_METADATA_URI", DEFAULT_LTV_RELEASE_METADATA
),
buildMetadataUri: vm.envOr("LOCK_TO_VOTE_PLUGIN_BUILD_METADATA_URI", DEFAULT_LTV_BUILD_METADATA),
subdomain: vm.envOr("LOCK_TO_VOTE_PLUGIN_SUBDOMAIN", string("lock-to-vote"))
}),
crossChainPlugin: ProtocolFactory.CorePlugin({
pluginSetup: crossChainControllerSetup,
release: CROSSCHAIN_RELEASE,
build: CROSSCHAIN_BUILD,
releaseMetadataUri: vm.envOr(
"CROSSCHAIN_PLUGIN_RELEASE_METADATA_URI", DEFAULT_CROSSCHAIN_RELEASE_METADATA
),
buildMetadataUri: vm.envOr(
"CROSSCHAIN_PLUGIN_BUILD_METADATA_URI", DEFAULT_CROSSCHAIN_BUILD_METADATA
),
subdomain: vm.envOr("CROSSCHAIN_PLUGIN_SUBDOMAIN", string("crosschain"))
})
}),
managementDao: ProtocolFactory.ManagementDaoParameters({
metadataUri: vm.envOr("MANAGEMENT_DAO_METADATA_URI", DEFAULT_MANAGEMENT_DAO_METADATA),
members: readManagementDaoMembers(),
minApprovals: uint8(vm.envUint("MANAGEMENT_DAO_MIN_APPROVALS"))
})
});
}
function printDeployment() internal view {
ProtocolFactory.Deployment memory deployment = factory.getDeployment();
console.log("General:");
console.log("- ProtocolFactory:", address(factory));
console.log();
console.log("OSx contracts:");
console.log("- DAOFactory", deployment.daoFactory);
console.log("- PluginRepoFactory", deployment.pluginRepoFactory);
console.log("- PluginSetupProcessor", deployment.pluginSetupProcessor);
console.log();
console.log("Registries (proxy):");
console.log("- DAORegistry", deployment.daoRegistry);
console.log("- PluginRepoRegistry", deployment.pluginRepoRegistry);
console.log();
console.log("Protocol helpers:");
console.log("- Management DAO", deployment.managementDao);
console.log("- Management DAO multisig", deployment.managementDaoMultisig);
address[] memory members = readManagementDaoMembers();
console.log("- Management DAO members");
for (uint256 i = 0; i < members.length; i++) {
console.log(" -", members[i]);
}
console.log();
console.log("ENS:");
console.log("- ENSRegistry", deployment.ensRegistry);
console.log("- PublicResolver", deployment.publicResolver);
console.log("- ENSSubdomainRegistrar (DAOs)", deployment.daoSubdomainRegistrar);
console.log("- ENSSubdomainRegistrar (plugins)", deployment.pluginSubdomainRegistrar);
console.log();
console.log("Plugin repositories:");
console.log("- Admin PluginRepo", deployment.adminPluginRepo);
console.log("- Multisig PluginRepo", deployment.multisigPluginRepo);
console.log("- TokenVoting PluginRepo", deployment.tokenVotingPluginRepo);
console.log("- SPP PluginRepo", deployment.stagedProposalProcessorPluginRepo);
console.log("- LockToVote PluginRepo", deployment.lockToVotePluginRepo);
console.log("- CrossChain PluginRepo", deployment.crossChainPluginRepo);
console.log();
console.log("Other OSx contracts:");
console.log("- GlobalExecutor", deployment.globalExecutor);
console.log("- PlaceholderSetup", deployment.placeholderSetup);
console.log();
console.log("Conditions:");
console.log("- ConditionFactory", address(conditionFactory));
console.log();
}
}
/// @dev Minimal mock so SafeOwnerCondition can be deployed for source verification when no real Safe is available
contract IsOwnerMock {
function isOwner(address) external pure returns (bool) {}
}