Repository navigation
Expand file tree
/
Copy pathplugin-catalog.ts
More file actions
48 lines (45 loc) · 1.63 KB
/
Copy pathplugin-catalog.ts
File metadata and controls
48 lines (45 loc) · 1.63 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
// Plugin-side constants that are the same on every chain the plugin ships to:
// the canonical ENS subdomain (relative to `plugin.dao.eth`), the display name,
// and the ABI names (in `abi/<slug>/v<release>.<build>/`) of the contracts a
// PluginRepo version points to. If a chain uses a different ENS name for a
// given plugin, the per-chain `plugins.<slug>.ens` value overrides.
export type PluginCatalogEntry = {
ens: string;
label: string;
abi: { implementation: string; setup: string };
};
export const PLUGIN_CATALOG: Record<string, PluginCatalogEntry> = {
admin: {
ens: "admin.plugin.dao.eth",
label: "Admin",
abi: { implementation: "Admin", setup: "AdminSetup" },
},
multisig: {
ens: "multisig.plugin.dao.eth",
label: "Multisig",
abi: { implementation: "Multisig", setup: "MultisigSetup" },
},
"token-voting": {
ens: "token-voting.plugin.dao.eth",
label: "Token Voting",
abi: { implementation: "TokenVoting", setup: "TokenVotingSetup" },
},
spp: {
ens: "staged-proposal-processor.plugin.dao.eth",
label: "Staged Proposal Processor",
abi: { implementation: "StagedProposalProcessor", setup: "StagedProposalProcessorSetup" },
},
"lock-to-vote": {
ens: "lock-2-vote.plugin.dao.eth",
label: "Lock to Vote",
abi: { implementation: "LockToVotePlugin", setup: "LockToVotePluginSetup" },
},
crosschain: {
ens: "crosschain.plugin.dao.eth",
label: "Cross-Chain Controller",
abi: { implementation: "CrossChainController", setup: "CrossChainControllerSetup" },
},
};
export function ensForSlug(slug: string): string | undefined {
return PLUGIN_CATALOG[slug]?.ens;
}